interface.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { TemplateRef } from '@angular/core';
  6. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  7. export interface PanelSelector {
  8. className: string;
  9. title?: string;
  10. label: string;
  11. onClick(): void;
  12. }
  13. export interface DateCell {
  14. trackByIndex: NzSafeAny;
  15. value: Date;
  16. content: TemplateRef<Date> | string;
  17. onClick(): void;
  18. onMouseEnter(): void;
  19. isDisabled: boolean;
  20. isSelected: boolean;
  21. label?: string;
  22. title?: string;
  23. cellRender?: TemplateRef<Date> | string;
  24. fullCellRender?: TemplateRef<Date> | string;
  25. isToday?: boolean;
  26. classMap?: object;
  27. isStartSingle?: boolean;
  28. isEndSingle?: boolean;
  29. isSelectedStart?: boolean;
  30. isSelectedEnd?: boolean;
  31. isHoverStart?: boolean;
  32. isHoverEnd?: boolean;
  33. isInHoverRange?: boolean;
  34. isInSelectedRange?: boolean;
  35. isRangeStartNearHover?: boolean;
  36. isRangeEndNearHover?: boolean;
  37. isFirstCellInPanel?: boolean;
  38. isLastCellInPanel?: boolean;
  39. }
  40. export interface DateBodyRow {
  41. trackByIndex: NzSafeAny;
  42. dateCells: DateCell[];
  43. isActive?: boolean;
  44. weekNum?: number;
  45. classMap?: object;
  46. }
  47. export interface DecadeCell extends DateCell {
  48. isBiggerThanEnd?: boolean;
  49. isLowerThanStart?: boolean;
  50. }
  51. export interface YearCell extends DateCell {
  52. isSameDecade?: boolean;
  53. }