Ingen beskrivning

main.d.ts 9.2KB

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