UNPKG

ethio-calendar-converter-angular

Version:
42 lines (41 loc) 1.81 kB
import { EventEmitter } from '@angular/core'; import { EthiopianCalendarService } from './ethiopian-calendar.service'; import { EthiopianDate, GregorianDate } from './models/calendar.model'; import * as i0 from "@angular/core"; export declare class EthiopianCalendarComponent { private calendarService; ethiopianDate: EthiopianDate; gregorianDate: GregorianDate; lastConversion: string; showEthiopianPicker: boolean; ethiopianMonths: { value: number; label: string; }[]; get ethiopianYears(): number[]; ethiopianDateChange: EventEmitter<EthiopianDate>; gregorianDateChange: EventEmitter<GregorianDate>; constructor(calendarService: EthiopianCalendarService); toggleEthiopianPicker(): void; getEthiopianDays(): number[]; applyEthiopianDate(): void; formatEthiopianDateForDisplay(date: EthiopianDate): string; convertToGregorian(): void; convertToEthiopian(): void; onGregorianDateSelected(event: any): void; formatDate(date: EthiopianDate | GregorianDate): string; formatDateForInput(date: GregorianDate): string; formatGregorianDate(date: GregorianDate): string; weekDays: string[]; previousMonth(): void; nextMonth(): void; getDaysArray(): number[]; getFirstDayOffset(): number; getDayClasses(day: number): string; selectDay(day: number): void; selectToday(): void; updateEthiopianDate(): void; formatEthiopianDateForInput(date: EthiopianDate): string; static ɵfac: i0.ɵɵFactoryDeclaration<EthiopianCalendarComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<EthiopianCalendarComponent, "ethiopian-calendar", never, {}, { "ethiopianDateChange": "ethiopianDateChange"; "gregorianDateChange": "gregorianDateChange"; }, never, never, true, never>; }