kwikui
Version:
KwikID's UI Component Library in Angular
83 lines (82 loc) • 3.13 kB
TypeScript
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
import { Subscription } from "rxjs";
import { TKwikUIInputEmailCase, TKwikUIInputEmailSize } from "./input-email.definitions";
import * as i0 from "@angular/core";
export declare class KwikUIInputEmailComponent implements OnInit, OnChanges, ControlValueAccessor {
private cdr;
case: TKwikUIInputEmailCase;
disabled: boolean;
domains: string[];
focus: boolean;
formControl: FormControl;
formControlName: string;
hintContent: string;
icon: string;
id: string;
invalid: boolean;
label: string;
placeholder: string;
postfix: string;
prefix: string;
properties: {
readOnly: boolean;
};
size: TKwikUIInputEmailSize;
validators: {
required: boolean;
};
getKeyValue: EventEmitter<any>;
inputEmail: ElementRef;
dropdown: ElementRef;
dropdownPosition: string;
suggestions: string[];
domainSelected: string;
formGroup: FormGroup;
subscriptions: Subscription;
private inputSubject;
constructor(cdr: ChangeDetectorRef);
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 Handle changing of case based on 'case' props
*/
changeCase(): void;
/**
* @description Handles firing of 2 events on (keyup) event
*
* @param value
*/
handleInputValueChange(value: any): void;
/**
* @description Update the suggestion domains
*/
updateSuggestions(): void;
/**
* @description Handles Position of Suggestion Dropdown
*/
checkDropdownPosition(): void;
/**
* @description Handle selection of domains
*/
selectDomain(domain: string): void;
handleFocusedChange(e: any): void;
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<KwikUIInputEmailComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputEmailComponent, "kwikui-input-email", never, { "case": "case"; "disabled": "disabled"; "domains": "domains"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "hintContent": "hintContent"; "icon": "icon"; "id": "id"; "invalid": "invalid"; "label": "label"; "placeholder": "placeholder"; "postfix": "postfix"; "prefix": "prefix"; "properties": "properties"; "size": "size"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>;
}