UNPKG

1.34 kBTypeScriptView Raw
1import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2import { NodeDraggableService } from './node-draggable.service';
3import { Tree } from '../tree';
4import * as i0 from "@angular/core";
5export declare class NodeDraggableDirective implements OnDestroy, OnInit {
6 element: ElementRef;
7 private nodeDraggableService;
8 private renderer;
9 static DATA_TRANSFER_STUB_DATA: string;
10 nodeDraggable: ElementRef;
11 tree: Tree;
12 private nodeNativeElement;
13 private disposersForDragListeners;
14 constructor(element: ElementRef, nodeDraggableService: NodeDraggableService, renderer: Renderer2);
15 ngOnInit(): void;
16 ngOnDestroy(): void;
17 private handleDragStart;
18 private handleDragOver;
19 private handleDragEnter;
20 private handleDragLeave;
21 private handleDrop;
22 private isDropPossible;
23 private handleDragEnd;
24 private containsElementAt;
25 private addClass;
26 private removeClass;
27 private notifyThatNodeWasDropped;
28 static ɵfac: i0.ɵɵFactoryDeclaration<NodeDraggableDirective, never>;
29 static ɵdir: i0.ɵɵDirectiveDeclaration<NodeDraggableDirective, "[nodeDraggable]", never, { "nodeDraggable": { "alias": "nodeDraggable"; "required": false; }; "tree": { "alias": "tree"; "required": false; }; }, {}, never, never, false, never>;
30}