UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

138 lines (137 loc) 5.75 kB
import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { AbstractDateTimePicker } from './AbstractDateTimePicker'; import { ValidationResult } from '../../model/ValidationResult'; import { INeedFocus } from '../../../component/INeedFocus'; import { NeedFocusService } from '../../../service/NeedFocusService.service'; import { IFormatter } from '../../../share/formatter/IFormatter'; import { IHasData } from '../../IHasData'; import { FormatterFactory } from '../../../service/FormatterFactory.service'; import { PhloxAppInfoService } from '../../../service/PhloxAppInfoService.service'; export declare class DatePicker extends AbstractDateTimePicker implements OnInit, INeedFocus { static readonly TYPE_NAME: string; protected MONTH_CONTENT_SELECTOR: string; protected dataParent: IHasData; protected ignoreParentData: boolean; protected data: any; protected ignoreParentDisabled: boolean; protected delegateHistory: boolean; protected onDisabled: Function; protected onEnabled: Function; protected loadingEnabled: boolean; protected i18nKey: string; protected bypass: boolean; protected options: any; protected disabled: boolean; protected field: string; protected name: string; protected typeOfData: string; protected readOnly: boolean; protected help: any; protected formatter: IFormatter; protected formatterName: string; protected formatterOptions: any; protected formatterUsePropertyValue: boolean; protected dataPattern: string; protected width: string; protected height: string; protected popupWidth: string; protected popupHeight: string; protected minDate: Date; protected maxDate: Date; protected loadEvent: EventEmitter<any>; protected startValidateEvent: EventEmitter<any>; protected endValidateEvent: EventEmitter<any>; protected beforeFocusEvent: EventEmitter<any>; protected focusEvent: EventEmitter<any>; protected beforeLostFocusEvent: EventEmitter<any>; protected lostFocusEvent: EventEmitter<any>; protected beforeChangeEvent: EventEmitter<any>; protected changeEvent: EventEmitter<any>; protected beforeViewShowEvent: EventEmitter<any>; protected viewShowEvent: EventEmitter<any>; protected beforeViewHideEvent: EventEmitter<any>; protected viewHideEvent: EventEmitter<any>; protected elementFocused: any; protected delayScrollTimer: any; protected currentView: string; protected active: boolean; protected defaultDropdownIdx: number; protected defaultRowHeight: number; protected defaultMonthEntryWidth: number; protected defaultMonthEntryHeight: number; protected defaultMonthHeight: number; protected positionTop: number; protected positionLeft: number; protected monthDayContainer: any[]; protected monthRowContainer: any[]; protected calendarData: any[]; protected monthMoreRowContainer: any[]; protected selectedDate: Date; protected pickerDate: Date; protected minDirective: Date; protected maxDirective: Date; protected today: Date; private _isItemClick; private _itemLostFocusingTimeout; constructor(elementRef: ElementRef, needFocusService: NeedFocusService, formatterFactory: FormatterFactory, phloxAppInfoService: PhloxAppInfoService); ngOnInit(): void; protected calculatePopupPosition(): void; protected requestFocus(): void; private calendarRender(date); private getAllDayItems(); private resetMonthDayContainer(); private reRenderViewData(viewName, date); private monthDataRender(date); private getWrapperObject(fromDate, toDate, title, calendarEntry); private isHasOwnMinMaxDisable(); private isMinMaxDate(date, minDate, maxDate); private isMinMaxValidate(date); private getValidationResults(date); private prevMonth(); private nextMonth(); private isValidFromValidationResults(results); setInputValue(inputVal: any, $event?: Event, fireEvent?: boolean): void; private updateSelectedDate(date, $event?); private updatePickerDate(); _getMonthLabel(): string; _isDateDisable(item: any): boolean; _isToday(item: any): boolean; _isCurrentDate(item: any): boolean; _isMinmax(minmax: boolean): boolean; onTextBoxClicked($event: any): void; onFocusing($event: any): void; onLostFocusing($event: Event): void; onValueChanged($event: any): void; onViewClicked($event: Event): void; onPrevMonthBtnClicked($event: Event): void; onNextMonthBtnClicked($event: Event): void; onMonthLabelClicked($event: Event): void; onDateClicked($event: Event, item: any): void; protected renderPicker(date?: Date): void; protected onValidationEnd(inputValue: any, results: ValidationResult[]): void; protected onDataChange(data: any, inputVal: any): void; protected doFocus($event: Event): void; protected doLostFocus($event: Event): void; protected doHide(): void; protected doShow(): void; protected doBlur($event: Event): void; getPopupPositionTop(): number; getPopupPositionLeft(): number; getDataPatternFromSetting(): string; isMinMaxDirectiveDisable(date: Date): boolean; getMinDate(): Date; setMinDate(minDate: any): void; getMaxDate(): Date; setMaxDate(maxDate: any): void; getMonthDayContainer(): any[]; isActive(): boolean; getWidth(): string; setWidth(width: string): void; getHeight(): string; setHeight(height: string): void; getPopupWidth(): string; setPopupWidth(popupWidth: string): void; getPopupHeight(): string; setPopupHeight(popupHeight: string): void; compareDate(a: Date, b: Date): number; }