main.d.ts 117 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734
  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, computeEventDraggable, computeEventStartResizable, computeEventEndResizable } 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 { ComponentContext } from '@fullcalendar/core/component/Component';
  731. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  732. import { DateEnv } from '@fullcalendar/core/datelib/env';
  733. export function buildGotoAnchorHtml(allOptions: any, dateEnv: DateEnv, gotoOptions: any, attrs: any, innerHtml?: any): string;
  734. export function getAllDayHtml(allOptions: any): any;
  735. export function getDayClasses(date: DateMarker, dateProfile: DateProfile, context: ComponentContext, noThemeHighlight?: any): any[];
  736. }
  737. declare module '@fullcalendar/core/util/dom-event' {
  738. export function preventDefault(ev: any): void;
  739. export function listenBySelector(container: HTMLElement, eventType: string, selector: string, handler: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
  740. export function listenToHoverBySelector(container: HTMLElement, selector: string, onMouseEnter: (ev: Event, matchedTarget: HTMLElement) => void, onMouseLeave: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
  741. export function whenTransitionDone(el: HTMLElement, callback: (ev: Event) => void): void;
  742. }
  743. declare module '@fullcalendar/core/util/dom-geom' {
  744. import { Rect } from '@fullcalendar/core/util/geom';
  745. export interface EdgeInfo {
  746. borderLeft: number;
  747. borderRight: number;
  748. borderTop: number;
  749. borderBottom: number;
  750. scrollbarLeft: number;
  751. scrollbarRight: number;
  752. scrollbarBottom: number;
  753. paddingLeft?: number;
  754. paddingRight?: number;
  755. paddingTop?: number;
  756. paddingBottom?: number;
  757. }
  758. export function computeEdges(el: any, getPadding?: boolean): EdgeInfo;
  759. export function computeInnerRect(el: any, goWithinPadding?: boolean): {
  760. left: number;
  761. right: number;
  762. top: number;
  763. bottom: number;
  764. };
  765. export function computeRect(el: any): Rect;
  766. export function computeHeightAndMargins(el: HTMLElement): number;
  767. export function computeVMargins(el: HTMLElement): number;
  768. export function getClippingParents(el: HTMLElement): HTMLElement[];
  769. export function computeClippingRect(el: HTMLElement): Rect;
  770. }
  771. declare module '@fullcalendar/core/util/promise' {
  772. export function unpromisify(func: any, success: any, failure?: any): void;
  773. }
  774. declare module '@fullcalendar/core/common/EmitterMixin' {
  775. import Mixin from '@fullcalendar/core/common/Mixin';
  776. export interface EmitterInterface {
  777. on(types: any, handler: any): any;
  778. one(types: any, handler: any): any;
  779. off(types: any, handler: any): any;
  780. trigger(type: any, ...args: any[]): any;
  781. triggerWith(type: any, context: any, args: any): any;
  782. hasHandlers(type: any): any;
  783. }
  784. export { EmitterMixin as default, EmitterMixin };
  785. class EmitterMixin extends Mixin implements EmitterInterface {
  786. _handlers: any;
  787. _oneHandlers: any;
  788. on(type: any, handler: any): this;
  789. one(type: any, handler: any): this;
  790. off(type: any, handler?: any): this;
  791. trigger(type: any, ...args: any[]): this;
  792. triggerWith(type: any, context: any, args: any): this;
  793. hasHandlers(type: any): any;
  794. }
  795. }
  796. declare module '@fullcalendar/core/datelib/date-range' {
  797. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  798. import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
  799. export interface DateRangeInput {
  800. start?: DateInput;
  801. end?: DateInput;
  802. }
  803. export interface OpenDateRange {
  804. start: DateMarker | null;
  805. end: DateMarker | null;
  806. }
  807. export interface DateRange {
  808. start: DateMarker;
  809. end: DateMarker;
  810. }
  811. export function parseRange(input: DateRangeInput, dateEnv: DateEnv): OpenDateRange;
  812. export function invertRanges(ranges: DateRange[], constraintRange: DateRange): DateRange[];
  813. export function intersectRanges(range0: OpenDateRange, range1: OpenDateRange): OpenDateRange;
  814. export function rangesEqual(range0: OpenDateRange, range1: OpenDateRange): boolean;
  815. export function rangesIntersect(range0: OpenDateRange, range1: OpenDateRange): boolean;
  816. export function rangeContainsRange(outerRange: OpenDateRange, innerRange: OpenDateRange): boolean;
  817. export function rangeContainsMarker(range: OpenDateRange, date: DateMarker | number): boolean;
  818. export function constrainMarkerToRange(date: DateMarker, range: DateRange): DateMarker;
  819. }
  820. declare module '@fullcalendar/core/common/Mixin' {
  821. export { Mixin as default, Mixin };
  822. class Mixin {
  823. static mixInto(destClass: any): void;
  824. static mixIntoObj(destObj: any): void;
  825. static mixOver(destClass: any): void;
  826. }
  827. }
  828. declare module '@fullcalendar/core/common/PositionCache' {
  829. export { PositionCache as default, PositionCache };
  830. class PositionCache {
  831. originClientRect: ClientRect;
  832. els: HTMLElement[];
  833. originEl: HTMLElement;
  834. isHorizontal: boolean;
  835. isVertical: boolean;
  836. lefts: any;
  837. rights: any;
  838. tops: any;
  839. bottoms: any;
  840. constructor(originEl: HTMLElement, els: HTMLElement[], isHorizontal: boolean, isVertical: boolean);
  841. build(): void;
  842. buildElHorizontals(originClientLeft: number): void;
  843. buildElVerticals(originClientTop: number): void;
  844. leftToIndex(leftPosition: number): any;
  845. topToIndex(topPosition: number): any;
  846. getWidth(leftIndex: number): number;
  847. getHeight(topIndex: number): number;
  848. }
  849. }
  850. declare module '@fullcalendar/core/common/ScrollComponent' {
  851. import { ElementScrollController } from '@fullcalendar/core/common/scroll-controller';
  852. export interface ScrollbarWidths {
  853. left: number;
  854. right: number;
  855. bottom: number;
  856. }
  857. export { ScrollComponent as default, ScrollComponent };
  858. class ScrollComponent extends ElementScrollController {
  859. overflowX: string;
  860. overflowY: string;
  861. constructor(overflowX: string, overflowY: string);
  862. clear(): void;
  863. destroy(): void;
  864. applyOverflow(): void;
  865. lockOverflow(scrollbarWidths: ScrollbarWidths): void;
  866. setHeight(height: number | string): void;
  867. getScrollbarWidths(): ScrollbarWidths;
  868. }
  869. }
  870. declare module '@fullcalendar/core/common/scroll-controller' {
  871. export abstract class ScrollController {
  872. abstract getScrollTop(): number;
  873. abstract getScrollLeft(): number;
  874. abstract setScrollTop(top: number): void;
  875. abstract setScrollLeft(left: number): void;
  876. abstract getClientWidth(): number;
  877. abstract getClientHeight(): number;
  878. abstract getScrollWidth(): number;
  879. abstract getScrollHeight(): number;
  880. getMaxScrollTop(): number;
  881. getMaxScrollLeft(): number;
  882. canScrollVertically(): boolean;
  883. canScrollHorizontally(): boolean;
  884. canScrollUp(): boolean;
  885. canScrollDown(): boolean;
  886. canScrollLeft(): boolean;
  887. canScrollRight(): boolean;
  888. }
  889. export class ElementScrollController extends ScrollController {
  890. el: HTMLElement;
  891. constructor(el: HTMLElement);
  892. getScrollTop(): number;
  893. getScrollLeft(): number;
  894. setScrollTop(top: number): void;
  895. setScrollLeft(left: number): void;
  896. getScrollWidth(): number;
  897. getScrollHeight(): number;
  898. getClientHeight(): number;
  899. getClientWidth(): number;
  900. }
  901. export class WindowScrollController extends ScrollController {
  902. getScrollTop(): number;
  903. getScrollLeft(): number;
  904. setScrollTop(n: number): void;
  905. setScrollLeft(n: number): void;
  906. getScrollWidth(): number;
  907. getScrollHeight(): number;
  908. getClientHeight(): number;
  909. getClientWidth(): number;
  910. }
  911. }
  912. declare module '@fullcalendar/core/theme/Theme' {
  913. export { Theme as default, Theme };
  914. class Theme {
  915. calendarOptions: any;
  916. classes: any;
  917. iconClasses: any;
  918. baseIconClass: string;
  919. iconOverrideOption: any;
  920. iconOverrideCustomButtonOption: any;
  921. iconOverridePrefix: string;
  922. constructor(calendarOptions: any);
  923. processIconOverride(): void;
  924. setIconOverride(iconOverrideHash: any): void;
  925. applyIconOverridePrefix(className: any): any;
  926. getClass(key: any): any;
  927. getIconClass(buttonName: any): string;
  928. getCustomButtonIconClass(customButtonProps: any): string;
  929. }
  930. export type ThemeClass = {
  931. new (calendarOptions: any): Theme;
  932. };
  933. }
  934. declare module '@fullcalendar/core/component/Component' {
  935. import Calendar from '@fullcalendar/core/Calendar';
  936. import View from '@fullcalendar/core/View';
  937. import Theme from '@fullcalendar/core/theme/Theme';
  938. import { DateEnv } from '@fullcalendar/core/datelib/env';
  939. import { Duration } from '@fullcalendar/core/datelib/duration';
  940. export class ComponentContext {
  941. calendar: Calendar;
  942. theme: Theme;
  943. dateEnv: DateEnv;
  944. options: any;
  945. view?: View;
  946. isRtl: boolean;
  947. eventOrderSpecs: any;
  948. nextDayThreshold: Duration;
  949. constructor(calendar: Calendar, theme: Theme, dateEnv: DateEnv, options: any, view?: View);
  950. extend(options?: any, view?: View): ComponentContext;
  951. }
  952. export type EqualityFuncHash = {
  953. [propName: string]: (obj0: any, obj1: any) => boolean;
  954. };
  955. export { Component as default, Component };
  956. class Component<PropsType> {
  957. equalityFuncs: EqualityFuncHash;
  958. uid: string;
  959. props: PropsType | null;
  960. context: ComponentContext;
  961. constructor();
  962. static addEqualityFuncs(newFuncs: EqualityFuncHash): void;
  963. receiveProps(props: PropsType, context: ComponentContext): void;
  964. protected render(props: PropsType, context: ComponentContext): void;
  965. firstContext(context: ComponentContext): void;
  966. beforeUpdate(): void;
  967. afterUpdate(): void;
  968. destroy(): void;
  969. }
  970. }
  971. declare module '@fullcalendar/core/component/DateComponent' {
  972. import Component from '@fullcalendar/core/component/Component';
  973. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  974. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  975. import { EventInstanceHash } from '@fullcalendar/core/structs/event';
  976. import { Hit } from '@fullcalendar/core/interactions/hit';
  977. import FgEventRenderer from '@fullcalendar/core/component/renderers/FgEventRenderer';
  978. import FillRenderer from '@fullcalendar/core/component/renderers/FillRenderer';
  979. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  980. export type DateComponentHash = {
  981. [uid: string]: DateComponent<any>;
  982. };
  983. export interface Seg {
  984. component?: DateComponent<any>;
  985. isStart: boolean;
  986. isEnd: boolean;
  987. eventRange?: EventRenderRange;
  988. el?: HTMLElement;
  989. [otherProp: string]: any;
  990. }
  991. export interface EventSegUiInteractionState {
  992. affectedInstances: EventInstanceHash;
  993. segs: Seg[];
  994. isEvent: boolean;
  995. sourceSeg: any;
  996. }
  997. export { DateComponent as default, DateComponent };
  998. class DateComponent<PropsType> extends Component<PropsType> {
  999. fgSegSelector: string;
  1000. bgSegSelector: string;
  1001. largeUnit: any;
  1002. eventRenderer: FgEventRenderer;
  1003. mirrorRenderer: FgEventRenderer;
  1004. fillRenderer: FillRenderer;
  1005. el: HTMLElement;
  1006. constructor(el: HTMLElement);
  1007. destroy(): void;
  1008. buildPositionCaches(): void;
  1009. queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null;
  1010. isInteractionValid(interaction: EventInteractionState): boolean;
  1011. isDateSelectionValid(selection: DateSpan): boolean;
  1012. isValidSegDownEl(el: HTMLElement): boolean;
  1013. isValidDateDownEl(el: HTMLElement): boolean;
  1014. isPopover(): boolean;
  1015. isInPopover(el: HTMLElement): boolean;
  1016. }
  1017. }
  1018. declare module '@fullcalendar/core/Calendar' {
  1019. import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
  1020. import OptionsManager from '@fullcalendar/core/OptionsManager';
  1021. import View from '@fullcalendar/core/View';
  1022. import Theme from '@fullcalendar/core/theme/Theme';
  1023. import { OptionsInput, EventHandlerName, EventHandlerArgs } from '@fullcalendar/core/types/input-types';
  1024. import { RawLocaleMap } from '@fullcalendar/core/datelib/locale';
  1025. import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
  1026. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1027. import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
  1028. import { DateSpan, DateSpanApi, DatePointApi } from '@fullcalendar/core/structs/date-span';
  1029. import { DateRangeInput } from '@fullcalendar/core/datelib/date-range';
  1030. import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
  1031. import { EventSourceInput } from '@fullcalendar/core/structs/event-source';
  1032. import { EventInput } from '@fullcalendar/core/structs/event';
  1033. import { CalendarState, Action } from '@fullcalendar/core/reducers/types';
  1034. import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
  1035. import EventApi from '@fullcalendar/core/api/EventApi';
  1036. import { EventStore } from '@fullcalendar/core/structs/event-store';
  1037. import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
  1038. import { ViewSpecHash, ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1039. import { PluginSystem } from '@fullcalendar/core/plugin-system';
  1040. import CalendarComponent from '@fullcalendar/core/CalendarComponent';
  1041. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1042. import { PointerDragEvent } from '@fullcalendar/core/interactions/pointer';
  1043. import { InteractionSettingsInput, Interaction } from '@fullcalendar/core/interactions/interaction';
  1044. export interface DateClickApi extends DatePointApi {
  1045. dayEl: HTMLElement;
  1046. jsEvent: UIEvent;
  1047. view: View;
  1048. }
  1049. export interface DateSelectionApi extends DateSpanApi {
  1050. jsEvent: UIEvent;
  1051. view: View;
  1052. }
  1053. export type DatePointTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
  1054. export type DateSpanTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
  1055. export type CalendarInteraction = {
  1056. destroy(): any;
  1057. };
  1058. export type CalendarInteractionClass = {
  1059. new (calendar: Calendar): CalendarInteraction;
  1060. };
  1061. export type OptionChangeHandler = (propValue: any, calendar: Calendar, deepEqual: any) => void;
  1062. export type OptionChangeHandlerMap = {
  1063. [propName: string]: OptionChangeHandler;
  1064. };
  1065. export { Calendar as default, Calendar };
  1066. class Calendar {
  1067. static on: EmitterInterface['on'];
  1068. static off: EmitterInterface['off'];
  1069. static trigger: EmitterInterface['trigger'];
  1070. on: EmitterInterface['on'];
  1071. one: EmitterInterface['one'];
  1072. off: EmitterInterface['off'];
  1073. trigger: EmitterInterface['trigger'];
  1074. triggerWith: EmitterInterface['triggerWith'];
  1075. hasHandlers: EmitterInterface['hasHandlers'];
  1076. eventUiBases: EventUiHash;
  1077. selectionConfig: EventUi;
  1078. optionsManager: OptionsManager;
  1079. viewSpecs: ViewSpecHash;
  1080. dateProfileGenerators: {
  1081. [viewName: string]: DateProfileGenerator;
  1082. };
  1083. theme: Theme;
  1084. dateEnv: DateEnv;
  1085. availableRawLocales: RawLocaleMap;
  1086. pluginSystem: PluginSystem;
  1087. defaultAllDayEventDuration: Duration;
  1088. defaultTimedEventDuration: Duration;
  1089. calendarInteractions: CalendarInteraction[];
  1090. interactionsStore: {
  1091. [componentUid: string]: Interaction[];
  1092. };
  1093. removeNavLinkListener: any;
  1094. windowResizeProxy: any;
  1095. isHandlingWindowResize: boolean;
  1096. state: CalendarState;
  1097. actionQueue: any[];
  1098. isReducing: boolean;
  1099. needsRerender: boolean;
  1100. isRendering: boolean;
  1101. renderingPauseDepth: number;
  1102. renderableEventStore: EventStore;
  1103. buildDelayedRerender: typeof buildDelayedRerender;
  1104. delayedRerender: any;
  1105. afterSizingTriggers: any;
  1106. isViewUpdated: boolean;
  1107. isDatesUpdated: boolean;
  1108. isEventsUpdated: boolean;
  1109. el: HTMLElement;
  1110. component: CalendarComponent;
  1111. constructor(el: HTMLElement, overrides?: OptionsInput);
  1112. addPluginInputs(pluginInputs: any): void;
  1113. readonly view: View;
  1114. render(): void;
  1115. destroy(): void;
  1116. bindHandlers(): void;
  1117. unbindHandlers(): void;
  1118. hydrate(): void;
  1119. buildInitialState(): CalendarState;
  1120. reduce(state: CalendarState, action: Action, calendar: Calendar): CalendarState;
  1121. requestRerender(): void;
  1122. tryRerender(): void;
  1123. batchRendering(func: any): void;
  1124. executeRender(): void;
  1125. renderComponent(): void;
  1126. setOption(name: string, val: any): void;
  1127. getOption(name: string): any;
  1128. opt(name: string): any;
  1129. viewOpt(name: string): any;
  1130. viewOpts(): any;
  1131. mutateOptions(updates: any, removals: string[], isDynamic?: boolean, deepEqual?: any): void;
  1132. handleOptions(options: any): void;
  1133. getAvailableLocaleCodes(): string[];
  1134. _buildSelectionConfig(rawOpts: any): EventUi;
  1135. _buildEventUiSingleBase(rawOpts: any): EventUi;
  1136. hasPublicHandlers<T extends EventHandlerName>(name: T): boolean;
  1137. publiclyTrigger<T extends EventHandlerName>(name: T, args?: EventHandlerArgs<T>): any;
  1138. publiclyTriggerAfterSizing<T extends EventHandlerName>(name: T, args: EventHandlerArgs<T>): void;
  1139. releaseAfterSizingTriggers(): void;
  1140. isValidViewType(viewType: string): boolean;
  1141. changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void;
  1142. zoomTo(dateMarker: DateMarker, viewType?: string): void;
  1143. getUnitViewSpec(unit: string): ViewSpec | null;
  1144. getInitialDate(): Date;
  1145. prev(): void;
  1146. next(): void;
  1147. prevYear(): void;
  1148. nextYear(): void;
  1149. today(): void;
  1150. gotoDate(zonedDateInput: any): void;
  1151. incrementDate(deltaInput: any): void;
  1152. getDate(): Date;
  1153. formatDate(d: DateInput, formatter: any): string;
  1154. formatRange(d0: DateInput, d1: DateInput, settings: any): any;
  1155. formatIso(d: DateInput, omitTime?: boolean): string;
  1156. windowResize(ev: Event): void;
  1157. updateSize(): void;
  1158. registerInteractiveComponent(component: DateComponent<any>, settingsInput: InteractionSettingsInput): void;
  1159. unregisterInteractiveComponent(component: DateComponent<any>): void;
  1160. select(dateOrObj: DateInput | any, endDate?: DateInput): void;
  1161. unselect(pev?: PointerDragEvent): void;
  1162. triggerDateSelect(selection: DateSpan, pev?: PointerDragEvent): void;
  1163. triggerDateUnselect(pev?: PointerDragEvent): void;
  1164. triggerDateClick(dateSpan: DateSpan, dayEl: HTMLElement, view: View, ev: UIEvent): void;
  1165. buildDatePointApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DatePointApi;
  1166. buildDateSpanApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DateSpanApi;
  1167. getNow(): DateMarker;
  1168. getDefaultEventEnd(allDay: boolean, marker: DateMarker): DateMarker;
  1169. addEvent(eventInput: EventInput, sourceInput?: EventSourceApi | string | number): EventApi | null;
  1170. getEventById(id: string): EventApi | null;
  1171. getEvents(): EventApi[];
  1172. removeAllEvents(): void;
  1173. rerenderEvents(): void;
  1174. getEventSources(): EventSourceApi[];
  1175. getEventSourceById(id: string | number): EventSourceApi | null;
  1176. addEventSource(sourceInput: EventSourceInput): EventSourceApi;
  1177. removeAllEventSources(): void;
  1178. refetchEvents(): void;
  1179. scrollToTime(timeInput: DurationInput): void;
  1180. }
  1181. function buildDelayedRerender(this: Calendar, wait: any): any;
  1182. export {};
  1183. }
  1184. declare module '@fullcalendar/core/View' {
  1185. import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  1186. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1187. import { Duration } from '@fullcalendar/core/datelib/duration';
  1188. import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
  1189. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1190. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1191. import { EventStore } from '@fullcalendar/core/structs/event-store';
  1192. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  1193. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1194. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  1195. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  1196. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1197. export interface ViewProps {
  1198. dateProfileGenerator: DateProfileGenerator;
  1199. dateProfile: DateProfile;
  1200. businessHours: EventStore;
  1201. eventStore: EventStore;
  1202. eventUiBases: EventUiHash;
  1203. dateSelection: DateSpan | null;
  1204. eventSelection: string;
  1205. eventDrag: EventInteractionState | null;
  1206. eventResize: EventInteractionState | null;
  1207. }
  1208. export { View as default, View };
  1209. abstract class View extends DateComponent<ViewProps> {
  1210. usesMinMaxTime: boolean;
  1211. dateProfileGeneratorClass: any;
  1212. on: EmitterInterface['on'];
  1213. one: EmitterInterface['one'];
  1214. off: EmitterInterface['off'];
  1215. trigger: EmitterInterface['trigger'];
  1216. triggerWith: EmitterInterface['triggerWith'];
  1217. hasHandlers: EmitterInterface['hasHandlers'];
  1218. viewSpec: ViewSpec;
  1219. type: string;
  1220. title: string;
  1221. queuedScroll: any;
  1222. isNowIndicatorRendered: boolean;
  1223. initialNowDate: DateMarker;
  1224. initialNowQueriedMs: number;
  1225. nowIndicatorTimeoutID: any;
  1226. nowIndicatorIntervalID: any;
  1227. constructor(viewSpec: ViewSpec, parentEl: HTMLElement);
  1228. initialize(): void;
  1229. readonly activeStart: Date;
  1230. readonly activeEnd: Date;
  1231. readonly currentStart: Date;
  1232. readonly currentEnd: Date;
  1233. render(props: ViewProps, context: ComponentContext): void;
  1234. beforeUpdate(): void;
  1235. destroy(): void;
  1236. updateSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
  1237. updateBaseSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
  1238. renderDatesWrap(dateProfile: DateProfile): void;
  1239. unrenderDatesWrap(): void;
  1240. renderDates(dateProfile: DateProfile): void;
  1241. unrenderDates(): void;
  1242. renderBusinessHours(businessHours: EventStore): void;
  1243. unrenderBusinessHours(): void;
  1244. renderDateSelectionWrap(selection: DateSpan): void;
  1245. unrenderDateSelectionWrap(selection: DateSpan): void;
  1246. renderDateSelection(selection: DateSpan): void;
  1247. unrenderDateSelection(selection: DateSpan): void;
  1248. renderEvents(eventStore: EventStore): void;
  1249. unrenderEvents(): void;
  1250. sliceEvents(eventStore: EventStore, allDay: boolean): EventRenderRange[];
  1251. renderEventSelectionWrap(instanceId: string): void;
  1252. unrenderEventSelectionWrap(instanceId: string): void;
  1253. renderEventSelection(instanceId: string): void;
  1254. unrenderEventSelection(instanceId: string): void;
  1255. renderEventDragWrap(state: EventInteractionState): void;
  1256. unrenderEventDragWrap(state: EventInteractionState): void;
  1257. renderEventDrag(state: EventInteractionState): void;
  1258. unrenderEventDrag(state: EventInteractionState): void;
  1259. renderEventResizeWrap(state: EventInteractionState): void;
  1260. unrenderEventResizeWrap(state: EventInteractionState): void;
  1261. renderEventResize(state: EventInteractionState): void;
  1262. unrenderEventResize(state: EventInteractionState): void;
  1263. startNowIndicator(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): void;
  1264. updateNowIndicator(): void;
  1265. stopNowIndicator(): void;
  1266. getNowIndicatorUnit(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): void;
  1267. renderNowIndicator(date: any): void;
  1268. unrenderNowIndicator(): void;
  1269. addScroll(scroll: any, isForced?: boolean): void;
  1270. popScroll(isResize: boolean): void;
  1271. applyQueuedScroll(isResize: boolean): void;
  1272. queryScroll(): any;
  1273. applyScroll(scroll: any, isResize: boolean): void;
  1274. computeDateScroll(duration: Duration): {};
  1275. queryDateScroll(): {};
  1276. applyDateScroll(scroll: any): void;
  1277. scrollToDuration(duration: Duration): void;
  1278. }
  1279. }
  1280. declare module '@fullcalendar/core/component/renderers/FgEventRenderer' {
  1281. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1282. import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
  1283. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1284. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1285. import { Seg } from '@fullcalendar/core/component/DateComponent';
  1286. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1287. export { FgEventRenderer as default, FgEventRenderer };
  1288. abstract class FgEventRenderer {
  1289. context: ComponentContext;
  1290. eventTimeFormat: DateFormatter;
  1291. displayEventTime: boolean;
  1292. displayEventEnd: boolean;
  1293. segs: Seg[];
  1294. isSizeDirty: boolean;
  1295. renderSegs(context: ComponentContext, segs: Seg[], mirrorInfo?: any): void;
  1296. unrender(context: ComponentContext, _segs: Seg[], mirrorInfo?: any): void;
  1297. abstract renderSegHtml(seg: Seg, mirrorInfo: any): string;
  1298. abstract attachSegs(segs: Seg[], mirrorInfo: any): any;
  1299. abstract detachSegs(segs: Seg[]): any;
  1300. rangeUpdated(): void;
  1301. renderSegEls(segs: Seg[], mirrorInfo: any): Seg[];
  1302. getSegClasses(seg: Seg, isDraggable: any, isResizable: any, mirrorInfo: any): string[];
  1303. getTimeText(eventRange: EventRenderRange, formatter?: any, displayEnd?: any): any;
  1304. _getTimeText(start: DateMarker, end: DateMarker, allDay: any, formatter?: any, displayEnd?: any, forcedStartTzo?: number, forcedEndTzo?: number): any;
  1305. computeEventTimeFormat(): any;
  1306. computeDisplayEventTime(): boolean;
  1307. computeDisplayEventEnd(): boolean;
  1308. getSkinCss(ui: EventUi): {
  1309. 'background-color': string;
  1310. 'border-color': string;
  1311. color: string;
  1312. };
  1313. sortEventSegs(segs: any): Seg[];
  1314. computeSizes(force: boolean): void;
  1315. assignSizes(force: boolean): void;
  1316. computeSegSizes(segs: Seg[]): void;
  1317. assignSegSizes(segs: Seg[]): void;
  1318. hideByHash(hash: any): void;
  1319. showByHash(hash: any): void;
  1320. selectByInstanceId(instanceId: string): void;
  1321. unselectByInstanceId(instanceId: string): void;
  1322. }
  1323. export function buildSegCompareObj(seg: Seg): any;
  1324. }
  1325. declare module '@fullcalendar/core/component/renderers/FillRenderer' {
  1326. import { Seg } from '@fullcalendar/core/component/DateComponent';
  1327. import { ComponentContext } from '@fullcalendar/core/component/Component';
  1328. export { FillRenderer as default, FillRenderer };
  1329. abstract class FillRenderer {
  1330. context: ComponentContext;
  1331. fillSegTag: string;
  1332. containerElsByType: any;
  1333. segsByType: any;
  1334. dirtySizeFlags: any;
  1335. constructor();
  1336. getSegsByType(type: string): any;
  1337. renderSegs(type: string, context: ComponentContext, segs: Seg[]): void;
  1338. unrender(type: string, context: ComponentContext): void;
  1339. renderSegEls(type: any, segs: Seg[]): Seg[];
  1340. renderSegHtml(type: any, seg: Seg): string;
  1341. abstract attachSegs(type: any, segs: Seg[]): HTMLElement[] | void;
  1342. detachSegs(type: any, segs: Seg[]): void;
  1343. computeSizes(force: boolean): void;
  1344. assignSizes(force: boolean): void;
  1345. computeSegSizes(segs: Seg[]): void;
  1346. assignSegSizes(segs: Seg[]): void;
  1347. }
  1348. }
  1349. declare module '@fullcalendar/core/DateProfileGenerator' {
  1350. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1351. import { Duration } from '@fullcalendar/core/datelib/duration';
  1352. import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
  1353. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1354. import { DateEnv } from '@fullcalendar/core/datelib/env';
  1355. import Calendar from '@fullcalendar/core/Calendar';
  1356. export interface DateProfile {
  1357. currentRange: DateRange;
  1358. currentRangeUnit: string;
  1359. isRangeAllDay: boolean;
  1360. validRange: OpenDateRange;
  1361. activeRange: DateRange;
  1362. renderRange: DateRange;
  1363. minTime: Duration;
  1364. maxTime: Duration;
  1365. isValid: boolean;
  1366. dateIncrement: Duration;
  1367. }
  1368. export { DateProfileGenerator as default, DateProfileGenerator };
  1369. class DateProfileGenerator {
  1370. viewSpec: ViewSpec;
  1371. options: any;
  1372. dateEnv: DateEnv;
  1373. calendar: Calendar;
  1374. isHiddenDayHash: boolean[];
  1375. constructor(viewSpec: ViewSpec, calendar: Calendar);
  1376. buildPrev(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
  1377. buildNext(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
  1378. build(currentDate: DateMarker, direction?: any, forceToValid?: boolean): DateProfile;
  1379. buildValidRange(): OpenDateRange;
  1380. buildCurrentRangeInfo(date: DateMarker, direction: any): {
  1381. duration: any;
  1382. unit: any;
  1383. range: any;
  1384. };
  1385. getFallbackDuration(): Duration;
  1386. adjustActiveRange(range: DateRange, minTime: Duration, maxTime: Duration): {
  1387. start: Date;
  1388. end: Date;
  1389. };
  1390. buildRangeFromDuration(date: DateMarker, direction: any, duration: Duration, unit: any): any;
  1391. buildRangeFromDayCount(date: DateMarker, direction: any, dayCount: any): {
  1392. start: Date;
  1393. end: Date;
  1394. };
  1395. buildCustomVisibleRange(date: DateMarker): OpenDateRange;
  1396. buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange;
  1397. buildDateIncrement(fallback: any): Duration;
  1398. getRangeOption(name: any, ...otherArgs: any[]): OpenDateRange;
  1399. initHiddenDays(): void;
  1400. trimHiddenDays(range: DateRange): DateRange | null;
  1401. isHiddenDay(day: any): boolean;
  1402. skipHiddenDays(date: DateMarker, inc?: number, isExclusive?: boolean): Date;
  1403. }
  1404. export function isDateProfilesEqual(p0: DateProfile, p1: DateProfile): boolean;
  1405. }
  1406. declare module '@fullcalendar/core/structs/view-def' {
  1407. import { ViewClass, ViewConfigHash } from '@fullcalendar/core/structs/view-config';
  1408. export interface ViewDef {
  1409. type: string;
  1410. class: ViewClass;
  1411. overrides: any;
  1412. defaults: any;
  1413. }
  1414. export type ViewDefHash = {
  1415. [viewType: string]: ViewDef;
  1416. };
  1417. export function compileViewDefs(defaultConfigs: ViewConfigHash, overrideConfigs: ViewConfigHash): ViewDefHash;
  1418. }
  1419. declare module '@fullcalendar/core/structs/view-spec' {
  1420. import { Duration } from '@fullcalendar/core/datelib/duration';
  1421. import OptionsManager from '@fullcalendar/core/OptionsManager';
  1422. import { ViewConfigInputHash, ViewClass } from '@fullcalendar/core/structs/view-config';
  1423. export interface ViewSpec {
  1424. type: string;
  1425. class: ViewClass;
  1426. duration: Duration;
  1427. durationUnit: string;
  1428. singleUnit: string;
  1429. options: any;
  1430. buttonTextOverride: string;
  1431. buttonTextDefault: string;
  1432. }
  1433. export type ViewSpecHash = {
  1434. [viewType: string]: ViewSpec;
  1435. };
  1436. export function buildViewSpecs(defaultInputs: ViewConfigInputHash, optionsManager: OptionsManager): ViewSpecHash;
  1437. }
  1438. declare module '@fullcalendar/core/structs/date-span' {
  1439. import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
  1440. import { DateInput, DateEnv } from '@fullcalendar/core/datelib/env';
  1441. import { Duration } from '@fullcalendar/core/datelib/duration';
  1442. import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
  1443. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  1444. import Calendar from '@fullcalendar/core/Calendar';
  1445. export interface OpenDateSpanInput {
  1446. start?: DateInput;
  1447. end?: DateInput;
  1448. allDay?: boolean;
  1449. [otherProp: string]: any;
  1450. }
  1451. export interface DateSpanInput extends OpenDateSpanInput {
  1452. start: DateInput;
  1453. end: DateInput;
  1454. }
  1455. export interface OpenDateSpan {
  1456. range: OpenDateRange;
  1457. allDay: boolean;
  1458. [otherProp: string]: any;
  1459. }
  1460. export interface DateSpan extends OpenDateSpan {
  1461. range: DateRange;
  1462. }
  1463. export interface DateSpanApi {
  1464. start: Date;
  1465. end: Date;
  1466. startStr: string;
  1467. endStr: string;
  1468. allDay: boolean;
  1469. }
  1470. export interface DatePointApi {
  1471. date: Date;
  1472. dateStr: string;
  1473. allDay: boolean;
  1474. }
  1475. export function parseDateSpan(raw: DateSpanInput, dateEnv: DateEnv, defaultDuration?: Duration): DateSpan | null;
  1476. export function parseOpenDateSpan(raw: OpenDateSpanInput, dateEnv: DateEnv): OpenDateSpan | null;
  1477. export function isDateSpansEqual(span0: DateSpan, span1: DateSpan): boolean;
  1478. export function buildDateSpanApi(span: DateSpan, dateEnv: DateEnv): DateSpanApi;
  1479. export function buildDatePointApi(span: DateSpan, dateEnv: DateEnv): DatePointApi;
  1480. export function fabricateEventRange(dateSpan: DateSpan, eventUiBases: EventUiHash, calendar: Calendar): EventRenderRange;
  1481. }
  1482. declare module '@fullcalendar/core/datelib/marker' {
  1483. import { Duration } from '@fullcalendar/core/datelib/duration';
  1484. export type DateMarker = Date;
  1485. export const DAY_IDS: string[];
  1486. export function addWeeks(m: DateMarker, n: number): Date;
  1487. export function addDays(m: DateMarker, n: number): Date;
  1488. export function addMs(m: DateMarker, n: number): Date;
  1489. export function diffWeeks(m0: any, m1: any): number;
  1490. export function diffDays(m0: any, m1: any): number;
  1491. export function diffHours(m0: any, m1: any): number;
  1492. export function diffMinutes(m0: any, m1: any): number;
  1493. export function diffSeconds(m0: any, m1: any): number;
  1494. export function diffDayAndTime(m0: DateMarker, m1: DateMarker): Duration;
  1495. export function diffWholeWeeks(m0: DateMarker, m1: DateMarker): number;
  1496. export function diffWholeDays(m0: DateMarker, m1: DateMarker): number;
  1497. export function startOfDay(m: DateMarker): DateMarker;
  1498. export function startOfHour(m: DateMarker): Date;
  1499. export function startOfMinute(m: DateMarker): Date;
  1500. export function startOfSecond(m: DateMarker): Date;
  1501. export function weekOfYear(marker: any, dow: any, doy: any): number;
  1502. export function dateToLocalArray(date: any): any[];
  1503. export function arrayToLocalDate(a: any): Date;
  1504. export function dateToUtcArray(date: any): any[];
  1505. export function arrayToUtcDate(a: any): Date;
  1506. export function isValidDate(m: DateMarker): boolean;
  1507. export function timeAsMs(m: DateMarker): number;
  1508. }
  1509. declare module '@fullcalendar/core/datelib/duration' {
  1510. export type DurationInput = DurationObjectInput | string | number;
  1511. export interface DurationObjectInput {
  1512. years?: number;
  1513. year?: number;
  1514. months?: number;
  1515. month?: number;
  1516. weeks?: number;
  1517. week?: number;
  1518. days?: number;
  1519. day?: number;
  1520. hours?: number;
  1521. hour?: number;
  1522. minutes?: number;
  1523. minute?: number;
  1524. seconds?: number;
  1525. second?: number;
  1526. milliseconds?: number;
  1527. millisecond?: number;
  1528. ms?: number;
  1529. }
  1530. export interface Duration {
  1531. years: number;
  1532. months: number;
  1533. days: number;
  1534. milliseconds: number;
  1535. }
  1536. export function createDuration(input: DurationInput, unit?: string): Duration | null;
  1537. export function getWeeksFromInput(obj: DurationObjectInput): number;
  1538. export function durationsEqual(d0: Duration, d1: Duration): boolean;
  1539. export function isSingleDay(dur: Duration): boolean;
  1540. export function addDurations(d0: Duration, d1: Duration): {
  1541. years: number;
  1542. months: number;
  1543. days: number;
  1544. milliseconds: number;
  1545. };
  1546. export function subtractDurations(d1: Duration, d0: Duration): Duration;
  1547. export function multiplyDuration(d: Duration, n: number): {
  1548. years: number;
  1549. months: number;
  1550. days: number;
  1551. milliseconds: number;
  1552. };
  1553. export function asRoughYears(dur: Duration): number;
  1554. export function asRoughMonths(dur: Duration): number;
  1555. export function asRoughDays(dur: Duration): number;
  1556. export function asRoughHours(dur: Duration): number;
  1557. export function asRoughMinutes(dur: Duration): number;
  1558. export function asRoughSeconds(dur: Duration): number;
  1559. export function asRoughMs(dur: Duration): number;
  1560. export function wholeDivideDurations(numerator: Duration, denominator: Duration): number;
  1561. export function greatestDurationDenominator(dur: Duration, dontReturnWeeks?: boolean): {
  1562. unit: string;
  1563. value: number;
  1564. };
  1565. }
  1566. declare module '@fullcalendar/core/datelib/env' {
  1567. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1568. import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
  1569. import { Locale } from '@fullcalendar/core/datelib/locale';
  1570. import { NamedTimeZoneImpl, NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
  1571. import { Duration } from '@fullcalendar/core/datelib/duration';
  1572. import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
  1573. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  1574. export interface DateEnvSettings {
  1575. timeZone: string;
  1576. namedTimeZoneImpl?: NamedTimeZoneImplClass;
  1577. calendarSystem: string;
  1578. locale: Locale;
  1579. weekNumberCalculation?: any;
  1580. firstDay?: any;
  1581. weekLabel?: string;
  1582. cmdFormatter?: CmdFormatterFunc;
  1583. }
  1584. export type DateInput = Date | string | number | number[];
  1585. export interface DateMarkerMeta {
  1586. marker: DateMarker;
  1587. isTimeUnspecified: boolean;
  1588. forcedTzo: number | null;
  1589. }
  1590. export class DateEnv {
  1591. timeZone: string;
  1592. namedTimeZoneImpl: NamedTimeZoneImpl;
  1593. canComputeOffset: boolean;
  1594. calendarSystem: CalendarSystem;
  1595. locale: Locale;
  1596. weekDow: number;
  1597. weekDoy: number;
  1598. weekNumberFunc: any;
  1599. weekLabel: string;
  1600. cmdFormatter?: CmdFormatterFunc;
  1601. constructor(settings: DateEnvSettings);
  1602. createMarker(input: DateInput): DateMarker;
  1603. createNowMarker(): DateMarker;
  1604. createMarkerMeta(input: DateInput): DateMarkerMeta;
  1605. parse(s: string): {
  1606. marker: Date;
  1607. isTimeUnspecified: boolean;
  1608. forcedTzo: any;
  1609. };
  1610. getYear(marker: DateMarker): number;
  1611. getMonth(marker: DateMarker): number;
  1612. add(marker: DateMarker, dur: Duration): DateMarker;
  1613. subtract(marker: DateMarker, dur: Duration): DateMarker;
  1614. addYears(marker: DateMarker, n: number): Date;
  1615. addMonths(marker: DateMarker, n: number): Date;
  1616. diffWholeYears(m0: DateMarker, m1: DateMarker): number;
  1617. diffWholeMonths(m0: DateMarker, m1: DateMarker): number;
  1618. greatestWholeUnit(m0: DateMarker, m1: DateMarker): {
  1619. unit: string;
  1620. value: number;
  1621. };
  1622. countDurationsBetween(m0: DateMarker, m1: DateMarker, d: Duration): number;
  1623. startOf(m: DateMarker, unit: string): Date;
  1624. startOfYear(m: DateMarker): DateMarker;
  1625. startOfMonth(m: DateMarker): DateMarker;
  1626. startOfWeek(m: DateMarker): DateMarker;
  1627. computeWeekNumber(marker: DateMarker): number;
  1628. format(marker: DateMarker, formatter: DateFormatter, dateOptions?: {
  1629. forcedTzo?: number;
  1630. }): any;
  1631. formatRange(start: DateMarker, end: DateMarker, formatter: DateFormatter, dateOptions?: {
  1632. forcedStartTzo?: number;
  1633. forcedEndTzo?: number;
  1634. isEndExclusive?: boolean;
  1635. }): any;
  1636. formatIso(marker: DateMarker, extraOptions?: any): string;
  1637. timestampToMarker(ms: number): Date;
  1638. offsetForMarker(m: DateMarker): number;
  1639. toDate(m: DateMarker, forcedTzo?: number): Date;
  1640. }
  1641. }
  1642. declare module '@fullcalendar/core/datelib/formatting' {
  1643. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1644. import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
  1645. import { Locale } from '@fullcalendar/core/datelib/locale';
  1646. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  1647. import { FuncFormatterFunc } from '@fullcalendar/core/datelib/formatting-func';
  1648. export interface ZonedMarker {
  1649. marker: DateMarker;
  1650. timeZoneOffset: number;
  1651. }
  1652. export interface ExpandedZonedMarker extends ZonedMarker {
  1653. array: number[];
  1654. year: number;
  1655. month: number;
  1656. day: number;
  1657. hour: number;
  1658. minute: number;
  1659. second: number;
  1660. millisecond: number;
  1661. }
  1662. export interface VerboseFormattingArg {
  1663. date: ExpandedZonedMarker;
  1664. start: ExpandedZonedMarker;
  1665. end?: ExpandedZonedMarker;
  1666. timeZone: string;
  1667. localeCodes: string[];
  1668. separator: string;
  1669. }
  1670. export interface DateFormattingContext {
  1671. timeZone: string;
  1672. locale: Locale;
  1673. calendarSystem: CalendarSystem;
  1674. computeWeekNumber: (d: DateMarker) => number;
  1675. weekLabel: string;
  1676. cmdFormatter?: CmdFormatterFunc;
  1677. }
  1678. export interface DateFormatter {
  1679. format(date: ZonedMarker, context: DateFormattingContext): any;
  1680. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): any;
  1681. }
  1682. export type FormatterInput = object | string | FuncFormatterFunc;
  1683. export function createFormatter(input: FormatterInput, defaultSeparator?: string): DateFormatter;
  1684. export function buildIsoString(marker: DateMarker, timeZoneOffset?: number, stripZeroTime?: boolean): string;
  1685. export function formatIsoTimeString(marker: DateMarker): string;
  1686. export function formatTimeZoneOffset(minutes: number, doIso?: boolean): string;
  1687. export function createVerboseFormattingArg(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext, separator?: string): VerboseFormattingArg;
  1688. }
  1689. declare module '@fullcalendar/core/datelib/timezone' {
  1690. export abstract class NamedTimeZoneImpl {
  1691. timeZoneName: string;
  1692. constructor(timeZoneName: string);
  1693. abstract offsetForArray(a: number[]): number;
  1694. abstract timestampToArray(ms: number): number[];
  1695. }
  1696. export type NamedTimeZoneImplClass = {
  1697. new (timeZoneName: string): NamedTimeZoneImpl;
  1698. };
  1699. }
  1700. declare module '@fullcalendar/core/datelib/parsing' {
  1701. export function parse(str: any): {
  1702. marker: Date;
  1703. isTimeUnspecified: boolean;
  1704. timeZoneOffset: any;
  1705. };
  1706. }
  1707. declare module '@fullcalendar/core/structs/event-source' {
  1708. import { EventInput } from '@fullcalendar/core/structs/event';
  1709. import Calendar from '@fullcalendar/core/Calendar';
  1710. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  1711. import { EventSourceFunc } from '@fullcalendar/core/event-sources/func-event-source';
  1712. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1713. import { ConstraintInput, AllowFunc } from '@fullcalendar/core/validation';
  1714. export type EventSourceError = {
  1715. message: string;
  1716. response?: any;
  1717. [otherProp: string]: any;
  1718. };
  1719. export type EventInputTransformer = (eventInput: EventInput) => EventInput | null;
  1720. export type EventSourceSuccessResponseHandler = (rawData: any, response: any) => EventInput[] | void;
  1721. export type EventSourceErrorResponseHandler = (error: EventSourceError) => void;
  1722. export interface ExtendedEventSourceInput {
  1723. id?: string | number;
  1724. allDayDefault?: boolean;
  1725. eventDataTransform?: EventInputTransformer;
  1726. events?: EventInput[] | EventSourceFunc;
  1727. url?: string;
  1728. method?: string;
  1729. extraParams?: object | (() => object);
  1730. startParam?: string;
  1731. endParam?: string;
  1732. timeZoneParam?: string;
  1733. success?: EventSourceSuccessResponseHandler;
  1734. failure?: EventSourceErrorResponseHandler;
  1735. editable?: boolean;
  1736. startEditable?: boolean;
  1737. durationEditable?: boolean;
  1738. constraint?: ConstraintInput;
  1739. overlap?: boolean;
  1740. allow?: AllowFunc;
  1741. className?: string[] | string;
  1742. classNames?: string[] | string;
  1743. backgroundColor?: string;
  1744. borderColor?: string;
  1745. textColor?: string;
  1746. color?: string;
  1747. [otherProp: string]: any;
  1748. }
  1749. export type EventSourceInput = ExtendedEventSourceInput | // object in extended form
  1750. EventSourceFunc | // just a function
  1751. string;
  1752. export interface EventSource {
  1753. _raw: any;
  1754. sourceId: string;
  1755. sourceDefId: number;
  1756. meta: any;
  1757. publicId: string;
  1758. isFetching: boolean;
  1759. latestFetchId: string;
  1760. fetchRange: DateRange | null;
  1761. allDayDefault: boolean | null;
  1762. eventDataTransform: EventInputTransformer;
  1763. ui: EventUi;
  1764. success: EventSourceSuccessResponseHandler | null;
  1765. failure: EventSourceErrorResponseHandler | null;
  1766. extendedProps: any;
  1767. }
  1768. export type EventSourceHash = {
  1769. [sourceId: string]: EventSource;
  1770. };
  1771. export type EventSourceFetcher = (arg: {
  1772. eventSource: EventSource;
  1773. calendar: Calendar;
  1774. range: DateRange;
  1775. }, success: (res: {
  1776. rawEvents: EventInput[];
  1777. xhr?: XMLHttpRequest;
  1778. }) => void, failure: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
  1779. export interface EventSourceDef {
  1780. ignoreRange?: boolean;
  1781. parseMeta: (raw: EventSourceInput) => object | null;
  1782. fetch: EventSourceFetcher;
  1783. }
  1784. export function doesSourceNeedRange(eventSource: EventSource, calendar: Calendar): boolean;
  1785. export function parseEventSource(raw: EventSourceInput, calendar: Calendar): EventSource | null;
  1786. }
  1787. declare module '@fullcalendar/core/interactions/interaction' {
  1788. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1789. export abstract class Interaction {
  1790. component: DateComponent<any>;
  1791. constructor(settings: InteractionSettings);
  1792. destroy(): void;
  1793. }
  1794. export type InteractionClass = {
  1795. new (settings: InteractionSettings): Interaction;
  1796. };
  1797. export interface InteractionSettingsInput {
  1798. el: HTMLElement;
  1799. useEventCenter?: boolean;
  1800. }
  1801. export interface InteractionSettings {
  1802. component: DateComponent<any>;
  1803. el: HTMLElement;
  1804. useEventCenter: boolean;
  1805. }
  1806. export type InteractionSettingsStore = {
  1807. [componenUid: string]: InteractionSettings;
  1808. };
  1809. export function parseInteractionSettings(component: DateComponent<any>, input: InteractionSettingsInput): InteractionSettings;
  1810. export function interactionSettingsToStore(settings: InteractionSettings): {
  1811. [x: string]: InteractionSettings;
  1812. };
  1813. export let interactionSettingsStore: InteractionSettingsStore;
  1814. }
  1815. declare module '@fullcalendar/core/interactions/pointer' {
  1816. export interface PointerDragEvent {
  1817. origEvent: UIEvent;
  1818. isTouch: boolean;
  1819. subjectEl: EventTarget;
  1820. pageX: number;
  1821. pageY: number;
  1822. deltaX: number;
  1823. deltaY: number;
  1824. }
  1825. }
  1826. declare module '@fullcalendar/core/interactions/hit' {
  1827. import DateComponent from '@fullcalendar/core/component/DateComponent';
  1828. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  1829. import { Rect } from '@fullcalendar/core/util/geom';
  1830. export interface Hit {
  1831. component: DateComponent<any>;
  1832. dateSpan: DateSpan;
  1833. dayEl: HTMLElement;
  1834. rect: Rect;
  1835. layer: number;
  1836. }
  1837. }
  1838. declare module '@fullcalendar/core/interactions/date-selecting' {
  1839. import { Hit } from '@fullcalendar/core/interactions/hit';
  1840. export type dateSelectionJoinTransformer = (hit0: Hit, hit1: Hit) => any;
  1841. }
  1842. declare module '@fullcalendar/core/interactions/event-dragging' {
  1843. import Calendar from '@fullcalendar/core/Calendar';
  1844. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  1845. import { Hit } from '@fullcalendar/core/interactions/hit';
  1846. import { EventDef } from '@fullcalendar/core/structs/event';
  1847. import { EventUi } from '@fullcalendar/core/component/event-ui';
  1848. import { View } from '@fullcalendar/core';
  1849. export type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void;
  1850. export type EventDropTransformers = (mutation: EventMutation, calendar: Calendar) => any;
  1851. export type eventIsDraggableTransformer = (val: boolean, eventDef: EventDef, eventUi: EventUi, view: View) => boolean;
  1852. }
  1853. declare module '@fullcalendar/core/interactions/event-resizing' {
  1854. import { Hit } from '@fullcalendar/core/interactions/hit';
  1855. export type EventResizeJoinTransforms = (hit0: Hit, hit1: Hit) => false | object;
  1856. }
  1857. declare module '@fullcalendar/core/interactions/ElementDragging' {
  1858. import EmitterMixin from '@fullcalendar/core/common/EmitterMixin';
  1859. export { ElementDragging as default, ElementDragging };
  1860. abstract class ElementDragging {
  1861. emitter: EmitterMixin;
  1862. constructor(el: HTMLElement);
  1863. destroy(): void;
  1864. abstract setIgnoreMove(bool: boolean): void;
  1865. setMirrorIsVisible(bool: boolean): void;
  1866. setMirrorNeedsRevert(bool: boolean): void;
  1867. setAutoScrollEnabled(bool: boolean): void;
  1868. }
  1869. export type ElementDraggingClass = {
  1870. new (el: HTMLElement): ElementDragging;
  1871. };
  1872. }
  1873. declare module '@fullcalendar/core/formatting-api' {
  1874. import { DateInput } from '@fullcalendar/core/datelib/env';
  1875. export function formatDate(dateInput: DateInput, settings?: {}): any;
  1876. export function formatRange(startInput: DateInput, endInput: DateInput, settings: any): any;
  1877. }
  1878. declare module '@fullcalendar/core/options' {
  1879. import { PluginDef } from '@fullcalendar/core/plugin-system';
  1880. export const config: any;
  1881. export const globalDefaults: {
  1882. defaultRangeSeparator: string;
  1883. titleRangeSeparator: string;
  1884. defaultTimedEventDuration: string;
  1885. defaultAllDayEventDuration: {
  1886. day: number;
  1887. };
  1888. forceEventDuration: boolean;
  1889. nextDayThreshold: string;
  1890. columnHeader: boolean;
  1891. defaultView: string;
  1892. aspectRatio: number;
  1893. header: {
  1894. left: string;
  1895. center: string;
  1896. right: string;
  1897. };
  1898. weekends: boolean;
  1899. weekNumbers: boolean;
  1900. weekNumberCalculation: string;
  1901. editable: boolean;
  1902. scrollTime: string;
  1903. minTime: string;
  1904. maxTime: string;
  1905. showNonCurrentDates: boolean;
  1906. lazyFetching: boolean;
  1907. startParam: string;
  1908. endParam: string;
  1909. timeZoneParam: string;
  1910. timeZone: string;
  1911. locales: any[];
  1912. locale: string;
  1913. timeGridEventMinHeight: number;
  1914. themeSystem: string;
  1915. dragRevertDuration: number;
  1916. dragScroll: boolean;
  1917. allDayMaintainDuration: boolean;
  1918. unselectAuto: boolean;
  1919. dropAccept: string;
  1920. eventOrder: string;
  1921. eventLimit: boolean;
  1922. eventLimitClick: string;
  1923. dayPopoverFormat: {
  1924. month: string;
  1925. day: string;
  1926. year: string;
  1927. };
  1928. handleWindowResize: boolean;
  1929. windowResizeDelay: number;
  1930. longPressDelay: number;
  1931. eventDragMinDistance: number;
  1932. };
  1933. export const rtlDefaults: {
  1934. header: {
  1935. left: string;
  1936. center: string;
  1937. right: string;
  1938. };
  1939. buttonIcons: {
  1940. prev: string;
  1941. next: string;
  1942. prevYear: string;
  1943. nextYear: string;
  1944. };
  1945. };
  1946. export function mergeOptions(optionObjs: any): any;
  1947. export function refinePluginDefs(pluginInputs: any[]): PluginDef[];
  1948. }
  1949. declare module '@fullcalendar/core/structs/recurring-event' {
  1950. import { EventInput, EventDef } from '@fullcalendar/core/structs/event';
  1951. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  1952. import { DateEnv } from '@fullcalendar/core/datelib/env';
  1953. import { Duration } from '@fullcalendar/core/datelib/duration';
  1954. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  1955. export interface ParsedRecurring {
  1956. typeData: any;
  1957. allDayGuess: boolean | null;
  1958. duration: Duration | null;
  1959. }
  1960. export interface RecurringType {
  1961. parse: (rawEvent: EventInput, leftoverProps: any, dateEnv: DateEnv) => ParsedRecurring | null;
  1962. expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[];
  1963. }
  1964. export function parseRecurring(eventInput: EventInput, allDayDefault: boolean | null, dateEnv: DateEnv, recurringTypes: RecurringType[], leftovers: any): {
  1965. allDay: any;
  1966. duration: Duration;
  1967. typeData: any;
  1968. typeId: number;
  1969. };
  1970. export function expandRecurringRanges(eventDef: EventDef, duration: Duration, framingRange: DateRange, dateEnv: DateEnv, recurringTypes: RecurringType[]): DateMarker[];
  1971. }
  1972. declare module '@fullcalendar/core/structs/drag-meta' {
  1973. import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
  1974. import { EventNonDateInput } from '@fullcalendar/core/structs/event';
  1975. export interface DragMetaInput extends EventNonDateInput {
  1976. startTime?: DurationInput;
  1977. duration?: DurationInput;
  1978. create?: boolean;
  1979. sourceId?: string;
  1980. }
  1981. export interface DragMeta {
  1982. startTime: Duration | null;
  1983. duration: Duration | null;
  1984. create: boolean;
  1985. sourceId: string;
  1986. leftoverProps: object;
  1987. }
  1988. export function parseDragMeta(raw: DragMetaInput): DragMeta;
  1989. }
  1990. declare module '@fullcalendar/core/plugin-system' {
  1991. import { reducerFunc } from '@fullcalendar/core/reducers/types';
  1992. import { eventDefParserFunc } from '@fullcalendar/core/structs/event';
  1993. import { eventDefMutationApplier } from '@fullcalendar/core/structs/event-mutation';
  1994. import Calendar, { DatePointTransform, DateSpanTransform, CalendarInteractionClass, OptionChangeHandlerMap } from '@fullcalendar/core/Calendar';
  1995. import { ViewConfigInputHash } from '@fullcalendar/core/structs/view-config';
  1996. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  1997. import { ViewProps } from '@fullcalendar/core/View';
  1998. import { CalendarComponentProps } from '@fullcalendar/core/CalendarComponent';
  1999. import { isPropsValidTester } from '@fullcalendar/core/validation';
  2000. import { eventDragMutationMassager, eventIsDraggableTransformer, EventDropTransformers } from '@fullcalendar/core/interactions/event-dragging';
  2001. import { dateSelectionJoinTransformer } from '@fullcalendar/core/interactions/date-selecting';
  2002. import { EventResizeJoinTransforms } from '@fullcalendar/core/interactions/event-resizing';
  2003. import { ExternalDefTransform } from '@fullcalendar/core/interactions/external-element-dragging';
  2004. import { InteractionClass } from '@fullcalendar/core/interactions/interaction';
  2005. import { ThemeClass } from '@fullcalendar/core/theme/Theme';
  2006. import { EventSourceDef } from '@fullcalendar/core/structs/event-source';
  2007. import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
  2008. import { RecurringType } from '@fullcalendar/core/structs/recurring-event';
  2009. import { NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
  2010. import { ElementDraggingClass } from '@fullcalendar/core/interactions/ElementDragging';
  2011. export interface PluginDefInput {
  2012. deps?: PluginDef[];
  2013. reducers?: reducerFunc[];
  2014. eventDefParsers?: eventDefParserFunc[];
  2015. isDraggableTransformers?: eventIsDraggableTransformer[];
  2016. eventDragMutationMassagers?: eventDragMutationMassager[];
  2017. eventDefMutationAppliers?: eventDefMutationApplier[];
  2018. dateSelectionTransformers?: dateSelectionJoinTransformer[];
  2019. datePointTransforms?: DatePointTransform[];
  2020. dateSpanTransforms?: DateSpanTransform[];
  2021. views?: ViewConfigInputHash;
  2022. viewPropsTransformers?: ViewPropsTransformerClass[];
  2023. isPropsValid?: isPropsValidTester;
  2024. externalDefTransforms?: ExternalDefTransform[];
  2025. eventResizeJoinTransforms?: EventResizeJoinTransforms[];
  2026. viewContainerModifiers?: ViewContainerModifier[];
  2027. eventDropTransformers?: EventDropTransformers[];
  2028. componentInteractions?: InteractionClass[];
  2029. calendarInteractions?: CalendarInteractionClass[];
  2030. themeClasses?: {
  2031. [themeSystemName: string]: ThemeClass;
  2032. };
  2033. eventSourceDefs?: EventSourceDef[];
  2034. cmdFormatter?: CmdFormatterFunc;
  2035. recurringTypes?: RecurringType[];
  2036. namedTimeZonedImpl?: NamedTimeZoneImplClass;
  2037. defaultView?: string;
  2038. elementDraggingImpl?: ElementDraggingClass;
  2039. optionChangeHandlers?: OptionChangeHandlerMap;
  2040. }
  2041. export interface PluginHooks {
  2042. reducers: reducerFunc[];
  2043. eventDefParsers: eventDefParserFunc[];
  2044. isDraggableTransformers: eventIsDraggableTransformer[];
  2045. eventDragMutationMassagers: eventDragMutationMassager[];
  2046. eventDefMutationAppliers: eventDefMutationApplier[];
  2047. dateSelectionTransformers: dateSelectionJoinTransformer[];
  2048. datePointTransforms: DatePointTransform[];
  2049. dateSpanTransforms: DateSpanTransform[];
  2050. views: ViewConfigInputHash;
  2051. viewPropsTransformers: ViewPropsTransformerClass[];
  2052. isPropsValid: isPropsValidTester | null;
  2053. externalDefTransforms: ExternalDefTransform[];
  2054. eventResizeJoinTransforms: EventResizeJoinTransforms[];
  2055. viewContainerModifiers: ViewContainerModifier[];
  2056. eventDropTransformers: EventDropTransformers[];
  2057. componentInteractions: InteractionClass[];
  2058. calendarInteractions: CalendarInteractionClass[];
  2059. themeClasses: {
  2060. [themeSystemName: string]: ThemeClass;
  2061. };
  2062. eventSourceDefs: EventSourceDef[];
  2063. cmdFormatter?: CmdFormatterFunc;
  2064. recurringTypes: RecurringType[];
  2065. namedTimeZonedImpl?: NamedTimeZoneImplClass;
  2066. defaultView: string;
  2067. elementDraggingImpl?: ElementDraggingClass;
  2068. optionChangeHandlers: OptionChangeHandlerMap;
  2069. }
  2070. export interface PluginDef extends PluginHooks {
  2071. id: string;
  2072. deps: PluginDef[];
  2073. }
  2074. export type ViewPropsTransformerClass = new () => ViewPropsTransformer;
  2075. export interface ViewPropsTransformer {
  2076. transform(viewProps: ViewProps, viewSpec: ViewSpec, calendarProps: CalendarComponentProps, allOptions: any): any;
  2077. }
  2078. export type ViewContainerModifier = (contentEl: HTMLElement, calendar: Calendar) => void;
  2079. export function createPlugin(input: PluginDefInput): PluginDef;
  2080. export class PluginSystem {
  2081. hooks: PluginHooks;
  2082. addedHash: {
  2083. [pluginId: string]: true;
  2084. };
  2085. constructor();
  2086. add(plugin: PluginDef): void;
  2087. }
  2088. }
  2089. declare module '@fullcalendar/core/reducers/types' {
  2090. import { EventInput, EventInstanceHash } from '@fullcalendar/core/structs/event';
  2091. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2092. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2093. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  2094. import { EventSource, EventSourceHash, EventSourceError } from '@fullcalendar/core/structs/event-source';
  2095. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2096. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2097. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2098. import { DateEnv } from '@fullcalendar/core/datelib/env';
  2099. import Calendar from '@fullcalendar/core/Calendar';
  2100. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2101. export interface CalendarState {
  2102. eventSources: EventSourceHash;
  2103. eventSourceLoadingLevel: number;
  2104. loadingLevel: number;
  2105. viewType: string;
  2106. currentDate: DateMarker;
  2107. dateProfile: DateProfile | null;
  2108. eventStore: EventStore;
  2109. dateSelection: DateSpan | null;
  2110. eventSelection: string;
  2111. eventDrag: EventInteractionState | null;
  2112. eventResize: EventInteractionState | null;
  2113. }
  2114. export type reducerFunc = (state: CalendarState, action: Action, calendar: Calendar) => CalendarState;
  2115. export type Action = {
  2116. type: 'INIT';
  2117. } | // wont it create another rerender?
  2118. {
  2119. type: 'PREV';
  2120. } | {
  2121. type: 'NEXT';
  2122. } | {
  2123. type: 'SET_DATE';
  2124. dateMarker: DateMarker;
  2125. } | {
  2126. type: 'SET_VIEW_TYPE';
  2127. viewType: string;
  2128. dateMarker?: DateMarker;
  2129. } | {
  2130. type: 'SELECT_DATES';
  2131. selection: DateSpan;
  2132. } | {
  2133. type: 'UNSELECT_DATES';
  2134. } | {
  2135. type: 'SELECT_EVENT';
  2136. eventInstanceId: string;
  2137. } | {
  2138. type: 'UNSELECT_EVENT';
  2139. } | {
  2140. type: 'SET_EVENT_DRAG';
  2141. state: EventInteractionState;
  2142. } | {
  2143. type: 'UNSET_EVENT_DRAG';
  2144. } | {
  2145. type: 'SET_EVENT_RESIZE';
  2146. state: EventInteractionState;
  2147. } | {
  2148. type: 'UNSET_EVENT_RESIZE';
  2149. } | {
  2150. type: 'ADD_EVENT_SOURCES';
  2151. sources: EventSource[];
  2152. } | {
  2153. type: 'REMOVE_EVENT_SOURCE';
  2154. sourceId: string;
  2155. } | {
  2156. type: 'REMOVE_ALL_EVENT_SOURCES';
  2157. } | {
  2158. type: 'FETCH_EVENT_SOURCES';
  2159. sourceIds?: string[];
  2160. } | // if no sourceIds, fetch all
  2161. {
  2162. type: 'CHANGE_TIMEZONE';
  2163. oldDateEnv: DateEnv;
  2164. } | {
  2165. type: 'RECEIVE_EVENTS';
  2166. sourceId: string;
  2167. fetchId: string;
  2168. fetchRange: DateRange | null;
  2169. rawEvents: EventInput[];
  2170. } | {
  2171. type: 'RECEIVE_EVENT_ERROR';
  2172. sourceId: string;
  2173. fetchId: string;
  2174. fetchRange: DateRange | null;
  2175. error: EventSourceError;
  2176. } | // need all these?
  2177. {
  2178. type: 'ADD_EVENTS';
  2179. eventStore: EventStore;
  2180. } | {
  2181. type: 'MERGE_EVENTS';
  2182. eventStore: EventStore;
  2183. } | {
  2184. type: 'MUTATE_EVENTS';
  2185. instanceId: string;
  2186. mutation: EventMutation;
  2187. fromApi?: boolean;
  2188. } | {
  2189. type: 'REMOVE_EVENT_DEF';
  2190. defId: string;
  2191. } | {
  2192. type: 'REMOVE_EVENT_INSTANCES';
  2193. instances: EventInstanceHash;
  2194. } | {
  2195. type: 'REMOVE_ALL_EVENTS';
  2196. } | {
  2197. type: 'RESET_EVENTS';
  2198. };
  2199. }
  2200. declare module '@fullcalendar/core/CalendarComponent' {
  2201. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  2202. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  2203. import View from '@fullcalendar/core/View';
  2204. import Toolbar from '@fullcalendar/core/Toolbar';
  2205. import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2206. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2207. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2208. import { BusinessHoursInput } from '@fullcalendar/core/structs/business-hours';
  2209. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2210. import { CalendarState } from '@fullcalendar/core/reducers/types';
  2211. export interface CalendarComponentProps extends CalendarState {
  2212. viewSpec: ViewSpec;
  2213. dateProfileGenerator: DateProfileGenerator;
  2214. eventUiBases: EventUiHash;
  2215. }
  2216. export { CalendarComponent as default, CalendarComponent };
  2217. class CalendarComponent extends Component<CalendarComponentProps> {
  2218. view: View;
  2219. header: Toolbar;
  2220. footer: Toolbar;
  2221. computeTitle: (dateProfile: any, viewOptions: any) => string;
  2222. parseBusinessHours: (input: BusinessHoursInput) => EventStore;
  2223. el: HTMLElement;
  2224. contentEl: HTMLElement;
  2225. elClassNames: string[];
  2226. savedScroll: any;
  2227. isHeightAuto: boolean;
  2228. viewHeight: number;
  2229. constructor(el: HTMLElement);
  2230. render(props: CalendarComponentProps, context: ComponentContext): void;
  2231. destroy(): void;
  2232. _renderSkeleton(context: ComponentContext): void;
  2233. _unrenderSkeleton(): void;
  2234. removeElClassNames(): void;
  2235. updateElClassNames(context: ComponentContext): void;
  2236. _renderToolbars(viewSpec: ViewSpec, dateProfile: DateProfile, currentDate: DateMarker, title: string): void;
  2237. _unrenderToolbars(): void;
  2238. renderView(props: CalendarComponentProps, title: string): void;
  2239. updateSize(isResize?: boolean): void;
  2240. computeHeightVars(): void;
  2241. queryToolbarsHeight(): number;
  2242. freezeHeight(): void;
  2243. thawHeight(): void;
  2244. }
  2245. }
  2246. declare module '@fullcalendar/core/common/DayHeader' {
  2247. import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
  2248. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2249. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2250. export interface DayTableHeaderProps {
  2251. dates: DateMarker[];
  2252. dateProfile: DateProfile;
  2253. datesRepDistinctDays: boolean;
  2254. renderIntroHtml?: () => string;
  2255. }
  2256. export { DayHeader as default, DayHeader };
  2257. class DayHeader extends Component<DayTableHeaderProps> {
  2258. parentEl: HTMLElement;
  2259. el: HTMLElement;
  2260. thead: HTMLElement;
  2261. constructor(parentEl: HTMLElement);
  2262. render(props: DayTableHeaderProps, context: ComponentContext): void;
  2263. destroy(): void;
  2264. _renderSkeleton(context: ComponentContext): void;
  2265. _unrenderSkeleton(): 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 { EventUi, EventUiHash } from '@fullcalendar/core/component/event-ui';
  2321. import { ComponentContext } from '@fullcalendar/core/component/Component';
  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(context: ComponentContext, 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. export function triggerRenderedSegs(context: ComponentContext, segs: Seg[], isMirrors: boolean): void;
  2340. export function triggerWillRemoveSegs(context: ComponentContext, segs: Seg[], isMirrors: boolean): void;
  2341. export function computeEventDraggable(context: ComponentContext, eventDef: EventDef, eventUi: EventUi): boolean;
  2342. export function computeEventStartResizable(context: ComponentContext, eventDef: EventDef, eventUi: EventUi): any;
  2343. export function computeEventEndResizable(context: ComponentContext, eventDef: EventDef, eventUi: EventUi): boolean;
  2344. }
  2345. declare module '@fullcalendar/core/common/DayTable' {
  2346. import DaySeries from '@fullcalendar/core/common/DaySeries';
  2347. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2348. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2349. import { Seg } from '@fullcalendar/core/component/DateComponent';
  2350. export interface DayTableSeg extends Seg {
  2351. row: number;
  2352. firstCol: number;
  2353. lastCol: number;
  2354. }
  2355. export interface DayTableCell {
  2356. date: DateMarker;
  2357. htmlAttrs?: string;
  2358. }
  2359. export { DayTable as default, DayTable };
  2360. class DayTable {
  2361. rowCnt: number;
  2362. colCnt: number;
  2363. cells: DayTableCell[][];
  2364. headerDates: DateMarker[];
  2365. constructor(daySeries: DaySeries, breakOnWeeks: boolean);
  2366. sliceRange(range: DateRange): DayTableSeg[];
  2367. }
  2368. }
  2369. declare module '@fullcalendar/core/common/slicing-utils' {
  2370. import { DateRange } from '@fullcalendar/core/datelib/date-range';
  2371. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2372. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2373. import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
  2374. import DateComponent, { Seg, EventSegUiInteractionState } from '@fullcalendar/core/component/DateComponent';
  2375. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2376. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2377. import { Duration } from '@fullcalendar/core/datelib/duration';
  2378. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2379. import Calendar from '@fullcalendar/core/Calendar';
  2380. export interface SliceableProps {
  2381. dateSelection: DateSpan;
  2382. businessHours: EventStore;
  2383. eventStore: EventStore;
  2384. eventDrag: EventInteractionState | null;
  2385. eventResize: EventInteractionState | null;
  2386. eventSelection: string;
  2387. eventUiBases: EventUiHash;
  2388. }
  2389. export interface SlicedProps<SegType extends Seg> {
  2390. dateSelectionSegs: SegType[];
  2391. businessHourSegs: SegType[];
  2392. fgEventSegs: SegType[];
  2393. bgEventSegs: SegType[];
  2394. eventDrag: EventSegUiInteractionState | null;
  2395. eventResize: EventSegUiInteractionState | null;
  2396. eventSelection: string;
  2397. }
  2398. export { Slicer as default, Slicer };
  2399. abstract class Slicer<SegType extends Seg, ExtraArgs extends any[] = []> {
  2400. abstract sliceRange(dateRange: DateRange, ...extraArgs: ExtraArgs): SegType[];
  2401. sliceProps(props: SliceableProps, dateProfile: DateProfile, nextDayThreshold: Duration | null, calendar: Calendar, component: DateComponent<any>, // TODO: kill
  2402. ...extraArgs: ExtraArgs): SlicedProps<SegType>;
  2403. sliceNowDate(// does not memoize
  2404. date: DateMarker, component: DateComponent<any>, // TODO: kill
  2405. ...extraArgs: ExtraArgs): SegType[];
  2406. }
  2407. }
  2408. declare module '@fullcalendar/core/structs/event-mutation' {
  2409. import { Duration } from '@fullcalendar/core/datelib/duration';
  2410. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2411. import { EventDef } from '@fullcalendar/core/structs/event';
  2412. import Calendar from '@fullcalendar/core/Calendar';
  2413. import { EventUiHash } from '@fullcalendar/core/component/event-ui';
  2414. export interface EventMutation {
  2415. datesDelta?: Duration;
  2416. startDelta?: Duration;
  2417. endDelta?: Duration;
  2418. standardProps?: any;
  2419. extendedProps?: any;
  2420. }
  2421. export function applyMutationToEventStore(eventStore: EventStore, eventConfigBase: EventUiHash, mutation: EventMutation, calendar: Calendar): EventStore;
  2422. export type eventDefMutationApplier = (eventDef: EventDef, mutation: EventMutation, calendar: Calendar) => void;
  2423. }
  2424. declare module '@fullcalendar/core/validation' {
  2425. import { EventStore } from '@fullcalendar/core/structs/event-store';
  2426. import Calendar from '@fullcalendar/core/Calendar';
  2427. import { DateSpan, DateSpanApi } from '@fullcalendar/core/structs/date-span';
  2428. import EventApi from '@fullcalendar/core/api/EventApi';
  2429. import { EventInput } from '@fullcalendar/core/structs/event';
  2430. import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
  2431. import { SplittableProps } from '@fullcalendar/core/component/event-splitting';
  2432. export type ConstraintInput = 'businessHours' | string | EventInput | EventInput[];
  2433. export type Constraint = 'businessHours' | string | EventStore | false;
  2434. export type OverlapFunc = ((stillEvent: EventApi, movingEvent: EventApi | null) => boolean);
  2435. export type AllowFunc = (span: DateSpanApi, movingEvent: EventApi | null) => boolean;
  2436. export type isPropsValidTester = (props: SplittableProps, calendar: Calendar) => boolean;
  2437. export function isInteractionValid(interaction: EventInteractionState, calendar: Calendar): boolean;
  2438. export function isDateSelectionValid(dateSelection: DateSpan, calendar: Calendar): boolean;
  2439. export function isPropsValid(state: SplittableProps, calendar: Calendar, dateSpanMeta?: {}, filterConfig?: any): boolean;
  2440. export function normalizeConstraint(input: ConstraintInput, calendar: Calendar): Constraint | null;
  2441. }
  2442. declare module '@fullcalendar/core/api/EventApi' {
  2443. import Calendar from '@fullcalendar/core/Calendar';
  2444. import { EventDef, EventInstance } from '@fullcalendar/core/structs/event';
  2445. import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
  2446. import { DateInput } from '@fullcalendar/core/datelib/env';
  2447. import { DurationInput } from '@fullcalendar/core/datelib/duration';
  2448. import { FormatterInput } from '@fullcalendar/core/datelib/formatting';
  2449. import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
  2450. export { EventApi as default, EventApi };
  2451. class EventApi {
  2452. _calendar: Calendar;
  2453. _def: EventDef;
  2454. _instance: EventInstance | null;
  2455. constructor(calendar: Calendar, def: EventDef, instance?: EventInstance);
  2456. setProp(name: string, val: string): void;
  2457. setExtendedProp(name: string, val: any): void;
  2458. setStart(startInput: DateInput, options?: {
  2459. granularity?: string;
  2460. maintainDuration?: boolean;
  2461. }): void;
  2462. setEnd(endInput: DateInput | null, options?: {
  2463. granularity?: string;
  2464. }): void;
  2465. setDates(startInput: DateInput, endInput: DateInput | null, options?: {
  2466. allDay?: boolean;
  2467. granularity?: string;
  2468. }): void;
  2469. moveStart(deltaInput: DurationInput): void;
  2470. moveEnd(deltaInput: DurationInput): void;
  2471. moveDates(deltaInput: DurationInput): void;
  2472. setAllDay(allDay: boolean, options?: {
  2473. maintainDuration?: boolean;
  2474. }): void;
  2475. formatRange(formatInput: FormatterInput): any;
  2476. mutate(mutation: EventMutation): void;
  2477. remove(): void;
  2478. readonly source: EventSourceApi | null;
  2479. readonly start: Date | null;
  2480. readonly end: Date | null;
  2481. readonly id: string;
  2482. readonly groupId: string;
  2483. readonly allDay: boolean;
  2484. readonly title: string;
  2485. readonly url: string;
  2486. readonly rendering: string;
  2487. readonly startEditable: boolean;
  2488. readonly durationEditable: boolean;
  2489. readonly constraint: any;
  2490. readonly overlap: any;
  2491. readonly allow: any;
  2492. readonly backgroundColor: string;
  2493. readonly borderColor: string;
  2494. readonly textColor: string;
  2495. readonly classNames: string[];
  2496. readonly extendedProps: any;
  2497. }
  2498. }
  2499. declare module '@fullcalendar/core/util/requestJson' {
  2500. export default function requestJson(method: string, url: string, params: object, successCallback: any, failureCallback: any): void;
  2501. }
  2502. declare module '@fullcalendar/core/datelib/locale' {
  2503. export type LocaleCodeArg = string | string[];
  2504. export type LocaleSingularArg = LocaleCodeArg | RawLocale;
  2505. export interface Locale {
  2506. codeArg: LocaleCodeArg;
  2507. codes: string[];
  2508. week: {
  2509. dow: number;
  2510. doy: number;
  2511. };
  2512. simpleNumberFormat: Intl.NumberFormat;
  2513. options: any;
  2514. }
  2515. export interface RawLocale {
  2516. code: string;
  2517. [otherProp: string]: any;
  2518. }
  2519. export type RawLocaleMap = {
  2520. [code: string]: RawLocale;
  2521. };
  2522. export interface RawLocaleInfo {
  2523. map: RawLocaleMap;
  2524. defaultCode: string;
  2525. }
  2526. export function parseRawLocales(explicitRawLocales: RawLocale[]): RawLocaleInfo;
  2527. export function buildLocale(inputSingular: LocaleSingularArg, available: RawLocaleMap): Locale;
  2528. }
  2529. declare module '@fullcalendar/core/OptionsManager' {
  2530. export { OptionsManager as default, OptionsManager };
  2531. class OptionsManager {
  2532. dirDefaults: any;
  2533. localeDefaults: any;
  2534. overrides: any;
  2535. dynamicOverrides: any;
  2536. computed: any;
  2537. constructor(overrides: any);
  2538. mutate(updates: any, removals: string[], isDynamic?: boolean): void;
  2539. compute(): void;
  2540. }
  2541. }
  2542. declare module '@fullcalendar/core/api/EventSourceApi' {
  2543. import Calendar from '@fullcalendar/core/Calendar';
  2544. import { EventSource } from '@fullcalendar/core/structs/event-source';
  2545. export { EventSourceApi as default, EventSourceApi };
  2546. class EventSourceApi {
  2547. calendar: Calendar;
  2548. internalEventSource: EventSource;
  2549. constructor(calendar: Calendar, internalEventSource: EventSource);
  2550. remove(): void;
  2551. refetch(): void;
  2552. readonly id: string;
  2553. readonly url: string;
  2554. }
  2555. }
  2556. declare module '@fullcalendar/core/structs/view-config' {
  2557. import View from '@fullcalendar/core/View';
  2558. import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
  2559. export type ViewClass = new (viewSpec: ViewSpec, parentEl: HTMLElement) => View;
  2560. export interface ViewConfigObjectInput {
  2561. type?: string;
  2562. class?: ViewClass;
  2563. [optionName: string]: any;
  2564. }
  2565. export type ViewConfigInput = ViewClass | ViewConfigObjectInput;
  2566. export type ViewConfigInputHash = {
  2567. [viewType: string]: ViewConfigInput;
  2568. };
  2569. export interface ViewConfig {
  2570. superType: string;
  2571. class: ViewClass | null;
  2572. options: any;
  2573. }
  2574. export type ViewConfigHash = {
  2575. [viewType: string]: ViewConfig;
  2576. };
  2577. export function parseViewConfigs(inputs: ViewConfigInputHash): ViewConfigHash;
  2578. }
  2579. declare module '@fullcalendar/core/datelib/calendar-system' {
  2580. import { DateMarker } from '@fullcalendar/core/datelib/marker';
  2581. export interface CalendarSystem {
  2582. getMarkerYear(d: DateMarker): number;
  2583. getMarkerMonth(d: DateMarker): number;
  2584. getMarkerDay(d: DateMarker): number;
  2585. arrayToMarker(arr: number[]): DateMarker;
  2586. markerToArray(d: DateMarker): number[];
  2587. }
  2588. export function registerCalendarSystem(name: any, theClass: any): void;
  2589. export function createCalendarSystem(name: any): any;
  2590. }
  2591. declare module '@fullcalendar/core/datelib/formatting-cmd' {
  2592. import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
  2593. export type CmdFormatterFunc = (cmd: string, arg: VerboseFormattingArg) => string;
  2594. export class CmdFormatter implements DateFormatter {
  2595. cmdStr: string;
  2596. separator: string;
  2597. constructor(cmdStr: string, separator?: string);
  2598. format(date: ZonedMarker, context: DateFormattingContext): string;
  2599. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
  2600. }
  2601. }
  2602. declare module '@fullcalendar/core/datelib/formatting-func' {
  2603. import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
  2604. export type FuncFormatterFunc = (arg: VerboseFormattingArg) => string;
  2605. export class FuncFormatter implements DateFormatter {
  2606. func: FuncFormatterFunc;
  2607. constructor(func: FuncFormatterFunc);
  2608. format(date: ZonedMarker, context: DateFormattingContext): string;
  2609. formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
  2610. }
  2611. }
  2612. declare module '@fullcalendar/core/event-sources/func-event-source' {
  2613. import { EventSourceError } from '@fullcalendar/core/structs/event-source';
  2614. import { EventInput } from '@fullcalendar/core/structs/event';
  2615. export type EventSourceFunc = (arg: {
  2616. start: Date;
  2617. end: Date;
  2618. timeZone: string;
  2619. }, successCallback: (events: EventInput[]) => void, failureCallback: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
  2620. const _default: import("@fullcalendar/core/plugin-system").PluginDef;
  2621. export default _default;
  2622. }
  2623. declare module '@fullcalendar/core/interactions/external-element-dragging' {
  2624. import { DateSpan } from '@fullcalendar/core/structs/date-span';
  2625. import { DragMeta } from '@fullcalendar/core/structs/drag-meta';
  2626. export type ExternalDefTransform = (dateSpan: DateSpan, dragMeta: DragMeta) => any;
  2627. }
  2628. declare module '@fullcalendar/core/Toolbar' {
  2629. import Component from '@fullcalendar/core/component/Component';
  2630. export interface ToolbarRenderProps {
  2631. layout: any;
  2632. title: string;
  2633. activeButton: string;
  2634. isTodayEnabled: boolean;
  2635. isPrevEnabled: boolean;
  2636. isNextEnabled: boolean;
  2637. }
  2638. export { Toolbar as default, Toolbar };
  2639. class Toolbar extends Component<ToolbarRenderProps> {
  2640. el: HTMLElement;
  2641. viewsWithButtons: any;
  2642. constructor(extraClassName: any);
  2643. destroy(): void;
  2644. render(props: ToolbarRenderProps): void;
  2645. renderLayout(layout: any): void;
  2646. unrenderLayout(): void;
  2647. renderSection(position: any, buttonStr: any): HTMLElement;
  2648. updateToday(isTodayEnabled: any): void;
  2649. updatePrev(isPrevEnabled: any): void;
  2650. updateNext(isNextEnabled: any): void;
  2651. updateTitle(text: any): void;
  2652. updateActiveButton(buttonName?: any): void;
  2653. toggleButtonEnabled(buttonName: any, bool: any): void;
  2654. }
  2655. }