UNPKG

@angelblanco/v-calendar

Version:

A calendar and date picker plugin for Vue.js.

50 lines (49 loc) 1.51 kB
import type { Placement } from '@popperjs/core'; import { DateRange, type DateRangeSource } from './date/range'; import { Bar, BarConfig, Content, ContentConfig, Dot, DotConfig, Highlight, HighlightConfig, Profile } from './glyph'; import Locale from './locale'; import type { PopoverVisibility } from './popovers'; import { Theme } from './theme'; export type PopoverConfig = Partial<{ label: string; visibility: PopoverVisibility; placement: Placement; hideIndicator: boolean; isInteractive: boolean; }>; export type EventConfig = Partial<{ label: string; }>; export type AttributeConfig = Partial<{ key: string | number; hashcode: string; content: ContentConfig; highlight: HighlightConfig; dot: DotConfig; bar: BarConfig; popover: PopoverConfig; event: EventConfig; dates: DateRangeSource[]; customData: any; order: number; pinPage: boolean; }>; export declare class Attribute { key: string | number; hashcode: string; highlight: Profile<Highlight> | null; content: Profile<Content> | null; dot: Profile<Dot> | null; bar: Profile<Bar> | null; event: EventConfig | null; popover: PopoverConfig | null; customData: any; ranges: DateRange[]; hasRanges: boolean; order: number; pinPage: boolean; maxRepeatSpan: number; locale: Locale; constructor(config: Partial<AttributeConfig>, theme: Theme, locale: Locale); intersectsRange({ start, end }: DateRange): boolean; }