UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

52 lines (51 loc) 2.3 kB
import type { NamedBean } from '../context/bean'; import { BeanStub } from '../context/beanStub'; import type { AgColumn } from '../entities/agColumn'; import type { CellPosition } from '../interfaces/iCellPosition'; import type { RowPosition } from '../interfaces/iRowPosition'; import { CellCtrl } from '../rendering/cell/cellCtrl'; import { RowCtrl } from '../rendering/row/rowCtrl'; type FindNextCellToFocusOnParams = { backwards: boolean; startEditing: boolean; skipToNextEditableCell?: boolean; }; export declare class NavigationService extends BeanStub implements NamedBean { beanName: "navigation"; private gridBodyCon; constructor(); postConstruct(): void; handlePageScrollingKey(event: KeyboardEvent, fromFullWidth?: boolean): boolean; private handlePageUpDown; private navigateTo; private onPageDown; private onPageUp; private navigateToNextPage; private navigateToNextPageWithAutoHeight; private getNextFocusIndexForAutoHeight; private getViewportHeight; private isRowTallerThanView; private onCtrlUpDownLeftRight; private onHomeOrEndKey; onTabKeyDown(previous: CellCtrl | RowCtrl, keyboardEvent: KeyboardEvent): void; tabToNextCell(backwards: boolean, event?: KeyboardEvent): boolean; private tabToNextCellCommon; private moveToNextCellNotEditing; /** * called by the cell, when tab is pressed while editing. * @returns RenderedCell when navigation successful, false if navigation should not be performed, otherwise null */ findNextCellToFocusOn(previousPosition: CellPosition, { backwards, startEditing, skipToNextEditableCell }: FindNextCellToFocusOnParams): CellCtrl | CellPosition | null | false; private isCellEditable; private lookupRowNodeForCell; navigateToNextCell(event: KeyboardEvent | null, key: string, currentCell: CellPosition, allowUserOverride: boolean): void; private getNormalisedPosition; tryToFocusFullWidthRow(position: CellPosition | RowPosition, backwards?: boolean): boolean; private focusPosition; private isValidNavigateCell; private getLastCellOfColSpan; ensureCellVisible(gridCell: CellPosition): void; ensureColumnVisible(column: AgColumn): void; ensureRowVisible(rowIndex: number): void; } export {};