main.d.ts 9.3 KB

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