import { EmptyValueService } from './empty-value.service'; import { JsonStoreService } from './json-store.service'; import { JsonSchemaService } from './json-schema.service'; import { DomUtilService } from './dom-util.service'; import { PathUtilService } from './path-util.service'; import { KeysStoreService } from './keys-store.service'; import { ShortcutActionFunction } from '../interfaces'; export declare class ShortcutActionService { emptyValueService: EmptyValueService; domUtilService: DomUtilService; jsonStoreService: JsonStoreService; jsonSchemaService: JsonSchemaService; pathUtilService: PathUtilService; keysStoreService: KeysStoreService; constructor(emptyValueService: EmptyValueService, domUtilService: DomUtilService, jsonStoreService: JsonStoreService, jsonSchemaService: JsonSchemaService, pathUtilService: PathUtilService, keysStoreService: KeysStoreService); addToRootAction(path: Array): void; addAction(path: Array): void; private add(path, root); /** * @param path - Path of the array parent that the element is about to be inserted * @param schema - Schema of the element that is about to be inserted */ private addNewElementInArray(path, schema); addBelowToRootAction(path: Array): void; moveUpAction(path: Array): void; moveDownAction(path: Array): void; moveUpRootAction(path: Array): void; moveDownRootAction(path: Array): void; /** * @param path - Path of the element that is moved * @param direction - Movement direction. -1 for UP, +1 for DOWN */ private move(path, direction, root?); deleteAction(path: Array): void; /** * @param path - Path of the element's array parent * @param index - Index of the element that is deleted from array parent path */ private deleteElement(path, index); navigateUpAction(path: Array): void; navigateDownAction(path: Array): void; /** * @param path - Path of the element that is focused * @param direction - Navigation direction. -1 for UP, +1 for DOWN */ private navigateUpDown(path, direction); navigateLeftAction(path: Array): void; navigateRightAction(path: Array): void; /** * @param path - Path of the element that is focused * @param direction - Navigation direction. -1 for LEFT, +1 for RIGHT */ private navigateRightLeft(path, direction); /** * Copies the current row in table below and sets the value of the previous focused field to empty in the new row * @param path - Path */ copyAction(path: Array): void; /** * Copies the root parent element below(eg creates a new author in authors list) * when you edit an author's field) * @param path - Path */ copyFromRootAction(path: Array): void; /** * @param originalPath - Path of the element that is copied * @param root - Copy item from parent or root. Set to true for usage as in `copyFromRootAction` and false * for usage as in `copyAction` */ private copyRowOrSchemaBelow(originalPath, root); undoAction(): void; private waitThenFocus(path); generateShortcutAction(actionName: string): ShortcutActionFunction; }