UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

94 lines (93 loc) 3.52 kB
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 { TKwikUIInputDateSize } from "./input-date.definitions"; import * as i0 from "@angular/core"; export declare class KwikUIInputDateComponent implements OnInit, OnChanges, ControlValueAccessor { disabled: boolean; focus: boolean; formControl: FormControl; formControlName: string; hintContent: string; icon: string; id: string; invalid: boolean; isShowLabelOutside: boolean; label: string; max: any; maxCalculatedFromToday: { year?: number; month?: number; day?: number; }; min: any; minCalculatedFromToday: { year?: number; month?: number; day?: number; }; placeholder: string; postfix: string; prefix: string; properties: { readOnly: boolean; }; size: TKwikUIInputDateSize; 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; /** * Calculates the TuiDay object for the min date based on the minCalculatedFromToday input * @returns TuiDay */ calculateMinDateFromToday(minCalculatedFromToday: { year?: number; month?: number; day?: number; }): TuiDay; /** * Calculates the TuiDay object for the max date based on the maxCalculatedFromToday input * @returns TuiDay */ calculateMaxDateFromToday(maxCalculatedFromToday: { year?: number; month?: number; day?: number; }): TuiDay; 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<KwikUIInputDateComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputDateComponent, "kwikui-input-date", never, { "disabled": "disabled"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "hintContent": "hintContent"; "icon": "icon"; "id": "id"; "invalid": "invalid"; "isShowLabelOutside": "isShowLabelOutside"; "label": "label"; "max": "max"; "maxCalculatedFromToday": "maxCalculatedFromToday"; "min": "min"; "minCalculatedFromToday": "minCalculatedFromToday"; "placeholder": "placeholder"; "postfix": "postfix"; "prefix": "prefix"; "properties": "properties"; "size": "size"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>; }