UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

60 lines (59 loc) 2.54 kB
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms"; import { Subscription } from "rxjs"; import { TKwikUIInputSelectSize } from "./input-select.definitions"; import * as i0 from "@angular/core"; export declare class KwikUIInputSelectComponent implements OnInit, OnChanges, ControlValueAccessor { disabled: boolean; focus: boolean; formControl: FormControl; formControlName: string; hintContent: string; icon: string; id: string; invalid: boolean; isShowLabelOutside: boolean; label: string; options: Array<any>; placeholder: string; properties: { readOnly: boolean; }; searchable: boolean; size: TKwikUIInputSelectSize; validators: { required: boolean; }; getKeyValue: EventEmitter<any>; formGroup: FormGroup; subscriptions: Subscription; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private validateInputProperty; /** * @description Handles setting up of error and focus on the input field is it is invalid */ setDisabled(): void; /** * @description Handles setting up of error and focus on the input field is it is invalid */ setError(): void; /** * @description Handles firing of 2 events on (keyup) event * * @param value */ handleValueChange(value: any): void; handleFocusedChange(e: any): void; formatOptions(options: Array<any>): Array<string> | Array<number> | Array<boolean>; emitEvent(event: any, data: 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<KwikUIInputSelectComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputSelectComponent, "kwikui-input-select", never, { "disabled": "disabled"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "hintContent": "hintContent"; "icon": "icon"; "id": "id"; "invalid": "invalid"; "isShowLabelOutside": "isShowLabelOutside"; "label": "label"; "options": "options"; "placeholder": "placeholder"; "properties": "properties"; "searchable": "searchable"; "size": "size"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>; }