import { EventEmitter, ChangeDetectorRef } from '@angular/core'; import { ICanDisable, IControlValueAccessor } from '../../../core'; import { AtFileInputComponent, AtFileInputLabelDirective } from '../file-input/file-input.component'; export declare class AtFileUploadBase { _changeDetectorRef: ChangeDetectorRef; constructor(_changeDetectorRef: ChangeDetectorRef); } export declare const _AtFileUploadMixinBase: (new (...args: any[]) => IControlValueAccessor) & (new (...args: any[]) => ICanDisable) & typeof AtFileUploadBase; export declare class AtFileUploadComponent extends _AtFileUploadMixinBase implements IControlValueAccessor, ICanDisable { private _multiple; private _required; fileInput: AtFileInputComponent; inputLabel: AtFileInputLabelDirective; /** * defaultColor?: string * Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'. */ defaultColor: string; /** * activeColor?: string * Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'. */ activeColor: string; /** * cancelColor?: string * Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'. */ cancelColor: string; /** * multiple?: boolean * Sets if multiple files can be dropped/selected at once in [AtFileUploadComponent]. */ multiple: boolean; /** * required?: boolean * Forces at least one file upload. * Defaults to 'false' */ required: boolean; /** * accept?: string * Sets files accepted when opening the file browser dialog. * Same as 'accept' attribute in element. */ accept: string; /** * select?: function * Event emitted when a file is selected. * Emits a [File | FileList] object. */ onSelect: EventEmitter; /** * upload?: function * Event emitted when upload button is clicked. * Emits a [File | FileList] object. */ onUpload: EventEmitter; /** * cancel?: function * Event emitted when cancel button is clicked. */ onCancel: EventEmitter; constructor(_changeDetectorRef: ChangeDetectorRef); /** * Method executed when upload button is clicked. */ uploadPressed(): void; /** * Method executed when a file is selected. */ handleSelect(value: File | FileList): void; /** * Methods executed when cancel button is clicked. * Clears files. */ cancel(): void; /** Method executed when the disabled value changes */ onDisabledChange(v: boolean): void; }