@mui/x-data-grid 7.0.0-beta.2 → 7.0.0-beta.4
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 +298 -23
- package/DataGrid/DataGrid.js +0 -6
- package/colDef/gridActionsColDef.js +1 -0
- package/colDef/gridBooleanColDef.js +1 -0
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/components/GridRow.d.ts +3 -1
- package/components/GridRow.js +10 -2
- package/components/GridScrollbarFillerCell.js +6 -21
- package/components/cell/GridCell.js +10 -12
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
- package/components/containers/GridRootStyles.js +51 -23
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
- package/components/panel/filterPanel/GridFilterInputValue.js +4 -3
- package/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
- package/constants/gridClasses.d.ts +24 -8
- package/constants/gridClasses.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -5
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +46 -48
- package/hooks/features/editing/useGridCellEditing.js +3 -4
- package/hooks/features/editing/useGridRowEditing.js +3 -4
- package/hooks/features/sorting/useGridSorting.js +1 -2
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +9 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.js +7 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +19 -16
- package/hooks/features/virtualization/useGridVirtualization.d.ts +8 -0
- package/hooks/features/virtualization/useGridVirtualization.js +6 -1
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +1 -1
- package/models/colDef/gridColDef.d.ts +6 -0
- package/models/events/gridEventLookup.d.ts +1 -8
- package/models/props/DataGridProps.d.ts +0 -6
- package/modern/DataGrid/DataGrid.js +0 -6
- package/modern/colDef/gridActionsColDef.js +1 -0
- package/modern/colDef/gridBooleanColDef.js +1 -0
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/modern/components/GridRow.js +10 -2
- package/modern/components/GridScrollbarFillerCell.js +6 -21
- package/modern/components/cell/GridCell.js +10 -12
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
- package/modern/components/containers/GridRootStyles.js +51 -23
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -3
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +46 -48
- package/modern/hooks/features/editing/useGridCellEditing.js +3 -4
- package/modern/hooks/features/editing/useGridRowEditing.js +3 -4
- package/modern/hooks/features/sorting/useGridSorting.js +1 -2
- package/modern/hooks/features/virtualization/gridVirtualizationSelectors.js +7 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +18 -14
- package/modern/hooks/features/virtualization/useGridVirtualization.js +6 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -1
- package/modern/utils/keyboardUtils.js +20 -11
- package/node/DataGrid/DataGrid.js +0 -6
- package/node/colDef/gridActionsColDef.js +1 -0
- package/node/colDef/gridBooleanColDef.js +1 -0
- package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/node/components/GridRow.js +10 -2
- package/node/components/GridScrollbarFillerCell.js +5 -20
- package/node/components/cell/GridCell.js +10 -12
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
- package/node/components/containers/GridRootStyles.js +51 -23
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
- package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -3
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +45 -47
- package/node/hooks/features/editing/useGridCellEditing.js +2 -3
- package/node/hooks/features/editing/useGridRowEditing.js +2 -3
- package/node/hooks/features/sorting/useGridSorting.js +1 -2
- package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +8 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -13
- package/node/hooks/features/virtualization/useGridVirtualization.js +7 -2
- package/node/index.js +1 -1
- package/node/internals/index.js +7 -0
- package/node/utils/keyboardUtils.js +25 -20
- package/package.json +3 -3
- package/utils/keyboardUtils.d.ts +7 -6
- package/utils/keyboardUtils.js +20 -11
- package/legacy/DataGrid/DataGrid.js +0 -670
- package/legacy/DataGrid/index.js +0 -2
- package/legacy/DataGrid/useDataGridComponent.js +0 -81
- package/legacy/DataGrid/useDataGridProps.js +0 -98
- package/legacy/colDef/gridActionsColDef.js +0 -18
- package/legacy/colDef/gridBooleanColDef.js +0 -42
- package/legacy/colDef/gridBooleanOperators.js +0 -16
- package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -33
- package/legacy/colDef/gridDateColDef.js +0 -62
- package/legacy/colDef/gridDateOperators.js +0 -115
- package/legacy/colDef/gridDefaultColumnTypes.js +0 -19
- package/legacy/colDef/gridNumericColDef.js +0 -19
- package/legacy/colDef/gridNumericOperators.js +0 -145
- package/legacy/colDef/gridSingleSelectColDef.js +0 -64
- package/legacy/colDef/gridSingleSelectOperators.js +0 -46
- package/legacy/colDef/gridStringColDef.js +0 -27
- package/legacy/colDef/gridStringOperators.js +0 -112
- package/legacy/colDef/index.js +0 -13
- package/legacy/components/GridApiContext.js +0 -5
- package/legacy/components/GridColumnHeaders.js +0 -94
- package/legacy/components/GridDetailPanels.js +0 -4
- package/legacy/components/GridFooter.js +0 -42
- package/legacy/components/GridHeader.js +0 -13
- package/legacy/components/GridHeaders.js +0 -53
- package/legacy/components/GridLoadingOverlay.js +0 -21
- package/legacy/components/GridNoResultsOverlay.js +0 -14
- package/legacy/components/GridNoRowsOverlay.js +0 -23
- package/legacy/components/GridPagination.js +0 -85
- package/legacy/components/GridPinnedRows.js +0 -4
- package/legacy/components/GridRow.js +0 -457
- package/legacy/components/GridRowCount.js +0 -63
- package/legacy/components/GridScrollbarFillerCell.js +0 -34
- package/legacy/components/GridSelectedRowCount.js +0 -66
- package/legacy/components/base/GridBody.js +0 -2
- package/legacy/components/base/GridFooterPlaceholder.js +0 -12
- package/legacy/components/base/GridOverlays.js +0 -122
- package/legacy/components/base/index.js +0 -3
- package/legacy/components/cell/GridActionsCell.js +0 -294
- package/legacy/components/cell/GridActionsCellItem.js +0 -69
- package/legacy/components/cell/GridBooleanCell.js +0 -121
- package/legacy/components/cell/GridCell.js +0 -350
- package/legacy/components/cell/GridEditBooleanCell.js +0 -174
- package/legacy/components/cell/GridEditDateCell.js +0 -230
- package/legacy/components/cell/GridEditInputCell.js +0 -198
- package/legacy/components/cell/GridEditSingleSelectCell.js +0 -231
- package/legacy/components/cell/GridSkeletonCell.js +0 -52
- package/legacy/components/cell/index.js +0 -9
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -59
- package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +0 -41
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +0 -132
- package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -93
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +0 -212
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +0 -71
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -79
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +0 -84
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +0 -55
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -107
- package/legacy/components/columnHeaders/GridIconButtonContainer.js +0 -41
- package/legacy/components/columnHeaders/index.js +0 -5
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -160
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -134
- package/legacy/components/columnSelection/index.js +0 -2
- package/legacy/components/columnsManagement/GridColumnsManagement.js +0 -307
- package/legacy/components/columnsManagement/index.js +0 -1
- package/legacy/components/columnsManagement/utils.js +0 -22
- package/legacy/components/containers/GridFooterContainer.js +0 -50
- package/legacy/components/containers/GridOverlay.js +0 -52
- package/legacy/components/containers/GridRoot.js +0 -79
- package/legacy/components/containers/GridRootStyles.js +0 -398
- package/legacy/components/containers/GridToolbarContainer.js +0 -59
- package/legacy/components/containers/index.js +0 -4
- package/legacy/components/index.js +0 -19
- package/legacy/components/menu/GridMenu.js +0 -132
- package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -61
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +0 -81
- package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +0 -56
- package/legacy/components/menu/columnMenu/GridColumnMenuItemProps.js +0 -1
- package/legacy/components/menu/columnMenu/GridColumnMenuProps.js +0 -1
- package/legacy/components/menu/columnMenu/index.js +0 -9
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -21
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -41
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -60
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -41
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -80
- package/legacy/components/menu/columnMenu/menuItems/index.js +0 -5
- package/legacy/components/menu/index.js +0 -2
- package/legacy/components/panel/GridColumnsPanel.js +0 -22
- package/legacy/components/panel/GridPanel.js +0 -137
- package/legacy/components/panel/GridPanelContent.js +0 -49
- package/legacy/components/panel/GridPanelFooter.js +0 -50
- package/legacy/components/panel/GridPanelHeader.js +0 -48
- package/legacy/components/panel/GridPanelWrapper.js +0 -64
- package/legacy/components/panel/GridPreferencesPanel.js +0 -26
- package/legacy/components/panel/filterPanel/GridFilterForm.js +0 -528
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +0 -115
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +0 -121
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -116
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -102
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -146
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -104
- package/legacy/components/panel/filterPanel/GridFilterInputValueProps.js +0 -1
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +0 -264
- package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -22
- package/legacy/components/panel/filterPanel/index.js +0 -9
- package/legacy/components/panel/index.js +0 -7
- package/legacy/components/reexportable.js +0 -1
- package/legacy/components/toolbar/GridToolbar.js +0 -64
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -68
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -142
- package/legacy/components/toolbar/GridToolbarExport.js +0 -80
- package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -105
- package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -136
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +0 -164
- package/legacy/components/toolbar/index.js +0 -7
- package/legacy/components/virtualization/GridBottomContainer.js +0 -25
- package/legacy/components/virtualization/GridMainContainer.js +0 -20
- package/legacy/components/virtualization/GridTopContainer.js +0 -35
- package/legacy/components/virtualization/GridVirtualScrollbar.js +0 -129
- package/legacy/components/virtualization/GridVirtualScroller.js +0 -93
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +0 -35
- package/legacy/components/virtualization/GridVirtualScrollerFiller.js +0 -70
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +0 -42
- package/legacy/constants/defaultGridSlotsComponents.js +0 -33
- package/legacy/constants/envConstants.js +0 -19
- package/legacy/constants/gridClasses.js +0 -5
- package/legacy/constants/gridDetailPanelToggleField.js +0 -2
- package/legacy/constants/index.js +0 -3
- package/legacy/constants/localeTextConstants.js +0 -158
- package/legacy/context/GridContextProvider.js +0 -21
- package/legacy/context/GridRootPropsContext.js +0 -6
- package/legacy/context/index.js +0 -1
- package/legacy/hooks/core/gridCoreSelector.js +0 -7
- package/legacy/hooks/core/index.js +0 -1
- package/legacy/hooks/core/pipeProcessing/gridPipeProcessingApi.js +0 -1
- package/legacy/hooks/core/pipeProcessing/index.js +0 -4
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -114
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -26
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -26
- package/legacy/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +0 -1
- package/legacy/hooks/core/strategyProcessing/index.js +0 -3
- package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -18
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -116
- package/legacy/hooks/core/useGridApiInitialization.js +0 -124
- package/legacy/hooks/core/useGridInitialization.js +0 -26
- package/legacy/hooks/core/useGridLocaleText.js +0 -12
- package/legacy/hooks/core/useGridLoggerFactory.js +0 -51
- package/legacy/hooks/core/useGridRefs.js +0 -13
- package/legacy/hooks/core/useGridStateInitialization.js +0 -106
- package/legacy/hooks/core/useGridTheme.js +0 -21
- package/legacy/hooks/features/clipboard/useGridClipboard.js +0 -92
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js +0 -1
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -24
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -92
- package/legacy/hooks/features/columnGrouping/index.js +0 -2
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -140
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -275
- package/legacy/hooks/features/columnMenu/columnMenuInterfaces.js +0 -1
- package/legacy/hooks/features/columnMenu/columnMenuSelector.js +0 -3
- package/legacy/hooks/features/columnMenu/index.js +0 -2
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +0 -108
- package/legacy/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -71
- package/legacy/hooks/features/columns/gridColumnsInterfaces.js +0 -9
- package/legacy/hooks/features/columns/gridColumnsSelector.js +0 -174
- package/legacy/hooks/features/columns/gridColumnsUtils.js +0 -338
- package/legacy/hooks/features/columns/index.js +0 -2
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +0 -105
- package/legacy/hooks/features/columns/useGridColumns.js +0 -319
- package/legacy/hooks/features/density/densitySelector.js +0 -10
- package/legacy/hooks/features/density/densityState.js +0 -1
- package/legacy/hooks/features/density/index.js +0 -2
- package/legacy/hooks/features/density/useGridDensity.js +0 -48
- package/legacy/hooks/features/dimensions/gridDimensionsApi.js +0 -1
- package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +0 -3
- package/legacy/hooks/features/dimensions/index.js +0 -2
- package/legacy/hooks/features/dimensions/useGridDimensions.js +0 -302
- package/legacy/hooks/features/editing/gridEditingSelectors.js +0 -4
- package/legacy/hooks/features/editing/useGridCellEditing.js +0 -456
- package/legacy/hooks/features/editing/useGridEditing.js +0 -145
- package/legacy/hooks/features/editing/useGridRowEditing.js +0 -567
- package/legacy/hooks/features/events/useGridEvents.js +0 -23
- package/legacy/hooks/features/export/serializers/csvSerializer.js +0 -155
- package/legacy/hooks/features/export/useGridCsvExport.js +0 -75
- package/legacy/hooks/features/export/useGridPrintExport.js +0 -313
- package/legacy/hooks/features/export/utils.js +0 -49
- package/legacy/hooks/features/filter/gridFilterSelector.js +0 -165
- package/legacy/hooks/features/filter/gridFilterState.js +0 -20
- package/legacy/hooks/features/filter/gridFilterUtils.js +0 -330
- package/legacy/hooks/features/filter/index.js +0 -2
- package/legacy/hooks/features/filter/useGridFilter.js +0 -378
- package/legacy/hooks/features/focus/gridFocusState.js +0 -1
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +0 -31
- package/legacy/hooks/features/focus/index.js +0 -2
- package/legacy/hooks/features/focus/useGridFocus.js +0 -408
- package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -10
- package/legacy/hooks/features/headerFiltering/index.js +0 -1
- package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -93
- package/legacy/hooks/features/index.js +0 -16
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -565
- package/legacy/hooks/features/pagination/gridPaginationInterfaces.js +0 -1
- package/legacy/hooks/features/pagination/gridPaginationSelector.js +0 -115
- package/legacy/hooks/features/pagination/gridPaginationUtils.js +0 -31
- package/legacy/hooks/features/pagination/index.js +0 -2
- package/legacy/hooks/features/pagination/useGridPagination.js +0 -175
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -3
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelState.js +0 -1
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -6
- package/legacy/hooks/features/preferencesPanel/index.js +0 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -125
- package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -19
- package/legacy/hooks/features/rowSelection/index.js +0 -1
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +0 -419
- package/legacy/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -45
- package/legacy/hooks/features/rowSelection/utils.js +0 -8
- package/legacy/hooks/features/rows/gridRowsInterfaces.js +0 -1
- package/legacy/hooks/features/rows/gridRowsMetaSelector.js +0 -3
- package/legacy/hooks/features/rows/gridRowsMetaState.js +0 -1
- package/legacy/hooks/features/rows/gridRowsSelector.js +0 -90
- package/legacy/hooks/features/rows/gridRowsUtils.js +0 -294
- package/legacy/hooks/features/rows/index.js +0 -4
- package/legacy/hooks/features/rows/useGridParamsApi.js +0 -142
- package/legacy/hooks/features/rows/useGridRows.js +0 -466
- package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -236
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +0 -82
- package/legacy/hooks/features/scroll/useGridScroll.js +0 -133
- package/legacy/hooks/features/sorting/gridSortingSelector.js +0 -56
- package/legacy/hooks/features/sorting/gridSortingState.js +0 -1
- package/legacy/hooks/features/sorting/gridSortingUtils.js +0 -154
- package/legacy/hooks/features/sorting/index.js +0 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +0 -276
- package/legacy/hooks/features/statePersistence/gridStatePersistenceInterface.js +0 -1
- package/legacy/hooks/features/statePersistence/index.js +0 -1
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +0 -25
- package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -52
- package/legacy/hooks/features/virtualization/index.js +0 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -643
- package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -58
- package/legacy/hooks/index.js +0 -3
- package/legacy/hooks/utils/index.js +0 -9
- package/legacy/hooks/utils/useFirstRender.js +0 -8
- package/legacy/hooks/utils/useGridApiContext.js +0 -9
- package/legacy/hooks/utils/useGridApiEventHandler.js +0 -105
- package/legacy/hooks/utils/useGridApiMethod.js +0 -11
- package/legacy/hooks/utils/useGridApiRef.js +0 -7
- package/legacy/hooks/utils/useGridAriaAttributes.js +0 -25
- package/legacy/hooks/utils/useGridInitializeState.js +0 -8
- package/legacy/hooks/utils/useGridLogger.js +0 -10
- package/legacy/hooks/utils/useGridNativeEventListener.js +0 -32
- package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -12
- package/legacy/hooks/utils/useGridRootProps.js +0 -9
- package/legacy/hooks/utils/useGridSelector.js +0 -54
- package/legacy/hooks/utils/useGridVisibleRows.js +0 -42
- package/legacy/hooks/utils/useLazyRef.js +0 -11
- package/legacy/hooks/utils/useOnMount.js +0 -7
- package/legacy/hooks/utils/useResizeObserver.js +0 -36
- package/legacy/hooks/utils/useRunOnce.js +0 -18
- package/legacy/hooks/utils/useTimeout.js +0 -38
- package/legacy/index.js +0 -38
- package/legacy/internals/index.js +0 -68
- package/legacy/internals/utils/computeSlots.js +0 -17
- package/legacy/internals/utils/index.js +0 -3
- package/legacy/internals/utils/propValidation.js +0 -21
- package/legacy/internals/utils/useProps.js +0 -32
- package/legacy/joy/icons.js +0 -432
- package/legacy/joy/index.js +0 -2
- package/legacy/joy/joySlots.js +0 -420
- package/legacy/locales/arSD.js +0 -160
- package/legacy/locales/beBY.js +0 -184
- package/legacy/locales/bgBG.js +0 -160
- package/legacy/locales/coreLocales.js +0 -62
- package/legacy/locales/csCZ.js +0 -181
- package/legacy/locales/daDK.js +0 -160
- package/legacy/locales/deDE.js +0 -160
- package/legacy/locales/elGR.js +0 -160
- package/legacy/locales/enUS.js +0 -4
- package/legacy/locales/esES.js +0 -160
- package/legacy/locales/faIR.js +0 -160
- package/legacy/locales/fiFI.js +0 -160
- package/legacy/locales/frFR.js +0 -160
- package/legacy/locales/heIL.js +0 -160
- package/legacy/locales/hrHR.js +0 -160
- package/legacy/locales/huHU.js +0 -160
- package/legacy/locales/index.js +0 -35
- package/legacy/locales/itIT.js +0 -160
- package/legacy/locales/jaJP.js +0 -160
- package/legacy/locales/koKR.js +0 -162
- package/legacy/locales/nbNO.js +0 -162
- package/legacy/locales/nlNL.js +0 -160
- package/legacy/locales/plPL.js +0 -163
- package/legacy/locales/ptBR.js +0 -160
- package/legacy/locales/ptPT.js +0 -160
- package/legacy/locales/roRO.js +0 -160
- package/legacy/locales/ruRU.js +0 -181
- package/legacy/locales/skSK.js +0 -181
- package/legacy/locales/svSE.js +0 -160
- package/legacy/locales/trTR.js +0 -161
- package/legacy/locales/ukUA.js +0 -182
- package/legacy/locales/urPK.js +0 -160
- package/legacy/locales/viVN.js +0 -160
- package/legacy/locales/zhCN.js +0 -160
- package/legacy/locales/zhHK.js +0 -160
- package/legacy/locales/zhTW.js +0 -160
- package/legacy/material/components/MUISelectOption.js +0 -14
- package/legacy/material/icons/GridColumnUnsortedIcon.js +0 -16
- package/legacy/material/icons/index.js +0 -89
- package/legacy/material/index.js +0 -69
- package/legacy/models/api/gridApiCommon.js +0 -1
- package/legacy/models/api/gridApiCommunity.js +0 -1
- package/legacy/models/api/gridCallbackDetails.js +0 -1
- package/legacy/models/api/gridColumnApi.js +0 -1
- package/legacy/models/api/gridColumnGroupingApi.js +0 -1
- package/legacy/models/api/gridColumnMenuApi.js +0 -1
- package/legacy/models/api/gridColumnSpanning.js +0 -1
- package/legacy/models/api/gridCoreApi.js +0 -1
- package/legacy/models/api/gridCsvExportApi.js +0 -1
- package/legacy/models/api/gridDensityApi.js +0 -1
- package/legacy/models/api/gridEditingApi.js +0 -1
- package/legacy/models/api/gridFilterApi.js +0 -1
- package/legacy/models/api/gridFocusApi.js +0 -1
- package/legacy/models/api/gridHeaderFilteringApi.js +0 -1
- package/legacy/models/api/gridLocaleTextApi.js +0 -1
- package/legacy/models/api/gridLoggerApi.js +0 -1
- package/legacy/models/api/gridParamsApi.js +0 -1
- package/legacy/models/api/gridPreferencesPanelApi.js +0 -1
- package/legacy/models/api/gridPrintExportApi.js +0 -1
- package/legacy/models/api/gridRowApi.js +0 -1
- package/legacy/models/api/gridRowSelectionApi.js +0 -1
- package/legacy/models/api/gridRowsMetaApi.js +0 -1
- package/legacy/models/api/gridScrollApi.js +0 -1
- package/legacy/models/api/gridSortApi.js +0 -1
- package/legacy/models/api/gridStateApi.js +0 -1
- package/legacy/models/api/gridVirtualizationApi.js +0 -1
- package/legacy/models/api/index.js +0 -16
- package/legacy/models/colDef/gridColDef.js +0 -1
- package/legacy/models/colDef/gridColType.js +0 -1
- package/legacy/models/colDef/gridColumnTypesRecord.js +0 -1
- package/legacy/models/colDef/index.js +0 -6
- package/legacy/models/controlStateItem.js +0 -1
- package/legacy/models/cursorCoordinates.js +0 -1
- package/legacy/models/elementSize.js +0 -1
- package/legacy/models/events/gridEventListener.js +0 -1
- package/legacy/models/events/gridEventLookup.js +0 -1
- package/legacy/models/events/gridEventPublisher.js +0 -1
- package/legacy/models/events/index.js +0 -3
- package/legacy/models/gridApiCaches.js +0 -1
- package/legacy/models/gridCell.js +0 -1
- package/legacy/models/gridCellClass.js +0 -1
- package/legacy/models/gridColumnGrouping.js +0 -11
- package/legacy/models/gridColumnHeaderClass.js +0 -1
- package/legacy/models/gridColumnSpanning.js +0 -1
- package/legacy/models/gridDensity.js +0 -1
- package/legacy/models/gridEditRowModel.js +0 -16
- package/legacy/models/gridExport.js +0 -1
- package/legacy/models/gridFeatureMode.js +0 -1
- package/legacy/models/gridFilterItem.js +0 -11
- package/legacy/models/gridFilterModel.js +0 -1
- package/legacy/models/gridFilterOperator.js +0 -1
- package/legacy/models/gridHeaderFilteringModel.js +0 -1
- package/legacy/models/gridIconSlotsComponent.js +0 -1
- package/legacy/models/gridPaginationProps.js +0 -1
- package/legacy/models/gridRenderContextProps.js +0 -1
- package/legacy/models/gridRowSelectionModel.js +0 -1
- package/legacy/models/gridRows.js +0 -1
- package/legacy/models/gridSlotsComponent.js +0 -1
- package/legacy/models/gridSlotsComponentsProps.js +0 -1
- package/legacy/models/gridSortModel.js +0 -1
- package/legacy/models/gridStateCommunity.js +0 -1
- package/legacy/models/index.js +0 -29
- package/legacy/models/logger.js +0 -1
- package/legacy/models/muiEvent.js +0 -1
- package/legacy/models/params/gridCellParams.js +0 -1
- package/legacy/models/params/gridColumnGroupHeaderParams.js +0 -1
- package/legacy/models/params/gridColumnHeaderParams.js +0 -1
- package/legacy/models/params/gridColumnOrderChangeParams.js +0 -1
- package/legacy/models/params/gridColumnResizeParams.js +0 -1
- package/legacy/models/params/gridEditCellParams.js +0 -27
- package/legacy/models/params/gridHeaderSelectionCheckboxParams.js +0 -1
- package/legacy/models/params/gridMenuParams.js +0 -1
- package/legacy/models/params/gridPreferencePanelParams.js +0 -1
- package/legacy/models/params/gridRowParams.js +0 -44
- package/legacy/models/params/gridRowSelectionCheckboxParams.js +0 -1
- package/legacy/models/params/gridScrollParams.js +0 -1
- package/legacy/models/params/gridValueOptionsParams.js +0 -1
- package/legacy/models/params/index.js +0 -13
- package/legacy/models/props/DataGridProps.js +0 -1
- package/legacy/themeAugmentation/index.js +0 -4
- package/legacy/themeAugmentation/overrides.js +0 -1
- package/legacy/themeAugmentation/props.js +0 -1
- package/legacy/utils/EventManager.js +0 -91
- package/legacy/utils/Store.js +0 -34
- package/legacy/utils/cleanupTracking/CleanupTracking.js +0 -1
- package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
- package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
- package/legacy/utils/createControllablePromise.js +0 -11
- package/legacy/utils/createSelector.js +0 -120
- package/legacy/utils/doesSupportPreventScroll.js +0 -13
- package/legacy/utils/domUtils.js +0 -49
- package/legacy/utils/exportAs.js +0 -40
- package/legacy/utils/fastMemo.js +0 -5
- package/legacy/utils/fastObjectShallowCompare.js +0 -32
- package/legacy/utils/getGridLocalization.js +0 -15
- package/legacy/utils/getPublicApiRef.js +0 -5
- package/legacy/utils/index.js +0 -1
- package/legacy/utils/keyboardUtils.js +0 -60
- package/legacy/utils/utils.js +0 -189
- package/legacy/utils/warning.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,221 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## 7.0.0-beta.4
|
|
7
|
+
|
|
8
|
+
_Feb 23, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
|
|
13
|
+
- 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
|
|
14
|
+
- 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Breaking changes
|
|
19
|
+
|
|
20
|
+
- The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### Breaking changes
|
|
25
|
+
|
|
26
|
+
- The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid@7.0.0-beta.4`
|
|
29
|
+
|
|
30
|
+
- [DataGrid] Simplify cell DOM structure (#12013) @romgrk
|
|
31
|
+
- [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
40
|
+
|
|
41
|
+
### Date Pickers
|
|
42
|
+
|
|
43
|
+
#### Breaking changes
|
|
44
|
+
|
|
45
|
+
- The `selectedSections` prop no longer accepts start and end indexes.
|
|
46
|
+
When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
|
|
47
|
+
|
|
48
|
+
```diff
|
|
49
|
+
<DateField
|
|
50
|
+
- selectedSections={{ startIndex: 0, endIndex: 0 }}
|
|
51
|
+
+ selectedSections={0}
|
|
52
|
+
|
|
53
|
+
// If the field has 3 sections
|
|
54
|
+
- selectedSections={{ startIndex: 0, endIndex: 2 }}
|
|
55
|
+
+ selectedSections="all"
|
|
56
|
+
/>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
60
|
+
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
|
|
61
|
+
|
|
62
|
+
When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
|
|
63
|
+
|
|
64
|
+
```diff
|
|
65
|
+
function MyCustomTextField(props) {
|
|
66
|
+
const {
|
|
67
|
+
+ // Should be ignored
|
|
68
|
+
+ enableAccessibleFieldDOMStructure,
|
|
69
|
+
// ... rest of the props you are using
|
|
70
|
+
} = props;
|
|
71
|
+
|
|
72
|
+
return ( /* Some UI to edit the date */ )
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function MyCustomField(props) {
|
|
76
|
+
const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
|
|
77
|
+
...props,
|
|
78
|
+
+ // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
|
|
79
|
+
+ enableAccessibleFieldDOMStructure: false,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return <MyCustomTextField ref={ref} {...fieldResponse} />;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function App() {
|
|
86
|
+
return <DatePicker slots={{ field: MyCustomField }} />;
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
- The following internal types were exported by mistake and have been removed from the public API:
|
|
91
|
+
|
|
92
|
+
- `UseDateFieldDefaultizedProps`
|
|
93
|
+
- `UseTimeFieldDefaultizedProps`
|
|
94
|
+
- `UseDateTimeFieldDefaultizedProps`
|
|
95
|
+
- `UseSingleInputDateRangeFieldComponentProps`
|
|
96
|
+
- `UseSingleInputTimeRangeFieldComponentProps`
|
|
97
|
+
- `UseSingleInputDateTimeRangeFieldComponentProps`
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-date-pickers@7.0.0-beta.4`
|
|
100
|
+
|
|
101
|
+
- [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
|
|
102
|
+
- [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
|
|
103
|
+
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
|
|
104
|
+
|
|
105
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
106
|
+
|
|
107
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
|
|
108
|
+
|
|
109
|
+
### Charts / `@mui/x-charts@7.0.0-beta.4`
|
|
110
|
+
|
|
111
|
+
#### Breaking changes
|
|
112
|
+
|
|
113
|
+
These components are no longer exported from `@mui/x-charts`:
|
|
114
|
+
|
|
115
|
+
- `CartesianContextProvider`
|
|
116
|
+
- `DrawingProvider`
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-charts@7.0.0-beta.4`
|
|
119
|
+
|
|
120
|
+
- [charts] Don't display text if no value is provided (#12127) @alexfauquette
|
|
121
|
+
- [charts] Remove export of context providers (#12123) @oliviertassinari
|
|
122
|
+
|
|
123
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
|
|
124
|
+
|
|
125
|
+
- [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
|
|
126
|
+
|
|
127
|
+
### Docs
|
|
128
|
+
|
|
129
|
+
- [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
|
|
130
|
+
- [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
|
|
131
|
+
- [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
|
|
132
|
+
- [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
|
|
133
|
+
- [docs] Fix "Licensing" page link (#12156) @LukasTy
|
|
134
|
+
- [docs] Fix the Treemap illustration (#12185) @danilo-leal
|
|
135
|
+
- [docs] Fix error raised by Grammarly on the page @oliviertassinari
|
|
136
|
+
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
137
|
+
- [docs] Link to React Transition Group with https @oliviertassinari
|
|
138
|
+
- [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
|
|
139
|
+
- [docs] Reduce number of Vale errors @oliviertassinari
|
|
140
|
+
- [docs] Remove default value set to `undefined` (#12128) @alexfauquette
|
|
141
|
+
|
|
142
|
+
### Core
|
|
143
|
+
|
|
144
|
+
- [core] Fix docs link check (#12135) @LukasTy
|
|
145
|
+
- [core] Fix missing context display names (#12124) @oliviertassinari
|
|
146
|
+
- [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
|
|
147
|
+
- [core] Remove IE 11 compat logic (#12119) @oliviertassinari
|
|
148
|
+
- [core] Simplify key utils (#12120) @oliviertassinari
|
|
149
|
+
- [core] Use the @mui/internal-scripts package (#12142) @michaldudak
|
|
150
|
+
- [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
|
|
151
|
+
- [code-infra] Bump monorepo (#11880) @Janpot
|
|
152
|
+
- [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
|
|
153
|
+
- [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
|
|
154
|
+
- [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
|
|
155
|
+
|
|
156
|
+
## 7.0.0-beta.3
|
|
157
|
+
|
|
158
|
+
_Feb 16, 2024_
|
|
159
|
+
|
|
160
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
161
|
+
|
|
162
|
+
- 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
|
|
163
|
+
|
|
164
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
|
|
165
|
+
|
|
166
|
+
- 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
|
|
167
|
+
|
|
168
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
|
|
169
|
+
|
|
170
|
+
- 🐞 Bugfixes
|
|
171
|
+
|
|
172
|
+
- 📚 Documentation improvements
|
|
173
|
+
|
|
174
|
+
### Data Grid
|
|
175
|
+
|
|
176
|
+
#### Breaking changes
|
|
177
|
+
|
|
178
|
+
- The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-data-grid@7.0.0-beta.3`
|
|
181
|
+
|
|
182
|
+
- [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
|
|
183
|
+
- [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
|
|
184
|
+
- [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
187
|
+
|
|
188
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
|
|
189
|
+
|
|
190
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
191
|
+
|
|
192
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
|
|
193
|
+
|
|
194
|
+
### Charts / `@mui/x-charts@7.0.0-beta.3`
|
|
195
|
+
|
|
196
|
+
- [charts] Add Gauge component (#11996) @alexfauquette
|
|
197
|
+
- [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
|
|
198
|
+
|
|
199
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
|
|
200
|
+
|
|
201
|
+
- [TreeView] Remove instance existence checks (#12066) @flaviendelangle
|
|
202
|
+
|
|
203
|
+
### Docs
|
|
204
|
+
|
|
205
|
+
- [docs] Complete charts API pages (#12038) @alexfauquette
|
|
206
|
+
- [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
|
|
207
|
+
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
|
|
208
|
+
- [docs] Fix Tree space to match the reset of the docs @oliviertassinari
|
|
209
|
+
- [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
|
|
210
|
+
- [docs] Fix redirection @oliviertassinari
|
|
211
|
+
- [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
|
|
212
|
+
- [docs] Removed `focused` prop from demo (#12092) @michelengelen
|
|
213
|
+
|
|
214
|
+
### Core
|
|
215
|
+
|
|
216
|
+
- [core] Fix CodeSandbox CI template @oliviertassinari
|
|
217
|
+
- [core] Sort prop asc (#12033) @oliviertassinari
|
|
218
|
+
- [core] Bump monorepo (#12055) @alexfauquette
|
|
219
|
+
|
|
220
|
+
## 7.0.0-beta.2
|
|
7
221
|
|
|
8
222
|
_Feb 9, 2024_
|
|
9
223
|
|
|
@@ -17,7 +231,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
17
231
|
|
|
18
232
|
### Data Grid
|
|
19
233
|
|
|
20
|
-
#### `@mui/x-data-grid@
|
|
234
|
+
#### `@mui/x-data-grid@7.0.0-beta.2`
|
|
21
235
|
|
|
22
236
|
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
237
|
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
@@ -27,35 +241,35 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
27
241
|
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
242
|
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
243
|
|
|
30
|
-
#### `@mui/x-data-grid-pro@
|
|
244
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
245
|
|
|
32
246
|
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
247
|
|
|
34
248
|
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
249
|
|
|
36
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
250
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
|
|
37
251
|
|
|
38
252
|
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
253
|
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
254
|
|
|
41
255
|
### Date Pickers
|
|
42
256
|
|
|
43
|
-
#### `@mui/x-date-pickers@
|
|
257
|
+
#### `@mui/x-date-pickers@7.0.0-beta.2`
|
|
44
258
|
|
|
45
259
|
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
260
|
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
261
|
|
|
48
|
-
#### `@mui/x-date-pickers-pro@
|
|
262
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
263
|
|
|
50
|
-
Same changes as in `@mui/x-date-pickers@
|
|
264
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
|
|
51
265
|
|
|
52
|
-
### Charts / `@mui/x-charts@
|
|
266
|
+
### Charts / `@mui/x-charts@7.0.0-beta.2`
|
|
53
267
|
|
|
54
268
|
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
269
|
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
270
|
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
271
|
|
|
58
|
-
### Tree View / `@mui/x-tree-view@
|
|
272
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
|
|
59
273
|
|
|
60
274
|
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
275
|
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
@@ -71,7 +285,7 @@ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
|
71
285
|
+import { LicenseInfo } from '@mui/x-license';
|
|
72
286
|
```
|
|
73
287
|
|
|
74
|
-
`@mui/x-license@
|
|
288
|
+
`@mui/x-license@7.0.0-beta.2`
|
|
75
289
|
|
|
76
290
|
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
291
|
|
|
@@ -272,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
|
272
486
|
|
|
273
487
|
_Jan 26, 2024_
|
|
274
488
|
|
|
275
|
-
We are glad to announce MUI
|
|
489
|
+
We are glad to announce MUI X v7 beta!
|
|
276
490
|
This version has several improvements, bug fixes, and exciting features 🎉.
|
|
277
491
|
We want to offer a big thanks to the 7 contributors who made this release possible ✨:
|
|
278
492
|
|
|
@@ -1289,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
1289
1503
|
|
|
1290
1504
|
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
1291
1505
|
|
|
1292
|
-
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#
|
|
1506
|
+
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
|
|
1293
1507
|
|
|
1294
1508
|
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
1295
1509
|
|
|
@@ -2138,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2138
2352
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2139
2353
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2140
2354
|
|
|
2141
|
-
##
|
|
2355
|
+
## 6.19.5
|
|
2356
|
+
|
|
2357
|
+
_Feb 23, 2024_
|
|
2358
|
+
|
|
2359
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2360
|
+
|
|
2361
|
+
- 🐞 Bugfixes
|
|
2362
|
+
- 📚 Documentation improvements
|
|
2363
|
+
|
|
2364
|
+
### Data Grid
|
|
2365
|
+
|
|
2366
|
+
#### `@mui/x-data-grid@6.19.5`
|
|
2367
|
+
|
|
2368
|
+
- [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
|
|
2369
|
+
|
|
2370
|
+
#### `@mui/x-data-grid-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2371
|
+
|
|
2372
|
+
Same changes as in `@mui/x-data-grid@6.19.5`.
|
|
2373
|
+
|
|
2374
|
+
#### `@mui/x-data-grid-premium@6.19.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2375
|
+
|
|
2376
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.5`.
|
|
2377
|
+
|
|
2378
|
+
### Date Pickers
|
|
2379
|
+
|
|
2380
|
+
#### `@mui/x-date-pickers@6.19.5`
|
|
2381
|
+
|
|
2382
|
+
- [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
|
|
2383
|
+
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
|
|
2384
|
+
|
|
2385
|
+
#### `@mui/x-date-pickers-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2386
|
+
|
|
2387
|
+
Same changes as in `@mui/x-date-pickers@6.19.5`.
|
|
2388
|
+
|
|
2389
|
+
### Charts / `@mui/x-charts@6.19.5`
|
|
2390
|
+
|
|
2391
|
+
- [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
|
|
2392
|
+
|
|
2393
|
+
### Docs
|
|
2394
|
+
|
|
2395
|
+
- [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
|
|
2396
|
+
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
|
|
2397
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
2398
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
2399
|
+
- [docs] Fix 404 links to translation source @oliviertassinari
|
|
2400
|
+
- [docs] Fix dead link to translations @oliviertassinari
|
|
2401
|
+
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
|
|
2402
|
+
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
|
|
2403
|
+
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
2404
|
+
- [docs] Move Heatmap to pro (#12170) @alexfauquette
|
|
2405
|
+
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
|
|
2406
|
+
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
|
|
2407
|
+
- [docs] Add missing Heatmap pro icon @oliviertassinari
|
|
2408
|
+
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
|
|
2409
|
+
- [docs] Avoid use of shorthand (#12009) @oliviertassinari
|
|
2410
|
+
|
|
2411
|
+
### Core
|
|
2412
|
+
|
|
2413
|
+
- [core] Fix CI @oliviertassinari
|
|
2414
|
+
- [core] Fix docs link check (#12137) @LukasTy
|
|
2415
|
+
|
|
2416
|
+
## 6.19.4
|
|
2142
2417
|
|
|
2143
2418
|
_Feb 9, 2024_
|
|
2144
2419
|
|
|
@@ -2150,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2150
2425
|
|
|
2151
2426
|
### Data Grid
|
|
2152
2427
|
|
|
2153
|
-
#### `@mui/x-data-grid@
|
|
2428
|
+
#### `@mui/x-data-grid@6.19.4`
|
|
2154
2429
|
|
|
2155
2430
|
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2156
2431
|
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
@@ -2158,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2158
2433
|
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2159
2434
|
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2160
2435
|
|
|
2161
|
-
#### `@mui/x-data-grid-pro@
|
|
2436
|
+
#### `@mui/x-data-grid-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2162
2437
|
|
|
2163
|
-
Same changes as in `@mui/x-data-grid@
|
|
2438
|
+
Same changes as in `@mui/x-data-grid@6.19.4`.
|
|
2164
2439
|
|
|
2165
|
-
#### `@mui/x-data-grid-premium@
|
|
2440
|
+
#### `@mui/x-data-grid-premium@6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2166
2441
|
|
|
2167
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
2442
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
|
|
2168
2443
|
|
|
2169
2444
|
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2170
2445
|
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2171
2446
|
|
|
2172
2447
|
### Date Pickers
|
|
2173
2448
|
|
|
2174
|
-
#### `@mui/x-date-pickers@
|
|
2449
|
+
#### `@mui/x-date-pickers@6.19.4`
|
|
2175
2450
|
|
|
2176
2451
|
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2177
2452
|
|
|
2178
|
-
#### `@mui/x-date-pickers-pro@
|
|
2453
|
+
#### `@mui/x-date-pickers-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2179
2454
|
|
|
2180
|
-
Same changes as in `@mui/x-date-pickers@
|
|
2455
|
+
Same changes as in `@mui/x-date-pickers@6.19.4`.
|
|
2181
2456
|
|
|
2182
|
-
### Charts / `@mui/x-charts@
|
|
2457
|
+
### Charts / `@mui/x-charts@6.19.4`
|
|
2183
2458
|
|
|
2184
2459
|
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2185
2460
|
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
@@ -2240,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
|
2240
2515
|
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2241
2516
|
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2242
2517
|
- [docs] Sync support page with core @oliviertassinari
|
|
2243
|
-
- [docs] These API don't exist in MUI
|
|
2518
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2244
2519
|
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2245
2520
|
|
|
2246
2521
|
## 6.19.2
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -493,12 +493,6 @@ DataGridRaw.propTypes = {
|
|
|
493
493
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
494
494
|
*/
|
|
495
495
|
onRowDoubleClick: PropTypes.func,
|
|
496
|
-
/**
|
|
497
|
-
* Callback fired when the row changes are committed.
|
|
498
|
-
* @param {GridRowId} id The row id.
|
|
499
|
-
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
500
|
-
*/
|
|
501
|
-
onRowEditCommit: PropTypes.func,
|
|
502
496
|
/**
|
|
503
497
|
* Callback fired when the row turns to edit mode.
|
|
504
498
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -19,6 +19,7 @@ export const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF
|
|
|
19
19
|
disableReorder: true,
|
|
20
20
|
disableExport: true,
|
|
21
21
|
getApplyQuickFilterFn: undefined,
|
|
22
|
+
display: 'flex',
|
|
22
23
|
valueGetter: (value, row, column, apiRef) => {
|
|
23
24
|
const selectionLookup = selectedIdsLookupSelector(apiRef);
|
|
24
25
|
const rowId = apiRef.current.getRowId(row);
|
package/components/GridRow.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { GridRowId, GridRowModel } from '../models/gridRows';
|
|
3
3
|
import type { GridPinnedColumns } from '../hooks/features/columns';
|
|
4
4
|
import type { GridStateColDef } from '../models/colDef/gridColDef';
|
|
5
|
-
import {
|
|
5
|
+
import type { GridVirtualizationState } from '../hooks/features/virtualization';
|
|
6
|
+
import type { GridDimensions } from '../hooks/features/dimensions';
|
|
6
7
|
export interface GridRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
8
|
rowId: GridRowId;
|
|
8
9
|
selected: boolean;
|
|
@@ -12,6 +13,7 @@ export interface GridRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
13
|
*/
|
|
13
14
|
index: number;
|
|
14
15
|
rowHeight: number | 'auto';
|
|
16
|
+
offsets: GridVirtualizationState['offsets'];
|
|
15
17
|
dimensions: GridDimensions;
|
|
16
18
|
firstColumnToRender: number;
|
|
17
19
|
lastColumnToRender: number;
|
package/components/GridRow.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["selected", "rowId", "row", "index", "style", "rowHeight", "className", "visibleColumns", "renderedColumns", "pinnedColumns", "dimensions", "firstColumnToRender", "lastColumnToRender", "isFirstVisible", "isLastVisible", "focusedCellColumnIndexNotInRange", "isNotVisible", "focusedCell", "tabbableCell", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver"];
|
|
3
|
+
const _excluded = ["selected", "rowId", "row", "index", "style", "rowHeight", "className", "visibleColumns", "renderedColumns", "pinnedColumns", "offsets", "dimensions", "firstColumnToRender", "lastColumnToRender", "isFirstVisible", "isLastVisible", "focusedCellColumnIndexNotInRange", "isNotVisible", "focusedCell", "tabbableCell", "onClick", "onDoubleClick", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -67,6 +67,7 @@ const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
|
|
|
67
67
|
visibleColumns,
|
|
68
68
|
renderedColumns,
|
|
69
69
|
pinnedColumns,
|
|
70
|
+
offsets,
|
|
70
71
|
dimensions,
|
|
71
72
|
firstColumnToRender,
|
|
72
73
|
isFirstVisible,
|
|
@@ -364,8 +365,11 @@ const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
|
|
|
364
365
|
style: style
|
|
365
366
|
}, eventHandlers, other, {
|
|
366
367
|
children: [leftCells, /*#__PURE__*/_jsx("div", {
|
|
368
|
+
role: "presentation",
|
|
367
369
|
className: gridClasses.cellOffsetLeft,
|
|
368
|
-
|
|
370
|
+
style: {
|
|
371
|
+
width: offsets.left
|
|
372
|
+
}
|
|
369
373
|
}), cells, emptyCellWidth > 0 && /*#__PURE__*/_jsx(EmptyCell, {
|
|
370
374
|
width: emptyCellWidth
|
|
371
375
|
}), rightCells.length > 0 && /*#__PURE__*/_jsx("div", {
|
|
@@ -434,6 +438,10 @@ process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
|
|
|
434
438
|
isLastVisible: PropTypes.bool.isRequired,
|
|
435
439
|
isNotVisible: PropTypes.bool,
|
|
436
440
|
lastColumnToRender: PropTypes.number.isRequired,
|
|
441
|
+
offsets: PropTypes.shape({
|
|
442
|
+
left: PropTypes.number.isRequired,
|
|
443
|
+
top: PropTypes.number.isRequired
|
|
444
|
+
}).isRequired,
|
|
437
445
|
onClick: PropTypes.func,
|
|
438
446
|
onDoubleClick: PropTypes.func,
|
|
439
447
|
onMouseEnter: PropTypes.func,
|
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
-
import { getDataGridUtilityClass as getClassName } from '../constants';
|
|
3
|
+
import { gridClasses } from '../constants';
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
5
|
const classes = {
|
|
7
|
-
root:
|
|
8
|
-
header:
|
|
9
|
-
borderTop:
|
|
10
|
-
pinnedRight:
|
|
6
|
+
root: gridClasses.scrollbarFiller,
|
|
7
|
+
header: gridClasses['scrollbarFiller--header'],
|
|
8
|
+
borderTop: gridClasses['scrollbarFiller--borderTop'],
|
|
9
|
+
pinnedRight: gridClasses['scrollbarFiller--pinnedRight']
|
|
11
10
|
};
|
|
12
|
-
const Style = styled('div')({
|
|
13
|
-
minWidth: 'calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))',
|
|
14
|
-
alignSelf: 'stretch',
|
|
15
|
-
[`&.${classes.borderTop}`]: {
|
|
16
|
-
borderTop: '1px solid var(--DataGrid-rowBorderColor)'
|
|
17
|
-
},
|
|
18
|
-
[`&.${classes.pinnedRight}`]: {
|
|
19
|
-
backgroundColor: 'var(--DataGrid-pinnedBackground)'
|
|
20
|
-
},
|
|
21
|
-
[`&.${classes.pinnedRight}:not(.${classes.header})`]: {
|
|
22
|
-
position: 'sticky',
|
|
23
|
-
right: 0
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
11
|
function GridScrollbarFillerCell({
|
|
27
12
|
header,
|
|
28
13
|
borderTop = true,
|
|
29
14
|
pinnedRight
|
|
30
15
|
}) {
|
|
31
|
-
return /*#__PURE__*/_jsx(
|
|
16
|
+
return /*#__PURE__*/_jsx("div", {
|
|
32
17
|
role: "presentation",
|
|
33
18
|
className: clsx(classes.root, header && classes.header, borderTop && classes.borderTop, pinnedRight && classes.pinnedRight)
|
|
34
19
|
});
|
|
@@ -58,8 +58,7 @@ const useUtilityClasses = ownerState => {
|
|
|
58
58
|
classes
|
|
59
59
|
} = ownerState;
|
|
60
60
|
const slots = {
|
|
61
|
-
root: ['cell', `cell--text${capitalize(align)}`, isSelected && 'selected', isEditable && 'cell--editable', showLeftBorder && 'cell--withLeftBorder', showRightBorder && 'cell--withRightBorder', pinnedPosition === PinnedPosition.LEFT && 'cell--pinnedLeft', pinnedPosition === PinnedPosition.RIGHT && 'cell--pinnedRight', isSelectionMode && !isEditable && 'cell--selectionMode']
|
|
62
|
-
content: ['cellContent']
|
|
61
|
+
root: ['cell', `cell--text${capitalize(align)}`, isSelected && 'selected', isEditable && 'cell--editable', showLeftBorder && 'cell--withLeftBorder', showRightBorder && 'cell--withRightBorder', pinnedPosition === PinnedPosition.LEFT && 'cell--pinnedLeft', pinnedPosition === PinnedPosition.RIGHT && 'cell--pinnedRight', isSelectionMode && !isEditable && 'cell--selectionMode']
|
|
63
62
|
};
|
|
64
63
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
65
64
|
};
|
|
@@ -140,6 +139,9 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
140
139
|
if (column.cellClassName) {
|
|
141
140
|
classNames.push(typeof column.cellClassName === 'function' ? column.cellClassName(cellParamsWithAPI) : column.cellClassName);
|
|
142
141
|
}
|
|
142
|
+
if (column.display === 'flex') {
|
|
143
|
+
classNames.push(gridClasses['cell--flex']);
|
|
144
|
+
}
|
|
143
145
|
if (getCellClassName) {
|
|
144
146
|
classNames.push(getCellClassName(cellParamsWithAPI));
|
|
145
147
|
}
|
|
@@ -248,12 +250,11 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
248
250
|
};
|
|
249
251
|
}
|
|
250
252
|
let children;
|
|
251
|
-
|
|
253
|
+
let title;
|
|
254
|
+
if (editCellState === null && column.renderCell) {
|
|
252
255
|
children = column.renderCell(cellParamsWithAPI);
|
|
253
|
-
classNames.push(gridClasses['cell--withRenderer']);
|
|
254
|
-
classNames.push(rootClasses == null ? void 0 : rootClasses['cell--withRenderer']);
|
|
255
256
|
}
|
|
256
|
-
if (editCellState
|
|
257
|
+
if (editCellState !== null && column.renderEditCell) {
|
|
257
258
|
const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column.field);
|
|
258
259
|
|
|
259
260
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -267,12 +268,8 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
267
268
|
}
|
|
268
269
|
if (children === undefined) {
|
|
269
270
|
const valueString = valueToRender == null ? void 0 : valueToRender.toString();
|
|
270
|
-
children =
|
|
271
|
-
|
|
272
|
-
title: valueString,
|
|
273
|
-
role: "presentation",
|
|
274
|
-
children: valueString
|
|
275
|
-
});
|
|
271
|
+
children = valueString;
|
|
272
|
+
title = valueString;
|
|
276
273
|
}
|
|
277
274
|
if ( /*#__PURE__*/React.isValidElement(children) && canManageOwnFocus) {
|
|
278
275
|
children = /*#__PURE__*/React.cloneElement(children, {
|
|
@@ -292,6 +289,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
292
289
|
"aria-colindex": colIndex + 1,
|
|
293
290
|
"aria-colspan": colSpan,
|
|
294
291
|
style: style,
|
|
292
|
+
title: title,
|
|
295
293
|
tabIndex: tabIndex,
|
|
296
294
|
onClick: publish('cellClick', onClick),
|
|
297
295
|
onDoubleClick: publish('cellDoubleClick', onDoubleClick),
|
|
@@ -4,7 +4,6 @@ const _excluded = ["field", "id", "value", "formattedValue", "row", "rowNode", "
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { unstable_composeClasses as composeClasses, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
7
|
-
import { isSpaceKey } from '../../utils/keyboardUtils';
|
|
8
7
|
import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
|
|
9
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
10
9
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
@@ -64,7 +63,7 @@ const GridCellCheckboxForwardRef = /*#__PURE__*/React.forwardRef(function GridCe
|
|
|
64
63
|
}
|
|
65
64
|
}, [hasFocus]);
|
|
66
65
|
const handleKeyDown = React.useCallback(event => {
|
|
67
|
-
if (
|
|
66
|
+
if (event.key === ' ') {
|
|
68
67
|
// We call event.stopPropagation to avoid selecting the row and also scrolling to bottom
|
|
69
68
|
// TODO: Remove and add a check inside useGridKeyboardNavigation
|
|
70
69
|
event.stopPropagation();
|