@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
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const getPinnedCellOffset = (pinnedPosition, computedWidth, columnIndex, columnPositions,
|
|
3
|
-
const scrollbarWidth = dimensions.hasScrollY ? dimensions.scrollbarSize : 0;
|
|
1
|
+
import { PinnedColumnPosition } from "../constants.js";
|
|
2
|
+
export const getPinnedCellOffset = (pinnedPosition, computedWidth, columnIndex, columnPositions, columnsTotalWidth, scrollbarWidth) => {
|
|
4
3
|
let pinnedOffset;
|
|
5
4
|
switch (pinnedPosition) {
|
|
6
|
-
case
|
|
5
|
+
case PinnedColumnPosition.LEFT:
|
|
7
6
|
pinnedOffset = columnPositions[columnIndex];
|
|
8
7
|
break;
|
|
9
|
-
case
|
|
10
|
-
pinnedOffset =
|
|
8
|
+
case PinnedColumnPosition.RIGHT:
|
|
9
|
+
pinnedOffset = columnsTotalWidth - columnPositions[columnIndex] - computedWidth + scrollbarWidth;
|
|
11
10
|
break;
|
|
12
11
|
default:
|
|
13
|
-
pinnedOffset =
|
|
12
|
+
pinnedOffset = undefined;
|
|
14
13
|
break;
|
|
15
14
|
}
|
|
16
15
|
return pinnedOffset;
|
package/internals/utils/index.js
CHANGED
package/locales/arSD.js
CHANGED
|
@@ -102,6 +102,8 @@ const arSDGrid = {
|
|
|
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/locales/beBY.js
CHANGED
|
@@ -117,6 +117,7 @@ const beBYGrid = {
|
|
|
117
117
|
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
118
118
|
// 'headerFilterOperator<': 'Less than',
|
|
119
119
|
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
120
|
+
// headerFilterClear: 'Clear filter',
|
|
120
121
|
|
|
121
122
|
// Filter values text
|
|
122
123
|
filterValueAny: 'усякі',
|
package/locales/bgBG.js
CHANGED
|
@@ -102,6 +102,8 @@ const bgBGGrid = {
|
|
|
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/locales/csCZ.js
CHANGED
|
@@ -110,6 +110,8 @@ const csCZGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Větší než nebo rovno',
|
|
111
111
|
'headerFilterOperator<': 'Menší než',
|
|
112
112
|
'headerFilterOperator<=': 'Menší než nebo rovno',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'jakýkoliv',
|
|
115
117
|
filterValueTrue: 'ano',
|
package/locales/daDK.js
CHANGED
|
@@ -102,6 +102,8 @@ const daDKGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større end eller lig med',
|
|
103
103
|
'headerFilterOperator<': 'Mindre end',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre end eller lig med',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'hvilken som helst',
|
|
107
109
|
filterValueTrue: 'positiv',
|
package/locales/deDE.js
CHANGED
|
@@ -100,6 +100,8 @@ const deDEGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
101
101
|
'headerFilterOperator<': 'Kleiner als',
|
|
102
102
|
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'Beliebig',
|
|
105
107
|
filterValueTrue: 'Ja',
|
package/locales/elGR.js
CHANGED
|
@@ -102,6 +102,8 @@ const elGRGrid = {
|
|
|
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/locales/esES.js
CHANGED
|
@@ -100,6 +100,8 @@ const esESGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Es mayor o igual que',
|
|
101
101
|
'headerFilterOperator<': 'Es menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Es menor o igual que',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'cualquiera',
|
|
105
107
|
filterValueTrue: 'verdadero',
|
package/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/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/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/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/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/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/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/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/locales/jaJP.js
CHANGED
package/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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,
|
|
@@ -97,6 +97,7 @@ export interface GridLocaleText {
|
|
|
97
97
|
'headerFilterOperator>=': string;
|
|
98
98
|
'headerFilterOperator<': string;
|
|
99
99
|
'headerFilterOperator<=': string;
|
|
100
|
+
headerFilterClear: string;
|
|
100
101
|
filterValueAny: string;
|
|
101
102
|
filterValueTrue: string;
|
|
102
103
|
filterValueFalse: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
3
|
import { GridCellClassNamePropType } from '../gridCellClass';
|
|
3
4
|
import { GridColumnHeaderClassNamePropType } from '../gridColumnHeaderClass';
|
|
4
5
|
import type { GridFilterOperator } from '../gridFilterOperator';
|
|
@@ -24,13 +25,13 @@ export type ValueOptions = string | number | {
|
|
|
24
25
|
* Value that can be used as a key for grouping rows
|
|
25
26
|
*/
|
|
26
27
|
export type GridKeyValue = string | number | boolean;
|
|
27
|
-
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef:
|
|
28
|
-
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef:
|
|
29
|
-
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
30
|
-
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
31
|
-
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
32
|
-
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef:
|
|
33
|
-
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
28
|
+
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: RefObject<GridApiCommunity>) => boolean;
|
|
29
|
+
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: RefObject<GridApiCommunity>) => null | GridApplyQuickFilter<R, V>;
|
|
30
|
+
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => V;
|
|
31
|
+
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => F;
|
|
32
|
+
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => R;
|
|
33
|
+
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => V;
|
|
34
|
+
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => number | undefined;
|
|
34
35
|
/**
|
|
35
36
|
* Column Definition base interface.
|
|
36
37
|
*/
|
|
@@ -217,7 +218,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
217
218
|
* This function can return `null` to skip filtering for this value and column.
|
|
218
219
|
* @param {any} value The value with which we want to filter the column.
|
|
219
220
|
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
220
|
-
* @param {
|
|
221
|
+
* @param {RefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
221
222
|
* @returns {null | GridApplyQuickFilter} The function to call to check if a row pass this filter value or not.
|
|
222
223
|
*/
|
|
223
224
|
getApplyQuickFilterFn?: GetApplyQuickFilterFn<R, V>;
|
|
@@ -584,7 +584,12 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
584
584
|
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
585
585
|
* @ignore - do not document.
|
|
586
586
|
*/
|
|
587
|
-
virtualScrollerContentSizeChange: {
|
|
587
|
+
virtualScrollerContentSizeChange: {
|
|
588
|
+
params: {
|
|
589
|
+
columnsTotalWidth: number;
|
|
590
|
+
contentHeight: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
588
593
|
/**
|
|
589
594
|
* Fired when the content is scrolled by the mouse wheel.
|
|
590
595
|
* It's attached to the "mousewheel" event.
|
package/models/gridExport.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridRowId } from './gridRows';
|
|
3
3
|
import type { GridApiCommon } from './api';
|
|
4
4
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
@@ -49,7 +49,7 @@ export interface GridGetRowsToExportParams<Api extends GridApiCommon = GridApiCo
|
|
|
49
49
|
/**
|
|
50
50
|
* The API of the grid.
|
|
51
51
|
*/
|
|
52
|
-
apiRef:
|
|
52
|
+
apiRef: RefObject<Api>;
|
|
53
53
|
}
|
|
54
54
|
export interface GridCsvGetRowsToExportParams<Api extends GridApiCommon = GridApiCommunity> extends GridGetRowsToExportParams<Api> {
|
|
55
55
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
3
|
import { GridFilterItem } from './gridFilterItem';
|
|
3
4
|
import type { GridColDef } from './colDef/gridColDef';
|
|
4
5
|
import type { GridValidRowModel } from './gridRows';
|
|
5
6
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
6
|
-
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
7
|
+
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => boolean;
|
|
7
8
|
export type GetApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFn<R, V, F>;
|
|
8
9
|
/**
|
|
9
10
|
* Filter operator definition interface.
|
|
@@ -178,4 +178,9 @@ export interface GridIconSlotsComponent {
|
|
|
178
178
|
* @default GridDragIcon
|
|
179
179
|
*/
|
|
180
180
|
columnReorderIcon: React.JSXElementConstructor<any>;
|
|
181
|
+
/**
|
|
182
|
+
* Icon displayed to indicate that a menu item is selected.
|
|
183
|
+
* @default GridCheckIcon
|
|
184
|
+
*/
|
|
185
|
+
menuItemCheckIcon: React.JSXElementConstructor<any>;
|
|
181
186
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
3
|
import { SxProps } from '@mui/system';
|
|
3
4
|
import { Theme } from '@mui/material/styles';
|
|
4
5
|
import { CommonProps } from '@mui/material/OverridableComponent';
|
|
@@ -369,7 +370,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
369
370
|
/**
|
|
370
371
|
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
371
372
|
*/
|
|
372
|
-
apiRef?:
|
|
373
|
+
apiRef?: RefObject<GridApiCommunity>;
|
|
373
374
|
/**
|
|
374
375
|
* Signal to the underlying logic what version of the public component API
|
|
375
376
|
* of the Data Grid is exposed [[GridSignature]].
|