UNPKG

@clr/angular

Version:

Angular components for Clarity

22 lines (21 loc) 1.21 kB
import { ElementRef, Injector, Renderer2, ViewContainerRef } from '@angular/core'; import { NgControl } from '@angular/forms'; import { ClrCommonStringsService } from '../../utils'; import { WrappedFormControl } from '../common/wrapped-control'; import { ClrFileInputContainer } from './file-input-container'; import * as i0 from "@angular/core"; export interface ClrFileInputSelection { fileCount: number; buttonLabel: string; clearFilesButtonLabel: string; } export declare class ClrFileInput extends WrappedFormControl<ClrFileInputContainer> { readonly elementRef: ElementRef<HTMLInputElement>; private readonly commonStrings; selection: ClrFileInputSelection; constructor(injector: Injector, renderer: Renderer2, viewContainerRef: ViewContainerRef, elementRef: ElementRef<HTMLInputElement>, control: NgControl, commonStrings: ClrCommonStringsService); private handleChange; private updateSelection; static ɵfac: i0.ɵɵFactoryDeclaration<ClrFileInput, [null, null, null, null, { optional: true; self: true; }, null]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ClrFileInput, "input[type=\"file\"][clrFileInput]", never, {}, {}, never, never, false, never>; }