UNPKG

2.02 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 } from '@angular/core';
7import { NbCalendarCell, NbCalendarSize, NbCalendarSizeValues } from '../calendar-kit/model';
8import { NbCalendarRange } from './calendar-range.component';
9import { NbDateService } from '../calendar-kit/services/date.service';
10import { NbBaseCalendarRangeCell } from './base-calendar-range-cell';
11import * as i0 from "@angular/core";
12export declare class NbCalendarRangeYearCellComponent<D> extends NbBaseCalendarRangeCell<D> implements NbCalendarCell<D, NbCalendarRange<D>> {
13 protected dateService: NbDateService<D>;
14 date: D;
15 min: D;
16 max: D;
17 selectedValue: NbCalendarRange<D>;
18 size: NbCalendarSize;
19 static ngAcceptInputType_size: NbCalendarSizeValues;
20 select: EventEmitter<D>;
21 constructor(dateService: NbDateService<D>);
22 get inRange(): boolean;
23 get rangeStart(): boolean;
24 get rangeEnd(): boolean;
25 get selected(): boolean;
26 get today(): boolean;
27 get disabled(): boolean;
28 get isLarge(): boolean;
29 yearCellClass: boolean;
30 rangeCellClass: boolean;
31 get year(): number;
32 onClick(): void;
33 protected smallerThanMin(): boolean;
34 protected greaterThanMax(): boolean;
35 protected yearStart(): D;
36 protected yearEnd(): D;
37 protected isInRange(date: D, { start, end }: NbCalendarRange<D>): boolean;
38 static ɵfac: i0.ɵɵFactoryDeclaration<NbCalendarRangeYearCellComponent<any>, never>;
39 static ɵcmp: i0.ɵɵComponentDeclaration<NbCalendarRangeYearCellComponent<any>, "nb-calendar-range-year-cell", never, { "date": { "alias": "date"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
40}