angular-material-fileupload
Version:
A fileupload component based on angular-material design
38 lines (37 loc) • 1.38 kB
TypeScript
import { OnInit, OnDestroy, EventEmitter } from "@angular/core";
import { Subscription } from "rxjs";
import { HttpHeaders, HttpParams, HttpClient } from "@angular/common/http";
import { MatFileUploadQueueService } from "../mat-file-upload-queue/mat-file-upload-queue.service";
import { IUploadProgress } from "../mat-file-upload.type";
export declare class MatFileUploadComponent implements OnInit, OnDestroy {
private HttpClient;
private matFileUploadQueueService;
private uploadProgressSubject;
uploadProgress$: import("rxjs").Observable<IUploadProgress>;
private uploadInProgressSubject;
uploadInProgress$: import("rxjs").Observable<boolean>;
subs: Subscription;
httpUrl: string;
httpRequestHeaders: HttpHeaders | {
[header: string]: string | string[];
};
httpRequestParams: HttpParams | {
[param: string]: string | string[];
};
fileAlias: string;
private _file;
private _id;
file: any;
id: number;
fileUploadAriaLabel: string;
cancelAriaLabel: string;
/** Output */
removeEvent: EventEmitter<MatFileUploadComponent>;
onUpload: EventEmitter<any>;
private fileUploadSubscription;
constructor(HttpClient: HttpClient, matFileUploadQueueService: MatFileUploadQueueService);
ngOnInit(): void;
upload(): void;
remove(): void;
ngOnDestroy(): void;
}