main.d.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. // Generated by dts-bundle v0.7.3-fork.1
  2. // Dependencies for this module:
  3. // ../../../../../@fullcalendar/core
  4. declare module '@fullcalendar/timeline' {
  5. import TimelineView from '@fullcalendar/timeline/TimelineView';
  6. export { TimelineView };
  7. export { default as TimelineLane } from '@fullcalendar/timeline/TimelineLane';
  8. export { default as ScrollJoiner } from '@fullcalendar/timeline/util/ScrollJoiner';
  9. export { default as StickyScroller } from '@fullcalendar/timeline/util/StickyScroller';
  10. export { default as TimeAxis } from '@fullcalendar/timeline/TimeAxis';
  11. export { default as HeaderBodyLayout } from '@fullcalendar/timeline/HeaderBodyLayout';
  12. const _default: import("@fullcalendar/core").PluginDef;
  13. export default _default;
  14. }
  15. declare module '@fullcalendar/timeline/TimelineView' {
  16. import { Hit, View, ViewProps, ComponentContext, DateProfile, Duration, DateProfileGenerator } from '@fullcalendar/core';
  17. import TimeAxis from '@fullcalendar/timeline/TimeAxis';
  18. import TimelineLane from '@fullcalendar/timeline/TimelineLane';
  19. export { TimelineView as default, TimelineView };
  20. class TimelineView extends View {
  21. timeAxis: TimeAxis;
  22. lane: TimelineLane;
  23. _startInteractive(timeAxisEl: HTMLElement): void;
  24. _stopInteractive(): void;
  25. render(props: ViewProps, context: ComponentContext): void;
  26. destroy(): void;
  27. _renderSkeleton(context: ComponentContext): void;
  28. _unrenderSkeleton(): void;
  29. renderSkeletonHtml(): string;
  30. updateSize(isResize: any, totalHeight: any, isAuto: any): void;
  31. getNowIndicatorUnit(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): string;
  32. renderNowIndicator(date: any): void;
  33. unrenderNowIndicator(): void;
  34. computeDateScroll(duration: Duration): {
  35. left: number;
  36. };
  37. applyScroll(scroll: any, isResize: any): void;
  38. applyDateScroll(scroll: any): void;
  39. queryScroll(): {
  40. top: number;
  41. left: number;
  42. };
  43. buildPositionCaches(): void;
  44. queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit;
  45. }
  46. }
  47. declare module '@fullcalendar/timeline/TimelineLane' {
  48. import { Duration, EventStore, EventUiHash, DateMarker, DateSpan, EventInteractionState, EventSegUiInteractionState, DateComponent, ComponentContext, Seg, DateProfile } from '@fullcalendar/core';
  49. import TimeAxis from '@fullcalendar/timeline/TimeAxis';
  50. export interface TimelineLaneSeg extends Seg {
  51. start: DateMarker;
  52. end: DateMarker;
  53. }
  54. export interface TimelineLaneProps {
  55. dateProfile: DateProfile;
  56. nextDayThreshold: Duration;
  57. businessHours: EventStore | null;
  58. eventStore: EventStore | null;
  59. eventUiBases: EventUiHash;
  60. dateSelection: DateSpan | null;
  61. eventSelection: string;
  62. eventDrag: EventInteractionState | null;
  63. eventResize: EventInteractionState | null;
  64. }
  65. export { TimelineLane as default, TimelineLane };
  66. class TimelineLane extends DateComponent<TimelineLaneProps> {
  67. fgContainerEl: HTMLElement;
  68. timeAxis: TimeAxis;
  69. constructor(fgContainerEl: HTMLElement, bgContainerEl: HTMLElement, timeAxis: TimeAxis);
  70. render(props: TimelineLaneProps, context: ComponentContext): void;
  71. destroy(): void;
  72. _renderEventDrag(state: EventSegUiInteractionState): void;
  73. _unrenderEventDrag(state: EventSegUiInteractionState): void;
  74. _renderEventResize(state: EventSegUiInteractionState): void;
  75. _unrenderEventResize(state: EventSegUiInteractionState): void;
  76. updateSize(isResize: boolean): void;
  77. }
  78. }
  79. declare module '@fullcalendar/timeline/util/ScrollJoiner' {
  80. import ClippedScroller from '@fullcalendar/timeline/util/ClippedScroller';
  81. export { ScrollJoiner as default, ScrollJoiner };
  82. class ScrollJoiner {
  83. axis: any;
  84. scrollers: ClippedScroller[];
  85. masterScroller: ClippedScroller;
  86. constructor(axis: any, scrollers: ClippedScroller[]);
  87. initScroller(scroller: ClippedScroller): void;
  88. assignMasterScroller(scroller: any): void;
  89. unassignMasterScroller(): void;
  90. update(): void;
  91. }
  92. }
  93. declare module '@fullcalendar/timeline/util/StickyScroller' {
  94. import { Rect, Point } from '@fullcalendar/core';
  95. import EnhancedScroller from '@fullcalendar/timeline/util/EnhancedScroller';
  96. interface ElementGeom {
  97. parentBound: Rect;
  98. naturalBound: Rect | null;
  99. elWidth: number;
  100. elHeight: number;
  101. computedTextAlign: string;
  102. intendedTextAlign: string;
  103. }
  104. export { StickyScroller as default, StickyScroller };
  105. class StickyScroller {
  106. scroller: EnhancedScroller;
  107. usingRelative: boolean | null;
  108. constructor(scroller: EnhancedScroller, isRtl: boolean, isVertical: boolean);
  109. destroy(): void;
  110. updateSize: () => void;
  111. queryElGeoms(els: HTMLElement[]): ElementGeom[];
  112. computeElDestinations(elGeoms: ElementGeom[], viewportWidth: number): Point[];
  113. }
  114. export {};
  115. }
  116. declare module '@fullcalendar/timeline/TimeAxis' {
  117. import { DateProfile, DateMarker, Component, ComponentContext, Duration, DateProfileGenerator } from '@fullcalendar/core';
  118. import HeaderBodyLayout from '@fullcalendar/timeline/HeaderBodyLayout';
  119. import TimelineHeader from '@fullcalendar/timeline/TimelineHeader';
  120. import TimelineSlats from '@fullcalendar/timeline/TimelineSlats';
  121. import { TimelineDateProfile } from '@fullcalendar/timeline/timeline-date-profile';
  122. import TimelineNowIndicator from '@fullcalendar/timeline/TimelineNowIndicator';
  123. import StickyScroller from '@fullcalendar/timeline/util/StickyScroller';
  124. export interface TimeAxisProps {
  125. dateProfileGenerator: DateProfileGenerator;
  126. dateProfile: DateProfile;
  127. }
  128. export { TimeAxis as default, TimeAxis };
  129. class TimeAxis extends Component<TimeAxisProps> {
  130. layout: HeaderBodyLayout;
  131. header: TimelineHeader;
  132. slats: TimelineSlats;
  133. nowIndicator: TimelineNowIndicator;
  134. headStickyScroller: StickyScroller;
  135. bodyStickyScroller: StickyScroller;
  136. tDateProfile: TimelineDateProfile;
  137. constructor(headerContainerEl: any, bodyContainerEl: any);
  138. render(props: TimeAxisProps, context: ComponentContext): void;
  139. destroy(): void;
  140. _renderSkeleton(context: ComponentContext): void;
  141. _unrenderSkeleton(): void;
  142. getNowIndicatorUnit(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): string;
  143. renderNowIndicator(date: any): void;
  144. unrenderNowIndicator(): void;
  145. updateSize(isResize: any, totalHeight: any, isAuto: any): void;
  146. updateStickyScrollers(): void;
  147. computeSlotWidth(): any;
  148. computeDefaultSlotWidth(tDateProfile: any): number;
  149. applySlotWidth(slotWidth: number | string): void;
  150. computeDateSnapCoverage(date: DateMarker): number;
  151. dateToCoord(date: any): any;
  152. rangeToCoords(range: any): {
  153. right: any;
  154. left: any;
  155. };
  156. computeDateScroll(duration: Duration): {
  157. left: number;
  158. };
  159. queryDateScroll(): {
  160. left: number;
  161. };
  162. applyDateScroll(scroll: any): void;
  163. }
  164. }
  165. declare module '@fullcalendar/timeline/HeaderBodyLayout' {
  166. import ClippedScroller from '@fullcalendar/timeline/util/ClippedScroller';
  167. import ScrollJoiner from '@fullcalendar/timeline/util/ScrollJoiner';
  168. export { HeaderBodyLayout as default, HeaderBodyLayout };
  169. class HeaderBodyLayout {
  170. headerScroller: ClippedScroller;
  171. bodyScroller: ClippedScroller;
  172. scrollJoiner: ScrollJoiner;
  173. constructor(headerContainerEl: any, bodyContainerEl: any, verticalScroll: any);
  174. destroy(): void;
  175. setHeight(totalHeight: any, isAuto: any): void;
  176. queryHeadHeight(): number;
  177. }
  178. }
  179. declare module '@fullcalendar/timeline/util/ClippedScroller' {
  180. import { ScrollbarWidths } from '@fullcalendar/core';
  181. import EnhancedScroller from '@fullcalendar/timeline/util/EnhancedScroller';
  182. export { ClippedScroller as default, ClippedScroller };
  183. class ClippedScroller {
  184. el: HTMLElement;
  185. enhancedScroll: EnhancedScroller;
  186. isHScrollbarsClipped: boolean;
  187. isVScrollbarsClipped: boolean;
  188. constructor(overflowX: string, overflowY: string, parentEl: HTMLElement);
  189. destroy(): void;
  190. updateSize(): void;
  191. setHeight(height: number | string): void;
  192. getScrollbarWidths(): ScrollbarWidths;
  193. }
  194. }
  195. declare module '@fullcalendar/timeline/util/EnhancedScroller' {
  196. import { ScrollComponent, EmitterInterface } from '@fullcalendar/core';
  197. import ScrollerCanvas from '@fullcalendar/timeline/util/ScrollerCanvas';
  198. export { EnhancedScroller as default, EnhancedScroller };
  199. class EnhancedScroller extends ScrollComponent {
  200. on: EmitterInterface['on'];
  201. one: EmitterInterface['one'];
  202. off: EmitterInterface['off'];
  203. trigger: EmitterInterface['trigger'];
  204. triggerWith: EmitterInterface['triggerWith'];
  205. hasHandlers: EmitterInterface['hasHandlers'];
  206. canvas: ScrollerCanvas;
  207. isScrolling: boolean;
  208. isTouching: boolean;
  209. isMoving: boolean;
  210. isTouchScrollEnabled: boolean;
  211. preventTouchScrollHandler: any;
  212. requestMovingEnd: any;
  213. constructor(overflowX: string, overflowY: string);
  214. destroy(): void;
  215. disableTouchScroll(): void;
  216. enableTouchScroll(): void;
  217. bindPreventTouchScroll(): void;
  218. unbindPreventTouchScroll(): void;
  219. bindHandlers(): void;
  220. unbindHandlers(): void;
  221. reportScroll: () => void;
  222. reportScrollStart: () => void;
  223. reportMovingEnd(): void;
  224. reportScrollEnd(): void;
  225. reportTouchStart: () => void;
  226. reportTouchEnd: () => void;
  227. getScrollLeft(): number;
  228. setScrollLeft(val: any): void;
  229. getScrollFromLeft(): number;
  230. }
  231. }
  232. declare module '@fullcalendar/timeline/TimelineHeader' {
  233. import { Component, ComponentContext, DateProfile } from '@fullcalendar/core';
  234. import { TimelineDateProfile } from '@fullcalendar/timeline/timeline-date-profile';
  235. export interface TimelineHeaderProps {
  236. dateProfile: DateProfile;
  237. tDateProfile: TimelineDateProfile;
  238. }
  239. export { TimelineHeader as default, TimelineHeader };
  240. class TimelineHeader extends Component<TimelineHeaderProps> {
  241. parentEl: HTMLElement;
  242. tableEl: HTMLElement;
  243. slatColEls: HTMLElement[];
  244. innerEls: HTMLElement[];
  245. constructor(parentEl: HTMLElement);
  246. firstContext(context: ComponentContext): void;
  247. destroy(): void;
  248. render(props: TimelineHeaderProps): void;
  249. renderDates(tDateProfile: TimelineDateProfile): void;
  250. }
  251. }
  252. declare module '@fullcalendar/timeline/TimelineSlats' {
  253. import { PositionCache, Component, DateProfile } from '@fullcalendar/core';
  254. import { TimelineDateProfile } from '@fullcalendar/timeline/timeline-date-profile';
  255. export interface TimelineSlatsProps {
  256. dateProfile: DateProfile;
  257. tDateProfile: TimelineDateProfile;
  258. }
  259. export { TimelineSlats as default, TimelineSlats };
  260. class TimelineSlats extends Component<TimelineSlatsProps> {
  261. el: HTMLElement;
  262. slatColEls: HTMLElement[];
  263. slatEls: HTMLElement[];
  264. outerCoordCache: PositionCache;
  265. innerCoordCache: PositionCache;
  266. constructor(parentEl: HTMLElement);
  267. destroy(): void;
  268. render(props: TimelineSlatsProps): void;
  269. renderDates(tDateProfile: TimelineDateProfile): void;
  270. slatCellHtml(date: any, isEm: any, tDateProfile: TimelineDateProfile): string;
  271. updateSize(): void;
  272. positionToHit(leftPosition: any): {
  273. dateSpan: {
  274. range: {
  275. start: Date;
  276. end: Date;
  277. };
  278. allDay: boolean;
  279. };
  280. dayEl: HTMLElement;
  281. left: any;
  282. right: any;
  283. };
  284. }
  285. }
  286. declare module '@fullcalendar/timeline/timeline-date-profile' {
  287. import { Duration, DateProfile, DateMarker, DateEnv, DateRange, DateProfileGenerator } from '@fullcalendar/core';
  288. export interface TimelineDateProfile {
  289. labelInterval: Duration;
  290. slotDuration: Duration;
  291. headerFormats: any;
  292. isTimeScale: boolean;
  293. largeUnit: string;
  294. emphasizeWeeks: boolean;
  295. snapDuration: Duration;
  296. snapsPerSlot: number;
  297. normalizedRange: DateRange;
  298. timeWindowMs: number;
  299. slotDates: DateMarker[];
  300. isWeekStarts: boolean[];
  301. snapDiffToIndex: number[];
  302. snapIndexToDiff: number[];
  303. snapCnt: number;
  304. slotCnt: number;
  305. cellRows: TimelineHeaderCell[][];
  306. }
  307. export interface TimelineHeaderCell {
  308. text: string;
  309. spanHtml: string;
  310. date: DateMarker;
  311. colspan: number;
  312. isWeekStart: boolean;
  313. }
  314. export function buildTimelineDateProfile(dateProfile: DateProfile, dateEnv: DateEnv, allOptions: any, dateProfileGenerator: DateProfileGenerator): TimelineDateProfile;
  315. export function normalizeDate(date: DateMarker, tDateProfile: TimelineDateProfile, dateEnv: DateEnv): DateMarker;
  316. export function normalizeRange(range: DateRange, tDateProfile: TimelineDateProfile, dateEnv: DateEnv): DateRange;
  317. export function isValidDate(date: DateMarker, tDateProfile: TimelineDateProfile, dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): boolean;
  318. }
  319. declare module '@fullcalendar/timeline/TimelineNowIndicator' {
  320. export { TimelineNowIndicator as default, TimelineNowIndicator };
  321. class TimelineNowIndicator {
  322. headParent: HTMLElement;
  323. bodyParent: HTMLElement;
  324. arrowEl: HTMLElement;
  325. lineEl: HTMLElement;
  326. constructor(headParent: HTMLElement, bodyParent: HTMLElement);
  327. render(coord: number, isRtl: boolean): void;
  328. unrender(): void;
  329. }
  330. }
  331. declare module '@fullcalendar/timeline/util/ScrollerCanvas' {
  332. export { ScrollerCanvas as default, ScrollerCanvas };
  333. class ScrollerCanvas {
  334. el: HTMLElement;
  335. contentEl: HTMLElement;
  336. bgEl: HTMLElement;
  337. gutters: any;
  338. width: any;
  339. minWidth: any;
  340. constructor();
  341. setGutters(gutters: any): void;
  342. setWidth(width: any): void;
  343. setMinWidth(minWidth: any): void;
  344. clearWidth(): void;
  345. updateSize(): void;
  346. }
  347. }