UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

61 lines (60 loc) 2.34 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { CandyDate } from 'ng-zorro-antd/core/time'; import { BooleanInput } from 'ng-zorro-antd/core/types'; declare type NzCalendarMode = 'month' | 'year'; declare type NzCalendarDateTemplate = TemplateRef<{ $implicit: Date; }>; export declare class NzCalendarComponent implements ControlValueAccessor, OnChanges { private cdr; static ngAcceptInputType_nzFullscreen: BooleanInput; activeDate: CandyDate; prefixCls: string; private onChangeFn; private onTouchFn; nzMode: NzCalendarMode; nzValue: Date; readonly nzModeChange: EventEmitter<NzCalendarMode>; readonly nzPanelChange: EventEmitter<{ date: Date; mode: NzCalendarMode; }>; readonly nzSelectChange: EventEmitter<Date>; readonly nzValueChange: EventEmitter<Date>; /** * Cannot use @Input and @ContentChild on one variable * because { static: false } will make @Input property get delayed **/ nzDateCell: NzCalendarDateTemplate; nzDateCellChild: NzCalendarDateTemplate; get dateCell(): NzCalendarDateTemplate; nzDateFullCell: NzCalendarDateTemplate; nzDateFullCellChild: NzCalendarDateTemplate; get dateFullCell(): NzCalendarDateTemplate; nzMonthCell: NzCalendarDateTemplate; nzMonthCellChild: NzCalendarDateTemplate; get monthCell(): NzCalendarDateTemplate; nzMonthFullCell: NzCalendarDateTemplate; nzMonthFullCellChild: NzCalendarDateTemplate; get monthFullCell(): NzCalendarDateTemplate; nzFullscreen: boolean; constructor(cdr: ChangeDetectorRef); onModeChange(mode: NzCalendarMode): void; onYearSelect(year: number): void; onMonthSelect(month: number): void; onDateSelect(date: CandyDate): void; writeValue(value: Date | null): void; registerOnChange(fn: (date: Date) => void): void; registerOnTouched(fn: () => void): void; private updateDate; ngOnChanges(changes: SimpleChanges): void; } export {};