@mui/x-data-grid 8.0.0-alpha.7 → 8.0.0-alpha.9
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 +551 -3
- package/DataGrid/DataGrid.js +4 -5
- package/DataGrid/useDataGridComponent.d.ts +2 -1
- package/DataGrid/useDataGridComponent.js +1 -1
- package/components/GridApiContext.js +2 -0
- package/components/GridConfigurationContext.js +2 -0
- package/components/GridHeaders.js +2 -2
- package/components/GridRow.d.ts +5 -9
- package/components/GridRow.js +28 -78
- package/components/GridScrollArea.js +2 -0
- package/components/GridSkeletonLoadingOverlay.js +18 -18
- package/components/cell/GridCell.d.ts +9 -16
- package/components/cell/GridCell.js +17 -35
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
- package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +3 -3
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -6
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
- package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/components/columnSelection/GridCellCheckboxRenderer.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.js +2 -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 +34 -28
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +2 -1
- package/components/toolbar/GridToolbarColumnsButton.js +6 -1
- package/components/toolbar/GridToolbarFilterButton.js +6 -1
- 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 +2 -1
- package/context/GridRootPropsContext.js +2 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +2 -2
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +2 -2
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +2 -2
- package/hooks/core/useGridApiInitialization.d.ts +2 -2
- package/hooks/core/useGridInitialization.d.ts +2 -2
- package/hooks/core/useGridIsRtl.d.ts +2 -2
- package/hooks/core/useGridLocaleText.d.ts +2 -2
- package/hooks/core/useGridLoggerFactory.d.ts +2 -2
- package/hooks/core/useGridRefs.d.ts +2 -2
- package/hooks/core/useGridStateInitialization.d.ts +2 -2
- package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +2 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -2
- package/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/hooks/features/columns/gridColumnsUtils.d.ts +4 -4
- package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
- package/hooks/features/columns/useGridColumns.d.ts +2 -2
- package/hooks/features/density/useGridDensity.d.ts +2 -2
- package/hooks/features/dimensions/useGridDimensions.d.ts +2 -2
- package/hooks/features/dimensions/useGridDimensions.js +1 -3
- package/hooks/features/editing/useGridCellEditing.d.ts +2 -2
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridEditing.d.ts +2 -2
- package/hooks/features/editing/useGridRowEditing.d.ts +2 -2
- package/hooks/features/editing/useGridRowEditing.js +1 -1
- package/hooks/features/events/useGridEvents.d.ts +2 -2
- package/hooks/features/export/serializers/csvSerializer.d.ts +2 -1
- package/hooks/features/export/useGridCsvExport.d.ts +2 -2
- package/hooks/features/export/useGridPrintExport.d.ts +2 -2
- package/hooks/features/export/utils.d.ts +2 -2
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.js +6 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +7 -7
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/useGridFilter.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.d.ts +2 -2
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +2 -2
- package/hooks/features/keyboardNavigation/utils.d.ts +3 -3
- package/hooks/features/listView/useGridListView.d.ts +2 -2
- 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 +3 -3
- package/hooks/features/pagination/useGridPagination.js +5 -3
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +2 -2
- package/hooks/features/pagination/useGridPaginationModel.d.ts +2 -2
- package/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +2 -2
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +1 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +8 -1
- package/hooks/features/preferencesPanel/index.d.ts +1 -1
- package/hooks/features/preferencesPanel/index.js +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +2 -2
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +2 -2
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +2 -2
- package/hooks/features/rowSelection/utils.d.ts +3 -2
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +2 -2
- package/hooks/features/rows/gridRowsSelector.js +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +4 -4
- package/hooks/features/rows/useGridParamsApi.d.ts +2 -2
- package/hooks/features/rows/useGridRowSpanning.d.ts +2 -2
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +2 -2
- package/hooks/features/rows/useGridRowsMeta.d.ts +2 -2
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
- package/hooks/features/scroll/useGridScroll.d.ts +2 -2
- package/hooks/features/sorting/gridSortingUtils.d.ts +3 -3
- package/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/hooks/features/sorting/useGridSorting.d.ts +2 -2
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +92 -50
- package/hooks/features/virtualization/useGridVirtualization.d.ts +2 -2
- package/hooks/utils/useGridApiContext.d.ts +2 -2
- package/hooks/utils/useGridApiEventHandler.d.ts +4 -4
- package/hooks/utils/useGridApiMethod.d.ts +2 -2
- package/hooks/utils/useGridApiRef.d.ts +2 -2
- package/hooks/utils/useGridApiRef.js +3 -1
- package/hooks/utils/useGridInitializeState.d.ts +3 -3
- package/hooks/utils/useGridLogger.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.d.ts +2 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +2 -1
- package/hooks/utils/useGridSelector.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +8 -6
- package/hooks/utils/useGridVisibleRows.js +5 -28
- package/index.js +1 -1
- package/internals/constants.d.ts +6 -0
- package/internals/constants.js +8 -1
- package/internals/index.d.ts +1 -0
- 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 +7 -6
- 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 +11 -10
- 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/gridLocaleTextApi.d.ts +1 -0
- package/models/colDef/gridColDef.d.ts +9 -8
- package/models/events/gridEventLookup.d.ts +6 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFilterOperator.d.ts +2 -1
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridStateCommunity.d.ts +4 -0
- package/models/props/DataGridProps.d.ts +2 -1
- package/modern/DataGrid/DataGrid.js +4 -5
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/components/GridApiContext.js +2 -0
- package/modern/components/GridConfigurationContext.js +2 -0
- package/modern/components/GridHeaders.js +2 -2
- package/modern/components/GridRow.js +28 -78
- package/modern/components/GridScrollArea.js +2 -0
- package/modern/components/GridSkeletonLoadingOverlay.js +18 -18
- package/modern/components/cell/GridCell.js +17 -35
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -6
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/modern/components/containers/GridRoot.js +14 -6
- package/modern/components/containers/GridRootStyles.js +7 -0
- package/modern/components/panel/GridPanel.js +2 -1
- 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 +34 -28
- package/modern/components/toolbar/GridToolbarColumnsButton.js +6 -1
- package/modern/components/toolbar/GridToolbarFilterButton.js +6 -1
- 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/context/GridRootPropsContext.js +2 -0
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/modern/hooks/features/dimensions/useGridDimensions.js +1 -3
- package/modern/hooks/features/editing/useGridCellEditing.js +1 -1
- package/modern/hooks/features/editing/useGridRowEditing.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/gridPreferencePanelSelector.js +8 -1
- package/modern/hooks/features/preferencesPanel/index.js +1 -1
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/modern/hooks/features/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 +92 -50
- package/modern/hooks/utils/useGridApiRef.js +3 -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 +7 -6
- 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 +11 -10
- 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/isJSDOM.js +1 -0
- package/modern/utils/rtlFlipSide.js +22 -0
- package/node/DataGrid/DataGrid.js +2 -3
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/components/GridApiContext.js +1 -0
- package/node/components/GridConfigurationContext.js +1 -0
- package/node/components/GridHeaders.js +2 -2
- package/node/components/GridRow.js +26 -77
- package/node/components/GridScrollArea.js +1 -0
- package/node/components/GridSkeletonLoadingOverlay.js +17 -17
- package/node/components/cell/GridCell.js +18 -36
- package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +19 -5
- package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/node/components/containers/GridRoot.js +14 -6
- package/node/components/containers/GridRootStyles.js +7 -0
- package/node/components/panel/GridPanel.js +2 -1
- 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 +33 -27
- package/node/components/toolbar/GridToolbarColumnsButton.js +6 -1
- package/node/components/toolbar/GridToolbarFilterButton.js +6 -1
- 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/context/GridRootPropsContext.js +1 -0
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -74
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/node/hooks/features/dimensions/useGridDimensions.js +3 -5
- package/node/hooks/features/editing/useGridCellEditing.js +1 -1
- package/node/hooks/features/editing/useGridRowEditing.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/gridPreferencePanelSelector.js +9 -2
- package/node/hooks/features/preferencesPanel/index.js +11 -10
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/node/hooks/features/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 +94 -52
- package/node/hooks/utils/useGridApiRef.js +3 -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 +7 -6
- 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 +11 -10
- 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/isJSDOM.js +7 -0
- 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 +2 -2
- package/utils/domUtils.js +7 -2
- package/utils/getPublicApiRef.d.ts +2 -1
- package/utils/isJSDOM.d.ts +1 -0
- package/utils/isJSDOM.js +1 -0
- package/utils/rtlFlipSide.d.ts +2 -0
- package/utils/rtlFlipSide.js +22 -0
package/modern/locales/faIR.js
CHANGED
|
@@ -45,8 +45,7 @@ const faIRGrid = {
|
|
|
45
45
|
columnsManagementNoColumns: 'بدون سطر',
|
|
46
46
|
columnsManagementShowHideAllText: 'نمایش/مخفی کردن همه',
|
|
47
47
|
columnsManagementReset: 'بازنشانی',
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
columnsManagementDeleteIconLabel: 'پاک کردن',
|
|
50
49
|
// Filter panel text
|
|
51
50
|
filterPanelAddFilter: 'افزودن فیلتر',
|
|
52
51
|
filterPanelRemoveAll: 'حذف همه',
|
|
@@ -60,9 +59,9 @@ const faIRGrid = {
|
|
|
60
59
|
filterPanelInputPlaceholder: 'فیلتر مقدار',
|
|
61
60
|
// Filter operators text
|
|
62
61
|
filterOperatorContains: 'شامل',
|
|
63
|
-
|
|
62
|
+
filterOperatorDoesNotContain: 'شامل نمیشود',
|
|
64
63
|
filterOperatorEquals: 'مساوی',
|
|
65
|
-
|
|
64
|
+
filterOperatorDoesNotEqual: 'برابر نیست',
|
|
66
65
|
filterOperatorStartsWith: 'شروع با',
|
|
67
66
|
filterOperatorEndsWith: 'پایان با',
|
|
68
67
|
filterOperatorIs: 'هست',
|
|
@@ -82,9 +81,9 @@ const faIRGrid = {
|
|
|
82
81
|
'filterOperator<=': '<=',
|
|
83
82
|
// Header filter operators text
|
|
84
83
|
headerFilterOperatorContains: 'شامل',
|
|
85
|
-
|
|
84
|
+
headerFilterOperatorDoesNotContain: 'شامل نمیشود',
|
|
86
85
|
headerFilterOperatorEquals: 'مساوی',
|
|
87
|
-
|
|
86
|
+
headerFilterOperatorDoesNotEqual: 'برابر نیست',
|
|
88
87
|
headerFilterOperatorStartsWith: 'شروع با',
|
|
89
88
|
headerFilterOperatorEndsWith: 'پایان با',
|
|
90
89
|
headerFilterOperatorIs: 'هست',
|
|
@@ -102,6 +101,8 @@ const faIRGrid = {
|
|
|
102
101
|
'headerFilterOperator>=': 'بزرگتر یا مساوی',
|
|
103
102
|
'headerFilterOperator<': 'کوچکتر',
|
|
104
103
|
'headerFilterOperator<=': 'کوچکتر یا مساوی',
|
|
104
|
+
// headerFilterClear: 'Clear filter',
|
|
105
|
+
|
|
105
106
|
// Filter values text
|
|
106
107
|
filterValueAny: 'هرچیزی',
|
|
107
108
|
filterValueTrue: 'صحیح',
|
package/modern/locales/fiFI.js
CHANGED
|
@@ -102,6 +102,8 @@ const fiFIGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Enemmän tai yhtä paljon kuin',
|
|
103
103
|
'headerFilterOperator<': 'Vähemmän kuin',
|
|
104
104
|
'headerFilterOperator<=': 'Vähemmän tai yhtä paljon kuin',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'mikä tahansa',
|
|
107
109
|
filterValueTrue: 'tosi',
|
package/modern/locales/frFR.js
CHANGED
|
@@ -102,6 +102,8 @@ const frFRGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Est supérieur ou égal à',
|
|
103
103
|
'headerFilterOperator<': 'Est inférieur à',
|
|
104
104
|
'headerFilterOperator<=': 'Est inférieur ou égal à',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'tous',
|
|
107
109
|
filterValueTrue: 'vrai',
|
package/modern/locales/heIL.js
CHANGED
|
@@ -100,6 +100,8 @@ const heILGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'גדול שווה ל-',
|
|
101
101
|
'headerFilterOperator<': 'קטן מ-',
|
|
102
102
|
'headerFilterOperator<=': 'קטן שווה ל-',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'כל ערך',
|
|
105
107
|
filterValueTrue: 'כן',
|
package/modern/locales/hrHR.js
CHANGED
|
@@ -110,6 +110,8 @@ const hrHRGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Veće ili jednako',
|
|
111
111
|
'headerFilterOperator<': 'Manje od',
|
|
112
112
|
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'bilo koji',
|
|
115
117
|
filterValueTrue: 'tačno',
|
package/modern/locales/huHU.js
CHANGED
|
@@ -102,6 +102,8 @@ const huHUGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Nagyobb vagy egyenlő',
|
|
103
103
|
'headerFilterOperator<': 'Kisebb mint',
|
|
104
104
|
'headerFilterOperator<=': 'Kisebb vagy egyenlő',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'bármilyen',
|
|
107
109
|
filterValueTrue: 'igaz',
|
package/modern/locales/isIS.js
CHANGED
|
@@ -102,6 +102,8 @@ const isISGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Stærra en eða jafnt og',
|
|
103
103
|
'headerFilterOperator<': 'Minna en',
|
|
104
104
|
'headerFilterOperator<=': 'Minna en eða jafnt og',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'hvað sem er',
|
|
107
109
|
filterValueTrue: 'satt',
|
package/modern/locales/itIT.js
CHANGED
|
@@ -102,6 +102,8 @@ const itITGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Maggiore o uguale a',
|
|
103
103
|
'headerFilterOperator<': 'Minore di',
|
|
104
104
|
'headerFilterOperator<=': 'Minore o uguale a',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'qualunque',
|
|
107
109
|
filterValueTrue: 'vero',
|
package/modern/locales/jaJP.js
CHANGED
package/modern/locales/koKR.js
CHANGED
|
@@ -100,6 +100,8 @@ const koKRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': '같거나 더 큰',
|
|
101
101
|
'headerFilterOperator<': '더 작은',
|
|
102
102
|
'headerFilterOperator<=': '같거나 더 작은',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: '아무값',
|
|
105
107
|
filterValueTrue: '참',
|
package/modern/locales/nbNO.js
CHANGED
|
@@ -102,6 +102,8 @@ const nbNOGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
103
103
|
'headerFilterOperator<': 'Mindre enn',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'noen',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/modern/locales/nlNL.js
CHANGED
|
@@ -101,6 +101,8 @@ const nlNLGrid = {
|
|
|
101
101
|
'headerFilterOperator>=': 'Is groter dan of gelijk aan',
|
|
102
102
|
'headerFilterOperator<': 'Is kleiner dan',
|
|
103
103
|
'headerFilterOperator<=': 'Is kleiner dan of gelijk aan',
|
|
104
|
+
// headerFilterClear: 'Clear filter',
|
|
105
|
+
|
|
104
106
|
// Filter values text
|
|
105
107
|
filterValueAny: 'alles',
|
|
106
108
|
filterValueTrue: 'waar',
|
package/modern/locales/nnNO.js
CHANGED
|
@@ -102,6 +102,8 @@ const nnNOGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
103
103
|
'headerFilterOperator<': 'Mindre enn',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'nokon',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/modern/locales/plPL.js
CHANGED
|
@@ -103,6 +103,8 @@ const plPLGrid = {
|
|
|
103
103
|
'headerFilterOperator>=': 'Większy lub równy',
|
|
104
104
|
'headerFilterOperator<': 'Mniejszy niż',
|
|
105
105
|
'headerFilterOperator<=': 'Mniejszy lub równe',
|
|
106
|
+
// headerFilterClear: 'Clear filter',
|
|
107
|
+
|
|
106
108
|
// Filter values text
|
|
107
109
|
filterValueAny: 'dowolny',
|
|
108
110
|
filterValueTrue: 'prawda',
|
package/modern/locales/ptBR.js
CHANGED
|
@@ -100,6 +100,8 @@ const ptBRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Maior que ou igual a',
|
|
101
101
|
'headerFilterOperator<': 'Menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Menor que ou igual a',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'qualquer',
|
|
105
107
|
filterValueTrue: 'verdadeiro',
|
package/modern/locales/ptPT.js
CHANGED
|
@@ -100,6 +100,8 @@ const ptPTGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
101
101
|
'headerFilterOperator<': 'Menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'qualquer',
|
|
105
107
|
filterValueTrue: 'verdadeiro',
|
package/modern/locales/roRO.js
CHANGED
|
@@ -100,6 +100,8 @@ const roROGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Mai mare sau egal cu',
|
|
101
101
|
'headerFilterOperator<': 'Mai mic decât',
|
|
102
102
|
'headerFilterOperator<=': 'Mai mic sau egal cu',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'Aleatoriu',
|
|
105
107
|
filterValueTrue: 'Da',
|
package/modern/locales/ruRU.js
CHANGED
|
@@ -117,6 +117,8 @@ const ruRUGrid = {
|
|
|
117
117
|
'headerFilterOperator>=': 'больше или равно',
|
|
118
118
|
'headerFilterOperator<': 'меньше чем',
|
|
119
119
|
'headerFilterOperator<=': 'меньше или равно',
|
|
120
|
+
// headerFilterClear: 'Clear filter',
|
|
121
|
+
|
|
120
122
|
// Filter values text
|
|
121
123
|
filterValueAny: 'любой',
|
|
122
124
|
filterValueTrue: 'истина',
|
package/modern/locales/skSK.js
CHANGED
|
@@ -110,6 +110,8 @@ const skSKGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Väčší ako alebo rovný',
|
|
111
111
|
'headerFilterOperator<': 'Menší ako',
|
|
112
112
|
'headerFilterOperator<=': 'Menší ako alebo rovný',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'akýkoľvek',
|
|
115
117
|
filterValueTrue: 'áno',
|
package/modern/locales/svSE.js
CHANGED
|
@@ -102,6 +102,8 @@ const svSEGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Större eller lika med',
|
|
103
103
|
'headerFilterOperator<': 'Mindre än',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre eller lika med',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'något',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/modern/locales/trTR.js
CHANGED
|
@@ -100,6 +100,8 @@ const trTRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Büyük veya eşit',
|
|
101
101
|
'headerFilterOperator<': 'Küçüktür',
|
|
102
102
|
'headerFilterOperator<=': 'Küçük veya eşit',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'herhangi',
|
|
105
107
|
filterValueTrue: 'doğru',
|
package/modern/locales/ukUA.js
CHANGED
|
@@ -117,6 +117,8 @@ const ukUAGrid = {
|
|
|
117
117
|
'headerFilterOperator>=': 'Більше або дорівнює',
|
|
118
118
|
'headerFilterOperator<': 'Менше ніж',
|
|
119
119
|
'headerFilterOperator<=': 'Менше або дорівнює',
|
|
120
|
+
// headerFilterClear: 'Clear filter',
|
|
121
|
+
|
|
120
122
|
// Filter values text
|
|
121
123
|
filterValueAny: 'будь-який',
|
|
122
124
|
filterValueTrue: 'так',
|
package/modern/locales/urPK.js
CHANGED
|
@@ -41,12 +41,11 @@ const urPKGrid = {
|
|
|
41
41
|
toolbarExportPrint: 'پرنٹ کریں',
|
|
42
42
|
toolbarExportExcel: 'ایکسل کے طور پر ڈاوٴنلوڈ کریں',
|
|
43
43
|
// Columns management text
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
columnsManagementSearchTitle: 'تلاش',
|
|
45
|
+
columnsManagementNoColumns: 'کوئی کالم نہیں',
|
|
46
|
+
columnsManagementShowHideAllText: 'تمام دکھائیں/چھپائیں',
|
|
47
|
+
columnsManagementReset: 'ریسیٹ',
|
|
48
|
+
columnsManagementDeleteIconLabel: 'کلئیر',
|
|
50
49
|
// Filter panel text
|
|
51
50
|
filterPanelAddFilter: 'نیا فلٹر',
|
|
52
51
|
filterPanelRemoveAll: 'سارے ختم کریں',
|
|
@@ -60,9 +59,9 @@ const urPKGrid = {
|
|
|
60
59
|
filterPanelInputPlaceholder: 'ویلیو کو فلٹر کریں',
|
|
61
60
|
// Filter operators text
|
|
62
61
|
filterOperatorContains: 'شامل ہے',
|
|
63
|
-
|
|
62
|
+
filterOperatorDoesNotContain: 'موجود نہیں ہے',
|
|
64
63
|
filterOperatorEquals: 'برابر ہے',
|
|
65
|
-
|
|
64
|
+
filterOperatorDoesNotEqual: 'برابر نہیں ہے',
|
|
66
65
|
filterOperatorStartsWith: 'شروع ہوتا ہے',
|
|
67
66
|
filterOperatorEndsWith: 'ختم ہوتا ہے',
|
|
68
67
|
filterOperatorIs: 'ہے',
|
|
@@ -82,9 +81,9 @@ const urPKGrid = {
|
|
|
82
81
|
'filterOperator<=': '<=',
|
|
83
82
|
// Header filter operators text
|
|
84
83
|
headerFilterOperatorContains: 'شامل ہے',
|
|
85
|
-
|
|
84
|
+
headerFilterOperatorDoesNotContain: 'موجود نہیں ہے',
|
|
86
85
|
headerFilterOperatorEquals: 'برابر ہے',
|
|
87
|
-
|
|
86
|
+
headerFilterOperatorDoesNotEqual: 'برابر نہیں ہے',
|
|
88
87
|
headerFilterOperatorStartsWith: 'شروع ہوتا ہے',
|
|
89
88
|
headerFilterOperatorEndsWith: 'ختم ہوتا ہے',
|
|
90
89
|
headerFilterOperatorIs: 'ہے',
|
|
@@ -102,6 +101,8 @@ const urPKGrid = {
|
|
|
102
101
|
'headerFilterOperator>=': 'ذیادہ یا برابر ہے',
|
|
103
102
|
'headerFilterOperator<': 'کم ہے',
|
|
104
103
|
'headerFilterOperator<=': 'کم یا برابر ہے',
|
|
104
|
+
// headerFilterClear: 'Clear filter',
|
|
105
|
+
|
|
105
106
|
// Filter values text
|
|
106
107
|
filterValueAny: 'کوئی بھی',
|
|
107
108
|
filterValueTrue: 'صحیح',
|
package/modern/locales/viVN.js
CHANGED
|
@@ -102,6 +102,8 @@ const viVNGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Lớn hơn hoặc bằng',
|
|
103
103
|
'headerFilterOperator<': 'Nhỏ hơn',
|
|
104
104
|
'headerFilterOperator<=': 'Nhỏ hơn hoặc bằng',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'bất kỳ giá trị nào',
|
|
107
109
|
filterValueTrue: 'Có',
|
package/modern/locales/zhCN.js
CHANGED
|
@@ -100,6 +100,8 @@ const zhCNGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': '大于或等于',
|
|
101
101
|
'headerFilterOperator<': '小于',
|
|
102
102
|
'headerFilterOperator<=': '小于或等于',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: '任何',
|
|
105
107
|
filterValueTrue: '真',
|
package/modern/locales/zhHK.js
CHANGED
|
@@ -102,6 +102,8 @@ const zhHKGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': '大於或等於',
|
|
103
103
|
'headerFilterOperator<': '少於',
|
|
104
104
|
'headerFilterOperator<=': '小於或等於',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: '任何',
|
|
107
109
|
filterValueTrue: '真的',
|
package/modern/locales/zhTW.js
CHANGED
|
@@ -102,6 +102,8 @@ const zhTWGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': '大於或等於',
|
|
103
103
|
'headerFilterOperator<': '小於',
|
|
104
104
|
'headerFilterOperator<=': '小於或等於',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: '任何值',
|
|
107
109
|
filterValueTrue: '真',
|
package/modern/material/index.js
CHANGED
|
@@ -61,7 +61,8 @@ const iconSlots = {
|
|
|
61
61
|
loadIcon: GridLoadIcon,
|
|
62
62
|
filterPanelAddIcon: GridAddIcon,
|
|
63
63
|
filterPanelRemoveAllIcon: GridDeleteForeverIcon,
|
|
64
|
-
columnReorderIcon: GridDragIcon
|
|
64
|
+
columnReorderIcon: GridDragIcon,
|
|
65
|
+
menuItemCheckIcon: GridCheckIcon
|
|
65
66
|
};
|
|
66
67
|
const baseSlots = {
|
|
67
68
|
baseBadge: MUIBadge,
|
|
@@ -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
|
};
|
package/modern/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) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isJSDOM = typeof window !== 'undefined' && /jsdom|HappyDOM/.test(window.navigator.userAgent);
|
|
@@ -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
|
+
};
|
|
@@ -41,13 +41,12 @@ const DataGridRaw = (0, _forwardRef.forwardRef)(function DataGrid(inProps, ref)
|
|
|
41
41
|
privateApiRef: privateApiRef,
|
|
42
42
|
configuration: configuration,
|
|
43
43
|
props: props,
|
|
44
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridRoot, (0, _extends2.default)({
|
|
45
45
|
className: props.className,
|
|
46
46
|
style: props.style,
|
|
47
47
|
sx: props.sx
|
|
48
48
|
}, props.slotProps?.root, {
|
|
49
|
-
ref: ref
|
|
50
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridHeader, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridBody, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridFooterPlaceholder, {})]
|
|
49
|
+
ref: ref
|
|
51
50
|
}))
|
|
52
51
|
});
|
|
53
52
|
});
|
|
@@ -50,6 +50,7 @@ const useDataGridComponent = (inputApiRef, props) => {
|
|
|
50
50
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridDimensions.dimensionsStateInitializer, apiRef, props);
|
|
51
51
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridRowSelection.rowSelectionStateInitializer, apiRef, props);
|
|
52
52
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridColumns.columnsStateInitializer, apiRef, props);
|
|
53
|
+
(0, _useGridInitializeState.useGridInitializeState)(_useGridPagination.paginationStateInitializer, apiRef, props);
|
|
53
54
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridRows.rowsStateInitializer, apiRef, props);
|
|
54
55
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridEditing.editingStateInitializer, apiRef, props);
|
|
55
56
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridFocus.focusStateInitializer, apiRef, props);
|
|
@@ -59,7 +60,6 @@ const useDataGridComponent = (inputApiRef, props) => {
|
|
|
59
60
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridRowSpanning.rowSpanningStateInitializer, apiRef, props);
|
|
60
61
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridDensity.densityStateInitializer, apiRef, props);
|
|
61
62
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridColumnResize.columnResizeStateInitializer, apiRef, props);
|
|
62
|
-
(0, _useGridInitializeState.useGridInitializeState)(_useGridPagination.paginationStateInitializer, apiRef, props);
|
|
63
63
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridRowsMeta.rowsMetaStateInitializer, apiRef, props);
|
|
64
64
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridColumnMenu.columnMenuStateInitializer, apiRef, props);
|
|
65
65
|
(0, _useGridInitializeState.useGridInitializeState)(_useGridColumnGrouping.columnGroupsStateInitializer, apiRef, props);
|
|
@@ -26,7 +26,7 @@ function GridHeaders() {
|
|
|
26
26
|
const filterColumnLookup = (0, _useGridSelector.useGridSelector)(apiRef, _gridFilterSelector.gridFilterActiveItemsLookupSelector);
|
|
27
27
|
const sortColumnLookup = (0, _useGridSelector.useGridSelector)(apiRef, _gridSortingSelector.gridSortColumnLookupSelector);
|
|
28
28
|
const columnHeaderTabIndexState = (0, _useGridSelector.useGridSelector)(apiRef, _gridFocusStateSelector.gridTabIndexColumnHeaderSelector);
|
|
29
|
-
const
|
|
29
|
+
const hasNoCellTabIndexState = (0, _useGridSelector.useGridSelector)(apiRef, () => (0, _gridFocusStateSelector.gridTabIndexCellSelector)(apiRef) === null);
|
|
30
30
|
const columnGroupHeaderTabIndexState = (0, _useGridSelector.useGridSelector)(apiRef, _gridFocusStateSelector.gridTabIndexColumnGroupHeaderSelector);
|
|
31
31
|
const columnHeaderFocus = (0, _useGridSelector.useGridSelector)(apiRef, _gridFocusStateSelector.gridFocusColumnHeaderSelector);
|
|
32
32
|
const columnGroupHeaderFocus = (0, _useGridSelector.useGridSelector)(apiRef, _gridFocusStateSelector.gridFocusColumnGroupHeaderSelector);
|
|
@@ -34,7 +34,7 @@ function GridHeaders() {
|
|
|
34
34
|
const columnMenuState = (0, _useGridSelector.useGridSelector)(apiRef, _columnMenuSelector.gridColumnMenuSelector);
|
|
35
35
|
const columnVisibility = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnsSelector.gridColumnVisibilityModelSelector);
|
|
36
36
|
const columnGroupsHeaderStructure = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnGroupsSelector.gridColumnGroupsHeaderStructureSelector);
|
|
37
|
-
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null &&
|
|
37
|
+
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
38
38
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
39
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnHeaders, (0, _extends2.default)({
|
|
40
40
|
ref: columnsContainerRef,
|