kwikui
Version:
KwikID's UI Component Library in Angular
75 lines (74 loc) • 2.87 kB
TypeScript
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
import { TuiDay } from "@taiga-ui/cdk";
import { Subscription } from "rxjs";
import { TKwikUIInputDateRangeSize } from "./input-date-range.definitions";
import * as i0 from "@angular/core";
export declare class KwikUIInputDateRangeComponent implements OnInit, OnChanges, ControlValueAccessor {
disabled: boolean;
focus: boolean;
formControl: FormControl;
formControlName: string;
hintContent: string;
icon: string;
id: string;
invalid: boolean;
label: string;
max: TuiDay;
maxLength: {
year?: number;
month?: number;
day?: number;
} | null;
min: TuiDay;
minLength: {
year?: number;
month?: number;
day?: number;
} | null;
placeholder: string;
postfix: string;
prefix: string;
properties: {
readOnly: boolean;
};
size: TKwikUIInputDateRangeSize;
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
*/
setReset(): 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
*/
handleInputValueChange(value: any): 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<KwikUIInputDateRangeComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputDateRangeComponent, "kwikui-input-date-range", never, { "disabled": "disabled"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "hintContent": "hintContent"; "icon": "icon"; "id": "id"; "invalid": "invalid"; "label": "label"; "max": "max"; "maxLength": "maxLength"; "min": "min"; "minLength": "minLength"; "placeholder": "placeholder"; "postfix": "postfix"; "prefix": "prefix"; "properties": "properties"; "size": "size"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>;
}