UNPKG

1.18 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { EventEmitter, OnChanges, Type, SimpleChanges } from '@angular/core';
7import { NbCalendarCell, NbCalendarSize, NbCalendarSizeValues } from '../../model';
8import { NbDateService } from '../../services/date.service';
9export declare const MONTHS_IN_VIEW = 12;
10export declare const MONTHS_IN_COLUMN = 4;
11export declare class NbCalendarMonthPickerComponent<D, T> implements OnChanges {
12 protected dateService: NbDateService<D>;
13 min: D;
14 max: D;
15 filter: (D: any) => boolean;
16 size: NbCalendarSize;
17 static ngAcceptInputType_size: NbCalendarSizeValues;
18 /**
19 * Visible month
20 **/
21 month: D;
22 /**
23 * Selected date
24 **/
25 date: D;
26 monthChange: EventEmitter<D>;
27 months: D[][];
28 constructor(dateService: NbDateService<D>);
29 set _cellComponent(cellComponent: Type<NbCalendarCell<D, T>>);
30 cellComponent: Type<NbCalendarCell<any, any>>;
31 get large(): boolean;
32 ngOnChanges(changes: SimpleChanges): void;
33 initMonths(): void;
34 onSelect(month: D): void;
35}