@mui/x-data-grid 7.0.0-beta.3 → 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 +226 -15
- package/colDef/gridActionsColDef.js +1 -0
- package/colDef/gridBooleanColDef.js +1 -0
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- 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 +50 -19
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/constants/gridClasses.d.ts +24 -8
- package/constants/gridClasses.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +1 -1
- 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/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/modern/colDef/gridActionsColDef.js +1 -0
- package/modern/colDef/gridBooleanColDef.js +1 -0
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
- 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 +50 -19
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
- 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/index.js +1 -1
- package/modern/internals/index.js +1 -1
- package/modern/utils/keyboardUtils.js +20 -11
- package/node/colDef/gridActionsColDef.js +1 -0
- package/node/colDef/gridBooleanColDef.js +1 -0
- package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
- 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 +50 -19
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
- 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/index.js +1 -1
- package/node/internals/index.js +7 -0
- package/node/utils/keyboardUtils.js +25 -20
- package/package.json +1 -1
- package/utils/keyboardUtils.d.ts +7 -6
- package/utils/keyboardUtils.js +20 -11
- package/legacy/DataGrid/DataGrid.js +0 -664
- 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 -465
- 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 -395
- 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 -118
- 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 -149
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -106
- 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 -49
- 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 -272
- 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 -61
- package/legacy/hooks/features/virtualization/index.js +0 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -646
- package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -63
- 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,157 @@
|
|
|
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
|
|
7
157
|
|
|
8
158
|
_Feb 16, 2024_
|
|
9
159
|
|
|
@@ -67,7 +217,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
|
|
|
67
217
|
- [core] Sort prop asc (#12033) @oliviertassinari
|
|
68
218
|
- [core] Bump monorepo (#12055) @alexfauquette
|
|
69
219
|
|
|
70
|
-
##
|
|
220
|
+
## 7.0.0-beta.2
|
|
71
221
|
|
|
72
222
|
_Feb 9, 2024_
|
|
73
223
|
|
|
@@ -336,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
|
336
486
|
|
|
337
487
|
_Jan 26, 2024_
|
|
338
488
|
|
|
339
|
-
We are glad to announce MUI
|
|
489
|
+
We are glad to announce MUI X v7 beta!
|
|
340
490
|
This version has several improvements, bug fixes, and exciting features 🎉.
|
|
341
491
|
We want to offer a big thanks to the 7 contributors who made this release possible ✨:
|
|
342
492
|
|
|
@@ -1353,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
1353
1503
|
|
|
1354
1504
|
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
1355
1505
|
|
|
1356
|
-
- 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.
|
|
1357
1507
|
|
|
1358
1508
|
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
1359
1509
|
|
|
@@ -2202,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2202
2352
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2203
2353
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2204
2354
|
|
|
2205
|
-
##
|
|
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
|
|
2206
2417
|
|
|
2207
2418
|
_Feb 9, 2024_
|
|
2208
2419
|
|
|
@@ -2214,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2214
2425
|
|
|
2215
2426
|
### Data Grid
|
|
2216
2427
|
|
|
2217
|
-
#### `@mui/x-data-grid@
|
|
2428
|
+
#### `@mui/x-data-grid@6.19.4`
|
|
2218
2429
|
|
|
2219
2430
|
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2220
2431
|
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
@@ -2222,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2222
2433
|
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2223
2434
|
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2224
2435
|
|
|
2225
|
-
#### `@mui/x-data-grid-pro@
|
|
2436
|
+
#### `@mui/x-data-grid-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2226
2437
|
|
|
2227
|
-
Same changes as in `@mui/x-data-grid@
|
|
2438
|
+
Same changes as in `@mui/x-data-grid@6.19.4`.
|
|
2228
2439
|
|
|
2229
|
-
#### `@mui/x-data-grid-premium@
|
|
2440
|
+
#### `@mui/x-data-grid-premium@6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2230
2441
|
|
|
2231
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
2442
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
|
|
2232
2443
|
|
|
2233
2444
|
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2234
2445
|
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2235
2446
|
|
|
2236
2447
|
### Date Pickers
|
|
2237
2448
|
|
|
2238
|
-
#### `@mui/x-date-pickers@
|
|
2449
|
+
#### `@mui/x-date-pickers@6.19.4`
|
|
2239
2450
|
|
|
2240
2451
|
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2241
2452
|
|
|
2242
|
-
#### `@mui/x-date-pickers-pro@
|
|
2453
|
+
#### `@mui/x-date-pickers-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2243
2454
|
|
|
2244
|
-
Same changes as in `@mui/x-date-pickers@
|
|
2455
|
+
Same changes as in `@mui/x-date-pickers@6.19.4`.
|
|
2245
2456
|
|
|
2246
|
-
### Charts / `@mui/x-charts@
|
|
2457
|
+
### Charts / `@mui/x-charts@6.19.4`
|
|
2247
2458
|
|
|
2248
2459
|
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2249
2460
|
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
@@ -2304,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
|
2304
2515
|
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2305
2516
|
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2306
2517
|
- [docs] Sync support page with core @oliviertassinari
|
|
2307
|
-
- [docs] These API don't exist in MUI
|
|
2518
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2308
2519
|
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2309
2520
|
|
|
2310
2521
|
## 6.19.2
|
|
@@ -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);
|
|
@@ -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();
|
|
@@ -47,6 +47,8 @@ export const GridRootStyles = styled('div', {
|
|
|
47
47
|
[`&.${c.autosizing}`]: styles.autosizing
|
|
48
48
|
}, {
|
|
49
49
|
[`& .${c.editBooleanCell}`]: styles.editBooleanCell
|
|
50
|
+
}, {
|
|
51
|
+
[`& .${c.cell}`]: styles.cell
|
|
50
52
|
}, {
|
|
51
53
|
[`& .${c['cell--editing']}`]: styles['cell--editing']
|
|
52
54
|
}, {
|
|
@@ -55,12 +57,6 @@ export const GridRootStyles = styled('div', {
|
|
|
55
57
|
[`& .${c['cell--textLeft']}`]: styles['cell--textLeft']
|
|
56
58
|
}, {
|
|
57
59
|
[`& .${c['cell--textRight']}`]: styles['cell--textRight']
|
|
58
|
-
},
|
|
59
|
-
// TODO v6: Remove
|
|
60
|
-
{
|
|
61
|
-
[`& .${c['cell--withRenderer']}`]: styles['cell--withRenderer']
|
|
62
|
-
}, {
|
|
63
|
-
[`& .${c.cell}`]: styles.cell
|
|
64
60
|
}, {
|
|
65
61
|
[`& .${c['cell--rangeTop']}`]: styles['cell--rangeTop']
|
|
66
62
|
}, {
|
|
@@ -71,8 +67,6 @@ export const GridRootStyles = styled('div', {
|
|
|
71
67
|
[`& .${c['cell--rangeRight']}`]: styles['cell--rangeRight']
|
|
72
68
|
}, {
|
|
73
69
|
[`& .${c['cell--withRightBorder']}`]: styles['cell--withRightBorder']
|
|
74
|
-
}, {
|
|
75
|
-
[`& .${c.cellContent}`]: styles.cellContent
|
|
76
70
|
}, {
|
|
77
71
|
[`& .${c.cellCheckbox}`]: styles.cellCheckbox
|
|
78
72
|
}, {
|
|
@@ -235,9 +229,21 @@ export const GridRootStyles = styled('div', {
|
|
|
235
229
|
[`& .${c.columnHeaderTitleContainerContent} > *`]: {
|
|
236
230
|
overflow: 'visible !important'
|
|
237
231
|
},
|
|
238
|
-
|
|
232
|
+
'@media (hover: hover)': {
|
|
233
|
+
[`& .${c.iconButtonContainer}`]: {
|
|
234
|
+
width: '0 !important',
|
|
235
|
+
visibility: 'hidden !important'
|
|
236
|
+
},
|
|
237
|
+
[`& .${c.menuIcon}`]: {
|
|
238
|
+
width: '0 !important',
|
|
239
|
+
visibility: 'hidden !important'
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
[`& .${c.cell}`]: {
|
|
239
243
|
overflow: 'visible !important',
|
|
240
|
-
whiteSpace: 'nowrap'
|
|
244
|
+
whiteSpace: 'nowrap',
|
|
245
|
+
minWidth: 'max-content !important',
|
|
246
|
+
maxWidth: 'max-content !important'
|
|
241
247
|
},
|
|
242
248
|
[`& .${c.groupingCriteriaCell}`]: {
|
|
243
249
|
width: 'unset'
|
|
@@ -429,15 +435,19 @@ export const GridRootStyles = styled('div', {
|
|
|
429
435
|
},
|
|
430
436
|
/* Cell styles */
|
|
431
437
|
[`& .${c.cell}`]: {
|
|
432
|
-
display: 'flex',
|
|
433
|
-
alignItems: 'center',
|
|
434
438
|
height: 'var(--height)',
|
|
435
439
|
minWidth: 'var(--width)',
|
|
436
440
|
maxWidth: 'var(--width)',
|
|
441
|
+
lineHeight: 'calc(var(--height) - 1px)',
|
|
442
|
+
// -1px for the border
|
|
443
|
+
|
|
437
444
|
'--width': '0px',
|
|
438
445
|
'--height': '0px',
|
|
439
446
|
boxSizing: 'border-box',
|
|
440
447
|
borderTop: `1px solid var(--rowBorderColor)`,
|
|
448
|
+
overflow: 'hidden',
|
|
449
|
+
whiteSpace: 'nowrap',
|
|
450
|
+
textOverflow: 'ellipsis',
|
|
441
451
|
'&.Mui-selected': selectedStyles
|
|
442
452
|
},
|
|
443
453
|
[`& .${c['virtualScrollerContent--overflowed']} .${c['row--lastVisible']} .${c.cell}`]: {
|
|
@@ -446,9 +456,10 @@ export const GridRootStyles = styled('div', {
|
|
|
446
456
|
[`&.${c['root--disableUserSelection']} .${c.cell}`]: {
|
|
447
457
|
userSelect: 'none'
|
|
448
458
|
},
|
|
449
|
-
[`& .${c
|
|
450
|
-
overflow: '
|
|
451
|
-
whiteSpace: '
|
|
459
|
+
[`& .${c['row--dynamicHeight']} > .${c.cell}`]: {
|
|
460
|
+
overflow: 'initial',
|
|
461
|
+
whiteSpace: 'initial',
|
|
462
|
+
lineHeight: 'inherit'
|
|
452
463
|
},
|
|
453
464
|
[`& .${c.cellEmpty}`]: {
|
|
454
465
|
padding: 0
|
|
@@ -466,10 +477,6 @@ export const GridRootStyles = styled('div', {
|
|
|
466
477
|
outlineOffset: '-1px'
|
|
467
478
|
}
|
|
468
479
|
},
|
|
469
|
-
[`& .${c.cellContent}`]: {
|
|
470
|
-
overflow: 'hidden',
|
|
471
|
-
textOverflow: 'ellipsis'
|
|
472
|
-
},
|
|
473
480
|
[`& .${c['row--editing']}`]: {
|
|
474
481
|
boxShadow: t.shadows[2]
|
|
475
482
|
},
|
|
@@ -508,6 +515,7 @@ export const GridRootStyles = styled('div', {
|
|
|
508
515
|
},
|
|
509
516
|
[`& .${c.rowReorderCellContainer}`]: {
|
|
510
517
|
padding: 0,
|
|
518
|
+
display: 'flex',
|
|
511
519
|
alignItems: 'stretch'
|
|
512
520
|
},
|
|
513
521
|
[`.${c.withBorderColor}`]: {
|
|
@@ -527,13 +535,21 @@ export const GridRootStyles = styled('div', {
|
|
|
527
535
|
borderRightWidth: '1px',
|
|
528
536
|
borderRightStyle: 'solid'
|
|
529
537
|
},
|
|
538
|
+
[`& .${c['cell--flex']}`]: {
|
|
539
|
+
display: 'flex',
|
|
540
|
+
alignItems: 'center',
|
|
541
|
+
lineHeight: 'inherit'
|
|
542
|
+
},
|
|
530
543
|
[`& .${c['cell--textLeft']}`]: {
|
|
544
|
+
textAlign: 'left',
|
|
531
545
|
justifyContent: 'flex-start'
|
|
532
546
|
},
|
|
533
547
|
[`& .${c['cell--textRight']}`]: {
|
|
548
|
+
textAlign: 'right',
|
|
534
549
|
justifyContent: 'flex-end'
|
|
535
550
|
},
|
|
536
551
|
[`& .${c['cell--textCenter']}`]: {
|
|
552
|
+
textAlign: 'center',
|
|
537
553
|
justifyContent: 'center'
|
|
538
554
|
},
|
|
539
555
|
[`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {
|
|
@@ -604,6 +620,21 @@ export const GridRootStyles = styled('div', {
|
|
|
604
620
|
flex: '0 0 28px',
|
|
605
621
|
alignSelf: 'stretch',
|
|
606
622
|
marginRight: t.spacing(2)
|
|
623
|
+
},
|
|
624
|
+
/* ScrollbarFiller styles */
|
|
625
|
+
[`.${c.scrollbarFiller}`]: {
|
|
626
|
+
minWidth: 'calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))',
|
|
627
|
+
alignSelf: 'stretch',
|
|
628
|
+
[`&.${c['scrollbarFiller--borderTop']}`]: {
|
|
629
|
+
borderTop: '1px solid var(--DataGrid-rowBorderColor)'
|
|
630
|
+
},
|
|
631
|
+
[`&.${c['scrollbarFiller--pinnedRight']}`]: {
|
|
632
|
+
backgroundColor: 'var(--DataGrid-pinnedBackground)'
|
|
633
|
+
},
|
|
634
|
+
[`&.${c['scrollbarFiller--pinnedRight']}:not(.${c['scrollbarFiller--header']})`]: {
|
|
635
|
+
position: 'sticky',
|
|
636
|
+
right: 0
|
|
637
|
+
}
|
|
607
638
|
}
|
|
608
639
|
});
|
|
609
640
|
return gridStyle;
|
|
@@ -52,8 +52,14 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
52
52
|
if (!Array.isArray(item.value)) {
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
|
-
return item.value
|
|
56
|
-
|
|
55
|
+
return item.value.reduce((acc, value) => {
|
|
56
|
+
const resolvedValue = resolvedValueOptions.find(v => getOptionValue(v) === value);
|
|
57
|
+
if (resolvedValue != null) {
|
|
58
|
+
acc.push(resolvedValue);
|
|
59
|
+
}
|
|
60
|
+
return acc;
|
|
61
|
+
}, []);
|
|
62
|
+
}, [getOptionValue, item.value, resolvedValueOptions]);
|
|
57
63
|
const handleChange = React.useCallback((event, value) => {
|
|
58
64
|
applyValue(_extends({}, item, {
|
|
59
65
|
value: value.map(getOptionValue)
|