import { DoCheck, ElementRef, OnDestroy } from '@angular/core'; import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { HcFormControlComponent } from '../form-field/index'; import { FileUpload } from './file-upload'; import { FileReaderFactory } from './file-reader-factory.service'; export declare class FileInputComponent extends HcFormControlComponent implements ControlValueAccessor, OnDestroy, DoCheck { private _fileReaderFactory; _ngControl: NgControl; disabled: boolean; /** * The `accept` value to use on the HTML `input` element * > W3C recommends authors to specify both MIME-types and corresponding extensions in the accept attribute. * see https://stackoverflow.com/a/23706177/1396477 * @example '.xls,.xlsx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel' */ accept: string; /** Custom label to be displayed on the button. Default: Upload file */ label: string; /** Custom buttonStyle to be used on the button. See Button component for valid buttonStyles. Default: secondary */ buttonStyle: string; /** Custom color for the Chip after a file has been selected. See Chip component for valid colors. Default: neutral */ chipColor: string; /** Whether the chips that represent the uploaded files should be stacked or wrapped. Default: wrapped */ stackedUploads: boolean; _fileInput: ElementRef; private readonly onDestroy; private _value; value: FileUpload[] | null; private _form; constructor(_fileReaderFactory: FileReaderFactory, _ngControl: NgControl, form: NgForm, formGroup: FormGroupDirective); ngOnDestroy(): void; ngDoCheck(): void; private _updateErrorState; _onClick(): void; _deleteFile(file: FileUpload): void; _onFileSelected(): void; _onBlur(): void; writeValue(value: FileUpload[] | null): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; private onChange; private onTouched; }