import { OnInit } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { TranslationsService } from '../../services/translations.service'; export declare class DatePickerComponent implements OnInit, ControlValueAccessor { private translations; calendar: { date: Date; number: number; active: boolean; }[][]; visible: boolean; current: Date; days: string[]; months: string[]; /** * The value of the date-picker. * @type {Date} */ value: Date; /** * The disabled state of the date-picker. * @type {boolean} */ disabled: boolean; /** * The material-icon identifier. * @type {string} */ icon: string; /** * The placeholder identifier. * @type {string} */ placeholder: string; /** * The label for the date-picker. * @type {string} */ label: string; /** * If the icon should be reversed. * @type {boolean} */ reversed: boolean; /** * If the date-picker should have bottom margin. * @type {boolean} */ grouped: boolean; onTouchedCallback: () => void; onChangeCallback: (_: Date) => void; constructor(translations: TranslationsService); ngOnInit(): void; onDayClick(day: { date: Date; number: number; active: boolean; }): void; readonly date: string; readonly month: string; readonly year: string; recalculate(number?: number): void; getCalendar(): { date: Date; number: number; active: boolean; }[][]; private getFirstDayOfMonth(date?); private getFirstDayOfWeek(current); /** * Handle for when the user clicks outside the drop-down area. * * @param event The event containing if the click was outside. */ onClickOutside(event: Object): void; /** * Toggles the dropdown menu with a given value. * * @param value A boolean. */ toggle(value: boolean): void; onHost(): void; /** * Saves the new value. * * @param {Date} value The new value of the checkbox. */ writeValue(value: Date): void; /** * Registers a change in the input. * * @param {(_: Date) => void} method The onChange callback. */ registerOnChange(method: (_: Date) => void): void; /** * Registers a touch. * * @param {() => void} method The touch callback. */ registerOnTouched(method: () => void): void; /** * Triggers when the input is set to a disabled state. * * @param {boolean} isDisabled Boolean if the input is disabled. */ setDisabledState(isDisabled: boolean): void; }