1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { EventEmitter, OnInit, Type } from '@angular/core';
|
7 | import { NbCalendarYearModelService } from '../calendar-kit/services/calendar-year-model.service';
|
8 | import { NbCalendarCell, NbCalendarSize, NbCalendarViewMode, NbCalendarSizeValues, NbCalendarViewModeValues } from '../calendar-kit/model';
|
9 | import { NbDateService } from '../calendar-kit/services/date.service';
|
10 | import { NbBooleanInput } from '../helpers';
|
11 | import * as i0 from "@angular/core";
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class NbBaseCalendarComponent<D, T> implements OnInit {
|
18 | protected dateService: NbDateService<D>;
|
19 | protected yearModelService: NbCalendarYearModelService<D>;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | boundingMonth: boolean;
|
25 | |
26 |
|
27 |
|
28 | activeViewMode: NbCalendarViewMode;
|
29 | static ngAcceptInputType_activeViewMode: NbCalendarViewModeValues;
|
30 | |
31 |
|
32 |
|
33 | min: D;
|
34 | |
35 |
|
36 |
|
37 | max: D;
|
38 | |
39 |
|
40 |
|
41 | filter: (D: any) => boolean;
|
42 | |
43 |
|
44 |
|
45 | dayCellComponent: Type<NbCalendarCell<D, T>>;
|
46 | |
47 |
|
48 |
|
49 | monthCellComponent: Type<NbCalendarCell<D, T>>;
|
50 | |
51 |
|
52 |
|
53 | yearCellComponent: Type<NbCalendarCell<D, T>>;
|
54 | |
55 |
|
56 |
|
57 |
|
58 | size: NbCalendarSize;
|
59 | static ngAcceptInputType_size: NbCalendarSizeValues;
|
60 | visibleDate: D;
|
61 | |
62 |
|
63 |
|
64 | showNavigation: boolean;
|
65 | |
66 |
|
67 |
|
68 | date: T;
|
69 | |
70 |
|
71 |
|
72 |
|
73 | get showWeekNumber(): boolean;
|
74 | set showWeekNumber(value: boolean);
|
75 | protected _showWeekNumber: boolean;
|
76 | static ngAcceptInputType_showWeekNumber: NbBooleanInput;
|
77 | |
78 |
|
79 |
|
80 | weekNumberSymbol: string;
|
81 | |
82 |
|
83 |
|
84 |
|
85 | firstDayOfWeek: number | undefined;
|
86 | |
87 |
|
88 |
|
89 | dateChange: EventEmitter<T>;
|
90 | constructor(dateService: NbDateService<D>, yearModelService: NbCalendarYearModelService<D>);
|
91 | ngOnInit(): void;
|
92 | get large(): boolean;
|
93 | ViewMode: typeof NbCalendarViewMode;
|
94 | setViewMode(viewMode: NbCalendarViewMode): void;
|
95 | setVisibleDate(visibleDate: D): void;
|
96 | prevMonth(): void;
|
97 | nextMonth(): void;
|
98 | prevYear(): void;
|
99 | nextYear(): void;
|
100 | prevYears(): void;
|
101 | nextYears(): void;
|
102 | navigatePrev(): void;
|
103 | navigateNext(): void;
|
104 | onChangeViewMode(): void;
|
105 | private changeVisibleMonth;
|
106 | private changeVisibleYear;
|
107 | private changeVisibleYears;
|
108 | static ɵfac: i0.ɵɵFactoryDeclaration<NbBaseCalendarComponent<any, any>, never>;
|
109 | static ɵcmp: i0.ɵɵComponentDeclaration<NbBaseCalendarComponent<any, any>, "nb-base-calendar", never, { "boundingMonth": { "alias": "boundingMonth"; "required": false; }; "activeViewMode": { "alias": "startView"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "dayCellComponent": { "alias": "dayCellComponent"; "required": false; }; "monthCellComponent": { "alias": "monthCellComponent"; "required": false; }; "yearCellComponent": { "alias": "yearCellComponent"; "required": false; }; "size": { "alias": "size"; "required": false; }; "visibleDate": { "alias": "visibleDate"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "date": { "alias": "date"; "required": false; }; "showWeekNumber": { "alias": "showWeekNumber"; "required": false; }; "weekNumberSymbol": { "alias": "weekNumberSymbol"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, false, never>;
|
110 | }
|