/** * date-time-picker-container.component */ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, 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, OnDestroy { private cdRef; private elmRef; private pickerIntl; private dateTimeAdapter; calendar: OwlCalendarComponent; timer: OwlTimerComponent; picker: OwlDateTime; activeSelectedIndex: number; private _triggerPopup$; isShowPopup$: Observable; private retainStartTime; private retainEndTime; /** * Stream emits when try to hide picker * */ private hidePicker$; /** * Stream emits when try to confirm the selected value * */ private confirmSelected$; private pickerOpened$; /** * The current picker moment. This determines which time period is shown and which date is * highlighted when using keyboard navigation. */ private _clamPickerMoment; private _lastFocusEl; private _lastBtn; private _subs; constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter); get hidePickerStream(): Observable; get confirmSelectedStream(): Observable; get pickerOpenedStream(): Observable; get pickerMoment(): T; set pickerMoment(value: T); get pickerType(): PickerType; get cancelLabel(): string; get setLabel(): string; /** * The range 'from' label * */ get fromLabel(): string; /** * The range 'to' label * */ get toLabel(): string; /** * The range 'from' formatted value * */ get fromFormattedValue(): string; /** * The range 'to' formatted value * */ get toFormattedValue(): string; /** * 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' * */ get showControlButtons(): boolean; get containerElm(): HTMLElement; get owlDTContainerClass(): boolean; get owlDTPopupContainerClass(): boolean; get owlDTDialogContainerClass(): boolean; get owlDTInlineContainerClass(): boolean; get owlDTContainerDisabledClass(): boolean; get owlDTContainerId(): string; get owlDTContainerAnimation(): any; get isToday(): boolean; get isTomorrow(): boolean; get isNextWeek(): boolean; ngOnInit(): void; ngAfterContentInit(): void; ngAfterViewInit(): void; ngOnDestroy(): 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; /** * 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; handleKeydown(event: any): void; setToLaterToday(): void; setToNone(): void; setToTomorrow(): void; setToNextWeek(): void; private _getClosestLaterToday; /** * 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; private _updateDateForNextDayOrWeekButtons; private _isUserSetTime; private _isBetween; }