UNPKG

1.16 kBTypeScriptView Raw
1import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2import { Subscription } from 'rxjs';
3import { UploadInput, UploadOutput, UploaderOptions } from './interfaces';
4import { NgUploaderService } from './ngx-uploader.class';
5import * as i0 from "@angular/core";
6export declare class NgFileDropDirective implements OnInit, OnDestroy {
7 elementRef: ElementRef;
8 options: UploaderOptions;
9 uploadInput: EventEmitter<UploadInput>;
10 uploadOutput: EventEmitter<UploadOutput>;
11 upload: NgUploaderService;
12 el: HTMLInputElement;
13 _sub: Subscription[];
14 constructor(elementRef: ElementRef);
15 ngOnInit(): void;
16 ngOnDestroy(): void;
17 stopEvent: (e: Event) => void;
18 onDrop(e: any): void;
19 onDragOver(e: Event): void;
20 onDragLeave(e: Event): void;
21 static ɵfac: i0.ɵɵFactoryDeclaration<NgFileDropDirective, never>;
22 static ɵdir: i0.ɵɵDirectiveDeclaration<NgFileDropDirective, "[ngFileDrop]", never, { "options": { "alias": "options"; "required": false; }; "uploadInput": { "alias": "uploadInput"; "required": false; }; }, { "uploadOutput": "uploadOutput"; }, never, never, false, never>;
23}