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.

26 lines (25 loc) 1.58 kB
import { Moment } from 'jalali-moment'; import { UtilsService } from '../common/services/utils/utils.service'; import { ITimeSelectConfig, ITimeSelectConfigInternal } from './time-select-config.model'; import * as i0 from "@angular/core"; export type TimeUnit = 'hour' | 'minute' | 'second'; export declare const FIRST_PM_HOUR = 12; export declare class TimeSelectService { private readonly utilsService; readonly DEFAULT_CONFIG: ITimeSelectConfigInternal; constructor(utilsService: UtilsService); getConfig(config: ITimeSelectConfig): ITimeSelectConfigInternal; getTimeFormat(config: ITimeSelectConfigInternal): string; getHours(config: ITimeSelectConfigInternal, t: Moment | null): string; getMinutes(config: ITimeSelectConfigInternal, t: Moment | null): string; getSeconds(config: ITimeSelectConfigInternal, t: Moment | null): string; getMeridiem(config: ITimeSelectConfigInternal, time: Moment): string; decrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment; increase(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment; toggleMeridiem(time: Moment): Moment; shouldShowDecrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean; shouldShowIncrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean; shouldShowToggleMeridiem(config: ITimeSelectConfigInternal, time: Moment): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<TimeSelectService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TimeSelectService>; }