/** * date-time-picker-container.component */ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core'; import { AnimationEvent } from '@angular/animations'; import { OwlDateTimeIntl } from './date-time-picker-intl.service'; import { OwlCalendarComponent } from './calendar.component'; import { OwlTimerComponent } from './timer.component'; import { DateTimeAdapter } from './adapter/date-time-adapter.class'; import { OwlDateTime, PickerType } from './date-time.class'; import { Observable } from 'rxjs'; export declare class OwlDateTimeContainerComponent implements OnInit, AfterContentInit, AfterViewInit { private cdRef; private elmRef; private pickerIntl; private dateTimeAdapter; calendar: OwlCalendarComponent; timer: OwlTimerComponent; picker: OwlDateTime; activeSelectedIndex: number; /** * Stream emits when try to hide picker * */ private hidePicker$; errMessage: string; readonly hidePickerStream: Observable; /** * Stream emits when try to confirm the selected value * */ private confirmSelected$; readonly confirmSelectedStream: Observable; private pickerOpened$; readonly pickerOpenedStream: Observable; /** * The current picker moment. This determines which time period is shown and which date is * highlighted when using keyboard navigation. */ private _clamPickerMoment; pickerMoment: T; readonly pickerType: PickerType; readonly cancelLabel: string; readonly setLabel: string; /** * The range 'from' label * */ readonly fromLabel: string; /** * The range 'to' label * */ readonly toLabel: string; /** * The range 'from' formatted value * */ readonly fromFormattedValue: string; /** * The range 'to' formatted value * */ readonly toFormattedValue: string; readonly maxRangeToValue: Date; /** * Cases in which the control buttons show in the picker * 1) picker mode is 'dialog' * 2) picker type is NOT 'calendar' and the picker mode is NOT 'inline' * */ readonly showControlButtons: boolean; readonly containerElm: HTMLElement; readonly owlDTContainerClass: boolean; readonly owlDTPopupContainerClass: boolean; readonly owlDTDialogContainerClass: boolean; readonly owlDTInlineContainerClass: boolean; readonly owlDTContainerDisabledClass: boolean; readonly owlDTContainerId: string; readonly owlDTContainerAnimation: any; constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter); ngOnInit(): void; ngAfterContentInit(): void; ngAfterViewInit(): void; handleContainerAnimationDone(event: AnimationEvent): void; dateSelected(date: T): void; timeSelected(time: T): void; /** * Handle click on cancel button */ onCancelClicked(event: any): void; /** * Handle click on set button */ onSetClicked(event: any): void; /** * Check if the up minute button is enabled */ setButtonEnabled(): boolean; /** * Handle click on inform radio group */ handleClickOnInfoGroup(event: any, index: number): void; /** * Handle click on inform radio group */ handleKeydownOnInfoGroup(event: any, next: any, index: number): void; /** * Set the value of activeSelectedIndex */ private setActiveSelectedIndex; private initPicker; /** * Select calendar date in single mode, * it returns null when date is not selected. */ private dateSelectedInSingleMode; /** * Select dates in range Mode */ private dateSelectedInRangeMode; /** * Update the given calendar date's time and check if it is valid * Because the calendar date has 00:00:00 as default time, if the picker type is 'both', * we need to update the given calendar date's time before selecting it. * if it is valid, return the updated dateTime * if it is not valid, return null */ private updateAndCheckCalendarDate; /** * Focus to the picker * */ private focusPicker; /** * Get a valid date object */ private getValidDate; }