@mui/x-data-grid 8.0.0-alpha.6 → 8.0.0-alpha.8
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 +242 -1
- package/DataGrid/DataGrid.js +4 -5
- package/DataGrid/useDataGridComponent.d.ts +1 -1
- package/DataGrid/useDataGridComponent.js +1 -1
- package/components/GridHeaders.js +2 -2
- package/components/GridRow.d.ts +5 -9
- package/components/GridRow.js +26 -78
- package/components/GridSkeletonLoadingOverlay.js +18 -18
- package/components/cell/GridActionsCellItem.d.ts +16 -9
- package/components/cell/GridActionsCellItem.js +2 -0
- package/components/cell/GridCell.d.ts +9 -16
- package/components/cell/GridCell.js +17 -35
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.js +2 -2
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
- package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
- package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/components/columnSelection/GridCellCheckboxRenderer.js +4 -3
- package/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/components/containers/GridRoot.d.ts +2 -2
- package/components/containers/GridRoot.js +14 -6
- package/components/containers/GridRootStyles.js +7 -0
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputValue.js +40 -37
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/components/virtualization/GridVirtualScroller.js +4 -4
- package/constants/gridClasses.d.ts +12 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -0
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +9 -2
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.js +2 -2
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridIsRtl.d.ts +1 -1
- package/hooks/core/useGridLocaleText.d.ts +1 -1
- package/hooks/core/useGridLoggerFactory.d.ts +1 -1
- package/hooks/core/useGridRefs.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/hooks/features/columns/gridColumnsUtils.d.ts +3 -3
- package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/density/useGridDensity.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.js +2 -2
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/export/serializers/csvSerializer.d.ts +1 -1
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +1 -1
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.js +6 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +6 -6
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/keyboardNavigation/utils.d.ts +2 -2
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/pagination/gridPaginationInterfaces.d.ts +3 -0
- package/hooks/features/pagination/gridPaginationSelector.d.ts +21 -2
- package/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/hooks/features/pagination/useGridPagination.d.ts +2 -2
- package/hooks/features/pagination/useGridPagination.js +5 -3
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +1 -1
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.js +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +3 -3
- package/hooks/features/rows/useGridParamsApi.d.ts +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +1 -1
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +2 -2
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +1 -1
- package/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/hooks/features/sorting/gridSortingUtils.d.ts +2 -2
- package/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +5 -4
- package/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
- package/hooks/utils/useGridApiContext.d.ts +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +3 -3
- package/hooks/utils/useGridApiEventHandler.js +1 -1
- package/hooks/utils/useGridApiMethod.d.ts +1 -1
- package/hooks/utils/useGridApiRef.d.ts +1 -1
- package/hooks/utils/useGridInitializeState.d.ts +2 -2
- package/hooks/utils/useGridLogger.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +7 -5
- package/hooks/utils/useGridVisibleRows.js +5 -28
- package/index.js +1 -1
- package/internals/constants.d.ts +6 -0
- package/internals/constants.js +8 -1
- package/internals/index.d.ts +2 -1
- package/internals/index.js +1 -0
- package/internals/utils/attachPinnedStyle.d.ts +2 -0
- package/internals/utils/attachPinnedStyle.js +9 -0
- package/internals/utils/getPinnedCellOffset.d.ts +3 -3
- package/internals/utils/getPinnedCellOffset.js +6 -7
- package/internals/utils/index.d.ts +1 -0
- package/internals/utils/index.js +2 -1
- package/locales/arSD.js +2 -0
- package/locales/beBY.js +1 -0
- package/locales/bgBG.js +2 -0
- package/locales/csCZ.js +2 -0
- package/locales/daDK.js +2 -0
- package/locales/deDE.js +2 -0
- package/locales/elGR.js +2 -0
- package/locales/esES.js +2 -0
- package/locales/faIR.js +2 -0
- package/locales/fiFI.js +2 -0
- package/locales/frFR.js +2 -0
- package/locales/heIL.js +2 -0
- package/locales/hrHR.js +2 -0
- package/locales/huHU.js +2 -0
- package/locales/isIS.js +2 -0
- package/locales/itIT.js +2 -0
- package/locales/jaJP.js +2 -0
- package/locales/koKR.js +2 -0
- package/locales/nbNO.js +2 -0
- package/locales/nlNL.js +2 -0
- package/locales/nnNO.js +2 -0
- package/locales/plPL.js +2 -0
- package/locales/ptBR.js +2 -0
- package/locales/ptPT.js +2 -0
- package/locales/roRO.js +2 -0
- package/locales/ruRU.js +2 -0
- package/locales/skSK.js +2 -0
- package/locales/svSE.js +2 -0
- package/locales/trTR.js +2 -0
- package/locales/ukUA.js +2 -0
- package/locales/urPK.js +2 -0
- package/locales/viVN.js +2 -0
- package/locales/zhCN.js +2 -0
- package/locales/zhHK.js +2 -0
- package/locales/zhTW.js +2 -0
- package/material/index.js +2 -1
- package/models/api/gridCoreApi.d.ts +7 -7
- package/models/api/gridDensityApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/colDef/gridColDef.d.ts +8 -8
- package/models/events/gridEventLookup.d.ts +6 -1
- package/models/gridBaseSlots.d.ts +32 -2
- package/models/gridExport.d.ts +1 -1
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.ts +12 -8
- package/models/gridStateCommunity.d.ts +4 -0
- package/models/props/DataGridProps.d.ts +1 -1
- package/modern/DataGrid/DataGrid.js +4 -5
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/components/GridHeaders.js +2 -2
- package/modern/components/GridRow.js +26 -78
- package/modern/components/GridSkeletonLoadingOverlay.js +18 -18
- package/modern/components/cell/GridActionsCellItem.js +2 -0
- package/modern/components/cell/GridCell.js +17 -35
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +1 -1
- package/modern/components/cell/GridEditSingleSelectCell.js +2 -2
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +4 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/modern/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/modern/components/containers/GridRoot.js +14 -6
- package/modern/components/containers/GridRootStyles.js +7 -0
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +40 -37
- package/modern/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/modern/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/modern/components/virtualization/GridVirtualScroller.js +4 -4
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/modern/hooks/core/useGridApiInitialization.js +2 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/modern/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/modern/hooks/features/editing/useGridCellEditing.js +1 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -2
- package/modern/hooks/features/export/useGridPrintExport.js +1 -1
- package/modern/hooks/features/filter/gridFilterSelector.js +6 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +3 -3
- package/modern/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/modern/hooks/features/pagination/useGridPagination.js +5 -3
- package/modern/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +2 -2
- package/modern/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/modern/hooks/utils/useGridApiEventHandler.js +1 -1
- package/modern/hooks/utils/useGridVisibleRows.js +5 -28
- package/modern/index.js +1 -1
- package/modern/internals/constants.js +8 -1
- package/modern/internals/index.js +1 -0
- package/modern/internals/utils/attachPinnedStyle.js +9 -0
- package/modern/internals/utils/getPinnedCellOffset.js +6 -7
- package/modern/internals/utils/index.js +2 -1
- package/modern/locales/arSD.js +2 -0
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.js +2 -0
- package/modern/locales/csCZ.js +2 -0
- package/modern/locales/daDK.js +2 -0
- package/modern/locales/deDE.js +2 -0
- package/modern/locales/elGR.js +2 -0
- package/modern/locales/esES.js +2 -0
- package/modern/locales/faIR.js +2 -0
- package/modern/locales/fiFI.js +2 -0
- package/modern/locales/frFR.js +2 -0
- package/modern/locales/heIL.js +2 -0
- package/modern/locales/hrHR.js +2 -0
- package/modern/locales/huHU.js +2 -0
- package/modern/locales/isIS.js +2 -0
- package/modern/locales/itIT.js +2 -0
- package/modern/locales/jaJP.js +2 -0
- package/modern/locales/koKR.js +2 -0
- package/modern/locales/nbNO.js +2 -0
- package/modern/locales/nlNL.js +2 -0
- package/modern/locales/nnNO.js +2 -0
- package/modern/locales/plPL.js +2 -0
- package/modern/locales/ptBR.js +2 -0
- package/modern/locales/ptPT.js +2 -0
- package/modern/locales/roRO.js +2 -0
- package/modern/locales/ruRU.js +2 -0
- package/modern/locales/skSK.js +2 -0
- package/modern/locales/svSE.js +2 -0
- package/modern/locales/trTR.js +2 -0
- package/modern/locales/ukUA.js +2 -0
- package/modern/locales/urPK.js +2 -0
- package/modern/locales/viVN.js +2 -0
- package/modern/locales/zhCN.js +2 -0
- package/modern/locales/zhHK.js +2 -0
- package/modern/locales/zhTW.js +2 -0
- package/modern/material/index.js +2 -1
- package/modern/utils/cellBorderUtils.js +5 -5
- package/modern/utils/domUtils.js +7 -2
- package/modern/utils/rtlFlipSide.js +22 -0
- package/node/DataGrid/DataGrid.js +2 -3
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/components/GridHeaders.js +2 -2
- package/node/components/GridRow.js +25 -77
- package/node/components/GridSkeletonLoadingOverlay.js +17 -17
- package/node/components/cell/GridActionsCellItem.js +1 -1
- package/node/components/cell/GridCell.js +18 -36
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +1 -1
- package/node/components/cell/GridEditSingleSelectCell.js +2 -2
- package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +3 -2
- package/node/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/node/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/node/components/containers/GridRoot.js +14 -6
- package/node/components/containers/GridRootStyles.js +7 -0
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/node/components/panel/filterPanel/GridFilterInputDate.js +31 -28
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/node/components/panel/filterPanel/GridFilterInputValue.js +39 -36
- package/node/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/node/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/node/components/virtualization/GridVirtualScroller.js +4 -4
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/node/hooks/core/useGridApiInitialization.js +2 -2
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -74
- package/node/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/node/hooks/features/editing/useGridCellEditing.js +1 -1
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/hooks/features/export/useGridPrintExport.js +1 -1
- package/node/hooks/features/filter/gridFilterSelector.js +6 -1
- package/node/hooks/features/filter/gridFilterUtils.js +3 -3
- package/node/hooks/features/pagination/gridPaginationSelector.js +41 -3
- package/node/hooks/features/pagination/useGridPagination.js +5 -3
- package/node/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/node/hooks/features/rows/gridRowsSelector.js +1 -1
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/node/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +49 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/node/hooks/utils/useGridApiEventHandler.js +1 -1
- package/node/hooks/utils/useGridVisibleRows.js +3 -28
- package/node/index.js +1 -1
- package/node/internals/constants.js +9 -2
- package/node/internals/index.js +12 -0
- package/node/internals/utils/attachPinnedStyle.js +15 -0
- package/node/internals/utils/getPinnedCellOffset.js +6 -7
- package/node/internals/utils/index.js +11 -0
- package/node/locales/arSD.js +2 -0
- package/node/locales/beBY.js +1 -0
- package/node/locales/bgBG.js +2 -0
- package/node/locales/csCZ.js +2 -0
- package/node/locales/daDK.js +2 -0
- package/node/locales/deDE.js +2 -0
- package/node/locales/elGR.js +2 -0
- package/node/locales/esES.js +2 -0
- package/node/locales/faIR.js +2 -0
- package/node/locales/fiFI.js +2 -0
- package/node/locales/frFR.js +2 -0
- package/node/locales/heIL.js +2 -0
- package/node/locales/hrHR.js +2 -0
- package/node/locales/huHU.js +2 -0
- package/node/locales/isIS.js +2 -0
- package/node/locales/itIT.js +2 -0
- package/node/locales/jaJP.js +2 -0
- package/node/locales/koKR.js +2 -0
- package/node/locales/nbNO.js +2 -0
- package/node/locales/nlNL.js +2 -0
- package/node/locales/nnNO.js +2 -0
- package/node/locales/plPL.js +2 -0
- package/node/locales/ptBR.js +2 -0
- package/node/locales/ptPT.js +2 -0
- package/node/locales/roRO.js +2 -0
- package/node/locales/ruRU.js +2 -0
- package/node/locales/skSK.js +2 -0
- package/node/locales/svSE.js +2 -0
- package/node/locales/trTR.js +2 -0
- package/node/locales/ukUA.js +2 -0
- package/node/locales/urPK.js +2 -0
- package/node/locales/viVN.js +2 -0
- package/node/locales/zhCN.js +2 -0
- package/node/locales/zhHK.js +2 -0
- package/node/locales/zhTW.js +2 -0
- package/node/material/index.js +2 -1
- package/node/utils/cellBorderUtils.js +5 -5
- package/node/utils/domUtils.js +7 -2
- package/node/utils/rtlFlipSide.js +29 -0
- package/package.json +2 -2
- package/utils/cellBorderUtils.d.ts +3 -3
- package/utils/cellBorderUtils.js +5 -5
- package/utils/createSelector.d.ts +1 -1
- package/utils/domUtils.js +7 -2
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/rtlFlipSide.d.ts +2 -0
- package/utils/rtlFlipSide.js +22 -0
package/node/locales/ptBR.js
CHANGED
|
@@ -106,6 +106,8 @@ const ptBRGrid = {
|
|
|
106
106
|
'headerFilterOperator>=': 'Maior que ou igual a',
|
|
107
107
|
'headerFilterOperator<': 'Menor que',
|
|
108
108
|
'headerFilterOperator<=': 'Menor que ou igual a',
|
|
109
|
+
// headerFilterClear: 'Clear filter',
|
|
110
|
+
|
|
109
111
|
// Filter values text
|
|
110
112
|
filterValueAny: 'qualquer',
|
|
111
113
|
filterValueTrue: 'verdadeiro',
|
package/node/locales/ptPT.js
CHANGED
|
@@ -106,6 +106,8 @@ const ptPTGrid = {
|
|
|
106
106
|
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
107
107
|
'headerFilterOperator<': 'Menor que',
|
|
108
108
|
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
109
|
+
// headerFilterClear: 'Clear filter',
|
|
110
|
+
|
|
109
111
|
// Filter values text
|
|
110
112
|
filterValueAny: 'qualquer',
|
|
111
113
|
filterValueTrue: 'verdadeiro',
|
package/node/locales/roRO.js
CHANGED
|
@@ -106,6 +106,8 @@ const roROGrid = {
|
|
|
106
106
|
'headerFilterOperator>=': 'Mai mare sau egal cu',
|
|
107
107
|
'headerFilterOperator<': 'Mai mic decât',
|
|
108
108
|
'headerFilterOperator<=': 'Mai mic sau egal cu',
|
|
109
|
+
// headerFilterClear: 'Clear filter',
|
|
110
|
+
|
|
109
111
|
// Filter values text
|
|
110
112
|
filterValueAny: 'Aleatoriu',
|
|
111
113
|
filterValueTrue: 'Da',
|
package/node/locales/ruRU.js
CHANGED
|
@@ -123,6 +123,8 @@ const ruRUGrid = {
|
|
|
123
123
|
'headerFilterOperator>=': 'больше или равно',
|
|
124
124
|
'headerFilterOperator<': 'меньше чем',
|
|
125
125
|
'headerFilterOperator<=': 'меньше или равно',
|
|
126
|
+
// headerFilterClear: 'Clear filter',
|
|
127
|
+
|
|
126
128
|
// Filter values text
|
|
127
129
|
filterValueAny: 'любой',
|
|
128
130
|
filterValueTrue: 'истина',
|
package/node/locales/skSK.js
CHANGED
|
@@ -116,6 +116,8 @@ const skSKGrid = {
|
|
|
116
116
|
'headerFilterOperator>=': 'Väčší ako alebo rovný',
|
|
117
117
|
'headerFilterOperator<': 'Menší ako',
|
|
118
118
|
'headerFilterOperator<=': 'Menší ako alebo rovný',
|
|
119
|
+
// headerFilterClear: 'Clear filter',
|
|
120
|
+
|
|
119
121
|
// Filter values text
|
|
120
122
|
filterValueAny: 'akýkoľvek',
|
|
121
123
|
filterValueTrue: 'áno',
|
package/node/locales/svSE.js
CHANGED
|
@@ -108,6 +108,8 @@ const svSEGrid = {
|
|
|
108
108
|
'headerFilterOperator>=': 'Större eller lika med',
|
|
109
109
|
'headerFilterOperator<': 'Mindre än',
|
|
110
110
|
'headerFilterOperator<=': 'Mindre eller lika med',
|
|
111
|
+
// headerFilterClear: 'Clear filter',
|
|
112
|
+
|
|
111
113
|
// Filter values text
|
|
112
114
|
filterValueAny: 'något',
|
|
113
115
|
filterValueTrue: 'sant',
|
package/node/locales/trTR.js
CHANGED
|
@@ -106,6 +106,8 @@ const trTRGrid = {
|
|
|
106
106
|
'headerFilterOperator>=': 'Büyük veya eşit',
|
|
107
107
|
'headerFilterOperator<': 'Küçüktür',
|
|
108
108
|
'headerFilterOperator<=': 'Küçük veya eşit',
|
|
109
|
+
// headerFilterClear: 'Clear filter',
|
|
110
|
+
|
|
109
111
|
// Filter values text
|
|
110
112
|
filterValueAny: 'herhangi',
|
|
111
113
|
filterValueTrue: 'doğru',
|
package/node/locales/ukUA.js
CHANGED
|
@@ -123,6 +123,8 @@ const ukUAGrid = {
|
|
|
123
123
|
'headerFilterOperator>=': 'Більше або дорівнює',
|
|
124
124
|
'headerFilterOperator<': 'Менше ніж',
|
|
125
125
|
'headerFilterOperator<=': 'Менше або дорівнює',
|
|
126
|
+
// headerFilterClear: 'Clear filter',
|
|
127
|
+
|
|
126
128
|
// Filter values text
|
|
127
129
|
filterValueAny: 'будь-який',
|
|
128
130
|
filterValueTrue: 'так',
|
package/node/locales/urPK.js
CHANGED
|
@@ -108,6 +108,8 @@ const urPKGrid = {
|
|
|
108
108
|
'headerFilterOperator>=': 'ذیادہ یا برابر ہے',
|
|
109
109
|
'headerFilterOperator<': 'کم ہے',
|
|
110
110
|
'headerFilterOperator<=': 'کم یا برابر ہے',
|
|
111
|
+
// headerFilterClear: 'Clear filter',
|
|
112
|
+
|
|
111
113
|
// Filter values text
|
|
112
114
|
filterValueAny: 'کوئی بھی',
|
|
113
115
|
filterValueTrue: 'صحیح',
|
package/node/locales/viVN.js
CHANGED
|
@@ -108,6 +108,8 @@ const viVNGrid = {
|
|
|
108
108
|
'headerFilterOperator>=': 'Lớn hơn hoặc bằng',
|
|
109
109
|
'headerFilterOperator<': 'Nhỏ hơn',
|
|
110
110
|
'headerFilterOperator<=': 'Nhỏ hơn hoặc bằng',
|
|
111
|
+
// headerFilterClear: 'Clear filter',
|
|
112
|
+
|
|
111
113
|
// Filter values text
|
|
112
114
|
filterValueAny: 'bất kỳ giá trị nào',
|
|
113
115
|
filterValueTrue: 'Có',
|
package/node/locales/zhCN.js
CHANGED
|
@@ -106,6 +106,8 @@ const zhCNGrid = {
|
|
|
106
106
|
'headerFilterOperator>=': '大于或等于',
|
|
107
107
|
'headerFilterOperator<': '小于',
|
|
108
108
|
'headerFilterOperator<=': '小于或等于',
|
|
109
|
+
// headerFilterClear: 'Clear filter',
|
|
110
|
+
|
|
109
111
|
// Filter values text
|
|
110
112
|
filterValueAny: '任何',
|
|
111
113
|
filterValueTrue: '真',
|
package/node/locales/zhHK.js
CHANGED
|
@@ -108,6 +108,8 @@ const zhHKGrid = {
|
|
|
108
108
|
'headerFilterOperator>=': '大於或等於',
|
|
109
109
|
'headerFilterOperator<': '少於',
|
|
110
110
|
'headerFilterOperator<=': '小於或等於',
|
|
111
|
+
// headerFilterClear: 'Clear filter',
|
|
112
|
+
|
|
111
113
|
// Filter values text
|
|
112
114
|
filterValueAny: '任何',
|
|
113
115
|
filterValueTrue: '真的',
|
package/node/locales/zhTW.js
CHANGED
|
@@ -108,6 +108,8 @@ const zhTWGrid = {
|
|
|
108
108
|
'headerFilterOperator>=': '大於或等於',
|
|
109
109
|
'headerFilterOperator<': '小於',
|
|
110
110
|
'headerFilterOperator<=': '小於或等於',
|
|
111
|
+
// headerFilterClear: 'Clear filter',
|
|
112
|
+
|
|
111
113
|
// Filter values text
|
|
112
114
|
filterValueAny: '任何值',
|
|
113
115
|
filterValueTrue: '真',
|
package/node/material/index.js
CHANGED
|
@@ -69,7 +69,8 @@ const iconSlots = {
|
|
|
69
69
|
loadIcon: _icons.GridLoadIcon,
|
|
70
70
|
filterPanelAddIcon: _icons.GridAddIcon,
|
|
71
71
|
filterPanelRemoveAllIcon: _icons.GridDeleteForeverIcon,
|
|
72
|
-
columnReorderIcon: _icons.GridDragIcon
|
|
72
|
+
columnReorderIcon: _icons.GridDragIcon,
|
|
73
|
+
menuItemCheckIcon: _icons.GridCheckIcon
|
|
73
74
|
};
|
|
74
75
|
const baseSlots = {
|
|
75
76
|
baseBadge: _Badge.default,
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.shouldCellShowRightBorder = exports.shouldCellShowLeftBorder = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _constants = require("../internals/constants");
|
|
8
8
|
const shouldCellShowRightBorder = (pinnedPosition, indexInSection, sectionLength, showCellVerticalBorderRootProp, gridHasFiller) => {
|
|
9
9
|
const isSectionLastCell = indexInSection === sectionLength - 1;
|
|
10
|
-
if (pinnedPosition ===
|
|
10
|
+
if (pinnedPosition === _constants.PinnedColumnPosition.LEFT && isSectionLastCell) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
13
13
|
if (showCellVerticalBorderRootProp) {
|
|
14
|
-
if (pinnedPosition ===
|
|
14
|
+
if (pinnedPosition === _constants.PinnedColumnPosition.LEFT) {
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
|
-
if (pinnedPosition ===
|
|
17
|
+
if (pinnedPosition === _constants.PinnedColumnPosition.RIGHT) {
|
|
18
18
|
return !isSectionLastCell;
|
|
19
19
|
}
|
|
20
20
|
// pinnedPosition === undefined, middle section
|
|
@@ -24,6 +24,6 @@ const shouldCellShowRightBorder = (pinnedPosition, indexInSection, sectionLength
|
|
|
24
24
|
};
|
|
25
25
|
exports.shouldCellShowRightBorder = shouldCellShowRightBorder;
|
|
26
26
|
const shouldCellShowLeftBorder = (pinnedPosition, indexInSection) => {
|
|
27
|
-
return pinnedPosition ===
|
|
27
|
+
return pinnedPosition === _constants.PinnedColumnPosition.RIGHT && indexInSection === 0;
|
|
28
28
|
};
|
|
29
29
|
exports.shouldCellShowLeftBorder = shouldCellShowLeftBorder;
|
package/node/utils/domUtils.js
CHANGED
|
@@ -179,7 +179,7 @@ const findPinnedHeaders = ({
|
|
|
179
179
|
const elements = [];
|
|
180
180
|
api.columnHeadersContainerRef.current.querySelectorAll(`.${_gridClasses.gridClasses[position === 'left' ? 'columnHeader--pinnedLeft' : 'columnHeader--pinnedRight']}`).forEach(element => {
|
|
181
181
|
const currentColIndex = parseCellColIndex(element);
|
|
182
|
-
if (currentColIndex !== null && filterFn(currentColIndex)) {
|
|
182
|
+
if (currentColIndex !== null && filterFn(currentColIndex, element)) {
|
|
183
183
|
elements.push(element);
|
|
184
184
|
}
|
|
185
185
|
});
|
|
@@ -200,7 +200,12 @@ function findRightPinnedHeadersBeforeCol(api, col, isRtl) {
|
|
|
200
200
|
api,
|
|
201
201
|
position: isRtl ? 'left' : 'right',
|
|
202
202
|
colIndex,
|
|
203
|
-
filterFn: index =>
|
|
203
|
+
filterFn: (index, element) => {
|
|
204
|
+
if (element.classList.contains(_gridClasses.gridClasses['columnHeader--last'])) {
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
return isRtl ? index > colIndex : index < colIndex;
|
|
208
|
+
}
|
|
204
209
|
});
|
|
205
210
|
}
|
|
206
211
|
function findGridHeader(api, field) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.rtlFlipSide = void 0;
|
|
7
|
+
var _constants = require("../internals/constants");
|
|
8
|
+
const rtlFlipSide = (position, isRtl) => {
|
|
9
|
+
if (!position) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
if (!isRtl) {
|
|
13
|
+
if (position === _constants.PinnedColumnPosition.LEFT) {
|
|
14
|
+
return 'left';
|
|
15
|
+
}
|
|
16
|
+
if (position === _constants.PinnedColumnPosition.RIGHT) {
|
|
17
|
+
return 'right';
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
if (position === _constants.PinnedColumnPosition.LEFT) {
|
|
21
|
+
return 'right';
|
|
22
|
+
}
|
|
23
|
+
if (position === _constants.PinnedColumnPosition.RIGHT) {
|
|
24
|
+
return 'left';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
};
|
|
29
|
+
exports.rtlFlipSide = rtlFlipSide;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.8",
|
|
4
4
|
"description": "The Community plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"reselect": "^5.1.1",
|
|
45
|
-
"@mui/x-internals": "8.0.0-alpha.
|
|
45
|
+
"@mui/x-internals": "8.0.0-alpha.8"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const shouldCellShowRightBorder: (pinnedPosition:
|
|
3
|
-
export declare const shouldCellShowLeftBorder: (pinnedPosition:
|
|
1
|
+
import { PinnedColumnPosition } from '../internals/constants';
|
|
2
|
+
export declare const shouldCellShowRightBorder: (pinnedPosition: PinnedColumnPosition | undefined, indexInSection: number, sectionLength: number, showCellVerticalBorderRootProp: boolean, gridHasFiller: boolean) => boolean;
|
|
3
|
+
export declare const shouldCellShowLeftBorder: (pinnedPosition: PinnedColumnPosition | undefined, indexInSection: number) => boolean;
|
package/utils/cellBorderUtils.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PinnedColumnPosition } from "../internals/constants.js";
|
|
2
2
|
export const shouldCellShowRightBorder = (pinnedPosition, indexInSection, sectionLength, showCellVerticalBorderRootProp, gridHasFiller) => {
|
|
3
3
|
const isSectionLastCell = indexInSection === sectionLength - 1;
|
|
4
|
-
if (pinnedPosition ===
|
|
4
|
+
if (pinnedPosition === PinnedColumnPosition.LEFT && isSectionLastCell) {
|
|
5
5
|
return true;
|
|
6
6
|
}
|
|
7
7
|
if (showCellVerticalBorderRootProp) {
|
|
8
|
-
if (pinnedPosition ===
|
|
8
|
+
if (pinnedPosition === PinnedColumnPosition.LEFT) {
|
|
9
9
|
return true;
|
|
10
10
|
}
|
|
11
|
-
if (pinnedPosition ===
|
|
11
|
+
if (pinnedPosition === PinnedColumnPosition.RIGHT) {
|
|
12
12
|
return !isSectionLastCell;
|
|
13
13
|
}
|
|
14
14
|
// pinnedPosition === undefined, middle section
|
|
@@ -17,5 +17,5 @@ export const shouldCellShowRightBorder = (pinnedPosition, indexInSection, sectio
|
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
19
|
export const shouldCellShowLeftBorder = (pinnedPosition, indexInSection) => {
|
|
20
|
-
return pinnedPosition ===
|
|
20
|
+
return pinnedPosition === PinnedColumnPosition.RIGHT && indexInSection === 0;
|
|
21
21
|
};
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Selector, SelectorResultArray } from 'reselect';
|
|
3
3
|
import type { GridCoreApi } from '../models/api/gridCoreApi';
|
|
4
4
|
export interface OutputSelector<State, Args, Result> {
|
|
5
|
-
(apiRef: React.
|
|
5
|
+
(apiRef: React.RefObject<{
|
|
6
6
|
state: State;
|
|
7
7
|
instanceId: GridCoreApi['instanceId'];
|
|
8
8
|
}>, args?: Args): Result;
|
package/utils/domUtils.js
CHANGED
|
@@ -153,7 +153,7 @@ const findPinnedHeaders = ({
|
|
|
153
153
|
const elements = [];
|
|
154
154
|
api.columnHeadersContainerRef.current.querySelectorAll(`.${gridClasses[position === 'left' ? 'columnHeader--pinnedLeft' : 'columnHeader--pinnedRight']}`).forEach(element => {
|
|
155
155
|
const currentColIndex = parseCellColIndex(element);
|
|
156
|
-
if (currentColIndex !== null && filterFn(currentColIndex)) {
|
|
156
|
+
if (currentColIndex !== null && filterFn(currentColIndex, element)) {
|
|
157
157
|
elements.push(element);
|
|
158
158
|
}
|
|
159
159
|
});
|
|
@@ -174,7 +174,12 @@ export function findRightPinnedHeadersBeforeCol(api, col, isRtl) {
|
|
|
174
174
|
api,
|
|
175
175
|
position: isRtl ? 'left' : 'right',
|
|
176
176
|
colIndex,
|
|
177
|
-
filterFn: index =>
|
|
177
|
+
filterFn: (index, element) => {
|
|
178
|
+
if (element.classList.contains(gridClasses['columnHeader--last'])) {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
return isRtl ? index > colIndex : index < colIndex;
|
|
182
|
+
}
|
|
178
183
|
});
|
|
179
184
|
}
|
|
180
185
|
export function findGridHeader(api, field) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { GridPrivateApiCommunity } from '../models/api/gridApiCommunity';
|
|
2
|
-
export declare function getPublicApiRef<PrivateApi extends GridPrivateApiCommunity>(apiRef: React.
|
|
2
|
+
export declare function getPublicApiRef<PrivateApi extends GridPrivateApiCommunity>(apiRef: React.RefObject<PrivateApi>): React.RefObject<ReturnType<PrivateApi["getPublicApi"]>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PinnedColumnPosition } from "../internals/constants.js";
|
|
2
|
+
export const rtlFlipSide = (position, isRtl) => {
|
|
3
|
+
if (!position) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
if (!isRtl) {
|
|
7
|
+
if (position === PinnedColumnPosition.LEFT) {
|
|
8
|
+
return 'left';
|
|
9
|
+
}
|
|
10
|
+
if (position === PinnedColumnPosition.RIGHT) {
|
|
11
|
+
return 'right';
|
|
12
|
+
}
|
|
13
|
+
} else {
|
|
14
|
+
if (position === PinnedColumnPosition.LEFT) {
|
|
15
|
+
return 'right';
|
|
16
|
+
}
|
|
17
|
+
if (position === PinnedColumnPosition.RIGHT) {
|
|
18
|
+
return 'left';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
};
|