focusController.d.ts 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { BeanStub } from "./context/beanStub";
  2. import { Column } from "./entities/column";
  3. import { CellPosition } from "./entities/cellPosition";
  4. import { RowNode } from "./entities/rowNode";
  5. import { AbstractHeaderWrapper } from "./headerRendering/header/abstractHeaderWrapper";
  6. import { HeaderPosition } from "./headerRendering/header/headerPosition";
  7. import { ColumnGroup } from "./entities/columnGroup";
  8. import { GridCore } from "./gridCore";
  9. export declare class FocusController extends BeanStub {
  10. private gridOptionsWrapper;
  11. private columnController;
  12. private headerNavigationService;
  13. private columnApi;
  14. private gridApi;
  15. private rowRenderer;
  16. private rowPositionUtils;
  17. private rangeController;
  18. private static FOCUSABLE_SELECTOR;
  19. private static FOCUSABLE_EXCLUDE;
  20. private gridCore;
  21. private focusedCellPosition;
  22. private focusedHeaderPosition;
  23. private keyboardFocusActive;
  24. private init;
  25. registerGridCore(gridCore: GridCore): void;
  26. onColumnEverythingChanged(): void;
  27. isKeyboardFocus(): boolean;
  28. private activateMouseMode;
  29. private activateKeyboardMode;
  30. getFocusCellToUseAfterRefresh(): CellPosition;
  31. private getGridCellForDomElement;
  32. clearFocusedCell(): void;
  33. getFocusedCell(): CellPosition;
  34. setFocusedCell(rowIndex: number, colKey: string | Column, floating: string | undefined, forceBrowserFocus?: boolean): void;
  35. isCellFocused(cellPosition: CellPosition): boolean;
  36. isRowNodeFocused(rowNode: RowNode): boolean;
  37. isHeaderWrapperFocused(headerWrapper: AbstractHeaderWrapper): boolean;
  38. clearFocusedHeader(): void;
  39. getFocusedHeader(): HeaderPosition;
  40. setFocusedHeader(headerRowIndex: number, column: ColumnGroup | Column): void;
  41. focusHeaderPosition(headerPosition: HeaderPosition, direction?: 'Before' | 'After'): boolean;
  42. isAnyCellFocused(): boolean;
  43. isRowFocused(rowIndex: number, floating: string): boolean;
  44. findFocusableElements(rootNode: HTMLElement, exclude?: string, onlyUnmanaged?: boolean): HTMLElement[];
  45. focusFirstFocusableElement(rootNode: HTMLElement, onlyUnmanaged?: boolean): boolean;
  46. focusLastFocusableElement(rootNode: HTMLElement, onlyUnmanaged?: boolean): boolean;
  47. findNextFocusableElement(rootNode: HTMLElement, onlyManaged?: boolean, backwards?: boolean): HTMLElement;
  48. isFocusUnderManagedComponent(rootNode: HTMLElement): boolean;
  49. findTabbableParent(node: HTMLElement, limit?: number): HTMLElement;
  50. private onCellFocused;
  51. focusGridView(column?: Column): boolean;
  52. focusNextGridCoreContainer(backwards: boolean): boolean;
  53. }