@mui/x-data-grid 9.0.0-alpha.1 → 9.0.0-alpha.2
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 +118 -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.mjs +152 -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.mjs +275 -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/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.mjs +321 -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 +3 -2
- package/hooks/features/editing/useGridRowEditing.mjs +646 -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/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/gridClasses.js → constants/gridClasses.mjs} +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,646 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _toPropertyKey from "@babel/runtime/helpers/esm/toPropertyKey";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
6
|
+
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
7
|
+
const _excluded = ["id"],
|
|
8
|
+
_excluded2 = ["id"];
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import useEventCallback from '@mui/utils/useEventCallback';
|
|
11
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
12
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
13
|
+
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
14
|
+
import { useGridEvent, useGridEventPriority } from "../../utils/useGridEvent.mjs";
|
|
15
|
+
import { GridEditModes, GridRowModes } from "../../../models/gridEditRowModel.mjs";
|
|
16
|
+
import { useGridApiMethod } from "../../utils/useGridApiMethod.mjs";
|
|
17
|
+
import { gridEditRowsStateSelector, gridRowIsEditingSelector } from "./gridEditingSelectors.mjs";
|
|
18
|
+
import { isPrintableKey, isPasteShortcut } from "../../../utils/keyboardUtils.mjs";
|
|
19
|
+
import { gridColumnDefinitionsSelector, gridVisibleColumnFieldsSelector } from "../columns/gridColumnsSelector.mjs";
|
|
20
|
+
import { gridRowsLookupSelector } from "../rows/gridRowsSelector.mjs";
|
|
21
|
+
import { deepClone } from "../../../utils/utils.mjs";
|
|
22
|
+
import { GridRowEditStopReasons, GridRowEditStartReasons } from "../../../models/params/gridRowParams.mjs";
|
|
23
|
+
import { GRID_ACTIONS_COLUMN_TYPE } from "../../../colDef/index.mjs";
|
|
24
|
+
import { getDefaultCellValue } from "./utils.mjs";
|
|
25
|
+
export const useGridRowEditing = (apiRef, props) => {
|
|
26
|
+
const [rowModesModel, setRowModesModel] = React.useState({});
|
|
27
|
+
const rowModesModelRef = React.useRef(rowModesModel);
|
|
28
|
+
const prevRowModesModel = React.useRef({});
|
|
29
|
+
const prevRowValuesLookup = React.useRef({});
|
|
30
|
+
const focusTimeout = React.useRef(undefined);
|
|
31
|
+
const nextFocusedCell = React.useRef(null);
|
|
32
|
+
const {
|
|
33
|
+
processRowUpdate,
|
|
34
|
+
onProcessRowUpdateError,
|
|
35
|
+
rowModesModel: rowModesModelProp,
|
|
36
|
+
onRowModesModelChange
|
|
37
|
+
} = props;
|
|
38
|
+
const runIfEditModeIsRow = callback => (...args) => {
|
|
39
|
+
if (props.editMode === GridEditModes.Row) {
|
|
40
|
+
callback(...args);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const throwIfNotEditable = React.useCallback((id, field) => {
|
|
44
|
+
const params = apiRef.current.getCellParams(id, field);
|
|
45
|
+
if (!apiRef.current.isCellEditable(params)) {
|
|
46
|
+
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));
|
|
47
|
+
}
|
|
48
|
+
}, [apiRef]);
|
|
49
|
+
const throwIfNotInMode = React.useCallback((id, mode) => {
|
|
50
|
+
if (apiRef.current.getRowMode(id) !== mode) {
|
|
51
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Data Grid: The row with id=${id} is not in ${mode} mode. ` + 'The operation requires the row to be in a specific editing mode. ' + `Ensure the row is in ${mode} mode before performing this operation.` : _formatErrorMessage(79, id, mode, mode));
|
|
52
|
+
}
|
|
53
|
+
}, [apiRef]);
|
|
54
|
+
const hasFieldsWithErrors = React.useCallback(rowId => {
|
|
55
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
56
|
+
return Object.values(editingState[rowId]).some(fieldProps => fieldProps.error);
|
|
57
|
+
}, [apiRef]);
|
|
58
|
+
const handleCellDoubleClick = React.useCallback((params, event) => {
|
|
59
|
+
if (!params.isEditable) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (apiRef.current.getRowMode(params.id) === GridRowModes.Edit) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const rowParams = apiRef.current.getRowParams(params.id);
|
|
66
|
+
const newParams = _extends({}, rowParams, {
|
|
67
|
+
field: params.field,
|
|
68
|
+
reason: GridRowEditStartReasons.cellDoubleClick
|
|
69
|
+
});
|
|
70
|
+
apiRef.current.publishEvent('rowEditStart', newParams, event);
|
|
71
|
+
}, [apiRef]);
|
|
72
|
+
const handleCellFocusIn = React.useCallback(params => {
|
|
73
|
+
nextFocusedCell.current = params;
|
|
74
|
+
}, []);
|
|
75
|
+
const handleCellFocusOut = React.useCallback((params, event) => {
|
|
76
|
+
if (!params.isEditable) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (apiRef.current.getRowMode(params.id) === GridRowModes.View) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
// The mechanism to detect if we can stop editing a row is different from
|
|
83
|
+
// the cell editing. Instead of triggering it when clicking outside a cell,
|
|
84
|
+
// we must check if another cell in the same row was not clicked. To achieve
|
|
85
|
+
// that, first we keep track of all cells that gained focus. When a cell loses
|
|
86
|
+
// focus we check if the next cell that received focus is from a different row.
|
|
87
|
+
nextFocusedCell.current = null;
|
|
88
|
+
focusTimeout.current = setTimeout(() => {
|
|
89
|
+
if (nextFocusedCell.current?.id !== params.id) {
|
|
90
|
+
// The row might have been deleted during the click
|
|
91
|
+
if (!apiRef.current.getRow(params.id)) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// The row may already changed its mode
|
|
96
|
+
if (apiRef.current.getRowMode(params.id) === GridRowModes.View) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (hasFieldsWithErrors(params.id)) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const rowParams = apiRef.current.getRowParams(params.id);
|
|
103
|
+
const newParams = _extends({}, rowParams, {
|
|
104
|
+
field: params.field,
|
|
105
|
+
reason: GridRowEditStopReasons.rowFocusOut
|
|
106
|
+
});
|
|
107
|
+
apiRef.current.publishEvent('rowEditStop', newParams, event);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}, [apiRef, hasFieldsWithErrors]);
|
|
111
|
+
React.useEffect(() => {
|
|
112
|
+
return () => {
|
|
113
|
+
clearTimeout(focusTimeout.current);
|
|
114
|
+
};
|
|
115
|
+
}, []);
|
|
116
|
+
const handleCellKeyDown = React.useCallback((params, event) => {
|
|
117
|
+
if (params.cellMode === GridRowModes.Edit) {
|
|
118
|
+
// Wait until IME is settled for Asian languages like Japanese and Chinese
|
|
119
|
+
// TODO: to replace at one point. See https://github.com/mui/material-ui/pull/39713#discussion_r1381678957.
|
|
120
|
+
if (event.which === 229) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
let reason;
|
|
124
|
+
if (event.key === 'Escape') {
|
|
125
|
+
reason = GridRowEditStopReasons.escapeKeyDown;
|
|
126
|
+
} else if (event.key === 'Enter') {
|
|
127
|
+
reason = GridRowEditStopReasons.enterKeyDown;
|
|
128
|
+
} else if (event.key === 'Tab') {
|
|
129
|
+
const columnFields = gridVisibleColumnFieldsSelector(apiRef).filter(field => {
|
|
130
|
+
const column = apiRef.current.getColumn(field);
|
|
131
|
+
if (column.type === GRID_ACTIONS_COLUMN_TYPE) {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
return apiRef.current.isCellEditable(apiRef.current.getCellParams(params.id, field));
|
|
135
|
+
});
|
|
136
|
+
if (event.shiftKey) {
|
|
137
|
+
if (params.field === columnFields[0]) {
|
|
138
|
+
// Exit if user pressed Shift+Tab on the first field
|
|
139
|
+
reason = GridRowEditStopReasons.shiftTabKeyDown;
|
|
140
|
+
}
|
|
141
|
+
} else if (params.field === columnFields[columnFields.length - 1]) {
|
|
142
|
+
// Exit if user pressed Tab on the last field
|
|
143
|
+
reason = GridRowEditStopReasons.tabKeyDown;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Always prevent going to the next element in the tab sequence because the focus is
|
|
147
|
+
// handled manually to support edit components rendered inside Portals
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
if (!reason) {
|
|
150
|
+
const index = columnFields.findIndex(field => field === params.field);
|
|
151
|
+
const nextFieldToFocus = columnFields[event.shiftKey ? index - 1 : index + 1];
|
|
152
|
+
apiRef.current.setCellFocus(params.id, nextFieldToFocus);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (reason) {
|
|
156
|
+
if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params.id)) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const newParams = _extends({}, apiRef.current.getRowParams(params.id), {
|
|
160
|
+
reason,
|
|
161
|
+
field: params.field
|
|
162
|
+
});
|
|
163
|
+
apiRef.current.publishEvent('rowEditStop', newParams, event);
|
|
164
|
+
}
|
|
165
|
+
} else if (params.isEditable) {
|
|
166
|
+
let reason;
|
|
167
|
+
const canStartEditing = apiRef.current.unstable_applyPipeProcessors('canStartEditing', true, {
|
|
168
|
+
event,
|
|
169
|
+
cellParams: params,
|
|
170
|
+
editMode: 'row'
|
|
171
|
+
});
|
|
172
|
+
if (!canStartEditing) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (isPrintableKey(event)) {
|
|
176
|
+
reason = GridRowEditStartReasons.printableKeyDown;
|
|
177
|
+
} else if (isPasteShortcut(event)) {
|
|
178
|
+
reason = GridRowEditStartReasons.printableKeyDown;
|
|
179
|
+
} else if (event.key === 'Enter') {
|
|
180
|
+
reason = GridRowEditStartReasons.enterKeyDown;
|
|
181
|
+
} else if (event.key === 'Backspace' || event.key === 'Delete') {
|
|
182
|
+
reason = GridRowEditStartReasons.deleteKeyDown;
|
|
183
|
+
}
|
|
184
|
+
if (reason) {
|
|
185
|
+
const rowParams = apiRef.current.getRowParams(params.id);
|
|
186
|
+
const newParams = _extends({}, rowParams, {
|
|
187
|
+
field: params.field,
|
|
188
|
+
reason,
|
|
189
|
+
// Only pass the pressed key when the row editing is controlled via `rowModesModel`.
|
|
190
|
+
// In uncontrolled mode, the default editor already inserts the character and passing it here would duplicate it.
|
|
191
|
+
key: rowModesModelProp && isPrintableKey(event) ? event.key : undefined
|
|
192
|
+
});
|
|
193
|
+
apiRef.current.publishEvent('rowEditStart', newParams, event);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}, [apiRef, hasFieldsWithErrors, rowModesModelProp]);
|
|
197
|
+
const handleRowEditStart = React.useCallback(params => {
|
|
198
|
+
const {
|
|
199
|
+
id,
|
|
200
|
+
field,
|
|
201
|
+
reason
|
|
202
|
+
} = params;
|
|
203
|
+
const startRowEditModeParams = {
|
|
204
|
+
id,
|
|
205
|
+
fieldToFocus: field
|
|
206
|
+
};
|
|
207
|
+
if (reason === GridRowEditStartReasons.printableKeyDown || reason === GridRowEditStartReasons.deleteKeyDown) {
|
|
208
|
+
// If the user typed a printable key, initialize the value with that key
|
|
209
|
+
// to avoid losing the first character when the component is controlled.
|
|
210
|
+
if (rowModesModelProp && reason === GridRowEditStartReasons.printableKeyDown && params.key && field) {
|
|
211
|
+
startRowEditModeParams.initialValue = params.key;
|
|
212
|
+
} else {
|
|
213
|
+
// For Delete / Backspace or for uncontrolled row editing we clear the value
|
|
214
|
+
startRowEditModeParams.deleteValue = !!field;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
apiRef.current.startRowEditMode(startRowEditModeParams);
|
|
218
|
+
}, [apiRef, rowModesModelProp]);
|
|
219
|
+
const handleRowEditStop = React.useCallback(params => {
|
|
220
|
+
const {
|
|
221
|
+
id,
|
|
222
|
+
reason,
|
|
223
|
+
field
|
|
224
|
+
} = params;
|
|
225
|
+
apiRef.current.runPendingEditCellValueMutation(id);
|
|
226
|
+
let cellToFocusAfter;
|
|
227
|
+
if (reason === GridRowEditStopReasons.enterKeyDown) {
|
|
228
|
+
cellToFocusAfter = 'below';
|
|
229
|
+
} else if (reason === GridRowEditStopReasons.tabKeyDown) {
|
|
230
|
+
cellToFocusAfter = 'right';
|
|
231
|
+
} else if (reason === GridRowEditStopReasons.shiftTabKeyDown) {
|
|
232
|
+
cellToFocusAfter = 'left';
|
|
233
|
+
}
|
|
234
|
+
const ignoreModifications = reason === 'escapeKeyDown';
|
|
235
|
+
apiRef.current.stopRowEditMode({
|
|
236
|
+
id,
|
|
237
|
+
ignoreModifications,
|
|
238
|
+
field,
|
|
239
|
+
cellToFocusAfter
|
|
240
|
+
});
|
|
241
|
+
}, [apiRef]);
|
|
242
|
+
useGridEvent(apiRef, 'cellDoubleClick', runIfEditModeIsRow(handleCellDoubleClick));
|
|
243
|
+
useGridEvent(apiRef, 'cellFocusIn', runIfEditModeIsRow(handleCellFocusIn));
|
|
244
|
+
useGridEvent(apiRef, 'cellFocusOut', runIfEditModeIsRow(handleCellFocusOut));
|
|
245
|
+
useGridEvent(apiRef, 'cellKeyDown', runIfEditModeIsRow(handleCellKeyDown));
|
|
246
|
+
useGridEvent(apiRef, 'rowEditStart', runIfEditModeIsRow(handleRowEditStart));
|
|
247
|
+
useGridEvent(apiRef, 'rowEditStop', runIfEditModeIsRow(handleRowEditStop));
|
|
248
|
+
useGridEventPriority(apiRef, 'rowEditStart', props.onRowEditStart);
|
|
249
|
+
useGridEventPriority(apiRef, 'rowEditStop', props.onRowEditStop);
|
|
250
|
+
const getRowMode = React.useCallback(id => {
|
|
251
|
+
const isEditing = gridRowIsEditingSelector(apiRef, {
|
|
252
|
+
rowId: id,
|
|
253
|
+
editMode: props.editMode
|
|
254
|
+
});
|
|
255
|
+
return isEditing ? GridRowModes.Edit : GridRowModes.View;
|
|
256
|
+
}, [apiRef, props.editMode]);
|
|
257
|
+
const updateRowModesModel = useEventCallback(newModel => {
|
|
258
|
+
const isNewModelDifferentFromProp = newModel !== props.rowModesModel;
|
|
259
|
+
if (onRowModesModelChange && isNewModelDifferentFromProp) {
|
|
260
|
+
onRowModesModelChange(newModel, {
|
|
261
|
+
api: apiRef.current
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
if (props.rowModesModel && isNewModelDifferentFromProp) {
|
|
265
|
+
return; // The prop always win
|
|
266
|
+
}
|
|
267
|
+
setRowModesModel(newModel);
|
|
268
|
+
rowModesModelRef.current = newModel;
|
|
269
|
+
apiRef.current.publishEvent('rowModesModelChange', newModel);
|
|
270
|
+
});
|
|
271
|
+
const updateRowInRowModesModel = React.useCallback((id, newProps) => {
|
|
272
|
+
const newModel = _extends({}, rowModesModelRef.current);
|
|
273
|
+
if (newProps !== null) {
|
|
274
|
+
newModel[id] = _extends({}, newProps);
|
|
275
|
+
} else {
|
|
276
|
+
delete newModel[id];
|
|
277
|
+
}
|
|
278
|
+
updateRowModesModel(newModel);
|
|
279
|
+
}, [updateRowModesModel]);
|
|
280
|
+
const updateOrDeleteRowState = React.useCallback((id, newProps) => {
|
|
281
|
+
apiRef.current.setState(state => {
|
|
282
|
+
const newEditingState = _extends({}, state.editRows);
|
|
283
|
+
if (newProps !== null) {
|
|
284
|
+
newEditingState[id] = newProps;
|
|
285
|
+
} else {
|
|
286
|
+
delete newEditingState[id];
|
|
287
|
+
}
|
|
288
|
+
return _extends({}, state, {
|
|
289
|
+
editRows: newEditingState
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
}, [apiRef]);
|
|
293
|
+
const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {
|
|
294
|
+
apiRef.current.setState(state => {
|
|
295
|
+
const newEditingState = _extends({}, state.editRows);
|
|
296
|
+
if (newProps !== null) {
|
|
297
|
+
newEditingState[id] = _extends({}, newEditingState[id], {
|
|
298
|
+
[field]: _extends({}, newProps)
|
|
299
|
+
});
|
|
300
|
+
} else {
|
|
301
|
+
delete newEditingState[id][field];
|
|
302
|
+
if (Object.keys(newEditingState[id]).length === 0) {
|
|
303
|
+
delete newEditingState[id];
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return _extends({}, state, {
|
|
307
|
+
editRows: newEditingState
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}, [apiRef]);
|
|
311
|
+
const startRowEditMode = React.useCallback(params => {
|
|
312
|
+
const {
|
|
313
|
+
id
|
|
314
|
+
} = params,
|
|
315
|
+
other = _objectWithoutPropertiesLoose(params, _excluded);
|
|
316
|
+
throwIfNotInMode(id, GridRowModes.View);
|
|
317
|
+
updateRowInRowModesModel(id, _extends({
|
|
318
|
+
mode: GridRowModes.Edit
|
|
319
|
+
}, other));
|
|
320
|
+
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
321
|
+
const updateStateToStartRowEditMode = useEventCallback(params => {
|
|
322
|
+
const {
|
|
323
|
+
id,
|
|
324
|
+
fieldToFocus,
|
|
325
|
+
deleteValue,
|
|
326
|
+
initialValue
|
|
327
|
+
} = params;
|
|
328
|
+
const row = apiRef.current.getRow(id);
|
|
329
|
+
const columns = gridColumnDefinitionsSelector(apiRef);
|
|
330
|
+
const newProps = columns.reduce((acc, col) => {
|
|
331
|
+
const field = col.field;
|
|
332
|
+
const cellParams = apiRef.current.getCellParams(id, field);
|
|
333
|
+
if (!cellParams.isEditable) {
|
|
334
|
+
return acc;
|
|
335
|
+
}
|
|
336
|
+
const column = apiRef.current.getColumn(field);
|
|
337
|
+
let newValue = apiRef.current.getCellValue(id, field);
|
|
338
|
+
if (fieldToFocus === field && (deleteValue || initialValue)) {
|
|
339
|
+
if (deleteValue) {
|
|
340
|
+
newValue = getDefaultCellValue(column);
|
|
341
|
+
} else if (initialValue) {
|
|
342
|
+
newValue = initialValue;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
acc[field] = {
|
|
346
|
+
value: newValue,
|
|
347
|
+
error: false,
|
|
348
|
+
isProcessingProps: column.editable && !!column.preProcessEditCellProps && deleteValue
|
|
349
|
+
};
|
|
350
|
+
return acc;
|
|
351
|
+
}, {});
|
|
352
|
+
prevRowValuesLookup.current[id] = row;
|
|
353
|
+
updateOrDeleteRowState(id, newProps);
|
|
354
|
+
if (fieldToFocus) {
|
|
355
|
+
apiRef.current.setCellFocus(id, fieldToFocus);
|
|
356
|
+
}
|
|
357
|
+
columns.filter(column => {
|
|
358
|
+
const isCellEditable = apiRef.current.getCellParams(id, column.field).isEditable;
|
|
359
|
+
return isCellEditable && column.editable && !!column.preProcessEditCellProps && deleteValue;
|
|
360
|
+
}).forEach(column => {
|
|
361
|
+
const field = column.field;
|
|
362
|
+
const value = apiRef.current.getCellValue(id, field);
|
|
363
|
+
const newValue = deleteValue ? getDefaultCellValue(column) : initialValue ?? value;
|
|
364
|
+
Promise.resolve(column.preProcessEditCellProps({
|
|
365
|
+
id,
|
|
366
|
+
row,
|
|
367
|
+
props: newProps[field],
|
|
368
|
+
hasChanged: newValue !== value
|
|
369
|
+
})).then(processedProps => {
|
|
370
|
+
// Check if still in edit mode before updating
|
|
371
|
+
if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {
|
|
372
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
373
|
+
updateOrDeleteFieldState(id, field, _extends({}, processedProps, {
|
|
374
|
+
value: editingState[id][field].value,
|
|
375
|
+
isProcessingProps: false
|
|
376
|
+
}));
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
const stopRowEditMode = React.useCallback(params => {
|
|
382
|
+
const {
|
|
383
|
+
id
|
|
384
|
+
} = params,
|
|
385
|
+
other = _objectWithoutPropertiesLoose(params, _excluded2);
|
|
386
|
+
throwIfNotInMode(id, GridRowModes.Edit);
|
|
387
|
+
updateRowInRowModesModel(id, _extends({
|
|
388
|
+
mode: GridRowModes.View
|
|
389
|
+
}, other));
|
|
390
|
+
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
391
|
+
const updateStateToStopRowEditMode = useEventCallback(async params => {
|
|
392
|
+
const {
|
|
393
|
+
id,
|
|
394
|
+
ignoreModifications,
|
|
395
|
+
field: focusedField,
|
|
396
|
+
cellToFocusAfter = 'none'
|
|
397
|
+
} = params;
|
|
398
|
+
apiRef.current.runPendingEditCellValueMutation(id);
|
|
399
|
+
const finishRowEditMode = () => {
|
|
400
|
+
if (cellToFocusAfter !== 'none' && focusedField) {
|
|
401
|
+
apiRef.current.moveFocusToRelativeCell(id, focusedField, cellToFocusAfter);
|
|
402
|
+
}
|
|
403
|
+
updateOrDeleteRowState(id, null);
|
|
404
|
+
updateRowInRowModesModel(id, null);
|
|
405
|
+
delete prevRowValuesLookup.current[id];
|
|
406
|
+
};
|
|
407
|
+
if (ignoreModifications) {
|
|
408
|
+
finishRowEditMode();
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
412
|
+
const row = prevRowValuesLookup.current[id];
|
|
413
|
+
const isSomeFieldProcessingProps = Object.values(editingState[id]).some(fieldProps => fieldProps.isProcessingProps);
|
|
414
|
+
if (isSomeFieldProcessingProps) {
|
|
415
|
+
prevRowModesModel.current[id].mode = GridRowModes.Edit;
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
if (hasFieldsWithErrors(id)) {
|
|
419
|
+
prevRowModesModel.current[id].mode = GridRowModes.Edit;
|
|
420
|
+
// Revert the mode in the rowModesModel prop back to "edit"
|
|
421
|
+
updateRowInRowModesModel(id, {
|
|
422
|
+
mode: GridRowModes.Edit
|
|
423
|
+
});
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
const rowUpdate = apiRef.current.getRowWithUpdatedValuesFromRowEditing(id);
|
|
427
|
+
if (props.dataSource?.updateRow) {
|
|
428
|
+
if (isDeepEqual(row, rowUpdate)) {
|
|
429
|
+
finishRowEditMode();
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
const handleError = () => {
|
|
433
|
+
prevRowModesModel.current[id].mode = GridRowModes.Edit;
|
|
434
|
+
// Revert the mode in the rowModesModel prop back to "edit"
|
|
435
|
+
updateRowInRowModesModel(id, {
|
|
436
|
+
mode: GridRowModes.Edit
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
const updateRowParams = {
|
|
440
|
+
rowId: id,
|
|
441
|
+
updatedRow: rowUpdate,
|
|
442
|
+
previousRow: row
|
|
443
|
+
};
|
|
444
|
+
try {
|
|
445
|
+
await apiRef.current.dataSource.editRow(updateRowParams);
|
|
446
|
+
finishRowEditMode();
|
|
447
|
+
} catch {
|
|
448
|
+
handleError();
|
|
449
|
+
}
|
|
450
|
+
} else if (processRowUpdate) {
|
|
451
|
+
const handleError = errorThrown => {
|
|
452
|
+
// The row might have been deleted
|
|
453
|
+
if (prevRowModesModel.current[id]) {
|
|
454
|
+
prevRowModesModel.current[id].mode = GridRowModes.Edit;
|
|
455
|
+
// Revert the mode in the rowModesModel prop back to "edit"
|
|
456
|
+
updateRowInRowModesModel(id, {
|
|
457
|
+
mode: GridRowModes.Edit
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
if (onProcessRowUpdateError) {
|
|
461
|
+
onProcessRowUpdateError(errorThrown);
|
|
462
|
+
} else {
|
|
463
|
+
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');
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
try {
|
|
467
|
+
Promise.resolve(processRowUpdate(rowUpdate, row, {
|
|
468
|
+
rowId: id
|
|
469
|
+
})).then(finalRowUpdate => {
|
|
470
|
+
apiRef.current.updateRows([finalRowUpdate]);
|
|
471
|
+
finishRowEditMode();
|
|
472
|
+
}).catch(handleError);
|
|
473
|
+
} catch (errorThrown) {
|
|
474
|
+
handleError(errorThrown);
|
|
475
|
+
}
|
|
476
|
+
} else {
|
|
477
|
+
apiRef.current.updateRows([rowUpdate]);
|
|
478
|
+
finishRowEditMode();
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
const setRowEditingEditCellValue = React.useCallback(params => {
|
|
482
|
+
const {
|
|
483
|
+
id,
|
|
484
|
+
field,
|
|
485
|
+
value,
|
|
486
|
+
debounceMs,
|
|
487
|
+
unstable_skipValueParser: skipValueParser
|
|
488
|
+
} = params;
|
|
489
|
+
throwIfNotEditable(id, field);
|
|
490
|
+
const column = apiRef.current.getColumn(field);
|
|
491
|
+
const row = apiRef.current.getRow(id);
|
|
492
|
+
let parsedValue = value;
|
|
493
|
+
if (column.valueParser && !skipValueParser) {
|
|
494
|
+
parsedValue = column.valueParser(value, row, column, apiRef);
|
|
495
|
+
}
|
|
496
|
+
let editingState = gridEditRowsStateSelector(apiRef);
|
|
497
|
+
let newProps = _extends({}, editingState[id][field], {
|
|
498
|
+
value: parsedValue,
|
|
499
|
+
changeReason: debounceMs ? 'debouncedSetEditCellValue' : 'setEditCellValue'
|
|
500
|
+
});
|
|
501
|
+
if (!column.preProcessEditCellProps) {
|
|
502
|
+
updateOrDeleteFieldState(id, field, newProps);
|
|
503
|
+
}
|
|
504
|
+
return new Promise(resolve => {
|
|
505
|
+
const promises = [];
|
|
506
|
+
if (column.preProcessEditCellProps) {
|
|
507
|
+
const hasChanged = newProps.value !== editingState[id][field].value;
|
|
508
|
+
newProps = _extends({}, newProps, {
|
|
509
|
+
isProcessingProps: true
|
|
510
|
+
});
|
|
511
|
+
updateOrDeleteFieldState(id, field, newProps);
|
|
512
|
+
const _editingState$id = editingState[id],
|
|
513
|
+
otherFieldsProps = _objectWithoutPropertiesLoose(_editingState$id, [field].map(_toPropertyKey));
|
|
514
|
+
const promise = Promise.resolve(column.preProcessEditCellProps({
|
|
515
|
+
id,
|
|
516
|
+
row,
|
|
517
|
+
props: newProps,
|
|
518
|
+
hasChanged,
|
|
519
|
+
otherFieldsProps
|
|
520
|
+
})).then(processedProps => {
|
|
521
|
+
// Check again if the row is in edit mode because the user may have
|
|
522
|
+
// discarded the changes while the props were being processed.
|
|
523
|
+
if (apiRef.current.getRowMode(id) === GridRowModes.View) {
|
|
524
|
+
resolve(false);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
editingState = gridEditRowsStateSelector(apiRef);
|
|
528
|
+
processedProps = _extends({}, processedProps, {
|
|
529
|
+
isProcessingProps: false
|
|
530
|
+
});
|
|
531
|
+
// We don't reuse the value from the props pre-processing because when the
|
|
532
|
+
// promise resolves it may be already outdated. The only exception to this rule
|
|
533
|
+
// is when there's no pre-processing.
|
|
534
|
+
processedProps.value = column.preProcessEditCellProps ? editingState[id][field].value : parsedValue;
|
|
535
|
+
updateOrDeleteFieldState(id, field, processedProps);
|
|
536
|
+
});
|
|
537
|
+
promises.push(promise);
|
|
538
|
+
}
|
|
539
|
+
Object.entries(editingState[id]).forEach(([thisField, fieldProps]) => {
|
|
540
|
+
if (thisField === field) {
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
const fieldColumn = apiRef.current.getColumn(thisField);
|
|
544
|
+
if (!fieldColumn.preProcessEditCellProps) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
fieldProps = _extends({}, fieldProps, {
|
|
548
|
+
isProcessingProps: true
|
|
549
|
+
});
|
|
550
|
+
updateOrDeleteFieldState(id, thisField, fieldProps);
|
|
551
|
+
editingState = gridEditRowsStateSelector(apiRef);
|
|
552
|
+
const _editingState$id2 = editingState[id],
|
|
553
|
+
otherFieldsProps = _objectWithoutPropertiesLoose(_editingState$id2, [thisField].map(_toPropertyKey));
|
|
554
|
+
const promise = Promise.resolve(fieldColumn.preProcessEditCellProps({
|
|
555
|
+
id,
|
|
556
|
+
row,
|
|
557
|
+
props: fieldProps,
|
|
558
|
+
hasChanged: false,
|
|
559
|
+
otherFieldsProps
|
|
560
|
+
})).then(processedProps => {
|
|
561
|
+
// Check again if the row is in edit mode because the user may have
|
|
562
|
+
// discarded the changes while the props were being processed.
|
|
563
|
+
if (apiRef.current.getRowMode(id) === GridRowModes.View) {
|
|
564
|
+
resolve(false);
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
processedProps = _extends({}, processedProps, {
|
|
568
|
+
isProcessingProps: false
|
|
569
|
+
});
|
|
570
|
+
updateOrDeleteFieldState(id, thisField, processedProps);
|
|
571
|
+
});
|
|
572
|
+
promises.push(promise);
|
|
573
|
+
});
|
|
574
|
+
Promise.all(promises).then(() => {
|
|
575
|
+
if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {
|
|
576
|
+
editingState = gridEditRowsStateSelector(apiRef);
|
|
577
|
+
resolve(!editingState[id][field].error);
|
|
578
|
+
} else {
|
|
579
|
+
resolve(false);
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
}, [apiRef, throwIfNotEditable, updateOrDeleteFieldState]);
|
|
584
|
+
const getRowWithUpdatedValuesFromRowEditing = React.useCallback(id => {
|
|
585
|
+
const editingState = gridEditRowsStateSelector(apiRef);
|
|
586
|
+
const row = apiRef.current.getRow(id);
|
|
587
|
+
if (!editingState[id]) {
|
|
588
|
+
return apiRef.current.getRow(id);
|
|
589
|
+
}
|
|
590
|
+
let rowUpdate = _extends({}, prevRowValuesLookup.current[id], row);
|
|
591
|
+
Object.entries(editingState[id]).forEach(([field, fieldProps]) => {
|
|
592
|
+
const column = apiRef.current.getColumn(field);
|
|
593
|
+
// Column might have been removed
|
|
594
|
+
// see https://github.com/mui/mui-x/pull/16888
|
|
595
|
+
if (column?.valueSetter) {
|
|
596
|
+
rowUpdate = column.valueSetter(fieldProps.value, rowUpdate, column, apiRef);
|
|
597
|
+
} else {
|
|
598
|
+
rowUpdate[field] = fieldProps.value;
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
return rowUpdate;
|
|
602
|
+
}, [apiRef]);
|
|
603
|
+
const editingApi = {
|
|
604
|
+
getRowMode,
|
|
605
|
+
startRowEditMode,
|
|
606
|
+
stopRowEditMode
|
|
607
|
+
};
|
|
608
|
+
const editingPrivateApi = {
|
|
609
|
+
setRowEditingEditCellValue,
|
|
610
|
+
getRowWithUpdatedValuesFromRowEditing
|
|
611
|
+
};
|
|
612
|
+
useGridApiMethod(apiRef, editingApi, 'public');
|
|
613
|
+
useGridApiMethod(apiRef, editingPrivateApi, 'private');
|
|
614
|
+
React.useEffect(() => {
|
|
615
|
+
if (rowModesModelProp) {
|
|
616
|
+
updateRowModesModel(rowModesModelProp);
|
|
617
|
+
}
|
|
618
|
+
}, [rowModesModelProp, updateRowModesModel]);
|
|
619
|
+
|
|
620
|
+
// Run this effect synchronously so that the keyboard event can impact the yet-to-be-rendered input.
|
|
621
|
+
useEnhancedEffect(() => {
|
|
622
|
+
const rowsLookup = gridRowsLookupSelector(apiRef);
|
|
623
|
+
|
|
624
|
+
// Update the ref here because updateStateToStopRowEditMode may change it later
|
|
625
|
+
const copyOfPrevRowModesModel = prevRowModesModel.current;
|
|
626
|
+
prevRowModesModel.current = deepClone(rowModesModel); // Do a deep-clone because the attributes might be changed later
|
|
627
|
+
|
|
628
|
+
const ids = new Set([...Object.keys(rowModesModel), ...Object.keys(copyOfPrevRowModesModel)]);
|
|
629
|
+
Array.from(ids).forEach(id => {
|
|
630
|
+
const params = rowModesModel[id] ?? {
|
|
631
|
+
mode: GridRowModes.View
|
|
632
|
+
};
|
|
633
|
+
const prevMode = copyOfPrevRowModesModel[id]?.mode || GridRowModes.View;
|
|
634
|
+
const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;
|
|
635
|
+
if (params.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
|
|
636
|
+
updateStateToStartRowEditMode(_extends({
|
|
637
|
+
id: originalId
|
|
638
|
+
}, params));
|
|
639
|
+
} else if (params.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
|
|
640
|
+
updateStateToStopRowEditMode(_extends({
|
|
641
|
+
id: originalId
|
|
642
|
+
}, params));
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
}, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
|
|
646
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridApiCommunity } from "../../../models/api/gridApiCommunity.mjs";
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* @requires useGridFocus (event) - can be after, async only
|
|
6
|
+
* @requires useGridColumns (event) - can be after, async only
|
|
7
|
+
*/
|
|
8
|
+
export declare function useGridEvents(apiRef: RefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, 'onColumnHeaderClick' | 'onColumnHeaderDoubleClick' | 'onColumnHeaderContextMenu' | 'onColumnHeaderOver' | 'onColumnHeaderOut' | 'onColumnHeaderEnter' | 'onColumnHeaderLeave' | 'onCellClick' | 'onCellDoubleClick' | 'onCellKeyDown' | 'onPreferencePanelClose' | 'onPreferencePanelOpen' | 'onRowDoubleClick' | 'onRowClick' | 'onStateChange' | 'onMenuOpen' | 'onMenuClose'>): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useGridEventPriority } from "../../utils/useGridEvent.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @requires useGridFocus (event) - can be after, async only
|
|
4
|
+
* @requires useGridColumns (event) - can be after, async only
|
|
5
|
+
*/
|
|
6
|
+
export function useGridEvents(apiRef, props) {
|
|
7
|
+
useGridEventPriority(apiRef, 'columnHeaderClick', props.onColumnHeaderClick);
|
|
8
|
+
useGridEventPriority(apiRef, 'columnHeaderContextMenu', props.onColumnHeaderContextMenu);
|
|
9
|
+
useGridEventPriority(apiRef, 'columnHeaderDoubleClick', props.onColumnHeaderDoubleClick);
|
|
10
|
+
useGridEventPriority(apiRef, 'columnHeaderOver', props.onColumnHeaderOver);
|
|
11
|
+
useGridEventPriority(apiRef, 'columnHeaderOut', props.onColumnHeaderOut);
|
|
12
|
+
useGridEventPriority(apiRef, 'columnHeaderEnter', props.onColumnHeaderEnter);
|
|
13
|
+
useGridEventPriority(apiRef, 'columnHeaderLeave', props.onColumnHeaderLeave);
|
|
14
|
+
useGridEventPriority(apiRef, 'cellClick', props.onCellClick);
|
|
15
|
+
useGridEventPriority(apiRef, 'cellDoubleClick', props.onCellDoubleClick);
|
|
16
|
+
useGridEventPriority(apiRef, 'cellKeyDown', props.onCellKeyDown);
|
|
17
|
+
useGridEventPriority(apiRef, 'preferencePanelClose', props.onPreferencePanelClose);
|
|
18
|
+
useGridEventPriority(apiRef, 'preferencePanelOpen', props.onPreferencePanelOpen);
|
|
19
|
+
useGridEventPriority(apiRef, 'menuOpen', props.onMenuOpen);
|
|
20
|
+
useGridEventPriority(apiRef, 'menuClose', props.onMenuClose);
|
|
21
|
+
useGridEventPriority(apiRef, 'rowDoubleClick', props.onRowDoubleClick);
|
|
22
|
+
useGridEventPriority(apiRef, 'rowClick', props.onRowClick);
|
|
23
|
+
useGridEventPriority(apiRef, 'stateChange', props.onStateChange);
|
|
24
|
+
}
|