1 | import { NgbDate } from './ngb-date';
|
2 | import * as i0 from "@angular/core";
|
3 | export declare function fromJSDate(jsDate: Date): NgbDate;
|
4 | export declare function toJSDate(date: NgbDate): Date;
|
5 | export type NgbPeriod = 'y' | 'm' | 'd';
|
6 | export declare function NGB_DATEPICKER_CALENDAR_FACTORY(): NgbCalendarGregorian;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare abstract class NgbCalendar {
|
14 | |
15 |
|
16 |
|
17 | abstract getDaysPerWeek(): number;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 | abstract getMonths(year?: number): number[];
|
24 | |
25 |
|
26 |
|
27 | abstract getWeeksPerMonth(): number;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | abstract getWeekday(date: NgbDate): number;
|
34 | |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;
|
43 | |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;
|
52 | |
53 |
|
54 |
|
55 | abstract getWeekNumber(week: readonly NgbDate[], firstDayOfWeek: number): number;
|
56 | |
57 |
|
58 |
|
59 | abstract getToday(): NgbDate;
|
60 | |
61 |
|
62 |
|
63 | abstract isValid(date?: NgbDate | null): boolean;
|
64 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbCalendar, never>;
|
65 | static ɵprov: i0.ɵɵInjectableDeclaration<NgbCalendar>;
|
66 | }
|
67 | export declare class NgbCalendarGregorian extends NgbCalendar {
|
68 | getDaysPerWeek(): number;
|
69 | getMonths(): number[];
|
70 | getWeeksPerMonth(): number;
|
71 | getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;
|
72 | getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;
|
73 | getWeekday(date: NgbDate): number;
|
74 | getWeekNumber(week: readonly NgbDate[], firstDayOfWeek: number): number;
|
75 | getToday(): NgbDate;
|
76 | isValid(date?: NgbDate | null): boolean;
|
77 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbCalendarGregorian, never>;
|
78 | static ɵprov: i0.ɵɵInjectableDeclaration<NgbCalendarGregorian>;
|
79 | }
|