@ngx-dropzone/cdk
Version:
CDK with basic dropzone functionality.
24 lines (23 loc) • 892 B
TypeScript
import { type File } from './../file-input';
import * as i0 from "@angular/core";
export declare class DropzoneService {
/**
* Returns a `File[]` from a `DragEvent`. Accepts a list of files or folders.
*/
getFiles(event: DragEvent): Promise<File[]>;
private _toFileSystemEntry;
private _getFilesFromEntry;
/**
* In Chrome >= 77, the `readEntries` method returns only 100 files.
* To achieve a consistent behavior across browsers and not restrict user interaction,
* we break the limit by recursively calling `readEntries`.
*/
private _readDirectoryWithoutLimit;
private _isFile;
private _isDirectory;
private _flattenFiles;
private _readFilePromise;
private _readDirectoryPromise;
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DropzoneService>;
}