@wizco/fenixds-ngx
Version:
Componentes fenix design system para Angular.
43 lines • 1.18 kB
TypeScript
import { HttpHeaders, HttpParams } from '@angular/common/http';
export interface ReplaceTexts {
selectFileBtn?: string;
resetBtn?: string;
uploadBtn?: string;
dragNDropBox?: string;
attachPinBtn?: string;
afterUploadMsg_success?: string;
afterUploadMsg_error?: string;
sizeLimit?: string;
}
export interface UploadApi {
url: string;
method?: 'POST' | 'PUT' | 'PATCH';
headers?: HttpHeaders | {
[header: string]: string | string[];
};
params?: HttpParams | {
[param: string]: string | string[];
};
responseType?: 'json' | 'arraybuffer' | 'blob' | 'text';
withCredentials?: boolean;
}
export interface AngularFileUploaderConfig {
uploadAPI?: UploadApi;
theme?: string;
id?: number;
hideProgressBar?: boolean;
hideResetBtn?: boolean;
hideSelectBtn?: boolean;
maxSize?: number;
formatsAllowed?: string;
multiple?: boolean;
fileNameIndex?: boolean;
replaceTexts?: ReplaceTexts;
autoUpload?: boolean;
}
export interface UploadInfoTypes {
xhr: XMLHttpRequest;
formData: FormData;
indexes: number[];
}
//# sourceMappingURL=upload.types.d.ts.map