import { WeekDay } from "@angular/common"; import { ElementRef, EventEmitter, OnInit, OnChanges } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { DateItem, DateTimePickerBeforeOpenCallback } from "./datetimepicker.interfaces"; import { FormItem } from "../../shared/classes/formitem.class"; import { ReadonlyDirective } from "../../shared"; import * as i0 from "@angular/core"; export declare class DateTimePickerComponent extends FormItem implements OnInit, OnChanges, ControlValueAccessor { readonlyDirective: ReadonlyDirective | null; private datePipe; private defaultDateDisplayFormat; private defaultDateEditFormat; private defaultDateTimeDisplayFormat; private defaultDateTimeEditFormat; /** Value */ value: Date | string | null; /** Mode */ mode: 'date' | 'time' | 'datetime'; /** Display format */ displayFormat: string | null; /** Edit format */ editFormat: string | null; /** Min date */ minDate: Date | null; /** Max date */ maxDate: Date | null; /** Width */ width: string; /** * Show today * * Display actual day on thebottom of thedropdown area */ showToday: boolean; /** * Seconds * * Display seconds when `mode` is set `time` */ seconds: boolean; /** Local */ local: boolean; /** Before open */ beforeOpen: DateTimePickerBeforeOpenCallback | null; /** On value changed */ onValueChanged: EventEmitter; input: ElementRef | undefined; calendarContent: ElementRef | undefined; /** * Reference date * * It is used to handle the displayed calendar date during changing year or month */ referenceDate: Date; /** * Opened state, `boolean` */ opened: boolean; /** * Prevent focus from input */ private preventFocusFromInput; preventBlur: boolean; firstDayOfWeek: WeekDay; weekdays: Readonly; months: Readonly; skipClick: boolean; enterAsTabType: string; protected get finalDisplayFormat(): string; protected get finalEditFormat(): string; protected get today(): Date; protected get dates(): DateItem[]; protected get filled(): boolean; protected get localValue(): string | null; writeValue(value: Date | string | null): void; setInputValue(value: string): void; clearClicked(event: MouseEvent): void; openDowpdownIconClick(event: MouseEvent): void; protected focusFromInput(): void; protected blurFromInput(): void; protected paste(event: ClipboardEvent): void; focus(): void; toggleOpen(): void; /** * Opens the calendar */ open(): void; /** * Closes the calandar */ close(): void; blur(): void; keyup(keyboardEvent: KeyboardEvent): void; checkAndSetValueFromInput(resetOnInvalid?: boolean): void; private isDateValid; private isTimeValid; protected changeValueFromDates(date: Date): void; protected setDateToday(): void; private emitValueChanged; /** * Sets next year on reference date */ nextYear(): void; /** * Sets prev year on reference date */ prevYear(): void; /** * Sets next month on reference date */ nextMonth(): void; /** * Sets prev month on reference date */ prevMonth(): void; /** * Set reference date * * If `date` param is not set, the reference date is set based on the actual value. If actual value is null, it will be `new Date()` * * @param date `Date` or `null` * @returns */ setReferenceDate(date?: Date | null): void; convertDate(dateString: string): Date | null; private updateInputValue; ngOnInit(): void; ngOnChanges(): void; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }