datepicker-inner.component.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
  2. import { DateFormatter } from './date-formatter';
  3. export declare class DatePickerInnerComponent implements OnInit, OnChanges {
  4. locale: string;
  5. datepickerMode: string;
  6. startingDay: number;
  7. yearRange: number;
  8. minDate: Date;
  9. maxDate: Date;
  10. minMode: string;
  11. maxMode: string;
  12. showWeeks: boolean;
  13. formatDay: string;
  14. formatMonth: string;
  15. formatYear: string;
  16. formatDayHeader: string;
  17. formatDayTitle: string;
  18. formatMonthTitle: string;
  19. onlyCurrentMonth: boolean;
  20. shortcutPropagation: boolean;
  21. customClass: {
  22. date: Date;
  23. mode: string;
  24. clazz: string;
  25. }[];
  26. monthColLimit: number;
  27. yearColLimit: number;
  28. dateDisabled: {
  29. date: Date;
  30. mode: string;
  31. }[];
  32. dayDisabled: number[];
  33. initDate: Date;
  34. selectionDone: EventEmitter<Date>;
  35. update: EventEmitter<Date>;
  36. activeDateChange: EventEmitter<Date>;
  37. stepDay: any;
  38. stepMonth: any;
  39. stepYear: any;
  40. uniqueId: string;
  41. protected modes: string[];
  42. protected dateFormatter: DateFormatter;
  43. protected _activeDate: Date;
  44. protected selectedDate: Date;
  45. protected activeDateId: string;
  46. protected refreshViewHandlerDay: Function;
  47. protected compareHandlerDay: Function;
  48. protected refreshViewHandlerMonth: Function;
  49. protected compareHandlerMonth: Function;
  50. protected refreshViewHandlerYear: Function;
  51. protected compareHandlerYear: Function;
  52. activeDate: Date;
  53. ngOnInit(): void;
  54. ngOnChanges(changes: SimpleChanges): void;
  55. checkIfActiveDateGotUpdated(activeDate: any): void;
  56. setCompareHandler(handler: Function, type: string): void;
  57. compare(date1: Date, date2: Date): number | undefined;
  58. setRefreshViewHandler(handler: Function, type: string): void;
  59. refreshView(): void;
  60. dateFilter(date: Date, format: string): string;
  61. isActive(dateObject: any): boolean;
  62. createDateObject(date: Date, format: string): any;
  63. split(arr: any[], size: number): any[];
  64. fixTimeZone(date: Date): Date;
  65. select(date: Date, isManual?: boolean): void;
  66. move(direction: number): void;
  67. toggleMode(_direction: number): void;
  68. protected getCustomClassForDate(date: Date): string;
  69. protected compareDateDisabled(date1Disabled: {
  70. date: Date;
  71. mode: string;
  72. }, date2: Date): number;
  73. protected isDisabled(date: Date): boolean;
  74. }