UNPKG

angular-material-jalali-datepicker-adapter

Version:
31 lines (30 loc) 1.31 kB
import { DateAdapter } from '@angular/material/core'; import { JalaliDateService } from './jalali-date.service'; export declare class MaterialJalaliStringDateAdapter extends DateAdapter<string> { invalid(): string; dateService: JalaliDateService; private getDateParts; getYear(date: string): number; getMonth(date: string): number; getDate(date: string): number; getDayOfWeek(date: string): number; getMonthNames(_style: 'long' | 'short' | 'narrow'): string[]; getDateNames(): string[]; private _dateNames?; getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[]; getYearName(date: string): string; getFirstDayOfWeek(): number; getNumDaysInMonth(date: string): number; clone(date: string): string; createDate(year: number, month: number, date: number): string; today(): string; parse(value: any, parseFormat: string): string | null; format(date: string, displayFormat: string): string; addCalendarYears(date: string, years: number): string; addCalendarMonths(date: string, months: number): string; addCalendarDays(date: string, days: number): string; toIso8601(date: string): string; isDateInstance(obj: any): boolean; isValid(date: string | null): boolean; deserialize(value: any): string | null; }