UNPKG

872 BTypeScriptView Raw
1import { EventEmitter } from '@angular/core';
2import { DragDropConfig } from './dnd.config';
3import { SortableContainer } from './sortable.component';
4export declare class DragDropData {
5 dragData: any;
6 mouseEvent: MouseEvent;
7}
8export declare function dragDropServiceFactory(): DragDropService;
9export declare class DragDropService {
10 allowedDropZones: Array<string>;
11 onDragSuccessCallback: EventEmitter<DragDropData>;
12 dragData: any;
13 isDragged: boolean;
14}
15export declare function dragDropSortableServiceFactory(config: DragDropConfig): DragDropSortableService;
16export declare class DragDropSortableService {
17 private _config;
18 index: number;
19 sortableContainer: SortableContainer;
20 isDragged: boolean;
21 private _elem;
22 get elem(): HTMLElement;
23 constructor(_config: DragDropConfig);
24 markSortable(elem: HTMLElement): void;
25}