UNPKG

ng-jalali-date-time

Version:

Jalali date / month / range picker for Angular with Material Design support

39 lines (38 loc) 2.35 kB
import { JalaliLocale } from './shared/jalali.locale'; import { JalaliCalendarInterface } from './shared/jalali.interface'; import { NgJalaliDateTimeValueInterface } from './component/ng-jalali-date-time/ng-jalali-date-time.interface'; import { NgJalaliMonthValueInterface } from './component/ng-jalali-month/ng-jalali-month.interface'; import { NgJalaliRangeValueInterface } from './component/ng-jalali-range/ng-jalali-range.interface'; import { NgJalaliDateTimeCssInterface } from './ng-jalali-date-time.interface'; export declare class NgJalaliDateTimeService { jalali: { now: typeof import("jalali-date-time/dist/lib/now").now; toDate: typeof import("jalali-date-time/dist/lib/date").toDate; toTime: typeof import("jalali-date-time/dist/lib/time").toTime; toString: typeof import("jalali-date-time/dist/lib/string").toString; toTitle: typeof import("jalali-date-time/dist/lib/title").toTitle; toFullText: typeof import("jalali-date-time/dist/lib/full-text").toFullText; toObject: typeof import("jalali-date-time/dist/lib/object").toObject; daysInMonth: typeof import("jalali-date-time/dist/lib/days-in-month").daysInMonth; calendar: typeof import("jalali-date-time/dist/lib/calendar").calendar; gregorian: typeof import("jalali-date-time/dist/lib/gregorian").gregorian; timezones: typeof import("jalali-date-time/dist/lib/timezones").timezones; }; jalaliLocale: JalaliLocale; constructor(); checkDate(date: string): string; checkTime(time: string): string; checkMonth(date: string): string; checkAppearance(appearance: string): string; private setFontCSS; checkCSS(css: NgJalaliDateTimeCssInterface): NgJalaliDateTimeCssInterface; jalaliToGregorian(jalali: string, time?: string): Date; getCalendar(month: string): JalaliCalendarInterface; getDayInMonth(month: string): number; getDateTimeValue(jalali: string, time: string): NgJalaliDateTimeValueInterface; getDateTimeTitle(value: NgJalaliDateTimeValueInterface, time: boolean): string; getMonthValue(month: string): NgJalaliMonthValueInterface; getMonthTitle(value: NgJalaliMonthValueInterface): string; getRangeValue(from: string, to: string): NgJalaliRangeValueInterface; getRangeTitle(value: NgJalaliRangeValueInterface): string; }