import { IColorTheme, IDatePickerConfiguration, ILabels, LCDatePickerControl } from './lc-date-picker-control'; import { DateType, ECalendarNavigation, ECalendarType } from './enums'; import { Observable } from 'rxjs'; import { Panel } from './base-date-picker.class'; import { LCDatePickerAdapter } from './lc-date-picker-adapter.class'; export declare class DatePickerConfig { private readonly config; private readonly control1; private readonly control2; constructor(config: IDatePickerConfiguration, dateAdapter: LCDatePickerAdapter); /** @internal */ setHostElement(nativeElement: HTMLElement): void; /** @internal */ getControl(dateType?: DateType): LCDatePickerControl; /** * Allows subscribing to value changes of the datepicker. * * @return an observable that can be used to subscribe to value changes of the datepicker. */ getValueChanges(): Observable; /** * Allows subscribing to changes in the open state of the datepicker. * * @return an observable that can be used to subscribe to changes in the open state of the datepicker. */ getOpenChanges(): Observable; /** * Allows subscribing to changes in navigation of the datepicker. * * @return an observable that can be used to subscribe to changes in navigation of the datepicker. */ getNavigationChanges(): Observable; /** * Allows subscribing to panel changes of the datepicker. * * @return an observable that can be used to subscribe to panel changes of the datepicker. */ getPanelChanges(): Observable<{ panel: Panel; dateType: DateType; }>; /** * Allows subscribing to reset signals of the datepicker. * * @return an observable that can be used to subscribe to reset signals of the datepicker. */ getResetChanges(): Observable; /** * Is the datepicker open. * * @return true if the datepicker is open, false otherwise. */ isOpen(): boolean; /** * Opens or closes the datepicker. * * @param {boolean} open - whether the datepicker should be open or closed. */ setOpen(open: boolean): void; /** * Retrieves the selected date. * * @return ISO 8601 formatted string representing the selected date. */ getValue(): string; /** * Sets the selected date. * * @param {string} value - the ISO 8601 formatted string representing the new date. */ setValue(value: string): void; /** * Retrieves the timezone of dates. * * @return the timezone. */ getTimezone(): string; /** * Retrieves the type of the calendar. * * @return the type of the calendar. */ getCalendarType(): ECalendarType; /** * Sets the type of the calendar. * * @param {ECalendarType} type - the type of the calendar. */ setCalendarType(type: ECalendarType): void; /** * Retrieves the currently active panel, depending on which part of the date the user is currently trying to set. * E.g. If the type of calendar is Month picker, and the user is currently setting the year, the active panel * will be Year, otherwise it will be Month. * * @param {DateType} dateType - type of the datepicker calendar, * with FROM and TO being for the date range picker and REGULAR (default) for the date picker. * @return the current panel. */ getPanel(dateType?: DateType): Panel; /** * Retrieves the localization of the datepicker. * * @return the ISO 639-1 language code. */ getLocalization(): string; /** * Sets the localization of the datepicker. * * @param {string} localization - the ISO 639-1 language code. */ setLocalization(localization: string): void; /** * Retrieves the labels of the datepicker. * * @return - an object containing the labels. */ getLabels(): ILabels; /** * Sets the labels of the datepicker. * * @param {ILabels} labels - an object containing the labels. */ setLabels(labels: ILabels): void; /** * Retrieves the color theme of the datepicker. * * @return an object containing the color theme. */ getTheme(): IColorTheme; /** * Sets the color theme of the datepicker. * * @param {IColorTheme} theme - an object containing the color theme. */ setTheme(theme: IColorTheme): void; /** * Retrieves the minimum date of the datepicker. * * @return the minimum date. */ getMinDate(): string; /** * Sets the minimum date of the datepicker. * * @param {string} date - the ISO 8601 formatted string representing the minimum date. */ setMinDate(date: string): void; /** * Retrieves the maximum date of the datepicker. * * @return the maximum date. */ getMaxDate(): string; /** * Sets the maximum date of the datepicker. * * @param {string} date - the ISO 8601 formatted string representing the maximum date. */ setMaxDate(date: string): void; /** * Retrieves a list of disabled dates. * * @return ISO 8601 formatted string list of disabled dates. */ getDisabledDates(): string[]; /** * Sets the disabled dates. * * @param {string[]} dates - ISO 8601 formatted string list of disabled dates. */ setDisabledDates(dates: string[]): void; /** * Is the datepicker focused. * * @return true if the datepicker is focused, false otherwise. */ isFocused(): boolean; /** * Sets the focus on the datepicker. */ focus(): void; /** * Navigates up on the calendar grid. */ navigateUp(): void; /** * Navigates down on the calendar grid. */ navigateDown(): void; /** * Navigates right on the calendar grid. */ navigateRight(): void; /** * Navigates left on the calendar grid. */ navigateLeft(): void; /** * Closes the datepicker. */ close(): void; /** * Closes the datepicker and emit the currently selected date. */ confirm(): void; /** * Go to the next grid of the calendar (e.g. next month). */ nextPage(): void; /** * Go to the previous grid of the calendar (e.g. previous month). */ previousPage(): void; }