仰望星辰工作室

better-staridc-MNBT

Z zfhsh first commit 2 个月前
1// Generated by dts-bundle v0.7.3-fork.1
2// Dependencies for this module:
3// ../../../../../@fullcalendar/core
4// ../../../../../@fullcalendar/daygrid
5
6declare module '@fullcalendar/timegrid' {
7 import AbstractTimeGridView from '@fullcalendar/timegrid/AbstractTimeGridView';
8 import TimeGridView, { buildDayTable } from '@fullcalendar/timegrid/TimeGridView';
9 import { TimeGridSeg } from '@fullcalendar/timegrid/TimeGrid';
10 import { TimeGridSlicer, buildDayRanges } from '@fullcalendar/timegrid/SimpleTimeGrid';
11 export { TimeGridView, AbstractTimeGridView, buildDayTable, buildDayRanges, TimeGridSlicer, TimeGridSeg };
12 export { default as TimeGrid } from '@fullcalendar/timegrid/TimeGrid';
13 const _default: import("@fullcalendar/core").PluginDef;
14 export default _default;
15}
16
17declare module '@fullcalendar/timegrid/AbstractTimeGridView' {
18 import { ScrollComponent, View, ViewSpec, DateProfileGenerator, ComponentContext, Duration } from '@fullcalendar/core';
19 import { DayGrid } from '@fullcalendar/daygrid';
20 import TimeGrid from '@fullcalendar/timegrid/TimeGrid';
21 import AllDaySplitter from '@fullcalendar/timegrid/AllDaySplitter';
22 export { TimeGridView as default, TimeGridView };
23 abstract class TimeGridView extends View {
24 timeGrid: TimeGrid;
25 dayGrid: DayGrid;
26 scroller: ScrollComponent;
27 axisWidth: any;
28 protected splitter: AllDaySplitter;
29 constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
30 destroy(): void;
31 renderSkeletonHtml(): string;
32 getNowIndicatorUnit(): string;
33 unrenderNowIndicator(): void;
34 updateSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
35 updateBaseSize(isResize: any, viewHeight: any, isAuto: any): void;
36 computeScrollerHeight(viewHeight: any): number;
37 computeDateScroll(duration: Duration): {
38 top: any;
39 };
40 queryDateScroll(): {
41 top: number;
42 };
43 applyDateScroll(scroll: any): void;
44 renderHeadIntroHtml: () => string;
45 axisStyleAttr(): string;
46 renderTimeGridBgIntroHtml: () => string;
47 renderTimeGridIntroHtml: () => string;
48 renderDayGridBgIntroHtml: () => string;
49 renderDayGridIntroHtml: () => string;
50 }
51}
52
53declare module '@fullcalendar/timegrid/TimeGridView' {
54 import { DateProfileGenerator, DateProfile, ComponentContext, ViewSpec, DayHeader, DayTable, ViewProps } from '@fullcalendar/core';
55 import { SimpleDayGrid } from '@fullcalendar/daygrid';
56 import SimpleTimeGrid from '@fullcalendar/timegrid/SimpleTimeGrid';
57 import AbstractTimeGridView from '@fullcalendar/timegrid/AbstractTimeGridView';
58 export { TimeGridView as default, TimeGridView };
59 class TimeGridView extends AbstractTimeGridView {
60 header: DayHeader;
61 simpleDayGrid: SimpleDayGrid;
62 simpleTimeGrid: SimpleTimeGrid;
63 constructor(_context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
64 destroy(): void;
65 render(props: ViewProps): void;
66 renderNowIndicator(date: any): void;
67 }
68 export function buildDayTable(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTable;
69}
70
71declare module '@fullcalendar/timegrid/TimeGrid' {
72 import { PositionCache, Duration, DateMarker, DateFormatter, ComponentContext, DateComponent, Seg, EventSegUiInteractionState, DateProfile } from '@fullcalendar/core';
73 export interface RenderProps {
74 renderBgIntroHtml: () => string;
75 renderIntroHtml: () => string;
76 }
77 export interface TimeGridSeg extends Seg {
78 col: number;
79 start: DateMarker;
80 end: DateMarker;
81 }
82 export interface TimeGridCell {
83 date: DateMarker;
84 htmlAttrs?: string;
85 }
86 export interface TimeGridProps {
87 dateProfile: DateProfile;
88 cells: TimeGridCell[];
89 businessHourSegs: TimeGridSeg[];
90 bgEventSegs: TimeGridSeg[];
91 fgEventSegs: TimeGridSeg[];
92 dateSelectionSegs: TimeGridSeg[];
93 eventSelection: string;
94 eventDrag: EventSegUiInteractionState | null;
95 eventResize: EventSegUiInteractionState | null;
96 }
97 export { TimeGrid as default, TimeGrid };
98 class TimeGrid extends DateComponent<TimeGridProps> {
99 renderProps: RenderProps;
100 slotDuration: Duration;
101 snapDuration: Duration;
102 snapsPerSlot: any;
103 labelFormat: DateFormatter;
104 labelInterval: Duration;
105 colCnt: number;
106 colEls: HTMLElement[];
107 slatContainerEl: HTMLElement;
108 slatEls: HTMLElement[];
109 nowIndicatorEls: HTMLElement[];
110 colPositions: PositionCache;
111 slatPositions: PositionCache;
112 isSlatSizesDirty: boolean;
113 isColSizesDirty: boolean;
114 rootBgContainerEl: HTMLElement;
115 bottomRuleEl: HTMLElement;
116 contentSkeletonEl: HTMLElement;
117 colContainerEls: HTMLElement[];
118 fgContainerEls: HTMLElement[];
119 bgContainerEls: HTMLElement[];
120 mirrorContainerEls: HTMLElement[];
121 highlightContainerEls: HTMLElement[];
122 businessContainerEls: HTMLElement[];
123 constructor(context: ComponentContext, el: HTMLElement, renderProps: RenderProps);
124 processOptions(): void;
125 computeLabelInterval(slotDuration: any): any;
126 render(props: TimeGridProps): void;
127 destroy(): void;
128 updateSize(isResize: boolean): void;
129 _renderSlats(dateProfile: DateProfile): void;
130 renderSlatRowHtml(dateProfile: DateProfile): string;
131 _renderColumns(cells: TimeGridCell[], dateProfile: DateProfile): void;
132 _unrenderColumns(): void;
133 renderContentSkeleton(): void;
134 unrenderContentSkeleton(): void;
135 groupSegsByCol(segs: any): any[];
136 attachSegsByCol(segsByCol: any, containerEls: HTMLElement[]): void;
137 getNowIndicatorUnit(): string;
138 renderNowIndicator(segs: TimeGridSeg[], date: any): void;
139 unrenderNowIndicator(): void;
140 getTotalSlatHeight(): number;
141 computeDateTop(when: DateMarker, startOfDayDate?: DateMarker): any;
142 computeTimeTop(duration: Duration): any;
143 computeSegVerticals(segs: any): void;
144 assignSegVerticals(segs: any): void;
145 generateSegVerticalCss(seg: any): {
146 top: any;
147 bottom: number;
148 };
149 buildPositionCaches(): void;
150 buildColPositions(): void;
151 buildSlatPositions(): void;
152 positionToHit(positionLeft: any, positionTop: any): {
153 col: any;
154 dateSpan: {
155 range: {
156 start: Date;
157 end: Date;
158 };
159 allDay: boolean;
160 };
161 dayEl: HTMLElement;
162 relativeRect: {
163 left: any;
164 right: any;
165 top: any;
166 bottom: any;
167 };
168 };
169 _renderEventDrag(state: EventSegUiInteractionState): void;
170 _unrenderEventDrag(state: EventSegUiInteractionState): void;
171 _renderEventResize(state: EventSegUiInteractionState): void;
172 _unrenderEventResize(state: EventSegUiInteractionState): void;
173 _renderDateSelection(segs: Seg[]): void;
174 _unrenderDateSelection(segs: Seg[]): void;
175 }
176}
177
178declare module '@fullcalendar/timegrid/SimpleTimeGrid' {
179 import { DateComponent, DateProfile, EventStore, EventUiHash, EventInteractionState, DateSpan, DateRange, DayTable, DateEnv, DateMarker, Slicer, Hit, ComponentContext } from '@fullcalendar/core';
180 import TimeGrid, { TimeGridSeg } from '@fullcalendar/timegrid/TimeGrid';
181 export interface SimpleTimeGridProps {
182 dateProfile: DateProfile | null;
183 dayTable: DayTable;
184 businessHours: EventStore;
185 eventStore: EventStore;
186 eventUiBases: EventUiHash;
187 dateSelection: DateSpan | null;
188 eventSelection: string;
189 eventDrag: EventInteractionState | null;
190 eventResize: EventInteractionState | null;
191 }
192 export { SimpleTimeGrid as default, SimpleTimeGrid };
193 class SimpleTimeGrid extends DateComponent<SimpleTimeGridProps> {
194 timeGrid: TimeGrid;
195 constructor(context: ComponentContext, timeGrid: TimeGrid);
196 destroy(): void;
197 render(props: SimpleTimeGridProps): void;
198 renderNowIndicator(date: DateMarker): void;
199 buildPositionCaches(): void;
200 queryHit(positionLeft: number, positionTop: number): Hit;
201 }
202 export function buildDayRanges(dayTable: DayTable, dateProfile: DateProfile, dateEnv: DateEnv): DateRange[];
203 export class TimeGridSlicer extends Slicer<TimeGridSeg, [DateRange[]]> {
204 sliceRange(range: DateRange, dayRanges: DateRange[]): TimeGridSeg[];
205 }
206}
207
208declare module '@fullcalendar/timegrid/AllDaySplitter' {
209 import { Splitter, EventDef, DateSpan } from '@fullcalendar/core';
210 export { AllDaySplitter as default, AllDaySplitter };
211 class AllDaySplitter extends Splitter {
212 getKeyInfo(): {
213 allDay: {};
214 timed: {};
215 };
216 getKeysForDateSpan(dateSpan: DateSpan): string[];
217 getKeysForEventDef(eventDef: EventDef): string[];
218 }
219}