UNPKG

799 BTypeScriptView 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 } from '@angular/core';
7export interface NbCalendarDay {
8 name: string;
9 isHoliday: boolean;
10}
11export type NbCalendarViewModeValues = 'year' | 'month' | 'date';
12export declare enum NbCalendarViewMode {
13 YEAR = "year",
14 MONTH = "month",
15 DATE = "date"
16}
17export type NbCalendarSizeValues = 'medium' | 'large';
18export declare enum NbCalendarSize {
19 MEDIUM = "medium",
20 LARGE = "large"
21}
22export interface NbCalendarCell<D, T> {
23 date: D;
24 select: EventEmitter<D>;
25 selectedValue?: T;
26 visibleDate?: D;
27 min?: D;
28 max?: D;
29 filter?: (D: any) => boolean;
30 size?: NbCalendarSize;
31}