UNPKG

3.5 kBTypeScriptView Raw
1import { C as CalendarImpl, a as CalendarOptions, N as NativeFormatterOptions, D as DateInput, P as PluginDefInput, b as PluginDef, L as LocaleInput } from './internal-common.js';
2export { T as AllDayContentArg, U as AllDayMountArg, A as AllowFunc, B as BusinessHoursInput, ah as ButtonHintCompoundInput, a8 as ButtonIconsInput, a9 as ButtonTextCompoundInput, c as CalendarApi, f as CalendarListeners, a as CalendarOptions, u as ClassNamesGenerator, q as ConstraintInput, o as CssDimValue, a7 as CustomButtonInput, v as CustomContentGenerator, ai as CustomRenderingHandler, aj as CustomRenderingStore, D as DateInput, al as DatePointApi, i as DateRangeInput, a3 as DateSelectArg, am as DateSelectionApi, ak as DateSpanApi, h as DateSpanInput, a4 as DateUnselectArg, ac as DatesSetArg, Z as DayCellContentArg, _ as DayCellMountArg, X as DayHeaderContentArg, Y as DayHeaderMountArg, w as DidMountHandler, an as Duration, g as DurationInput, ad as EventAddArg, d as EventApi, ae as EventChangeArg, a1 as EventClickArg, aa as EventContentArg, af as EventDropArg, a2 as EventHoveringArg, m as EventInput, n as EventInputTransformer, ab as EventMountArg, ag as EventRemoveArg, e as EventRenderRange, ao as EventSegment, E as EventSourceApi, k as EventSourceFunc, l as EventSourceFuncArg, j as EventSourceInput, F as FormatterInput, J as JsonRequestError, L as LocaleInput, p as LocaleSingularArg, ap as MoreLinkAction, ar as MoreLinkArg, M as MoreLinkContentArg, as as MoreLinkHandler, H as MoreLinkMountArg, aq as MoreLinkSimpleAction, x as NowIndicatorContentArg, y as NowIndicatorMountArg, O as OverlapFunc, b as PluginDef, P as PluginDefInput, Q as SlotLabelContentArg, R as SlotLabelMountArg, I as SlotLaneContentArg, K as SlotLaneMountArg, S as SpecificViewContentArg, t as SpecificViewMountArg, a6 as ToolbarInput, V as ViewApi, r as ViewComponentType, $ as ViewContentArg, a0 as ViewMountArg, a5 as WeekNumberCalculation, z as WeekNumberContentArg, G as WeekNumberMountArg, W as WillUnmountHandler, s as sliceEvents } from './internal-common.js';
3import 'preact';
4import './preact.js';
5import './index.js';
6
7declare class Calendar extends CalendarImpl {
8 el: HTMLElement;
9 private currentData;
10 private renderRunner;
11 private isRendering;
12 private isRendered;
13 private currentClassNames;
14 private customContentRenderId;
15 constructor(el: HTMLElement, optionOverrides?: CalendarOptions);
16 private handleAction;
17 private handleData;
18 private handleRenderRequest;
19 render(): void;
20 destroy(): void;
21 updateSize(): void;
22 batchRendering(func: any): void;
23 pauseRendering(): void;
24 resumeRendering(): void;
25 resetOptions(optionOverrides: any, changedOptionNames?: string[]): void;
26 private setClassNames;
27 private setHeight;
28}
29
30interface FormatDateOptions extends NativeFormatterOptions {
31 locale?: string;
32}
33interface FormatRangeOptions extends FormatDateOptions {
34 separator?: string;
35 isEndExclusive?: boolean;
36}
37declare function formatDate(dateInput: DateInput, options?: FormatDateOptions): string;
38declare function formatRange(startInput: DateInput, endInput: DateInput, options: FormatRangeOptions): string;
39
40declare function createPlugin(input: PluginDefInput): PluginDef;
41
42declare const globalLocales: LocaleInput[];
43
44declare const globalPlugins: PluginDef[];
45
46declare const version: string;
47
48export { Calendar, FormatDateOptions, FormatRangeOptions, createPlugin, formatDate, formatRange, globalLocales, globalPlugins, version };