@mui/x-data-grid 9.0.0-alpha.1 → 9.0.0-alpha.3
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 +240 -0
- package/DataGrid/DataGrid.d.mts +16 -0
- package/DataGrid/DataGrid.js +4 -0
- package/DataGrid/DataGrid.mjs +825 -0
- package/DataGrid/index.d.mts +1 -0
- package/DataGrid/index.mjs +1 -0
- package/DataGrid/useDataGridComponent.d.mts +5 -0
- package/DataGrid/useDataGridComponent.mjs +104 -0
- package/DataGrid/useDataGridProps.d.mts +3 -0
- package/DataGrid/useDataGridProps.mjs +50 -0
- package/colDef/gridActionsColDef.d.mts +3 -0
- package/colDef/gridActionsColDef.mjs +20 -0
- package/colDef/gridBooleanColDef.d.mts +2 -0
- package/colDef/gridBooleanColDef.mjs +41 -0
- package/colDef/gridBooleanOperators.d.mts +2 -0
- package/colDef/gridBooleanOperators.mjs +12 -0
- package/colDef/gridCheckboxSelectionColDef.d.mts +3 -0
- package/colDef/gridCheckboxSelectionColDef.mjs +30 -0
- package/colDef/gridDateColDef.d.mts +5 -0
- package/colDef/gridDateColDef.js +2 -1
- package/colDef/gridDateColDef.mjs +68 -0
- package/colDef/gridDateOperators.d.mts +3 -0
- package/colDef/gridDateOperators.mjs +108 -0
- package/colDef/gridDefaultColumnTypes.d.mts +3 -0
- package/colDef/gridDefaultColumnTypes.mjs +22 -0
- package/colDef/gridLongTextColDef.d.mts +2 -0
- package/colDef/gridLongTextColDef.mjs +10 -0
- package/colDef/gridNumericColDef.d.mts +2 -0
- package/colDef/gridNumericColDef.mjs +15 -0
- package/colDef/gridNumericOperators.d.mts +7 -0
- package/colDef/gridNumericOperators.mjs +143 -0
- package/colDef/gridSingleSelectColDef.d.mts +2 -0
- package/colDef/gridSingleSelectColDef.mjs +61 -0
- package/colDef/gridSingleSelectOperators.d.mts +2 -0
- package/colDef/gridSingleSelectOperators.mjs +38 -0
- package/colDef/gridStringColDef.d.mts +5 -0
- package/colDef/gridStringColDef.mjs +28 -0
- package/colDef/gridStringOperators.d.mts +4 -0
- package/colDef/gridStringOperators.mjs +121 -0
- package/colDef/index.d.mts +14 -0
- package/colDef/index.mjs +14 -0
- package/components/GridColumnHeaders.d.mts +7 -0
- package/components/GridColumnHeaders.mjs +88 -0
- package/components/GridColumnSortButton.d.mts +16 -0
- package/components/GridColumnSortButton.mjs +105 -0
- package/components/GridColumnUnsortedIcon.d.mts +7 -0
- package/components/GridColumnUnsortedIcon.mjs +17 -0
- package/components/GridFooter.d.mts +5 -0
- package/components/GridFooter.mjs +42 -0
- package/components/GridHeader.mjs +11 -0
- package/components/GridHeaders.mjs +49 -0
- package/components/GridLoadingOverlay.d.mts +17 -0
- package/components/GridLoadingOverlay.mjs +70 -0
- package/components/GridNoColumnsOverlay.d.mts +5 -0
- package/components/GridNoColumnsOverlay.mjs +38 -0
- package/components/GridNoResultsOverlay.d.mts +4 -0
- package/components/GridNoResultsOverlay.mjs +16 -0
- package/components/GridNoRowsOverlay.d.mts +5 -0
- package/components/GridNoRowsOverlay.mjs +25 -0
- package/components/GridPagination.mjs +86 -0
- package/components/GridRow.d.mts +39 -0
- package/components/GridRow.mjs +355 -0
- package/components/GridRowCount.mjs +66 -0
- package/components/GridRowDragAndDropOverlay.d.mts +7 -0
- package/components/GridRowDragAndDropOverlay.mjs +66 -0
- package/components/GridScrollArea.d.mts +9 -0
- package/components/GridScrollArea.js +9 -11
- package/components/GridScrollArea.mjs +254 -0
- package/components/GridScrollShadows.mjs +122 -0
- package/components/GridScrollbarFillerCell.mjs +16 -0
- package/components/GridSelectedRowCount.mjs +69 -0
- package/components/GridSkeletonLoadingOverlay.d.mts +14 -0
- package/components/GridSkeletonLoadingOverlay.js +2 -1
- package/components/GridSkeletonLoadingOverlay.mjs +196 -0
- package/components/base/GridBody.d.mts +2 -0
- package/components/base/GridBody.mjs +2 -0
- package/components/base/GridFooterPlaceholder.mjs +10 -0
- package/components/base/GridOverlays.d.mts +11 -0
- package/components/base/GridOverlays.mjs +83 -0
- package/components/base/index.d.mts +2 -0
- package/components/base/index.mjs +2 -0
- package/components/cell/GridActionsCell.d.mts +41 -0
- package/components/cell/GridActionsCell.js +2 -1
- package/components/cell/GridActionsCell.mjs +291 -0
- package/components/cell/GridActionsCellItem.d.mts +55 -0
- package/components/cell/GridActionsCellItem.mjs +59 -0
- package/components/cell/GridBooleanCell.d.mts +13 -0
- package/components/cell/GridBooleanCell.mjs +124 -0
- package/components/cell/GridCell.d.mts +77 -0
- package/components/cell/GridCell.mjs +344 -0
- package/components/cell/GridEditBooleanCell.d.mts +17 -0
- package/components/cell/GridEditBooleanCell.mjs +144 -0
- package/components/cell/GridEditDateCell.d.mts +21 -0
- package/components/cell/GridEditDateCell.mjs +199 -0
- package/components/cell/GridEditInputCell.d.mts +19 -0
- package/components/cell/GridEditInputCell.mjs +105 -0
- package/components/cell/GridEditLongTextCell.d.mts +41 -0
- package/components/cell/GridEditLongTextCell.mjs +240 -0
- package/components/cell/GridEditSingleSelectCell.d.mts +21 -0
- package/components/cell/GridEditSingleSelectCell.mjs +192 -0
- package/components/cell/GridFooterCell.d.mts +9 -0
- package/components/cell/GridFooterCell.mjs +48 -0
- package/components/cell/GridLongTextCell.d.mts +43 -0
- package/components/cell/GridLongTextCell.mjs +246 -0
- package/components/cell/GridSkeletonCell.d.mts +20 -0
- package/components/cell/GridSkeletonCell.mjs +105 -0
- package/components/cell/index.d.mts +12 -0
- package/components/cell/index.mjs +11 -0
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.mts +10 -0
- package/components/columnHeaders/ColumnHeaderMenuIcon.mjs +66 -0
- package/components/columnHeaders/GridBaseColumnHeaders.mjs +47 -0
- package/components/columnHeaders/GridColumnGroupHeader.d.mts +21 -0
- package/components/columnHeaders/GridColumnGroupHeader.js +2 -1
- package/components/columnHeaders/GridColumnGroupHeader.mjs +153 -0
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.mts +12 -0
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +109 -0
- package/components/columnHeaders/GridColumnHeaderItem.d.mts +33 -0
- package/components/columnHeaders/GridColumnHeaderItem.js +2 -1
- package/components/columnHeaders/GridColumnHeaderItem.mjs +276 -0
- package/components/columnHeaders/GridColumnHeaderSeparator.mjs +73 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +9 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +38 -0
- package/components/columnHeaders/GridColumnHeaderTitle.mjs +90 -0
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +32 -0
- package/components/columnHeaders/GridGenericColumnHeaderItem.mjs +82 -0
- package/components/columnHeaders/GridIconButtonContainer.mjs +45 -0
- package/components/columnHeaders/index.d.mts +5 -0
- package/components/columnHeaders/index.mjs +5 -0
- package/components/columnSelection/GridCellCheckboxRenderer.d.mts +5 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.mjs +174 -0
- package/components/columnSelection/GridHeaderCheckbox.d.mts +4 -0
- package/components/columnSelection/GridHeaderCheckbox.js +7 -5
- package/components/columnSelection/GridHeaderCheckbox.mjs +178 -0
- package/components/columnSelection/index.d.mts +2 -0
- package/components/columnSelection/index.mjs +2 -0
- package/components/columnsManagement/GridColumnsManagement.d.mts +50 -0
- package/components/columnsManagement/GridColumnsManagement.mjs +317 -0
- package/components/columnsManagement/index.d.mts +1 -0
- package/components/columnsManagement/index.mjs +1 -0
- package/components/columnsManagement/utils.d.mts +4 -0
- package/components/columnsPanel/ColumnsPanelTrigger.d.mts +33 -0
- package/components/columnsPanel/ColumnsPanelTrigger.mjs +102 -0
- package/components/columnsPanel/index.d.mts +1 -0
- package/components/columnsPanel/index.mjs +1 -0
- package/components/containers/GridFooterContainer.mjs +56 -0
- package/components/containers/GridOverlay.mjs +63 -0
- package/components/containers/GridRoot.mjs +88 -0
- package/components/containers/GridRootStyles.d.mts +7 -0
- package/components/containers/GridRootStyles.mjs +722 -0
- package/components/containers/GridToolbarContainer.mjs +69 -0
- package/components/containers/index.d.mts +4 -0
- package/components/containers/index.mjs +4 -0
- package/components/export/ExportCsv.d.mts +30 -0
- package/components/export/ExportCsv.mjs +83 -0
- package/components/export/ExportPrint.d.mts +30 -0
- package/components/export/ExportPrint.mjs +83 -0
- package/components/export/index.d.mts +2 -0
- package/components/export/index.mjs +2 -0
- package/components/filterPanel/FilterPanelTrigger.d.mts +37 -0
- package/components/filterPanel/FilterPanelTrigger.mjs +105 -0
- package/components/filterPanel/index.d.mts +1 -0
- package/components/filterPanel/index.mjs +1 -0
- package/components/index.d.mts +26 -0
- package/components/index.mjs +26 -0
- package/components/menu/GridMenu.d.mts +15 -0
- package/components/menu/GridMenu.mjs +110 -0
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +26 -0
- package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +63 -0
- package/components/menu/columnMenu/GridColumnMenu.d.mts +23 -0
- package/components/menu/columnMenu/GridColumnMenu.mjs +114 -0
- package/components/menu/columnMenu/GridColumnMenuContainer.d.mts +4 -0
- package/components/menu/columnMenu/GridColumnMenuContainer.mjs +72 -0
- package/components/menu/columnMenu/GridColumnMenuItemProps.d.mts +7 -0
- package/components/menu/columnMenu/GridColumnMenuProps.d.mts +20 -0
- package/components/menu/columnMenu/index.d.mts +6 -0
- package/components/menu/columnMenu/index.mjs +8 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.mts +6 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +20 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.mts +6 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +36 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.mts +6 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +53 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.mts +6 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +36 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.mts +6 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +69 -0
- package/components/menu/columnMenu/menuItems/index.d.mts +5 -0
- package/components/menu/columnMenu/menuItems/index.mjs +5 -0
- package/components/menu/index.d.mts +2 -0
- package/components/menu/index.mjs +2 -0
- package/components/panel/GridColumnsPanel.d.mts +4 -0
- package/components/panel/GridColumnsPanel.mjs +11 -0
- package/components/panel/GridPanel.d.mts +21 -0
- package/components/panel/GridPanel.mjs +110 -0
- package/components/panel/GridPanelContent.mjs +53 -0
- package/components/panel/GridPanelContext.js +3 -1
- package/components/panel/GridPanelContext.mjs +30 -0
- package/components/panel/GridPanelFooter.mjs +50 -0
- package/components/panel/GridPanelHeader.mjs +47 -0
- package/components/panel/GridPanelWrapper.mjs +50 -0
- package/components/panel/GridPreferencesPanel.mjs +43 -0
- package/components/panel/filterPanel/GridFilterForm.d.mts +107 -0
- package/components/panel/filterPanel/GridFilterForm.js +2 -1
- package/components/panel/filterPanel/GridFilterForm.mjs +475 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.d.mts +9 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.js +2 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.mjs +126 -0
- package/components/panel/filterPanel/GridFilterInputDate.d.mts +10 -0
- package/components/panel/filterPanel/GridFilterInputDate.js +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.mjs +138 -0
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.mts +11 -0
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +114 -0
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.mts +10 -0
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +104 -0
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.mts +10 -0
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +142 -0
- package/components/panel/filterPanel/GridFilterInputValue.d.mts +14 -0
- package/components/panel/filterPanel/GridFilterInputValue.js +2 -1
- package/components/panel/filterPanel/GridFilterInputValue.mjs +124 -0
- package/components/panel/filterPanel/GridFilterPanel.d.mts +49 -0
- package/components/panel/filterPanel/GridFilterPanel.mjs +250 -0
- package/components/panel/filterPanel/filterPanelUtils.d.mts +5 -0
- package/components/panel/filterPanel/index.d.mts +10 -0
- package/components/panel/filterPanel/index.mjs +8 -0
- package/components/panel/index.d.mts +7 -0
- package/components/panel/index.mjs +7 -0
- package/components/quickFilter/QuickFilter.d.mts +64 -0
- package/components/quickFilter/QuickFilter.mjs +191 -0
- package/components/quickFilter/QuickFilterClear.d.mts +28 -0
- package/components/quickFilter/QuickFilterClear.mjs +77 -0
- package/components/quickFilter/QuickFilterContext.js +3 -1
- package/components/quickFilter/QuickFilterContext.mjs +13 -0
- package/components/quickFilter/QuickFilterControl.d.mts +28 -0
- package/components/quickFilter/QuickFilterControl.mjs +124 -0
- package/components/quickFilter/QuickFilterTrigger.d.mts +28 -0
- package/components/quickFilter/QuickFilterTrigger.mjs +80 -0
- package/components/quickFilter/index.d.mts +4 -0
- package/components/quickFilter/index.mjs +4 -0
- package/components/reexportable.d.mts +1 -0
- package/components/reexportable.mjs +1 -0
- package/components/toolbar/GridToolbar.d.mts +24 -0
- package/components/toolbar/GridToolbar.mjs +88 -0
- package/components/toolbar/GridToolbarColumnsButton.d.mts +17 -0
- package/components/toolbar/GridToolbarColumnsButton.mjs +85 -0
- package/components/toolbar/GridToolbarDensitySelector.d.mts +17 -0
- package/components/toolbar/GridToolbarDensitySelector.mjs +123 -0
- package/components/toolbar/GridToolbarExport.d.mts +42 -0
- package/components/toolbar/GridToolbarExport.mjs +131 -0
- package/components/toolbar/GridToolbarExportContainer.d.mts +16 -0
- package/components/toolbar/GridToolbarExportContainer.mjs +88 -0
- package/components/toolbar/GridToolbarFilterButton.d.mts +18 -0
- package/components/toolbar/GridToolbarFilterButton.mjs +149 -0
- package/components/toolbar/GridToolbarQuickFilter.d.mts +45 -0
- package/components/toolbar/GridToolbarQuickFilter.js +2 -1
- package/components/toolbar/GridToolbarQuickFilter.mjs +189 -0
- package/components/toolbar/index.d.mts +8 -0
- package/components/toolbar/index.mjs +7 -0
- package/components/toolbarV8/GridToolbar.d.mts +17 -0
- package/components/toolbarV8/GridToolbar.mjs +201 -0
- package/components/toolbarV8/Toolbar.mjs +208 -0
- package/components/toolbarV8/ToolbarButton.d.mts +23 -0
- package/components/toolbarV8/ToolbarButton.mjs +111 -0
- package/components/toolbarV8/ToolbarContext.js +3 -1
- package/components/toolbarV8/ToolbarContext.mjs +13 -0
- package/components/toolbarV8/index.d.mts +2 -0
- package/components/toolbarV8/index.mjs +2 -0
- package/components/virtualization/GridBottomContainer.mjs +28 -0
- package/components/virtualization/GridMainContainer.d.mts +19 -0
- package/components/virtualization/GridMainContainer.mjs +57 -0
- package/components/virtualization/GridTopContainer.mjs +28 -0
- package/components/virtualization/GridVirtualScrollbar.mjs +110 -0
- package/components/virtualization/GridVirtualScroller.mjs +156 -0
- package/components/virtualization/GridVirtualScrollerContent.mjs +46 -0
- package/components/virtualization/GridVirtualScrollerFiller.mjs +85 -0
- package/components/virtualization/GridVirtualScrollerRenderZone.mjs +41 -0
- package/constants/dataGridPropsDefaultValues.d.mts +5 -0
- package/constants/dataGridPropsDefaultValues.mjs +63 -0
- package/constants/defaultGridSlotsComponents.d.mts +2 -0
- package/constants/defaultGridSlotsComponents.mjs +38 -0
- package/constants/gridClasses.js +1 -1
- package/constants/gridClasses.mjs +8 -0
- package/constants/index.d.mts +4 -0
- package/constants/index.mjs +4 -0
- package/constants/localeTextConstants.d.mts +2 -0
- package/constants/localeTextConstants.js +5 -3
- package/constants/localeTextConstants.mjs +298 -0
- package/context/GridContextProvider.d.mts +17 -0
- package/context/GridContextProvider.mjs +35 -0
- package/context/index.d.mts +1 -0
- package/context/index.mjs +1 -0
- package/hooks/core/gridCoreSelector.d.mts +6 -0
- package/hooks/core/gridCoreSelector.mjs +6 -0
- package/hooks/core/gridPropsSelectors.d.mts +10 -0
- package/hooks/core/gridPropsSelectors.mjs +18 -0
- package/hooks/core/index.d.mts +2 -0
- package/hooks/core/index.mjs +1 -0
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.mts +163 -0
- package/hooks/core/pipeProcessing/index.d.mts +4 -0
- package/hooks/core/pipeProcessing/index.mjs +4 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.mts +32 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.mjs +124 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.mts +4 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.mjs +28 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.mts +4 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.mjs +30 -0
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.mts +81 -0
- package/hooks/core/strategyProcessing/index.d.mts +3 -0
- package/hooks/core/strategyProcessing/index.mjs +3 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.mts +4 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +20 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.mts +43 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +3 -2
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.mjs +113 -0
- package/hooks/core/useGridApiInitialization.d.mts +5 -0
- package/hooks/core/useGridApiInitialization.mjs +114 -0
- package/hooks/core/useGridInitialization.d.mts +7 -0
- package/hooks/core/useGridInitialization.mjs +25 -0
- package/hooks/core/useGridIsRtl.d.mts +3 -0
- package/hooks/core/useGridLocaleText.d.mts +4 -0
- package/hooks/core/useGridLocaleText.js +3 -1
- package/hooks/core/useGridLocaleText.mjs +13 -0
- package/hooks/core/useGridLoggerFactory.d.mts +4 -0
- package/hooks/core/useGridLoggerFactory.js +3 -1
- package/hooks/core/useGridLoggerFactory.mjs +45 -0
- package/hooks/core/useGridProps.d.mts +6 -0
- package/hooks/core/useGridRefs.d.mts +3 -0
- package/hooks/core/useGridStateInitialization.d.mts +3 -0
- package/hooks/core/useGridStateInitialization.js +2 -1
- package/hooks/core/useGridStateInitialization.mjs +98 -0
- package/hooks/core/useGridVirtualizer.mjs +265 -0
- package/hooks/features/clipboard/useGridClipboard.d.mts +8 -0
- package/hooks/features/clipboard/useGridClipboard.mjs +97 -0
- package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.mts +19 -0
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.mts +20 -0
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.mjs +10 -0
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.mts +19 -0
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +4 -3
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.mjs +120 -0
- package/hooks/features/columnGrouping/index.d.mts +2 -0
- package/hooks/features/columnGrouping/index.mjs +2 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.mts +10 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.mjs +110 -0
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +65 -0
- package/hooks/features/columnHeaders/useGridColumnHeaders.mjs +316 -0
- package/hooks/features/columnMenu/columnMenuSelector.d.mts +2 -0
- package/hooks/features/columnMenu/columnMenuSelector.mjs +2 -0
- package/hooks/features/columnMenu/getColumnMenuItemKeys.d.mts +17 -0
- package/hooks/features/columnMenu/index.d.mts +2 -0
- package/hooks/features/columnMenu/index.mjs +2 -0
- package/hooks/features/columnMenu/useGridColumnMenu.d.mts +9 -0
- package/hooks/features/columnMenu/useGridColumnMenu.mjs +116 -0
- package/hooks/features/columnMenu/useGridColumnMenuSlots.d.mts +13 -0
- package/hooks/features/columnMenu/useGridColumnMenuSlots.mjs +54 -0
- package/hooks/features/columnResize/columnResizeSelector.d.mts +5 -0
- package/hooks/features/columnResize/columnResizeSelector.mjs +3 -0
- package/hooks/features/columnResize/gridColumnResizeApi.d.mts +57 -0
- package/hooks/features/columnResize/index.d.mts +3 -0
- package/hooks/features/columnResize/index.mjs +3 -0
- package/hooks/features/columnResize/useGridColumnResize.d.mts +10 -0
- package/hooks/features/columnResize/useGridColumnResize.mjs +616 -0
- package/hooks/features/columns/gridColumnsInterfaces.d.mts +42 -0
- package/hooks/features/columns/gridColumnsSelector.d.mts +114 -0
- package/hooks/features/columns/gridColumnsSelector.mjs +142 -0
- package/hooks/features/columns/gridColumnsUtils.d.mts +75 -0
- package/hooks/features/columns/gridColumnsUtils.mjs +345 -0
- package/hooks/features/columns/index.d.mts +2 -0
- package/hooks/features/columns/index.mjs +2 -0
- package/hooks/features/columns/useGridColumnSpanning.d.mts +7 -0
- package/hooks/features/columns/useGridColumnSpanning.mjs +27 -0
- package/hooks/features/columns/useGridColumns.d.mts +11 -0
- package/hooks/features/columns/useGridColumns.mjs +348 -0
- package/hooks/features/dataSource/cache.d.mts +29 -0
- package/hooks/features/dataSource/gridDataSourceError.d.mts +31 -0
- package/hooks/features/dataSource/gridDataSourceSelector.d.mts +10 -0
- package/hooks/features/dataSource/gridDataSourceSelector.mjs +12 -0
- package/hooks/features/dataSource/index.d.mts +2 -0
- package/hooks/features/dataSource/index.mjs +2 -0
- package/hooks/features/dataSource/models.d.mts +47 -0
- package/hooks/features/dataSource/useGridDataSource.d.mts +7 -0
- package/hooks/features/dataSource/useGridDataSource.mjs +26 -0
- package/hooks/features/dataSource/useGridDataSourceBase.d.mts +31 -0
- package/hooks/features/dataSource/useGridDataSourceBase.js +2 -1
- package/hooks/features/dataSource/useGridDataSourceBase.mjs +322 -0
- package/hooks/features/dataSource/utils.d.mts +24 -0
- package/hooks/features/density/densitySelector.d.mts +8 -0
- package/hooks/features/density/densitySelector.mjs +10 -0
- package/hooks/features/density/densityState.d.mts +2 -0
- package/hooks/features/density/index.d.mts +2 -0
- package/hooks/features/density/index.mjs +2 -0
- package/hooks/features/density/useGridDensity.d.mts +6 -0
- package/hooks/features/density/useGridDensity.mjs +66 -0
- package/hooks/features/dimensions/gridDimensionsSelectors.d.mts +42 -0
- package/hooks/features/dimensions/gridDimensionsSelectors.mjs +25 -0
- package/hooks/features/dimensions/index.d.mts +3 -0
- package/hooks/features/dimensions/index.mjs +1 -0
- package/hooks/features/dimensions/useGridDimensions.d.mts +10 -0
- package/hooks/features/dimensions/useGridDimensions.mjs +144 -0
- package/hooks/features/editing/gridEditingSelectors.d.mts +19 -0
- package/hooks/features/editing/gridEditingSelectors.mjs +15 -0
- package/hooks/features/editing/index.d.mts +1 -0
- package/hooks/features/editing/index.mjs +1 -0
- package/hooks/features/editing/useGridCellEditable.d.mts +5 -0
- package/hooks/features/editing/useGridCellEditable.mjs +9 -0
- package/hooks/features/editing/useGridCellEditing.d.mts +4 -0
- package/hooks/features/editing/useGridCellEditing.js +3 -2
- package/hooks/features/editing/useGridCellEditing.mjs +497 -0
- package/hooks/features/editing/useGridEditing.d.mts +7 -0
- package/hooks/features/editing/useGridEditing.mjs +125 -0
- package/hooks/features/editing/useGridRowEditing.d.mts +4 -0
- package/hooks/features/editing/useGridRowEditing.js +15 -6
- package/hooks/features/editing/useGridRowEditing.mjs +654 -0
- package/hooks/features/editing/utils.d.mts +2 -0
- package/hooks/features/events/useGridEvents.d.mts +8 -0
- package/hooks/features/events/useGridEvents.mjs +24 -0
- package/hooks/features/export/serializers/csvSerializer.d.mts +19 -0
- package/hooks/features/export/serializers/csvSerializer.mjs +141 -0
- package/hooks/features/export/useGridCsvExport.d.mts +11 -0
- package/hooks/features/export/useGridCsvExport.mjs +74 -0
- package/hooks/features/export/useGridPrintExport.d.mts +10 -0
- package/hooks/features/export/useGridPrintExport.js +2 -1
- package/hooks/features/export/useGridPrintExport.mjs +257 -0
- package/hooks/features/export/utils.d.mts +20 -0
- package/hooks/features/export/utils.mjs +39 -0
- package/hooks/features/filter/gridFilterSelector.d.mts +153 -0
- package/hooks/features/filter/gridFilterSelector.mjs +206 -0
- package/hooks/features/filter/gridFilterState.d.mts +64 -0
- package/hooks/features/filter/gridFilterState.mjs +24 -0
- package/hooks/features/filter/gridFilterUtils.d.mts +23 -0
- package/hooks/features/filter/gridFilterUtils.js +3 -2
- package/hooks/features/filter/gridFilterUtils.mjs +325 -0
- package/hooks/features/filter/index.d.mts +4 -0
- package/hooks/features/filter/index.mjs +2 -0
- package/hooks/features/filter/useGridFilter.d.mts +12 -0
- package/hooks/features/filter/useGridFilter.mjs +370 -0
- package/hooks/features/focus/gridFocusState.d.mts +20 -0
- package/hooks/features/focus/gridFocusStateSelector.d.mts +28 -0
- package/hooks/features/focus/gridFocusStateSelector.mjs +11 -0
- package/hooks/features/focus/index.d.mts +2 -0
- package/hooks/features/focus/index.mjs +2 -0
- package/hooks/features/focus/useGridFocus.d.mts +11 -0
- package/hooks/features/focus/useGridFocus.mjs +447 -0
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.mts +11 -0
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.mjs +7 -0
- package/hooks/features/headerFiltering/index.d.mts +1 -0
- package/hooks/features/headerFiltering/index.mjs +1 -0
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.mts +6 -0
- package/hooks/features/headerFiltering/useGridHeaderFiltering.mjs +107 -0
- package/hooks/features/index.d.mts +20 -0
- package/hooks/features/index.mjs +21 -0
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.mts +13 -0
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.mjs +700 -0
- package/hooks/features/keyboardNavigation/utils.d.mts +26 -0
- package/hooks/features/keyboardNavigation/utils.mjs +53 -0
- package/hooks/features/listView/gridListViewSelectors.d.mts +14 -0
- package/hooks/features/listView/gridListViewSelectors.mjs +14 -0
- package/hooks/features/listView/index.d.mts +1 -0
- package/hooks/features/listView/index.mjs +1 -0
- package/hooks/features/listView/useGridListView.d.mts +10 -0
- package/hooks/features/listView/useGridListView.mjs +63 -0
- package/hooks/features/overlays/gridOverlaysInterfaces.d.mts +3 -0
- package/hooks/features/overlays/index.d.mts +1 -0
- package/hooks/features/overlays/useGridOverlays.d.mts +12 -0
- package/hooks/features/overlays/useGridOverlays.mjs +45 -0
- package/hooks/features/pagination/gridPaginationInterfaces.d.mts +58 -0
- package/hooks/features/pagination/gridPaginationSelector.d.mts +95 -0
- package/hooks/features/pagination/gridPaginationSelector.mjs +156 -0
- package/hooks/features/pagination/gridPaginationUtils.d.mts +9 -0
- package/hooks/features/pagination/gridPaginationUtils.js +4 -1
- package/hooks/features/pagination/gridPaginationUtils.mjs +30 -0
- package/hooks/features/pagination/index.d.mts +2 -0
- package/hooks/features/pagination/index.mjs +2 -0
- package/hooks/features/pagination/useGridPagination.d.mts +10 -0
- package/hooks/features/pagination/useGridPagination.mjs +30 -0
- package/hooks/features/pagination/useGridPaginationMeta.d.mts +4 -0
- package/hooks/features/pagination/useGridPaginationMeta.mjs +79 -0
- package/hooks/features/pagination/useGridPaginationModel.d.mts +11 -0
- package/hooks/features/pagination/useGridPaginationModel.mjs +239 -0
- package/hooks/features/pagination/useGridRowCount.d.mts +4 -0
- package/hooks/features/pagination/useGridRowCount.mjs +142 -0
- package/hooks/features/pivoting/gridPivotingInterfaces.d.mts +10 -0
- package/hooks/features/pivoting/gridPivotingSelectors.d.mts +8 -0
- package/hooks/features/pivoting/gridPivotingSelectors.mjs +7 -0
- package/hooks/features/pivoting/index.d.mts +2 -0
- package/hooks/features/pivoting/index.mjs +2 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.mts +5 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.mjs +8 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.mts +13 -0
- package/hooks/features/preferencesPanel/index.d.mts +3 -0
- package/hooks/features/preferencesPanel/index.mjs +3 -0
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.mts +9 -0
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.mjs +88 -0
- package/hooks/features/rowReorder/gridRowReorderInterfaces.d.mts +28 -0
- package/hooks/features/rowReorder/gridRowReorderSelector.d.mts +24 -0
- package/hooks/features/rowReorder/gridRowReorderSelector.mjs +21 -0
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.mts +12 -0
- package/hooks/features/rowSelection/gridRowSelectionSelector.mjs +29 -0
- package/hooks/features/rowSelection/index.d.mts +1 -0
- package/hooks/features/rowSelection/index.mjs +1 -0
- package/hooks/features/rowSelection/useGridRowSelection.d.mts +12 -0
- package/hooks/features/rowSelection/useGridRowSelection.js +3 -1
- package/hooks/features/rowSelection/useGridRowSelection.mjs +602 -0
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.mts +4 -0
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +4 -1
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.mjs +51 -0
- package/hooks/features/rowSelection/utils.d.mts +20 -0
- package/hooks/features/rowSelection/utils.mjs +211 -0
- package/hooks/features/rows/gridRowSpanningUtils.d.mts +10 -0
- package/hooks/features/rows/gridRowSpanningUtils.mjs +45 -0
- package/hooks/features/rows/gridRowsInterfaces.d.mts +98 -0
- package/hooks/features/rows/gridRowsMetaInterfaces.d.mts +10 -0
- package/hooks/features/rows/gridRowsMetaSelector.d.mts +2 -0
- package/hooks/features/rows/gridRowsMetaSelector.mjs +2 -0
- package/hooks/features/rows/gridRowsSelector.d.mts +80 -0
- package/hooks/features/rows/gridRowsSelector.mjs +70 -0
- package/hooks/features/rows/gridRowsUtils.d.mts +61 -0
- package/hooks/features/rows/gridRowsUtils.js +6 -2
- package/hooks/features/rows/gridRowsUtils.mjs +309 -0
- package/hooks/features/rows/index.d.mts +5 -0
- package/hooks/features/rows/index.mjs +4 -0
- package/hooks/features/rows/useGridParamsApi.d.mts +14 -0
- package/hooks/features/rows/useGridParamsApi.js +2 -2
- package/hooks/features/rows/useGridParamsApi.mjs +117 -0
- package/hooks/features/rows/useGridParamsOverridableMethods.d.mts +7 -0
- package/hooks/features/rows/useGridParamsOverridableMethods.js +3 -1
- package/hooks/features/rows/useGridParamsOverridableMethods.mjs +29 -0
- package/hooks/features/rows/useGridRowAriaAttributes.d.mts +2 -0
- package/hooks/features/rows/useGridRowAriaAttributes.mjs +19 -0
- package/hooks/features/rows/useGridRowSpanning.d.mts +17 -0
- package/hooks/features/rows/useGridRowSpanning.mjs +208 -0
- package/hooks/features/rows/useGridRows.d.mts +7 -0
- package/hooks/features/rows/useGridRows.js +8 -5
- package/hooks/features/rows/useGridRows.mjs +485 -0
- package/hooks/features/rows/useGridRowsMeta.d.mts +10 -0
- package/hooks/features/rows/useGridRowsMeta.mjs +60 -0
- package/hooks/features/rows/useGridRowsOverridableMethods.d.mts +7 -0
- package/hooks/features/rows/useGridRowsOverridableMethods.js +9 -8
- package/hooks/features/rows/useGridRowsOverridableMethods.mjs +94 -0
- package/hooks/features/rows/useGridRowsPreProcessors.d.mts +3 -0
- package/hooks/features/rows/useGridRowsPreProcessors.mjs +81 -0
- package/hooks/features/scroll/useGridScroll.d.mts +12 -0
- package/hooks/features/scroll/useGridScroll.mjs +132 -0
- package/hooks/features/sorting/gridSortingSelector.d.mts +42 -0
- package/hooks/features/sorting/gridSortingSelector.mjs +70 -0
- package/hooks/features/sorting/gridSortingState.d.mts +14 -0
- package/hooks/features/sorting/gridSortingUtils.d.mts +18 -0
- package/hooks/features/sorting/gridSortingUtils.mjs +140 -0
- package/hooks/features/sorting/index.d.mts +4 -0
- package/hooks/features/sorting/index.mjs +2 -0
- package/hooks/features/sorting/useGridSorting.d.mts +10 -0
- package/hooks/features/sorting/useGridSorting.mjs +252 -0
- package/hooks/features/statePersistence/gridStatePersistenceInterface.d.mts +40 -0
- package/hooks/features/statePersistence/index.d.mts +1 -0
- package/hooks/features/statePersistence/useGridStatePersistence.d.mts +3 -0
- package/hooks/features/statePersistence/useGridStatePersistence.mjs +23 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.mts +8 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.mjs +32 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.mts +46 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.mjs +45 -0
- package/hooks/features/virtualization/index.d.mts +3 -0
- package/hooks/features/virtualization/index.mjs +3 -0
- package/hooks/features/virtualization/useGridVirtualization.d.mts +10 -0
- package/hooks/features/virtualization/useGridVirtualization.mjs +101 -0
- package/hooks/index.d.mts +3 -0
- package/hooks/index.mjs +3 -0
- package/hooks/utils/index.d.mts +10 -0
- package/hooks/utils/index.mjs +9 -0
- package/hooks/utils/useGridApiContext.d.mts +4 -0
- package/hooks/utils/useGridApiContext.js +3 -1
- package/hooks/utils/useGridApiContext.mjs +12 -0
- package/hooks/utils/useGridApiMethod.d.mts +7 -0
- package/hooks/utils/useGridApiRef.d.mts +6 -0
- package/hooks/utils/useGridAriaAttributes.mjs +28 -0
- package/hooks/utils/useGridConfiguration.d.mts +4 -0
- package/hooks/utils/useGridConfiguration.js +3 -1
- package/hooks/utils/useGridConfiguration.mjs +12 -0
- package/hooks/utils/useGridEvent.d.mts +12 -0
- package/hooks/utils/useGridEvent.mjs +94 -0
- package/hooks/utils/useGridInitializeState.d.mts +8 -0
- package/hooks/utils/useGridLogger.d.mts +4 -0
- package/hooks/utils/useGridNativeEventListener.d.mts +3 -0
- package/hooks/utils/useGridNativeEventListener.mjs +17 -0
- package/hooks/utils/useGridPrivateApiContext.d.mts +6 -0
- package/hooks/utils/useGridPrivateApiContext.js +3 -1
- package/hooks/utils/useGridPrivateApiContext.mjs +13 -0
- package/hooks/utils/useGridRootProps.d.mts +2 -0
- package/hooks/utils/useGridRootProps.js +3 -1
- package/hooks/utils/useGridRootProps.mjs +12 -0
- package/hooks/utils/useGridSelector.d.mts +6 -0
- package/hooks/utils/useGridSelector.mjs +84 -0
- package/hooks/utils/useGridVisibleRows.d.mts +26 -0
- package/hooks/utils/useGridVisibleRows.mjs +17 -0
- package/index.d.mts +39 -0
- package/index.js +1 -1
- package/index.mjs +39 -0
- package/internals/demo/index.d.mts +1 -0
- package/internals/demo/index.mjs +1 -0
- package/internals/index.d.mts +128 -0
- package/internals/index.mjs +99 -0
- package/internals/utils/attachPinnedStyle.d.mts +2 -0
- package/internals/utils/attachPinnedStyle.mjs +9 -0
- package/internals/utils/cache.d.mts +9 -0
- package/internals/utils/cache.mjs +18 -0
- package/internals/utils/getPinnedCellOffset.d.mts +3 -0
- package/internals/utils/getPinnedCellOffset.mjs +21 -0
- package/internals/utils/gridRowGroupingUtils.mjs +9 -0
- package/internals/utils/index.d.mts +5 -0
- package/internals/utils/index.mjs +5 -0
- package/internals/utils/propValidation.d.mts +4 -0
- package/internals/utils/propValidation.mjs +12 -0
- package/locales/arSD.d.mts +2 -0
- package/locales/arSD.js +4 -3
- package/locales/arSD.mjs +310 -0
- package/locales/beBY.d.mts +2 -0
- package/locales/beBY.js +3 -3
- package/locales/beBY.mjs +334 -0
- package/locales/bgBG.d.mts +2 -0
- package/locales/bgBG.js +3 -3
- package/locales/bgBG.mjs +311 -0
- package/locales/bnBD.d.mts +2 -0
- package/locales/bnBD.js +3 -3
- package/locales/bnBD.mjs +309 -0
- package/locales/caES.d.mts +2 -0
- package/locales/caES.js +4 -3
- package/locales/caES.mjs +298 -0
- package/locales/csCZ.d.mts +2 -0
- package/locales/csCZ.js +4 -3
- package/locales/csCZ.mjs +337 -0
- package/locales/daDK.d.mts +2 -0
- package/locales/daDK.js +3 -3
- package/locales/daDK.mjs +310 -0
- package/locales/deDE.d.mts +2 -0
- package/locales/deDE.js +4 -3
- package/locales/deDE.mjs +301 -0
- package/locales/elGR.d.mts +2 -0
- package/locales/elGR.js +3 -3
- package/locales/elGR.mjs +312 -0
- package/locales/enUS.d.mts +2 -0
- package/locales/enUS.mjs +3 -0
- package/locales/esES.d.mts +2 -0
- package/locales/esES.js +4 -3
- package/locales/esES.mjs +298 -0
- package/locales/faIR.d.mts +2 -0
- package/locales/faIR.js +3 -3
- package/locales/faIR.mjs +310 -0
- package/locales/fiFI.d.mts +2 -0
- package/locales/fiFI.js +3 -3
- package/locales/fiFI.mjs +311 -0
- package/locales/frFR.d.mts +2 -0
- package/locales/frFR.js +4 -3
- package/locales/frFR.mjs +307 -0
- package/locales/heIL.d.mts +2 -0
- package/locales/heIL.js +4 -3
- package/locales/heIL.mjs +309 -0
- package/locales/hrHR.d.mts +1 -0
- package/locales/hrHR.js +4 -3
- package/locales/hrHR.mjs +329 -0
- package/locales/huHU.d.mts +2 -0
- package/locales/huHU.js +3 -3
- package/locales/huHU.mjs +309 -0
- package/locales/hyAM.d.mts +2 -0
- package/locales/hyAM.js +3 -3
- package/locales/hyAM.mjs +335 -0
- package/locales/idID.d.mts +4 -0
- package/locales/idID.js +4 -3
- package/locales/idID.mjs +301 -0
- package/locales/index.d.mts +40 -0
- package/locales/index.mjs +41 -0
- package/locales/isIS.d.mts +2 -0
- package/locales/isIS.js +3 -3
- package/locales/isIS.mjs +311 -0
- package/locales/itIT.d.mts +2 -0
- package/locales/itIT.js +4 -3
- package/locales/itIT.mjs +299 -0
- package/locales/jaJP.d.mts +2 -0
- package/locales/jaJP.js +4 -3
- package/locales/jaJP.mjs +306 -0
- package/locales/koKR.d.mts +2 -0
- package/locales/koKR.js +4 -3
- package/locales/koKR.mjs +301 -0
- package/locales/nbNO.d.mts +2 -0
- package/locales/nbNO.js +4 -3
- package/locales/nbNO.mjs +309 -0
- package/locales/nlNL.d.mts +2 -0
- package/locales/nlNL.js +3 -3
- package/locales/nlNL.mjs +310 -0
- package/locales/nnNO.d.mts +2 -0
- package/locales/nnNO.js +4 -3
- package/locales/nnNO.mjs +301 -0
- package/locales/plPL.d.mts +2 -0
- package/locales/plPL.js +4 -3
- package/locales/plPL.mjs +306 -0
- package/locales/ptBR.d.mts +2 -0
- package/locales/ptBR.js +4 -3
- package/locales/ptBR.mjs +298 -0
- package/locales/ptPT.d.mts +2 -0
- package/locales/ptPT.js +4 -3
- package/locales/ptPT.mjs +298 -0
- package/locales/roRO.d.mts +2 -0
- package/locales/roRO.js +3 -3
- package/locales/roRO.mjs +309 -0
- package/locales/ruRU.d.mts +2 -0
- package/locales/ruRU.js +3 -3
- package/locales/ruRU.mjs +331 -0
- package/locales/skSK.d.mts +2 -0
- package/locales/skSK.js +4 -3
- package/locales/skSK.mjs +337 -0
- package/locales/svSE.d.mts +2 -0
- package/locales/svSE.js +3 -3
- package/locales/svSE.mjs +311 -0
- package/locales/thTH.d.mts +2 -0
- package/locales/thTH.js +5 -3
- package/locales/thTH.mjs +299 -0
- package/locales/trTR.d.mts +2 -0
- package/locales/trTR.js +3 -3
- package/locales/trTR.mjs +309 -0
- package/locales/ukUA.d.mts +2 -0
- package/locales/ukUA.js +3 -3
- package/locales/ukUA.mjs +331 -0
- package/locales/urPK.d.mts +2 -0
- package/locales/urPK.js +3 -3
- package/locales/urPK.mjs +311 -0
- package/locales/viVN.d.mts +2 -0
- package/locales/viVN.js +3 -3
- package/locales/viVN.mjs +311 -0
- package/locales/zhCN.d.mts +2 -0
- package/locales/zhCN.js +4 -3
- package/locales/zhCN.mjs +307 -0
- package/locales/zhHK.d.mts +1 -0
- package/locales/zhHK.js +4 -3
- package/locales/zhHK.mjs +307 -0
- package/locales/zhTW.d.mts +2 -0
- package/locales/zhTW.js +4 -3
- package/locales/zhTW.mjs +307 -0
- package/material/icons/createSvgIcon.d.mts +2 -0
- package/material/icons/index.mjs +103 -0
- package/material/index.d.mts +6 -0
- package/material/index.mjs +851 -0
- package/material/variables.d.mts +5 -0
- package/material/variables.mjs +131 -0
- package/models/api/gridApiCommon.d.mts +38 -0
- package/models/api/gridApiCommunity.d.mts +12 -0
- package/models/api/gridCallbackDetails.d.mts +15 -0
- package/models/api/gridColumnApi.d.mts +74 -0
- package/models/api/gridColumnGroupingApi.d.mts +19 -0
- package/models/api/gridColumnSpanning.d.mts +28 -0
- package/models/api/gridCoreApi.d.mts +96 -0
- package/models/api/gridCsvExportApi.d.mts +18 -0
- package/models/api/gridDensityApi.d.mts +17 -0
- package/models/api/gridEditingApi.d.mts +237 -0
- package/models/api/gridFilterApi.d.mts +67 -0
- package/models/api/gridFocusApi.d.mts +46 -0
- package/models/api/gridHeaderFilteringApi.d.mts +30 -0
- package/models/api/gridLocaleTextApi.d.mts +247 -0
- package/models/api/gridLoggerApi.d.mts +11 -0
- package/models/api/gridParamsApi.d.mts +111 -0
- package/models/api/gridPreferencesPanelApi.d.mts +17 -0
- package/models/api/gridPrintExportApi.d.mts +11 -0
- package/models/api/gridRowApi.d.mts +147 -0
- package/models/api/gridRowSelectionApi.d.mts +92 -0
- package/models/api/gridRowsMetaApi.d.mts +60 -0
- package/models/api/gridScrollApi.d.mts +24 -0
- package/models/api/gridSortApi.d.mts +46 -0
- package/models/api/gridStateApi.d.mts +33 -0
- package/models/api/index.d.mts +23 -0
- package/models/api/index.mjs +12 -0
- package/models/colDef/gridColDef.d.mts +345 -0
- package/models/colDef/gridColDef.d.ts +12 -0
- package/models/colDef/gridColumnTypesRecord.d.mts +3 -0
- package/models/colDef/index.d.mts +3 -0
- package/models/colDef/index.mjs +6 -0
- package/models/configuration/gridAggregationConfiguration.d.mts +19 -0
- package/models/configuration/gridCellEditableConfiguration.d.mts +19 -0
- package/models/configuration/gridConfiguration.d.mts +21 -0
- package/models/configuration/gridParamsConfiguration.d.mts +12 -0
- package/models/configuration/gridRowConfiguration.d.mts +23 -0
- package/models/controlStateItem.d.mts +14 -0
- package/models/events/gridEventListener.d.mts +8 -0
- package/models/events/gridEventLookup.d.mts +683 -0
- package/models/events/gridEventPublisher.d.mts +29 -0
- package/models/events/index.d.mts +3 -0
- package/models/events/index.mjs +3 -0
- package/models/gridApiCaches.d.mts +12 -0
- package/models/gridCell.d.mts +30 -0
- package/models/gridCellClass.d.mts +12 -0
- package/models/gridColumnGrouping.d.mts +43 -0
- package/models/gridColumnHeaderClass.d.mts +11 -0
- package/models/gridDataSource.d.mts +83 -0
- package/models/gridEditRowModel.d.mts +28 -0
- package/models/gridExport.d.mts +157 -0
- package/models/gridFilterInputComponent.d.mts +32 -0
- package/models/gridFilterItem.d.mts +32 -0
- package/models/gridFilterModel.d.mts +34 -0
- package/models/gridFilterOperator.d.mts +58 -0
- package/models/gridHeaderFilteringModel.d.mts +6 -0
- package/models/gridIconSlotsComponent.d.mts +213 -0
- package/models/gridRowSelectionManager.d.mts +9 -0
- package/models/gridRowSelectionModel.d.mts +9 -0
- package/models/gridRows.d.mts +180 -0
- package/models/gridSlotsComponent.d.mts +235 -0
- package/models/gridSlotsComponentsProps.d.mts +133 -0
- package/models/gridSortModel.d.mts +35 -0
- package/models/gridStateCommunity.d.mts +61 -0
- package/models/index.d.mts +31 -0
- package/models/index.mjs +29 -0
- package/models/params/gridCellParams.d.mts +103 -0
- package/models/params/gridColumnGroupHeaderParams.d.mts +30 -0
- package/models/params/gridColumnHeaderParams.d.mts +15 -0
- package/models/params/gridColumnOrderChangeParams.d.mts +18 -0
- package/models/params/gridColumnResizeParams.d.mts +18 -0
- package/models/params/gridEditCellParams.d.mts +65 -0
- package/models/params/gridPreferencePanelParams.d.mts +2 -0
- package/models/params/gridRowParams.d.mts +109 -0
- package/models/params/gridRowSelectionCheckboxParams.d.mts +5 -0
- package/models/params/gridValueOptionsParams.d.mts +18 -0
- package/models/params/index.d.mts +13 -0
- package/models/params/index.mjs +13 -0
- package/models/props/DataGridProps.d.mts +915 -0
- package/models/props/DataGridProps.d.ts +10 -1
- package/package.json +182 -15
- package/themeAugmentation/index.d.mts +2 -0
- package/themeAugmentation/index.mjs +4 -0
- package/themeAugmentation/overrides.d.mts +18 -0
- package/themeAugmentation/props.d.mts +15 -0
- package/utils/assert.js +3 -1
- package/utils/assert.mjs +4 -0
- package/utils/cellBorderUtils.d.mts +4 -0
- package/utils/cellBorderUtils.mjs +24 -0
- package/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.d.mts +7 -0
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.mts +9 -0
- package/utils/composeGridClasses.d.mts +3 -0
- package/utils/composeGridClasses.mjs +5 -0
- package/utils/css/context.mjs +60 -0
- package/utils/domUtils.d.mts +30 -0
- package/utils/domUtils.js +3 -1
- package/utils/domUtils.mjs +209 -0
- package/utils/exportAs.d.mts +12 -0
- package/utils/exportAs.js +3 -1
- package/utils/exportAs.mjs +39 -0
- package/utils/getGridLocalization.d.mts +13 -0
- package/utils/getGridLocalization.d.ts +3 -1
- package/utils/getGridLocalization.js +23 -2
- package/utils/getGridLocalization.mjs +28 -0
- package/utils/getPublicApiRef.d.mts +3 -0
- package/utils/index.d.mts +2 -0
- package/utils/index.mjs +1 -0
- package/utils/rtlFlipSide.d.mts +2 -0
- package/utils/rtlFlipSide.mjs +22 -0
- package/esm/DataGrid/DataGrid.d.ts +0 -16
- package/esm/DataGrid/DataGrid.js +0 -821
- package/esm/DataGrid/index.d.ts +0 -1
- package/esm/DataGrid/index.js +0 -1
- package/esm/DataGrid/useDataGridComponent.d.ts +0 -5
- package/esm/DataGrid/useDataGridComponent.js +0 -104
- package/esm/DataGrid/useDataGridProps.d.ts +0 -3
- package/esm/DataGrid/useDataGridProps.js +0 -50
- package/esm/colDef/gridActionsColDef.d.ts +0 -3
- package/esm/colDef/gridActionsColDef.js +0 -20
- package/esm/colDef/gridBooleanColDef.d.ts +0 -2
- package/esm/colDef/gridBooleanColDef.js +0 -41
- package/esm/colDef/gridBooleanOperators.d.ts +0 -2
- package/esm/colDef/gridBooleanOperators.js +0 -12
- package/esm/colDef/gridCheckboxSelectionColDef.d.ts +0 -3
- package/esm/colDef/gridCheckboxSelectionColDef.js +0 -30
- package/esm/colDef/gridDateColDef.d.ts +0 -5
- package/esm/colDef/gridDateColDef.js +0 -67
- package/esm/colDef/gridDateOperators.d.ts +0 -3
- package/esm/colDef/gridDateOperators.js +0 -108
- package/esm/colDef/gridDefaultColumnTypes.d.ts +0 -3
- package/esm/colDef/gridDefaultColumnTypes.js +0 -22
- package/esm/colDef/gridLongTextColDef.d.ts +0 -2
- package/esm/colDef/gridLongTextColDef.js +0 -10
- package/esm/colDef/gridNumericColDef.d.ts +0 -2
- package/esm/colDef/gridNumericColDef.js +0 -15
- package/esm/colDef/gridNumericOperators.d.ts +0 -7
- package/esm/colDef/gridNumericOperators.js +0 -143
- package/esm/colDef/gridSingleSelectColDef.d.ts +0 -2
- package/esm/colDef/gridSingleSelectColDef.js +0 -61
- package/esm/colDef/gridSingleSelectOperators.d.ts +0 -2
- package/esm/colDef/gridSingleSelectOperators.js +0 -38
- package/esm/colDef/gridStringColDef.d.ts +0 -5
- package/esm/colDef/gridStringColDef.js +0 -28
- package/esm/colDef/gridStringOperators.d.ts +0 -4
- package/esm/colDef/gridStringOperators.js +0 -121
- package/esm/colDef/index.d.ts +0 -14
- package/esm/colDef/index.js +0 -14
- package/esm/components/GridColumnHeaders.d.ts +0 -7
- package/esm/components/GridColumnHeaders.js +0 -88
- package/esm/components/GridColumnSortButton.d.ts +0 -16
- package/esm/components/GridColumnSortButton.js +0 -105
- package/esm/components/GridColumnUnsortedIcon.d.ts +0 -7
- package/esm/components/GridColumnUnsortedIcon.js +0 -17
- package/esm/components/GridFooter.d.ts +0 -5
- package/esm/components/GridFooter.js +0 -42
- package/esm/components/GridHeader.js +0 -11
- package/esm/components/GridHeaders.js +0 -49
- package/esm/components/GridLoadingOverlay.d.ts +0 -17
- package/esm/components/GridLoadingOverlay.js +0 -70
- package/esm/components/GridNoColumnsOverlay.d.ts +0 -5
- package/esm/components/GridNoColumnsOverlay.js +0 -38
- package/esm/components/GridNoResultsOverlay.d.ts +0 -4
- package/esm/components/GridNoResultsOverlay.js +0 -16
- package/esm/components/GridNoRowsOverlay.d.ts +0 -5
- package/esm/components/GridNoRowsOverlay.js +0 -25
- package/esm/components/GridPagination.js +0 -86
- package/esm/components/GridRow.d.ts +0 -39
- package/esm/components/GridRow.js +0 -355
- package/esm/components/GridRowCount.js +0 -66
- package/esm/components/GridRowDragAndDropOverlay.d.ts +0 -7
- package/esm/components/GridRowDragAndDropOverlay.js +0 -66
- package/esm/components/GridScrollArea.d.ts +0 -9
- package/esm/components/GridScrollArea.js +0 -256
- package/esm/components/GridScrollShadows.js +0 -122
- package/esm/components/GridScrollbarFillerCell.js +0 -16
- package/esm/components/GridSelectedRowCount.js +0 -69
- package/esm/components/GridSkeletonLoadingOverlay.d.ts +0 -14
- package/esm/components/GridSkeletonLoadingOverlay.js +0 -195
- package/esm/components/base/GridBody.d.ts +0 -2
- package/esm/components/base/GridBody.js +0 -2
- package/esm/components/base/GridFooterPlaceholder.js +0 -10
- package/esm/components/base/GridOverlays.d.ts +0 -11
- package/esm/components/base/GridOverlays.js +0 -83
- package/esm/components/base/index.d.ts +0 -2
- package/esm/components/base/index.js +0 -2
- package/esm/components/cell/GridActionsCell.d.ts +0 -41
- package/esm/components/cell/GridActionsCell.js +0 -290
- package/esm/components/cell/GridActionsCellItem.d.ts +0 -55
- package/esm/components/cell/GridActionsCellItem.js +0 -59
- package/esm/components/cell/GridBooleanCell.d.ts +0 -13
- package/esm/components/cell/GridBooleanCell.js +0 -124
- package/esm/components/cell/GridCell.d.ts +0 -77
- package/esm/components/cell/GridCell.js +0 -344
- package/esm/components/cell/GridEditBooleanCell.d.ts +0 -17
- package/esm/components/cell/GridEditBooleanCell.js +0 -144
- package/esm/components/cell/GridEditDateCell.d.ts +0 -21
- package/esm/components/cell/GridEditDateCell.js +0 -199
- package/esm/components/cell/GridEditInputCell.d.ts +0 -19
- package/esm/components/cell/GridEditInputCell.js +0 -105
- package/esm/components/cell/GridEditLongTextCell.d.ts +0 -41
- package/esm/components/cell/GridEditLongTextCell.js +0 -240
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +0 -21
- package/esm/components/cell/GridEditSingleSelectCell.js +0 -192
- package/esm/components/cell/GridFooterCell.d.ts +0 -9
- package/esm/components/cell/GridFooterCell.js +0 -48
- package/esm/components/cell/GridLongTextCell.d.ts +0 -43
- package/esm/components/cell/GridLongTextCell.js +0 -246
- package/esm/components/cell/GridSkeletonCell.d.ts +0 -20
- package/esm/components/cell/GridSkeletonCell.js +0 -105
- package/esm/components/cell/index.d.ts +0 -12
- package/esm/components/cell/index.js +0 -11
- package/esm/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +0 -10
- package/esm/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -66
- package/esm/components/columnHeaders/GridBaseColumnHeaders.js +0 -47
- package/esm/components/columnHeaders/GridColumnGroupHeader.d.ts +0 -21
- package/esm/components/columnHeaders/GridColumnGroupHeader.js +0 -152
- package/esm/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +0 -12
- package/esm/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -109
- package/esm/components/columnHeaders/GridColumnHeaderItem.d.ts +0 -33
- package/esm/components/columnHeaders/GridColumnHeaderItem.js +0 -275
- package/esm/components/columnHeaders/GridColumnHeaderSeparator.js +0 -73
- package/esm/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +0 -9
- package/esm/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -38
- package/esm/components/columnHeaders/GridColumnHeaderTitle.js +0 -90
- package/esm/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +0 -32
- package/esm/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -82
- package/esm/components/columnHeaders/GridIconButtonContainer.js +0 -45
- package/esm/components/columnHeaders/index.d.ts +0 -5
- package/esm/components/columnHeaders/index.js +0 -5
- package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +0 -5
- package/esm/components/columnSelection/GridCellCheckboxRenderer.js +0 -174
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +0 -4
- package/esm/components/columnSelection/GridHeaderCheckbox.js +0 -176
- package/esm/components/columnSelection/index.d.ts +0 -2
- package/esm/components/columnSelection/index.js +0 -2
- package/esm/components/columnsManagement/GridColumnsManagement.d.ts +0 -50
- package/esm/components/columnsManagement/GridColumnsManagement.js +0 -317
- package/esm/components/columnsManagement/index.d.ts +0 -1
- package/esm/components/columnsManagement/index.js +0 -1
- package/esm/components/columnsManagement/utils.d.ts +0 -4
- package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +0 -33
- package/esm/components/columnsPanel/ColumnsPanelTrigger.js +0 -102
- package/esm/components/columnsPanel/index.d.ts +0 -1
- package/esm/components/columnsPanel/index.js +0 -1
- package/esm/components/containers/GridFooterContainer.js +0 -56
- package/esm/components/containers/GridOverlay.js +0 -63
- package/esm/components/containers/GridRoot.js +0 -88
- package/esm/components/containers/GridRootStyles.d.ts +0 -7
- package/esm/components/containers/GridRootStyles.js +0 -722
- package/esm/components/containers/GridToolbarContainer.js +0 -69
- package/esm/components/containers/index.d.ts +0 -4
- package/esm/components/containers/index.js +0 -4
- package/esm/components/export/ExportCsv.d.ts +0 -30
- package/esm/components/export/ExportCsv.js +0 -83
- package/esm/components/export/ExportPrint.d.ts +0 -30
- package/esm/components/export/ExportPrint.js +0 -83
- package/esm/components/export/index.d.ts +0 -2
- package/esm/components/export/index.js +0 -2
- package/esm/components/filterPanel/FilterPanelTrigger.d.ts +0 -37
- package/esm/components/filterPanel/FilterPanelTrigger.js +0 -105
- package/esm/components/filterPanel/index.d.ts +0 -1
- package/esm/components/filterPanel/index.js +0 -1
- package/esm/components/index.d.ts +0 -26
- package/esm/components/index.js +0 -26
- package/esm/components/menu/GridMenu.d.ts +0 -15
- package/esm/components/menu/GridMenu.js +0 -110
- package/esm/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +0 -26
- package/esm/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -63
- package/esm/components/menu/columnMenu/GridColumnMenu.d.ts +0 -23
- package/esm/components/menu/columnMenu/GridColumnMenu.js +0 -114
- package/esm/components/menu/columnMenu/GridColumnMenuContainer.d.ts +0 -4
- package/esm/components/menu/columnMenu/GridColumnMenuContainer.js +0 -72
- package/esm/components/menu/columnMenu/GridColumnMenuItemProps.d.ts +0 -7
- package/esm/components/menu/columnMenu/GridColumnMenuProps.d.ts +0 -20
- package/esm/components/menu/columnMenu/index.d.ts +0 -6
- package/esm/components/menu/columnMenu/index.js +0 -8
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +0 -6
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -20
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +0 -6
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -36
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +0 -6
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -53
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +0 -6
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -36
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +0 -6
- package/esm/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -69
- package/esm/components/menu/columnMenu/menuItems/index.d.ts +0 -5
- package/esm/components/menu/columnMenu/menuItems/index.js +0 -5
- package/esm/components/menu/index.d.ts +0 -2
- package/esm/components/menu/index.js +0 -2
- package/esm/components/panel/GridColumnsPanel.d.ts +0 -4
- package/esm/components/panel/GridColumnsPanel.js +0 -11
- package/esm/components/panel/GridPanel.d.ts +0 -21
- package/esm/components/panel/GridPanel.js +0 -110
- package/esm/components/panel/GridPanelContent.js +0 -53
- package/esm/components/panel/GridPanelContext.js +0 -29
- package/esm/components/panel/GridPanelFooter.js +0 -50
- package/esm/components/panel/GridPanelHeader.js +0 -47
- package/esm/components/panel/GridPanelWrapper.js +0 -50
- package/esm/components/panel/GridPreferencesPanel.js +0 -43
- package/esm/components/panel/filterPanel/GridFilterForm.d.ts +0 -107
- package/esm/components/panel/filterPanel/GridFilterForm.js +0 -474
- package/esm/components/panel/filterPanel/GridFilterInputBoolean.d.ts +0 -9
- package/esm/components/panel/filterPanel/GridFilterInputBoolean.js +0 -125
- package/esm/components/panel/filterPanel/GridFilterInputDate.d.ts +0 -10
- package/esm/components/panel/filterPanel/GridFilterInputDate.js +0 -137
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +0 -11
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -113
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +0 -10
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -103
- package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +0 -10
- package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -141
- package/esm/components/panel/filterPanel/GridFilterInputValue.d.ts +0 -14
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +0 -123
- package/esm/components/panel/filterPanel/GridFilterPanel.d.ts +0 -49
- package/esm/components/panel/filterPanel/GridFilterPanel.js +0 -250
- package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +0 -5
- package/esm/components/panel/filterPanel/index.d.ts +0 -10
- package/esm/components/panel/filterPanel/index.js +0 -8
- package/esm/components/panel/index.d.ts +0 -7
- package/esm/components/panel/index.js +0 -7
- package/esm/components/quickFilter/QuickFilter.d.ts +0 -64
- package/esm/components/quickFilter/QuickFilter.js +0 -191
- package/esm/components/quickFilter/QuickFilterClear.d.ts +0 -28
- package/esm/components/quickFilter/QuickFilterClear.js +0 -77
- package/esm/components/quickFilter/QuickFilterContext.js +0 -12
- package/esm/components/quickFilter/QuickFilterControl.d.ts +0 -28
- package/esm/components/quickFilter/QuickFilterControl.js +0 -124
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +0 -28
- package/esm/components/quickFilter/QuickFilterTrigger.js +0 -80
- package/esm/components/quickFilter/index.d.ts +0 -4
- package/esm/components/quickFilter/index.js +0 -4
- package/esm/components/reexportable.d.ts +0 -1
- package/esm/components/reexportable.js +0 -1
- package/esm/components/toolbar/GridToolbar.d.ts +0 -24
- package/esm/components/toolbar/GridToolbar.js +0 -88
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +0 -17
- package/esm/components/toolbar/GridToolbarColumnsButton.js +0 -85
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +0 -17
- package/esm/components/toolbar/GridToolbarDensitySelector.js +0 -123
- package/esm/components/toolbar/GridToolbarExport.d.ts +0 -42
- package/esm/components/toolbar/GridToolbarExport.js +0 -131
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +0 -16
- package/esm/components/toolbar/GridToolbarExportContainer.js +0 -88
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +0 -18
- package/esm/components/toolbar/GridToolbarFilterButton.js +0 -149
- package/esm/components/toolbar/GridToolbarQuickFilter.d.ts +0 -45
- package/esm/components/toolbar/GridToolbarQuickFilter.js +0 -188
- package/esm/components/toolbar/index.d.ts +0 -8
- package/esm/components/toolbar/index.js +0 -7
- package/esm/components/toolbarV8/GridToolbar.d.ts +0 -17
- package/esm/components/toolbarV8/GridToolbar.js +0 -201
- package/esm/components/toolbarV8/Toolbar.js +0 -208
- package/esm/components/toolbarV8/ToolbarButton.d.ts +0 -23
- package/esm/components/toolbarV8/ToolbarButton.js +0 -111
- package/esm/components/toolbarV8/ToolbarContext.js +0 -12
- package/esm/components/toolbarV8/index.d.ts +0 -2
- package/esm/components/toolbarV8/index.js +0 -2
- package/esm/components/virtualization/GridBottomContainer.js +0 -28
- package/esm/components/virtualization/GridMainContainer.d.ts +0 -19
- package/esm/components/virtualization/GridMainContainer.js +0 -57
- package/esm/components/virtualization/GridTopContainer.js +0 -28
- package/esm/components/virtualization/GridVirtualScrollbar.js +0 -110
- package/esm/components/virtualization/GridVirtualScroller.js +0 -156
- package/esm/components/virtualization/GridVirtualScrollerContent.js +0 -46
- package/esm/components/virtualization/GridVirtualScrollerFiller.js +0 -85
- package/esm/components/virtualization/GridVirtualScrollerRenderZone.js +0 -41
- package/esm/constants/dataGridPropsDefaultValues.d.ts +0 -5
- package/esm/constants/dataGridPropsDefaultValues.js +0 -63
- package/esm/constants/defaultGridSlotsComponents.d.ts +0 -2
- package/esm/constants/defaultGridSlotsComponents.js +0 -38
- package/esm/constants/gridClasses.js +0 -8
- package/esm/constants/index.d.ts +0 -4
- package/esm/constants/index.js +0 -4
- package/esm/constants/localeTextConstants.d.ts +0 -2
- package/esm/constants/localeTextConstants.js +0 -296
- package/esm/context/GridContextProvider.d.ts +0 -17
- package/esm/context/GridContextProvider.js +0 -35
- package/esm/context/index.d.ts +0 -1
- package/esm/context/index.js +0 -1
- package/esm/hooks/core/gridCoreSelector.d.ts +0 -6
- package/esm/hooks/core/gridCoreSelector.js +0 -6
- package/esm/hooks/core/gridPropsSelectors.d.ts +0 -10
- package/esm/hooks/core/gridPropsSelectors.js +0 -18
- package/esm/hooks/core/index.d.ts +0 -2
- package/esm/hooks/core/index.js +0 -1
- package/esm/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +0 -163
- package/esm/hooks/core/pipeProcessing/index.d.ts +0 -4
- package/esm/hooks/core/pipeProcessing/index.js +0 -4
- package/esm/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +0 -32
- package/esm/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -124
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +0 -4
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -28
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +0 -4
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -30
- package/esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +0 -81
- package/esm/hooks/core/strategyProcessing/index.d.ts +0 -3
- package/esm/hooks/core/strategyProcessing/index.js +0 -3
- package/esm/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +0 -4
- package/esm/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -20
- package/esm/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +0 -43
- package/esm/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -112
- package/esm/hooks/core/useGridApiInitialization.d.ts +0 -5
- package/esm/hooks/core/useGridApiInitialization.js +0 -114
- package/esm/hooks/core/useGridInitialization.d.ts +0 -7
- package/esm/hooks/core/useGridInitialization.js +0 -25
- package/esm/hooks/core/useGridIsRtl.d.ts +0 -3
- package/esm/hooks/core/useGridLocaleText.d.ts +0 -4
- package/esm/hooks/core/useGridLocaleText.js +0 -12
- package/esm/hooks/core/useGridLoggerFactory.d.ts +0 -4
- package/esm/hooks/core/useGridLoggerFactory.js +0 -44
- package/esm/hooks/core/useGridProps.d.ts +0 -6
- package/esm/hooks/core/useGridRefs.d.ts +0 -3
- package/esm/hooks/core/useGridStateInitialization.d.ts +0 -3
- package/esm/hooks/core/useGridStateInitialization.js +0 -97
- package/esm/hooks/core/useGridVirtualizer.js +0 -265
- package/esm/hooks/features/clipboard/useGridClipboard.d.ts +0 -8
- package/esm/hooks/features/clipboard/useGridClipboard.js +0 -97
- package/esm/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +0 -19
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +0 -20
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -10
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +0 -19
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -119
- package/esm/hooks/features/columnGrouping/index.d.ts +0 -2
- package/esm/hooks/features/columnGrouping/index.js +0 -2
- package/esm/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +0 -10
- package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -110
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -65
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -316
- package/esm/hooks/features/columnMenu/columnMenuSelector.d.ts +0 -2
- package/esm/hooks/features/columnMenu/columnMenuSelector.js +0 -2
- package/esm/hooks/features/columnMenu/getColumnMenuItemKeys.d.ts +0 -17
- package/esm/hooks/features/columnMenu/index.d.ts +0 -2
- package/esm/hooks/features/columnMenu/index.js +0 -2
- package/esm/hooks/features/columnMenu/useGridColumnMenu.d.ts +0 -9
- package/esm/hooks/features/columnMenu/useGridColumnMenu.js +0 -116
- package/esm/hooks/features/columnMenu/useGridColumnMenuSlots.d.ts +0 -13
- package/esm/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -54
- package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +0 -5
- package/esm/hooks/features/columnResize/columnResizeSelector.js +0 -3
- package/esm/hooks/features/columnResize/gridColumnResizeApi.d.ts +0 -57
- package/esm/hooks/features/columnResize/index.d.ts +0 -3
- package/esm/hooks/features/columnResize/index.js +0 -3
- package/esm/hooks/features/columnResize/useGridColumnResize.d.ts +0 -10
- package/esm/hooks/features/columnResize/useGridColumnResize.js +0 -616
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +0 -42
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +0 -114
- package/esm/hooks/features/columns/gridColumnsSelector.js +0 -142
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +0 -75
- package/esm/hooks/features/columns/gridColumnsUtils.js +0 -345
- package/esm/hooks/features/columns/index.d.ts +0 -2
- package/esm/hooks/features/columns/index.js +0 -2
- package/esm/hooks/features/columns/useGridColumnSpanning.d.ts +0 -7
- package/esm/hooks/features/columns/useGridColumnSpanning.js +0 -27
- package/esm/hooks/features/columns/useGridColumns.d.ts +0 -11
- package/esm/hooks/features/columns/useGridColumns.js +0 -348
- package/esm/hooks/features/dataSource/cache.d.ts +0 -29
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +0 -31
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +0 -10
- package/esm/hooks/features/dataSource/gridDataSourceSelector.js +0 -12
- package/esm/hooks/features/dataSource/index.d.ts +0 -2
- package/esm/hooks/features/dataSource/index.js +0 -2
- package/esm/hooks/features/dataSource/models.d.ts +0 -47
- package/esm/hooks/features/dataSource/useGridDataSource.d.ts +0 -7
- package/esm/hooks/features/dataSource/useGridDataSource.js +0 -26
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +0 -31
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +0 -321
- package/esm/hooks/features/dataSource/utils.d.ts +0 -24
- package/esm/hooks/features/density/densitySelector.d.ts +0 -8
- package/esm/hooks/features/density/densitySelector.js +0 -10
- package/esm/hooks/features/density/densityState.d.ts +0 -2
- package/esm/hooks/features/density/index.d.ts +0 -2
- package/esm/hooks/features/density/index.js +0 -2
- package/esm/hooks/features/density/useGridDensity.d.ts +0 -6
- package/esm/hooks/features/density/useGridDensity.js +0 -66
- package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +0 -42
- package/esm/hooks/features/dimensions/gridDimensionsSelectors.js +0 -25
- package/esm/hooks/features/dimensions/index.d.ts +0 -3
- package/esm/hooks/features/dimensions/index.js +0 -1
- package/esm/hooks/features/dimensions/useGridDimensions.d.ts +0 -10
- package/esm/hooks/features/dimensions/useGridDimensions.js +0 -144
- package/esm/hooks/features/editing/gridEditingSelectors.d.ts +0 -19
- package/esm/hooks/features/editing/gridEditingSelectors.js +0 -15
- package/esm/hooks/features/editing/index.d.ts +0 -1
- package/esm/hooks/features/editing/index.js +0 -1
- package/esm/hooks/features/editing/useGridCellEditable.d.ts +0 -5
- package/esm/hooks/features/editing/useGridCellEditable.js +0 -9
- package/esm/hooks/features/editing/useGridCellEditing.d.ts +0 -4
- package/esm/hooks/features/editing/useGridCellEditing.js +0 -496
- package/esm/hooks/features/editing/useGridEditing.d.ts +0 -7
- package/esm/hooks/features/editing/useGridEditing.js +0 -125
- package/esm/hooks/features/editing/useGridRowEditing.d.ts +0 -4
- package/esm/hooks/features/editing/useGridRowEditing.js +0 -645
- package/esm/hooks/features/editing/utils.d.ts +0 -2
- package/esm/hooks/features/events/useGridEvents.d.ts +0 -8
- package/esm/hooks/features/events/useGridEvents.js +0 -24
- package/esm/hooks/features/export/serializers/csvSerializer.d.ts +0 -19
- package/esm/hooks/features/export/serializers/csvSerializer.js +0 -141
- package/esm/hooks/features/export/useGridCsvExport.d.ts +0 -11
- package/esm/hooks/features/export/useGridCsvExport.js +0 -74
- package/esm/hooks/features/export/useGridPrintExport.d.ts +0 -10
- package/esm/hooks/features/export/useGridPrintExport.js +0 -256
- package/esm/hooks/features/export/utils.d.ts +0 -20
- package/esm/hooks/features/export/utils.js +0 -39
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +0 -153
- package/esm/hooks/features/filter/gridFilterSelector.js +0 -206
- package/esm/hooks/features/filter/gridFilterState.d.ts +0 -64
- package/esm/hooks/features/filter/gridFilterState.js +0 -24
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +0 -23
- package/esm/hooks/features/filter/gridFilterUtils.js +0 -324
- package/esm/hooks/features/filter/index.d.ts +0 -4
- package/esm/hooks/features/filter/index.js +0 -2
- package/esm/hooks/features/filter/useGridFilter.d.ts +0 -12
- package/esm/hooks/features/filter/useGridFilter.js +0 -370
- package/esm/hooks/features/focus/gridFocusState.d.ts +0 -20
- package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +0 -28
- package/esm/hooks/features/focus/gridFocusStateSelector.js +0 -11
- package/esm/hooks/features/focus/index.d.ts +0 -2
- package/esm/hooks/features/focus/index.js +0 -2
- package/esm/hooks/features/focus/useGridFocus.d.ts +0 -11
- package/esm/hooks/features/focus/useGridFocus.js +0 -447
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +0 -11
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -7
- package/esm/hooks/features/headerFiltering/index.d.ts +0 -1
- package/esm/hooks/features/headerFiltering/index.js +0 -1
- package/esm/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +0 -6
- package/esm/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -107
- package/esm/hooks/features/index.d.ts +0 -20
- package/esm/hooks/features/index.js +0 -21
- package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +0 -13
- package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -700
- package/esm/hooks/features/keyboardNavigation/utils.d.ts +0 -26
- package/esm/hooks/features/keyboardNavigation/utils.js +0 -53
- package/esm/hooks/features/listView/gridListViewSelectors.d.ts +0 -14
- package/esm/hooks/features/listView/gridListViewSelectors.js +0 -14
- package/esm/hooks/features/listView/index.d.ts +0 -1
- package/esm/hooks/features/listView/index.js +0 -1
- package/esm/hooks/features/listView/useGridListView.d.ts +0 -10
- package/esm/hooks/features/listView/useGridListView.js +0 -63
- package/esm/hooks/features/overlays/gridOverlaysInterfaces.d.ts +0 -3
- package/esm/hooks/features/overlays/index.d.ts +0 -1
- package/esm/hooks/features/overlays/useGridOverlays.d.ts +0 -12
- package/esm/hooks/features/overlays/useGridOverlays.js +0 -45
- package/esm/hooks/features/pagination/gridPaginationInterfaces.d.ts +0 -58
- package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +0 -95
- package/esm/hooks/features/pagination/gridPaginationSelector.js +0 -156
- package/esm/hooks/features/pagination/gridPaginationUtils.d.ts +0 -9
- package/esm/hooks/features/pagination/gridPaginationUtils.js +0 -28
- package/esm/hooks/features/pagination/index.d.ts +0 -2
- package/esm/hooks/features/pagination/index.js +0 -2
- package/esm/hooks/features/pagination/useGridPagination.d.ts +0 -10
- package/esm/hooks/features/pagination/useGridPagination.js +0 -30
- package/esm/hooks/features/pagination/useGridPaginationMeta.d.ts +0 -4
- package/esm/hooks/features/pagination/useGridPaginationMeta.js +0 -79
- package/esm/hooks/features/pagination/useGridPaginationModel.d.ts +0 -11
- package/esm/hooks/features/pagination/useGridPaginationModel.js +0 -239
- package/esm/hooks/features/pagination/useGridRowCount.d.ts +0 -4
- package/esm/hooks/features/pagination/useGridRowCount.js +0 -142
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +0 -10
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +0 -8
- package/esm/hooks/features/pivoting/gridPivotingSelectors.js +0 -7
- package/esm/hooks/features/pivoting/index.d.ts +0 -2
- package/esm/hooks/features/pivoting/index.js +0 -2
- package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +0 -5
- package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -8
- package/esm/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +0 -13
- package/esm/hooks/features/preferencesPanel/index.d.ts +0 -3
- package/esm/hooks/features/preferencesPanel/index.js +0 -3
- package/esm/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +0 -9
- package/esm/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -88
- package/esm/hooks/features/rowReorder/gridRowReorderInterfaces.d.ts +0 -28
- package/esm/hooks/features/rowReorder/gridRowReorderSelector.d.ts +0 -24
- package/esm/hooks/features/rowReorder/gridRowReorderSelector.js +0 -21
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +0 -12
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -29
- package/esm/hooks/features/rowSelection/index.d.ts +0 -1
- package/esm/hooks/features/rowSelection/index.js +0 -1
- package/esm/hooks/features/rowSelection/useGridRowSelection.d.ts +0 -12
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +0 -600
- package/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +0 -4
- package/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -48
- package/esm/hooks/features/rowSelection/utils.d.ts +0 -20
- package/esm/hooks/features/rowSelection/utils.js +0 -211
- package/esm/hooks/features/rows/gridRowSpanningUtils.d.ts +0 -10
- package/esm/hooks/features/rows/gridRowSpanningUtils.js +0 -45
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +0 -98
- package/esm/hooks/features/rows/gridRowsMetaInterfaces.d.ts +0 -10
- package/esm/hooks/features/rows/gridRowsMetaSelector.d.ts +0 -2
- package/esm/hooks/features/rows/gridRowsMetaSelector.js +0 -2
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +0 -80
- package/esm/hooks/features/rows/gridRowsSelector.js +0 -70
- package/esm/hooks/features/rows/gridRowsUtils.d.ts +0 -61
- package/esm/hooks/features/rows/gridRowsUtils.js +0 -305
- package/esm/hooks/features/rows/index.d.ts +0 -5
- package/esm/hooks/features/rows/index.js +0 -4
- package/esm/hooks/features/rows/useGridParamsApi.d.ts +0 -14
- package/esm/hooks/features/rows/useGridParamsApi.js +0 -117
- package/esm/hooks/features/rows/useGridParamsOverridableMethods.d.ts +0 -7
- package/esm/hooks/features/rows/useGridParamsOverridableMethods.js +0 -28
- package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +0 -2
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +0 -19
- package/esm/hooks/features/rows/useGridRowSpanning.d.ts +0 -17
- package/esm/hooks/features/rows/useGridRowSpanning.js +0 -208
- package/esm/hooks/features/rows/useGridRows.d.ts +0 -7
- package/esm/hooks/features/rows/useGridRows.js +0 -482
- package/esm/hooks/features/rows/useGridRowsMeta.d.ts +0 -10
- package/esm/hooks/features/rows/useGridRowsMeta.js +0 -60
- package/esm/hooks/features/rows/useGridRowsOverridableMethods.d.ts +0 -7
- package/esm/hooks/features/rows/useGridRowsOverridableMethods.js +0 -93
- package/esm/hooks/features/rows/useGridRowsPreProcessors.d.ts +0 -3
- package/esm/hooks/features/rows/useGridRowsPreProcessors.js +0 -81
- package/esm/hooks/features/scroll/useGridScroll.d.ts +0 -12
- package/esm/hooks/features/scroll/useGridScroll.js +0 -132
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +0 -42
- package/esm/hooks/features/sorting/gridSortingSelector.js +0 -70
- package/esm/hooks/features/sorting/gridSortingState.d.ts +0 -14
- package/esm/hooks/features/sorting/gridSortingUtils.d.ts +0 -18
- package/esm/hooks/features/sorting/gridSortingUtils.js +0 -140
- package/esm/hooks/features/sorting/index.d.ts +0 -4
- package/esm/hooks/features/sorting/index.js +0 -2
- package/esm/hooks/features/sorting/useGridSorting.d.ts +0 -10
- package/esm/hooks/features/sorting/useGridSorting.js +0 -252
- package/esm/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +0 -40
- package/esm/hooks/features/statePersistence/index.d.ts +0 -1
- package/esm/hooks/features/statePersistence/useGridStatePersistence.d.ts +0 -3
- package/esm/hooks/features/statePersistence/useGridStatePersistence.js +0 -23
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +0 -8
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +0 -32
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +0 -46
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -45
- package/esm/hooks/features/virtualization/index.d.ts +0 -3
- package/esm/hooks/features/virtualization/index.js +0 -3
- package/esm/hooks/features/virtualization/useGridVirtualization.d.ts +0 -10
- package/esm/hooks/features/virtualization/useGridVirtualization.js +0 -101
- package/esm/hooks/index.d.ts +0 -3
- package/esm/hooks/index.js +0 -3
- package/esm/hooks/utils/index.d.ts +0 -10
- package/esm/hooks/utils/index.js +0 -9
- package/esm/hooks/utils/useGridApiContext.d.ts +0 -4
- package/esm/hooks/utils/useGridApiContext.js +0 -11
- package/esm/hooks/utils/useGridApiMethod.d.ts +0 -7
- package/esm/hooks/utils/useGridApiRef.d.ts +0 -6
- package/esm/hooks/utils/useGridAriaAttributes.js +0 -28
- package/esm/hooks/utils/useGridConfiguration.d.ts +0 -4
- package/esm/hooks/utils/useGridConfiguration.js +0 -11
- package/esm/hooks/utils/useGridEvent.d.ts +0 -12
- package/esm/hooks/utils/useGridEvent.js +0 -94
- package/esm/hooks/utils/useGridInitializeState.d.ts +0 -8
- package/esm/hooks/utils/useGridLogger.d.ts +0 -4
- package/esm/hooks/utils/useGridNativeEventListener.d.ts +0 -3
- package/esm/hooks/utils/useGridNativeEventListener.js +0 -17
- package/esm/hooks/utils/useGridPrivateApiContext.d.ts +0 -6
- package/esm/hooks/utils/useGridPrivateApiContext.js +0 -12
- package/esm/hooks/utils/useGridRootProps.d.ts +0 -2
- package/esm/hooks/utils/useGridRootProps.js +0 -11
- package/esm/hooks/utils/useGridSelector.d.ts +0 -6
- package/esm/hooks/utils/useGridSelector.js +0 -84
- package/esm/hooks/utils/useGridVisibleRows.d.ts +0 -26
- package/esm/hooks/utils/useGridVisibleRows.js +0 -17
- package/esm/index.d.ts +0 -39
- package/esm/index.js +0 -39
- package/esm/internals/demo/index.d.ts +0 -1
- package/esm/internals/demo/index.js +0 -1
- package/esm/internals/index.d.ts +0 -128
- package/esm/internals/index.js +0 -99
- package/esm/internals/utils/attachPinnedStyle.d.ts +0 -2
- package/esm/internals/utils/attachPinnedStyle.js +0 -9
- package/esm/internals/utils/cache.d.ts +0 -9
- package/esm/internals/utils/cache.js +0 -18
- package/esm/internals/utils/getPinnedCellOffset.d.ts +0 -3
- package/esm/internals/utils/getPinnedCellOffset.js +0 -21
- package/esm/internals/utils/gridRowGroupingUtils.js +0 -9
- package/esm/internals/utils/index.d.ts +0 -5
- package/esm/internals/utils/index.js +0 -5
- package/esm/internals/utils/propValidation.d.ts +0 -4
- package/esm/internals/utils/propValidation.js +0 -12
- package/esm/locales/arSD.d.ts +0 -2
- package/esm/locales/arSD.js +0 -309
- package/esm/locales/beBY.d.ts +0 -2
- package/esm/locales/beBY.js +0 -334
- package/esm/locales/bgBG.d.ts +0 -2
- package/esm/locales/bgBG.js +0 -311
- package/esm/locales/bnBD.d.ts +0 -2
- package/esm/locales/bnBD.js +0 -309
- package/esm/locales/caES.d.ts +0 -2
- package/esm/locales/caES.js +0 -297
- package/esm/locales/csCZ.d.ts +0 -2
- package/esm/locales/csCZ.js +0 -336
- package/esm/locales/daDK.d.ts +0 -2
- package/esm/locales/daDK.js +0 -310
- package/esm/locales/deDE.d.ts +0 -2
- package/esm/locales/deDE.js +0 -300
- package/esm/locales/elGR.d.ts +0 -2
- package/esm/locales/elGR.js +0 -312
- package/esm/locales/enUS.d.ts +0 -2
- package/esm/locales/enUS.js +0 -3
- package/esm/locales/esES.d.ts +0 -2
- package/esm/locales/esES.js +0 -297
- package/esm/locales/faIR.d.ts +0 -2
- package/esm/locales/faIR.js +0 -310
- package/esm/locales/fiFI.d.ts +0 -2
- package/esm/locales/fiFI.js +0 -311
- package/esm/locales/frFR.d.ts +0 -2
- package/esm/locales/frFR.js +0 -306
- package/esm/locales/heIL.d.ts +0 -2
- package/esm/locales/heIL.js +0 -308
- package/esm/locales/hrHR.d.ts +0 -1
- package/esm/locales/hrHR.js +0 -328
- package/esm/locales/huHU.d.ts +0 -2
- package/esm/locales/huHU.js +0 -309
- package/esm/locales/hyAM.d.ts +0 -2
- package/esm/locales/hyAM.js +0 -335
- package/esm/locales/idID.d.ts +0 -4
- package/esm/locales/idID.js +0 -300
- package/esm/locales/index.d.ts +0 -40
- package/esm/locales/index.js +0 -41
- package/esm/locales/isIS.d.ts +0 -2
- package/esm/locales/isIS.js +0 -311
- package/esm/locales/itIT.d.ts +0 -2
- package/esm/locales/itIT.js +0 -298
- package/esm/locales/jaJP.d.ts +0 -2
- package/esm/locales/jaJP.js +0 -305
- package/esm/locales/koKR.d.ts +0 -2
- package/esm/locales/koKR.js +0 -300
- package/esm/locales/nbNO.d.ts +0 -2
- package/esm/locales/nbNO.js +0 -308
- package/esm/locales/nlNL.d.ts +0 -2
- package/esm/locales/nlNL.js +0 -310
- package/esm/locales/nnNO.d.ts +0 -2
- package/esm/locales/nnNO.js +0 -300
- package/esm/locales/plPL.d.ts +0 -2
- package/esm/locales/plPL.js +0 -305
- package/esm/locales/ptBR.d.ts +0 -2
- package/esm/locales/ptBR.js +0 -297
- package/esm/locales/ptPT.d.ts +0 -2
- package/esm/locales/ptPT.js +0 -297
- package/esm/locales/roRO.d.ts +0 -2
- package/esm/locales/roRO.js +0 -309
- package/esm/locales/ruRU.d.ts +0 -2
- package/esm/locales/ruRU.js +0 -331
- package/esm/locales/skSK.d.ts +0 -2
- package/esm/locales/skSK.js +0 -336
- package/esm/locales/svSE.d.ts +0 -2
- package/esm/locales/svSE.js +0 -311
- package/esm/locales/thTH.d.ts +0 -2
- package/esm/locales/thTH.js +0 -297
- package/esm/locales/trTR.d.ts +0 -2
- package/esm/locales/trTR.js +0 -309
- package/esm/locales/ukUA.d.ts +0 -2
- package/esm/locales/ukUA.js +0 -331
- package/esm/locales/urPK.d.ts +0 -2
- package/esm/locales/urPK.js +0 -311
- package/esm/locales/viVN.d.ts +0 -2
- package/esm/locales/viVN.js +0 -311
- package/esm/locales/zhCN.d.ts +0 -2
- package/esm/locales/zhCN.js +0 -306
- package/esm/locales/zhHK.d.ts +0 -1
- package/esm/locales/zhHK.js +0 -306
- package/esm/locales/zhTW.d.ts +0 -2
- package/esm/locales/zhTW.js +0 -306
- package/esm/material/icons/createSvgIcon.d.ts +0 -2
- package/esm/material/icons/index.js +0 -103
- package/esm/material/index.d.ts +0 -6
- package/esm/material/index.js +0 -851
- package/esm/material/variables.d.ts +0 -5
- package/esm/material/variables.js +0 -131
- package/esm/models/api/gridApiCommon.d.ts +0 -38
- package/esm/models/api/gridApiCommunity.d.ts +0 -12
- package/esm/models/api/gridCallbackDetails.d.ts +0 -15
- package/esm/models/api/gridColumnApi.d.ts +0 -74
- package/esm/models/api/gridColumnGroupingApi.d.ts +0 -19
- package/esm/models/api/gridColumnSpanning.d.ts +0 -28
- package/esm/models/api/gridCoreApi.d.ts +0 -96
- package/esm/models/api/gridCsvExportApi.d.ts +0 -18
- package/esm/models/api/gridDensityApi.d.ts +0 -17
- package/esm/models/api/gridEditingApi.d.ts +0 -237
- package/esm/models/api/gridFilterApi.d.ts +0 -67
- package/esm/models/api/gridFocusApi.d.ts +0 -46
- package/esm/models/api/gridHeaderFilteringApi.d.ts +0 -30
- package/esm/models/api/gridLocaleTextApi.d.ts +0 -247
- package/esm/models/api/gridLoggerApi.d.ts +0 -11
- package/esm/models/api/gridParamsApi.d.ts +0 -111
- package/esm/models/api/gridPreferencesPanelApi.d.ts +0 -17
- package/esm/models/api/gridPrintExportApi.d.ts +0 -11
- package/esm/models/api/gridRowApi.d.ts +0 -147
- package/esm/models/api/gridRowSelectionApi.d.ts +0 -92
- package/esm/models/api/gridRowsMetaApi.d.ts +0 -60
- package/esm/models/api/gridScrollApi.d.ts +0 -24
- package/esm/models/api/gridSortApi.d.ts +0 -46
- package/esm/models/api/gridStateApi.d.ts +0 -33
- package/esm/models/api/index.d.ts +0 -23
- package/esm/models/api/index.js +0 -12
- package/esm/models/colDef/gridColDef.d.ts +0 -333
- package/esm/models/colDef/gridColumnTypesRecord.d.ts +0 -3
- package/esm/models/colDef/index.d.ts +0 -3
- package/esm/models/colDef/index.js +0 -6
- package/esm/models/configuration/gridAggregationConfiguration.d.ts +0 -19
- package/esm/models/configuration/gridCellEditableConfiguration.d.ts +0 -19
- package/esm/models/configuration/gridConfiguration.d.ts +0 -21
- package/esm/models/configuration/gridParamsConfiguration.d.ts +0 -12
- package/esm/models/configuration/gridRowConfiguration.d.ts +0 -23
- package/esm/models/controlStateItem.d.ts +0 -14
- package/esm/models/events/gridEventListener.d.ts +0 -8
- package/esm/models/events/gridEventLookup.d.ts +0 -683
- package/esm/models/events/gridEventPublisher.d.ts +0 -29
- package/esm/models/events/index.d.ts +0 -3
- package/esm/models/events/index.js +0 -3
- package/esm/models/gridApiCaches.d.ts +0 -12
- package/esm/models/gridCell.d.ts +0 -30
- package/esm/models/gridCellClass.d.ts +0 -12
- package/esm/models/gridColumnGrouping.d.ts +0 -43
- package/esm/models/gridColumnHeaderClass.d.ts +0 -11
- package/esm/models/gridDataSource.d.ts +0 -83
- package/esm/models/gridEditRowModel.d.ts +0 -28
- package/esm/models/gridExport.d.ts +0 -157
- package/esm/models/gridFilterInputComponent.d.ts +0 -32
- package/esm/models/gridFilterItem.d.ts +0 -32
- package/esm/models/gridFilterModel.d.ts +0 -34
- package/esm/models/gridFilterOperator.d.ts +0 -58
- package/esm/models/gridHeaderFilteringModel.d.ts +0 -6
- package/esm/models/gridIconSlotsComponent.d.ts +0 -213
- package/esm/models/gridRowSelectionManager.d.ts +0 -9
- package/esm/models/gridRowSelectionModel.d.ts +0 -9
- package/esm/models/gridRows.d.ts +0 -180
- package/esm/models/gridSlotsComponent.d.ts +0 -235
- package/esm/models/gridSlotsComponentsProps.d.ts +0 -133
- package/esm/models/gridSortModel.d.ts +0 -35
- package/esm/models/gridStateCommunity.d.ts +0 -61
- package/esm/models/index.d.ts +0 -31
- package/esm/models/index.js +0 -29
- package/esm/models/params/gridCellParams.d.ts +0 -103
- package/esm/models/params/gridColumnGroupHeaderParams.d.ts +0 -30
- package/esm/models/params/gridColumnHeaderParams.d.ts +0 -15
- package/esm/models/params/gridColumnOrderChangeParams.d.ts +0 -18
- package/esm/models/params/gridColumnResizeParams.d.ts +0 -18
- package/esm/models/params/gridEditCellParams.d.ts +0 -65
- package/esm/models/params/gridPreferencePanelParams.d.ts +0 -2
- package/esm/models/params/gridRowParams.d.ts +0 -109
- package/esm/models/params/gridRowSelectionCheckboxParams.d.ts +0 -5
- package/esm/models/params/gridValueOptionsParams.d.ts +0 -18
- package/esm/models/params/index.d.ts +0 -13
- package/esm/models/params/index.js +0 -13
- package/esm/models/props/DataGridProps.d.ts +0 -906
- package/esm/package.json +0 -1
- package/esm/themeAugmentation/index.d.ts +0 -2
- package/esm/themeAugmentation/index.js +0 -4
- package/esm/themeAugmentation/overrides.d.ts +0 -18
- package/esm/themeAugmentation/props.d.ts +0 -15
- package/esm/utils/assert.js +0 -3
- package/esm/utils/cellBorderUtils.d.ts +0 -4
- package/esm/utils/cellBorderUtils.js +0 -24
- package/esm/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.d.ts +0 -7
- package/esm/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +0 -9
- package/esm/utils/composeGridClasses.d.ts +0 -3
- package/esm/utils/composeGridClasses.js +0 -5
- package/esm/utils/css/context.js +0 -60
- package/esm/utils/domUtils.d.ts +0 -30
- package/esm/utils/domUtils.js +0 -208
- package/esm/utils/exportAs.d.ts +0 -12
- package/esm/utils/exportAs.js +0 -38
- package/esm/utils/getGridLocalization.d.ts +0 -11
- package/esm/utils/getGridLocalization.js +0 -9
- package/esm/utils/getPublicApiRef.d.ts +0 -3
- package/esm/utils/index.d.ts +0 -2
- package/esm/utils/index.js +0 -1
- package/esm/utils/rtlFlipSide.d.ts +0 -2
- package/esm/utils/rtlFlipSide.js +0 -22
- /package/{esm/components/GridApiContext.d.ts → components/GridApiContext.d.mts} +0 -0
- /package/{esm/components/GridApiContext.js → components/GridApiContext.mjs} +0 -0
- /package/{esm/components/GridConfigurationContext.d.ts → components/GridConfigurationContext.d.mts} +0 -0
- /package/{esm/components/GridConfigurationContext.js → components/GridConfigurationContext.mjs} +0 -0
- /package/{esm/components/GridDetailPanels.d.ts → components/GridDetailPanels.d.mts} +0 -0
- /package/{esm/components/GridDetailPanels.js → components/GridDetailPanels.mjs} +0 -0
- /package/{esm/components/GridHeader.d.ts → components/GridHeader.d.mts} +0 -0
- /package/{esm/components/GridHeaders.d.ts → components/GridHeaders.d.mts} +0 -0
- /package/{esm/components/GridPagination.d.ts → components/GridPagination.d.mts} +0 -0
- /package/{esm/components/GridPinnedRows.d.ts → components/GridPinnedRows.d.mts} +0 -0
- /package/{esm/components/GridPinnedRows.js → components/GridPinnedRows.mjs} +0 -0
- /package/{esm/components/GridRowCount.d.ts → components/GridRowCount.d.mts} +0 -0
- /package/{esm/components/GridScrollShadows.d.ts → components/GridScrollShadows.d.mts} +0 -0
- /package/{esm/components/GridScrollbarFillerCell.d.ts → components/GridScrollbarFillerCell.d.mts} +0 -0
- /package/{esm/components/GridSelectedRowCount.d.ts → components/GridSelectedRowCount.d.mts} +0 -0
- /package/{esm/components/GridShadowScrollArea.d.ts → components/GridShadowScrollArea.d.mts} +0 -0
- /package/{esm/components/GridShadowScrollArea.js → components/GridShadowScrollArea.mjs} +0 -0
- /package/{esm/components/base/GridFooterPlaceholder.d.ts → components/base/GridFooterPlaceholder.d.mts} +0 -0
- /package/{esm/components/columnHeaders/GridBaseColumnHeaders.d.ts → components/columnHeaders/GridBaseColumnHeaders.d.mts} +0 -0
- /package/{esm/components/columnHeaders/GridColumnHeaderSeparator.d.ts → components/columnHeaders/GridColumnHeaderSeparator.d.mts} +0 -0
- /package/{esm/components/columnHeaders/GridColumnHeaderTitle.d.ts → components/columnHeaders/GridColumnHeaderTitle.d.mts} +0 -0
- /package/{esm/components/columnHeaders/GridIconButtonContainer.d.ts → components/columnHeaders/GridIconButtonContainer.d.mts} +0 -0
- /package/{esm/components/columnsManagement/utils.js → components/columnsManagement/utils.mjs} +0 -0
- /package/{esm/components/containers/GridFooterContainer.d.ts → components/containers/GridFooterContainer.d.mts} +0 -0
- /package/{esm/components/containers/GridOverlay.d.ts → components/containers/GridOverlay.d.mts} +0 -0
- /package/{esm/components/containers/GridRoot.d.ts → components/containers/GridRoot.d.mts} +0 -0
- /package/{esm/components/containers/GridToolbarContainer.d.ts → components/containers/GridToolbarContainer.d.mts} +0 -0
- /package/{esm/components/menu/columnMenu/GridColumnMenuItemProps.js → components/menu/columnMenu/GridColumnMenuItemProps.mjs} +0 -0
- /package/{esm/components/menu/columnMenu/GridColumnMenuProps.js → components/menu/columnMenu/GridColumnMenuProps.mjs} +0 -0
- /package/{esm/components/panel/GridPanelContent.d.ts → components/panel/GridPanelContent.d.mts} +0 -0
- /package/{esm/components/panel/GridPanelContext.d.ts → components/panel/GridPanelContext.d.mts} +0 -0
- /package/{esm/components/panel/GridPanelFooter.d.ts → components/panel/GridPanelFooter.d.mts} +0 -0
- /package/{esm/components/panel/GridPanelHeader.d.ts → components/panel/GridPanelHeader.d.mts} +0 -0
- /package/{esm/components/panel/GridPanelWrapper.d.ts → components/panel/GridPanelWrapper.d.mts} +0 -0
- /package/{esm/components/panel/GridPreferencesPanel.d.ts → components/panel/GridPreferencesPanel.d.mts} +0 -0
- /package/{esm/components/panel/filterPanel/filterPanelUtils.js → components/panel/filterPanel/filterPanelUtils.mjs} +0 -0
- /package/{esm/components/quickFilter/QuickFilterContext.d.ts → components/quickFilter/QuickFilterContext.d.mts} +0 -0
- /package/{esm/components/toolbarV8/Toolbar.d.ts → components/toolbarV8/Toolbar.d.mts} +0 -0
- /package/{esm/components/toolbarV8/ToolbarContext.d.ts → components/toolbarV8/ToolbarContext.d.mts} +0 -0
- /package/{esm/components/toolbarV8/utils.d.ts → components/toolbarV8/utils.d.mts} +0 -0
- /package/{esm/components/toolbarV8/utils.js → components/toolbarV8/utils.mjs} +0 -0
- /package/{esm/components/virtualization/GridBottomContainer.d.ts → components/virtualization/GridBottomContainer.d.mts} +0 -0
- /package/{esm/components/virtualization/GridTopContainer.d.ts → components/virtualization/GridTopContainer.d.mts} +0 -0
- /package/{esm/components/virtualization/GridVirtualScrollbar.d.ts → components/virtualization/GridVirtualScrollbar.d.mts} +0 -0
- /package/{esm/components/virtualization/GridVirtualScroller.d.ts → components/virtualization/GridVirtualScroller.d.mts} +0 -0
- /package/{esm/components/virtualization/GridVirtualScrollerContent.d.ts → components/virtualization/GridVirtualScrollerContent.d.mts} +0 -0
- /package/{esm/components/virtualization/GridVirtualScrollerFiller.d.ts → components/virtualization/GridVirtualScrollerFiller.d.mts} +0 -0
- /package/{esm/components/virtualization/GridVirtualScrollerRenderZone.d.ts → components/virtualization/GridVirtualScrollerRenderZone.d.mts} +0 -0
- /package/{esm/constants/cssVariables.d.ts → constants/cssVariables.d.mts} +0 -0
- /package/{esm/constants/cssVariables.js → constants/cssVariables.mjs} +0 -0
- /package/{esm/constants/envConstants.d.ts → constants/envConstants.d.mts} +0 -0
- /package/{esm/constants/envConstants.js → constants/envConstants.mjs} +0 -0
- /package/{esm/constants/gridClasses.d.ts → constants/gridClasses.d.mts} +0 -0
- /package/{esm/constants/signature.d.ts → constants/signature.d.mts} +0 -0
- /package/{esm/constants/signature.js → constants/signature.mjs} +0 -0
- /package/{esm/context/GridRootPropsContext.d.ts → context/GridRootPropsContext.d.mts} +0 -0
- /package/{esm/context/GridRootPropsContext.js → context/GridRootPropsContext.mjs} +0 -0
- /package/{esm/hooks/core/pipeProcessing/gridPipeProcessingApi.js → hooks/core/pipeProcessing/gridPipeProcessingApi.mjs} +0 -0
- /package/{esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.js → hooks/core/strategyProcessing/gridStrategyProcessingApi.mjs} +0 -0
- /package/{esm/hooks/core/useGridIsRtl.js → hooks/core/useGridIsRtl.mjs} +0 -0
- /package/{esm/hooks/core/useGridProps.js → hooks/core/useGridProps.mjs} +0 -0
- /package/{esm/hooks/core/useGridRefs.js → hooks/core/useGridRefs.mjs} +0 -0
- /package/{esm/hooks/core/useGridVirtualizer.d.ts → hooks/core/useGridVirtualizer.d.mts} +0 -0
- /package/{esm/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js → hooks/features/columnGrouping/gridColumnGroupsInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/columnMenu/columnMenuInterfaces.d.ts → hooks/features/columnMenu/columnMenuInterfaces.d.mts} +0 -0
- /package/{esm/hooks/features/columnMenu/columnMenuInterfaces.js → hooks/features/columnMenu/columnMenuInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/columnMenu/getColumnMenuItemKeys.js → hooks/features/columnMenu/getColumnMenuItemKeys.mjs} +0 -0
- /package/{esm/hooks/features/columnResize/columnResizeState.d.ts → hooks/features/columnResize/columnResizeState.d.mts} +0 -0
- /package/{esm/hooks/features/columnResize/columnResizeState.js → hooks/features/columnResize/columnResizeState.mjs} +0 -0
- /package/{esm/hooks/features/columnResize/gridColumnResizeApi.js → hooks/features/columnResize/gridColumnResizeApi.mjs} +0 -0
- /package/{esm/hooks/features/columns/gridColumnsInterfaces.js → hooks/features/columns/gridColumnsInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/cache.js → hooks/features/dataSource/cache.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/gridDataSourceError.js → hooks/features/dataSource/gridDataSourceError.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/models.js → hooks/features/dataSource/models.mjs} +0 -0
- /package/{esm/hooks/features/dataSource/utils.js → hooks/features/dataSource/utils.mjs} +0 -0
- /package/{esm/hooks/features/density/densityState.js → hooks/features/density/densityState.mjs} +0 -0
- /package/{esm/hooks/features/dimensions/gridDimensionsApi.d.ts → hooks/features/dimensions/gridDimensionsApi.d.mts} +0 -0
- /package/{esm/hooks/features/dimensions/gridDimensionsApi.js → hooks/features/dimensions/gridDimensionsApi.mjs} +0 -0
- /package/{esm/hooks/features/editing/utils.js → hooks/features/editing/utils.mjs} +0 -0
- /package/{esm/hooks/features/focus/gridFocusState.js → hooks/features/focus/gridFocusState.mjs} +0 -0
- /package/{esm/hooks/features/overlays/gridOverlaysInterfaces.js → hooks/features/overlays/gridOverlaysInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/overlays/index.js → hooks/features/overlays/index.mjs} +0 -0
- /package/{esm/hooks/features/pagination/gridPaginationInterfaces.js → hooks/features/pagination/gridPaginationInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/pivoting/gridPivotingInterfaces.js → hooks/features/pivoting/gridPivotingInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/preferencesPanel/gridPreferencePanelState.js → hooks/features/preferencesPanel/gridPreferencePanelState.mjs} +0 -0
- /package/{esm/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.ts → hooks/features/preferencesPanel/gridPreferencePanelsValue.d.mts} +0 -0
- /package/{esm/hooks/features/preferencesPanel/gridPreferencePanelsValue.js → hooks/features/preferencesPanel/gridPreferencePanelsValue.mjs} +0 -0
- /package/{esm/hooks/features/rowReorder/gridRowReorderInterfaces.js → hooks/features/rowReorder/gridRowReorderInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/rows/gridRowsInterfaces.js → hooks/features/rows/gridRowsInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/rows/gridRowsMetaInterfaces.js → hooks/features/rows/gridRowsMetaInterfaces.mjs} +0 -0
- /package/{esm/hooks/features/rows/gridRowsMetaState.d.ts → hooks/features/rows/gridRowsMetaState.d.mts} +0 -0
- /package/{esm/hooks/features/rows/gridRowsMetaState.js → hooks/features/rows/gridRowsMetaState.mjs} +0 -0
- /package/{esm/hooks/features/sorting/gridSortingState.js → hooks/features/sorting/gridSortingState.mjs} +0 -0
- /package/{esm/hooks/features/statePersistence/gridStatePersistenceInterface.js → hooks/features/statePersistence/gridStatePersistenceInterface.mjs} +0 -0
- /package/{esm/hooks/features/statePersistence/index.js → hooks/features/statePersistence/index.mjs} +0 -0
- /package/{esm/hooks/utils/useFirstRender.d.ts → hooks/utils/useFirstRender.d.mts} +0 -0
- /package/{esm/hooks/utils/useFirstRender.js → hooks/utils/useFirstRender.mjs} +0 -0
- /package/{esm/hooks/utils/useGridApiMethod.js → hooks/utils/useGridApiMethod.mjs} +0 -0
- /package/{esm/hooks/utils/useGridApiRef.js → hooks/utils/useGridApiRef.mjs} +0 -0
- /package/{esm/hooks/utils/useGridAriaAttributes.d.ts → hooks/utils/useGridAriaAttributes.d.mts} +0 -0
- /package/{esm/hooks/utils/useGridInitializeState.js → hooks/utils/useGridInitializeState.mjs} +0 -0
- /package/{esm/hooks/utils/useGridLogger.js → hooks/utils/useGridLogger.mjs} +0 -0
- /package/{esm/hooks/utils/useIsSSR.d.ts → hooks/utils/useIsSSR.d.mts} +0 -0
- /package/{esm/hooks/utils/useIsSSR.js → hooks/utils/useIsSSR.mjs} +0 -0
- /package/{esm/hooks/utils/useLazyRef.d.ts → hooks/utils/useLazyRef.d.mts} +0 -0
- /package/{esm/hooks/utils/useLazyRef.js → hooks/utils/useLazyRef.mjs} +0 -0
- /package/{esm/hooks/utils/useOnMount.d.ts → hooks/utils/useOnMount.d.mts} +0 -0
- /package/{esm/hooks/utils/useOnMount.js → hooks/utils/useOnMount.mjs} +0 -0
- /package/{esm/hooks/utils/useRunOncePerLoop.d.ts → hooks/utils/useRunOncePerLoop.d.mts} +0 -0
- /package/{esm/hooks/utils/useRunOncePerLoop.js → hooks/utils/useRunOncePerLoop.mjs} +0 -0
- /package/{esm/hooks/utils/useTimeout.d.ts → hooks/utils/useTimeout.d.mts} +0 -0
- /package/{esm/hooks/utils/useTimeout.js → hooks/utils/useTimeout.mjs} +0 -0
- /package/{esm/internals/constants.d.ts → internals/constants.d.mts} +0 -0
- /package/{esm/internals/constants.js → internals/constants.mjs} +0 -0
- /package/{esm/internals/demo/TailwindDemoContainer.d.ts → internals/demo/TailwindDemoContainer.d.mts} +0 -0
- /package/{esm/internals/demo/TailwindDemoContainer.js → internals/demo/TailwindDemoContainer.mjs} +0 -0
- /package/{esm/internals/utils/computeSlots.d.ts → internals/utils/computeSlots.d.mts} +0 -0
- /package/{esm/internals/utils/computeSlots.js → internals/utils/computeSlots.mjs} +0 -0
- /package/{esm/internals/utils/gridRowGroupingUtils.d.ts → internals/utils/gridRowGroupingUtils.d.mts} +0 -0
- /package/{esm/material/augmentation.d.ts → material/augmentation.d.mts} +0 -0
- /package/{esm/material/augmentation.js → material/augmentation.mjs} +0 -0
- /package/{esm/material/icons/createSvgIcon.js → material/icons/createSvgIcon.mjs} +0 -0
- /package/{esm/material/icons/index.d.ts → material/icons/index.d.mts} +0 -0
- /package/{esm/models/api/gridApiCommon.js → models/api/gridApiCommon.mjs} +0 -0
- /package/{esm/models/api/gridApiCommunity.js → models/api/gridApiCommunity.mjs} +0 -0
- /package/{esm/models/api/gridCallbackDetails.js → models/api/gridCallbackDetails.mjs} +0 -0
- /package/{esm/models/api/gridColumnApi.js → models/api/gridColumnApi.mjs} +0 -0
- /package/{esm/models/api/gridColumnGroupingApi.js → models/api/gridColumnGroupingApi.mjs} +0 -0
- /package/{esm/models/api/gridColumnMenuApi.d.ts → models/api/gridColumnMenuApi.d.mts} +0 -0
- /package/{esm/models/api/gridColumnMenuApi.js → models/api/gridColumnMenuApi.mjs} +0 -0
- /package/{esm/models/api/gridColumnSpanning.js → models/api/gridColumnSpanning.mjs} +0 -0
- /package/{esm/models/api/gridCoreApi.js → models/api/gridCoreApi.mjs} +0 -0
- /package/{esm/models/api/gridCsvExportApi.js → models/api/gridCsvExportApi.mjs} +0 -0
- /package/{esm/models/api/gridDensityApi.js → models/api/gridDensityApi.mjs} +0 -0
- /package/{esm/models/api/gridEditingApi.js → models/api/gridEditingApi.mjs} +0 -0
- /package/{esm/models/api/gridFilterApi.js → models/api/gridFilterApi.mjs} +0 -0
- /package/{esm/models/api/gridFocusApi.js → models/api/gridFocusApi.mjs} +0 -0
- /package/{esm/models/api/gridHeaderFilteringApi.js → models/api/gridHeaderFilteringApi.mjs} +0 -0
- /package/{esm/models/api/gridInfiniteLoaderApi.d.ts → models/api/gridInfiniteLoaderApi.d.mts} +0 -0
- /package/{esm/models/api/gridInfiniteLoaderApi.js → models/api/gridInfiniteLoaderApi.mjs} +0 -0
- /package/{esm/models/api/gridLocaleTextApi.js → models/api/gridLocaleTextApi.mjs} +0 -0
- /package/{esm/models/api/gridLoggerApi.js → models/api/gridLoggerApi.mjs} +0 -0
- /package/{esm/models/api/gridParamsApi.js → models/api/gridParamsApi.mjs} +0 -0
- /package/{esm/models/api/gridPreferencesPanelApi.js → models/api/gridPreferencesPanelApi.mjs} +0 -0
- /package/{esm/models/api/gridPrintExportApi.js → models/api/gridPrintExportApi.mjs} +0 -0
- /package/{esm/models/api/gridRowApi.js → models/api/gridRowApi.mjs} +0 -0
- /package/{esm/models/api/gridRowSelectionApi.js → models/api/gridRowSelectionApi.mjs} +0 -0
- /package/{esm/models/api/gridRowsMetaApi.js → models/api/gridRowsMetaApi.mjs} +0 -0
- /package/{esm/models/api/gridScrollApi.js → models/api/gridScrollApi.mjs} +0 -0
- /package/{esm/models/api/gridSortApi.js → models/api/gridSortApi.mjs} +0 -0
- /package/{esm/models/api/gridStateApi.js → models/api/gridStateApi.mjs} +0 -0
- /package/{esm/models/api/gridVirtualizationApi.d.ts → models/api/gridVirtualizationApi.d.mts} +0 -0
- /package/{esm/models/api/gridVirtualizationApi.js → models/api/gridVirtualizationApi.mjs} +0 -0
- /package/{esm/models/colDef/gridColDef.js → models/colDef/gridColDef.mjs} +0 -0
- /package/{esm/models/colDef/gridColType.d.ts → models/colDef/gridColType.d.mts} +0 -0
- /package/{esm/models/colDef/gridColType.js → models/colDef/gridColType.mjs} +0 -0
- /package/{esm/models/colDef/gridColumnTypesRecord.js → models/colDef/gridColumnTypesRecord.mjs} +0 -0
- /package/{esm/models/configuration/gridAggregationConfiguration.js → models/configuration/gridAggregationConfiguration.mjs} +0 -0
- /package/{esm/models/configuration/gridCellEditableConfiguration.js → models/configuration/gridCellEditableConfiguration.mjs} +0 -0
- /package/{esm/models/configuration/gridConfiguration.js → models/configuration/gridConfiguration.mjs} +0 -0
- /package/{esm/models/configuration/gridParamsConfiguration.js → models/configuration/gridParamsConfiguration.mjs} +0 -0
- /package/{esm/models/configuration/gridRowConfiguration.js → models/configuration/gridRowConfiguration.mjs} +0 -0
- /package/{esm/models/controlStateItem.js → models/controlStateItem.mjs} +0 -0
- /package/{esm/models/cursorCoordinates.d.ts → models/cursorCoordinates.d.mts} +0 -0
- /package/{esm/models/cursorCoordinates.js → models/cursorCoordinates.mjs} +0 -0
- /package/{esm/models/elementSize.d.ts → models/elementSize.d.mts} +0 -0
- /package/{esm/models/elementSize.js → models/elementSize.mjs} +0 -0
- /package/{esm/models/events/gridEventListener.js → models/events/gridEventListener.mjs} +0 -0
- /package/{esm/models/events/gridEventLookup.js → models/events/gridEventLookup.mjs} +0 -0
- /package/{esm/models/events/gridEventPublisher.js → models/events/gridEventPublisher.mjs} +0 -0
- /package/{esm/models/gridAggregation.d.ts → models/gridAggregation.d.mts} +0 -0
- /package/{esm/models/gridAggregation.js → models/gridAggregation.mjs} +0 -0
- /package/{esm/models/gridApiCaches.js → models/gridApiCaches.mjs} +0 -0
- /package/{esm/models/gridBaseSlots.d.ts → models/gridBaseSlots.d.mts} +0 -0
- /package/{esm/models/gridBaseSlots.js → models/gridBaseSlots.mjs} +0 -0
- /package/{esm/models/gridCell.js → models/gridCell.mjs} +0 -0
- /package/{esm/models/gridCellClass.js → models/gridCellClass.mjs} +0 -0
- /package/{esm/models/gridColumnGrouping.js → models/gridColumnGrouping.mjs} +0 -0
- /package/{esm/models/gridColumnHeaderClass.js → models/gridColumnHeaderClass.mjs} +0 -0
- /package/{esm/models/gridColumnSpanning.d.ts → models/gridColumnSpanning.d.mts} +0 -0
- /package/{esm/models/gridColumnSpanning.js → models/gridColumnSpanning.mjs} +0 -0
- /package/{esm/models/gridDataSource.js → models/gridDataSource.mjs} +0 -0
- /package/{esm/models/gridDensity.d.ts → models/gridDensity.d.mts} +0 -0
- /package/{esm/models/gridDensity.js → models/gridDensity.mjs} +0 -0
- /package/{esm/models/gridEditRowModel.js → models/gridEditRowModel.mjs} +0 -0
- /package/{esm/models/gridExport.js → models/gridExport.mjs} +0 -0
- /package/{esm/models/gridFeatureMode.d.ts → models/gridFeatureMode.d.mts} +0 -0
- /package/{esm/models/gridFeatureMode.js → models/gridFeatureMode.mjs} +0 -0
- /package/{esm/models/gridFilterInputComponent.js → models/gridFilterInputComponent.mjs} +0 -0
- /package/{esm/models/gridFilterItem.js → models/gridFilterItem.mjs} +0 -0
- /package/{esm/models/gridFilterModel.js → models/gridFilterModel.mjs} +0 -0
- /package/{esm/models/gridFilterOperator.js → models/gridFilterOperator.mjs} +0 -0
- /package/{esm/models/gridHeaderFilteringModel.js → models/gridHeaderFilteringModel.mjs} +0 -0
- /package/{esm/models/gridIconSlotsComponent.js → models/gridIconSlotsComponent.mjs} +0 -0
- /package/{esm/models/gridPaginationProps.d.ts → models/gridPaginationProps.d.mts} +0 -0
- /package/{esm/models/gridPaginationProps.js → models/gridPaginationProps.mjs} +0 -0
- /package/{esm/models/gridRenderContextProps.d.ts → models/gridRenderContextProps.d.mts} +0 -0
- /package/{esm/models/gridRenderContextProps.js → models/gridRenderContextProps.mjs} +0 -0
- /package/{esm/models/gridRowSelectionManager.js → models/gridRowSelectionManager.mjs} +0 -0
- /package/{esm/models/gridRowSelectionModel.js → models/gridRowSelectionModel.mjs} +0 -0
- /package/{esm/models/gridRows.js → models/gridRows.mjs} +0 -0
- /package/{esm/models/gridSlotsComponent.js → models/gridSlotsComponent.mjs} +0 -0
- /package/{esm/models/gridSlotsComponentsProps.js → models/gridSlotsComponentsProps.mjs} +0 -0
- /package/{esm/models/gridSortModel.js → models/gridSortModel.mjs} +0 -0
- /package/{esm/models/gridStateCommunity.js → models/gridStateCommunity.mjs} +0 -0
- /package/{esm/models/logger.d.ts → models/logger.d.mts} +0 -0
- /package/{esm/models/logger.js → models/logger.mjs} +0 -0
- /package/{esm/models/params/gridCellParams.js → models/params/gridCellParams.mjs} +0 -0
- /package/{esm/models/params/gridColumnGroupHeaderParams.js → models/params/gridColumnGroupHeaderParams.mjs} +0 -0
- /package/{esm/models/params/gridColumnHeaderParams.js → models/params/gridColumnHeaderParams.mjs} +0 -0
- /package/{esm/models/params/gridColumnOrderChangeParams.js → models/params/gridColumnOrderChangeParams.mjs} +0 -0
- /package/{esm/models/params/gridColumnResizeParams.js → models/params/gridColumnResizeParams.mjs} +0 -0
- /package/{esm/models/params/gridEditCellParams.js → models/params/gridEditCellParams.mjs} +0 -0
- /package/{esm/models/params/gridHeaderSelectionCheckboxParams.d.ts → models/params/gridHeaderSelectionCheckboxParams.d.mts} +0 -0
- /package/{esm/models/params/gridHeaderSelectionCheckboxParams.js → models/params/gridHeaderSelectionCheckboxParams.mjs} +0 -0
- /package/{esm/models/params/gridMenuParams.d.ts → models/params/gridMenuParams.d.mts} +0 -0
- /package/{esm/models/params/gridMenuParams.js → models/params/gridMenuParams.mjs} +0 -0
- /package/{esm/models/params/gridPreferencePanelParams.js → models/params/gridPreferencePanelParams.mjs} +0 -0
- /package/{esm/models/params/gridRowParams.js → models/params/gridRowParams.mjs} +0 -0
- /package/{esm/models/params/gridRowSelectionCheckboxParams.js → models/params/gridRowSelectionCheckboxParams.mjs} +0 -0
- /package/{esm/models/params/gridScrollParams.d.ts → models/params/gridScrollParams.d.mts} +0 -0
- /package/{esm/models/params/gridScrollParams.js → models/params/gridScrollParams.mjs} +0 -0
- /package/{esm/models/params/gridValueOptionsParams.js → models/params/gridValueOptionsParams.mjs} +0 -0
- /package/{esm/models/props/DataGridProps.js → models/props/DataGridProps.mjs} +0 -0
- /package/{esm/themeAugmentation/overrides.js → themeAugmentation/overrides.mjs} +0 -0
- /package/{esm/themeAugmentation/props.js → themeAugmentation/props.mjs} +0 -0
- /package/{esm/utils/ResizeObserver.d.ts → utils/ResizeObserver.d.mts} +0 -0
- /package/{esm/utils/ResizeObserver.js → utils/ResizeObserver.mjs} +0 -0
- /package/{esm/utils/assert.d.ts → utils/assert.d.mts} +0 -0
- /package/{esm/utils/cleanupTracking/CleanupTracking.d.ts → utils/cleanupTracking/CleanupTracking.d.mts} +0 -0
- /package/{esm/utils/cleanupTracking/CleanupTracking.js → utils/cleanupTracking/CleanupTracking.mjs} +0 -0
- /package/{esm/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js → utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.mjs} +0 -0
- /package/{esm/utils/cleanupTracking/TimerBasedCleanupTracking.js → utils/cleanupTracking/TimerBasedCleanupTracking.mjs} +0 -0
- /package/{esm/utils/createControllablePromise.d.ts → utils/createControllablePromise.d.mts} +0 -0
- /package/{esm/utils/createControllablePromise.js → utils/createControllablePromise.mjs} +0 -0
- /package/{esm/utils/createSelector.d.ts → utils/createSelector.d.mts} +0 -0
- /package/{esm/utils/createSelector.js → utils/createSelector.mjs} +0 -0
- /package/{esm/utils/css/context.d.ts → utils/css/context.d.mts} +0 -0
- /package/{esm/utils/doesSupportPreventScroll.d.ts → utils/doesSupportPreventScroll.d.mts} +0 -0
- /package/{esm/utils/doesSupportPreventScroll.js → utils/doesSupportPreventScroll.mjs} +0 -0
- /package/{esm/utils/getPublicApiRef.js → utils/getPublicApiRef.mjs} +0 -0
- /package/{esm/utils/isJSDOM.d.ts → utils/isJSDOM.d.mts} +0 -0
- /package/{esm/utils/isJSDOM.js → utils/isJSDOM.mjs} +0 -0
- /package/{esm/utils/keyboardUtils.d.ts → utils/keyboardUtils.d.mts} +0 -0
- /package/{esm/utils/keyboardUtils.js → utils/keyboardUtils.mjs} +0 -0
- /package/{esm/utils/roundToDecimalPlaces.d.ts → utils/roundToDecimalPlaces.d.mts} +0 -0
- /package/{esm/utils/roundToDecimalPlaces.js → utils/roundToDecimalPlaces.mjs} +0 -0
- /package/{esm/utils/utils.d.ts → utils/utils.d.mts} +0 -0
- /package/{esm/utils/utils.js → utils/utils.mjs} +0 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
import _toPropertyKey from "@babel/runtime/helpers/esm/toPropertyKey";
|
|
5
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
6
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
7
|
+
const _excluded = ["id", "field"],
|
|
8
|
+
_excluded2 = ["id", "field"];
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
11
|
+
import useEventCallback from '@mui/utils/useEventCallback';
|
|
12
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
13
|
+
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
14
|
+
import { useGridEvent, useGridEventPriority } from "../../utils/useGridEvent.mjs";
|
|
15
|
+
import { GridEditModes, GridCellModes } from "../../../models/gridEditRowModel.mjs";
|
|
16
|
+
import { useGridApiMethod } from "../../utils/useGridApiMethod.mjs";
|
|
17
|
+
import { gridEditRowsStateSelector } from "./gridEditingSelectors.mjs";
|
|
18
|
+
import { isPrintableKey, isPasteShortcut } from "../../../utils/keyboardUtils.mjs";
|
|
19
|
+
import { gridRowsLookupSelector } from "../rows/gridRowsSelector.mjs";
|
|
20
|
+
import { deepClone } from "../../../utils/utils.mjs";
|
|
21
|
+
import { GridCellEditStartReasons, GridCellEditStopReasons } from "../../../models/params/gridEditCellParams.mjs";
|
|
22
|
+
import { getDefaultCellValue } from "./utils.mjs";
|
|
23
|
+
export const useGridCellEditing = (apiRef, props) => {
|
|
24
|
+
const [cellModesModel, setCellModesModel] = React.useState({});
|
|
25
|
+
const cellModesModelRef = React.useRef(cellModesModel);
|
|
26
|
+
const prevCellModesModel = React.useRef({});
|
|
27
|
+
const {
|
|
28
|
+
processRowUpdate,
|
|
29
|
+
onProcessRowUpdateError,
|
|
30
|
+
cellModesModel: cellModesModelProp,
|
|
31
|
+
onCellModesModelChange
|
|
32
|
+
} = props;
|
|
33
|
+
const runIfEditModeIsCell = callback => (...args) => {
|
|
34
|
+
if (props.editMode === GridEditModes.Cell) {
|
|
35
|
+
callback(...args);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const throwIfNotEditable = React.useCallback((id, field) => {
|
|
39
|
+
const params = apiRef.current.getCellParams(id, field);
|
|
40
|
+
if (!apiRef.current.isCellEditable(params)) {
|
|
41
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: The cell with id=${id} and field=${field} is not editable. ` + 'Cell editing requires the cell to be marked as editable. ' + 'Check the column definition and ensure editable is set to true, or verify the isCellEditable callback.' : _formatErrorMessage(77, id, field));
|
|
42
|
+
}
|
|
43
|
+
}, [apiRef]);
|
|
44
|
+
const throwIfNotInMode = React.useCallback((id, field, mode) => {
|
|
45
|
+
if (apiRef.current.getCellMode(id, field) !== mode) {
|
|
46
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: The cell with id=${id} and field=${field} is not in ${mode} mode. ` + 'The operation requires the cell to be in a specific editing mode. ' + `Ensure the cell is in ${mode} mode before performing this operation.` : _formatErrorMessage(78, id, field, mode, mode));
|
|
47
|
+
}
|
|
48
|
+
}, [apiRef]);
|
|
49
|
+
const handleCellDoubleClick = React.useCallback((params, event) => {
|
|
50
|
+
if (!params.isEditable) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (params.cellMode === GridCellModes.Edit) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const newParams = _extends({}, params, {
|
|
57
|
+
reason: GridCellEditStartReasons.cellDoubleClick
|
|
58
|
+
});
|
|
59
|
+
apiRef.current.publishEvent('cellEditStart', newParams, event);
|
|
60
|
+
}, [apiRef]);
|
|
61
|
+
const handleCellFocusOut = React.useCallback((params, event) => {
|
|
62
|
+
if (params.cellMode === GridCellModes.View) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.View) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const newParams = _extends({}, params, {
|
|
69
|
+
reason: GridCellEditStopReasons.cellFocusOut
|
|
70
|
+
});
|
|
71
|
+
apiRef.current.publishEvent('cellEditStop', newParams, event);
|
|
72
|
+
}, [apiRef]);
|
|
73
|
+
const handleCellKeyDown = React.useCallback((params, event) => {
|
|
74
|
+
if (params.cellMode === GridCellModes.Edit) {
|
|
75
|
+
// Wait until IME is settled for Asian languages like Japanese and Chinese
|
|
76
|
+
// TODO: to replace at one point. See https://github.com/mui/material-ui/pull/39713#discussion_r1381678957.
|
|
77
|
+
if (event.which === 229) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let reason;
|
|
81
|
+
if (event.key === 'Escape') {
|
|
82
|
+
reason = GridCellEditStopReasons.escapeKeyDown;
|
|
83
|
+
} else if (event.key === 'Enter') {
|
|
84
|
+
reason = GridCellEditStopReasons.enterKeyDown;
|
|
85
|
+
} else if (event.key === 'Tab') {
|
|
86
|
+
reason = event.shiftKey ? GridCellEditStopReasons.shiftTabKeyDown : GridCellEditStopReasons.tabKeyDown;
|
|
87
|
+
event.preventDefault(); // Prevent going to the next element in the tab sequence
|
|
88
|
+
}
|
|
89
|
+
if (reason) {
|
|
90
|
+
const newParams = _extends({}, params, {
|
|
91
|
+
reason
|
|
92
|
+
});
|
|
93
|
+
apiRef.current.publishEvent('cellEditStop', newParams, event);
|
|
94
|
+
}
|
|
95
|
+
} else if (params.isEditable) {
|
|
96
|
+
let reason;
|
|
97
|
+
const canStartEditing = apiRef.current.unstable_applyPipeProcessors('canStartEditing', true, {
|
|
98
|
+
event,
|
|
99
|
+
cellParams: params,
|
|
100
|
+
editMode: 'cell'
|
|
101
|
+
});
|
|
102
|
+
if (!canStartEditing) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (isPrintableKey(event)) {
|
|
106
|
+
reason = GridCellEditStartReasons.printableKeyDown;
|
|
107
|
+
} else if (isPasteShortcut(event)) {
|
|
108
|
+
reason = GridCellEditStartReasons.pasteKeyDown;
|
|
109
|
+
} else if (event.key === 'Enter') {
|
|
110
|
+
reason = GridCellEditStartReasons.enterKeyDown;
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
} else if (event.key === 'Backspace' || event.key === 'Delete') {
|
|
113
|
+
reason = GridCellEditStartReasons.deleteKeyDown;
|
|
114
|
+
}
|
|
115
|
+
if (reason) {
|
|
116
|
+
const newParams = _extends({}, params, {
|
|
117
|
+
reason,
|
|
118
|
+
key: event.key
|
|
119
|
+
});
|
|
120
|
+
apiRef.current.publishEvent('cellEditStart', newParams, event);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}, [apiRef]);
|
|
124
|
+
const handleCellEditStart = React.useCallback(params => {
|
|
125
|
+
const {
|
|
126
|
+
id,
|
|
127
|
+
field,
|
|
128
|
+
reason
|
|
129
|
+
} = params;
|
|
130
|
+
const startCellEditModeParams = {
|
|
131
|
+
id,
|
|
132
|
+
field
|
|
133
|
+
};
|
|
134
|
+
if (reason === GridCellEditStartReasons.printableKeyDown || reason === GridCellEditStartReasons.deleteKeyDown || reason === GridCellEditStartReasons.pasteKeyDown) {
|
|
135
|
+
startCellEditModeParams.deleteValue = true;
|
|
136
|
+
}
|
|
137
|
+
apiRef.current.startCellEditMode(startCellEditModeParams);
|
|
138
|
+
}, [apiRef]);
|
|
139
|
+
const handleCellEditStop = React.useCallback(params => {
|
|
140
|
+
const {
|
|
141
|
+
id,
|
|
142
|
+
field,
|
|
143
|
+
reason
|
|
144
|
+
} = params;
|
|
145
|
+
apiRef.current.runPendingEditCellValueMutation(id, field);
|
|
146
|
+
let cellToFocusAfter;
|
|
147
|
+
if (reason === GridCellEditStopReasons.enterKeyDown) {
|
|
148
|
+
cellToFocusAfter = 'below';
|
|
149
|
+
} else if (reason === GridCellEditStopReasons.tabKeyDown) {
|
|
150
|
+
cellToFocusAfter = 'right';
|
|
151
|
+
} else if (reason === GridCellEditStopReasons.shiftTabKeyDown) {
|
|
152
|
+
cellToFocusAfter = 'left';
|
|
153
|
+
}
|
|
154
|
+
const ignoreModifications = reason === 'escapeKeyDown';
|
|
155
|
+
apiRef.current.stopCellEditMode({
|
|
156
|
+
id,
|
|
157
|
+
field,
|
|
158
|
+
ignoreModifications,
|
|
159
|
+
cellToFocusAfter
|
|
160
|
+
});
|
|
161
|
+
}, [apiRef]);
|
|
162
|
+
const runIfNoFieldErrors = callback => async (...args) => {
|
|
163
|
+
if (callback) {
|
|
164
|
+
const {
|
|
165
|
+
id,
|
|
166
|
+
field
|
|
167
|
+
} = args[0];
|
|
168
|
+
const editRowsState = apiRef.current.state.editRows;
|
|
169
|
+
const hasFieldErrors = editRowsState[id][field]?.error;
|
|
170
|
+
if (!hasFieldErrors) {
|
|
171
|
+
callback(...args);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
useGridEvent(apiRef, 'cellDoubleClick', runIfEditModeIsCell(handleCellDoubleClick));
|
|
176
|
+
useGridEvent(apiRef, 'cellFocusOut', runIfEditModeIsCell(handleCellFocusOut));
|
|
177
|
+
useGridEvent(apiRef, 'cellKeyDown', runIfEditModeIsCell(handleCellKeyDown));
|
|
178
|
+
useGridEvent(apiRef, 'cellEditStart', runIfEditModeIsCell(handleCellEditStart));
|
|
179
|
+
useGridEvent(apiRef, 'cellEditStop', runIfEditModeIsCell(handleCellEditStop));
|
|
180
|
+
useGridEventPriority(apiRef, 'cellEditStart', props.onCellEditStart);
|
|
181
|
+
useGridEventPriority(apiRef, 'cellEditStop', runIfNoFieldErrors(props.onCellEditStop));
|
|
182
|
+
const getCellMode = React.useCallback((id, field) => {
|
|
183
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
184
|
+
const isEditing = editingState[id] && editingState[id][field];
|
|
185
|
+
return isEditing ? GridCellModes.Edit : GridCellModes.View;
|
|
186
|
+
}, [apiRef]);
|
|
187
|
+
const updateCellModesModel = useEventCallback(newModel => {
|
|
188
|
+
const isNewModelDifferentFromProp = newModel !== props.cellModesModel;
|
|
189
|
+
if (onCellModesModelChange && isNewModelDifferentFromProp) {
|
|
190
|
+
onCellModesModelChange(newModel, {
|
|
191
|
+
api: apiRef.current
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
if (props.cellModesModel && isNewModelDifferentFromProp) {
|
|
195
|
+
return; // The prop always win
|
|
196
|
+
}
|
|
197
|
+
setCellModesModel(newModel);
|
|
198
|
+
cellModesModelRef.current = newModel;
|
|
199
|
+
apiRef.current.publishEvent('cellModesModelChange', newModel);
|
|
200
|
+
});
|
|
201
|
+
const updateFieldInCellModesModel = React.useCallback((id, field, newProps) => {
|
|
202
|
+
// We use the ref because it always contain the up-to-date value, different from the state
|
|
203
|
+
// that needs a rerender to reflect the new value
|
|
204
|
+
const newModel = _extends({}, cellModesModelRef.current);
|
|
205
|
+
if (newProps !== null) {
|
|
206
|
+
newModel[id] = _extends({}, newModel[id], {
|
|
207
|
+
[field]: _extends({}, newProps)
|
|
208
|
+
});
|
|
209
|
+
} else {
|
|
210
|
+
const _newModel$id = newModel[id],
|
|
211
|
+
otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field].map(_toPropertyKey)); // Ensure that we have a new object, not a reference
|
|
212
|
+
newModel[id] = otherFields;
|
|
213
|
+
if (Object.keys(newModel[id]).length === 0) {
|
|
214
|
+
delete newModel[id];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
updateCellModesModel(newModel);
|
|
218
|
+
}, [updateCellModesModel]);
|
|
219
|
+
const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
|
|
220
|
+
apiRef.current.setState(state => {
|
|
221
|
+
const newEditingState = _extends({}, state.editRows);
|
|
222
|
+
if (newProps !== null) {
|
|
223
|
+
newEditingState[id] = _extends({}, newEditingState[id], {
|
|
224
|
+
[field]: _extends({}, newProps)
|
|
225
|
+
});
|
|
226
|
+
} else {
|
|
227
|
+
delete newEditingState[id][field];
|
|
228
|
+
if (Object.keys(newEditingState[id]).length === 0) {
|
|
229
|
+
delete newEditingState[id];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return _extends({}, state, {
|
|
233
|
+
editRows: newEditingState
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
}, [apiRef]);
|
|
237
|
+
const startCellEditMode = React.useCallback(params => {
|
|
238
|
+
const {
|
|
239
|
+
id,
|
|
240
|
+
field
|
|
241
|
+
} = params,
|
|
242
|
+
other = _objectWithoutPropertiesLoose(params, _excluded);
|
|
243
|
+
throwIfNotEditable(id, field);
|
|
244
|
+
throwIfNotInMode(id, field, GridCellModes.View);
|
|
245
|
+
updateFieldInCellModesModel(id, field, _extends({
|
|
246
|
+
mode: GridCellModes.Edit
|
|
247
|
+
}, other));
|
|
248
|
+
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
249
|
+
const updateStateToStartCellEditMode = useEventCallback(async params => {
|
|
250
|
+
const {
|
|
251
|
+
id,
|
|
252
|
+
field,
|
|
253
|
+
deleteValue,
|
|
254
|
+
initialValue
|
|
255
|
+
} = params;
|
|
256
|
+
const value = apiRef.current.getCellValue(id, field);
|
|
257
|
+
let newValue = value;
|
|
258
|
+
if (deleteValue) {
|
|
259
|
+
newValue = getDefaultCellValue(apiRef.current.getColumn(field));
|
|
260
|
+
} else if (initialValue) {
|
|
261
|
+
newValue = initialValue;
|
|
262
|
+
}
|
|
263
|
+
const column = apiRef.current.getColumn(field);
|
|
264
|
+
const shouldProcessEditCellProps = !!column.preProcessEditCellProps && deleteValue;
|
|
265
|
+
let newProps = {
|
|
266
|
+
value: newValue,
|
|
267
|
+
error: false,
|
|
268
|
+
isProcessingProps: shouldProcessEditCellProps
|
|
269
|
+
};
|
|
270
|
+
updateOrDeleteFieldState(id, field, newProps);
|
|
271
|
+
apiRef.current.setCellFocus(id, field);
|
|
272
|
+
if (shouldProcessEditCellProps) {
|
|
273
|
+
newProps = await Promise.resolve(column.preProcessEditCellProps({
|
|
274
|
+
id,
|
|
275
|
+
row: apiRef.current.getRow(id),
|
|
276
|
+
props: newProps,
|
|
277
|
+
hasChanged: newValue !== value
|
|
278
|
+
}));
|
|
279
|
+
// Check if still in edit mode before updating
|
|
280
|
+
if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {
|
|
281
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
282
|
+
updateOrDeleteFieldState(id, field, _extends({}, newProps, {
|
|
283
|
+
value: editingState[id][field].value,
|
|
284
|
+
isProcessingProps: false
|
|
285
|
+
}));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
const stopCellEditMode = React.useCallback(params => {
|
|
290
|
+
const {
|
|
291
|
+
id,
|
|
292
|
+
field
|
|
293
|
+
} = params,
|
|
294
|
+
other = _objectWithoutPropertiesLoose(params, _excluded2);
|
|
295
|
+
throwIfNotInMode(id, field, GridCellModes.Edit);
|
|
296
|
+
updateFieldInCellModesModel(id, field, _extends({
|
|
297
|
+
mode: GridCellModes.View
|
|
298
|
+
}, other));
|
|
299
|
+
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
300
|
+
const updateStateToStopCellEditMode = useEventCallback(async params => {
|
|
301
|
+
const {
|
|
302
|
+
id,
|
|
303
|
+
field,
|
|
304
|
+
ignoreModifications,
|
|
305
|
+
cellToFocusAfter = 'none'
|
|
306
|
+
} = params;
|
|
307
|
+
throwIfNotInMode(id, field, GridCellModes.Edit);
|
|
308
|
+
apiRef.current.runPendingEditCellValueMutation(id, field);
|
|
309
|
+
const finishCellEditMode = () => {
|
|
310
|
+
updateOrDeleteFieldState(id, field, null);
|
|
311
|
+
updateFieldInCellModesModel(id, field, null);
|
|
312
|
+
if (cellToFocusAfter !== 'none') {
|
|
313
|
+
apiRef.current.moveFocusToRelativeCell(id, field, cellToFocusAfter);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
if (ignoreModifications) {
|
|
317
|
+
finishCellEditMode();
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
321
|
+
const {
|
|
322
|
+
error,
|
|
323
|
+
isProcessingProps
|
|
324
|
+
} = editingState[id][field];
|
|
325
|
+
const row = apiRef.current.getRow(id);
|
|
326
|
+
if (error || isProcessingProps) {
|
|
327
|
+
// Attempt to change cell mode to "view" was not successful
|
|
328
|
+
// Update previous mode to allow another attempt
|
|
329
|
+
prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
|
|
330
|
+
// Revert the mode in the cellModesModel prop back to "edit"
|
|
331
|
+
updateFieldInCellModesModel(id, field, {
|
|
332
|
+
mode: GridCellModes.Edit
|
|
333
|
+
});
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const rowUpdate = apiRef.current.getRowWithUpdatedValuesFromCellEditing(id, field);
|
|
337
|
+
if (props.dataSource?.updateRow) {
|
|
338
|
+
if (isDeepEqual(row, rowUpdate)) {
|
|
339
|
+
finishCellEditMode();
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
const handleError = () => {
|
|
343
|
+
prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
|
|
344
|
+
// Revert the mode in the cellModesModel prop back to "edit"
|
|
345
|
+
updateFieldInCellModesModel(id, field, {
|
|
346
|
+
mode: GridCellModes.Edit
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
const updateRowParams = {
|
|
350
|
+
rowId: id,
|
|
351
|
+
updatedRow: rowUpdate,
|
|
352
|
+
previousRow: row
|
|
353
|
+
};
|
|
354
|
+
try {
|
|
355
|
+
await apiRef.current.dataSource.editRow(updateRowParams);
|
|
356
|
+
finishCellEditMode();
|
|
357
|
+
} catch {
|
|
358
|
+
handleError();
|
|
359
|
+
}
|
|
360
|
+
} else if (processRowUpdate) {
|
|
361
|
+
const handleError = errorThrown => {
|
|
362
|
+
prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
|
|
363
|
+
// Revert the mode in the cellModesModel prop back to "edit"
|
|
364
|
+
updateFieldInCellModesModel(id, field, {
|
|
365
|
+
mode: GridCellModes.Edit
|
|
366
|
+
});
|
|
367
|
+
if (onProcessRowUpdateError) {
|
|
368
|
+
onProcessRowUpdateError(errorThrown);
|
|
369
|
+
} else {
|
|
370
|
+
warnOnce(['MUI X: A call to `processRowUpdate()` threw an error which was not handled because `onProcessRowUpdateError()` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError()` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/persistence/.'], 'error');
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
try {
|
|
374
|
+
Promise.resolve(processRowUpdate(rowUpdate, row, {
|
|
375
|
+
rowId: id
|
|
376
|
+
})).then(finalRowUpdate => {
|
|
377
|
+
apiRef.current.updateRows([finalRowUpdate]);
|
|
378
|
+
finishCellEditMode();
|
|
379
|
+
}).catch(handleError);
|
|
380
|
+
} catch (errorThrown) {
|
|
381
|
+
handleError(errorThrown);
|
|
382
|
+
}
|
|
383
|
+
} else {
|
|
384
|
+
apiRef.current.updateRows([rowUpdate]);
|
|
385
|
+
finishCellEditMode();
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
const setCellEditingEditCellValue = React.useCallback(async params => {
|
|
389
|
+
const {
|
|
390
|
+
id,
|
|
391
|
+
field,
|
|
392
|
+
value,
|
|
393
|
+
debounceMs,
|
|
394
|
+
unstable_skipValueParser: skipValueParser
|
|
395
|
+
} = params;
|
|
396
|
+
throwIfNotEditable(id, field);
|
|
397
|
+
throwIfNotInMode(id, field, GridCellModes.Edit);
|
|
398
|
+
const column = apiRef.current.getColumn(field);
|
|
399
|
+
const row = apiRef.current.getRow(id);
|
|
400
|
+
let parsedValue = value;
|
|
401
|
+
if (column.valueParser && !skipValueParser) {
|
|
402
|
+
parsedValue = column.valueParser(value, row, column, apiRef);
|
|
403
|
+
}
|
|
404
|
+
let editingState = gridEditRowsStateSelector(apiRef);
|
|
405
|
+
let newProps = _extends({}, editingState[id][field], {
|
|
406
|
+
value: parsedValue,
|
|
407
|
+
changeReason: debounceMs ? 'debouncedSetEditCellValue' : 'setEditCellValue'
|
|
408
|
+
});
|
|
409
|
+
if (column.preProcessEditCellProps) {
|
|
410
|
+
const hasChanged = value !== editingState[id][field].value;
|
|
411
|
+
newProps = _extends({}, newProps, {
|
|
412
|
+
isProcessingProps: true
|
|
413
|
+
});
|
|
414
|
+
updateOrDeleteFieldState(id, field, newProps);
|
|
415
|
+
newProps = await Promise.resolve(column.preProcessEditCellProps({
|
|
416
|
+
id,
|
|
417
|
+
row,
|
|
418
|
+
props: newProps,
|
|
419
|
+
hasChanged
|
|
420
|
+
}));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Check again if the cell is in edit mode because the user may have
|
|
424
|
+
// discarded the changes while the props were being processed.
|
|
425
|
+
if (apiRef.current.getCellMode(id, field) === GridCellModes.View) {
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
editingState = gridEditRowsStateSelector(apiRef);
|
|
429
|
+
newProps = _extends({}, newProps, {
|
|
430
|
+
isProcessingProps: false
|
|
431
|
+
});
|
|
432
|
+
// We don't update the value with the one coming from the props pre-processing
|
|
433
|
+
// because when the promise resolves it may be already outdated. The only
|
|
434
|
+
// exception to this rule is when there's no pre-processing.
|
|
435
|
+
newProps.value = column.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
|
|
436
|
+
updateOrDeleteFieldState(id, field, newProps);
|
|
437
|
+
editingState = gridEditRowsStateSelector(apiRef);
|
|
438
|
+
return !editingState[id]?.[field]?.error;
|
|
439
|
+
}, [apiRef, throwIfNotEditable, throwIfNotInMode, updateOrDeleteFieldState]);
|
|
440
|
+
const getRowWithUpdatedValuesFromCellEditing = React.useCallback((id, field) => {
|
|
441
|
+
const column = apiRef.current.getColumn(field);
|
|
442
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
443
|
+
const row = apiRef.current.getRow(id);
|
|
444
|
+
if (!editingState[id] || !editingState[id][field]) {
|
|
445
|
+
return apiRef.current.getRow(id);
|
|
446
|
+
}
|
|
447
|
+
const {
|
|
448
|
+
value
|
|
449
|
+
} = editingState[id][field];
|
|
450
|
+
return column.valueSetter ? column.valueSetter(value, row, column, apiRef) : _extends({}, row, {
|
|
451
|
+
[field]: value
|
|
452
|
+
});
|
|
453
|
+
}, [apiRef]);
|
|
454
|
+
const editingApi = {
|
|
455
|
+
getCellMode,
|
|
456
|
+
startCellEditMode,
|
|
457
|
+
stopCellEditMode
|
|
458
|
+
};
|
|
459
|
+
const editingPrivateApi = {
|
|
460
|
+
setCellEditingEditCellValue,
|
|
461
|
+
getRowWithUpdatedValuesFromCellEditing
|
|
462
|
+
};
|
|
463
|
+
useGridApiMethod(apiRef, editingApi, 'public');
|
|
464
|
+
useGridApiMethod(apiRef, editingPrivateApi, 'private');
|
|
465
|
+
React.useEffect(() => {
|
|
466
|
+
if (cellModesModelProp) {
|
|
467
|
+
updateCellModesModel(cellModesModelProp);
|
|
468
|
+
}
|
|
469
|
+
}, [cellModesModelProp, updateCellModesModel]);
|
|
470
|
+
|
|
471
|
+
// Run this effect synchronously so that the keyboard event can impact the yet-to-be-rendered input.
|
|
472
|
+
useEnhancedEffect(() => {
|
|
473
|
+
const rowsLookup = gridRowsLookupSelector(apiRef);
|
|
474
|
+
|
|
475
|
+
// Update the ref here because updateStateToStopCellEditMode may change it later
|
|
476
|
+
const copyOfPrevCellModes = prevCellModesModel.current;
|
|
477
|
+
prevCellModesModel.current = deepClone(cellModesModel); // Do a deep-clone because the attributes might be changed later
|
|
478
|
+
|
|
479
|
+
Object.entries(cellModesModel).forEach(([id, fields]) => {
|
|
480
|
+
Object.entries(fields).forEach(([field, params]) => {
|
|
481
|
+
const prevMode = copyOfPrevCellModes[id]?.[field]?.mode || GridCellModes.View;
|
|
482
|
+
const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
|
|
483
|
+
if (params.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
|
|
484
|
+
updateStateToStartCellEditMode(_extends({
|
|
485
|
+
id: originalId,
|
|
486
|
+
field
|
|
487
|
+
}, params));
|
|
488
|
+
} else if (params.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
|
|
489
|
+
updateStateToStopCellEditMode(_extends({
|
|
490
|
+
id: originalId,
|
|
491
|
+
field
|
|
492
|
+
}, params));
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
}, [apiRef, cellModesModel, updateStateToStartCellEditMode, updateStateToStopCellEditMode]);
|
|
497
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.mjs";
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.mjs";
|
|
4
|
+
import type { GridConfiguration } from "../../../models/configuration/gridConfiguration.mjs";
|
|
5
|
+
import type { GridStateInitializer } from "../../utils/useGridInitializeState.mjs";
|
|
6
|
+
export declare const editingStateInitializer: GridStateInitializer;
|
|
7
|
+
export declare const useGridEditing: (apiRef: RefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, "isCellEditable" | "editMode" | "processRowUpdate" | "dataSource" | "onDataSourceError">, configuration: GridConfiguration) => void;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { useGridApiMethod } from "../../utils/useGridApiMethod.mjs";
|
|
6
|
+
import { useGridCellEditing } from "./useGridCellEditing.mjs";
|
|
7
|
+
import { GridCellModes, GridEditModes } from "../../../models/gridEditRowModel.mjs";
|
|
8
|
+
import { useGridRowEditing } from "./useGridRowEditing.mjs";
|
|
9
|
+
import { gridEditRowsStateSelector } from "./gridEditingSelectors.mjs";
|
|
10
|
+
export const editingStateInitializer = state => _extends({}, state, {
|
|
11
|
+
editRows: {}
|
|
12
|
+
});
|
|
13
|
+
export const useGridEditing = (apiRef, props, configuration) => {
|
|
14
|
+
useGridCellEditing(apiRef, props);
|
|
15
|
+
useGridRowEditing(apiRef, props);
|
|
16
|
+
const debounceMap = React.useRef({});
|
|
17
|
+
const {
|
|
18
|
+
isCellEditable: isCellEditableProp
|
|
19
|
+
} = props;
|
|
20
|
+
const isCellEditableFn = configuration.hooks.useIsCellEditable(apiRef, props);
|
|
21
|
+
const isCellEditable = React.useCallback(params => {
|
|
22
|
+
if (!isCellEditableFn(params)) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (!params.colDef.editable) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (!params.colDef.renderEditCell) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (isCellEditableProp) {
|
|
32
|
+
return isCellEditableProp(params);
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
}, [isCellEditableProp, isCellEditableFn]);
|
|
36
|
+
const maybeDebounce = (id, field, debounceMs, callback) => {
|
|
37
|
+
if (!debounceMs) {
|
|
38
|
+
callback();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (!debounceMap.current[id]) {
|
|
42
|
+
debounceMap.current[id] = {};
|
|
43
|
+
}
|
|
44
|
+
if (debounceMap.current[id][field]) {
|
|
45
|
+
const [timeout] = debounceMap.current[id][field];
|
|
46
|
+
clearTimeout(timeout);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// To run the callback immediately without waiting the timeout
|
|
50
|
+
const runImmediately = () => {
|
|
51
|
+
const [timeout] = debounceMap.current[id][field];
|
|
52
|
+
clearTimeout(timeout);
|
|
53
|
+
callback();
|
|
54
|
+
delete debounceMap.current[id][field];
|
|
55
|
+
};
|
|
56
|
+
const timeout = setTimeout(() => {
|
|
57
|
+
callback();
|
|
58
|
+
delete debounceMap.current[id][field];
|
|
59
|
+
}, debounceMs);
|
|
60
|
+
debounceMap.current[id][field] = [timeout, runImmediately];
|
|
61
|
+
};
|
|
62
|
+
React.useEffect(() => {
|
|
63
|
+
const debounces = debounceMap.current;
|
|
64
|
+
return () => {
|
|
65
|
+
Object.entries(debounces).forEach(([id, fields]) => {
|
|
66
|
+
Object.keys(fields).forEach(field => {
|
|
67
|
+
const [timeout] = debounces[id][field];
|
|
68
|
+
clearTimeout(timeout);
|
|
69
|
+
delete debounces[id][field];
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
}, []);
|
|
74
|
+
const runPendingEditCellValueMutation = React.useCallback((id, field) => {
|
|
75
|
+
if (!debounceMap.current[id]) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!field) {
|
|
79
|
+
Object.keys(debounceMap.current[id]).forEach(debouncedField => {
|
|
80
|
+
const [, runCallback] = debounceMap.current[id][debouncedField];
|
|
81
|
+
runCallback();
|
|
82
|
+
});
|
|
83
|
+
} else if (debounceMap.current[id][field]) {
|
|
84
|
+
const [, runCallback] = debounceMap.current[id][field];
|
|
85
|
+
runCallback();
|
|
86
|
+
}
|
|
87
|
+
}, []);
|
|
88
|
+
const setEditCellValue = React.useCallback(params => {
|
|
89
|
+
const {
|
|
90
|
+
id,
|
|
91
|
+
field,
|
|
92
|
+
debounceMs
|
|
93
|
+
} = params;
|
|
94
|
+
return new Promise(resolve => {
|
|
95
|
+
maybeDebounce(id, field, debounceMs, async () => {
|
|
96
|
+
const setEditCellValueToCall = props.editMode === GridEditModes.Row ? apiRef.current.setRowEditingEditCellValue : apiRef.current.setCellEditingEditCellValue;
|
|
97
|
+
|
|
98
|
+
// Check if the cell is in edit mode
|
|
99
|
+
// By the time this callback runs the user may have cancelled the editing
|
|
100
|
+
if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {
|
|
101
|
+
const result = await setEditCellValueToCall(params);
|
|
102
|
+
resolve(result);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}, [apiRef, props.editMode]);
|
|
107
|
+
const getRowWithUpdatedValues = React.useCallback((id, field) => {
|
|
108
|
+
return props.editMode === GridEditModes.Cell ? apiRef.current.getRowWithUpdatedValuesFromCellEditing(id, field) : apiRef.current.getRowWithUpdatedValuesFromRowEditing(id);
|
|
109
|
+
}, [apiRef, props.editMode]);
|
|
110
|
+
const getEditCellMeta = React.useCallback((id, field) => {
|
|
111
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
112
|
+
return editingState[id]?.[field] ?? null;
|
|
113
|
+
}, [apiRef]);
|
|
114
|
+
const editingSharedApi = {
|
|
115
|
+
isCellEditable,
|
|
116
|
+
setEditCellValue,
|
|
117
|
+
getRowWithUpdatedValues,
|
|
118
|
+
unstable_getEditCellMeta: getEditCellMeta
|
|
119
|
+
};
|
|
120
|
+
const editingSharedPrivateApi = {
|
|
121
|
+
runPendingEditCellValueMutation
|
|
122
|
+
};
|
|
123
|
+
useGridApiMethod(apiRef, editingSharedApi, 'public');
|
|
124
|
+
useGridApiMethod(apiRef, editingSharedPrivateApi, 'private');
|
|
125
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.mjs";
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.mjs";
|
|
4
|
+
export declare const useGridRowEditing: (apiRef: RefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, "editMode" | "processRowUpdate" | "onRowEditStart" | "onRowEditStop" | "onProcessRowUpdateError" | "rowModesModel" | "onRowModesModelChange" | "signature" | "dataSource">) => void;
|