@mui/x-data-grid 8.0.0-alpha.6 → 8.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +242 -1
- package/DataGrid/DataGrid.js +4 -5
- package/DataGrid/useDataGridComponent.d.ts +1 -1
- package/DataGrid/useDataGridComponent.js +1 -1
- package/components/GridHeaders.js +2 -2
- package/components/GridRow.d.ts +5 -9
- package/components/GridRow.js +26 -78
- package/components/GridSkeletonLoadingOverlay.js +18 -18
- package/components/cell/GridActionsCellItem.d.ts +16 -9
- package/components/cell/GridActionsCellItem.js +2 -0
- package/components/cell/GridCell.d.ts +9 -16
- package/components/cell/GridCell.js +17 -35
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.js +2 -2
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
- package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
- package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/components/columnSelection/GridCellCheckboxRenderer.js +4 -3
- package/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/components/containers/GridRoot.d.ts +2 -2
- package/components/containers/GridRoot.js +14 -6
- package/components/containers/GridRootStyles.js +7 -0
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputValue.js +40 -37
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/components/virtualization/GridVirtualScroller.js +4 -4
- package/constants/gridClasses.d.ts +12 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -0
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +9 -2
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.js +2 -2
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridIsRtl.d.ts +1 -1
- package/hooks/core/useGridLocaleText.d.ts +1 -1
- package/hooks/core/useGridLoggerFactory.d.ts +1 -1
- package/hooks/core/useGridRefs.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/hooks/features/columns/gridColumnsUtils.d.ts +3 -3
- package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/density/useGridDensity.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.js +2 -2
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/export/serializers/csvSerializer.d.ts +1 -1
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +1 -1
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.js +6 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +6 -6
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/keyboardNavigation/utils.d.ts +2 -2
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/pagination/gridPaginationInterfaces.d.ts +3 -0
- package/hooks/features/pagination/gridPaginationSelector.d.ts +21 -2
- package/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/hooks/features/pagination/useGridPagination.d.ts +2 -2
- package/hooks/features/pagination/useGridPagination.js +5 -3
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +1 -1
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.js +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +3 -3
- package/hooks/features/rows/useGridParamsApi.d.ts +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +1 -1
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +2 -2
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +1 -1
- package/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/hooks/features/sorting/gridSortingUtils.d.ts +2 -2
- package/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +5 -4
- package/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
- package/hooks/utils/useGridApiContext.d.ts +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +3 -3
- package/hooks/utils/useGridApiEventHandler.js +1 -1
- package/hooks/utils/useGridApiMethod.d.ts +1 -1
- package/hooks/utils/useGridApiRef.d.ts +1 -1
- package/hooks/utils/useGridInitializeState.d.ts +2 -2
- package/hooks/utils/useGridLogger.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +7 -5
- package/hooks/utils/useGridVisibleRows.js +5 -28
- package/index.js +1 -1
- package/internals/constants.d.ts +6 -0
- package/internals/constants.js +8 -1
- package/internals/index.d.ts +2 -1
- package/internals/index.js +1 -0
- package/internals/utils/attachPinnedStyle.d.ts +2 -0
- package/internals/utils/attachPinnedStyle.js +9 -0
- package/internals/utils/getPinnedCellOffset.d.ts +3 -3
- package/internals/utils/getPinnedCellOffset.js +6 -7
- package/internals/utils/index.d.ts +1 -0
- package/internals/utils/index.js +2 -1
- package/locales/arSD.js +2 -0
- package/locales/beBY.js +1 -0
- package/locales/bgBG.js +2 -0
- package/locales/csCZ.js +2 -0
- package/locales/daDK.js +2 -0
- package/locales/deDE.js +2 -0
- package/locales/elGR.js +2 -0
- package/locales/esES.js +2 -0
- package/locales/faIR.js +2 -0
- package/locales/fiFI.js +2 -0
- package/locales/frFR.js +2 -0
- package/locales/heIL.js +2 -0
- package/locales/hrHR.js +2 -0
- package/locales/huHU.js +2 -0
- package/locales/isIS.js +2 -0
- package/locales/itIT.js +2 -0
- package/locales/jaJP.js +2 -0
- package/locales/koKR.js +2 -0
- package/locales/nbNO.js +2 -0
- package/locales/nlNL.js +2 -0
- package/locales/nnNO.js +2 -0
- package/locales/plPL.js +2 -0
- package/locales/ptBR.js +2 -0
- package/locales/ptPT.js +2 -0
- package/locales/roRO.js +2 -0
- package/locales/ruRU.js +2 -0
- package/locales/skSK.js +2 -0
- package/locales/svSE.js +2 -0
- package/locales/trTR.js +2 -0
- package/locales/ukUA.js +2 -0
- package/locales/urPK.js +2 -0
- package/locales/viVN.js +2 -0
- package/locales/zhCN.js +2 -0
- package/locales/zhHK.js +2 -0
- package/locales/zhTW.js +2 -0
- package/material/index.js +2 -1
- package/models/api/gridCoreApi.d.ts +7 -7
- package/models/api/gridDensityApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/colDef/gridColDef.d.ts +8 -8
- package/models/events/gridEventLookup.d.ts +6 -1
- package/models/gridBaseSlots.d.ts +32 -2
- package/models/gridExport.d.ts +1 -1
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.ts +12 -8
- package/models/gridStateCommunity.d.ts +4 -0
- package/models/props/DataGridProps.d.ts +1 -1
- package/modern/DataGrid/DataGrid.js +4 -5
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/components/GridHeaders.js +2 -2
- package/modern/components/GridRow.js +26 -78
- package/modern/components/GridSkeletonLoadingOverlay.js +18 -18
- package/modern/components/cell/GridActionsCellItem.js +2 -0
- package/modern/components/cell/GridCell.js +17 -35
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +1 -1
- package/modern/components/cell/GridEditSingleSelectCell.js +2 -2
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +4 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/modern/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/modern/components/containers/GridRoot.js +14 -6
- package/modern/components/containers/GridRootStyles.js +7 -0
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +40 -37
- package/modern/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/modern/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/modern/components/virtualization/GridVirtualScroller.js +4 -4
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/modern/hooks/core/useGridApiInitialization.js +2 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/modern/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/modern/hooks/features/editing/useGridCellEditing.js +1 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -2
- package/modern/hooks/features/export/useGridPrintExport.js +1 -1
- package/modern/hooks/features/filter/gridFilterSelector.js +6 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +3 -3
- package/modern/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/modern/hooks/features/pagination/useGridPagination.js +5 -3
- package/modern/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +2 -2
- package/modern/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/modern/hooks/utils/useGridApiEventHandler.js +1 -1
- package/modern/hooks/utils/useGridVisibleRows.js +5 -28
- package/modern/index.js +1 -1
- package/modern/internals/constants.js +8 -1
- package/modern/internals/index.js +1 -0
- package/modern/internals/utils/attachPinnedStyle.js +9 -0
- package/modern/internals/utils/getPinnedCellOffset.js +6 -7
- package/modern/internals/utils/index.js +2 -1
- package/modern/locales/arSD.js +2 -0
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.js +2 -0
- package/modern/locales/csCZ.js +2 -0
- package/modern/locales/daDK.js +2 -0
- package/modern/locales/deDE.js +2 -0
- package/modern/locales/elGR.js +2 -0
- package/modern/locales/esES.js +2 -0
- package/modern/locales/faIR.js +2 -0
- package/modern/locales/fiFI.js +2 -0
- package/modern/locales/frFR.js +2 -0
- package/modern/locales/heIL.js +2 -0
- package/modern/locales/hrHR.js +2 -0
- package/modern/locales/huHU.js +2 -0
- package/modern/locales/isIS.js +2 -0
- package/modern/locales/itIT.js +2 -0
- package/modern/locales/jaJP.js +2 -0
- package/modern/locales/koKR.js +2 -0
- package/modern/locales/nbNO.js +2 -0
- package/modern/locales/nlNL.js +2 -0
- package/modern/locales/nnNO.js +2 -0
- package/modern/locales/plPL.js +2 -0
- package/modern/locales/ptBR.js +2 -0
- package/modern/locales/ptPT.js +2 -0
- package/modern/locales/roRO.js +2 -0
- package/modern/locales/ruRU.js +2 -0
- package/modern/locales/skSK.js +2 -0
- package/modern/locales/svSE.js +2 -0
- package/modern/locales/trTR.js +2 -0
- package/modern/locales/ukUA.js +2 -0
- package/modern/locales/urPK.js +2 -0
- package/modern/locales/viVN.js +2 -0
- package/modern/locales/zhCN.js +2 -0
- package/modern/locales/zhHK.js +2 -0
- package/modern/locales/zhTW.js +2 -0
- package/modern/material/index.js +2 -1
- package/modern/utils/cellBorderUtils.js +5 -5
- package/modern/utils/domUtils.js +7 -2
- package/modern/utils/rtlFlipSide.js +22 -0
- package/node/DataGrid/DataGrid.js +2 -3
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/components/GridHeaders.js +2 -2
- package/node/components/GridRow.js +25 -77
- package/node/components/GridSkeletonLoadingOverlay.js +17 -17
- package/node/components/cell/GridActionsCellItem.js +1 -1
- package/node/components/cell/GridCell.js +18 -36
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +1 -1
- package/node/components/cell/GridEditSingleSelectCell.js +2 -2
- package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -1
- package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +3 -2
- package/node/components/columnSelection/GridHeaderCheckbox.js +6 -2
- package/node/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/node/components/containers/GridRoot.js +14 -6
- package/node/components/containers/GridRootStyles.js +7 -0
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/node/components/panel/filterPanel/GridFilterInputDate.js +31 -28
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/node/components/panel/filterPanel/GridFilterInputValue.js +39 -36
- package/node/components/toolbar/GridToolbarQuickFilter.js +2 -2
- package/node/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/node/components/virtualization/GridVirtualScroller.js +4 -4
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/node/hooks/core/useGridApiInitialization.js +2 -2
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -74
- package/node/hooks/features/columnResize/useGridColumnResize.js +4 -4
- package/node/hooks/features/editing/useGridCellEditing.js +1 -1
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/hooks/features/export/useGridPrintExport.js +1 -1
- package/node/hooks/features/filter/gridFilterSelector.js +6 -1
- package/node/hooks/features/filter/gridFilterUtils.js +3 -3
- package/node/hooks/features/pagination/gridPaginationSelector.js +41 -3
- package/node/hooks/features/pagination/useGridPagination.js +5 -3
- package/node/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +2 -2
- package/node/hooks/features/rows/gridRowsSelector.js +1 -1
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/node/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +49 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +96 -43
- package/node/hooks/utils/useGridApiEventHandler.js +1 -1
- package/node/hooks/utils/useGridVisibleRows.js +3 -28
- package/node/index.js +1 -1
- package/node/internals/constants.js +9 -2
- package/node/internals/index.js +12 -0
- package/node/internals/utils/attachPinnedStyle.js +15 -0
- package/node/internals/utils/getPinnedCellOffset.js +6 -7
- package/node/internals/utils/index.js +11 -0
- package/node/locales/arSD.js +2 -0
- package/node/locales/beBY.js +1 -0
- package/node/locales/bgBG.js +2 -0
- package/node/locales/csCZ.js +2 -0
- package/node/locales/daDK.js +2 -0
- package/node/locales/deDE.js +2 -0
- package/node/locales/elGR.js +2 -0
- package/node/locales/esES.js +2 -0
- package/node/locales/faIR.js +2 -0
- package/node/locales/fiFI.js +2 -0
- package/node/locales/frFR.js +2 -0
- package/node/locales/heIL.js +2 -0
- package/node/locales/hrHR.js +2 -0
- package/node/locales/huHU.js +2 -0
- package/node/locales/isIS.js +2 -0
- package/node/locales/itIT.js +2 -0
- package/node/locales/jaJP.js +2 -0
- package/node/locales/koKR.js +2 -0
- package/node/locales/nbNO.js +2 -0
- package/node/locales/nlNL.js +2 -0
- package/node/locales/nnNO.js +2 -0
- package/node/locales/plPL.js +2 -0
- package/node/locales/ptBR.js +2 -0
- package/node/locales/ptPT.js +2 -0
- package/node/locales/roRO.js +2 -0
- package/node/locales/ruRU.js +2 -0
- package/node/locales/skSK.js +2 -0
- package/node/locales/svSE.js +2 -0
- package/node/locales/trTR.js +2 -0
- package/node/locales/ukUA.js +2 -0
- package/node/locales/urPK.js +2 -0
- package/node/locales/viVN.js +2 -0
- package/node/locales/zhCN.js +2 -0
- package/node/locales/zhHK.js +2 -0
- package/node/locales/zhTW.js +2 -0
- package/node/material/index.js +2 -1
- package/node/utils/cellBorderUtils.js +5 -5
- package/node/utils/domUtils.js +7 -2
- package/node/utils/rtlFlipSide.js +29 -0
- package/package.json +2 -2
- package/utils/cellBorderUtils.d.ts +3 -3
- package/utils/cellBorderUtils.js +5 -5
- package/utils/createSelector.d.ts +1 -1
- package/utils/domUtils.js +7 -2
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/rtlFlipSide.d.ts +2 -0
- package/utils/rtlFlipSide.js +22 -0
package/internals/constants.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare const GRID_TREE_DATA_GROUPING_FIELD = "__tree_data_group__";
|
|
2
2
|
export declare const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = "__row_group_by_columns_group__";
|
|
3
3
|
export declare const GRID_DETAIL_PANEL_TOGGLE_FIELD = "__detail_panel_toggle__";
|
|
4
|
+
export declare enum PinnedColumnPosition {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
LEFT = 1,
|
|
7
|
+
RIGHT = 2,
|
|
8
|
+
VIRTUAL = 3
|
|
9
|
+
}
|
package/internals/constants.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export const GRID_TREE_DATA_GROUPING_FIELD = '__tree_data_group__';
|
|
2
2
|
export const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = '__row_group_by_columns_group__';
|
|
3
|
-
export const GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';
|
|
3
|
+
export const GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';
|
|
4
|
+
export let PinnedColumnPosition = /*#__PURE__*/function (PinnedColumnPosition) {
|
|
5
|
+
PinnedColumnPosition[PinnedColumnPosition["NONE"] = 0] = "NONE";
|
|
6
|
+
PinnedColumnPosition[PinnedColumnPosition["LEFT"] = 1] = "LEFT";
|
|
7
|
+
PinnedColumnPosition[PinnedColumnPosition["RIGHT"] = 2] = "RIGHT";
|
|
8
|
+
PinnedColumnPosition[PinnedColumnPosition["VIRTUAL"] = 3] = "VIRTUAL";
|
|
9
|
+
return PinnedColumnPosition;
|
|
10
|
+
}({});
|
package/internals/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { getValueOptions } from '../components/panel/filterPanel/filterPanelUtil
|
|
|
12
12
|
export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
13
13
|
export type { GridPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
14
14
|
export { GridStrategyGroup, useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY, } from '../hooks/core/strategyProcessing';
|
|
15
|
-
export type { GridStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
15
|
+
export type { GridStrategyProcessor, GridStrategyProcessorName, } from '../hooks/core/strategyProcessing';
|
|
16
16
|
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
17
17
|
export { unwrapPrivateAPI } from '../hooks/core/useGridApiInitialization';
|
|
18
18
|
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
@@ -77,6 +77,7 @@ export type * from '../models/props/DataGridProps';
|
|
|
77
77
|
export type * from '../models/gridDataSource';
|
|
78
78
|
export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/export/utils';
|
|
79
79
|
export * from '../utils/createControllablePromise';
|
|
80
|
+
export * from '../utils/rtlFlipSide';
|
|
80
81
|
export { createSelector, createSelectorMemoized } from '../utils/createSelector';
|
|
81
82
|
export { gridRowGroupsToFetchSelector } from '../hooks/features/rows/gridRowsSelector';
|
|
82
83
|
export { findParentElementFromClassName, getActiveElement, isEventTargetInPortal, } from '../utils/domUtils';
|
package/internals/index.js
CHANGED
|
@@ -62,6 +62,7 @@ export { useGridVisibleRows, getVisibleRows } from "../hooks/utils/useGridVisibl
|
|
|
62
62
|
export { useGridInitializeState } from "../hooks/utils/useGridInitializeState.js";
|
|
63
63
|
export { getColumnsToExport, defaultGetRowsToExport } from "../hooks/features/export/utils.js";
|
|
64
64
|
export * from "../utils/createControllablePromise.js";
|
|
65
|
+
export * from "../utils/rtlFlipSide.js";
|
|
65
66
|
export { createSelector, createSelectorMemoized } from "../utils/createSelector.js";
|
|
66
67
|
export { gridRowGroupsToFetchSelector } from "../hooks/features/rows/gridRowsSelector.js";
|
|
67
68
|
export { findParentElementFromClassName, getActiveElement, isEventTargetInPortal } from "../utils/domUtils.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { rtlFlipSide } from "../../utils/rtlFlipSide.js";
|
|
2
|
+
export function attachPinnedStyle(style, isRtl, pinnedPosition, pinnedOffset) {
|
|
3
|
+
const side = rtlFlipSide(pinnedPosition, isRtl);
|
|
4
|
+
if (!side || pinnedOffset === undefined) {
|
|
5
|
+
return style;
|
|
6
|
+
}
|
|
7
|
+
style[side] = pinnedOffset;
|
|
8
|
+
return style;
|
|
9
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export declare const getPinnedCellOffset: (pinnedPosition:
|
|
1
|
+
import { PinnedColumnPosition } from '../constants';
|
|
2
|
+
import { gridColumnPositionsSelector } from '../../hooks/features/columns';
|
|
3
|
+
export declare const getPinnedCellOffset: (pinnedPosition: PinnedColumnPosition | undefined, computedWidth: number, columnIndex: number, columnPositions: ReturnType<typeof gridColumnPositionsSelector>, columnsTotalWidth: number, scrollbarWidth: number) => number | undefined;
|
|
@@ -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
|
@@ -102,6 +102,8 @@ const faIRGrid = {
|
|
|
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/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
|
@@ -102,6 +102,8 @@ const urPKGrid = {
|
|
|
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/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,
|
|
@@ -13,7 +13,7 @@ export interface GridCoreApi {
|
|
|
13
13
|
* The React ref of the grid root container div element.
|
|
14
14
|
* @ignore - do not document.
|
|
15
15
|
*/
|
|
16
|
-
rootElementRef: React.RefObject<HTMLDivElement>;
|
|
16
|
+
rootElementRef: React.RefObject<HTMLDivElement | null>;
|
|
17
17
|
/**
|
|
18
18
|
* Registers a handler for an event.
|
|
19
19
|
* @param {string} event The name of the event.
|
|
@@ -59,27 +59,27 @@ export interface GridCorePrivateApi<GridPublicApi extends GridApiCommon, GridPri
|
|
|
59
59
|
/**
|
|
60
60
|
* The React ref of the grid main container div element.
|
|
61
61
|
*/
|
|
62
|
-
mainElementRef: React.
|
|
62
|
+
mainElementRef: React.RefObject<HTMLDivElement | null>;
|
|
63
63
|
/**
|
|
64
64
|
* The React ref of the grid's virtual scroller container element.
|
|
65
65
|
*/
|
|
66
|
-
virtualScrollerRef: React.RefObject<HTMLDivElement>;
|
|
66
|
+
virtualScrollerRef: React.RefObject<HTMLDivElement | null>;
|
|
67
67
|
/**
|
|
68
68
|
* The React ref of the grid's vertical virtual scrollbar container element.
|
|
69
69
|
*/
|
|
70
|
-
virtualScrollbarVerticalRef: React.RefObject<HTMLDivElement>;
|
|
70
|
+
virtualScrollbarVerticalRef: React.RefObject<HTMLDivElement | null>;
|
|
71
71
|
/**
|
|
72
72
|
* The React ref of the grid's horizontal virtual scrollbar container element.
|
|
73
73
|
*/
|
|
74
|
-
virtualScrollbarHorizontalRef: React.RefObject<HTMLDivElement>;
|
|
74
|
+
virtualScrollbarHorizontalRef: React.RefObject<HTMLDivElement | null>;
|
|
75
75
|
/**
|
|
76
76
|
* The React ref of the grid column container virtualized div element.
|
|
77
77
|
*/
|
|
78
|
-
columnHeadersContainerRef: React.RefObject<HTMLDivElement>;
|
|
78
|
+
columnHeadersContainerRef: React.RefObject<HTMLDivElement | null>;
|
|
79
79
|
/**
|
|
80
80
|
* The React ref of the grid header filter row element.
|
|
81
81
|
*/
|
|
82
|
-
headerFiltersElementRef?: React.RefObject<HTMLDivElement>;
|
|
82
|
+
headerFiltersElementRef?: React.RefObject<HTMLDivElement | null>;
|
|
83
83
|
register: <V extends 'public' | 'private', T extends V extends 'public' ? Partial<GridPublicApi> : Partial<Omit<GridPrivateApi, keyof GridPublicApi>>>(visibility: V, methods: T) => void;
|
|
84
84
|
/**
|
|
85
85
|
* Returns the public API.
|
|
@@ -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;
|
|
@@ -24,13 +24,13 @@ export type ValueOptions = string | number | {
|
|
|
24
24
|
* Value that can be used as a key for grouping rows
|
|
25
25
|
*/
|
|
26
26
|
export type GridKeyValue = string | number | boolean;
|
|
27
|
-
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: React.
|
|
28
|
-
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: React.
|
|
29
|
-
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
30
|
-
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
31
|
-
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
32
|
-
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: React.
|
|
33
|
-
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
27
|
+
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: React.RefObject<GridApiCommunity>) => boolean;
|
|
28
|
+
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: React.RefObject<GridApiCommunity>) => null | GridApplyQuickFilter<R, V>;
|
|
29
|
+
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => V;
|
|
30
|
+
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => F;
|
|
31
|
+
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => R;
|
|
32
|
+
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => V;
|
|
33
|
+
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => number | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* Column Definition base interface.
|
|
36
36
|
*/
|
|
@@ -217,7 +217,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
217
217
|
* This function can return `null` to skip filtering for this value and column.
|
|
218
218
|
* @param {any} value The value with which we want to filter the column.
|
|
219
219
|
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
220
|
-
* @param {React.
|
|
220
|
+
* @param {React.RefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
221
221
|
* @returns {null | GridApplyQuickFilter} The function to call to check if a row pass this filter value or not.
|
|
222
222
|
*/
|
|
223
223
|
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.
|