UNPKG

design-angular-kit

Version:

Un toolkit Angular conforme alle linee guida di design per i servizi web della PA

61 lines (60 loc) 2.05 kB
import { AfterViewInit, EventEmitter } from '@angular/core'; import { ItAbstractComponent } from '../../../abstracts/abstract.component'; import { ProgressDonut } from 'bootstrap-italia'; import * as i0 from "@angular/core"; export declare class ItUploadDragDropComponent extends ItAbstractComponent implements AfterViewInit { /** * The accepted file type to upload <br> * Possible values: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types">MIME Types</a> separated by comma * @example application/pdf,image/png * @default * */ accept: string; /** * Fired when file start to upload */ fileStartUpload: EventEmitter<File>; protected isDragover: boolean; protected isLoading: boolean; protected isSuccess: boolean; protected donut?: ProgressDonut; private donutElement?; protected filename?: string; protected extension?: string; protected fileSize?: string; /** * The bootstrap-italia asset folder path * @default ./bootstrap-italia */ protected assetBasePath: string; constructor(); ngAfterViewInit(): void; onDragOver(evt: DragEvent): void; onDragLeave(evt: DragEvent): void; onDrop(evt: DragEvent): void; /** * On load file from input * @param event */ onLoadFile(event: Event): void; /** * Start the upload file * @param file */ start(file: File): void; /** * Percentage of upload * @param value the percentage [0 - 100] */ progress(value: number): void; /** * Upload success */ success(): void; /** * Reset file uploader */ reset(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ItUploadDragDropComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ItUploadDragDropComponent, "it-upload-drag-drop", ["itUploadDragDrop"], { "accept": { "alias": "accept"; "required": false; }; }, { "fileStartUpload": "fileStartUpload"; }, never, never, true, never>; }