gov-gui
Version:
Gov UI Component Library Typscript Build
34 lines (33 loc) • 1.13 kB
TypeScript
import { AnimationProps } from '../../global/animation-helpers';
export declare class CalendarComponent implements AnimationProps {
currentYear: number;
currentMonth: number;
currentDate: number | null;
view: 'day' | 'month' | 'year';
error: string;
date: Map<string, any>;
required: boolean;
animation?: string;
animationDelay?: '2s' | '3s' | '4s' | '5s';
animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster';
private allClasses;
watchAnimations(): void;
watchAnimationsDelay(): void;
watchAnimationsSpeed(): void;
componentWillLoad(): void;
provideClass(): void;
months: string[];
private getYearRange;
getDaysInMonth(year: number, month: number): number[];
handlePrevClick(): void;
handleNextClick(): void;
handleYearClick(year: number): void;
handleMonthClick(monthIndex: number): void;
handleDateClick(date: number): void;
toggleView(viewType: 'year' | 'month' | 'day'): void;
private adjustCurrentDateToValidDay;
private updateDateMap;
get value(): string;
validate(): Promise<boolean>;
render(): any;
}