UNPKG

ngx-file-drag-drop

Version:

angular material file input component supports file drag and drop, and selection with native file picker

56 lines (55 loc) 2.15 kB
import * as i0 from "@angular/core"; export declare class NgxFileDragDropComponent { get disabled(): boolean; set disabled(val: boolean); set multiple(value: boolean); get multiple(): boolean; set displayFileSize(value: boolean); get displayFileSize(): boolean; set activeBorderColor(color: string); get activeBorderColor(): string; get files(): File[]; get isEmpty(): boolean; get isDragover(): boolean; set isDragover(value: boolean); private valueChanged; private fileInputEl; accept: string; private _disabled; _multiple: boolean; emptyPlaceholder: string; private _displayFileSize; private _activeBorderColor; private _files; private _isDragOver; private _onChange; private _onTouched; writeValue(files: File[]): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; private emitChanges; addFiles(files: File[] | FileList | File): void; removeFile(file: File): void; clear(): void; change(event: Event): void; activate(e: Event): void; deactivate(e: { dataTransfer?: { files: FileList; }; preventDefault(): void; }): void; handleDrop(e: { dataTransfer: { files: FileList; }; preventDefault(): void; }): void; open(): void; private removeDirectories; private convertToArray; getFileName(file: File): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgxFileDragDropComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxFileDragDropComponent, "ngx-file-drag-drop", never, { "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "displayFileSize": { "alias": "displayFileSize"; "required": false; }; "activeBorderColor": { "alias": "activeBorderColor"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "emptyPlaceholder": { "alias": "emptyPlaceholder"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>; }