source: trip-planner-front/node_modules/primeng/calendar/calendar.d.ts@ b738035

Last change on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 12.6 KB
Line 
1import { ElementRef, OnDestroy, OnInit, EventEmitter, Renderer2, ChangeDetectorRef, TemplateRef, QueryList, NgZone } from '@angular/core';
2import { AnimationEvent } from '@angular/animations';
3import { PrimeNGConfig, OverlayService } from 'primeng/api';
4import { ControlValueAccessor } from '@angular/forms';
5import { Subscription } from 'rxjs';
6import * as i0 from "@angular/core";
7import * as i1 from "@angular/common";
8import * as i2 from "primeng/button";
9import * as i3 from "primeng/api";
10import * as i4 from "primeng/ripple";
11export declare const CALENDAR_VALUE_ACCESSOR: any;
12export interface LocaleSettings {
13 firstDayOfWeek?: number;
14 dayNames?: string[];
15 dayNamesShort?: string[];
16 dayNamesMin?: string[];
17 monthNames?: string[];
18 monthNamesShort?: string[];
19 today?: string;
20 clear?: string;
21 dateFormat?: string;
22 weekHeader?: string;
23}
24export declare class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
25 el: ElementRef;
26 renderer: Renderer2;
27 cd: ChangeDetectorRef;
28 private zone;
29 private config;
30 overlayService: OverlayService;
31 style: any;
32 styleClass: string;
33 inputStyle: any;
34 inputId: string;
35 name: string;
36 inputStyleClass: string;
37 placeholder: string;
38 ariaLabelledBy: string;
39 iconAriaLabel: string;
40 disabled: any;
41 dateFormat: string;
42 multipleSeparator: string;
43 rangeSeparator: string;
44 inline: boolean;
45 showOtherMonths: boolean;
46 selectOtherMonths: boolean;
47 showIcon: boolean;
48 icon: string;
49 appendTo: any;
50 readonlyInput: boolean;
51 shortYearCutoff: any;
52 monthNavigator: boolean;
53 yearNavigator: boolean;
54 hourFormat: string;
55 timeOnly: boolean;
56 stepHour: number;
57 stepMinute: number;
58 stepSecond: number;
59 showSeconds: boolean;
60 required: boolean;
61 showOnFocus: boolean;
62 showWeek: boolean;
63 dataType: string;
64 selectionMode: string;
65 maxDateCount: number;
66 showButtonBar: boolean;
67 todayButtonStyleClass: string;
68 clearButtonStyleClass: string;
69 autoZIndex: boolean;
70 baseZIndex: number;
71 panelStyleClass: string;
72 panelStyle: any;
73 keepInvalid: boolean;
74 hideOnDateTimeSelect: boolean;
75 numberOfMonths: number;
76 view: string;
77 touchUI: boolean;
78 timeSeparator: string;
79 focusTrap: boolean;
80 firstDayOfWeek: number;
81 showTransitionOptions: string;
82 hideTransitionOptions: string;
83 onFocus: EventEmitter<any>;
84 onBlur: EventEmitter<any>;
85 onClose: EventEmitter<any>;
86 onSelect: EventEmitter<any>;
87 onInput: EventEmitter<any>;
88 onTodayClick: EventEmitter<any>;
89 onClearClick: EventEmitter<any>;
90 onMonthChange: EventEmitter<any>;
91 onYearChange: EventEmitter<any>;
92 onClickOutside: EventEmitter<any>;
93 onShow: EventEmitter<any>;
94 templates: QueryList<any>;
95 tabindex: number;
96 containerViewChild: ElementRef;
97 inputfieldViewChild: ElementRef;
98 set content(content: ElementRef);
99 contentViewChild: ElementRef;
100 value: any;
101 dates: any[];
102 months: any[];
103 monthPickerValues: any[];
104 weekDays: string[];
105 currentMonth: number;
106 currentYear: number;
107 currentHour: number;
108 currentMinute: number;
109 currentSecond: number;
110 pm: boolean;
111 mask: HTMLDivElement;
112 maskClickListener: Function;
113 overlay: HTMLDivElement;
114 overlayVisible: boolean;
115 onModelChange: Function;
116 onModelTouched: Function;
117 calendarElement: any;
118 timePickerTimer: any;
119 documentClickListener: any;
120 animationEndListener: any;
121 ticksTo1970: number;
122 yearOptions: number[];
123 focus: boolean;
124 isKeydown: boolean;
125 filled: boolean;
126 inputFieldValue: string;
127 _minDate: Date;
128 _maxDate: Date;
129 _showTime: boolean;
130 _yearRange: string;
131 preventDocumentListener: boolean;
132 dateTemplate: TemplateRef<any>;
133 headerTemplate: TemplateRef<any>;
134 footerTemplate: TemplateRef<any>;
135 disabledDateTemplate: TemplateRef<any>;
136 _disabledDates: Array<Date>;
137 _disabledDays: Array<number>;
138 selectElement: any;
139 todayElement: any;
140 focusElement: any;
141 scrollHandler: any;
142 documentResizeListener: any;
143 navigationState: any;
144 isMonthNavigate: boolean;
145 initialized: boolean;
146 translationSubscription: Subscription;
147 _locale: LocaleSettings;
148 get defaultDate(): Date;
149 set defaultDate(defaultDate: Date);
150 _defaultDate: Date;
151 get minDate(): Date;
152 set minDate(date: Date);
153 get maxDate(): Date;
154 set maxDate(date: Date);
155 get disabledDates(): Date[];
156 set disabledDates(disabledDates: Date[]);
157 get disabledDays(): number[];
158 set disabledDays(disabledDays: number[]);
159 get yearRange(): string;
160 set yearRange(yearRange: string);
161 get showTime(): boolean;
162 set showTime(showTime: boolean);
163 get locale(): LocaleSettings;
164 set locale(newLocale: LocaleSettings);
165 constructor(el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef, zone: NgZone, config: PrimeNGConfig, overlayService: OverlayService);
166 ngOnInit(): void;
167 ngAfterContentInit(): void;
168 getTranslation(option: string): any;
169 populateYearOptions(start: any, end: any): void;
170 createWeekDays(): void;
171 createMonthPickerValues(): void;
172 createMonths(month: number, year: number): void;
173 getWeekNumber(date: Date): number;
174 createMonth(month: number, year: number): {
175 month: number;
176 year: number;
177 dates: any[];
178 weekNumbers: any[];
179 };
180 initTime(date: Date): void;
181 navBackward(event: any): void;
182 navForward(event: any): void;
183 decrementYear(): void;
184 incrementYear(): void;
185 onDateSelect(event: any, dateMeta: any): void;
186 shouldSelectDate(dateMeta: any): boolean;
187 onMonthSelect(event: any, index: any): void;
188 updateInputfield(): void;
189 formatDateTime(date: any): any;
190 setCurrentHourPM(hours: number): void;
191 selectDate(dateMeta: any): void;
192 updateModel(value: any): void;
193 getFirstDayOfMonthIndex(month: number, year: number): number;
194 getDaysCountInMonth(month: number, year: number): number;
195 getDaysCountInPrevMonth(month: number, year: number): number;
196 getPreviousMonthAndYear(month: number, year: number): {
197 month: any;
198 year: any;
199 };
200 getNextMonthAndYear(month: number, year: number): {
201 month: any;
202 year: any;
203 };
204 getSundayIndex(): number;
205 isSelected(dateMeta: any): boolean;
206 isMonthSelected(month: number): boolean;
207 isDateEquals(value: any, dateMeta: any): boolean;
208 isDateBetween(start: any, end: any, dateMeta: any): boolean;
209 isSingleSelection(): boolean;
210 isRangeSelection(): boolean;
211 isMultipleSelection(): boolean;
212 isToday(today: any, day: any, month: any, year: any): boolean;
213 isSelectable(day: any, month: any, year: any, otherMonth: any): boolean;
214 isDateDisabled(day: number, month: number, year: number): boolean;
215 isDayDisabled(day: number, month: number, year: number): boolean;
216 onInputFocus(event: Event): void;
217 onInputClick(): void;
218 onInputBlur(event: Event): void;
219 onButtonClick(event: any, inputfield: any): void;
220 onOverlayClick(event: any): void;
221 onPrevButtonClick(event: any): void;
222 onNextButtonClick(event: any): void;
223 onContainerButtonKeydown(event: any): void;
224 onInputKeydown(event: any): void;
225 onDateCellKeydown(event: any, date: any, groupIndex: any): void;
226 onMonthCellKeydown(event: any, index: any): void;
227 navigateToMonth(prev: any, groupIndex: any): void;
228 updateFocus(): void;
229 initFocusableCell(): void;
230 trapFocus(event: any): void;
231 onMonthDropdownChange(m: string): void;
232 onYearDropdownChange(y: string): void;
233 convertTo24Hour: (hours: number, pm: boolean) => number;
234 validateTime(hour: number, minute: number, second: number, pm: boolean): boolean;
235 incrementHour(event: any): void;
236 onTimePickerElementMouseDown(event: Event, type: number, direction: number): void;
237 onTimePickerElementMouseUp(event: Event): void;
238 onTimePickerElementMouseLeave(): void;
239 repeat(event: Event, interval: number, type: number, direction: number): void;
240 clearTimePickerTimer(): void;
241 decrementHour(event: any): void;
242 incrementMinute(event: any): void;
243 decrementMinute(event: any): void;
244 incrementSecond(event: any): void;
245 decrementSecond(event: any): void;
246 updateTime(): void;
247 toggleAMPM(event: any): void;
248 onUserInput(event: any): void;
249 isValidSelection(value: any): boolean;
250 parseValueFromString(text: string): Date | Date[];
251 parseDateTime(text: any): Date;
252 populateTime(value: any, timeString: any, ampm: any): void;
253 updateUI(): void;
254 showOverlay(): void;
255 hideOverlay(): void;
256 toggle(): void;
257 onOverlayAnimationStart(event: AnimationEvent): void;
258 onOverlayAnimationDone(event: AnimationEvent): void;
259 appendOverlay(): void;
260 restoreOverlayAppend(): void;
261 alignOverlay(): void;
262 enableModality(element: any): void;
263 disableModality(): void;
264 destroyMask(): void;
265 unbindMaskClickListener(): void;
266 unbindAnimationEndListener(): void;
267 writeValue(value: any): void;
268 registerOnChange(fn: Function): void;
269 registerOnTouched(fn: Function): void;
270 setDisabledState(val: boolean): void;
271 getDateFormat(): any;
272 formatDate(date: any, format: any): string;
273 formatTime(date: any): string;
274 parseTime(value: any): {
275 hour: number;
276 minute: number;
277 second: number;
278 };
279 parseDate(value: any, format: any): any;
280 daylightSavingAdjust(date: any): any;
281 updateFilledState(): void;
282 onTodayButtonClick(event: any): void;
283 onClearButtonClick(event: any): void;
284 bindDocumentClickListener(): void;
285 unbindDocumentClickListener(): void;
286 bindDocumentResizeListener(): void;
287 unbindDocumentResizeListener(): void;
288 bindScrollListener(): void;
289 unbindScrollListener(): void;
290 isOutsideClicked(event: Event): boolean;
291 isNavIconClicked(event: Event): boolean;
292 onWindowResize(): void;
293 onOverlayHide(): void;
294 ngOnDestroy(): void;
295 static ɵfac: i0.ɵɵFactoryDeclaration<Calendar, never>;
296 static ɵcmp: i0.ɵɵComponentDeclaration<Calendar, "p-calendar", never, { "style": "style"; "styleClass": "styleClass"; "inputStyle": "inputStyle"; "inputId": "inputId"; "name": "name"; "inputStyleClass": "inputStyleClass"; "placeholder": "placeholder"; "ariaLabelledBy": "ariaLabelledBy"; "iconAriaLabel": "iconAriaLabel"; "disabled": "disabled"; "dateFormat": "dateFormat"; "multipleSeparator": "multipleSeparator"; "rangeSeparator": "rangeSeparator"; "inline": "inline"; "showOtherMonths": "showOtherMonths"; "selectOtherMonths": "selectOtherMonths"; "showIcon": "showIcon"; "icon": "icon"; "appendTo": "appendTo"; "readonlyInput": "readonlyInput"; "shortYearCutoff": "shortYearCutoff"; "monthNavigator": "monthNavigator"; "yearNavigator": "yearNavigator"; "hourFormat": "hourFormat"; "timeOnly": "timeOnly"; "stepHour": "stepHour"; "stepMinute": "stepMinute"; "stepSecond": "stepSecond"; "showSeconds": "showSeconds"; "required": "required"; "showOnFocus": "showOnFocus"; "showWeek": "showWeek"; "dataType": "dataType"; "selectionMode": "selectionMode"; "maxDateCount": "maxDateCount"; "showButtonBar": "showButtonBar"; "todayButtonStyleClass": "todayButtonStyleClass"; "clearButtonStyleClass": "clearButtonStyleClass"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "panelStyleClass": "panelStyleClass"; "panelStyle": "panelStyle"; "keepInvalid": "keepInvalid"; "hideOnDateTimeSelect": "hideOnDateTimeSelect"; "numberOfMonths": "numberOfMonths"; "view": "view"; "touchUI": "touchUI"; "timeSeparator": "timeSeparator"; "focusTrap": "focusTrap"; "firstDayOfWeek": "firstDayOfWeek"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; "tabindex": "tabindex"; "defaultDate": "defaultDate"; "minDate": "minDate"; "maxDate": "maxDate"; "disabledDates": "disabledDates"; "disabledDays": "disabledDays"; "yearRange": "yearRange"; "showTime": "showTime"; "locale": "locale"; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; "onClose": "onClose"; "onSelect": "onSelect"; "onInput": "onInput"; "onTodayClick": "onTodayClick"; "onClearClick": "onClearClick"; "onMonthChange": "onMonthChange"; "onYearChange": "onYearChange"; "onClickOutside": "onClickOutside"; "onShow": "onShow"; }, ["templates"], ["p-header", "p-footer"]>;
297}
298export declare class CalendarModule {
299 static ɵfac: i0.ɵɵFactoryDeclaration<CalendarModule, never>;
300 static ɵmod: i0.ɵɵNgModuleDeclaration<CalendarModule, [typeof Calendar], [typeof i1.CommonModule, typeof i2.ButtonModule, typeof i3.SharedModule, typeof i4.RippleModule], [typeof Calendar, typeof i2.ButtonModule, typeof i3.SharedModule]>;
301 static ɵinj: i0.ɵɵInjectorDeclaration<CalendarModule>;
302}
Note: See TracBrowser for help on using the repository browser.