import { EventEmitter, VNode } from '../../stencil-public-runtime'; import { Observable, Selection, RevoGrid, Edition } from '../../interfaces'; import SelectionStoreService from '../../store/selection/selection.store.service'; import ColumnService from '../data/columnService'; import { DataSourceState } from '../../store/dataSource/data.store'; declare enum AutoFillType { selection = "Selection", autoFill = "AutoFill" } export declare abstract class AutoFillService { abstract dimensionRow: Observable; abstract dimensionCol: Observable; protected abstract selectionStoreService: SelectionStoreService; protected abstract columnService: ColumnService; abstract dataStore: Observable>; abstract internalRangeDataApply: EventEmitter; abstract setRange: EventEmitter; protected abstract getData(): any; private autoFillType; private autoFillInitial; private autoFillTarget; private onMouseMoveAutofill?; /** * Render autofill box * @param range * @param selectionFocus */ protected renderAutofill(range: Selection.RangeArea, selectionFocus: Selection.Cell): VNode | null; get isAutoFill(): boolean; /** Process mouse move events */ protected selectionMouseMove(e: MouseEvent): void; /** If this is ranged, the focus returns the top left corner */ private getFocus; /** This is the literal focus that the user sees */ private getRealFocus; /** * Autofill logic on mouse move apply based on previous direction (if present) */ private doAutofillMouseMove; /** * Range selection started * Mode @param type: * Can be triggered from MouseDown selection on element * Or can be triggered on corner square drag */ protected selectionStart(e: MouseEvent, type?: AutoFillType): void; /** * User has held shift key and clicked into a different overlay. This comes from a synthetic event. * Basically the same as `selectionStart */ selectionCrossSectionStart({ relatedTarget: target }: MouseEvent): void; /** Clear current range selection */ protected clearAutoFillSelection(): void; /** Trigger range apply events and handle responses */ onRangeApply(data: RevoGrid.DataLookup, range: Selection.RangeArea): void; } export {};