// tslint:disable:max-line-length import { Action, HasCell, makeActionFunction, MaybeHasCell } from "../utils"; export const FOCUS_CELL = "FOCUS_CELL"; export const FOCUS_NEXT_CELL = "FOCUS_NEXT_CELL"; export const FOCUS_PREVIOUS_CELL = "FOCUS_PREVIOUS_CELL"; export const FOCUS_CELL_EDITOR = "FOCUS_CELL_EDITOR"; export const FOCUS_NEXT_CELL_EDITOR = "FOCUS_NEXT_CELL_EDITOR"; export const FOCUS_PREVIOUS_CELL_EDITOR = "FOCUS_PREVIOUS_CELL_EDITOR"; export type FocusCell = Action; export type FocusNextCell = Action; export type FocusPreviousCell = Action; export type FocusCellEditor = Action; export type FocusNextCellEditor = Action; export type FocusPreviousCellEditor = Action; export const focusCell = makeActionFunction (FOCUS_CELL); export const focusNextCell = makeActionFunction (FOCUS_NEXT_CELL); export const focusPreviousCell = makeActionFunction (FOCUS_PREVIOUS_CELL); export const focusCellEditor = makeActionFunction (FOCUS_CELL_EDITOR); export const focusNextCellEditor = makeActionFunction (FOCUS_NEXT_CELL_EDITOR); export const focusPreviousCellEditor = makeActionFunction (FOCUS_PREVIOUS_CELL_EDITOR);