import { ChangeDetectorRef } from '@angular/core'; import { ElementRef } from '@angular/core'; import { DragDropConfig, DragImage } from './dnd.config'; import { DragDropService } from './dnd.service'; export declare abstract class AbstractComponent { _dragDropService: DragDropService; _config: DragDropConfig; private _cdr; _elem: HTMLElement; _dragHandle: HTMLElement; _dragHelper: HTMLElement; _defaultCursor: string; /** * Last element that was mousedown'ed */ _target: EventTarget; /** * Whether the object is draggable. Default is true. */ private _dragEnabled; set dragEnabled(enabled: boolean); get dragEnabled(): boolean; /** * Allows drop on this element */ dropEnabled: boolean; /** * Drag effect */ effectAllowed: string; /** * Drag cursor */ effectCursor: string; /** * Restrict places where a draggable element can be dropped. Either one of * these two mechanisms can be used: * * - dropZones: an array of strings that permits to specify the drop zones * associated with this component. By default, if the drop-zones attribute * is not specified, the droppable component accepts drop operations by * all the draggable components that do not specify the allowed-drop-zones * * - allowDrop: a boolean function for droppable components, that is checked * when an item is dragged. The function is passed the dragData of this * item. * - if it returns true, the item can be dropped in this component * - if it returns false, the item cannot be dropped here */ allowDrop: (dropData: any) => boolean; dropZones: string[]; /** * Here is the property dragImage you can use: * - The string value as url to the image *