1 | import { TimeUnit } from 'ngx-bootstrap/chronos';
|
2 | export declare type BsDatepickerViewMode = 'day' | 'month' | 'year';
|
3 |
|
4 | export interface NavigationViewModel {
|
5 | monthTitle: string;
|
6 | yearTitle: string;
|
7 | hideLeftArrow: boolean;
|
8 | hideRightArrow: boolean;
|
9 | disableLeftArrow: boolean;
|
10 | disableRightArrow: boolean;
|
11 | }
|
12 | export interface CalendarCellViewModel {
|
13 | date: Date;
|
14 | label: string;
|
15 | isDisabled?: boolean;
|
16 | isHovered?: boolean;
|
17 | isSelected?: boolean;
|
18 | }
|
19 |
|
20 | export interface DayViewModel extends CalendarCellViewModel {
|
21 | isOtherMonthHovered?: boolean;
|
22 | isOtherMonth?: boolean;
|
23 | isInRange?: boolean;
|
24 | isSelectionStart?: boolean;
|
25 | isSelectionEnd?: boolean;
|
26 | isToday?: boolean;
|
27 | customClasses?: string;
|
28 | tooltipText?: string;
|
29 | monthIndex?: number;
|
30 | weekIndex?: number;
|
31 | dayIndex?: number;
|
32 | }
|
33 | export interface WeekViewModel {
|
34 | days: DayViewModel[];
|
35 | isHovered?: boolean;
|
36 | }
|
37 | export interface DaysCalendarViewModel extends NavigationViewModel {
|
38 | weeks: WeekViewModel[];
|
39 | month: Date;
|
40 | weekNumbers: string[];
|
41 | weekdays: string[];
|
42 | }
|
43 |
|
44 | export interface MonthsCalendarViewModel extends NavigationViewModel {
|
45 | months: CalendarCellViewModel[][];
|
46 | }
|
47 |
|
48 | export interface YearsCalendarViewModel extends NavigationViewModel {
|
49 | years: CalendarCellViewModel[][];
|
50 | }
|
51 |
|
52 |
|
53 | export interface DaysCalendarModel {
|
54 | daysMatrix: Date[][];
|
55 | month: Date;
|
56 | }
|
57 |
|
58 | export interface MonthViewOptions {
|
59 | width?: number;
|
60 | height?: number;
|
61 | firstDayOfWeek?: number;
|
62 | }
|
63 |
|
64 | export interface DatepickerFormatOptions {
|
65 | locale?: string;
|
66 | monthTitle?: string;
|
67 | yearTitle?: string;
|
68 | dayLabel?: string;
|
69 | monthLabel?: string;
|
70 | yearLabel?: string;
|
71 | weekNumbers?: string;
|
72 | }
|
73 | export interface DatepickerRenderOptions {
|
74 | showWeekNumbers: boolean;
|
75 | displayMonths: number;
|
76 | }
|
77 | export interface DatepickerDateCustomClasses {
|
78 | date: Date;
|
79 | classes: string[];
|
80 | }
|
81 | export interface DatepickerDateTooltipText {
|
82 | date: Date;
|
83 | tooltipText: string;
|
84 | }
|
85 |
|
86 |
|
87 | export declare enum BsNavigationDirection {
|
88 | UP = 0,
|
89 | DOWN = 1
|
90 | }
|
91 | export interface BsNavigationEvent {
|
92 | direction?: BsNavigationDirection;
|
93 | step?: TimeUnit;
|
94 | }
|
95 | export interface BsViewNavigationEvent {
|
96 | unit?: TimeUnit;
|
97 | viewMode: BsDatepickerViewMode;
|
98 | }
|
99 | export interface CellHoverEvent {
|
100 | cell: CalendarCellViewModel;
|
101 | isHovered: boolean;
|
102 | }
|