gov-gui
Version:
Gov UI Component Library Demo ready Build
42 lines (41 loc) • 1.35 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { GlobalProps } from '../../global/global-styles-helper';
import { AnimationProps } from '../../global/animation-helpers';
export declare class DateTimePicker implements GlobalProps, AnimationProps {
el: HTMLElement;
selectedDate: string;
selectedTime: string;
isAM: boolean;
error: string;
selectedDateEvent: EventEmitter<string>;
selectedTimeEvent: EventEmitter<string>;
date: string;
time: string;
required: boolean;
animation?: string;
animationDelay?: '2s' | '3s' | '4s' | '5s';
animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster';
classes?: string;
styles?: any;
private _styles;
variant?: string;
size?: string;
private allClasses;
watchAnimations(): void;
watchAnimationsDelay(): void;
watchAnimationsSpeed(): void;
watchStyles(newValue: any): void;
handleDateChange(event: Event): void;
handleTimeChange(event: Event): void;
toggleAMPM(): void;
get value(): string;
/**
* Public method to validate the component.
* If the component is required and no date is selected, it sets an error message.
*/
validate(): Promise<boolean>;
connectedCallback(): void;
componentWillLoad(): void;
provideClass(): void;
render(): any;
}