/** * @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 { TemplateRef } from '@angular/core'; export interface PanelSelector { className: string; title?: string; label: string; onClick?(): void; } export interface DateCell { value: Date; content: TemplateRef | string; onClick(): void; onMouseEnter(): void; isDisabled: boolean; isSelected: boolean; label?: string; title?: string; cellRender?: TemplateRef | string; fullCellRender?: TemplateRef | string; isToday?: boolean; classMap?: object; } export interface DateBodyRow { dateCells: DateCell[]; isCurrent?: boolean; isActive?: boolean; weekNum?: number; year?: number; classMap?: object; } export interface DayCell extends DateCell { isSelectedStartDate?: boolean; isSelectedEndDate?: boolean; isHoverStartDate?: boolean; isHoverEndDate?: boolean; isInHoverRange?: boolean; isInSelectedRange?: boolean; } export interface DecadeCell extends DateCell { isBiggerThanEnd?: boolean; isLowerThanStart?: boolean; } export interface YearCell extends DateCell { isSameDecade?: boolean; }