UNPKG

ngx-jalali-date-picker

Version:

This is a configurable date-picker build for Angular applications. Supports latest (Angular 18) version. This date-picker is based on ng2-date-piker and ngx-jalali-date-picker date pickers.

33 lines (32 loc) 1.76 kB
import { Moment } from 'jalali-moment'; import { WeekDays } from '../common/types/week-days.type'; import { UtilsService } from '../common/services/utils/utils.service'; import { IDay } from './day.model'; import { IDayCalendarConfig, IDayCalendarConfigInternal } from './day-calendar-config.model'; import { IMonthCalendarConfig } from '../month-calendar/month-calendar-config'; import * as i0 from "@angular/core"; export declare class DayCalendarService { private utilsService; readonly DEFAULT_CONFIG: IDayCalendarConfig; private readonly DAYS; constructor(utilsService: UtilsService); getConfig(config: IDayCalendarConfig): IDayCalendarConfigInternal; generateDaysMap(firstDayOfWeek: WeekDays): { [key: string]: number; }; generateMonthArray(config: IDayCalendarConfigInternal, month: Moment, selected: Moment[]): IDay[][]; generateWeekdays(firstDayOfWeek: WeekDays, locale?: string): Moment[]; isDateDisabled(date: Moment, config: IDayCalendarConfigInternal): boolean; getHeaderLabel(config: IDayCalendarConfigInternal, month: Moment): string; shouldShowLeft(min: Moment, currentMonthView: Moment): boolean; shouldShowRight(max: Moment, currentMonthView: Moment): boolean; generateDaysIndexMap(firstDayOfWeek: WeekDays): { [key: number]: string; }; getMonthCalendarConfig(componentConfig: IDayCalendarConfigInternal): IMonthCalendarConfig; getDayBtnText(config: IDayCalendarConfigInternal, day: Moment): string; getDayBtnCssClass(config: IDayCalendarConfigInternal, day: Moment): string; private removeNearMonthWeeks; static ɵfac: i0.ɵɵFactoryDeclaration<DayCalendarService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DayCalendarService>; }