@mui/x-data-grid 7.0.0-beta.3 → 7.0.0-beta.5
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 +357 -22
- package/DataGrid/DataGrid.js +2 -0
- package/colDef/gridActionsColDef.js +1 -0
- package/colDef/gridBooleanColDef.js +1 -0
- package/colDef/gridBooleanOperators.js +1 -1
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/components/GridRow.d.ts +7 -9
- package/components/GridRow.js +36 -47
- package/components/GridScrollbarFillerCell.js +6 -21
- package/components/cell/GridCell.d.ts +2 -1
- package/components/cell/GridCell.js +17 -15
- package/components/cell/GridSkeletonCell.d.ts +3 -2
- package/components/cell/GridSkeletonCell.js +14 -6
- package/components/columnSelection/GridCellCheckboxRenderer.js +7 -6
- package/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/components/containers/GridRootStyles.js +59 -21
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/components/virtualization/GridBottomContainer.js +1 -1
- package/components/virtualization/GridTopContainer.js +1 -1
- package/components/virtualization/GridVirtualScroller.js +2 -2
- package/components/virtualization/GridVirtualScrollerRenderZone.js +9 -3
- package/constants/gridClasses.d.ts +24 -8
- package/constants/gridClasses.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +11 -8
- package/hooks/features/columns/gridColumnsSelector.d.ts +6 -0
- package/hooks/features/columns/gridColumnsSelector.js +8 -1
- package/hooks/features/columns/useGridColumns.js +4 -0
- package/hooks/features/editing/useGridCellEditing.js +3 -4
- package/hooks/features/editing/useGridRowEditing.js +4 -6
- package/hooks/features/filter/useGridFilter.js +2 -2
- package/hooks/features/rows/useGridRows.js +8 -4
- package/hooks/features/rows/useGridRowsMeta.js +5 -13
- package/hooks/features/sorting/gridSortingUtils.js +9 -1
- package/hooks/features/sorting/useGridSorting.js +1 -2
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +0 -9
- package/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -7
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +3 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +82 -138
- package/hooks/features/virtualization/useGridVirtualization.d.ts +0 -8
- package/hooks/features/virtualization/useGridVirtualization.js +1 -6
- package/hooks/utils/useTimeout.d.ts +5 -3
- package/hooks/utils/useTimeout.js +13 -5
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +1 -1
- package/models/colDef/gridColDef.d.ts +13 -0
- package/modern/DataGrid/DataGrid.js +2 -0
- package/modern/colDef/gridActionsColDef.js +1 -0
- package/modern/colDef/gridBooleanColDef.js +1 -0
- package/modern/colDef/gridBooleanOperators.js +1 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/modern/components/GridRow.js +35 -46
- package/modern/components/GridScrollbarFillerCell.js +6 -21
- package/modern/components/cell/GridCell.js +17 -15
- package/modern/components/cell/GridSkeletonCell.js +14 -6
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +7 -6
- package/modern/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/modern/components/containers/GridRootStyles.js +59 -21
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/modern/components/virtualization/GridBottomContainer.js +1 -1
- package/modern/components/virtualization/GridTopContainer.js +1 -1
- package/modern/components/virtualization/GridVirtualScroller.js +2 -2
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +8 -3
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +11 -8
- package/modern/hooks/features/columns/gridColumnsSelector.js +8 -1
- package/modern/hooks/features/columns/useGridColumns.js +2 -0
- package/modern/hooks/features/editing/useGridCellEditing.js +3 -4
- package/modern/hooks/features/editing/useGridRowEditing.js +4 -6
- package/modern/hooks/features/filter/useGridFilter.js +2 -2
- package/modern/hooks/features/rows/useGridRows.js +8 -4
- package/modern/hooks/features/rows/useGridRowsMeta.js +5 -13
- package/modern/hooks/features/sorting/gridSortingUtils.js +9 -1
- package/modern/hooks/features/sorting/useGridSorting.js +1 -2
- package/modern/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -7
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +80 -136
- package/modern/hooks/features/virtualization/useGridVirtualization.js +1 -6
- package/modern/hooks/utils/useTimeout.js +13 -5
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -1
- package/modern/utils/keyboardUtils.js +20 -11
- package/modern/utils/utils.js +9 -0
- package/node/DataGrid/DataGrid.js +1 -0
- package/node/colDef/gridActionsColDef.js +1 -0
- package/node/colDef/gridBooleanColDef.js +1 -0
- package/node/colDef/gridBooleanOperators.js +1 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/node/components/GridRow.js +35 -46
- package/node/components/GridScrollbarFillerCell.js +5 -20
- package/node/components/cell/GridCell.js +17 -15
- package/node/components/cell/GridSkeletonCell.js +15 -7
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +7 -6
- package/node/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/node/components/containers/GridRootStyles.js +59 -21
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
- package/node/components/virtualization/GridBottomContainer.js +1 -1
- package/node/components/virtualization/GridTopContainer.js +1 -1
- package/node/components/virtualization/GridVirtualScroller.js +2 -2
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +7 -2
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +8 -5
- package/node/hooks/features/columns/gridColumnsSelector.js +9 -2
- package/node/hooks/features/columns/useGridColumns.js +2 -0
- package/node/hooks/features/editing/useGridCellEditing.js +2 -3
- package/node/hooks/features/editing/useGridRowEditing.js +3 -5
- package/node/hooks/features/filter/useGridFilter.js +2 -2
- package/node/hooks/features/rows/useGridRows.js +8 -4
- package/node/hooks/features/rows/useGridRowsMeta.js +5 -13
- package/node/hooks/features/sorting/gridSortingUtils.js +9 -1
- package/node/hooks/features/sorting/useGridSorting.js +1 -2
- package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +1 -8
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +81 -136
- package/node/hooks/features/virtualization/useGridVirtualization.js +2 -7
- package/node/hooks/utils/useTimeout.js +13 -4
- package/node/index.js +1 -1
- package/node/internals/index.js +7 -0
- package/node/utils/keyboardUtils.js +25 -20
- package/node/utils/utils.js +12 -1
- package/package.json +1 -1
- package/utils/keyboardUtils.d.ts +7 -6
- package/utils/keyboardUtils.js +20 -11
- package/utils/utils.d.ts +4 -0
- package/utils/utils.js +9 -0
- package/legacy/DataGrid/DataGrid.js +0 -664
- package/legacy/DataGrid/index.js +0 -2
- package/legacy/DataGrid/useDataGridComponent.js +0 -81
- package/legacy/DataGrid/useDataGridProps.js +0 -98
- package/legacy/colDef/gridActionsColDef.js +0 -18
- package/legacy/colDef/gridBooleanColDef.js +0 -42
- package/legacy/colDef/gridBooleanOperators.js +0 -16
- package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -33
- package/legacy/colDef/gridDateColDef.js +0 -62
- package/legacy/colDef/gridDateOperators.js +0 -115
- package/legacy/colDef/gridDefaultColumnTypes.js +0 -19
- package/legacy/colDef/gridNumericColDef.js +0 -19
- package/legacy/colDef/gridNumericOperators.js +0 -145
- package/legacy/colDef/gridSingleSelectColDef.js +0 -64
- package/legacy/colDef/gridSingleSelectOperators.js +0 -46
- package/legacy/colDef/gridStringColDef.js +0 -27
- package/legacy/colDef/gridStringOperators.js +0 -112
- package/legacy/colDef/index.js +0 -13
- package/legacy/components/GridApiContext.js +0 -5
- package/legacy/components/GridColumnHeaders.js +0 -94
- package/legacy/components/GridDetailPanels.js +0 -4
- package/legacy/components/GridFooter.js +0 -42
- package/legacy/components/GridHeader.js +0 -13
- package/legacy/components/GridHeaders.js +0 -53
- package/legacy/components/GridLoadingOverlay.js +0 -21
- package/legacy/components/GridNoResultsOverlay.js +0 -14
- package/legacy/components/GridNoRowsOverlay.js +0 -23
- package/legacy/components/GridPagination.js +0 -85
- package/legacy/components/GridPinnedRows.js +0 -4
- package/legacy/components/GridRow.js +0 -465
- package/legacy/components/GridRowCount.js +0 -63
- package/legacy/components/GridScrollbarFillerCell.js +0 -34
- package/legacy/components/GridSelectedRowCount.js +0 -66
- package/legacy/components/base/GridBody.js +0 -2
- package/legacy/components/base/GridFooterPlaceholder.js +0 -12
- package/legacy/components/base/GridOverlays.js +0 -122
- package/legacy/components/base/index.js +0 -3
- package/legacy/components/cell/GridActionsCell.js +0 -294
- package/legacy/components/cell/GridActionsCellItem.js +0 -69
- package/legacy/components/cell/GridBooleanCell.js +0 -121
- package/legacy/components/cell/GridCell.js +0 -350
- package/legacy/components/cell/GridEditBooleanCell.js +0 -174
- package/legacy/components/cell/GridEditDateCell.js +0 -230
- package/legacy/components/cell/GridEditInputCell.js +0 -198
- package/legacy/components/cell/GridEditSingleSelectCell.js +0 -231
- package/legacy/components/cell/GridSkeletonCell.js +0 -52
- package/legacy/components/cell/index.js +0 -9
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -59
- package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +0 -41
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +0 -132
- package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -93
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +0 -212
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +0 -71
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -79
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +0 -84
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +0 -55
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -107
- package/legacy/components/columnHeaders/GridIconButtonContainer.js +0 -41
- package/legacy/components/columnHeaders/index.js +0 -5
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -160
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -134
- package/legacy/components/columnSelection/index.js +0 -2
- package/legacy/components/columnsManagement/GridColumnsManagement.js +0 -307
- package/legacy/components/columnsManagement/index.js +0 -1
- package/legacy/components/columnsManagement/utils.js +0 -22
- package/legacy/components/containers/GridFooterContainer.js +0 -50
- package/legacy/components/containers/GridOverlay.js +0 -52
- package/legacy/components/containers/GridRoot.js +0 -79
- package/legacy/components/containers/GridRootStyles.js +0 -395
- package/legacy/components/containers/GridToolbarContainer.js +0 -59
- package/legacy/components/containers/index.js +0 -4
- package/legacy/components/index.js +0 -19
- package/legacy/components/menu/GridMenu.js +0 -132
- package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -61
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +0 -81
- package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +0 -56
- package/legacy/components/menu/columnMenu/GridColumnMenuItemProps.js +0 -1
- package/legacy/components/menu/columnMenu/GridColumnMenuProps.js +0 -1
- package/legacy/components/menu/columnMenu/index.js +0 -9
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -21
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -41
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -60
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -41
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -80
- package/legacy/components/menu/columnMenu/menuItems/index.js +0 -5
- package/legacy/components/menu/index.js +0 -2
- package/legacy/components/panel/GridColumnsPanel.js +0 -22
- package/legacy/components/panel/GridPanel.js +0 -137
- package/legacy/components/panel/GridPanelContent.js +0 -49
- package/legacy/components/panel/GridPanelFooter.js +0 -50
- package/legacy/components/panel/GridPanelHeader.js +0 -48
- package/legacy/components/panel/GridPanelWrapper.js +0 -64
- package/legacy/components/panel/GridPreferencesPanel.js +0 -26
- package/legacy/components/panel/filterPanel/GridFilterForm.js +0 -528
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +0 -118
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +0 -121
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -116
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -102
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -149
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -106
- package/legacy/components/panel/filterPanel/GridFilterInputValueProps.js +0 -1
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +0 -264
- package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -22
- package/legacy/components/panel/filterPanel/index.js +0 -9
- package/legacy/components/panel/index.js +0 -7
- package/legacy/components/reexportable.js +0 -1
- package/legacy/components/toolbar/GridToolbar.js +0 -64
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -68
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -142
- package/legacy/components/toolbar/GridToolbarExport.js +0 -80
- package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -105
- package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -136
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +0 -164
- package/legacy/components/toolbar/index.js +0 -7
- package/legacy/components/virtualization/GridBottomContainer.js +0 -25
- package/legacy/components/virtualization/GridMainContainer.js +0 -20
- package/legacy/components/virtualization/GridTopContainer.js +0 -35
- package/legacy/components/virtualization/GridVirtualScrollbar.js +0 -129
- package/legacy/components/virtualization/GridVirtualScroller.js +0 -93
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +0 -35
- package/legacy/components/virtualization/GridVirtualScrollerFiller.js +0 -70
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +0 -49
- package/legacy/constants/defaultGridSlotsComponents.js +0 -33
- package/legacy/constants/envConstants.js +0 -19
- package/legacy/constants/gridClasses.js +0 -5
- package/legacy/constants/gridDetailPanelToggleField.js +0 -2
- package/legacy/constants/index.js +0 -3
- package/legacy/constants/localeTextConstants.js +0 -158
- package/legacy/context/GridContextProvider.js +0 -21
- package/legacy/context/GridRootPropsContext.js +0 -6
- package/legacy/context/index.js +0 -1
- package/legacy/hooks/core/gridCoreSelector.js +0 -7
- package/legacy/hooks/core/index.js +0 -1
- package/legacy/hooks/core/pipeProcessing/gridPipeProcessingApi.js +0 -1
- package/legacy/hooks/core/pipeProcessing/index.js +0 -4
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -114
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -26
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -26
- package/legacy/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +0 -1
- package/legacy/hooks/core/strategyProcessing/index.js +0 -3
- package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -18
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -116
- package/legacy/hooks/core/useGridApiInitialization.js +0 -124
- package/legacy/hooks/core/useGridInitialization.js +0 -26
- package/legacy/hooks/core/useGridLocaleText.js +0 -12
- package/legacy/hooks/core/useGridLoggerFactory.js +0 -51
- package/legacy/hooks/core/useGridRefs.js +0 -13
- package/legacy/hooks/core/useGridStateInitialization.js +0 -106
- package/legacy/hooks/core/useGridTheme.js +0 -21
- package/legacy/hooks/features/clipboard/useGridClipboard.js +0 -92
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js +0 -1
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -24
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -92
- package/legacy/hooks/features/columnGrouping/index.js +0 -2
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -140
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -272
- package/legacy/hooks/features/columnMenu/columnMenuInterfaces.js +0 -1
- package/legacy/hooks/features/columnMenu/columnMenuSelector.js +0 -3
- package/legacy/hooks/features/columnMenu/index.js +0 -2
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +0 -108
- package/legacy/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -71
- package/legacy/hooks/features/columns/gridColumnsInterfaces.js +0 -9
- package/legacy/hooks/features/columns/gridColumnsSelector.js +0 -174
- package/legacy/hooks/features/columns/gridColumnsUtils.js +0 -338
- package/legacy/hooks/features/columns/index.js +0 -2
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +0 -105
- package/legacy/hooks/features/columns/useGridColumns.js +0 -319
- package/legacy/hooks/features/density/densitySelector.js +0 -10
- package/legacy/hooks/features/density/densityState.js +0 -1
- package/legacy/hooks/features/density/index.js +0 -2
- package/legacy/hooks/features/density/useGridDensity.js +0 -48
- package/legacy/hooks/features/dimensions/gridDimensionsApi.js +0 -1
- package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +0 -3
- package/legacy/hooks/features/dimensions/index.js +0 -2
- package/legacy/hooks/features/dimensions/useGridDimensions.js +0 -302
- package/legacy/hooks/features/editing/gridEditingSelectors.js +0 -4
- package/legacy/hooks/features/editing/useGridCellEditing.js +0 -456
- package/legacy/hooks/features/editing/useGridEditing.js +0 -145
- package/legacy/hooks/features/editing/useGridRowEditing.js +0 -567
- package/legacy/hooks/features/events/useGridEvents.js +0 -23
- package/legacy/hooks/features/export/serializers/csvSerializer.js +0 -155
- package/legacy/hooks/features/export/useGridCsvExport.js +0 -75
- package/legacy/hooks/features/export/useGridPrintExport.js +0 -313
- package/legacy/hooks/features/export/utils.js +0 -49
- package/legacy/hooks/features/filter/gridFilterSelector.js +0 -165
- package/legacy/hooks/features/filter/gridFilterState.js +0 -20
- package/legacy/hooks/features/filter/gridFilterUtils.js +0 -330
- package/legacy/hooks/features/filter/index.js +0 -2
- package/legacy/hooks/features/filter/useGridFilter.js +0 -378
- package/legacy/hooks/features/focus/gridFocusState.js +0 -1
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +0 -31
- package/legacy/hooks/features/focus/index.js +0 -2
- package/legacy/hooks/features/focus/useGridFocus.js +0 -408
- package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -10
- package/legacy/hooks/features/headerFiltering/index.js +0 -1
- package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -93
- package/legacy/hooks/features/index.js +0 -16
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -565
- package/legacy/hooks/features/pagination/gridPaginationInterfaces.js +0 -1
- package/legacy/hooks/features/pagination/gridPaginationSelector.js +0 -115
- package/legacy/hooks/features/pagination/gridPaginationUtils.js +0 -31
- package/legacy/hooks/features/pagination/index.js +0 -2
- package/legacy/hooks/features/pagination/useGridPagination.js +0 -175
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -3
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelState.js +0 -1
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -6
- package/legacy/hooks/features/preferencesPanel/index.js +0 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -125
- package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -19
- package/legacy/hooks/features/rowSelection/index.js +0 -1
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +0 -419
- package/legacy/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -45
- package/legacy/hooks/features/rowSelection/utils.js +0 -8
- package/legacy/hooks/features/rows/gridRowsInterfaces.js +0 -1
- package/legacy/hooks/features/rows/gridRowsMetaSelector.js +0 -3
- package/legacy/hooks/features/rows/gridRowsMetaState.js +0 -1
- package/legacy/hooks/features/rows/gridRowsSelector.js +0 -90
- package/legacy/hooks/features/rows/gridRowsUtils.js +0 -294
- package/legacy/hooks/features/rows/index.js +0 -4
- package/legacy/hooks/features/rows/useGridParamsApi.js +0 -142
- package/legacy/hooks/features/rows/useGridRows.js +0 -466
- package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -236
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +0 -82
- package/legacy/hooks/features/scroll/useGridScroll.js +0 -133
- package/legacy/hooks/features/sorting/gridSortingSelector.js +0 -56
- package/legacy/hooks/features/sorting/gridSortingState.js +0 -1
- package/legacy/hooks/features/sorting/gridSortingUtils.js +0 -154
- package/legacy/hooks/features/sorting/index.js +0 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +0 -276
- package/legacy/hooks/features/statePersistence/gridStatePersistenceInterface.js +0 -1
- package/legacy/hooks/features/statePersistence/index.js +0 -1
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +0 -25
- package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -61
- package/legacy/hooks/features/virtualization/index.js +0 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -646
- package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -63
- package/legacy/hooks/index.js +0 -3
- package/legacy/hooks/utils/index.js +0 -9
- package/legacy/hooks/utils/useFirstRender.js +0 -8
- package/legacy/hooks/utils/useGridApiContext.js +0 -9
- package/legacy/hooks/utils/useGridApiEventHandler.js +0 -105
- package/legacy/hooks/utils/useGridApiMethod.js +0 -11
- package/legacy/hooks/utils/useGridApiRef.js +0 -7
- package/legacy/hooks/utils/useGridAriaAttributes.js +0 -25
- package/legacy/hooks/utils/useGridInitializeState.js +0 -8
- package/legacy/hooks/utils/useGridLogger.js +0 -10
- package/legacy/hooks/utils/useGridNativeEventListener.js +0 -32
- package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -12
- package/legacy/hooks/utils/useGridRootProps.js +0 -9
- package/legacy/hooks/utils/useGridSelector.js +0 -54
- package/legacy/hooks/utils/useGridVisibleRows.js +0 -42
- package/legacy/hooks/utils/useLazyRef.js +0 -11
- package/legacy/hooks/utils/useOnMount.js +0 -7
- package/legacy/hooks/utils/useResizeObserver.js +0 -36
- package/legacy/hooks/utils/useRunOnce.js +0 -18
- package/legacy/hooks/utils/useTimeout.js +0 -38
- package/legacy/index.js +0 -38
- package/legacy/internals/index.js +0 -68
- package/legacy/internals/utils/computeSlots.js +0 -17
- package/legacy/internals/utils/index.js +0 -3
- package/legacy/internals/utils/propValidation.js +0 -21
- package/legacy/internals/utils/useProps.js +0 -32
- package/legacy/joy/icons.js +0 -432
- package/legacy/joy/index.js +0 -2
- package/legacy/joy/joySlots.js +0 -420
- package/legacy/locales/arSD.js +0 -160
- package/legacy/locales/beBY.js +0 -184
- package/legacy/locales/bgBG.js +0 -160
- package/legacy/locales/coreLocales.js +0 -62
- package/legacy/locales/csCZ.js +0 -181
- package/legacy/locales/daDK.js +0 -160
- package/legacy/locales/deDE.js +0 -160
- package/legacy/locales/elGR.js +0 -160
- package/legacy/locales/enUS.js +0 -4
- package/legacy/locales/esES.js +0 -160
- package/legacy/locales/faIR.js +0 -160
- package/legacy/locales/fiFI.js +0 -160
- package/legacy/locales/frFR.js +0 -160
- package/legacy/locales/heIL.js +0 -160
- package/legacy/locales/hrHR.js +0 -160
- package/legacy/locales/huHU.js +0 -160
- package/legacy/locales/index.js +0 -35
- package/legacy/locales/itIT.js +0 -160
- package/legacy/locales/jaJP.js +0 -160
- package/legacy/locales/koKR.js +0 -162
- package/legacy/locales/nbNO.js +0 -162
- package/legacy/locales/nlNL.js +0 -160
- package/legacy/locales/plPL.js +0 -163
- package/legacy/locales/ptBR.js +0 -160
- package/legacy/locales/ptPT.js +0 -160
- package/legacy/locales/roRO.js +0 -160
- package/legacy/locales/ruRU.js +0 -181
- package/legacy/locales/skSK.js +0 -181
- package/legacy/locales/svSE.js +0 -160
- package/legacy/locales/trTR.js +0 -161
- package/legacy/locales/ukUA.js +0 -182
- package/legacy/locales/urPK.js +0 -160
- package/legacy/locales/viVN.js +0 -160
- package/legacy/locales/zhCN.js +0 -160
- package/legacy/locales/zhHK.js +0 -160
- package/legacy/locales/zhTW.js +0 -160
- package/legacy/material/components/MUISelectOption.js +0 -14
- package/legacy/material/icons/GridColumnUnsortedIcon.js +0 -16
- package/legacy/material/icons/index.js +0 -89
- package/legacy/material/index.js +0 -69
- package/legacy/models/api/gridApiCommon.js +0 -1
- package/legacy/models/api/gridApiCommunity.js +0 -1
- package/legacy/models/api/gridCallbackDetails.js +0 -1
- package/legacy/models/api/gridColumnApi.js +0 -1
- package/legacy/models/api/gridColumnGroupingApi.js +0 -1
- package/legacy/models/api/gridColumnMenuApi.js +0 -1
- package/legacy/models/api/gridColumnSpanning.js +0 -1
- package/legacy/models/api/gridCoreApi.js +0 -1
- package/legacy/models/api/gridCsvExportApi.js +0 -1
- package/legacy/models/api/gridDensityApi.js +0 -1
- package/legacy/models/api/gridEditingApi.js +0 -1
- package/legacy/models/api/gridFilterApi.js +0 -1
- package/legacy/models/api/gridFocusApi.js +0 -1
- package/legacy/models/api/gridHeaderFilteringApi.js +0 -1
- package/legacy/models/api/gridLocaleTextApi.js +0 -1
- package/legacy/models/api/gridLoggerApi.js +0 -1
- package/legacy/models/api/gridParamsApi.js +0 -1
- package/legacy/models/api/gridPreferencesPanelApi.js +0 -1
- package/legacy/models/api/gridPrintExportApi.js +0 -1
- package/legacy/models/api/gridRowApi.js +0 -1
- package/legacy/models/api/gridRowSelectionApi.js +0 -1
- package/legacy/models/api/gridRowsMetaApi.js +0 -1
- package/legacy/models/api/gridScrollApi.js +0 -1
- package/legacy/models/api/gridSortApi.js +0 -1
- package/legacy/models/api/gridStateApi.js +0 -1
- package/legacy/models/api/gridVirtualizationApi.js +0 -1
- package/legacy/models/api/index.js +0 -16
- package/legacy/models/colDef/gridColDef.js +0 -1
- package/legacy/models/colDef/gridColType.js +0 -1
- package/legacy/models/colDef/gridColumnTypesRecord.js +0 -1
- package/legacy/models/colDef/index.js +0 -6
- package/legacy/models/controlStateItem.js +0 -1
- package/legacy/models/cursorCoordinates.js +0 -1
- package/legacy/models/elementSize.js +0 -1
- package/legacy/models/events/gridEventListener.js +0 -1
- package/legacy/models/events/gridEventLookup.js +0 -1
- package/legacy/models/events/gridEventPublisher.js +0 -1
- package/legacy/models/events/index.js +0 -3
- package/legacy/models/gridApiCaches.js +0 -1
- package/legacy/models/gridCell.js +0 -1
- package/legacy/models/gridCellClass.js +0 -1
- package/legacy/models/gridColumnGrouping.js +0 -11
- package/legacy/models/gridColumnHeaderClass.js +0 -1
- package/legacy/models/gridColumnSpanning.js +0 -1
- package/legacy/models/gridDensity.js +0 -1
- package/legacy/models/gridEditRowModel.js +0 -16
- package/legacy/models/gridExport.js +0 -1
- package/legacy/models/gridFeatureMode.js +0 -1
- package/legacy/models/gridFilterItem.js +0 -11
- package/legacy/models/gridFilterModel.js +0 -1
- package/legacy/models/gridFilterOperator.js +0 -1
- package/legacy/models/gridHeaderFilteringModel.js +0 -1
- package/legacy/models/gridIconSlotsComponent.js +0 -1
- package/legacy/models/gridPaginationProps.js +0 -1
- package/legacy/models/gridRenderContextProps.js +0 -1
- package/legacy/models/gridRowSelectionModel.js +0 -1
- package/legacy/models/gridRows.js +0 -1
- package/legacy/models/gridSlotsComponent.js +0 -1
- package/legacy/models/gridSlotsComponentsProps.js +0 -1
- package/legacy/models/gridSortModel.js +0 -1
- package/legacy/models/gridStateCommunity.js +0 -1
- package/legacy/models/index.js +0 -29
- package/legacy/models/logger.js +0 -1
- package/legacy/models/muiEvent.js +0 -1
- package/legacy/models/params/gridCellParams.js +0 -1
- package/legacy/models/params/gridColumnGroupHeaderParams.js +0 -1
- package/legacy/models/params/gridColumnHeaderParams.js +0 -1
- package/legacy/models/params/gridColumnOrderChangeParams.js +0 -1
- package/legacy/models/params/gridColumnResizeParams.js +0 -1
- package/legacy/models/params/gridEditCellParams.js +0 -27
- package/legacy/models/params/gridHeaderSelectionCheckboxParams.js +0 -1
- package/legacy/models/params/gridMenuParams.js +0 -1
- package/legacy/models/params/gridPreferencePanelParams.js +0 -1
- package/legacy/models/params/gridRowParams.js +0 -44
- package/legacy/models/params/gridRowSelectionCheckboxParams.js +0 -1
- package/legacy/models/params/gridScrollParams.js +0 -1
- package/legacy/models/params/gridValueOptionsParams.js +0 -1
- package/legacy/models/params/index.js +0 -13
- package/legacy/models/props/DataGridProps.js +0 -1
- package/legacy/themeAugmentation/index.js +0 -4
- package/legacy/themeAugmentation/overrides.js +0 -1
- package/legacy/themeAugmentation/props.js +0 -1
- package/legacy/utils/EventManager.js +0 -91
- package/legacy/utils/Store.js +0 -34
- package/legacy/utils/cleanupTracking/CleanupTracking.js +0 -1
- package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
- package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
- package/legacy/utils/createControllablePromise.js +0 -11
- package/legacy/utils/createSelector.js +0 -120
- package/legacy/utils/doesSupportPreventScroll.js +0 -13
- package/legacy/utils/domUtils.js +0 -49
- package/legacy/utils/exportAs.js +0 -40
- package/legacy/utils/fastMemo.js +0 -5
- package/legacy/utils/fastObjectShallowCompare.js +0 -32
- package/legacy/utils/getGridLocalization.js +0 -15
- package/legacy/utils/getPublicApiRef.js +0 -5
- package/legacy/utils/index.js +0 -1
- package/legacy/utils/keyboardUtils.js +0 -60
- package/legacy/utils/utils.js +0 -189
- package/legacy/utils/warning.js +0 -25
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
4
|
-
export var EMPTY_OFFSETS = {
|
|
5
|
-
top: 0,
|
|
6
|
-
left: 0
|
|
7
|
-
};
|
|
8
|
-
export var EMPTY_RENDER_CONTEXT = {
|
|
9
|
-
firstRowIndex: 0,
|
|
10
|
-
lastRowIndex: 0,
|
|
11
|
-
firstColumnIndex: 0,
|
|
12
|
-
lastColumnIndex: 0
|
|
13
|
-
};
|
|
14
|
-
export var virtualizationStateInitializer = function virtualizationStateInitializer(state, props) {
|
|
15
|
-
var virtualization = {
|
|
16
|
-
enabled: !props.disableVirtualization,
|
|
17
|
-
enabledForColumns: true,
|
|
18
|
-
renderContext: EMPTY_RENDER_CONTEXT,
|
|
19
|
-
offsets: EMPTY_OFFSETS
|
|
20
|
-
};
|
|
21
|
-
return _extends({}, state, {
|
|
22
|
-
virtualization: virtualization
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export function useGridVirtualization(apiRef, props) {
|
|
26
|
-
/*
|
|
27
|
-
* API METHODS
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
var setVirtualization = function setVirtualization(enabled) {
|
|
31
|
-
apiRef.current.setState(function (state) {
|
|
32
|
-
return _extends({}, state, {
|
|
33
|
-
virtualization: _extends({}, state.virtualization, {
|
|
34
|
-
enabled: enabled
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var setColumnVirtualization = function setColumnVirtualization(enabled) {
|
|
40
|
-
apiRef.current.setState(function (state) {
|
|
41
|
-
return _extends({}, state, {
|
|
42
|
-
virtualization: _extends({}, state.virtualization, {
|
|
43
|
-
enabledForColumns: enabled
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var api = {
|
|
49
|
-
unstable_setVirtualization: setVirtualization,
|
|
50
|
-
unstable_setColumnVirtualization: setColumnVirtualization
|
|
51
|
-
};
|
|
52
|
-
useGridApiMethod(apiRef, api, 'public');
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* EFFECTS
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
59
|
-
React.useEffect(function () {
|
|
60
|
-
setVirtualization(!props.disableVirtualization);
|
|
61
|
-
}, [props.disableVirtualization]);
|
|
62
|
-
/* eslint-enable react-hooks/exhaustive-deps */
|
|
63
|
-
}
|
package/legacy/hooks/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './useGridApiEventHandler';
|
|
2
|
-
export * from './useGridApiMethod';
|
|
3
|
-
export * from './useGridLogger';
|
|
4
|
-
export { useGridSelector } from './useGridSelector';
|
|
5
|
-
export * from './useGridNativeEventListener';
|
|
6
|
-
export * from './useFirstRender';
|
|
7
|
-
export * from './useOnMount';
|
|
8
|
-
export * from './useResizeObserver';
|
|
9
|
-
export * from './useRunOnce';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GridApiContext } from '../../components/GridApiContext';
|
|
3
|
-
export function useGridApiContext() {
|
|
4
|
-
var apiRef = React.useContext(GridApiContext);
|
|
5
|
-
if (apiRef === undefined) {
|
|
6
|
-
throw new Error(['MUI X: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
7
|
-
}
|
|
8
|
-
return apiRef;
|
|
9
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { TimerBasedCleanupTracking } from '../../utils/cleanupTracking/TimerBasedCleanupTracking';
|
|
6
|
-
import { FinalizationRegistryBasedCleanupTracking } from '../../utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking';
|
|
7
|
-
/**
|
|
8
|
-
* Signal to the underlying logic what version of the public component API
|
|
9
|
-
* of the data grid is exposed.
|
|
10
|
-
*/
|
|
11
|
-
var GridSignature = /*#__PURE__*/function (GridSignature) {
|
|
12
|
-
GridSignature["DataGrid"] = "DataGrid";
|
|
13
|
-
GridSignature["DataGridPro"] = "DataGridPro";
|
|
14
|
-
return GridSignature;
|
|
15
|
-
}(GridSignature || {});
|
|
16
|
-
// We use class to make it easier to detect in heap snapshots by name
|
|
17
|
-
var ObjectToBeRetainedByReact = /*#__PURE__*/_createClass(function ObjectToBeRetainedByReact() {
|
|
18
|
-
_classCallCheck(this, ObjectToBeRetainedByReact);
|
|
19
|
-
}); // Based on https://github.com/Bnaya/use-dispose-uncommitted/blob/main/src/finalization-registry-based-impl.ts
|
|
20
|
-
// Check https://github.com/facebook/react/issues/15317 to get more information
|
|
21
|
-
export function createUseGridApiEventHandler(registryContainer) {
|
|
22
|
-
var cleanupTokensCounter = 0;
|
|
23
|
-
return function useGridApiEventHandler(apiRef, eventName, handler, options) {
|
|
24
|
-
if (registryContainer.registry === null) {
|
|
25
|
-
registryContainer.registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistryBasedCleanupTracking() : new TimerBasedCleanupTracking();
|
|
26
|
-
}
|
|
27
|
-
var _React$useState = React.useState(new ObjectToBeRetainedByReact()),
|
|
28
|
-
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
29
|
-
objectRetainedByReact = _React$useState2[0];
|
|
30
|
-
var subscription = React.useRef(null);
|
|
31
|
-
var handlerRef = React.useRef();
|
|
32
|
-
handlerRef.current = handler;
|
|
33
|
-
var cleanupTokenRef = React.useRef(null);
|
|
34
|
-
if (!subscription.current && handlerRef.current) {
|
|
35
|
-
var enhancedHandler = function enhancedHandler(params, event, details) {
|
|
36
|
-
if (!event.defaultMuiPrevented) {
|
|
37
|
-
var _handlerRef$current;
|
|
38
|
-
(_handlerRef$current = handlerRef.current) == null || _handlerRef$current.call(handlerRef, params, event, details);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
subscription.current = apiRef.current.subscribeEvent(eventName, enhancedHandler, options);
|
|
42
|
-
cleanupTokensCounter += 1;
|
|
43
|
-
cleanupTokenRef.current = {
|
|
44
|
-
cleanupToken: cleanupTokensCounter
|
|
45
|
-
};
|
|
46
|
-
registryContainer.registry.register(objectRetainedByReact,
|
|
47
|
-
// The callback below will be called once this reference stops being retained
|
|
48
|
-
function () {
|
|
49
|
-
var _subscription$current;
|
|
50
|
-
(_subscription$current = subscription.current) == null || _subscription$current.call(subscription);
|
|
51
|
-
subscription.current = null;
|
|
52
|
-
cleanupTokenRef.current = null;
|
|
53
|
-
}, cleanupTokenRef.current);
|
|
54
|
-
} else if (!handlerRef.current && subscription.current) {
|
|
55
|
-
subscription.current();
|
|
56
|
-
subscription.current = null;
|
|
57
|
-
if (cleanupTokenRef.current) {
|
|
58
|
-
registryContainer.registry.unregister(cleanupTokenRef.current);
|
|
59
|
-
cleanupTokenRef.current = null;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
React.useEffect(function () {
|
|
63
|
-
if (!subscription.current && handlerRef.current) {
|
|
64
|
-
var _enhancedHandler = function _enhancedHandler(params, event, details) {
|
|
65
|
-
if (!event.defaultMuiPrevented) {
|
|
66
|
-
var _handlerRef$current2;
|
|
67
|
-
(_handlerRef$current2 = handlerRef.current) == null || _handlerRef$current2.call(handlerRef, params, event, details);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
subscription.current = apiRef.current.subscribeEvent(eventName, _enhancedHandler, options);
|
|
71
|
-
}
|
|
72
|
-
if (cleanupTokenRef.current && registryContainer.registry) {
|
|
73
|
-
// If the effect was called, it means that this render was committed
|
|
74
|
-
// so we can trust the cleanup function to remove the listener.
|
|
75
|
-
registryContainer.registry.unregister(cleanupTokenRef.current);
|
|
76
|
-
cleanupTokenRef.current = null;
|
|
77
|
-
}
|
|
78
|
-
return function () {
|
|
79
|
-
var _subscription$current2;
|
|
80
|
-
(_subscription$current2 = subscription.current) == null || _subscription$current2.call(subscription);
|
|
81
|
-
subscription.current = null;
|
|
82
|
-
};
|
|
83
|
-
}, [apiRef, eventName, options]);
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
var registryContainer = {
|
|
87
|
-
registry: null
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// TODO: move to @mui/x-data-grid/internals
|
|
91
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
92
|
-
export var unstable_resetCleanupTracking = function unstable_resetCleanupTracking() {
|
|
93
|
-
var _registryContainer$re;
|
|
94
|
-
(_registryContainer$re = registryContainer.registry) == null || _registryContainer$re.reset();
|
|
95
|
-
registryContainer.registry = null;
|
|
96
|
-
};
|
|
97
|
-
export var useGridApiEventHandler = createUseGridApiEventHandler(registryContainer);
|
|
98
|
-
var optionsSubscriberOptions = {
|
|
99
|
-
isFirst: true
|
|
100
|
-
};
|
|
101
|
-
export function useGridApiOptionHandler(apiRef, eventName, handler) {
|
|
102
|
-
// Validate that only one per event name?
|
|
103
|
-
useGridApiEventHandler(apiRef, eventName, handler, optionsSubscriberOptions);
|
|
104
|
-
}
|
|
105
|
-
export { GridSignature };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export function useGridApiMethod(privateApiRef, apiMethods, visibility) {
|
|
3
|
-
var isFirstRender = React.useRef(true);
|
|
4
|
-
React.useEffect(function () {
|
|
5
|
-
isFirstRender.current = false;
|
|
6
|
-
privateApiRef.current.register(visibility, apiMethods);
|
|
7
|
-
}, [privateApiRef, visibility, apiMethods]);
|
|
8
|
-
if (isFirstRender.current) {
|
|
9
|
-
privateApiRef.current.register(visibility, apiMethods);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { gridVisibleColumnDefinitionsSelector } from '../features/columns/gridColumnsSelector';
|
|
2
|
-
import { useGridSelector } from './useGridSelector';
|
|
3
|
-
import { useGridRootProps } from './useGridRootProps';
|
|
4
|
-
import { gridColumnGroupsHeaderMaxDepthSelector } from '../features/columnGrouping/gridColumnGroupsSelector';
|
|
5
|
-
import { gridPinnedRowsCountSelector, gridRowCountSelector } from '../features/rows/gridRowsSelector';
|
|
6
|
-
import { useGridPrivateApiContext } from './useGridPrivateApiContext';
|
|
7
|
-
import { isMultipleRowSelectionEnabled } from '../features/rowSelection/utils';
|
|
8
|
-
export var useGridAriaAttributes = function useGridAriaAttributes() {
|
|
9
|
-
var apiRef = useGridPrivateApiContext();
|
|
10
|
-
var rootProps = useGridRootProps();
|
|
11
|
-
var visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
|
|
12
|
-
var totalRowCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
13
|
-
var headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);
|
|
14
|
-
var pinnedRowsCount = useGridSelector(apiRef, gridPinnedRowsCountSelector);
|
|
15
|
-
var role = 'grid';
|
|
16
|
-
if (rootProps.treeData) {
|
|
17
|
-
role = 'treegrid';
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
role: role,
|
|
21
|
-
'aria-colcount': visibleColumns.length,
|
|
22
|
-
'aria-rowcount': headerGroupingMaxDepth + 1 + pinnedRowsCount + totalRowCount,
|
|
23
|
-
'aria-multiselectable': isMultipleRowSelectionEnabled(rootProps)
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export var useGridInitializeState = function useGridInitializeState(initializer, privateApiRef, props) {
|
|
3
|
-
var isInitialized = React.useRef(false);
|
|
4
|
-
if (!isInitialized.current) {
|
|
5
|
-
privateApiRef.current.state = initializer(privateApiRef.current.state, props, privateApiRef);
|
|
6
|
-
isInitialized.current = true;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export function useGridLogger(privateApiRef, name) {
|
|
3
|
-
var logger = React.useRef(null);
|
|
4
|
-
if (logger.current) {
|
|
5
|
-
return logger.current;
|
|
6
|
-
}
|
|
7
|
-
var newLogger = privateApiRef.current.getLogger(name);
|
|
8
|
-
logger.current = newLogger;
|
|
9
|
-
return newLogger;
|
|
10
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { isFunction } from '../../utils/utils';
|
|
4
|
-
import { useGridLogger } from './useGridLogger';
|
|
5
|
-
export var useGridNativeEventListener = function useGridNativeEventListener(apiRef, ref, eventName, handler, options) {
|
|
6
|
-
var _ref$current;
|
|
7
|
-
var logger = useGridLogger(apiRef, 'useNativeEventListener');
|
|
8
|
-
var _React$useState = React.useState(false),
|
|
9
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10
|
-
added = _React$useState2[0],
|
|
11
|
-
setAdded = _React$useState2[1];
|
|
12
|
-
var handlerRef = React.useRef(handler);
|
|
13
|
-
var targetElement = isFunction(ref) ? ref() : (_ref$current = ref == null ? void 0 : ref.current) != null ? _ref$current : null;
|
|
14
|
-
var wrapHandler = React.useCallback(function (event) {
|
|
15
|
-
return handlerRef.current && handlerRef.current(event);
|
|
16
|
-
}, []);
|
|
17
|
-
React.useEffect(function () {
|
|
18
|
-
handlerRef.current = handler;
|
|
19
|
-
}, [handler]);
|
|
20
|
-
React.useEffect(function () {
|
|
21
|
-
if (targetElement && eventName && !added) {
|
|
22
|
-
logger.debug("Binding native ".concat(eventName, " event"));
|
|
23
|
-
targetElement.addEventListener(eventName, wrapHandler, options);
|
|
24
|
-
setAdded(true);
|
|
25
|
-
var unsubscribe = function unsubscribe() {
|
|
26
|
-
logger.debug("Clearing native ".concat(eventName, " event"));
|
|
27
|
-
targetElement.removeEventListener(eventName, wrapHandler, options);
|
|
28
|
-
};
|
|
29
|
-
apiRef.current.subscribeEvent('unmount', unsubscribe);
|
|
30
|
-
}
|
|
31
|
-
}, [targetElement, wrapHandler, eventName, added, logger, options, apiRef]);
|
|
32
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export var GridPrivateApiContext = /*#__PURE__*/React.createContext(undefined);
|
|
3
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4
|
-
GridPrivateApiContext.displayName = 'GridPrivateApiContext';
|
|
5
|
-
}
|
|
6
|
-
export function useGridPrivateApiContext() {
|
|
7
|
-
var privateApiRef = React.useContext(GridPrivateApiContext);
|
|
8
|
-
if (privateApiRef === undefined) {
|
|
9
|
-
throw new Error(['MUI X: Could not find the data grid private context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
10
|
-
}
|
|
11
|
-
return privateApiRef;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GridRootPropsContext } from '../../context/GridRootPropsContext';
|
|
3
|
-
export var useGridRootProps = function useGridRootProps() {
|
|
4
|
-
var contextValue = React.useContext(GridRootPropsContext);
|
|
5
|
-
if (!contextValue) {
|
|
6
|
-
throw new Error('MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
|
|
7
|
-
}
|
|
8
|
-
return contextValue;
|
|
9
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useLazyRef } from './useLazyRef';
|
|
4
|
-
import { useOnMount } from './useOnMount';
|
|
5
|
-
import { buildWarning } from '../../utils/warning';
|
|
6
|
-
import { fastObjectShallowCompare } from '../../utils/fastObjectShallowCompare';
|
|
7
|
-
var stateNotInitializedWarning = buildWarning(['MUI X: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);
|
|
8
|
-
function isOutputSelector(selector) {
|
|
9
|
-
return selector.acceptsApiRef;
|
|
10
|
-
}
|
|
11
|
-
function applySelector(apiRef, selector) {
|
|
12
|
-
if (isOutputSelector(selector)) {
|
|
13
|
-
return selector(apiRef);
|
|
14
|
-
}
|
|
15
|
-
return selector(apiRef.current.state);
|
|
16
|
-
}
|
|
17
|
-
var defaultCompare = Object.is;
|
|
18
|
-
export var objectShallowCompare = fastObjectShallowCompare;
|
|
19
|
-
var createRefs = function createRefs() {
|
|
20
|
-
return {
|
|
21
|
-
state: null,
|
|
22
|
-
equals: null,
|
|
23
|
-
selector: null
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export var useGridSelector = function useGridSelector(apiRef, selector) {
|
|
27
|
-
var equals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultCompare;
|
|
28
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
if (!apiRef.current.state) {
|
|
30
|
-
stateNotInitializedWarning();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
var refs = useLazyRef(createRefs);
|
|
34
|
-
var didInit = refs.current.selector !== null;
|
|
35
|
-
var _React$useState = React.useState(
|
|
36
|
-
// We don't use an initialization function to avoid allocations
|
|
37
|
-
didInit ? null : applySelector(apiRef, selector)),
|
|
38
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39
|
-
state = _React$useState2[0],
|
|
40
|
-
setState = _React$useState2[1];
|
|
41
|
-
refs.current.state = state;
|
|
42
|
-
refs.current.equals = equals;
|
|
43
|
-
refs.current.selector = selector;
|
|
44
|
-
useOnMount(function () {
|
|
45
|
-
return apiRef.current.store.subscribe(function () {
|
|
46
|
-
var newState = applySelector(apiRef, refs.current.selector);
|
|
47
|
-
if (!refs.current.equals(refs.current.state, newState)) {
|
|
48
|
-
refs.current.state = newState;
|
|
49
|
-
setState(newState);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
return state;
|
|
54
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { gridPaginationRowRangeSelector, gridPaginatedVisibleSortedGridRowEntriesSelector } from '../features/pagination/gridPaginationSelector';
|
|
3
|
-
import { gridExpandedSortedRowEntriesSelector } from '../features/filter/gridFilterSelector';
|
|
4
|
-
export var getVisibleRows = function getVisibleRows(apiRef, props) {
|
|
5
|
-
var rows;
|
|
6
|
-
var range;
|
|
7
|
-
if (props.pagination && props.paginationMode === 'client') {
|
|
8
|
-
range = gridPaginationRowRangeSelector(apiRef);
|
|
9
|
-
rows = gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef);
|
|
10
|
-
} else {
|
|
11
|
-
rows = gridExpandedSortedRowEntriesSelector(apiRef);
|
|
12
|
-
if (rows.length === 0) {
|
|
13
|
-
range = null;
|
|
14
|
-
} else {
|
|
15
|
-
range = {
|
|
16
|
-
firstRowIndex: 0,
|
|
17
|
-
lastRowIndex: rows.length - 1
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
rows: rows,
|
|
23
|
-
range: range
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Computes the list of rows that are reachable by scroll.
|
|
29
|
-
* Depending on whether pagination is enabled, it will return the rows in the current page.
|
|
30
|
-
* - If the pagination is disabled or in server mode, it equals all the visible rows.
|
|
31
|
-
* - If the row tree has several layers, it contains up to `state.pageSize` top level rows and all their descendants.
|
|
32
|
-
* - If the row tree is flat, it only contains up to `state.pageSize` rows.
|
|
33
|
-
*/
|
|
34
|
-
export var useGridVisibleRows = function useGridVisibleRows(apiRef, props) {
|
|
35
|
-
var response = getVisibleRows(apiRef, props);
|
|
36
|
-
return React.useMemo(function () {
|
|
37
|
-
return {
|
|
38
|
-
rows: response.rows,
|
|
39
|
-
range: response.range
|
|
40
|
-
};
|
|
41
|
-
}, [response.rows, response.range]);
|
|
42
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
var UNINITIALIZED = {};
|
|
3
|
-
|
|
4
|
-
// See https://github.com/facebook/react/issues/14490 for when to use this.
|
|
5
|
-
export function useLazyRef(init, initArg) {
|
|
6
|
-
var ref = React.useRef(UNINITIALIZED);
|
|
7
|
-
if (ref.current === UNINITIALIZED) {
|
|
8
|
-
ref.current = init(initArg);
|
|
9
|
-
}
|
|
10
|
-
return ref;
|
|
11
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
3
|
-
var isDevEnvironment = process.env.NODE_ENV === 'development';
|
|
4
|
-
var noop = function noop() {};
|
|
5
|
-
export function useResizeObserver(ref, fn, enabled) {
|
|
6
|
-
var fnRef = React.useRef(null);
|
|
7
|
-
fnRef.current = fn;
|
|
8
|
-
useEnhancedEffect(function () {
|
|
9
|
-
if (enabled === false || typeof ResizeObserver === 'undefined') {
|
|
10
|
-
return noop;
|
|
11
|
-
}
|
|
12
|
-
var frameID = 0;
|
|
13
|
-
var target = ref.current;
|
|
14
|
-
var observer = new ResizeObserver(function (entries) {
|
|
15
|
-
// See https://github.com/mui/mui-x/issues/8733
|
|
16
|
-
// In dev, we avoid the React warning by moving the task to the next frame.
|
|
17
|
-
// In prod, we want the task to run in the same frame as to avoid tear.
|
|
18
|
-
if (isDevEnvironment) {
|
|
19
|
-
frameID = requestAnimationFrame(function () {
|
|
20
|
-
fnRef.current(entries);
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
fnRef.current(entries);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
if (target) {
|
|
27
|
-
observer.observe(target);
|
|
28
|
-
}
|
|
29
|
-
return function () {
|
|
30
|
-
if (frameID) {
|
|
31
|
-
cancelAnimationFrame(frameID);
|
|
32
|
-
}
|
|
33
|
-
observer.disconnect();
|
|
34
|
-
};
|
|
35
|
-
}, [ref, enabled]);
|
|
36
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
3
|
-
var noop = function noop() {};
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Runs an effect once, when `condition` is true.
|
|
7
|
-
*/
|
|
8
|
-
export var useRunOnce = function useRunOnce(condition, effect) {
|
|
9
|
-
var didRun = React.useRef(false);
|
|
10
|
-
useEnhancedEffect(function () {
|
|
11
|
-
if (didRun.current || !condition) {
|
|
12
|
-
return noop;
|
|
13
|
-
}
|
|
14
|
-
didRun.current = true;
|
|
15
|
-
return effect();
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
}, [didRun.current || condition]);
|
|
18
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import { useLazyRef } from './useLazyRef';
|
|
4
|
-
import { useOnMount } from './useOnMount';
|
|
5
|
-
var Timeout = /*#__PURE__*/function () {
|
|
6
|
-
function Timeout() {
|
|
7
|
-
var _this = this;
|
|
8
|
-
_classCallCheck(this, Timeout);
|
|
9
|
-
this.currentId = 0;
|
|
10
|
-
this.clear = function () {
|
|
11
|
-
if (_this.currentId !== 0) {
|
|
12
|
-
clearTimeout(_this.currentId);
|
|
13
|
-
_this.currentId = 0;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
this.disposeEffect = function () {
|
|
17
|
-
return _this.clear;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
_createClass(Timeout, [{
|
|
21
|
-
key: "start",
|
|
22
|
-
value: function start(delay, fn) {
|
|
23
|
-
this.clear();
|
|
24
|
-
this.currentId = setTimeout(fn, delay);
|
|
25
|
-
}
|
|
26
|
-
}], [{
|
|
27
|
-
key: "create",
|
|
28
|
-
value: function create() {
|
|
29
|
-
return new Timeout();
|
|
30
|
-
}
|
|
31
|
-
}]);
|
|
32
|
-
return Timeout;
|
|
33
|
-
}();
|
|
34
|
-
export function useTimeout() {
|
|
35
|
-
var timeout = useLazyRef(Timeout.create).current;
|
|
36
|
-
useOnMount(timeout.disposeEffect);
|
|
37
|
-
return timeout;
|
|
38
|
-
}
|
package/legacy/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @mui/x-data-grid v7.0.0-beta.3
|
|
3
|
-
*
|
|
4
|
-
* @license MIT
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
export { useGridApiContext } from './hooks/utils/useGridApiContext';
|
|
9
|
-
export { useGridApiRef } from './hooks/utils/useGridApiRef';
|
|
10
|
-
export { useGridRootProps } from './hooks/utils/useGridRootProps';
|
|
11
|
-
export * from './DataGrid';
|
|
12
|
-
export * from './components';
|
|
13
|
-
export * from './constants';
|
|
14
|
-
export * from './hooks';
|
|
15
|
-
export * from './models';
|
|
16
|
-
export * from './context';
|
|
17
|
-
export * from './colDef';
|
|
18
|
-
export * from './utils';
|
|
19
|
-
export { GridColumnHeaders } from './components/GridColumnHeaders';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Reexportable components.
|
|
23
|
-
*/
|
|
24
|
-
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from './components/reexportable';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The full grid API.
|
|
28
|
-
* @demos
|
|
29
|
-
* - [API object](/x/react-data-grid/api-object/)
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The state of `DataGrid`.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The initial state of `DataGrid`.
|
|
38
|
-
*/
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { GridVirtualScroller } from '../components/virtualization/GridVirtualScroller';
|
|
2
|
-
export { GridVirtualScrollerContent } from '../components/virtualization/GridVirtualScrollerContent';
|
|
3
|
-
export { GridVirtualScrollerRenderZone } from '../components/virtualization/GridVirtualScrollerRenderZone';
|
|
4
|
-
export { GridHeaders } from '../components/GridHeaders';
|
|
5
|
-
export { GridBaseColumnHeaders } from '../components/columnHeaders/GridBaseColumnHeaders';
|
|
6
|
-
export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
|
|
7
|
-
export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from '../constants/defaultGridSlotsComponents';
|
|
8
|
-
export { getGridFilter } from '../components/panel/filterPanel/GridFilterPanel';
|
|
9
|
-
export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
10
|
-
export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../hooks/core/strategyProcessing';
|
|
11
|
-
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
12
|
-
export { unwrapPrivateAPI } from '../hooks/core/useGridApiInitialization';
|
|
13
|
-
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
14
|
-
export * from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
15
|
-
export { gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector } from '../hooks/features/headerFiltering/gridHeaderFilteringSelectors';
|
|
16
|
-
export { useGridColumnMenu, columnMenuStateInitializer } from '../hooks/features/columnMenu/useGridColumnMenu';
|
|
17
|
-
export { useGridColumns, columnsStateInitializer } from '../hooks/features/columns/useGridColumns';
|
|
18
|
-
export * from '../hooks/features/columns/gridColumnsUtils';
|
|
19
|
-
export { useGridColumnSpanning } from '../hooks/features/columns/useGridColumnSpanning';
|
|
20
|
-
export * from '../hooks/features/columns/gridColumnsSelector';
|
|
21
|
-
export { useGridColumnGrouping, columnGroupsStateInitializer } from '../hooks/features/columnGrouping/useGridColumnGrouping';
|
|
22
|
-
export { useGridDensity, densityStateInitializer } from '../hooks/features/density/useGridDensity';
|
|
23
|
-
export { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
|
|
24
|
-
export { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
|
|
25
|
-
export { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
|
|
26
|
-
export { passFilterLogic } from '../hooks/features/filter/gridFilterUtils';
|
|
27
|
-
export { isSingleSelectColDef } from '../components/panel/filterPanel/filterPanelUtils';
|
|
28
|
-
export { useGridFocus, focusStateInitializer } from '../hooks/features/focus/useGridFocus';
|
|
29
|
-
export { useGridKeyboardNavigation } from '../hooks/features/keyboardNavigation/useGridKeyboardNavigation';
|
|
30
|
-
export { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
|
|
31
|
-
export { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
32
|
-
export { useGridEditing, editingStateInitializer } from '../hooks/features/editing/useGridEditing';
|
|
33
|
-
export { gridEditRowsStateSelector } from '../hooks/features/editing/gridEditingSelectors';
|
|
34
|
-
export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
|
|
35
|
-
export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
|
|
36
|
-
export { getTreeNodeDescendants, buildRootGroup } from '../hooks/features/rows/gridRowsUtils';
|
|
37
|
-
export { useGridRowsMeta, rowsMetaStateInitializer } from '../hooks/features/rows/useGridRowsMeta';
|
|
38
|
-
export { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
|
|
39
|
-
export { getRowIdFromRowModel, GRID_ID_AUTOGENERATED } from '../hooks/features/rows/gridRowsUtils';
|
|
40
|
-
export { gridAdditionalRowGroupsSelector, gridPinnedRowsSelector } from '../hooks/features/rows/gridRowsSelector';
|
|
41
|
-
export { headerFilteringStateInitializer, useGridHeaderFiltering } from '../hooks/features/headerFiltering/useGridHeaderFiltering';
|
|
42
|
-
export { calculatePinnedRowsHeight } from '../hooks/features/rows/gridRowsUtils';
|
|
43
|
-
export { useGridRowSelection, rowSelectionStateInitializer } from '../hooks/features/rowSelection/useGridRowSelection';
|
|
44
|
-
export { useGridRowSelectionPreProcessors } from '../hooks/features/rowSelection/useGridRowSelectionPreProcessors';
|
|
45
|
-
export { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
|
|
46
|
-
export { useGridScroll } from '../hooks/features/scroll/useGridScroll';
|
|
47
|
-
export { useGridEvents } from '../hooks/features/events/useGridEvents';
|
|
48
|
-
export { dimensionsStateInitializer, useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
|
|
49
|
-
export { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
|
|
50
|
-
export { useGridVirtualScroller, EMPTY_DETAIL_PANELS } from '../hooks/features/virtualization/useGridVirtualScroller';
|
|
51
|
-
export * from '../hooks/features/virtualization';
|
|
52
|
-
export { useTimeout } from '../hooks/utils/useTimeout';
|
|
53
|
-
export { useGridVisibleRows, getVisibleRows } from '../hooks/utils/useGridVisibleRows';
|
|
54
|
-
export { useGridInitializeState } from '../hooks/utils/useGridInitializeState';
|
|
55
|
-
export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/export/utils';
|
|
56
|
-
export * from '../utils/createControllablePromise';
|
|
57
|
-
export { createSelector, createSelectorMemoized, unstable_resetCreateSelectorCache } from '../utils/createSelector';
|
|
58
|
-
export { findParentElementFromClassName, getActiveElement, isEventTargetInPortal } from '../utils/domUtils';
|
|
59
|
-
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
60
|
-
export * from '../utils/utils';
|
|
61
|
-
export * from '../utils/fastMemo';
|
|
62
|
-
export { buildWarning } from '../utils/warning';
|
|
63
|
-
export { exportAs } from '../utils/exportAs';
|
|
64
|
-
export * from '../utils/getPublicApiRef';
|
|
65
|
-
export { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
66
|
-
export * from '../hooks/utils';
|
|
67
|
-
export { serializeCellValue } from '../hooks/features/export/serializers/csvSerializer';
|
|
68
|
-
export * from './utils';
|