UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

69 lines (68 loc) 2.89 kB
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms"; import { Subscription } from "rxjs"; import * as i0 from "@angular/core"; export declare class KwikUIInputFilesComponent implements OnInit, OnChanges, ControlValueAccessor { accept: string; class: string; disabled: boolean; files: any[]; formControl: FormControl; formControlName: string; icon: string; id: string; label: string; link: string; maxFileSize: number; multiple: boolean; setFileTypesToForm: string[]; showAddedFiles: boolean; size: string; styles: string; validators: { required: boolean; }; variant: string; showViewButton: any; getKeyValue: EventEmitter<any>; getRemovedFile: EventEmitter<any>; getViewButtonClick: EventEmitter<any>; nativeFilePicker: ElementRef; formGroup: FormGroup; openDropdown: boolean; normalFiles: any[]; errorFiles: any[]; loadingFiles: any[]; deletedFiles: any[]; subscriptions: Subscription; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private validateInputProperty; loadFiles(files: any[]): void; filterDuplicates(files: any[]): any[]; filterUnique(arr1: any[], arr2: any[]): any[]; /** * @description Handles setting up of error and focus on the input field is it is invalid */ setDisabled(): void; handleOnClickOpenFileManager(): void; handleOnInputFileChange(e: any): void; /** * @description Handles firing of 2 events on (keyup) event * * @param value */ handleInputValueChange(value: any): void; emitEvent(event: any, data: any): void; removeFile(file: any): void; fileClick(file: any): void; /** Method Implementations for Abstract Control */ writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration<KwikUIInputFilesComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputFilesComponent, "kwikui-input-files", never, { "accept": "accept"; "class": "class"; "disabled": "disabled"; "files": "files"; "formControl": "formControl"; "formControlName": "formControlName"; "icon": "icon"; "id": "id"; "label": "label"; "link": "link"; "maxFileSize": "maxFileSize"; "multiple": "multiple"; "setFileTypesToForm": "setFileTypesToForm"; "showAddedFiles": "showAddedFiles"; "size": "size"; "styles": "styles"; "validators": "validators"; "variant": "variant"; "showViewButton": "showViewButton"; }, { "getKeyValue": "getKeyValue"; "getRemovedFile": "getRemovedFile"; "getViewButtonClick": "getViewButtonClick"; }, never, never>; }