Aucune description

main.d.ts 117KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730
  1. // Generated by dts-bundle v0.7.3-fork.1
  2. // Dependencies for this module:
  3. // ../../../../../@fullcalendar/core
  4. declare module '@fullcalendar/core' {
  5. export const version = "<%= version %>";
  6. export { OptionsInput } from '@fullcalendar/core/types/input-types';
  7. export { EventInput, EventDef, EventDefHash, EventInstance, EventInstanceHash, parseEventDef, createEventInstance, EventTuple } from '@fullcalendar/core/structs/event';
  8. export { BusinessHoursInput, parseBusinessHours } from '@fullcalendar/core/structs/business-hours';
  9. export { applyAll, debounce, padStart, isInt, capitaliseFirstLetter, parseFieldSpecs, compareByFieldSpecs, compareByFieldSpec, flexibleCompare, computeVisibleDayRange, refineProps, matchCellWidths, uncompensateScroll, compensateScroll, subtractInnerElHeight, isMultiDayRange, distributeHeight, undistributeHeight, preventSelection, allowSelection, preventContextMenu, allowContextMenu, compareNumbers, enableCursor, disableCursor, diffDates } from '@fullcalendar/core/util/misc';
  10. export { htmlEscape, cssToStr } from '@fullcalendar/core/util/html';
  11. export { removeExact, isArraysEqual } from '@fullcalendar/core/util/array';
  12. export { memoize, memoizeOutput } from '@fullcalendar/core/util/memoize';
  13. export { memoizeRendering, MemoizedRendering } from '@fullcalendar/core/component/memoized-rendering';
  14. export { intersectRects, Rect, pointInsideRect, constrainPoint, getRectCenter, diffPoints, Point, translateRect } from '@fullcalendar/core/util/geom';
  15. export { mapHash, filterHash, isPropsEqual } from '@fullcalendar/core/util/object';
  16. export { findElements, findChildren, htmlToElement, createElement, insertAfterElement, prependToElement, removeElement, appendToElement, applyStyle, applyStyleProp, elementMatches, elementClosest, forceClassName } from '@fullcalendar/core/util/dom-manip';
  17. export { EventStore, filterEventStoreDefs, createEmptyEventStore, mergeEventStores, getRelevantEvents, eventTupleToStore } from '@fullcalendar/core/structs/event-store';
  18. export { EventUiHash, EventUi, processScopedUiProps, combineEventUis } from '@fullcalendar/core/component/event-ui';
  19. export { default as Splitter, SplittableProps } from '@fullcalendar/core/component/event-splitting';
  20. export { buildGotoAnchorHtml, getAllDayHtml, getDayClasses } from '@fullcalendar/core/component/date-rendering';
  21. export { preventDefault, listenBySelector, whenTransitionDone } from '@fullcalendar/core/util/dom-event';
  22. export { computeInnerRect, computeEdges, computeHeightAndMargins, getClippingParents, computeClippingRect, computeRect } from '@fullcalendar/core/util/dom-geom';
  23. export { unpromisify } from '@fullcalendar/core/util/promise';
  24. export { default as EmitterMixin, EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
  25. export { DateRange, rangeContainsMarker, intersectRanges, rangesEqual, rangesIntersect, rangeContainsRange } from '@fullcalendar/core/datelib/date-range';
  26. export { default as Mixin } from '@fullcalendar/core/common/Mixin';
  27. export { default as PositionCache } from '@fullcalendar/core/common/PositionCache';
  28. export { default as ScrollComponent, ScrollbarWidths } from '@fullcalendar/core/common/ScrollComponent';
  29. export { ScrollController, ElementScrollController, WindowScrollController } from '@fullcalendar/core/common/scroll-controller';
  30. export { default as Theme } from '@fullcalendar/core/theme/Theme';
  31. export { default as Component, ComponentContext } from '@fullcalendar/core/component/Component';
  32. export { default as DateComponent, Seg, EventSegUiInteractionState } from '@fullcalendar/core/component/DateComponent';
  33. export { default as Calendar, DatePointTransform, DateSpanTransform, DateSelectionApi } from '@fullcalendar/core/Calendar';
  34. export { default as View, ViewProps } from '@fullcalendar/core/View';
  35. export { default as FgEventRenderer, buildSegCompareObj } from '@fullcalendar/core/component/renderers/FgEventRenderer';
  36. export { default as FillRenderer } from '@fullcalendar/core/component/renderers/FillRenderer';
  37. export { default as DateProfileGenerator, DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  38. export { ViewDef } from '@fullcalendar/core/structs/view-def';
  39. export { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  40. export { DateSpan, DateSpanApi, DatePointApi, isDateSpansEqual } from '@fullcalendar/core/structs/date-span';
  41. export { DateMarker, addDays, startOfDay, addMs, addWeeks, diffWeeks, diffWholeWeeks, diffWholeDays, diffDayAndTime, diffDays, isValidDate } from '@fullcalendar/core/datelib/marker';
  42. export { Duration, createDuration, isSingleDay, multiplyDuration, addDurations, asRoughMinutes, asRoughSeconds, asRoughMs, wholeDivideDurations, greatestDurationDenominator } from '@fullcalendar/core/datelib/duration';
  43. export { DateEnv, DateMarkerMeta } from '@fullcalendar/core/datelib/env';
  44. export { DateFormatter, createFormatter, VerboseFormattingArg, formatIsoTimeString } from '@fullcalendar/core/datelib/formatting';
  45. export { NamedTimeZoneImpl } from '@fullcalendar/core/datelib/timezone';
  46. export { parse as parseMarker } from '@fullcalendar/core/datelib/parsing';
  47. export { EventSourceDef, EventSource, EventSourceHash } from '@fullcalendar/core/structs/event-source';
  48. export { Interaction, InteractionSettings, interactionSettingsToStore, interactionSettingsStore, InteractionSettingsStore } from '@fullcalendar/core/interactions/interaction';
  49. export { PointerDragEvent } from '@fullcalendar/core/interactions/pointer';
  50. export { Hit } from '@fullcalendar/core/interactions/hit';
  51. export { dateSelectionJoinTransformer } from '@fullcalendar/core/interactions/date-selecting';
  52. export { eventDragMutationMassager, EventDropTransformers } from '@fullcalendar/core/interactions/event-dragging';
  53. export { EventResizeJoinTransforms } from '@fullcalendar/core/interactions/event-resizing';
  54. export { default as ElementDragging } from '@fullcalendar/core/interactions/ElementDragging';
  55. export { formatDate, formatRange } from '@fullcalendar/core/formatting-api';
  56. export { globalDefaults, config } from '@fullcalendar/core/options';
  57. export { RecurringType, ParsedRecurring } from '@fullcalendar/core/structs/recurring-event';
  58. export { DragMetaInput, DragMeta, parseDragMeta } from '@fullcalendar/core/structs/drag-meta';
  59. export { createPlugin, PluginDef, PluginDefInput, ViewPropsTransformer, ViewContainerModifier } from '@fullcalendar/core/plugin-system';
  60. export { reducerFunc, Action, CalendarState } from '@fullcalendar/core/reducers/types';
  61. export { CalendarComponentProps } from '@fullcalendar/core/CalendarComponent';
  62. export { default as DayHeader } from '@fullcalendar/core/common/DayHeader';
  63. export { computeFallbackHeaderFormat, renderDateCell } from '@fullcalendar/core/common/table-utils';
  64. export { default as DaySeries } from '@fullcalendar/core/common/DaySeries';
  65. export { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  66. export { EventRenderRange, sliceEventStore, hasBgRendering, getElSeg } from '@fullcalendar/core/component/event-rendering';
  67. export { default as DayTable, DayTableSeg, DayTableCell } from '@fullcalendar/core/common/DayTable';
  68. export { default as Slicer, SlicedProps } from '@fullcalendar/core/common/slicing-utils';
  69. export { EventMutation, applyMutationToEventStore } from '@fullcalendar/core/structs/event-mutation';
  70. export { Constraint, ConstraintInput, AllowFunc, isPropsValid, isInteractionValid } from '@fullcalendar/core/validation';
  71. export { default as EventApi } from '@fullcalendar/core/api/EventApi';
  72. export { default as requestJson } from '@fullcalendar/core/util/requestJson';
  73. }
  74. declare module '@fullcalendar/core/types/input-types' {
  75. import View from '@fullcalendar/core/View';
  76. import { EventSourceInput, EventInputTransformer } from '@fullcalendar/core/structs/event-source';
  77. import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
  78. import { DateInput } from '@fullcalendar/core/datelib/env';
  79. import { FormatterInput } from '@fullcalendar/core/datelib/formatting';
  80. import { DateRangeInput } from '@fullcalendar/core/datelib/date-range';
  81. import { BusinessHoursInput } from '@fullcalendar/core/structs/business-hours';
  82. import EventApi from '@fullcalendar/core/api/EventApi';
  83. import { AllowFunc, ConstraintInput, OverlapFunc } from '@fullcalendar/core/validation';
  84. import { PluginDef } from '@fullcalendar/core/plugin-system';
  85. import { LocaleSingularArg, RawLocale } from '@fullcalendar/core/datelib/locale';
  86. export interface ToolbarInput {
  87. left?: string;
  88. center?: string;
  89. right?: string;
  90. }
  91. export interface CustomButtonInput {
  92. text: string;
  93. icon?: string;
  94. themeIcon?: string;
  95. bootstrapFontAwesome?: string;
  96. click(element: HTMLElement): void;
  97. }
  98. export interface ButtonIconsInput {
  99. prev?: string;
  100. next?: string;
  101. prevYear?: string;
  102. nextYear?: string;
  103. }
  104. export interface ButtonTextCompoundInput {
  105. prev?: string;
  106. next?: string;
  107. prevYear?: string;
  108. nextYear?: string;
  109. today?: string;
  110. month?: string;
  111. week?: string;
  112. day?: string;
  113. [viewId: string]: string | undefined;
  114. }
  115. export interface EventSegment {
  116. event: EventApi;
  117. start: Date;
  118. end: Date;
  119. isStart: boolean;
  120. isEnd: boolean;
  121. }
  122. export interface CellInfo {
  123. date: Date;
  124. dayEl: HTMLElement;
  125. moreEl: HTMLElement;
  126. segs: EventSegment[];
  127. hiddenSegs: EventSegment[];
  128. }
  129. export interface DropInfo {
  130. start: Date;
  131. end: Date;
  132. }
  133. export type EventHandlerName = '_init' | 'selectAllow' | 'eventAllow' | 'eventDataTransform' | 'datesRender' | 'datesDestroy' | 'dayRender' | 'windowResize' | 'dateClick' | 'eventClick' | 'eventMouseEnter' | 'eventMouseLeave' | 'select' | 'unselect' | 'loading' | 'eventRender' | 'eventPositioned' | '_eventsPositioned' | 'eventDestroy' | 'eventDragStart' | 'eventDragStop' | 'eventDrop' | '_destroyed' | 'drop' | 'eventResizeStart' | 'eventResizeStop' | 'eventResize' | 'eventReceive' | 'eventLeave' | 'viewSkeletonRender' | 'viewSkeletonDestroy' | '_noEventDrop' | '_noEventResize' | 'eventLimitClick' | 'resourceRender';
  134. export type EventHandlerArgs<T extends EventHandlerName> = Parameters<Extract<OptionsInput[T], (...args: any[]) => any>>;
  135. export type EventHandlerArg<T extends EventHandlerName> = EventHandlerArgs<T>[0];
  136. export interface OptionsInputBase {
  137. header?: boolean | ToolbarInput;
  138. footer?: boolean | ToolbarInput;
  139. customButtons?: {
  140. [name: string]: CustomButtonInput;
  141. };
  142. buttonIcons?: boolean | ButtonIconsInput;
  143. themeSystem?: 'standard' | string;
  144. bootstrapFontAwesome?: boolean | ButtonIconsInput;
  145. firstDay?: number;
  146. dir?: 'ltr' | 'rtl' | 'auto';
  147. weekends?: boolean;
  148. hiddenDays?: number[];
  149. fixedWeekCount?: boolean;
  150. weekNumbers?: boolean;
  151. weekNumbersWithinDays?: boolean;
  152. weekNumberCalculation?: 'local' | 'ISO' | ((m: Date) => number);
  153. businessHours?: BusinessHoursInput;
  154. showNonCurrentDates?: boolean;
  155. height?: number | 'auto' | 'parent' | (() => number);
  156. contentHeight?: number | 'auto' | (() => number);
  157. aspectRatio?: number;
  158. handleWindowResize?: boolean;
  159. windowResizeDelay?: number;
  160. eventLimit?: boolean | number;
  161. eventLimitClick?: 'popover' | 'week' | 'day' | 'timeGridWeek' | 'timeGridDay' | string | ((arg: {
  162. date: Date;
  163. allDay: boolean;
  164. dayEl: HTMLElement;
  165. moreEl: HTMLElement;
  166. segs: any[];
  167. hiddenSegs: any[];
  168. jsEvent: MouseEvent;
  169. view: View;
  170. }) => void);
  171. timeZone?: string | boolean;
  172. now?: DateInput | (() => DateInput);
  173. defaultView?: string;
  174. allDaySlot?: boolean;
  175. allDayText?: string;
  176. slotDuration?: DurationInput;
  177. slotLabelFormat?: FormatterInput;
  178. slotLabelInterval?: DurationInput;
  179. snapDuration?: DurationInput;
  180. scrollTime?: DurationInput;
  181. minTime?: DurationInput;
  182. maxTime?: DurationInput;
  183. slotEventOverlap?: boolean;
  184. listDayFormat?: FormatterInput | boolean;
  185. listDayAltFormat?: FormatterInput | boolean;
  186. noEventsMessage?: string;
  187. defaultDate?: DateInput;
  188. nowIndicator?: boolean;
  189. visibleRange?: ((currentDate: Date) => DateRangeInput) | DateRangeInput;
  190. validRange?: DateRangeInput;
  191. dateIncrement?: DurationInput;
  192. dateAlignment?: string;
  193. duration?: DurationInput;
  194. dayCount?: number;
  195. locales?: RawLocale[];
  196. locale?: LocaleSingularArg;
  197. eventTimeFormat?: FormatterInput;
  198. columnHeader?: boolean;
  199. columnHeaderFormat?: FormatterInput;
  200. columnHeaderText?: string | ((date: DateInput) => string);
  201. columnHeaderHtml?: string | ((date: DateInput) => string);
  202. titleFormat?: FormatterInput;
  203. weekLabel?: string;
  204. displayEventTime?: boolean;
  205. displayEventEnd?: boolean;
  206. eventLimitText?: string | ((eventCnt: number) => string);
  207. dayPopoverFormat?: FormatterInput;
  208. navLinks?: boolean;
  209. navLinkDayClick?: string | ((date: Date, jsEvent: Event) => void);
  210. navLinkWeekClick?: string | ((weekStart: any, jsEvent: Event) => void);
  211. selectable?: boolean;
  212. selectMirror?: boolean;
  213. unselectAuto?: boolean;
  214. unselectCancel?: string;
  215. defaultAllDayEventDuration?: DurationInput;
  216. defaultTimedEventDuration?: DurationInput;
  217. cmdFormatter?: string;
  218. defaultRangeSeparator?: string;
  219. selectConstraint?: ConstraintInput;
  220. selectOverlap?: boolean | OverlapFunc;
  221. selectAllow?: AllowFunc;
  222. editable?: boolean;
  223. eventStartEditable?: boolean;
  224. eventDurationEditable?: boolean;
  225. eventConstraint?: ConstraintInput;
  226. eventOverlap?: boolean | OverlapFunc;
  227. eventAllow?: AllowFunc;
  228. eventClassName?: string[] | string;
  229. eventClassNames?: string[] | string;
  230. eventBackgroundColor?: string;
  231. eventBorderColor?: string;
  232. eventTextColor?: string;
  233. eventColor?: string;
  234. events?: EventSourceInput;
  235. eventSources?: EventSourceInput[];
  236. allDayDefault?: boolean;
  237. startParam?: string;
  238. endParam?: string;
  239. lazyFetching?: boolean;
  240. nextDayThreshold?: DurationInput;
  241. eventOrder?: string | Array<((a: EventApi, b: EventApi) => number) | (string | ((a: EventApi, b: EventApi) => number))>;
  242. rerenderDelay?: number | null;
  243. dragRevertDuration?: number;
  244. dragScroll?: boolean;
  245. longPressDelay?: number;
  246. eventLongPressDelay?: number;
  247. droppable?: boolean;
  248. dropAccept?: string | ((draggable: any) => boolean);
  249. eventDataTransform?: EventInputTransformer;
  250. allDayMaintainDuration?: boolean;
  251. eventResizableFromStart?: boolean;
  252. timeGridEventMinHeight?: number;
  253. allDayHtml?: string;
  254. eventDragMinDistance?: number;
  255. eventSourceFailure?: any;
  256. eventSourceSuccess?: any;
  257. forceEventDuration?: boolean;
  258. progressiveEventRendering?: boolean;
  259. selectLongPressDelay?: number;
  260. selectMinDistance?: number;
  261. timeZoneParam?: string;
  262. titleRangeSeparator?: string;
  263. datesRender?(arg: {
  264. view: View;
  265. el: HTMLElement;
  266. }): void;
  267. datesDestroy?(arg: {
  268. view: View;
  269. el: HTMLElement;
  270. }): void;
  271. dayRender?(arg: {
  272. view: View;
  273. date: Date;
  274. allDay?: boolean;
  275. el: HTMLElement;
  276. }): void;
  277. windowResize?(view: View): void;
  278. dateClick?(arg: {
  279. date: Date;
  280. dateStr: string;
  281. allDay: boolean;
  282. resource?: any;
  283. dayEl: HTMLElement;
  284. jsEvent: MouseEvent;
  285. view: View;
  286. }): void;
  287. eventClick?(arg: {
  288. el: HTMLElement;
  289. event: EventApi;
  290. jsEvent: MouseEvent;
  291. view: View;
  292. }): boolean | void;
  293. eventMouseEnter?(arg: {
  294. el: HTMLElement;
  295. event: EventApi;
  296. jsEvent: MouseEvent;
  297. view: View;
  298. }): void;
  299. eventMouseLeave?(arg: {
  300. el: HTMLElement;
  301. event: EventApi;
  302. jsEvent: MouseEvent;
  303. view: View;
  304. }): void;
  305. select?(arg: {
  306. start: Date;
  307. end: Date;
  308. startStr: string;
  309. endStr: string;
  310. allDay: boolean;
  311. resource?: any;
  312. jsEvent: MouseEvent;
  313. view: View;
  314. }): void;
  315. unselect?(arg: {
  316. view: View;
  317. jsEvent: Event;
  318. }): void;
  319. loading?(isLoading: boolean): void;
  320. eventRender?(arg: {
  321. isMirror: boolean;
  322. isStart: boolean;
  323. isEnd: boolean;
  324. event: EventApi;
  325. el: HTMLElement;
  326. view: View;
  327. }): void;
  328. eventPositioned?(arg: {
  329. isMirror: boolean;
  330. isStart: boolean;
  331. isEnd: boolean;
  332. event: EventApi;
  333. el: HTMLElement;
  334. view: View;
  335. }): void;
  336. _eventsPositioned?(arg: {
  337. view: View;
  338. }): void;
  339. eventDestroy?(arg: {
  340. isMirror: boolean;
  341. event: EventApi;
  342. el: HTMLElement;
  343. view: View;
  344. }): void;
  345. eventDragStart?(arg: {
  346. event: EventApi;
  347. el: HTMLElement;
  348. jsEvent: MouseEvent;
  349. view: View;
  350. }): void;
  351. eventDragStop?(arg: {
  352. event: EventApi;
  353. el: HTMLElement;
  354. jsEvent: MouseEvent;
  355. view: View;
  356. }): void;
  357. eventDrop?(arg: {
  358. el: HTMLElement;
  359. event: EventApi;
  360. oldEvent: EventApi;
  361. delta: Duration;
  362. revert: () => void;
  363. jsEvent: Event;
  364. view: View;
  365. }): void;
  366. eventResizeStart?(arg: {
  367. el: HTMLElement;
  368. event: EventApi;
  369. jsEvent: MouseEvent;
  370. view: View;
  371. }): void;
  372. eventResizeStop?(arg: {
  373. el: HTMLElement;
  374. event: EventApi;
  375. jsEvent: MouseEvent;
  376. view: View;
  377. }): void;
  378. eventResize?(arg: {
  379. el: HTMLElement;
  380. startDelta: Duration;
  381. endDelta: Duration;
  382. prevEvent: EventApi;
  383. event: EventApi;
  384. revert: () => void;
  385. jsEvent: Event;
  386. view: View;
  387. }): void;
  388. drop?(arg: {
  389. date: Date;
  390. dateStr: string;
  391. allDay: boolean;
  392. draggedEl: HTMLElement;
  393. jsEvent: MouseEvent;
  394. view: View;
  395. }): void;
  396. eventReceive?(arg: {
  397. event: EventApi;
  398. draggedEl: HTMLElement;
  399. view: View;
  400. }): void;
  401. eventLeave?(arg: {
  402. draggedEl: HTMLElement;
  403. event: EventApi;
  404. view: View;
  405. }): void;
  406. viewSkeletonRender?(arg: {
  407. el: HTMLElement;
  408. view: View;
  409. }): void;
  410. viewSkeletonDestroy?(arg: {
  411. el: HTMLElement;
  412. view: View;
  413. }): void;
  414. _destroyed?(): void;
  415. _init?(): void;
  416. _noEventDrop?(): void;
  417. _noEventResize?(): void;
  418. resourceRender?(arg: {
  419. resource: any;
  420. el: HTMLElement;
  421. view: View;
  422. }): void;
  423. }
  424. export interface ViewOptionsInput extends OptionsInputBase {
  425. type?: string;
  426. buttonText?: string;
  427. }
  428. export interface OptionsInput extends OptionsInputBase {
  429. buttonText?: ButtonTextCompoundInput;
  430. views?: {
  431. [viewId: string]: ViewOptionsInput;
  432. };
  433. plugins?: (PluginDef | string)[];
  434. }
  435. }
  436. declare module '@fullcalendar/core/structs/event' {
  437. import { DateInput } from '@fullcalendar/core/datelib/env';
  438. import Calendar from '@fullcalendar/core/Calendar';
  439. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  440. import { Duration } from '@fullcalendar/core/datelib/duration';
  441. import { UnscopedEventUiInput, EventUi } from '@fullcalendar/core/component/event-ui';
  442. export type EventRenderingChoice = '' | 'background' | 'inverse-background' | 'none';
  443. export interface EventNonDateInput extends UnscopedEventUiInput {
  444. id?: string | number;
  445. groupId?: string | number;
  446. title?: string;
  447. url?: string;
  448. rendering?: EventRenderingChoice;
  449. extendedProps?: object;
  450. [extendedProp: string]: any;
  451. }
  452. export interface EventDateInput {
  453. start?: DateInput;
  454. end?: DateInput;
  455. date?: DateInput;
  456. allDay?: boolean;
  457. }
  458. export type EventInput = EventNonDateInput & EventDateInput;
  459. export interface EventDef {
  460. defId: string;
  461. sourceId: string;
  462. publicId: string;
  463. groupId: string;
  464. allDay: boolean;
  465. hasEnd: boolean;
  466. recurringDef: {
  467. typeId: number;
  468. typeData: any;
  469. duration: Duration | null;
  470. } | null;
  471. title: string;
  472. url: string;
  473. rendering: EventRenderingChoice;
  474. ui: EventUi;
  475. extendedProps: any;
  476. }
  477. export interface EventInstance {
  478. instanceId: string;
  479. defId: string;
  480. range: DateRange;
  481. forcedStartTzo: number | null;
  482. forcedEndTzo: number | null;
  483. }
  484. export interface EventTuple {
  485. def: EventDef;
  486. instance: EventInstance | null;
  487. }
  488. export type EventInstanceHash = {
  489. [instanceId: string]: EventInstance;
  490. };
  491. export type EventDefHash = {
  492. [defId: string]: EventDef;
  493. };
  494. export const NON_DATE_PROPS: {
  495. id: StringConstructor;
  496. groupId: StringConstructor;
  497. title: StringConstructor;
  498. url: StringConstructor;
  499. rendering: StringConstructor;
  500. extendedProps: any;
  501. };
  502. export const DATE_PROPS: {
  503. start: any;
  504. date: any;
  505. end: any;
  506. allDay: any;
  507. };
  508. export function parseEvent(raw: EventInput, sourceId: string, calendar: Calendar, allowOpenRange?: boolean): EventTuple | null;
  509. export function parseEventDef(raw: EventNonDateInput, sourceId: string, allDay: boolean, hasEnd: boolean, calendar: Calendar): EventDef;
  510. export type eventDefParserFunc = (def: EventDef, props: any, leftovers: any) => void;
  511. export function createEventInstance(defId: string, range: DateRange, forcedStartTzo?: number, forcedEndTzo?: number): EventInstance;
  512. }
  513. declare module '@fullcalendar/core/structs/business-hours' {
  514. import Calendar from '@fullcalendar/core/Calendar';
  515. import { EventInput } from '@fullcalendar/core/structs/event';
  516. import { EventStore } from '@fullcalendar/core/structs/event-store';
  517. export type BusinessHoursInput = boolean | EventInput | EventInput[];
  518. export function parseBusinessHours(input: BusinessHoursInput, calendar: Calendar): EventStore;
  519. }
  520. declare module '@fullcalendar/core/util/misc' {
  521. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  522. import { Duration } from '@fullcalendar/core/datelib/duration';
  523. import { DateEnv } from '@fullcalendar/core/datelib/env';
  524. import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
  525. export function compensateScroll(rowEl: HTMLElement, scrollbarWidths: any): void;
  526. export function uncompensateScroll(rowEl: HTMLElement): void;
  527. export function disableCursor(): void;
  528. export function enableCursor(): void;
  529. export function distributeHeight(els: HTMLElement[], availableHeight: any, shouldRedistribute: any): void;
  530. export function undistributeHeight(els: HTMLElement[]): void;
  531. export function matchCellWidths(els: HTMLElement[]): number;
  532. export function subtractInnerElHeight(outerEl: HTMLElement, innerEl: HTMLElement): number;
  533. export function preventSelection(el: HTMLElement): void;
  534. export function allowSelection(el: HTMLElement): void;
  535. export function preventContextMenu(el: HTMLElement): void;
  536. export function allowContextMenu(el: HTMLElement): void;
  537. export function parseFieldSpecs(input: any): any[];
  538. export function compareByFieldSpecs(obj0: any, obj1: any, fieldSpecs: any): any;
  539. export function compareByFieldSpec(obj0: any, obj1: any, fieldSpec: any): any;
  540. export function flexibleCompare(a: any, b: any): number;
  541. export function capitaliseFirstLetter(str: any): any;
  542. export function padStart(val: any, len: any): string;
  543. export function compareNumbers(a: any, b: any): number;
  544. export function isInt(n: any): boolean;
  545. export function applyAll(functions: any, thisObj: any, args: any): any;
  546. export function firstDefined(...args: any[]): any;
  547. export function debounce(func: any, wait: any): () => any;
  548. export type GenericHash = {
  549. [key: string]: any;
  550. };
  551. export function refineProps(rawProps: GenericHash, processors: GenericHash, defaults?: GenericHash, leftoverProps?: GenericHash): GenericHash;
  552. export function computeAlignedDayRange(timedRange: DateRange): DateRange;
  553. export function computeVisibleDayRange(timedRange: OpenDateRange, nextDayThreshold?: Duration): OpenDateRange;
  554. export function isMultiDayRange(range: DateRange): boolean;
  555. export function diffDates(date0: DateMarker, date1: DateMarker, dateEnv: DateEnv, largeUnit?: string): Duration;
  556. }
  557. declare module '@fullcalendar/core/util/html' {
  558. export function htmlEscape(s: any): string;
  559. export function cssToStr(cssProps: any): string;
  560. export function attrsToStr(attrs: any): string;
  561. export type ClassNameInput = string | string[];
  562. export function parseClassName(raw: ClassNameInput): string[];
  563. }
  564. declare module '@fullcalendar/core/util/array' {
  565. export function removeMatching(array: any, testFunc: any): number;
  566. export function removeExact(array: any, exactVal: any): number;
  567. export function isArraysEqual(a0: any, a1: any): boolean;
  568. }
  569. declare module '@fullcalendar/core/util/memoize' {
  570. export function memoize<T>(workerFunc: T): T;
  571. export function memoizeOutput<T>(workerFunc: T, equalityFunc: (output0: any, output1: any) => boolean): T;
  572. }
  573. declare module '@fullcalendar/core/component/memoized-rendering' {
  574. export interface MemoizedRendering<ArgsType extends any[]> {
  575. (...args: ArgsType): void;
  576. unrender: () => void;
  577. dependents: MemoizedRendering<any>[];
  578. }
  579. export function memoizeRendering<ArgsType extends any[]>(renderFunc: (...args: ArgsType) => void, unrenderFunc?: (...args: ArgsType) => void, dependencies?: MemoizedRendering<any>[]): MemoizedRendering<ArgsType>;
  580. }
  581. declare module '@fullcalendar/core/util/geom' {
  582. export interface Point {
  583. left: number;
  584. top: number;
  585. }
  586. export interface Rect {
  587. left: number;
  588. right: number;
  589. top: number;
  590. bottom: number;
  591. }
  592. export function pointInsideRect(point: Point, rect: Rect): boolean;
  593. export function intersectRects(rect1: Rect, rect2: Rect): Rect | false;
  594. export function translateRect(rect: Rect, deltaX: number, deltaY: number): Rect;
  595. export function constrainPoint(point: Point, rect: Rect): Point;
  596. export function getRectCenter(rect: Rect): Point;
  597. export function diffPoints(point1: Point, point2: Point): Point;
  598. }
  599. declare module '@fullcalendar/core/util/object' {
  600. export function mergeProps(propObjs: any, complexProps?: any): any;
  601. export function filterHash(hash: any, func: any): {};
  602. export function mapHash<InputItem, OutputItem>(hash: {
  603. [key: string]: InputItem;
  604. }, func: (input: InputItem, key: string) => OutputItem): {
  605. [key: string]: OutputItem;
  606. };
  607. export function arrayToHash(a: any): {
  608. [key: string]: true;
  609. };
  610. export function hashValuesToArray(obj: any): any[];
  611. export function isPropsEqual(obj0: any, obj1: any): boolean;
  612. }
  613. declare module '@fullcalendar/core/util/dom-manip' {
  614. export function createElement(tagName: string, attrs: object | null, content?: ElementContent): HTMLElement;
  615. export function htmlToElement(html: string): HTMLElement;
  616. export function htmlToElements(html: string): HTMLElement[];
  617. export type ElementContent = string | Node | Node[] | NodeList;
  618. export function appendToElement(el: HTMLElement, content: ElementContent): void;
  619. export function prependToElement(parent: HTMLElement, content: ElementContent): void;
  620. export function insertAfterElement(refEl: HTMLElement, content: ElementContent): void;
  621. export function removeElement(el: HTMLElement): void;
  622. export function elementClosest(el: HTMLElement, selector: string): HTMLElement;
  623. export function elementMatches(el: HTMLElement, selector: string): HTMLElement;
  624. export function findElements(container: HTMLElement[] | HTMLElement | NodeListOf<HTMLElement>, selector: string): HTMLElement[];
  625. export function findChildren(parent: HTMLElement[] | HTMLElement, selector?: string): HTMLElement[];
  626. export function forceClassName(el: HTMLElement, className: string, bool: any): void;
  627. export function applyStyle(el: HTMLElement, props: object): void;
  628. export function applyStyleProp(el: HTMLElement, name: string, val: any): void;
  629. }
  630. declare module '@fullcalendar/core/structs/event-store' {
  631. import { EventInput, EventDef, EventDefHash, EventInstanceHash, EventTuple } from '@fullcalendar/core/structs/event';
  632. import { EventSource } from '@fullcalendar/core/structs/event-source';
  633. import Calendar from '@fullcalendar/core/Calendar';
  634. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  635. export interface EventStore {
  636. defs: EventDefHash;
  637. instances: EventInstanceHash;
  638. }
  639. export function parseEvents(rawEvents: EventInput[], sourceId: string, calendar: Calendar, allowOpenRange?: boolean): EventStore;
  640. export function eventTupleToStore(tuple: EventTuple, eventStore?: EventStore): EventStore;
  641. export function expandRecurring(eventStore: EventStore, framingRange: DateRange, calendar: Calendar): EventStore;
  642. export function getRelevantEvents(eventStore: EventStore, instanceId: string): EventStore;
  643. export function transformRawEvents(rawEvents: any, eventSource: EventSource, calendar: Calendar): any;
  644. export function createEmptyEventStore(): EventStore;
  645. export function mergeEventStores(store0: EventStore, store1: EventStore): EventStore;
  646. export function filterEventStoreDefs(eventStore: EventStore, filterFunc: (eventDef: EventDef) => boolean): EventStore;
  647. }
  648. declare module '@fullcalendar/core/component/event-ui' {
  649. import { Constraint, AllowFunc, ConstraintInput } from '@fullcalendar/core/validation';
  650. import { parseClassName } from '@fullcalendar/core/util/html';
  651. import Calendar from '@fullcalendar/core/Calendar';
  652. export interface UnscopedEventUiInput {
  653. editable?: boolean;
  654. startEditable?: boolean;
  655. durationEditable?: boolean;
  656. constraint?: ConstraintInput;
  657. overlap?: boolean;
  658. allow?: AllowFunc;
  659. className?: string[] | string;
  660. classNames?: string[] | string;
  661. backgroundColor?: string;
  662. borderColor?: string;
  663. textColor?: string;
  664. color?: string;
  665. }
  666. export interface EventUi {
  667. startEditable: boolean | null;
  668. durationEditable: boolean | null;
  669. constraints: Constraint[];
  670. overlap: boolean | null;
  671. allows: AllowFunc[];
  672. backgroundColor: string;
  673. borderColor: string;
  674. textColor: string;
  675. classNames: string[];
  676. }
  677. export type EventUiHash = {
  678. [defId: string]: EventUi;
  679. };
  680. export const UNSCOPED_EVENT_UI_PROPS: {
  681. editable: BooleanConstructor;
  682. startEditable: BooleanConstructor;
  683. durationEditable: BooleanConstructor;
  684. constraint: any;
  685. overlap: any;
  686. allow: any;
  687. className: typeof parseClassName;
  688. classNames: typeof parseClassName;
  689. color: StringConstructor;
  690. backgroundColor: StringConstructor;
  691. borderColor: StringConstructor;
  692. textColor: StringConstructor;
  693. };
  694. export function processUnscopedUiProps(rawProps: UnscopedEventUiInput, calendar: Calendar, leftovers?: any): EventUi;
  695. export function processScopedUiProps(prefix: string, rawScoped: any, calendar: Calendar, leftovers?: any): EventUi;
  696. export function combineEventUis(uis: EventUi[]): EventUi;
  697. }
  698. declare module '@fullcalendar/core/component/event-splitting' {
  699. import { EventStore } from '@fullcalendar/core/structs/event-store';
  700. import { EventDef } from '@fullcalendar/core/structs/event';
  701. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  702. import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
  703. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  704. export interface SplittableProps {
  705. businessHours: EventStore | null;
  706. dateSelection: DateSpan | null;
  707. eventStore: EventStore;
  708. eventUiBases: EventUiHash;
  709. eventSelection: string;
  710. eventDrag: EventInteractionState | null;
  711. eventResize: EventInteractionState | null;
  712. }
  713. export { Splitter as default, Splitter };
  714. abstract class Splitter<PropsType extends SplittableProps = SplittableProps> {
  715. abstract getKeyInfo(props: PropsType): {
  716. [key: string]: {
  717. ui?: EventUi;
  718. businessHours?: EventStore;
  719. };
  720. };
  721. abstract getKeysForDateSpan(dateSpan: DateSpan): string[];
  722. abstract getKeysForEventDef(eventDef: EventDef): string[];
  723. splitProps(props: PropsType): {
  724. [key: string]: SplittableProps;
  725. };
  726. }
  727. }
  728. declare module '@fullcalendar/core/component/date-rendering' {
  729. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  730. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  731. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  732. export function buildGotoAnchorHtml(component: Component<any>, gotoOptions: any, attrs: any, innerHtml?: any): string;
  733. export function getAllDayHtml(component: Component<any>): any;
  734. export function getDayClasses(date: DateMarker, dateProfile: DateProfile, context: ComponentContext, noThemeHighlight?: any): any[];
  735. }
  736. declare module '@fullcalendar/core/util/dom-event' {
  737. export function preventDefault(ev: any): void;
  738. export function listenBySelector(container: HTMLElement, eventType: string, selector: string, handler: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
  739. export function listenToHoverBySelector(container: HTMLElement, selector: string, onMouseEnter: (ev: Event, matchedTarget: HTMLElement) => void, onMouseLeave: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
  740. export function whenTransitionDone(el: HTMLElement, callback: (ev: Event) => void): void;
  741. }
  742. declare module '@fullcalendar/core/util/dom-geom' {
  743. import { Rect } from '@fullcalendar/core/util/geom';
  744. export interface EdgeInfo {
  745. borderLeft: number;
  746. borderRight: number;
  747. borderTop: number;
  748. borderBottom: number;
  749. scrollbarLeft: number;
  750. scrollbarRight: number;
  751. scrollbarBottom: number;
  752. paddingLeft?: number;
  753. paddingRight?: number;
  754. paddingTop?: number;
  755. paddingBottom?: number;
  756. }
  757. export function computeEdges(el: any, getPadding?: boolean): EdgeInfo;
  758. export function computeInnerRect(el: any, goWithinPadding?: boolean): {
  759. left: number;
  760. right: number;
  761. top: number;
  762. bottom: number;
  763. };
  764. export function computeRect(el: any): Rect;
  765. export function computeHeightAndMargins(el: HTMLElement): number;
  766. export function computeVMargins(el: HTMLElement): number;
  767. export function getClippingParents(el: HTMLElement): HTMLElement[];
  768. export function computeClippingRect(el: HTMLElement): Rect;
  769. }
  770. declare module '@fullcalendar/core/util/promise' {
  771. export function unpromisify(func: any, success: any, failure?: any): void;
  772. }
  773. declare module '@fullcalendar/core/common/EmitterMixin' {
  774. import Mixin from '@fullcalendar/core/common/Mixin';
  775. export interface EmitterInterface {
  776. on(types: any, handler: any): any;
  777. one(types: any, handler: any): any;
  778. off(types: any, handler: any): any;
  779. trigger(type: any, ...args: any[]): any;
  780. triggerWith(type: any, context: any, args: any): any;
  781. hasHandlers(type: any): any;
  782. }
  783. export { EmitterMixin as default, EmitterMixin };
  784. class EmitterMixin extends Mixin implements EmitterInterface {
  785. _handlers: any;
  786. _oneHandlers: any;
  787. on(type: any, handler: any): this;
  788. one(type: any, handler: any): this;
  789. off(type: any, handler?: any): this;
  790. trigger(type: any, ...args: any[]): this;
  791. triggerWith(type: any, context: any, args: any): this;
  792. hasHandlers(type: any): any;
  793. }
  794. }
  795. declare module '@fullcalendar/core/datelib/date-range' {
  796. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  797. import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
  798. export interface DateRangeInput {
  799. start?: DateInput;
  800. end?: DateInput;
  801. }
  802. export interface OpenDateRange {
  803. start: DateMarker | null;
  804. end: DateMarker | null;
  805. }
  806. export interface DateRange {
  807. start: DateMarker;
  808. end: DateMarker;
  809. }
  810. export function parseRange(input: DateRangeInput, dateEnv: DateEnv): OpenDateRange;
  811. export function invertRanges(ranges: DateRange[], constraintRange: DateRange): DateRange[];
  812. export function intersectRanges(range0: OpenDateRange, range1: OpenDateRange): OpenDateRange;
  813. export function rangesEqual(range0: OpenDateRange, range1: OpenDateRange): boolean;
  814. export function rangesIntersect(range0: OpenDateRange, range1: OpenDateRange): boolean;
  815. export function rangeContainsRange(outerRange: OpenDateRange, innerRange: OpenDateRange): boolean;
  816. export function rangeContainsMarker(range: OpenDateRange, date: DateMarker | number): boolean;
  817. export function constrainMarkerToRange(date: DateMarker, range: DateRange): DateMarker;
  818. }
  819. declare module '@fullcalendar/core/common/Mixin' {
  820. export { Mixin as default, Mixin };
  821. class Mixin {
  822. static mixInto(destClass: any): void;
  823. static mixIntoObj(destObj: any): void;
  824. static mixOver(destClass: any): void;
  825. }
  826. }
  827. declare module '@fullcalendar/core/common/PositionCache' {
  828. export { PositionCache as default, PositionCache };
  829. class PositionCache {
  830. originClientRect: ClientRect;
  831. els: HTMLElement[];
  832. originEl: HTMLElement;
  833. isHorizontal: boolean;
  834. isVertical: boolean;
  835. lefts: any;
  836. rights: any;
  837. tops: any;
  838. bottoms: any;
  839. constructor(originEl: HTMLElement, els: HTMLElement[], isHorizontal: boolean, isVertical: boolean);
  840. build(): void;
  841. buildElHorizontals(originClientLeft: number): void;
  842. buildElVerticals(originClientTop: number): void;
  843. leftToIndex(leftPosition: number): any;
  844. topToIndex(topPosition: number): any;
  845. getWidth(leftIndex: number): number;
  846. getHeight(topIndex: number): number;
  847. }
  848. }
  849. declare module '@fullcalendar/core/common/ScrollComponent' {
  850. import { ElementScrollController } from '@fullcalendar/core/common/scroll-controller';
  851. export interface ScrollbarWidths {
  852. left: number;
  853. right: number;
  854. bottom: number;
  855. }
  856. export { ScrollComponent as default, ScrollComponent };
  857. class ScrollComponent extends ElementScrollController {
  858. overflowX: string;
  859. overflowY: string;
  860. constructor(overflowX: string, overflowY: string);
  861. clear(): void;
  862. destroy(): void;
  863. applyOverflow(): void;
  864. lockOverflow(scrollbarWidths: ScrollbarWidths): void;
  865. setHeight(height: number | string): void;
  866. getScrollbarWidths(): ScrollbarWidths;
  867. }
  868. }
  869. declare module '@fullcalendar/core/common/scroll-controller' {
  870. export abstract class ScrollController {
  871. abstract getScrollTop(): number;
  872. abstract getScrollLeft(): number;
  873. abstract setScrollTop(top: number): void;
  874. abstract setScrollLeft(left: number): void;
  875. abstract getClientWidth(): number;
  876. abstract getClientHeight(): number;
  877. abstract getScrollWidth(): number;
  878. abstract getScrollHeight(): number;
  879. getMaxScrollTop(): number;
  880. getMaxScrollLeft(): number;
  881. canScrollVertically(): boolean;
  882. canScrollHorizontally(): boolean;
  883. canScrollUp(): boolean;
  884. canScrollDown(): boolean;
  885. canScrollLeft(): boolean;
  886. canScrollRight(): boolean;
  887. }
  888. export class ElementScrollController extends ScrollController {
  889. el: HTMLElement;
  890. constructor(el: HTMLElement);
  891. getScrollTop(): number;
  892. getScrollLeft(): number;
  893. setScrollTop(top: number): void;
  894. setScrollLeft(left: number): void;
  895. getScrollWidth(): number;
  896. getScrollHeight(): number;
  897. getClientHeight(): number;
  898. getClientWidth(): number;
  899. }
  900. export class WindowScrollController extends ScrollController {
  901. getScrollTop(): number;
  902. getScrollLeft(): number;
  903. setScrollTop(n: number): void;
  904. setScrollLeft(n: number): void;
  905. getScrollWidth(): number;
  906. getScrollHeight(): number;
  907. getClientHeight(): number;
  908. getClientWidth(): number;
  909. }
  910. }
  911. declare module '@fullcalendar/core/theme/Theme' {
  912. export { Theme as default, Theme };
  913. class Theme {
  914. calendarOptions: any;
  915. classes: any;
  916. iconClasses: any;
  917. baseIconClass: string;
  918. iconOverrideOption: any;
  919. iconOverrideCustomButtonOption: any;
  920. iconOverridePrefix: string;
  921. constructor(calendarOptions: any);
  922. processIconOverride(): void;
  923. setIconOverride(iconOverrideHash: any): void;
  924. applyIconOverridePrefix(className: any): any;
  925. getClass(key: any): any;
  926. getIconClass(buttonName: any): string;
  927. getCustomButtonIconClass(customButtonProps: any): string;
  928. }
  929. export type ThemeClass = {
  930. new (calendarOptions: any): Theme;
  931. };
  932. }
  933. declare module '@fullcalendar/core/component/Component' {
  934. import Calendar from '@fullcalendar/core/Calendar';
  935. import View from '@fullcalendar/core/View';
  936. import Theme from '@fullcalendar/core/theme/Theme';
  937. import { DateEnv } from '@fullcalendar/core/datelib/env';
  938. export interface ComponentContext {
  939. options: any;
  940. dateEnv: DateEnv;
  941. theme: Theme;
  942. calendar: Calendar;
  943. view: View;
  944. }
  945. export type EqualityFuncHash = {
  946. [propName: string]: (obj0: any, obj1: any) => boolean;
  947. };
  948. export { Component as default, Component };
  949. class Component<PropsType> {
  950. equalityFuncs: EqualityFuncHash;
  951. uid: string;
  952. props: PropsType | null;
  953. context: ComponentContext;
  954. dateEnv: DateEnv;
  955. theme: Theme;
  956. view: View;
  957. calendar: Calendar;
  958. isRtl: boolean;
  959. constructor(context: ComponentContext, isView?: boolean);
  960. static addEqualityFuncs(newFuncs: EqualityFuncHash): void;
  961. opt(name: any): any;
  962. receiveProps(props: PropsType): void;
  963. protected render(props: PropsType): void;
  964. destroy(): void;
  965. }
  966. }
  967. declare module '@fullcalendar/core/component/DateComponent' {
  968. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  969. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  970. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  971. import { EventInstanceHash } from '@fullcalendar/core/structs/event';
  972. import { Hit } from '@fullcalendar/core/interactions/hit';
  973. import FgEventRenderer from '@fullcalendar/core/component/renderers/FgEventRenderer';
  974. import FillRenderer from '@fullcalendar/core/component/renderers/FillRenderer';
  975. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  976. import { EventHandlerName, EventHandlerArgs } from '@fullcalendar/core/types/input-types';
  977. export type DateComponentHash = {
  978. [uid: string]: DateComponent<any>;
  979. };
  980. export interface Seg {
  981. component?: DateComponent<any>;
  982. isStart: boolean;
  983. isEnd: boolean;
  984. eventRange?: EventRenderRange;
  985. el?: HTMLElement;
  986. [otherProp: string]: any;
  987. }
  988. export interface EventSegUiInteractionState {
  989. affectedInstances: EventInstanceHash;
  990. segs: Seg[];
  991. isEvent: boolean;
  992. sourceSeg: any;
  993. }
  994. export { DateComponent as default, DateComponent };
  995. class DateComponent<PropsType> extends Component<PropsType> {
  996. fgSegSelector: string;
  997. bgSegSelector: string;
  998. largeUnit: any;
  999. eventRenderer: FgEventRenderer;
  1000. mirrorRenderer: FgEventRenderer;
  1001. fillRenderer: FillRenderer;
  1002. el: HTMLElement;
  1003. constructor(context: ComponentContext, el: HTMLElement, isView?: boolean);
  1004. destroy(): void;
  1005. buildPositionCaches(): void;
  1006. queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null;
  1007. isInteractionValid(interaction: EventInteractionState): boolean;
  1008. isDateSelectionValid(selection: DateSpan): boolean;
  1009. publiclyTrigger<T extends EventHandlerName>(name: T, args?: EventHandlerArgs<T>): any;
  1010. publiclyTriggerAfterSizing<T extends EventHandlerName>(name: T, args: EventHandlerArgs<T>): void;
  1011. hasPublicHandlers<T extends EventHandlerName>(name: T): boolean;
  1012. triggerRenderedSegs(segs: Seg[], isMirrors: boolean): void;
  1013. triggerWillRemoveSegs(segs: Seg[], isMirrors: boolean): void;
  1014. isValidSegDownEl(el: HTMLElement): boolean;
  1015. isValidDateDownEl(el: HTMLElement): boolean;
  1016. isPopover(): boolean;
  1017. isInPopover(el: HTMLElement): boolean;
  1018. }
  1019. }
  1020. declare module '@fullcalendar/core/Calendar' {
  1021. import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
  1022. import OptionsManager from '@fullcalendar/core/OptionsManager';
  1023. import View from '@fullcalendar/core/View';
  1024. import Theme from '@fullcalendar/core/theme/Theme';
  1025. import { OptionsInput, EventHandlerName, EventHandlerArgs } from '@fullcalendar/core/types/input-types';
  1026. import { RawLocaleMap } from '@fullcalendar/core/datelib/locale';
  1027. import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
  1028. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1029. import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
  1030. import { DateSpan, DateSpanApi, DatePointApi } from '@fullcalendar/core/structs/date-span';
  1031. import { DateRangeInput } from '@fullcalendar/core/datelib/date-range';
  1032. import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
  1033. import { EventSourceInput } from '@fullcalendar/core/structs/event-source';
  1034. import { EventInput } from '@fullcalendar/core/structs/event';
  1035. import { CalendarState, Action } from '@fullcalendar/core/reducers/types';
  1036. import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
  1037. import EventApi from '@fullcalendar/core/api/EventApi';
  1038. import { EventStore } from '@fullcalendar/core/structs/event-store';
  1039. import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
  1040. import { ViewSpecHash, ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1041. import { PluginSystem } from '@fullcalendar/core/plugin-system';
  1042. import CalendarComponent from '@fullcalendar/core/CalendarComponent';
  1043. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1044. import { PointerDragEvent } from '@fullcalendar/core/interactions/pointer';
  1045. import { InteractionSettingsInput, Interaction } from '@fullcalendar/core/interactions/interaction';
  1046. export interface DateClickApi extends DatePointApi {
  1047. dayEl: HTMLElement;
  1048. jsEvent: UIEvent;
  1049. view: View;
  1050. }
  1051. export interface DateSelectionApi extends DateSpanApi {
  1052. jsEvent: UIEvent;
  1053. view: View;
  1054. }
  1055. export type DatePointTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
  1056. export type DateSpanTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
  1057. export type CalendarInteraction = {
  1058. destroy(): any;
  1059. };
  1060. export type CalendarInteractionClass = {
  1061. new (calendar: Calendar): CalendarInteraction;
  1062. };
  1063. export type OptionChangeHandler = (propValue: any, calendar: Calendar, deepEqual: any) => void;
  1064. export type OptionChangeHandlerMap = {
  1065. [propName: string]: OptionChangeHandler;
  1066. };
  1067. export { Calendar as default, Calendar };
  1068. class Calendar {
  1069. static on: EmitterInterface['on'];
  1070. static off: EmitterInterface['off'];
  1071. static trigger: EmitterInterface['trigger'];
  1072. on: EmitterInterface['on'];
  1073. one: EmitterInterface['one'];
  1074. off: EmitterInterface['off'];
  1075. trigger: EmitterInterface['trigger'];
  1076. triggerWith: EmitterInterface['triggerWith'];
  1077. hasHandlers: EmitterInterface['hasHandlers'];
  1078. eventUiBases: EventUiHash;
  1079. selectionConfig: EventUi;
  1080. optionsManager: OptionsManager;
  1081. viewSpecs: ViewSpecHash;
  1082. dateProfileGenerators: {
  1083. [viewName: string]: DateProfileGenerator;
  1084. };
  1085. theme: Theme;
  1086. dateEnv: DateEnv;
  1087. availableRawLocales: RawLocaleMap;
  1088. pluginSystem: PluginSystem;
  1089. defaultAllDayEventDuration: Duration;
  1090. defaultTimedEventDuration: Duration;
  1091. calendarInteractions: CalendarInteraction[];
  1092. interactionsStore: {
  1093. [componentUid: string]: Interaction[];
  1094. };
  1095. removeNavLinkListener: any;
  1096. windowResizeProxy: any;
  1097. isHandlingWindowResize: boolean;
  1098. state: CalendarState;
  1099. actionQueue: any[];
  1100. isReducing: boolean;
  1101. needsRerender: boolean;
  1102. needsFullRerender: boolean;
  1103. isRendering: boolean;
  1104. renderingPauseDepth: number;
  1105. renderableEventStore: EventStore;
  1106. buildDelayedRerender: typeof buildDelayedRerender;
  1107. delayedRerender: any;
  1108. afterSizingTriggers: any;
  1109. isViewUpdated: boolean;
  1110. isDatesUpdated: boolean;
  1111. isEventsUpdated: boolean;
  1112. el: HTMLElement;
  1113. component: CalendarComponent;
  1114. constructor(el: HTMLElement, overrides?: OptionsInput);
  1115. addPluginInputs(pluginInputs: any): void;
  1116. readonly view: View;
  1117. render(): void;
  1118. destroy(): void;
  1119. bindHandlers(): void;
  1120. unbindHandlers(): void;
  1121. hydrate(): void;
  1122. buildInitialState(): CalendarState;
  1123. reduce(state: CalendarState, action: Action, calendar: Calendar): CalendarState;
  1124. requestRerender(needsFull?: boolean): void;
  1125. tryRerender(): void;
  1126. batchRendering(func: any): void;
  1127. executeRender(): void;
  1128. renderComponent(needsFull: any): void;
  1129. setOption(name: string, val: any): void;
  1130. getOption(name: string): any;
  1131. opt(name: string): any;
  1132. viewOpt(name: string): any;
  1133. viewOpts(): any;
  1134. mutateOptions(updates: any, removals: string[], isDynamic?: boolean, deepEqual?: any): void;
  1135. handleOptions(options: any): void;
  1136. getAvailableLocaleCodes(): string[];
  1137. _buildSelectionConfig(rawOpts: any): EventUi;
  1138. _buildEventUiSingleBase(rawOpts: any): EventUi;
  1139. hasPublicHandlers<T extends EventHandlerName>(name: T): boolean;
  1140. publiclyTrigger<T extends EventHandlerName>(name: T, args?: EventHandlerArgs<T>): any;
  1141. publiclyTriggerAfterSizing<T extends EventHandlerName>(name: T, args: EventHandlerArgs<T>): void;
  1142. releaseAfterSizingTriggers(): void;
  1143. isValidViewType(viewType: string): boolean;
  1144. changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void;
  1145. zoomTo(dateMarker: DateMarker, viewType?: string): void;
  1146. getUnitViewSpec(unit: string): ViewSpec | null;
  1147. getInitialDate(): Date;
  1148. prev(): void;
  1149. next(): void;
  1150. prevYear(): void;
  1151. nextYear(): void;
  1152. today(): void;
  1153. gotoDate(zonedDateInput: any): void;
  1154. incrementDate(deltaInput: any): void;
  1155. getDate(): Date;
  1156. formatDate(d: DateInput, formatter: any): string;
  1157. formatRange(d0: DateInput, d1: DateInput, settings: any): any;
  1158. formatIso(d: DateInput, omitTime?: boolean): string;
  1159. windowResize(ev: Event): void;
  1160. updateSize(): void;
  1161. registerInteractiveComponent(component: DateComponent<any>, settingsInput: InteractionSettingsInput): void;
  1162. unregisterInteractiveComponent(component: DateComponent<any>): void;
  1163. select(dateOrObj: DateInput | any, endDate?: DateInput): void;
  1164. unselect(pev?: PointerDragEvent): void;
  1165. triggerDateSelect(selection: DateSpan, pev?: PointerDragEvent): void;
  1166. triggerDateUnselect(pev?: PointerDragEvent): void;
  1167. triggerDateClick(dateSpan: DateSpan, dayEl: HTMLElement, view: View, ev: UIEvent): void;
  1168. buildDatePointApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DatePointApi;
  1169. buildDateSpanApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DateSpanApi;
  1170. getNow(): DateMarker;
  1171. getDefaultEventEnd(allDay: boolean, marker: DateMarker): DateMarker;
  1172. addEvent(eventInput: EventInput, sourceInput?: EventSourceApi | string | number): EventApi | null;
  1173. getEventById(id: string): EventApi | null;
  1174. getEvents(): EventApi[];
  1175. removeAllEvents(): void;
  1176. rerenderEvents(): void;
  1177. getEventSources(): EventSourceApi[];
  1178. getEventSourceById(id: string | number): EventSourceApi | null;
  1179. addEventSource(sourceInput: EventSourceInput): EventSourceApi;
  1180. removeAllEventSources(): void;
  1181. refetchEvents(): void;
  1182. scrollToTime(timeInput: DurationInput): void;
  1183. }
  1184. function buildDelayedRerender(this: Calendar, wait: any): any;
  1185. export {};
  1186. }
  1187. declare module '@fullcalendar/core/View' {
  1188. import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  1189. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1190. import { Duration } from '@fullcalendar/core/datelib/duration';
  1191. import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
  1192. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1193. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1194. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1195. import { EventStore } from '@fullcalendar/core/structs/event-store';
  1196. import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
  1197. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1198. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  1199. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  1200. import { EventDef } from '@fullcalendar/core/structs/event';
  1201. export interface ViewProps {
  1202. dateProfile: DateProfile;
  1203. businessHours: EventStore;
  1204. eventStore: EventStore;
  1205. eventUiBases: EventUiHash;
  1206. dateSelection: DateSpan | null;
  1207. eventSelection: string;
  1208. eventDrag: EventInteractionState | null;
  1209. eventResize: EventInteractionState | null;
  1210. }
  1211. export { View as default, View };
  1212. abstract class View extends DateComponent<ViewProps> {
  1213. usesMinMaxTime: boolean;
  1214. dateProfileGeneratorClass: any;
  1215. on: EmitterInterface['on'];
  1216. one: EmitterInterface['one'];
  1217. off: EmitterInterface['off'];
  1218. trigger: EmitterInterface['trigger'];
  1219. triggerWith: EmitterInterface['triggerWith'];
  1220. hasHandlers: EmitterInterface['hasHandlers'];
  1221. viewSpec: ViewSpec;
  1222. dateProfileGenerator: DateProfileGenerator;
  1223. type: string;
  1224. title: string;
  1225. queuedScroll: any;
  1226. eventOrderSpecs: any;
  1227. nextDayThreshold: Duration;
  1228. isNowIndicatorRendered: boolean;
  1229. initialNowDate: DateMarker;
  1230. initialNowQueriedMs: number;
  1231. nowIndicatorTimeoutID: any;
  1232. nowIndicatorIntervalID: any;
  1233. constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
  1234. initialize(): void;
  1235. readonly activeStart: Date;
  1236. readonly activeEnd: Date;
  1237. readonly currentStart: Date;
  1238. readonly currentEnd: Date;
  1239. render(props: ViewProps): void;
  1240. destroy(): void;
  1241. updateSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
  1242. updateBaseSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
  1243. renderDatesWrap(dateProfile: DateProfile): void;
  1244. unrenderDatesWrap(): void;
  1245. renderDates(dateProfile: DateProfile): void;
  1246. unrenderDates(): void;
  1247. renderBusinessHours(businessHours: EventStore): void;
  1248. unrenderBusinessHours(): void;
  1249. renderDateSelectionWrap(selection: DateSpan): void;
  1250. unrenderDateSelectionWrap(selection: DateSpan): void;
  1251. renderDateSelection(selection: DateSpan): void;
  1252. unrenderDateSelection(selection: DateSpan): void;
  1253. renderEvents(eventStore: EventStore): void;
  1254. unrenderEvents(): void;
  1255. sliceEvents(eventStore: EventStore, allDay: boolean): EventRenderRange[];
  1256. computeEventDraggable(eventDef: EventDef, eventUi: EventUi): boolean;
  1257. computeEventStartResizable(eventDef: EventDef, eventUi: EventUi): any;
  1258. computeEventEndResizable(eventDef: EventDef, eventUi: EventUi): boolean;
  1259. renderEventSelectionWrap(instanceId: string): void;
  1260. unrenderEventSelectionWrap(instanceId: string): void;
  1261. renderEventSelection(instanceId: string): void;
  1262. unrenderEventSelection(instanceId: string): void;
  1263. renderEventDragWrap(state: EventInteractionState): void;
  1264. unrenderEventDragWrap(state: EventInteractionState): void;
  1265. renderEventDrag(state: EventInteractionState): void;
  1266. unrenderEventDrag(state: EventInteractionState): void;
  1267. renderEventResizeWrap(state: EventInteractionState): void;
  1268. unrenderEventResizeWrap(state: EventInteractionState): void;
  1269. renderEventResize(state: EventInteractionState): void;
  1270. unrenderEventResize(state: EventInteractionState): void;
  1271. startNowIndicator(dateProfile: DateProfile): void;
  1272. updateNowIndicator(): void;
  1273. stopNowIndicator(): void;
  1274. getNowIndicatorUnit(dateProfile: DateProfile): void;
  1275. renderNowIndicator(date: any): void;
  1276. unrenderNowIndicator(): void;
  1277. addScroll(scroll: any): void;
  1278. popScroll(isResize: boolean): void;
  1279. applyQueuedScroll(isResize: boolean): void;
  1280. queryScroll(): any;
  1281. applyScroll(scroll: any, isResize: boolean): void;
  1282. computeDateScroll(duration: Duration): {};
  1283. queryDateScroll(): {};
  1284. applyDateScroll(scroll: any): void;
  1285. scrollToDuration(duration: Duration): void;
  1286. }
  1287. }
  1288. declare module '@fullcalendar/core/component/renderers/FgEventRenderer' {
  1289. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1290. import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
  1291. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1292. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1293. import { Seg } from '@fullcalendar/core/component/DateComponent';
  1294. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1295. export { FgEventRenderer as default, FgEventRenderer };
  1296. abstract class FgEventRenderer {
  1297. context: ComponentContext;
  1298. eventTimeFormat: DateFormatter;
  1299. displayEventTime: boolean;
  1300. displayEventEnd: boolean;
  1301. segs: Seg[];
  1302. isSizeDirty: boolean;
  1303. constructor(context: ComponentContext);
  1304. renderSegs(segs: Seg[], mirrorInfo?: any): void;
  1305. unrender(_segs: Seg[], mirrorInfo?: any): void;
  1306. abstract renderSegHtml(seg: Seg, mirrorInfo: any): string;
  1307. abstract attachSegs(segs: Seg[], mirrorInfo: any): any;
  1308. abstract detachSegs(segs: Seg[]): any;
  1309. rangeUpdated(): void;
  1310. renderSegEls(segs: Seg[], mirrorInfo: any): Seg[];
  1311. getSegClasses(seg: Seg, isDraggable: any, isResizable: any, mirrorInfo: any): string[];
  1312. getTimeText(eventRange: EventRenderRange, formatter?: any, displayEnd?: any): any;
  1313. _getTimeText(start: DateMarker, end: DateMarker, allDay: any, formatter?: any, displayEnd?: any, forcedStartTzo?: number, forcedEndTzo?: number): any;
  1314. computeEventTimeFormat(): any;
  1315. computeDisplayEventTime(): boolean;
  1316. computeDisplayEventEnd(): boolean;
  1317. getSkinCss(ui: EventUi): {
  1318. 'background-color': string;
  1319. 'border-color': string;
  1320. color: string;
  1321. };
  1322. sortEventSegs(segs: any): Seg[];
  1323. computeSizes(force: boolean): void;
  1324. assignSizes(force: boolean): void;
  1325. computeSegSizes(segs: Seg[]): void;
  1326. assignSegSizes(segs: Seg[]): void;
  1327. hideByHash(hash: any): void;
  1328. showByHash(hash: any): void;
  1329. selectByInstanceId(instanceId: string): void;
  1330. unselectByInstanceId(instanceId: string): void;
  1331. }
  1332. export function buildSegCompareObj(seg: Seg): any;
  1333. }
  1334. declare module '@fullcalendar/core/component/renderers/FillRenderer' {
  1335. import { Seg } from '@fullcalendar/core/component/DateComponent';
  1336. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1337. export { FillRenderer as default, FillRenderer };
  1338. abstract class FillRenderer {
  1339. context: ComponentContext;
  1340. fillSegTag: string;
  1341. containerElsByType: any;
  1342. segsByType: any;
  1343. dirtySizeFlags: any;
  1344. constructor(context: ComponentContext);
  1345. getSegsByType(type: string): any;
  1346. renderSegs(type: any, segs: Seg[]): void;
  1347. unrender(type: any): void;
  1348. renderSegEls(type: any, segs: Seg[]): Seg[];
  1349. renderSegHtml(type: any, seg: Seg): string;
  1350. abstract attachSegs(type: any, segs: Seg[]): HTMLElement[] | void;
  1351. detachSegs(type: any, segs: Seg[]): void;
  1352. computeSizes(force: boolean): void;
  1353. assignSizes(force: boolean): void;
  1354. computeSegSizes(segs: Seg[]): void;
  1355. assignSegSizes(segs: Seg[]): void;
  1356. }
  1357. }
  1358. declare module '@fullcalendar/core/DateProfileGenerator' {
  1359. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1360. import { Duration } from '@fullcalendar/core/datelib/duration';
  1361. import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
  1362. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1363. import { DateEnv } from '@fullcalendar/core/datelib/env';
  1364. import Calendar from '@fullcalendar/core/Calendar';
  1365. export interface DateProfile {
  1366. currentRange: DateRange;
  1367. currentRangeUnit: string;
  1368. isRangeAllDay: boolean;
  1369. validRange: OpenDateRange;
  1370. activeRange: DateRange;
  1371. renderRange: DateRange;
  1372. minTime: Duration;
  1373. maxTime: Duration;
  1374. isValid: boolean;
  1375. dateIncrement: Duration;
  1376. }
  1377. export { DateProfileGenerator as default, DateProfileGenerator };
  1378. class DateProfileGenerator {
  1379. viewSpec: ViewSpec;
  1380. options: any;
  1381. dateEnv: DateEnv;
  1382. calendar: Calendar;
  1383. isHiddenDayHash: boolean[];
  1384. constructor(viewSpec: ViewSpec, calendar: Calendar);
  1385. buildPrev(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
  1386. buildNext(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
  1387. build(currentDate: DateMarker, direction?: any, forceToValid?: boolean): DateProfile;
  1388. buildValidRange(): OpenDateRange;
  1389. buildCurrentRangeInfo(date: DateMarker, direction: any): {
  1390. duration: any;
  1391. unit: any;
  1392. range: any;
  1393. };
  1394. getFallbackDuration(): Duration;
  1395. adjustActiveRange(range: DateRange, minTime: Duration, maxTime: Duration): {
  1396. start: Date;
  1397. end: Date;
  1398. };
  1399. buildRangeFromDuration(date: DateMarker, direction: any, duration: Duration, unit: any): any;
  1400. buildRangeFromDayCount(date: DateMarker, direction: any, dayCount: any): {
  1401. start: Date;
  1402. end: Date;
  1403. };
  1404. buildCustomVisibleRange(date: DateMarker): OpenDateRange;
  1405. buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange;
  1406. buildDateIncrement(fallback: any): Duration;
  1407. getRangeOption(name: any, ...otherArgs: any[]): OpenDateRange;
  1408. initHiddenDays(): void;
  1409. trimHiddenDays(range: DateRange): DateRange | null;
  1410. isHiddenDay(day: any): boolean;
  1411. skipHiddenDays(date: DateMarker, inc?: number, isExclusive?: boolean): Date;
  1412. }
  1413. export function isDateProfilesEqual(p0: DateProfile, p1: DateProfile): boolean;
  1414. }
  1415. declare module '@fullcalendar/core/structs/view-def' {
  1416. import { ViewClass, ViewConfigHash } from '@fullcalendar/core/structs/view-config';
  1417. export interface ViewDef {
  1418. type: string;
  1419. class: ViewClass;
  1420. overrides: any;
  1421. defaults: any;
  1422. }
  1423. export type ViewDefHash = {
  1424. [viewType: string]: ViewDef;
  1425. };
  1426. export function compileViewDefs(defaultConfigs: ViewConfigHash, overrideConfigs: ViewConfigHash): ViewDefHash;
  1427. }
  1428. declare module '@fullcalendar/core/structs/view-spec' {
  1429. import { Duration } from '@fullcalendar/core/datelib/duration';
  1430. import OptionsManager from '@fullcalendar/core/OptionsManager';
  1431. import { ViewConfigInputHash, ViewClass } from '@fullcalendar/core/structs/view-config';
  1432. export interface ViewSpec {
  1433. type: string;
  1434. class: ViewClass;
  1435. duration: Duration;
  1436. durationUnit: string;
  1437. singleUnit: string;
  1438. options: any;
  1439. buttonTextOverride: string;
  1440. buttonTextDefault: string;
  1441. }
  1442. export type ViewSpecHash = {
  1443. [viewType: string]: ViewSpec;
  1444. };
  1445. export function buildViewSpecs(defaultInputs: ViewConfigInputHash, optionsManager: OptionsManager): ViewSpecHash;
  1446. }
  1447. declare module '@fullcalendar/core/structs/date-span' {
  1448. import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
  1449. import { DateInput, DateEnv } from '@fullcalendar/core/datelib/env';
  1450. import { Duration } from '@fullcalendar/core/datelib/duration';
  1451. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1452. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  1453. import Calendar from '@fullcalendar/core/Calendar';
  1454. export interface OpenDateSpanInput {
  1455. start?: DateInput;
  1456. end?: DateInput;
  1457. allDay?: boolean;
  1458. [otherProp: string]: any;
  1459. }
  1460. export interface DateSpanInput extends OpenDateSpanInput {
  1461. start: DateInput;
  1462. end: DateInput;
  1463. }
  1464. export interface OpenDateSpan {
  1465. range: OpenDateRange;
  1466. allDay: boolean;
  1467. [otherProp: string]: any;
  1468. }
  1469. export interface DateSpan extends OpenDateSpan {
  1470. range: DateRange;
  1471. }
  1472. export interface DateSpanApi {
  1473. start: Date;
  1474. end: Date;
  1475. startStr: string;
  1476. endStr: string;
  1477. allDay: boolean;
  1478. }
  1479. export interface DatePointApi {
  1480. date: Date;
  1481. dateStr: string;
  1482. allDay: boolean;
  1483. }
  1484. export function parseDateSpan(raw: DateSpanInput, dateEnv: DateEnv, defaultDuration?: Duration): DateSpan | null;
  1485. export function parseOpenDateSpan(raw: OpenDateSpanInput, dateEnv: DateEnv): OpenDateSpan | null;
  1486. export function isDateSpansEqual(span0: DateSpan, span1: DateSpan): boolean;
  1487. export function buildDateSpanApi(span: DateSpan, dateEnv: DateEnv): DateSpanApi;
  1488. export function buildDatePointApi(span: DateSpan, dateEnv: DateEnv): DatePointApi;
  1489. export function fabricateEventRange(dateSpan: DateSpan, eventUiBases: EventUiHash, calendar: Calendar): EventRenderRange;
  1490. }
  1491. declare module '@fullcalendar/core/datelib/marker' {
  1492. import { Duration } from '@fullcalendar/core/datelib/duration';
  1493. export type DateMarker = Date;
  1494. export const DAY_IDS: string[];
  1495. export function addWeeks(m: DateMarker, n: number): Date;
  1496. export function addDays(m: DateMarker, n: number): Date;
  1497. export function addMs(m: DateMarker, n: number): Date;
  1498. export function diffWeeks(m0: any, m1: any): number;
  1499. export function diffDays(m0: any, m1: any): number;
  1500. export function diffHours(m0: any, m1: any): number;
  1501. export function diffMinutes(m0: any, m1: any): number;
  1502. export function diffSeconds(m0: any, m1: any): number;
  1503. export function diffDayAndTime(m0: DateMarker, m1: DateMarker): Duration;
  1504. export function diffWholeWeeks(m0: DateMarker, m1: DateMarker): number;
  1505. export function diffWholeDays(m0: DateMarker, m1: DateMarker): number;
  1506. export function startOfDay(m: DateMarker): DateMarker;
  1507. export function startOfHour(m: DateMarker): Date;
  1508. export function startOfMinute(m: DateMarker): Date;
  1509. export function startOfSecond(m: DateMarker): Date;
  1510. export function weekOfYear(marker: any, dow: any, doy: any): number;
  1511. export function dateToLocalArray(date: any): any[];
  1512. export function arrayToLocalDate(a: any): Date;
  1513. export function dateToUtcArray(date: any): any[];
  1514. export function arrayToUtcDate(a: any): Date;
  1515. export function isValidDate(m: DateMarker): boolean;
  1516. export function timeAsMs(m: DateMarker): number;
  1517. }
  1518. declare module '@fullcalendar/core/datelib/duration' {
  1519. export type DurationInput = DurationObjectInput | string | number;
  1520. export interface DurationObjectInput {
  1521. years?: number;
  1522. year?: number;
  1523. months?: number;
  1524. month?: number;
  1525. weeks?: number;
  1526. week?: number;
  1527. days?: number;
  1528. day?: number;
  1529. hours?: number;
  1530. hour?: number;
  1531. minutes?: number;
  1532. minute?: number;
  1533. seconds?: number;
  1534. second?: number;
  1535. milliseconds?: number;
  1536. millisecond?: number;
  1537. ms?: number;
  1538. }
  1539. export interface Duration {
  1540. years: number;
  1541. months: number;
  1542. days: number;
  1543. milliseconds: number;
  1544. }
  1545. export function createDuration(input: DurationInput, unit?: string): Duration | null;
  1546. export function getWeeksFromInput(obj: DurationObjectInput): number;
  1547. export function durationsEqual(d0: Duration, d1: Duration): boolean;
  1548. export function isSingleDay(dur: Duration): boolean;
  1549. export function addDurations(d0: Duration, d1: Duration): {
  1550. years: number;
  1551. months: number;
  1552. days: number;
  1553. milliseconds: number;
  1554. };
  1555. export function subtractDurations(d1: Duration, d0: Duration): Duration;
  1556. export function multiplyDuration(d: Duration, n: number): {
  1557. years: number;
  1558. months: number;
  1559. days: number;
  1560. milliseconds: number;
  1561. };
  1562. export function asRoughYears(dur: Duration): number;
  1563. export function asRoughMonths(dur: Duration): number;
  1564. export function asRoughDays(dur: Duration): number;
  1565. export function asRoughHours(dur: Duration): number;
  1566. export function asRoughMinutes(dur: Duration): number;
  1567. export function asRoughSeconds(dur: Duration): number;
  1568. export function asRoughMs(dur: Duration): number;
  1569. export function wholeDivideDurations(numerator: Duration, denominator: Duration): number;
  1570. export function greatestDurationDenominator(dur: Duration, dontReturnWeeks?: boolean): {
  1571. unit: string;
  1572. value: number;
  1573. };
  1574. }
  1575. declare module '@fullcalendar/core/datelib/env' {
  1576. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1577. import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
  1578. import { Locale } from '@fullcalendar/core/datelib/locale';
  1579. import { NamedTimeZoneImpl, NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
  1580. import { Duration } from '@fullcalendar/core/datelib/duration';
  1581. import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
  1582. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  1583. export interface DateEnvSettings {
  1584. timeZone: string;
  1585. namedTimeZoneImpl?: NamedTimeZoneImplClass;
  1586. calendarSystem: string;
  1587. locale: Locale;
  1588. weekNumberCalculation?: any;
  1589. firstDay?: any;
  1590. weekLabel?: string;
  1591. cmdFormatter?: CmdFormatterFunc;
  1592. }
  1593. export type DateInput = Date | string | number | number[];
  1594. export interface DateMarkerMeta {
  1595. marker: DateMarker;
  1596. isTimeUnspecified: boolean;
  1597. forcedTzo: number | null;
  1598. }
  1599. export class DateEnv {
  1600. timeZone: string;
  1601. namedTimeZoneImpl: NamedTimeZoneImpl;
  1602. canComputeOffset: boolean;
  1603. calendarSystem: CalendarSystem;
  1604. locale: Locale;
  1605. weekDow: number;
  1606. weekDoy: number;
  1607. weekNumberFunc: any;
  1608. weekLabel: string;
  1609. cmdFormatter?: CmdFormatterFunc;
  1610. constructor(settings: DateEnvSettings);
  1611. createMarker(input: DateInput): DateMarker;
  1612. createNowMarker(): DateMarker;
  1613. createMarkerMeta(input: DateInput): DateMarkerMeta;
  1614. parse(s: string): {
  1615. marker: Date;
  1616. isTimeUnspecified: boolean;
  1617. forcedTzo: any;
  1618. };
  1619. getYear(marker: DateMarker): number;
  1620. getMonth(marker: DateMarker): number;
  1621. add(marker: DateMarker, dur: Duration): DateMarker;
  1622. subtract(marker: DateMarker, dur: Duration): DateMarker;
  1623. addYears(marker: DateMarker, n: number): Date;
  1624. addMonths(marker: DateMarker, n: number): Date;
  1625. diffWholeYears(m0: DateMarker, m1: DateMarker): number;
  1626. diffWholeMonths(m0: DateMarker, m1: DateMarker): number;
  1627. greatestWholeUnit(m0: DateMarker, m1: DateMarker): {
  1628. unit: string;
  1629. value: number;
  1630. };
  1631. countDurationsBetween(m0: DateMarker, m1: DateMarker, d: Duration): number;
  1632. startOf(m: DateMarker, unit: string): Date;
  1633. startOfYear(m: DateMarker): DateMarker;
  1634. startOfMonth(m: DateMarker): DateMarker;
  1635. startOfWeek(m: DateMarker): DateMarker;
  1636. computeWeekNumber(marker: DateMarker): number;
  1637. format(marker: DateMarker, formatter: DateFormatter, dateOptions?: {
  1638. forcedTzo?: number;
  1639. }): any;
  1640. formatRange(start: DateMarker, end: DateMarker, formatter: DateFormatter, dateOptions?: {
  1641. forcedStartTzo?: number;
  1642. forcedEndTzo?: number;
  1643. isEndExclusive?: boolean;
  1644. }): any;
  1645. formatIso(marker: DateMarker, extraOptions?: any): string;
  1646. timestampToMarker(ms: number): Date;
  1647. offsetForMarker(m: DateMarker): number;
  1648. toDate(m: DateMarker, forcedTzo?: number): Date;
  1649. }
  1650. }
  1651. declare module '@fullcalendar/core/datelib/formatting' {
  1652. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1653. import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
  1654. import { Locale } from '@fullcalendar/core/datelib/locale';
  1655. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  1656. import { FuncFormatterFunc } from '@fullcalendar/core/datelib/formatting-func';
  1657. export interface ZonedMarker {
  1658. marker: DateMarker;
  1659. timeZoneOffset: number;
  1660. }
  1661. export interface ExpandedZonedMarker extends ZonedMarker {
  1662. array: number[];
  1663. year: number;
  1664. month: number;
  1665. day: number;
  1666. hour: number;
  1667. minute: number;
  1668. second: number;
  1669. millisecond: number;
  1670. }
  1671. export interface VerboseFormattingArg {
  1672. date: ExpandedZonedMarker;
  1673. start: ExpandedZonedMarker;
  1674. end?: ExpandedZonedMarker;
  1675. timeZone: string;
  1676. localeCodes: string[];
  1677. separator: string;
  1678. }
  1679. export interface DateFormattingContext {
  1680. timeZone: string;
  1681. locale: Locale;
  1682. calendarSystem: CalendarSystem;
  1683. computeWeekNumber: (d: DateMarker) => number;
  1684. weekLabel: string;
  1685. cmdFormatter?: CmdFormatterFunc;
  1686. }
  1687. export interface DateFormatter {
  1688. format(date: ZonedMarker, context: DateFormattingContext): any;
  1689. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): any;
  1690. }
  1691. export type FormatterInput = object | string | FuncFormatterFunc;
  1692. export function createFormatter(input: FormatterInput, defaultSeparator?: string): DateFormatter;
  1693. export function buildIsoString(marker: DateMarker, timeZoneOffset?: number, stripZeroTime?: boolean): string;
  1694. export function formatIsoTimeString(marker: DateMarker): string;
  1695. export function formatTimeZoneOffset(minutes: number, doIso?: boolean): string;
  1696. export function createVerboseFormattingArg(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext, separator?: string): VerboseFormattingArg;
  1697. }
  1698. declare module '@fullcalendar/core/datelib/timezone' {
  1699. export abstract class NamedTimeZoneImpl {
  1700. timeZoneName: string;
  1701. constructor(timeZoneName: string);
  1702. abstract offsetForArray(a: number[]): number;
  1703. abstract timestampToArray(ms: number): number[];
  1704. }
  1705. export type NamedTimeZoneImplClass = {
  1706. new (timeZoneName: string): NamedTimeZoneImpl;
  1707. };
  1708. }
  1709. declare module '@fullcalendar/core/datelib/parsing' {
  1710. export function parse(str: any): {
  1711. marker: Date;
  1712. isTimeUnspecified: boolean;
  1713. timeZoneOffset: any;
  1714. };
  1715. }
  1716. declare module '@fullcalendar/core/structs/event-source' {
  1717. import { EventInput } from '@fullcalendar/core/structs/event';
  1718. import Calendar from '@fullcalendar/core/Calendar';
  1719. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  1720. import { EventSourceFunc } from '@fullcalendar/core/event-sources/func-event-source';
  1721. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1722. import { ConstraintInput, AllowFunc } from '@fullcalendar/core/validation';
  1723. export type EventSourceError = {
  1724. message: string;
  1725. response?: any;
  1726. [otherProp: string]: any;
  1727. };
  1728. export type EventInputTransformer = (eventInput: EventInput) => EventInput | null;
  1729. export type EventSourceSuccessResponseHandler = (rawData: any, response: any) => EventInput[] | void;
  1730. export type EventSourceErrorResponseHandler = (error: EventSourceError) => void;
  1731. export interface ExtendedEventSourceInput {
  1732. id?: string | number;
  1733. allDayDefault?: boolean;
  1734. eventDataTransform?: EventInputTransformer;
  1735. events?: EventInput[] | EventSourceFunc;
  1736. url?: string;
  1737. method?: string;
  1738. extraParams?: object | (() => object);
  1739. startParam?: string;
  1740. endParam?: string;
  1741. timeZoneParam?: string;
  1742. success?: EventSourceSuccessResponseHandler;
  1743. failure?: EventSourceErrorResponseHandler;
  1744. editable?: boolean;
  1745. startEditable?: boolean;
  1746. durationEditable?: boolean;
  1747. constraint?: ConstraintInput;
  1748. overlap?: boolean;
  1749. allow?: AllowFunc;
  1750. className?: string[] | string;
  1751. classNames?: string[] | string;
  1752. backgroundColor?: string;
  1753. borderColor?: string;
  1754. textColor?: string;
  1755. color?: string;
  1756. [otherProp: string]: any;
  1757. }
  1758. export type EventSourceInput = ExtendedEventSourceInput | // object in extended form
  1759. EventSourceFunc | // just a function
  1760. string;
  1761. export interface EventSource {
  1762. _raw: any;
  1763. sourceId: string;
  1764. sourceDefId: number;
  1765. meta: any;
  1766. publicId: string;
  1767. isFetching: boolean;
  1768. latestFetchId: string;
  1769. fetchRange: DateRange | null;
  1770. allDayDefault: boolean | null;
  1771. eventDataTransform: EventInputTransformer;
  1772. ui: EventUi;
  1773. success: EventSourceSuccessResponseHandler | null;
  1774. failure: EventSourceErrorResponseHandler | null;
  1775. extendedProps: any;
  1776. }
  1777. export type EventSourceHash = {
  1778. [sourceId: string]: EventSource;
  1779. };
  1780. export type EventSourceFetcher = (arg: {
  1781. eventSource: EventSource;
  1782. calendar: Calendar;
  1783. range: DateRange;
  1784. }, success: (res: {
  1785. rawEvents: EventInput[];
  1786. xhr?: XMLHttpRequest;
  1787. }) => void, failure: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
  1788. export interface EventSourceDef {
  1789. ignoreRange?: boolean;
  1790. parseMeta: (raw: EventSourceInput) => object | null;
  1791. fetch: EventSourceFetcher;
  1792. }
  1793. export function doesSourceNeedRange(eventSource: EventSource, calendar: Calendar): boolean;
  1794. export function parseEventSource(raw: EventSourceInput, calendar: Calendar): EventSource | null;
  1795. }
  1796. declare module '@fullcalendar/core/interactions/interaction' {
  1797. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1798. export abstract class Interaction {
  1799. component: DateComponent<any>;
  1800. constructor(settings: InteractionSettings);
  1801. destroy(): void;
  1802. }
  1803. export type InteractionClass = {
  1804. new (settings: InteractionSettings): Interaction;
  1805. };
  1806. export interface InteractionSettingsInput {
  1807. el: HTMLElement;
  1808. useEventCenter?: boolean;
  1809. }
  1810. export interface InteractionSettings {
  1811. component: DateComponent<any>;
  1812. el: HTMLElement;
  1813. useEventCenter: boolean;
  1814. }
  1815. export type InteractionSettingsStore = {
  1816. [componenUid: string]: InteractionSettings;
  1817. };
  1818. export function parseInteractionSettings(component: DateComponent<any>, input: InteractionSettingsInput): InteractionSettings;
  1819. export function interactionSettingsToStore(settings: InteractionSettings): {
  1820. [x: string]: InteractionSettings;
  1821. };
  1822. export let interactionSettingsStore: InteractionSettingsStore;
  1823. }
  1824. declare module '@fullcalendar/core/interactions/pointer' {
  1825. export interface PointerDragEvent {
  1826. origEvent: UIEvent;
  1827. isTouch: boolean;
  1828. subjectEl: EventTarget;
  1829. pageX: number;
  1830. pageY: number;
  1831. deltaX: number;
  1832. deltaY: number;
  1833. }
  1834. }
  1835. declare module '@fullcalendar/core/interactions/hit' {
  1836. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1837. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  1838. import { Rect } from '@fullcalendar/core/util/geom';
  1839. export interface Hit {
  1840. component: DateComponent<any>;
  1841. dateSpan: DateSpan;
  1842. dayEl: HTMLElement;
  1843. rect: Rect;
  1844. layer: number;
  1845. }
  1846. }
  1847. declare module '@fullcalendar/core/interactions/date-selecting' {
  1848. import { Hit } from '@fullcalendar/core/interactions/hit';
  1849. export type dateSelectionJoinTransformer = (hit0: Hit, hit1: Hit) => any;
  1850. }
  1851. declare module '@fullcalendar/core/interactions/event-dragging' {
  1852. import Calendar from '@fullcalendar/core/Calendar';
  1853. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  1854. import { Hit } from '@fullcalendar/core/interactions/hit';
  1855. import { EventDef } from '@fullcalendar/core/structs/event';
  1856. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1857. import { View } from '@fullcalendar/core';
  1858. export type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void;
  1859. export type EventDropTransformers = (mutation: EventMutation, calendar: Calendar) => any;
  1860. export type eventIsDraggableTransformer = (val: boolean, eventDef: EventDef, eventUi: EventUi, view: View) => boolean;
  1861. }
  1862. declare module '@fullcalendar/core/interactions/event-resizing' {
  1863. import { Hit } from '@fullcalendar/core/interactions/hit';
  1864. export type EventResizeJoinTransforms = (hit0: Hit, hit1: Hit) => false | object;
  1865. }
  1866. declare module '@fullcalendar/core/interactions/ElementDragging' {
  1867. import EmitterMixin from '@fullcalendar/core/common/EmitterMixin';
  1868. export { ElementDragging as default, ElementDragging };
  1869. abstract class ElementDragging {
  1870. emitter: EmitterMixin;
  1871. constructor(el: HTMLElement);
  1872. destroy(): void;
  1873. abstract setIgnoreMove(bool: boolean): void;
  1874. setMirrorIsVisible(bool: boolean): void;
  1875. setMirrorNeedsRevert(bool: boolean): void;
  1876. setAutoScrollEnabled(bool: boolean): void;
  1877. }
  1878. export type ElementDraggingClass = {
  1879. new (el: HTMLElement): ElementDragging;
  1880. };
  1881. }
  1882. declare module '@fullcalendar/core/formatting-api' {
  1883. import { DateInput } from '@fullcalendar/core/datelib/env';
  1884. export function formatDate(dateInput: DateInput, settings?: {}): any;
  1885. export function formatRange(startInput: DateInput, endInput: DateInput, settings: any): any;
  1886. }
  1887. declare module '@fullcalendar/core/options' {
  1888. import { PluginDef } from '@fullcalendar/core/plugin-system';
  1889. export const config: any;
  1890. export const globalDefaults: {
  1891. defaultRangeSeparator: string;
  1892. titleRangeSeparator: string;
  1893. defaultTimedEventDuration: string;
  1894. defaultAllDayEventDuration: {
  1895. day: number;
  1896. };
  1897. forceEventDuration: boolean;
  1898. nextDayThreshold: string;
  1899. columnHeader: boolean;
  1900. defaultView: string;
  1901. aspectRatio: number;
  1902. header: {
  1903. left: string;
  1904. center: string;
  1905. right: string;
  1906. };
  1907. weekends: boolean;
  1908. weekNumbers: boolean;
  1909. weekNumberCalculation: string;
  1910. editable: boolean;
  1911. scrollTime: string;
  1912. minTime: string;
  1913. maxTime: string;
  1914. showNonCurrentDates: boolean;
  1915. lazyFetching: boolean;
  1916. startParam: string;
  1917. endParam: string;
  1918. timeZoneParam: string;
  1919. timeZone: string;
  1920. locales: any[];
  1921. locale: string;
  1922. timeGridEventMinHeight: number;
  1923. themeSystem: string;
  1924. dragRevertDuration: number;
  1925. dragScroll: boolean;
  1926. allDayMaintainDuration: boolean;
  1927. unselectAuto: boolean;
  1928. dropAccept: string;
  1929. eventOrder: string;
  1930. eventLimit: boolean;
  1931. eventLimitClick: string;
  1932. dayPopoverFormat: {
  1933. month: string;
  1934. day: string;
  1935. year: string;
  1936. };
  1937. handleWindowResize: boolean;
  1938. windowResizeDelay: number;
  1939. longPressDelay: number;
  1940. eventDragMinDistance: number;
  1941. };
  1942. export const rtlDefaults: {
  1943. header: {
  1944. left: string;
  1945. center: string;
  1946. right: string;
  1947. };
  1948. buttonIcons: {
  1949. prev: string;
  1950. next: string;
  1951. prevYear: string;
  1952. nextYear: string;
  1953. };
  1954. };
  1955. export function mergeOptions(optionObjs: any): any;
  1956. export function refinePluginDefs(pluginInputs: any[]): PluginDef[];
  1957. }
  1958. declare module '@fullcalendar/core/structs/recurring-event' {
  1959. import { EventInput, EventDef } from '@fullcalendar/core/structs/event';
  1960. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  1961. import { DateEnv } from '@fullcalendar/core/datelib/env';
  1962. import { Duration } from '@fullcalendar/core/datelib/duration';
  1963. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1964. export interface ParsedRecurring {
  1965. typeData: any;
  1966. allDayGuess: boolean | null;
  1967. duration: Duration | null;
  1968. }
  1969. export interface RecurringType {
  1970. parse: (rawEvent: EventInput, leftoverProps: any, dateEnv: DateEnv) => ParsedRecurring | null;
  1971. expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[];
  1972. }
  1973. export function parseRecurring(eventInput: EventInput, allDayDefault: boolean | null, dateEnv: DateEnv, recurringTypes: RecurringType[], leftovers: any): {
  1974. allDay: any;
  1975. duration: Duration;
  1976. typeData: any;
  1977. typeId: number;
  1978. };
  1979. export function expandRecurringRanges(eventDef: EventDef, duration: Duration, framingRange: DateRange, dateEnv: DateEnv, recurringTypes: RecurringType[]): DateMarker[];
  1980. }
  1981. declare module '@fullcalendar/core/structs/drag-meta' {
  1982. import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
  1983. import { EventNonDateInput } from '@fullcalendar/core/structs/event';
  1984. export interface DragMetaInput extends EventNonDateInput {
  1985. startTime?: DurationInput;
  1986. duration?: DurationInput;
  1987. create?: boolean;
  1988. sourceId?: string;
  1989. }
  1990. export interface DragMeta {
  1991. startTime: Duration | null;
  1992. duration: Duration | null;
  1993. create: boolean;
  1994. sourceId: string;
  1995. leftoverProps: object;
  1996. }
  1997. export function parseDragMeta(raw: DragMetaInput): DragMeta;
  1998. }
  1999. declare module '@fullcalendar/core/plugin-system' {
  2000. import { reducerFunc } from '@fullcalendar/core/reducers/types';
  2001. import { eventDefParserFunc } from '@fullcalendar/core/structs/event';
  2002. import { eventDefMutationApplier } from '@fullcalendar/core/structs/event-mutation';
  2003. import Calendar, { DatePointTransform, DateSpanTransform, CalendarInteractionClass, OptionChangeHandlerMap } from '@fullcalendar/core/Calendar';
  2004. import { ViewConfigInputHash } from '@fullcalendar/core/structs/view-config';
  2005. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  2006. import View, { ViewProps } from '@fullcalendar/core/View';
  2007. import { CalendarComponentProps } from '@fullcalendar/core/CalendarComponent';
  2008. import { isPropsValidTester } from '@fullcalendar/core/validation';
  2009. import { eventDragMutationMassager, eventIsDraggableTransformer, EventDropTransformers } from '@fullcalendar/core/interactions/event-dragging';
  2010. import { dateSelectionJoinTransformer } from '@fullcalendar/core/interactions/date-selecting';
  2011. import { EventResizeJoinTransforms } from '@fullcalendar/core/interactions/event-resizing';
  2012. import { ExternalDefTransform } from '@fullcalendar/core/interactions/external-element-dragging';
  2013. import { InteractionClass } from '@fullcalendar/core/interactions/interaction';
  2014. import { ThemeClass } from '@fullcalendar/core/theme/Theme';
  2015. import { EventSourceDef } from '@fullcalendar/core/structs/event-source';
  2016. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  2017. import { RecurringType } from '@fullcalendar/core/structs/recurring-event';
  2018. import { NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
  2019. import { ElementDraggingClass } from '@fullcalendar/core/interactions/ElementDragging';
  2020. export interface PluginDefInput {
  2021. deps?: PluginDef[];
  2022. reducers?: reducerFunc[];
  2023. eventDefParsers?: eventDefParserFunc[];
  2024. isDraggableTransformers?: eventIsDraggableTransformer[];
  2025. eventDragMutationMassagers?: eventDragMutationMassager[];
  2026. eventDefMutationAppliers?: eventDefMutationApplier[];
  2027. dateSelectionTransformers?: dateSelectionJoinTransformer[];
  2028. datePointTransforms?: DatePointTransform[];
  2029. dateSpanTransforms?: DateSpanTransform[];
  2030. views?: ViewConfigInputHash;
  2031. viewPropsTransformers?: ViewPropsTransformerClass[];
  2032. isPropsValid?: isPropsValidTester;
  2033. externalDefTransforms?: ExternalDefTransform[];
  2034. eventResizeJoinTransforms?: EventResizeJoinTransforms[];
  2035. viewContainerModifiers?: ViewContainerModifier[];
  2036. eventDropTransformers?: EventDropTransformers[];
  2037. componentInteractions?: InteractionClass[];
  2038. calendarInteractions?: CalendarInteractionClass[];
  2039. themeClasses?: {
  2040. [themeSystemName: string]: ThemeClass;
  2041. };
  2042. eventSourceDefs?: EventSourceDef[];
  2043. cmdFormatter?: CmdFormatterFunc;
  2044. recurringTypes?: RecurringType[];
  2045. namedTimeZonedImpl?: NamedTimeZoneImplClass;
  2046. defaultView?: string;
  2047. elementDraggingImpl?: ElementDraggingClass;
  2048. optionChangeHandlers?: OptionChangeHandlerMap;
  2049. }
  2050. export interface PluginHooks {
  2051. reducers: reducerFunc[];
  2052. eventDefParsers: eventDefParserFunc[];
  2053. isDraggableTransformers: eventIsDraggableTransformer[];
  2054. eventDragMutationMassagers: eventDragMutationMassager[];
  2055. eventDefMutationAppliers: eventDefMutationApplier[];
  2056. dateSelectionTransformers: dateSelectionJoinTransformer[];
  2057. datePointTransforms: DatePointTransform[];
  2058. dateSpanTransforms: DateSpanTransform[];
  2059. views: ViewConfigInputHash;
  2060. viewPropsTransformers: ViewPropsTransformerClass[];
  2061. isPropsValid: isPropsValidTester | null;
  2062. externalDefTransforms: ExternalDefTransform[];
  2063. eventResizeJoinTransforms: EventResizeJoinTransforms[];
  2064. viewContainerModifiers: ViewContainerModifier[];
  2065. eventDropTransformers: EventDropTransformers[];
  2066. componentInteractions: InteractionClass[];
  2067. calendarInteractions: CalendarInteractionClass[];
  2068. themeClasses: {
  2069. [themeSystemName: string]: ThemeClass;
  2070. };
  2071. eventSourceDefs: EventSourceDef[];
  2072. cmdFormatter?: CmdFormatterFunc;
  2073. recurringTypes: RecurringType[];
  2074. namedTimeZonedImpl?: NamedTimeZoneImplClass;
  2075. defaultView: string;
  2076. elementDraggingImpl?: ElementDraggingClass;
  2077. optionChangeHandlers: OptionChangeHandlerMap;
  2078. }
  2079. export interface PluginDef extends PluginHooks {
  2080. id: string;
  2081. deps: PluginDef[];
  2082. }
  2083. export type ViewPropsTransformerClass = new () => ViewPropsTransformer;
  2084. export interface ViewPropsTransformer {
  2085. transform(viewProps: ViewProps, viewSpec: ViewSpec, calendarProps: CalendarComponentProps, view: View): any;
  2086. }
  2087. export type ViewContainerModifier = (contentEl: HTMLElement, calendar: Calendar) => void;
  2088. export function createPlugin(input: PluginDefInput): PluginDef;
  2089. export class PluginSystem {
  2090. hooks: PluginHooks;
  2091. addedHash: {
  2092. [pluginId: string]: true;
  2093. };
  2094. constructor();
  2095. add(plugin: PluginDef): void;
  2096. }
  2097. }
  2098. declare module '@fullcalendar/core/reducers/types' {
  2099. import { EventInput, EventInstanceHash } from '@fullcalendar/core/structs/event';
  2100. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2101. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2102. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  2103. import { EventSource, EventSourceHash, EventSourceError } from '@fullcalendar/core/structs/event-source';
  2104. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2105. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2106. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2107. import { DateEnv } from '@fullcalendar/core/datelib/env';
  2108. import Calendar from '@fullcalendar/core/Calendar';
  2109. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2110. export interface CalendarState {
  2111. eventSources: EventSourceHash;
  2112. eventSourceLoadingLevel: number;
  2113. loadingLevel: number;
  2114. viewType: string;
  2115. currentDate: DateMarker;
  2116. dateProfile: DateProfile | null;
  2117. eventStore: EventStore;
  2118. dateSelection: DateSpan | null;
  2119. eventSelection: string;
  2120. eventDrag: EventInteractionState | null;
  2121. eventResize: EventInteractionState | null;
  2122. }
  2123. export type reducerFunc = (state: CalendarState, action: Action, calendar: Calendar) => CalendarState;
  2124. export type Action = {
  2125. type: 'INIT';
  2126. } | // wont it create another rerender?
  2127. {
  2128. type: 'PREV';
  2129. } | {
  2130. type: 'NEXT';
  2131. } | {
  2132. type: 'SET_DATE';
  2133. dateMarker: DateMarker;
  2134. } | {
  2135. type: 'SET_VIEW_TYPE';
  2136. viewType: string;
  2137. dateMarker?: DateMarker;
  2138. } | {
  2139. type: 'SELECT_DATES';
  2140. selection: DateSpan;
  2141. } | {
  2142. type: 'UNSELECT_DATES';
  2143. } | {
  2144. type: 'SELECT_EVENT';
  2145. eventInstanceId: string;
  2146. } | {
  2147. type: 'UNSELECT_EVENT';
  2148. } | {
  2149. type: 'SET_EVENT_DRAG';
  2150. state: EventInteractionState;
  2151. } | {
  2152. type: 'UNSET_EVENT_DRAG';
  2153. } | {
  2154. type: 'SET_EVENT_RESIZE';
  2155. state: EventInteractionState;
  2156. } | {
  2157. type: 'UNSET_EVENT_RESIZE';
  2158. } | {
  2159. type: 'ADD_EVENT_SOURCES';
  2160. sources: EventSource[];
  2161. } | {
  2162. type: 'REMOVE_EVENT_SOURCE';
  2163. sourceId: string;
  2164. } | {
  2165. type: 'REMOVE_ALL_EVENT_SOURCES';
  2166. } | {
  2167. type: 'FETCH_EVENT_SOURCES';
  2168. sourceIds?: string[];
  2169. } | // if no sourceIds, fetch all
  2170. {
  2171. type: 'CHANGE_TIMEZONE';
  2172. oldDateEnv: DateEnv;
  2173. } | {
  2174. type: 'RECEIVE_EVENTS';
  2175. sourceId: string;
  2176. fetchId: string;
  2177. fetchRange: DateRange | null;
  2178. rawEvents: EventInput[];
  2179. } | {
  2180. type: 'RECEIVE_EVENT_ERROR';
  2181. sourceId: string;
  2182. fetchId: string;
  2183. fetchRange: DateRange | null;
  2184. error: EventSourceError;
  2185. } | // need all these?
  2186. {
  2187. type: 'ADD_EVENTS';
  2188. eventStore: EventStore;
  2189. } | {
  2190. type: 'MERGE_EVENTS';
  2191. eventStore: EventStore;
  2192. } | {
  2193. type: 'MUTATE_EVENTS';
  2194. instanceId: string;
  2195. mutation: EventMutation;
  2196. fromApi?: boolean;
  2197. } | {
  2198. type: 'REMOVE_EVENT_DEF';
  2199. defId: string;
  2200. } | {
  2201. type: 'REMOVE_EVENT_INSTANCES';
  2202. instances: EventInstanceHash;
  2203. } | {
  2204. type: 'REMOVE_ALL_EVENTS';
  2205. } | {
  2206. type: 'RESET_EVENTS';
  2207. };
  2208. }
  2209. declare module '@fullcalendar/core/CalendarComponent' {
  2210. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  2211. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  2212. import View from '@fullcalendar/core/View';
  2213. import Toolbar from '@fullcalendar/core/Toolbar';
  2214. import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2215. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2216. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2217. import { BusinessHoursInput } from '@fullcalendar/core/structs/business-hours';
  2218. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2219. import { CalendarState } from '@fullcalendar/core/reducers/types';
  2220. export interface CalendarComponentProps extends CalendarState {
  2221. viewSpec: ViewSpec;
  2222. dateProfileGenerator: DateProfileGenerator;
  2223. eventUiBases: EventUiHash;
  2224. }
  2225. export { CalendarComponent as default, CalendarComponent };
  2226. class CalendarComponent extends Component<CalendarComponentProps> {
  2227. view: View;
  2228. header: Toolbar;
  2229. footer: Toolbar;
  2230. computeTitle: (dateProfile: any, viewOptions: any) => string;
  2231. parseBusinessHours: (input: BusinessHoursInput) => EventStore;
  2232. el: HTMLElement;
  2233. contentEl: HTMLElement;
  2234. isHeightAuto: boolean;
  2235. viewHeight: number;
  2236. constructor(context: ComponentContext, el: HTMLElement);
  2237. destroy(): void;
  2238. toggleElClassNames(bool: boolean): void;
  2239. render(props: CalendarComponentProps): void;
  2240. renderToolbars(viewSpec: ViewSpec, dateProfile: DateProfile, currentDate: DateMarker, dateProfileGenerator: DateProfileGenerator, title: string): void;
  2241. renderView(props: CalendarComponentProps, title: string): void;
  2242. updateSize(isResize?: boolean): void;
  2243. computeHeightVars(): void;
  2244. queryToolbarsHeight(): number;
  2245. freezeHeight(): void;
  2246. thawHeight(): void;
  2247. }
  2248. }
  2249. declare module '@fullcalendar/core/common/DayHeader' {
  2250. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  2251. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2252. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2253. export interface DayTableHeaderProps {
  2254. dates: DateMarker[];
  2255. dateProfile: DateProfile;
  2256. datesRepDistinctDays: boolean;
  2257. renderIntroHtml?: () => string;
  2258. }
  2259. export { DayHeader as default, DayHeader };
  2260. class DayHeader extends Component<DayTableHeaderProps> {
  2261. el: HTMLElement;
  2262. thead: HTMLElement;
  2263. constructor(context: ComponentContext, parentEl: HTMLElement);
  2264. destroy(): void;
  2265. render(props: DayTableHeaderProps): void;
  2266. }
  2267. }
  2268. declare module '@fullcalendar/core/common/table-utils' {
  2269. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2270. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2271. import { ComponentContext } from '@fullcalendar/core/component/Component';
  2272. export function computeFallbackHeaderFormat(datesRepDistinctDays: boolean, dayCnt: number): {
  2273. weekday: string;
  2274. month?: undefined;
  2275. day?: undefined;
  2276. omitCommas?: undefined;
  2277. } | {
  2278. weekday: string;
  2279. month: string;
  2280. day: string;
  2281. omitCommas: boolean;
  2282. };
  2283. export function renderDateCell(dateMarker: DateMarker, dateProfile: DateProfile, datesRepDistinctDays: any, colCnt: any, colHeadFormat: any, context: ComponentContext, colspan?: any, otherAttrs?: any): string;
  2284. }
  2285. declare module '@fullcalendar/core/common/DaySeries' {
  2286. import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
  2287. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2288. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2289. export interface DaySeriesSeg {
  2290. firstIndex: number;
  2291. lastIndex: number;
  2292. isStart: boolean;
  2293. isEnd: boolean;
  2294. }
  2295. export { DaySeries as default, DaySeries };
  2296. class DaySeries {
  2297. cnt: number;
  2298. dates: DateMarker[];
  2299. indices: number[];
  2300. constructor(range: DateRange, dateProfileGenerator: DateProfileGenerator);
  2301. sliceRange(range: DateRange): DaySeriesSeg | null;
  2302. }
  2303. }
  2304. declare module '@fullcalendar/core/interactions/event-interaction-state' {
  2305. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2306. import { Seg } from '@fullcalendar/core/component/DateComponent';
  2307. export interface EventInteractionState {
  2308. affectedEvents: EventStore;
  2309. mutatedEvents: EventStore;
  2310. isEvent: boolean;
  2311. origSeg: Seg | null;
  2312. }
  2313. }
  2314. declare module '@fullcalendar/core/component/event-rendering' {
  2315. import { EventDef, EventTuple, EventDefHash } from '@fullcalendar/core/structs/event';
  2316. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2317. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2318. import { Duration } from '@fullcalendar/core/datelib/duration';
  2319. import { Seg } from '@fullcalendar/core/component/DateComponent';
  2320. import View from '@fullcalendar/core/View';
  2321. import { EventUi, EventUiHash } from '@fullcalendar/core/component/event-ui';
  2322. export interface EventRenderRange extends EventTuple {
  2323. ui: EventUi;
  2324. range: DateRange;
  2325. isStart: boolean;
  2326. isEnd: boolean;
  2327. }
  2328. export function sliceEventStore(eventStore: EventStore, eventUiBases: EventUiHash, framingRange: DateRange, nextDayThreshold?: Duration): {
  2329. bg: EventRenderRange[];
  2330. fg: EventRenderRange[];
  2331. };
  2332. export function hasBgRendering(def: EventDef): boolean;
  2333. export function filterSegsViaEls(view: View, segs: Seg[], isMirror: boolean): Seg[];
  2334. export function getElSeg(el: HTMLElement): Seg | null;
  2335. export function compileEventUis(eventDefs: EventDefHash, eventUiBases: EventUiHash): {
  2336. [key: string]: EventUi;
  2337. };
  2338. export function compileEventUi(eventDef: EventDef, eventUiBases: EventUiHash): EventUi;
  2339. }
  2340. declare module '@fullcalendar/core/common/DayTable' {
  2341. import DaySeries from '@fullcalendar/core/common/DaySeries';
  2342. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2343. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2344. import { Seg } from '@fullcalendar/core/component/DateComponent';
  2345. export interface DayTableSeg extends Seg {
  2346. row: number;
  2347. firstCol: number;
  2348. lastCol: number;
  2349. }
  2350. export interface DayTableCell {
  2351. date: DateMarker;
  2352. htmlAttrs?: string;
  2353. }
  2354. export { DayTable as default, DayTable };
  2355. class DayTable {
  2356. rowCnt: number;
  2357. colCnt: number;
  2358. cells: DayTableCell[][];
  2359. headerDates: DateMarker[];
  2360. constructor(daySeries: DaySeries, breakOnWeeks: boolean);
  2361. sliceRange(range: DateRange): DayTableSeg[];
  2362. }
  2363. }
  2364. declare module '@fullcalendar/core/common/slicing-utils' {
  2365. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2366. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2367. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2368. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2369. import DateComponent, { Seg, EventSegUiInteractionState } from '@fullcalendar/core/component/DateComponent';
  2370. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2371. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2372. import { Duration } from '@fullcalendar/core/datelib/duration';
  2373. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2374. export interface SliceableProps {
  2375. dateSelection: DateSpan;
  2376. businessHours: EventStore;
  2377. eventStore: EventStore;
  2378. eventDrag: EventInteractionState | null;
  2379. eventResize: EventInteractionState | null;
  2380. eventSelection: string;
  2381. eventUiBases: EventUiHash;
  2382. }
  2383. export interface SlicedProps<SegType extends Seg> {
  2384. dateSelectionSegs: SegType[];
  2385. businessHourSegs: SegType[];
  2386. fgEventSegs: SegType[];
  2387. bgEventSegs: SegType[];
  2388. eventDrag: EventSegUiInteractionState | null;
  2389. eventResize: EventSegUiInteractionState | null;
  2390. eventSelection: string;
  2391. }
  2392. export { Slicer as default, Slicer };
  2393. abstract class Slicer<SegType extends Seg, ExtraArgs extends any[] = []> {
  2394. abstract sliceRange(dateRange: DateRange, ...extraArgs: ExtraArgs): SegType[];
  2395. sliceProps(props: SliceableProps, dateProfile: DateProfile, nextDayThreshold: Duration | null, component: DateComponent<any>, // TODO: kill
  2396. ...extraArgs: ExtraArgs): SlicedProps<SegType>;
  2397. sliceNowDate(// does not memoize
  2398. date: DateMarker, component: DateComponent<any>, // TODO: kill
  2399. ...extraArgs: ExtraArgs): SegType[];
  2400. }
  2401. }
  2402. declare module '@fullcalendar/core/structs/event-mutation' {
  2403. import { Duration } from '@fullcalendar/core/datelib/duration';
  2404. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2405. import { EventDef } from '@fullcalendar/core/structs/event';
  2406. import Calendar from '@fullcalendar/core/Calendar';
  2407. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2408. export interface EventMutation {
  2409. datesDelta?: Duration;
  2410. startDelta?: Duration;
  2411. endDelta?: Duration;
  2412. standardProps?: any;
  2413. extendedProps?: any;
  2414. }
  2415. export function applyMutationToEventStore(eventStore: EventStore, eventConfigBase: EventUiHash, mutation: EventMutation, calendar: Calendar): EventStore;
  2416. export type eventDefMutationApplier = (eventDef: EventDef, mutation: EventMutation, calendar: Calendar) => void;
  2417. }
  2418. declare module '@fullcalendar/core/validation' {
  2419. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2420. import Calendar from '@fullcalendar/core/Calendar';
  2421. import { DateSpan, DateSpanApi } from '@fullcalendar/core/structs/date-span';
  2422. import EventApi from '@fullcalendar/core/api/EventApi';
  2423. import { EventInput } from '@fullcalendar/core/structs/event';
  2424. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2425. import { SplittableProps } from '@fullcalendar/core/component/event-splitting';
  2426. export type ConstraintInput = 'businessHours' | string | EventInput | EventInput[];
  2427. export type Constraint = 'businessHours' | string | EventStore | false;
  2428. export type OverlapFunc = ((stillEvent: EventApi, movingEvent: EventApi | null) => boolean);
  2429. export type AllowFunc = (span: DateSpanApi, movingEvent: EventApi | null) => boolean;
  2430. export type isPropsValidTester = (props: SplittableProps, calendar: Calendar) => boolean;
  2431. export function isInteractionValid(interaction: EventInteractionState, calendar: Calendar): boolean;
  2432. export function isDateSelectionValid(dateSelection: DateSpan, calendar: Calendar): boolean;
  2433. export function isPropsValid(state: SplittableProps, calendar: Calendar, dateSpanMeta?: {}, filterConfig?: any): boolean;
  2434. export function normalizeConstraint(input: ConstraintInput, calendar: Calendar): Constraint | null;
  2435. }
  2436. declare module '@fullcalendar/core/api/EventApi' {
  2437. import Calendar from '@fullcalendar/core/Calendar';
  2438. import { EventDef, EventInstance } from '@fullcalendar/core/structs/event';
  2439. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  2440. import { DateInput } from '@fullcalendar/core/datelib/env';
  2441. import { DurationInput } from '@fullcalendar/core/datelib/duration';
  2442. import { FormatterInput } from '@fullcalendar/core/datelib/formatting';
  2443. import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
  2444. export { EventApi as default, EventApi };
  2445. class EventApi {
  2446. _calendar: Calendar;
  2447. _def: EventDef;
  2448. _instance: EventInstance | null;
  2449. constructor(calendar: Calendar, def: EventDef, instance?: EventInstance);
  2450. setProp(name: string, val: string): void;
  2451. setExtendedProp(name: string, val: any): void;
  2452. setStart(startInput: DateInput, options?: {
  2453. granularity?: string;
  2454. maintainDuration?: boolean;
  2455. }): void;
  2456. setEnd(endInput: DateInput | null, options?: {
  2457. granularity?: string;
  2458. }): void;
  2459. setDates(startInput: DateInput, endInput: DateInput | null, options?: {
  2460. allDay?: boolean;
  2461. granularity?: string;
  2462. }): void;
  2463. moveStart(deltaInput: DurationInput): void;
  2464. moveEnd(deltaInput: DurationInput): void;
  2465. moveDates(deltaInput: DurationInput): void;
  2466. setAllDay(allDay: boolean, options?: {
  2467. maintainDuration?: boolean;
  2468. }): void;
  2469. formatRange(formatInput: FormatterInput): any;
  2470. mutate(mutation: EventMutation): void;
  2471. remove(): void;
  2472. readonly source: EventSourceApi | null;
  2473. readonly start: Date | null;
  2474. readonly end: Date | null;
  2475. readonly id: string;
  2476. readonly groupId: string;
  2477. readonly allDay: boolean;
  2478. readonly title: string;
  2479. readonly url: string;
  2480. readonly rendering: string;
  2481. readonly startEditable: boolean;
  2482. readonly durationEditable: boolean;
  2483. readonly constraint: any;
  2484. readonly overlap: any;
  2485. readonly allow: any;
  2486. readonly backgroundColor: string;
  2487. readonly borderColor: string;
  2488. readonly textColor: string;
  2489. readonly classNames: string[];
  2490. readonly extendedProps: any;
  2491. }
  2492. }
  2493. declare module '@fullcalendar/core/util/requestJson' {
  2494. export default function requestJson(method: string, url: string, params: object, successCallback: any, failureCallback: any): void;
  2495. }
  2496. declare module '@fullcalendar/core/datelib/locale' {
  2497. export type LocaleCodeArg = string | string[];
  2498. export type LocaleSingularArg = LocaleCodeArg | RawLocale;
  2499. export interface Locale {
  2500. codeArg: LocaleCodeArg;
  2501. codes: string[];
  2502. week: {
  2503. dow: number;
  2504. doy: number;
  2505. };
  2506. simpleNumberFormat: Intl.NumberFormat;
  2507. options: any;
  2508. }
  2509. export interface RawLocale {
  2510. code: string;
  2511. [otherProp: string]: any;
  2512. }
  2513. export type RawLocaleMap = {
  2514. [code: string]: RawLocale;
  2515. };
  2516. export interface RawLocaleInfo {
  2517. map: RawLocaleMap;
  2518. defaultCode: string;
  2519. }
  2520. export function parseRawLocales(explicitRawLocales: RawLocale[]): RawLocaleInfo;
  2521. export function buildLocale(inputSingular: LocaleSingularArg, available: RawLocaleMap): Locale;
  2522. }
  2523. declare module '@fullcalendar/core/OptionsManager' {
  2524. export { OptionsManager as default, OptionsManager };
  2525. class OptionsManager {
  2526. dirDefaults: any;
  2527. localeDefaults: any;
  2528. overrides: any;
  2529. dynamicOverrides: any;
  2530. computed: any;
  2531. constructor(overrides: any);
  2532. mutate(updates: any, removals: string[], isDynamic?: boolean): void;
  2533. compute(): void;
  2534. }
  2535. }
  2536. declare module '@fullcalendar/core/api/EventSourceApi' {
  2537. import Calendar from '@fullcalendar/core/Calendar';
  2538. import { EventSource } from '@fullcalendar/core/structs/event-source';
  2539. export { EventSourceApi as default, EventSourceApi };
  2540. class EventSourceApi {
  2541. calendar: Calendar;
  2542. internalEventSource: EventSource;
  2543. constructor(calendar: Calendar, internalEventSource: EventSource);
  2544. remove(): void;
  2545. refetch(): void;
  2546. readonly id: string;
  2547. readonly url: string;
  2548. }
  2549. }
  2550. declare module '@fullcalendar/core/structs/view-config' {
  2551. import View from '@fullcalendar/core/View';
  2552. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  2553. import { ComponentContext } from '@fullcalendar/core/component/Component';
  2554. import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
  2555. export type ViewClass = new (context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement) => View;
  2556. export interface ViewConfigObjectInput {
  2557. type?: string;
  2558. class?: ViewClass;
  2559. [optionName: string]: any;
  2560. }
  2561. export type ViewConfigInput = ViewClass | ViewConfigObjectInput;
  2562. export type ViewConfigInputHash = {
  2563. [viewType: string]: ViewConfigInput;
  2564. };
  2565. export interface ViewConfig {
  2566. superType: string;
  2567. class: ViewClass | null;
  2568. options: any;
  2569. }
  2570. export type ViewConfigHash = {
  2571. [viewType: string]: ViewConfig;
  2572. };
  2573. export function parseViewConfigs(inputs: ViewConfigInputHash): ViewConfigHash;
  2574. }
  2575. declare module '@fullcalendar/core/datelib/calendar-system' {
  2576. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2577. export interface CalendarSystem {
  2578. getMarkerYear(d: DateMarker): number;
  2579. getMarkerMonth(d: DateMarker): number;
  2580. getMarkerDay(d: DateMarker): number;
  2581. arrayToMarker(arr: number[]): DateMarker;
  2582. markerToArray(d: DateMarker): number[];
  2583. }
  2584. export function registerCalendarSystem(name: any, theClass: any): void;
  2585. export function createCalendarSystem(name: any): any;
  2586. }
  2587. declare module '@fullcalendar/core/datelib/formatting-cmd' {
  2588. import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
  2589. export type CmdFormatterFunc = (cmd: string, arg: VerboseFormattingArg) => string;
  2590. export class CmdFormatter implements DateFormatter {
  2591. cmdStr: string;
  2592. separator: string;
  2593. constructor(cmdStr: string, separator?: string);
  2594. format(date: ZonedMarker, context: DateFormattingContext): string;
  2595. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
  2596. }
  2597. }
  2598. declare module '@fullcalendar/core/datelib/formatting-func' {
  2599. import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
  2600. export type FuncFormatterFunc = (arg: VerboseFormattingArg) => string;
  2601. export class FuncFormatter implements DateFormatter {
  2602. func: FuncFormatterFunc;
  2603. constructor(func: FuncFormatterFunc);
  2604. format(date: ZonedMarker, context: DateFormattingContext): string;
  2605. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
  2606. }
  2607. }
  2608. declare module '@fullcalendar/core/event-sources/func-event-source' {
  2609. import { EventSourceError } from '@fullcalendar/core/structs/event-source';
  2610. import { EventInput } from '@fullcalendar/core/structs/event';
  2611. export type EventSourceFunc = (arg: {
  2612. start: Date;
  2613. end: Date;
  2614. timeZone: string;
  2615. }, successCallback: (events: EventInput[]) => void, failureCallback: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
  2616. const _default: import("@fullcalendar/core/plugin-system").PluginDef;
  2617. export default _default;
  2618. }
  2619. declare module '@fullcalendar/core/interactions/external-element-dragging' {
  2620. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2621. import { DragMeta } from '@fullcalendar/core/structs/drag-meta';
  2622. export type ExternalDefTransform = (dateSpan: DateSpan, dragMeta: DragMeta) => any;
  2623. }
  2624. declare module '@fullcalendar/core/Toolbar' {
  2625. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  2626. export interface ToolbarRenderProps {
  2627. layout: any;
  2628. title: string;
  2629. activeButton: string;
  2630. isTodayEnabled: boolean;
  2631. isPrevEnabled: boolean;
  2632. isNextEnabled: boolean;
  2633. }
  2634. export { Toolbar as default, Toolbar };
  2635. class Toolbar extends Component<ToolbarRenderProps> {
  2636. el: HTMLElement;
  2637. viewsWithButtons: any;
  2638. constructor(context: ComponentContext, extraClassName: any);
  2639. destroy(): void;
  2640. render(props: ToolbarRenderProps): void;
  2641. renderLayout(layout: any): void;
  2642. unrenderLayout(): void;
  2643. renderSection(position: any, buttonStr: any): HTMLElement;
  2644. updateToday(isTodayEnabled: any): void;
  2645. updatePrev(isPrevEnabled: any): void;
  2646. updateNext(isNextEnabled: any): void;
  2647. updateTitle(text: any): void;
  2648. updateActiveButton(buttonName?: any): void;
  2649. toggleButtonEnabled(buttonName: any, bool: any): void;
  2650. }
  2651. }