UNPKG

angular-material-fileupload

Version:
38 lines (37 loc) 1.38 kB
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; }