@fullcalendar/core 7.0.0-rc.0 → 7.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -42
  3. package/index.d.ts +0 -46
  4. package/index.js +1 -2066
  5. package/package.json +13 -42
  6. package/protected-api.d.ts +28 -0
  7. package/protected-api.js +39 -0
  8. package/index.cjs +0 -2077
  9. package/index.global.js +0 -9657
  10. package/index.global.min.js +0 -6
  11. package/internal-common.cjs +0 -7600
  12. package/internal-common.d.ts +0 -2729
  13. package/internal-common.js +0 -7374
  14. package/internal.cjs +0 -183
  15. package/internal.d.ts +0 -4
  16. package/internal.js +0 -3
  17. package/locales/af.cjs +0 -26
  18. package/locales/af.d.ts +0 -6
  19. package/locales/af.global.js +0 -32
  20. package/locales/af.global.min.js +0 -6
  21. package/locales/af.js +0 -22
  22. package/locales/ar-dz.cjs +0 -28
  23. package/locales/ar-dz.d.ts +0 -6
  24. package/locales/ar-dz.global.js +0 -34
  25. package/locales/ar-dz.global.min.js +0 -6
  26. package/locales/ar-dz.js +0 -24
  27. package/locales/ar-kw.cjs +0 -28
  28. package/locales/ar-kw.d.ts +0 -6
  29. package/locales/ar-kw.global.js +0 -34
  30. package/locales/ar-kw.global.min.js +0 -6
  31. package/locales/ar-kw.js +0 -24
  32. package/locales/ar-ly.cjs +0 -28
  33. package/locales/ar-ly.d.ts +0 -6
  34. package/locales/ar-ly.global.js +0 -34
  35. package/locales/ar-ly.global.min.js +0 -6
  36. package/locales/ar-ly.js +0 -24
  37. package/locales/ar-ma.cjs +0 -28
  38. package/locales/ar-ma.d.ts +0 -6
  39. package/locales/ar-ma.global.js +0 -34
  40. package/locales/ar-ma.global.min.js +0 -6
  41. package/locales/ar-ma.js +0 -24
  42. package/locales/ar-sa.cjs +0 -28
  43. package/locales/ar-sa.d.ts +0 -6
  44. package/locales/ar-sa.global.js +0 -34
  45. package/locales/ar-sa.global.min.js +0 -6
  46. package/locales/ar-sa.js +0 -24
  47. package/locales/ar-tn.cjs +0 -28
  48. package/locales/ar-tn.d.ts +0 -6
  49. package/locales/ar-tn.global.js +0 -34
  50. package/locales/ar-tn.global.min.js +0 -6
  51. package/locales/ar-tn.js +0 -24
  52. package/locales/ar.cjs +0 -28
  53. package/locales/ar.d.ts +0 -6
  54. package/locales/ar.global.js +0 -34
  55. package/locales/ar.global.min.js +0 -6
  56. package/locales/ar.js +0 -24
  57. package/locales/az.cjs +0 -29
  58. package/locales/az.d.ts +0 -6
  59. package/locales/az.global.js +0 -35
  60. package/locales/az.global.min.js +0 -6
  61. package/locales/az.js +0 -25
  62. package/locales/bg.cjs +0 -28
  63. package/locales/bg.d.ts +0 -6
  64. package/locales/bg.global.js +0 -34
  65. package/locales/bg.global.min.js +0 -6
  66. package/locales/bg.js +0 -24
  67. package/locales/bn.cjs +0 -29
  68. package/locales/bn.d.ts +0 -6
  69. package/locales/bn.global.js +0 -35
  70. package/locales/bn.global.min.js +0 -6
  71. package/locales/bn.js +0 -25
  72. package/locales/bs.cjs +0 -29
  73. package/locales/bs.d.ts +0 -6
  74. package/locales/bs.global.js +0 -35
  75. package/locales/bs.global.min.js +0 -6
  76. package/locales/bs.js +0 -25
  77. package/locales/ca.cjs +0 -27
  78. package/locales/ca.d.ts +0 -6
  79. package/locales/ca.global.js +0 -33
  80. package/locales/ca.global.min.js +0 -6
  81. package/locales/ca.js +0 -23
  82. package/locales/cs.cjs +0 -29
  83. package/locales/cs.d.ts +0 -6
  84. package/locales/cs.global.js +0 -35
  85. package/locales/cs.global.min.js +0 -6
  86. package/locales/cs.js +0 -25
  87. package/locales/cy.cjs +0 -27
  88. package/locales/cy.d.ts +0 -6
  89. package/locales/cy.global.js +0 -33
  90. package/locales/cy.global.min.js +0 -6
  91. package/locales/cy.js +0 -23
  92. package/locales/da.cjs +0 -27
  93. package/locales/da.d.ts +0 -6
  94. package/locales/da.global.js +0 -33
  95. package/locales/da.global.min.js +0 -6
  96. package/locales/da.js +0 -23
  97. package/locales/de-at.cjs +0 -62
  98. package/locales/de-at.d.ts +0 -6
  99. package/locales/de-at.global.js +0 -68
  100. package/locales/de-at.global.min.js +0 -6
  101. package/locales/de-at.js +0 -58
  102. package/locales/de.cjs +0 -62
  103. package/locales/de.d.ts +0 -6
  104. package/locales/de.global.js +0 -68
  105. package/locales/de.global.min.js +0 -6
  106. package/locales/de.js +0 -58
  107. package/locales/el.cjs +0 -27
  108. package/locales/el.d.ts +0 -6
  109. package/locales/el.global.js +0 -33
  110. package/locales/el.global.min.js +0 -6
  111. package/locales/el.js +0 -23
  112. package/locales/en-au.cjs +0 -23
  113. package/locales/en-au.d.ts +0 -6
  114. package/locales/en-au.global.js +0 -29
  115. package/locales/en-au.global.min.js +0 -6
  116. package/locales/en-au.js +0 -19
  117. package/locales/en-gb.cjs +0 -23
  118. package/locales/en-gb.d.ts +0 -6
  119. package/locales/en-gb.global.js +0 -29
  120. package/locales/en-gb.global.min.js +0 -6
  121. package/locales/en-gb.js +0 -19
  122. package/locales/en-nz.cjs +0 -23
  123. package/locales/en-nz.d.ts +0 -6
  124. package/locales/en-nz.global.js +0 -29
  125. package/locales/en-nz.global.min.js +0 -6
  126. package/locales/en-nz.js +0 -19
  127. package/locales/eo.cjs +0 -27
  128. package/locales/eo.d.ts +0 -6
  129. package/locales/eo.global.js +0 -33
  130. package/locales/eo.global.min.js +0 -6
  131. package/locales/eo.js +0 -23
  132. package/locales/es-us.cjs +0 -27
  133. package/locales/es-us.d.ts +0 -6
  134. package/locales/es-us.global.js +0 -33
  135. package/locales/es-us.global.min.js +0 -6
  136. package/locales/es-us.js +0 -23
  137. package/locales/es.cjs +0 -45
  138. package/locales/es.d.ts +0 -6
  139. package/locales/es.global.js +0 -51
  140. package/locales/es.global.min.js +0 -6
  141. package/locales/es.js +0 -41
  142. package/locales/et.cjs +0 -29
  143. package/locales/et.d.ts +0 -6
  144. package/locales/et.global.js +0 -35
  145. package/locales/et.global.min.js +0 -6
  146. package/locales/et.js +0 -25
  147. package/locales/eu.cjs +0 -27
  148. package/locales/eu.d.ts +0 -6
  149. package/locales/eu.global.js +0 -33
  150. package/locales/eu.global.min.js +0 -6
  151. package/locales/eu.js +0 -23
  152. package/locales/fa.cjs +0 -30
  153. package/locales/fa.d.ts +0 -6
  154. package/locales/fa.global.js +0 -36
  155. package/locales/fa.global.min.js +0 -6
  156. package/locales/fa.js +0 -26
  157. package/locales/fi.cjs +0 -27
  158. package/locales/fi.d.ts +0 -6
  159. package/locales/fi.global.js +0 -33
  160. package/locales/fi.global.min.js +0 -6
  161. package/locales/fi.js +0 -23
  162. package/locales/fr-ca.cjs +0 -23
  163. package/locales/fr-ca.d.ts +0 -6
  164. package/locales/fr-ca.global.js +0 -29
  165. package/locales/fr-ca.global.min.js +0 -6
  166. package/locales/fr-ca.js +0 -19
  167. package/locales/fr-ch.cjs +0 -27
  168. package/locales/fr-ch.d.ts +0 -6
  169. package/locales/fr-ch.global.js +0 -33
  170. package/locales/fr-ch.global.min.js +0 -6
  171. package/locales/fr-ch.js +0 -23
  172. package/locales/fr.cjs +0 -28
  173. package/locales/fr.d.ts +0 -6
  174. package/locales/fr.global.js +0 -34
  175. package/locales/fr.global.min.js +0 -6
  176. package/locales/fr.js +0 -24
  177. package/locales/gl.cjs +0 -45
  178. package/locales/gl.d.ts +0 -6
  179. package/locales/gl.global.js +0 -51
  180. package/locales/gl.global.min.js +0 -6
  181. package/locales/gl.js +0 -41
  182. package/locales/he.cjs +0 -24
  183. package/locales/he.d.ts +0 -6
  184. package/locales/he.global.js +0 -30
  185. package/locales/he.global.min.js +0 -6
  186. package/locales/he.js +0 -20
  187. package/locales/hi.cjs +0 -29
  188. package/locales/hi.d.ts +0 -6
  189. package/locales/hi.global.js +0 -35
  190. package/locales/hi.global.min.js +0 -6
  191. package/locales/hi.js +0 -25
  192. package/locales/hr.cjs +0 -29
  193. package/locales/hr.d.ts +0 -6
  194. package/locales/hr.global.js +0 -35
  195. package/locales/hr.global.min.js +0 -6
  196. package/locales/hr.js +0 -25
  197. package/locales/hu.cjs +0 -27
  198. package/locales/hu.d.ts +0 -6
  199. package/locales/hu.global.js +0 -33
  200. package/locales/hu.global.min.js +0 -6
  201. package/locales/hu.js +0 -23
  202. package/locales/hy-am.cjs +0 -29
  203. package/locales/hy-am.d.ts +0 -6
  204. package/locales/hy-am.global.js +0 -35
  205. package/locales/hy-am.global.min.js +0 -6
  206. package/locales/hy-am.js +0 -25
  207. package/locales/id.cjs +0 -27
  208. package/locales/id.d.ts +0 -6
  209. package/locales/id.global.js +0 -33
  210. package/locales/id.global.min.js +0 -6
  211. package/locales/id.js +0 -23
  212. package/locales/is.cjs +0 -27
  213. package/locales/is.d.ts +0 -6
  214. package/locales/is.global.js +0 -33
  215. package/locales/is.global.min.js +0 -6
  216. package/locales/is.js +0 -23
  217. package/locales/it.cjs +0 -29
  218. package/locales/it.d.ts +0 -6
  219. package/locales/it.global.js +0 -35
  220. package/locales/it.global.min.js +0 -6
  221. package/locales/it.js +0 -25
  222. package/locales/ja.cjs +0 -25
  223. package/locales/ja.d.ts +0 -6
  224. package/locales/ja.global.js +0 -31
  225. package/locales/ja.global.min.js +0 -6
  226. package/locales/ja.js +0 -21
  227. package/locales/ka.cjs +0 -29
  228. package/locales/ka.d.ts +0 -6
  229. package/locales/ka.global.js +0 -35
  230. package/locales/ka.global.min.js +0 -6
  231. package/locales/ka.js +0 -25
  232. package/locales/kk.cjs +0 -29
  233. package/locales/kk.d.ts +0 -6
  234. package/locales/kk.global.js +0 -35
  235. package/locales/kk.global.min.js +0 -6
  236. package/locales/kk.js +0 -25
  237. package/locales/km.cjs +0 -27
  238. package/locales/km.d.ts +0 -6
  239. package/locales/km.global.js +0 -33
  240. package/locales/km.global.min.js +0 -6
  241. package/locales/km.js +0 -23
  242. package/locales/ko.cjs +0 -23
  243. package/locales/ko.d.ts +0 -6
  244. package/locales/ko.global.js +0 -29
  245. package/locales/ko.global.min.js +0 -6
  246. package/locales/ko.js +0 -19
  247. package/locales/ku.cjs +0 -28
  248. package/locales/ku.d.ts +0 -6
  249. package/locales/ku.global.js +0 -34
  250. package/locales/ku.global.min.js +0 -6
  251. package/locales/ku.js +0 -24
  252. package/locales/lb.cjs +0 -27
  253. package/locales/lb.d.ts +0 -6
  254. package/locales/lb.global.js +0 -33
  255. package/locales/lb.global.min.js +0 -6
  256. package/locales/lb.js +0 -23
  257. package/locales/lt.cjs +0 -27
  258. package/locales/lt.d.ts +0 -6
  259. package/locales/lt.global.js +0 -33
  260. package/locales/lt.global.min.js +0 -6
  261. package/locales/lt.js +0 -23
  262. package/locales/lv.cjs +0 -29
  263. package/locales/lv.d.ts +0 -6
  264. package/locales/lv.global.js +0 -35
  265. package/locales/lv.global.min.js +0 -6
  266. package/locales/lv.js +0 -25
  267. package/locales/mk.cjs +0 -25
  268. package/locales/mk.d.ts +0 -6
  269. package/locales/mk.global.js +0 -31
  270. package/locales/mk.global.min.js +0 -6
  271. package/locales/mk.js +0 -21
  272. package/locales/ms.cjs +0 -29
  273. package/locales/ms.d.ts +0 -6
  274. package/locales/ms.global.js +0 -35
  275. package/locales/ms.global.min.js +0 -6
  276. package/locales/ms.js +0 -25
  277. package/locales/nb.cjs +0 -38
  278. package/locales/nb.d.ts +0 -6
  279. package/locales/nb.global.js +0 -44
  280. package/locales/nb.global.min.js +0 -6
  281. package/locales/nb.js +0 -34
  282. package/locales/ne.cjs +0 -27
  283. package/locales/ne.d.ts +0 -6
  284. package/locales/ne.global.js +0 -33
  285. package/locales/ne.global.min.js +0 -6
  286. package/locales/ne.js +0 -23
  287. package/locales/nl.cjs +0 -26
  288. package/locales/nl.d.ts +0 -6
  289. package/locales/nl.global.js +0 -32
  290. package/locales/nl.global.min.js +0 -6
  291. package/locales/nl.js +0 -22
  292. package/locales/nn.cjs +0 -27
  293. package/locales/nn.d.ts +0 -6
  294. package/locales/nn.global.js +0 -33
  295. package/locales/nn.global.min.js +0 -6
  296. package/locales/nn.js +0 -23
  297. package/locales/pl.cjs +0 -27
  298. package/locales/pl.d.ts +0 -6
  299. package/locales/pl.global.js +0 -33
  300. package/locales/pl.global.min.js +0 -6
  301. package/locales/pl.js +0 -23
  302. package/locales/pt-br.cjs +0 -45
  303. package/locales/pt-br.d.ts +0 -6
  304. package/locales/pt-br.global.js +0 -51
  305. package/locales/pt-br.global.min.js +0 -6
  306. package/locales/pt-br.js +0 -41
  307. package/locales/pt.cjs +0 -27
  308. package/locales/pt.d.ts +0 -6
  309. package/locales/pt.global.js +0 -33
  310. package/locales/pt.global.min.js +0 -6
  311. package/locales/pt.js +0 -23
  312. package/locales/ro.cjs +0 -29
  313. package/locales/ro.d.ts +0 -6
  314. package/locales/ro.global.js +0 -35
  315. package/locales/ro.global.min.js +0 -6
  316. package/locales/ro.js +0 -25
  317. package/locales/ru.cjs +0 -29
  318. package/locales/ru.d.ts +0 -6
  319. package/locales/ru.global.js +0 -35
  320. package/locales/ru.global.min.js +0 -6
  321. package/locales/ru.js +0 -25
  322. package/locales/si-lk.cjs +0 -27
  323. package/locales/si-lk.d.ts +0 -6
  324. package/locales/si-lk.global.js +0 -33
  325. package/locales/si-lk.global.min.js +0 -6
  326. package/locales/si-lk.js +0 -23
  327. package/locales/sk.cjs +0 -29
  328. package/locales/sk.d.ts +0 -6
  329. package/locales/sk.global.js +0 -35
  330. package/locales/sk.global.min.js +0 -6
  331. package/locales/sk.js +0 -25
  332. package/locales/sl.cjs +0 -27
  333. package/locales/sl.d.ts +0 -6
  334. package/locales/sl.global.js +0 -33
  335. package/locales/sl.global.min.js +0 -6
  336. package/locales/sl.js +0 -23
  337. package/locales/sm.cjs +0 -23
  338. package/locales/sm.d.ts +0 -6
  339. package/locales/sm.global.js +0 -29
  340. package/locales/sm.global.min.js +0 -6
  341. package/locales/sm.js +0 -19
  342. package/locales/sq.cjs +0 -29
  343. package/locales/sq.d.ts +0 -6
  344. package/locales/sq.global.js +0 -35
  345. package/locales/sq.global.min.js +0 -6
  346. package/locales/sq.js +0 -25
  347. package/locales/sr-cyrl.cjs +0 -29
  348. package/locales/sr-cyrl.d.ts +0 -6
  349. package/locales/sr-cyrl.global.js +0 -35
  350. package/locales/sr-cyrl.global.min.js +0 -6
  351. package/locales/sr-cyrl.js +0 -25
  352. package/locales/sr.cjs +0 -29
  353. package/locales/sr.d.ts +0 -6
  354. package/locales/sr.global.js +0 -35
  355. package/locales/sr.global.min.js +0 -6
  356. package/locales/sr.js +0 -25
  357. package/locales/sv.cjs +0 -46
  358. package/locales/sv.d.ts +0 -6
  359. package/locales/sv.global.js +0 -52
  360. package/locales/sv.global.min.js +0 -6
  361. package/locales/sv.js +0 -42
  362. package/locales/ta-in.cjs +0 -29
  363. package/locales/ta-in.d.ts +0 -6
  364. package/locales/ta-in.global.js +0 -35
  365. package/locales/ta-in.global.min.js +0 -6
  366. package/locales/ta-in.js +0 -25
  367. package/locales/th.cjs +0 -29
  368. package/locales/th.d.ts +0 -6
  369. package/locales/th.global.js +0 -35
  370. package/locales/th.global.min.js +0 -6
  371. package/locales/th.js +0 -25
  372. package/locales/tr.cjs +0 -27
  373. package/locales/tr.d.ts +0 -6
  374. package/locales/tr.global.js +0 -33
  375. package/locales/tr.global.min.js +0 -6
  376. package/locales/tr.js +0 -23
  377. package/locales/ug.cjs +0 -20
  378. package/locales/ug.d.ts +0 -6
  379. package/locales/ug.global.js +0 -26
  380. package/locales/ug.global.min.js +0 -6
  381. package/locales/ug.js +0 -16
  382. package/locales/uk.cjs +0 -29
  383. package/locales/uk.d.ts +0 -6
  384. package/locales/uk.global.js +0 -35
  385. package/locales/uk.global.min.js +0 -6
  386. package/locales/uk.js +0 -25
  387. package/locales/uz-cy.cjs +0 -28
  388. package/locales/uz-cy.d.ts +0 -6
  389. package/locales/uz-cy.global.js +0 -34
  390. package/locales/uz-cy.global.min.js +0 -6
  391. package/locales/uz-cy.js +0 -24
  392. package/locales/uz.cjs +0 -28
  393. package/locales/uz.d.ts +0 -6
  394. package/locales/uz.global.js +0 -34
  395. package/locales/uz.global.min.js +0 -6
  396. package/locales/uz.js +0 -24
  397. package/locales/vi.cjs +0 -29
  398. package/locales/vi.d.ts +0 -6
  399. package/locales/vi.global.js +0 -35
  400. package/locales/vi.global.min.js +0 -6
  401. package/locales/vi.js +0 -25
  402. package/locales/zh-cn.cjs +0 -30
  403. package/locales/zh-cn.d.ts +0 -6
  404. package/locales/zh-cn.global.js +0 -36
  405. package/locales/zh-cn.global.min.js +0 -6
  406. package/locales/zh-cn.js +0 -26
  407. package/locales/zh-tw.cjs +0 -23
  408. package/locales/zh-tw.d.ts +0 -6
  409. package/locales/zh-tw.global.js +0 -29
  410. package/locales/zh-tw.global.min.js +0 -6
  411. package/locales/zh-tw.js +0 -19
  412. package/locales-all.cjs +0 -89
  413. package/locales-all.d.ts +0 -6
  414. package/locales-all.global.js +0 -1927
  415. package/locales-all.global.min.js +0 -6
  416. package/locales-all.js +0 -85
  417. package/preact.cjs +0 -24
  418. package/preact.d.ts +0 -16
  419. package/preact.js +0 -3
@@ -1,2729 +0,0 @@
1
- import * as preact from 'preact';
2
- import { ComponentChildren, ComponentType, Context, Ref, Component, JSX, ComponentChild, FunctionalComponent, createElement, RefObject } from './preact.js';
3
- import { ViewApi as ViewApi$1 } from './index.js';
4
-
5
- type DurationInput = DurationObjectInput | string | number;
6
- interface DurationObjectInput {
7
- years?: number;
8
- year?: number;
9
- months?: number;
10
- month?: number;
11
- weeks?: number;
12
- week?: number;
13
- days?: number;
14
- day?: number;
15
- hours?: number;
16
- hour?: number;
17
- minutes?: number;
18
- minute?: number;
19
- seconds?: number;
20
- second?: number;
21
- milliseconds?: number;
22
- millisecond?: number;
23
- ms?: number;
24
- }
25
- interface Duration {
26
- years: number;
27
- months: number;
28
- days: number;
29
- milliseconds: number;
30
- specifiedWeeks?: boolean;
31
- }
32
- declare function createDuration(input: DurationInput, unit?: string): Duration | null;
33
- declare function asCleanDays(dur: Duration): number;
34
- declare function addDurations(d0: Duration, d1: Duration): {
35
- years: number;
36
- months: number;
37
- days: number;
38
- milliseconds: number;
39
- };
40
- declare function multiplyDuration(d: Duration, n: number): {
41
- years: number;
42
- months: number;
43
- days: number;
44
- milliseconds: number;
45
- };
46
- declare function asRoughMinutes(dur: Duration): number;
47
- declare function asRoughSeconds(dur: Duration): number;
48
- declare function asRoughMs(dur: Duration): number;
49
- declare function wholeDivideDurations(numerator: Duration, denominator: Duration): number;
50
- declare function greatestDurationDenominator(dur: Duration): {
51
- unit: string;
52
- value: number;
53
- };
54
-
55
- type DateMarker = Date;
56
- declare function addWeeks(m: DateMarker, n: number): Date;
57
- declare function addDays(m: DateMarker, n: number): Date;
58
- declare function addMs(m: DateMarker, n: number): Date;
59
- declare function diffWeeks(m0: any, m1: any): number;
60
- declare function diffDays(m0: any, m1: any): number;
61
- declare function diffDayAndTime(m0: DateMarker, m1: DateMarker): Duration;
62
- declare function diffWholeWeeks(m0: DateMarker, m1: DateMarker): number;
63
- declare function diffWholeDays(m0: DateMarker, m1: DateMarker): number;
64
- declare function startOfDay(m: DateMarker): DateMarker;
65
- declare function isValidDate(m: DateMarker): boolean;
66
-
67
- interface CalendarSystem {
68
- getMarkerYear(d: DateMarker): number;
69
- getMarkerMonth(d: DateMarker): number;
70
- getMarkerDay(d: DateMarker): number;
71
- arrayToMarker(arr: number[]): DateMarker;
72
- markerToArray(d: DateMarker): number[];
73
- }
74
-
75
- type LocaleCodeArg = string | string[];
76
- type LocaleSingularArg = LocaleCodeArg | LocaleInput;
77
- interface Locale {
78
- codeArg: LocaleCodeArg;
79
- codes: string[];
80
- week: {
81
- dow: number;
82
- doy: number;
83
- };
84
- simpleNumberFormat: Intl.NumberFormat;
85
- options: CalendarOptionsRefined;
86
- }
87
- interface LocaleInput extends CalendarOptions {
88
- code: string;
89
- }
90
- type LocaleInputMap = {
91
- [code: string]: LocaleInput;
92
- };
93
- interface RawLocaleInfo {
94
- map: LocaleInputMap;
95
- defaultCode: string;
96
- }
97
-
98
- interface ZonedMarker {
99
- marker: DateMarker;
100
- timeZoneOffset: number;
101
- }
102
- interface ExpandedZonedMarker extends ZonedMarker {
103
- array: number[];
104
- year: number;
105
- month: number;
106
- day: number;
107
- hour: number;
108
- minute: number;
109
- second: number;
110
- millisecond: number;
111
- }
112
-
113
- interface VerboseFormattingArg {
114
- date: ExpandedZonedMarker;
115
- start: ExpandedZonedMarker;
116
- end?: ExpandedZonedMarker;
117
- timeZone: string;
118
- localeCodes: string[];
119
- defaultSeparator: string;
120
- }
121
- type CmdFormatterFunc = (cmd: string, arg: VerboseFormattingArg) => string;
122
- interface DateFormattingContext {
123
- timeZone: string;
124
- locale: Locale;
125
- calendarSystem: CalendarSystem;
126
- computeWeekNumber: (d: DateMarker) => number;
127
- weekText: string;
128
- weekTextLong: string;
129
- cmdFormatter?: CmdFormatterFunc;
130
- defaultSeparator: string;
131
- }
132
- interface DateFormatter {
133
- format(date: ZonedMarker, context: DateFormattingContext): string;
134
- formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext, betterDefaultSeparator?: string): string;
135
- }
136
-
137
- interface NativeFormatterOptions extends Intl.DateTimeFormatOptions {
138
- week?: 'long' | 'short' | 'narrow' | 'numeric';
139
- meridiem?: 'lowercase' | 'short' | 'narrow' | boolean;
140
- omitZeroMinute?: boolean;
141
- omitCommas?: boolean;
142
- separator?: string;
143
- }
144
-
145
- type FuncFormatterFunc = (arg: VerboseFormattingArg) => string;
146
-
147
- type FormatterInput = NativeFormatterOptions | string | FuncFormatterFunc;
148
- declare function createFormatter(input: FormatterInput): DateFormatter;
149
-
150
- declare function guid(): string;
151
- declare function disableCursor(): void;
152
- declare function enableCursor(): void;
153
- declare function preventSelection(el: HTMLElement): void;
154
- declare function allowSelection(el: HTMLElement): void;
155
- declare function preventContextMenu(el: HTMLElement): void;
156
- declare function allowContextMenu(el: HTMLElement): void;
157
- interface OrderSpec<Subject> {
158
- field?: string;
159
- order?: number;
160
- func?: FieldSpecInputFunc<Subject>;
161
- }
162
- type FieldSpecInput<Subject> = string | string[] | FieldSpecInputFunc<Subject> | FieldSpecInputFunc<Subject>[];
163
- type FieldSpecInputFunc<Subject> = (a: Subject, b: Subject) => number;
164
- declare function parseFieldSpecs<Subject>(input: FieldSpecInput<Subject>): OrderSpec<Subject>[];
165
- declare function compareByFieldSpecs<Subject>(obj0: Subject, obj1: Subject, fieldSpecs: OrderSpec<Subject>[]): number;
166
- declare function flexibleCompare(a: any, b: any): number;
167
- declare function padStart(val: any, len: any): string;
168
- declare function compareNumbers(a: any, b: any): number;
169
- declare function isInt(n: any): boolean;
170
-
171
- interface ViewApi {
172
- calendar: CalendarApi;
173
- type: string;
174
- title: string;
175
- activeStart: Date;
176
- activeEnd: Date;
177
- currentStart: Date;
178
- currentEnd: Date;
179
- getOption(name: string): any;
180
- }
181
-
182
- interface EventSourceApi {
183
- id: string;
184
- url: string;
185
- format: string;
186
- remove(): void;
187
- refetch(): void;
188
- }
189
-
190
- declare abstract class NamedTimeZoneImpl {
191
- timeZoneName: string;
192
- constructor(timeZoneName: string);
193
- abstract offsetForArray(a: number[]): number;
194
- abstract timestampToArray(ms: number): number[];
195
- }
196
- type NamedTimeZoneImplClass = {
197
- new (timeZoneName: string): NamedTimeZoneImpl;
198
- };
199
-
200
- type WeekNumberCalculation = 'local' | 'ISO' | ((m: Date) => number);
201
- interface DateEnvSettings {
202
- timeZone: string;
203
- namedTimeZoneImpl?: NamedTimeZoneImplClass;
204
- calendarSystem: string;
205
- locale: Locale;
206
- weekNumberCalculation?: WeekNumberCalculation;
207
- firstDay?: number;
208
- weekText?: string;
209
- weekTextLong?: string;
210
- cmdFormatter?: CmdFormatterFunc;
211
- defaultSeparator?: string;
212
- }
213
- type DateInput = Date | string | number | number[];
214
- interface DateMarkerMeta {
215
- marker: DateMarker;
216
- isTimeUnspecified: boolean;
217
- forcedTzo: number | null;
218
- }
219
- declare class DateEnv {
220
- timeZone: string;
221
- namedTimeZoneImpl: NamedTimeZoneImpl;
222
- canComputeOffset: boolean;
223
- calendarSystem: CalendarSystem;
224
- locale: Locale;
225
- weekDow: number;
226
- weekDoy: number;
227
- weekNumberFunc: any;
228
- weekText: string;
229
- weekTextLong: string;
230
- cmdFormatter?: CmdFormatterFunc;
231
- defaultSeparator: string;
232
- constructor(settings: DateEnvSettings);
233
- createMarker(input: DateInput): DateMarker;
234
- createNowMarker(): DateMarker;
235
- createMarkerMeta(input: DateInput): DateMarkerMeta;
236
- parse(s: string): {
237
- marker: Date;
238
- isTimeUnspecified: boolean;
239
- forcedTzo: any;
240
- };
241
- getYear(marker: DateMarker): number;
242
- getMonth(marker: DateMarker): number;
243
- getDay(marker: DateMarker): number;
244
- add(marker: DateMarker, dur: Duration): DateMarker;
245
- subtract(marker: DateMarker, dur: Duration): DateMarker;
246
- addYears(marker: DateMarker, n: number): Date;
247
- addMonths(marker: DateMarker, n: number): Date;
248
- diffWholeYears(m0: DateMarker, m1: DateMarker): number;
249
- diffWholeMonths(m0: DateMarker, m1: DateMarker): number;
250
- greatestWholeUnit(m0: DateMarker, m1: DateMarker): {
251
- unit: string;
252
- value: number;
253
- };
254
- countDurationsBetween(m0: DateMarker, m1: DateMarker, d: Duration): number;
255
- startOf(m: DateMarker, unit: string): Date;
256
- startOfYear(m: DateMarker): DateMarker;
257
- startOfMonth(m: DateMarker): DateMarker;
258
- startOfWeek(m: DateMarker): DateMarker;
259
- computeWeekNumber(marker: DateMarker): number;
260
- format(marker: DateMarker, formatter: DateFormatter, dateOptions?: {
261
- forcedTzo?: number;
262
- }): string;
263
- formatRange(start: DateMarker, end: DateMarker, formatter: DateFormatter, dateOptions?: {
264
- forcedStartTzo?: number;
265
- forcedEndTzo?: number;
266
- isEndExclusive?: boolean;
267
- defaultSeparator?: string;
268
- }): string;
269
- formatIso(marker: DateMarker, extraOptions?: any): string;
270
- timestampToMarker(ms: number): Date;
271
- offsetForMarker(m: DateMarker): number;
272
- toDate(m: DateMarker, forcedTzo?: number): Date;
273
- }
274
-
275
- interface DateRangeInput {
276
- start?: DateInput;
277
- end?: DateInput;
278
- }
279
- interface OpenDateRange {
280
- start: DateMarker | null;
281
- end: DateMarker | null;
282
- }
283
- interface DateRange {
284
- start: DateMarker;
285
- end: DateMarker;
286
- }
287
- declare function intersectRanges(range0: OpenDateRange, range1: OpenDateRange): OpenDateRange;
288
- declare function rangesEqual(range0: OpenDateRange, range1: OpenDateRange): boolean;
289
- declare function rangesIntersect(range0: OpenDateRange, range1: OpenDateRange): boolean;
290
- declare function rangeContainsRange(outerRange: OpenDateRange, innerRange: OpenDateRange): boolean;
291
- declare function rangeContainsMarker(range: OpenDateRange, date: DateMarker | number): boolean;
292
-
293
- interface EventInstance {
294
- instanceId: string;
295
- defId: string;
296
- range: DateRange;
297
- forcedStartTzo: number | null;
298
- forcedEndTzo: number | null;
299
- }
300
- type EventInstanceHash = {
301
- [instanceId: string]: EventInstance;
302
- };
303
- declare function createEventInstance(defId: string, range: DateRange, forcedStartTzo?: number, forcedEndTzo?: number): EventInstance;
304
-
305
- interface PointerDragEvent {
306
- origEvent: UIEvent;
307
- isTouch: boolean;
308
- subjectEl: EventTarget;
309
- pageX: number;
310
- pageY: number;
311
- deltaX: number;
312
- deltaY: number;
313
- }
314
-
315
- interface EventMutation {
316
- datesDelta?: Duration;
317
- startDelta?: Duration;
318
- endDelta?: Duration;
319
- standardProps?: any;
320
- extendedProps?: any;
321
- }
322
- declare function applyMutationToEventStore(eventStore: EventStore, eventConfigBase: EventUiHash, mutation: EventMutation, context: CalendarContext): EventStore;
323
- type eventDefMutationApplier = (eventDef: EventDef, mutation: EventMutation, context: CalendarContext) => void;
324
-
325
- declare class EventSourceImpl implements EventSourceApi {
326
- private context;
327
- internalEventSource: EventSource<any>;
328
- constructor(context: CalendarContext, internalEventSource: EventSource<any>);
329
- remove(): void;
330
- refetch(): void;
331
- get id(): string;
332
- get url(): string;
333
- get format(): string;
334
- }
335
-
336
- declare class EventImpl implements EventApi {
337
- _context: CalendarContext;
338
- _def: EventDef;
339
- _instance: EventInstance | null;
340
- constructor(context: CalendarContext, def: EventDef, instance?: EventInstance);
341
- setProp(name: string, val: any): void;
342
- setExtendedProp(name: string, val: any): void;
343
- setStart(startInput: DateInput, options?: {
344
- granularity?: string;
345
- maintainDuration?: boolean;
346
- }): void;
347
- setEnd(endInput: DateInput | null, options?: {
348
- granularity?: string;
349
- }): void;
350
- setDates(startInput: DateInput, endInput: DateInput | null, options?: {
351
- allDay?: boolean;
352
- granularity?: string;
353
- }): void;
354
- moveStart(deltaInput: DurationInput): void;
355
- moveEnd(deltaInput: DurationInput): void;
356
- moveDates(deltaInput: DurationInput): void;
357
- setAllDay(allDay: boolean, options?: {
358
- maintainDuration?: boolean;
359
- }): void;
360
- formatRange(formatInput: FormatterInput): string;
361
- mutate(mutation: EventMutation): void;
362
- remove(): void;
363
- get source(): EventSourceImpl | null;
364
- get start(): Date | null;
365
- get end(): Date | null;
366
- get startStr(): string;
367
- get endStr(): string;
368
- get id(): string;
369
- get groupId(): string;
370
- get allDay(): boolean;
371
- get title(): string;
372
- get url(): string;
373
- get display(): string;
374
- get startEditable(): boolean;
375
- get durationEditable(): boolean;
376
- get constraint(): string | EventStore;
377
- get overlap(): boolean;
378
- get allow(): AllowFunc;
379
- get backgroundColor(): string;
380
- get borderColor(): string;
381
- get textColor(): string;
382
- get classNames(): string[];
383
- get extendedProps(): Dictionary;
384
- toPlainObject(settings?: {
385
- collapseExtendedProps?: boolean;
386
- collapseColor?: boolean;
387
- }): Dictionary;
388
- toJSON(): Dictionary;
389
- }
390
- declare function buildEventApis(eventStore: EventStore, context: CalendarContext, excludeInstance?: EventInstance): EventImpl[];
391
-
392
- interface DateProfile {
393
- currentDate: DateMarker;
394
- isValid: boolean;
395
- validRange: OpenDateRange;
396
- renderRange: DateRange;
397
- activeRange: DateRange | null;
398
- currentRange: DateRange;
399
- currentRangeUnit: string;
400
- isRangeAllDay: boolean;
401
- dateIncrement: Duration;
402
- slotMinTime: Duration;
403
- slotMaxTime: Duration;
404
- }
405
- interface DateProfileGeneratorProps extends DateProfileOptions {
406
- dateProfileGeneratorClass: DateProfileGeneratorClass;
407
- duration: Duration;
408
- durationUnit: string;
409
- usesMinMaxTime: boolean;
410
- dateEnv: DateEnv;
411
- calendarApi: CalendarImpl;
412
- }
413
- interface DateProfileOptions {
414
- slotMinTime: Duration;
415
- slotMaxTime: Duration;
416
- showNonCurrentDates?: boolean;
417
- dayCount?: number;
418
- dateAlignment?: string;
419
- dateIncrement?: Duration;
420
- hiddenDays?: number[];
421
- weekends?: boolean;
422
- nowInput?: DateInput | (() => DateInput);
423
- validRangeInput?: DateRangeInput | ((this: CalendarImpl, nowDate: Date) => DateRangeInput);
424
- visibleRangeInput?: DateRangeInput | ((this: CalendarImpl, nowDate: Date) => DateRangeInput);
425
- fixedWeekCount?: boolean;
426
- }
427
- type DateProfileGeneratorClass = {
428
- new (props: DateProfileGeneratorProps): DateProfileGenerator;
429
- };
430
- declare class DateProfileGenerator {
431
- protected props: DateProfileGeneratorProps;
432
- nowDate: DateMarker;
433
- isHiddenDayHash: boolean[];
434
- constructor(props: DateProfileGeneratorProps);
435
- buildPrev(currentDateProfile: DateProfile, currentDate: DateMarker, forceToValid?: boolean): DateProfile;
436
- buildNext(currentDateProfile: DateProfile, currentDate: DateMarker, forceToValid?: boolean): DateProfile;
437
- build(currentDate: DateMarker, direction?: any, forceToValid?: boolean): DateProfile;
438
- buildValidRange(): OpenDateRange;
439
- buildCurrentRangeInfo(date: DateMarker, direction: any): {
440
- duration: any;
441
- unit: any;
442
- range: any;
443
- };
444
- getFallbackDuration(): Duration;
445
- adjustActiveRange(range: DateRange): {
446
- start: Date;
447
- end: Date;
448
- };
449
- buildRangeFromDuration(date: DateMarker, direction: any, duration: Duration, unit: any): any;
450
- buildRangeFromDayCount(date: DateMarker, direction: any, dayCount: any): {
451
- start: Date;
452
- end: Date;
453
- };
454
- buildCustomVisibleRange(date: DateMarker): DateRange;
455
- buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange;
456
- buildDateIncrement(fallback: any): Duration;
457
- refineRange(rangeInput: DateRangeInput | undefined): DateRange | null;
458
- initHiddenDays(): void;
459
- trimHiddenDays(range: DateRange): DateRange | null;
460
- isHiddenDay(day: any): boolean;
461
- skipHiddenDays(date: DateMarker, inc?: number, isExclusive?: boolean): Date;
462
- }
463
-
464
- interface EventInteractionState {
465
- affectedEvents: EventStore;
466
- mutatedEvents: EventStore;
467
- isEvent: boolean;
468
- }
469
-
470
- interface ViewProps {
471
- dateProfile: DateProfile;
472
- businessHours: EventStore;
473
- eventStore: EventStore;
474
- eventUiBases: EventUiHash;
475
- dateSelection: DateSpan | null;
476
- eventSelection: string;
477
- eventDrag: EventInteractionState | null;
478
- eventResize: EventInteractionState | null;
479
- forPrint: boolean;
480
- labelId: string | undefined;
481
- labelStr: string | undefined;
482
- }
483
- declare function sliceEvents(props: ViewProps & {
484
- dateProfile: DateProfile;
485
- nextDayThreshold: Duration;
486
- }, allDay?: boolean): EventRenderRange[];
487
-
488
- type ClassNamesInput = string | string[];
489
- type Falsy = false | null | undefined;
490
- declare function joinClassNames(...args: (string | number | Falsy)[]): string;
491
- declare function parseClassNames(raw: ClassNamesInput): string[];
492
- declare function fracToCssDim(frac: number): string;
493
-
494
- type MountArg<ContentArg> = ContentArg & {
495
- el: HTMLElement;
496
- };
497
- type DidMountHandler<TheMountArg extends {
498
- el: HTMLElement;
499
- }> = (mountArg: TheMountArg) => void;
500
- type WillUnmountHandler<TheMountArg extends {
501
- el: HTMLElement;
502
- }> = (mountArg: TheMountArg) => void;
503
- interface ObjCustomContent {
504
- html: string;
505
- domNodes: any[];
506
- }
507
- type CustomContent = ComponentChildren | ObjCustomContent;
508
- type CustomContentGenerator<RenderProps> = CustomContent | ((renderProps: RenderProps, createElement: any) => (CustomContent | true));
509
- type ClassNamesGenerator<RenderProps> = ClassNamesInput | ((renderProps: RenderProps) => ClassNamesInput);
510
-
511
- type ViewComponentType = ComponentType<ViewProps>;
512
- type ViewConfigInput = ViewComponentType | ViewOptions;
513
- type ViewConfigInputHash = {
514
- [viewType: string]: ViewConfigInput;
515
- };
516
- interface SpecificViewContentArg extends ViewProps {
517
- nextDayThreshold: Duration;
518
- }
519
- type SpecificViewMountArg = MountArg<SpecificViewContentArg>;
520
-
521
- interface ViewSpec {
522
- type: string;
523
- component: ViewComponentType;
524
- duration: Duration;
525
- durationUnit: string;
526
- singleUnit: string;
527
- optionDefaults: ViewOptions;
528
- optionOverrides: ViewOptions;
529
- buttonTextOverride: string;
530
- buttonTextDefault: string;
531
- buttonTitleOverride: string | ((...args: any[]) => string);
532
- buttonTitleDefault: string | ((...args: any[]) => string);
533
- }
534
- type ViewSpecHash = {
535
- [viewType: string]: ViewSpec;
536
- };
537
-
538
- interface HandlerFuncTypeHash {
539
- [eventName: string]: (...args: any[]) => any;
540
- }
541
- declare class Emitter<HandlerFuncs extends HandlerFuncTypeHash> {
542
- private handlers;
543
- private options;
544
- private thisContext;
545
- setThisContext(thisContext: any): void;
546
- setOptions(options: Partial<HandlerFuncs>): void;
547
- on<Prop extends keyof HandlerFuncs>(type: Prop, handler: HandlerFuncs[Prop]): void;
548
- off<Prop extends keyof HandlerFuncs>(type: Prop, handler?: HandlerFuncs[Prop]): void;
549
- trigger<Prop extends keyof HandlerFuncs>(type: Prop, ...args: Parameters<HandlerFuncs[Prop]>): void;
550
- hasHandlers(type: keyof HandlerFuncs): boolean;
551
- }
552
-
553
- declare class ViewImpl implements ViewApi {
554
- type: string;
555
- private getCurrentData;
556
- private dateEnv;
557
- constructor(type: string, getCurrentData: () => CalendarData, dateEnv: DateEnv);
558
- get calendar(): CalendarApi;
559
- get title(): string;
560
- get activeStart(): Date;
561
- get activeEnd(): Date;
562
- get currentStart(): Date;
563
- get currentEnd(): Date;
564
- getOption(name: string): any;
565
- }
566
-
567
- declare class Theme {
568
- classes: any;
569
- iconClasses: any;
570
- rtlIconClasses: any;
571
- baseIconClass: string;
572
- iconOverrideOption: any;
573
- iconOverrideCustomButtonOption: any;
574
- iconOverridePrefix: string;
575
- constructor(calendarOptions: CalendarOptionsRefined);
576
- setIconOverride(iconOverrideHash: any): void;
577
- applyIconOverridePrefix(className: string): string;
578
- getClassName(key: string): any;
579
- getIconClass(buttonName: string, isRtl?: boolean): string;
580
- getCustomButtonIconClass(customButtonProps: any): string;
581
- }
582
- type ThemeClass = {
583
- new (calendarOptions: any): Theme;
584
- };
585
-
586
- interface ToolbarModel {
587
- sectionWidgets: {
588
- start: ToolbarWidget[][];
589
- center: ToolbarWidget[][];
590
- end: ToolbarWidget[][];
591
- };
592
- viewsWithButtons: string[];
593
- hasTitle: boolean;
594
- }
595
- interface ToolbarWidget {
596
- buttonName: string;
597
- buttonClick?: any;
598
- buttonIcon?: any;
599
- buttonText?: any;
600
- buttonHint?: string | ((navUnit: string) => string);
601
- isView?: boolean;
602
- }
603
- interface ToolbarInput {
604
- left?: string;
605
- center?: string;
606
- right?: string;
607
- start?: string;
608
- end?: string;
609
- }
610
- interface CustomButtonInput {
611
- text?: string;
612
- hint?: string;
613
- icon?: string;
614
- themeIcon?: string;
615
- bootstrapFontAwesome?: string;
616
- click?(ev: MouseEvent, element: HTMLElement): void;
617
- }
618
- interface ButtonIconsInput {
619
- prev?: string;
620
- next?: string;
621
- prevYear?: string;
622
- nextYear?: string;
623
- today?: string;
624
- [viewOrCustomButton: string]: string | undefined;
625
- }
626
- interface ButtonTextCompoundInput {
627
- prev?: string;
628
- next?: string;
629
- prevYear?: string;
630
- nextYear?: string;
631
- today?: string;
632
- month?: string;
633
- week?: string;
634
- day?: string;
635
- [viewOrCustomButton: string]: string | undefined;
636
- }
637
- interface ButtonHintCompoundInput {
638
- prev?: string | ((...args: any[]) => string);
639
- next?: string | ((...args: any[]) => string);
640
- prevYear?: string | ((...args: any[]) => string);
641
- nextYear?: string | ((...args: any[]) => string);
642
- today?: string | ((...args: any[]) => string);
643
- month?: string | ((...args: any[]) => string);
644
- week?: string | ((...args: any[]) => string);
645
- day?: string | ((...args: any[]) => string);
646
- [viewOrCustomButton: string]: string | ((...args: any[]) => string) | undefined;
647
- }
648
-
649
- interface CalendarDataManagerState {
650
- dynamicOptionOverrides: CalendarOptions;
651
- currentViewType: string;
652
- currentDate: DateMarker;
653
- dateProfile: DateProfile;
654
- businessHours: EventStore;
655
- eventSources: EventSourceHash;
656
- eventUiBases: EventUiHash;
657
- eventStore: EventStore;
658
- renderableEventStore: EventStore;
659
- dateSelection: DateSpan | null;
660
- eventSelection: string;
661
- eventDrag: EventInteractionState | null;
662
- eventResize: EventInteractionState | null;
663
- selectionConfig: EventUi;
664
- }
665
- interface CalendarOptionsData {
666
- localeDefaults: CalendarOptions;
667
- calendarOptions: CalendarOptionsRefined;
668
- toolbarConfig: {
669
- [toolbarName: string]: ToolbarModel;
670
- };
671
- availableRawLocales: any;
672
- dateEnv: DateEnv;
673
- theme: Theme;
674
- pluginHooks: PluginHooks;
675
- viewSpecs: ViewSpecHash;
676
- }
677
- interface CalendarCurrentViewData {
678
- viewSpec: ViewSpec;
679
- options: ViewOptionsRefined;
680
- viewApi: ViewImpl;
681
- dateProfileGenerator: DateProfileGenerator;
682
- }
683
- type CalendarDataBase = CalendarOptionsData & CalendarCurrentViewData & CalendarDataManagerState;
684
- interface CalendarData extends CalendarDataBase {
685
- viewTitle: string;
686
- calendarApi: CalendarImpl;
687
- dispatch: (action: Action) => void;
688
- emitter: Emitter<CalendarListeners>;
689
- getCurrentData(): CalendarData;
690
- }
691
-
692
- declare class CalendarImpl implements CalendarApi {
693
- currentDataManager?: CalendarDataManager;
694
- getCurrentData(): CalendarData;
695
- dispatch(action: Action): void;
696
- get view(): ViewImpl;
697
- batchRendering(callback: () => void): void;
698
- updateSize(): void;
699
- setOption<OptionName extends keyof CalendarOptions>(name: OptionName, val: CalendarOptions[OptionName]): void;
700
- getOption<OptionName extends keyof CalendarOptions>(name: OptionName): CalendarOptions[OptionName];
701
- getAvailableLocaleCodes(): string[];
702
- on<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, handler: CalendarListeners[ListenerName]): void;
703
- off<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, handler: CalendarListeners[ListenerName]): void;
704
- trigger<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, ...args: Parameters<CalendarListeners[ListenerName]>): void;
705
- changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void;
706
- zoomTo(dateMarker: Date, viewType?: string): void;
707
- private getUnitViewSpec;
708
- prev(): void;
709
- next(): void;
710
- prevYear(): void;
711
- nextYear(): void;
712
- today(): void;
713
- gotoDate(zonedDateInput: DateInput): void;
714
- incrementDate(deltaInput: DurationInput): void;
715
- getDate(): Date;
716
- formatDate(d: DateInput, formatter: FormatterInput): string;
717
- formatRange(d0: DateInput, d1: DateInput, settings: any): string;
718
- formatIso(d: DateInput, omitTime?: boolean): string;
719
- select(dateOrObj: DateInput | any, endDate?: DateInput): void;
720
- unselect(pev?: PointerDragEvent): void;
721
- addEvent(eventInput: EventInput, sourceInput?: EventSourceImpl | string | boolean): EventImpl | null;
722
- private triggerEventAdd;
723
- getEventById(id: string): EventImpl | null;
724
- getEvents(): EventImpl[];
725
- removeAllEvents(): void;
726
- getEventSources(): EventSourceImpl[];
727
- getEventSourceById(id: string): EventSourceImpl | null;
728
- addEventSource(sourceInput: EventSourceInput): EventSourceImpl;
729
- removeAllEventSources(): void;
730
- refetchEvents(): void;
731
- scrollToTime(timeInput: DurationInput): void;
732
- }
733
-
734
- type EventSourceSuccessResponseHandler = (this: CalendarImpl, rawData: any, response: any) => EventInput[] | void;
735
- type EventSourceErrorResponseHandler = (error: Error) => void;
736
- interface EventSource<Meta> {
737
- _raw: any;
738
- sourceId: string;
739
- sourceDefId: number;
740
- meta: Meta;
741
- publicId: string;
742
- isFetching: boolean;
743
- latestFetchId: string;
744
- fetchRange: DateRange | null;
745
- defaultAllDay: boolean | null;
746
- eventDataTransform: EventInputTransformer;
747
- ui: EventUi;
748
- success: EventSourceSuccessResponseHandler | null;
749
- failure: EventSourceErrorResponseHandler | null;
750
- extendedProps: Dictionary;
751
- }
752
- type EventSourceHash = {
753
- [sourceId: string]: EventSource<any>;
754
- };
755
- interface EventSourceFetcherRes {
756
- rawEvents: EventInput[];
757
- response?: Response;
758
- }
759
- type EventSourceFetcher<Meta> = (arg: {
760
- eventSource: EventSource<Meta>;
761
- range: DateRange;
762
- isRefetch: boolean;
763
- context: CalendarContext;
764
- }, successCallback: (res: EventSourceFetcherRes) => void, errorCallback: (error: Error) => void) => void;
765
-
766
- type Action = {
767
- type: 'NOTHING';
768
- } | // hack
769
- {
770
- type: 'SET_OPTION';
771
- optionName: string;
772
- rawOptionValue: any;
773
- } | // TODO: how to link this to CalendarOptions?
774
- {
775
- type: 'PREV';
776
- } | {
777
- type: 'NEXT';
778
- } | {
779
- type: 'CHANGE_DATE';
780
- dateMarker: DateMarker;
781
- } | {
782
- type: 'CHANGE_VIEW_TYPE';
783
- viewType: string;
784
- dateMarker?: DateMarker;
785
- } | {
786
- type: 'SELECT_DATES';
787
- selection: DateSpan;
788
- } | {
789
- type: 'UNSELECT_DATES';
790
- } | {
791
- type: 'SELECT_EVENT';
792
- eventInstanceId: string;
793
- } | {
794
- type: 'UNSELECT_EVENT';
795
- } | {
796
- type: 'SET_EVENT_DRAG';
797
- state: EventInteractionState;
798
- } | {
799
- type: 'UNSET_EVENT_DRAG';
800
- } | {
801
- type: 'SET_EVENT_RESIZE';
802
- state: EventInteractionState;
803
- } | {
804
- type: 'UNSET_EVENT_RESIZE';
805
- } | {
806
- type: 'ADD_EVENT_SOURCES';
807
- sources: EventSource<any>[];
808
- } | {
809
- type: 'REMOVE_EVENT_SOURCE';
810
- sourceId: string;
811
- } | {
812
- type: 'REMOVE_ALL_EVENT_SOURCES';
813
- } | {
814
- type: 'FETCH_EVENT_SOURCES';
815
- sourceIds?: string[];
816
- isRefetch?: boolean;
817
- } | // if no sourceIds, fetch all
818
- {
819
- type: 'RECEIVE_EVENTS';
820
- sourceId: string;
821
- fetchId: string;
822
- fetchRange: DateRange | null;
823
- rawEvents: EventInput[];
824
- } | {
825
- type: 'RECEIVE_EVENT_ERROR';
826
- sourceId: string;
827
- fetchId: string;
828
- fetchRange: DateRange | null;
829
- error: Error;
830
- } | // need all these?
831
- {
832
- type: 'ADD_EVENTS';
833
- eventStore: EventStore;
834
- } | {
835
- type: 'RESET_EVENTS';
836
- eventStore: EventStore;
837
- } | {
838
- type: 'RESET_RAW_EVENTS';
839
- rawEvents: EventInput[];
840
- sourceId: string;
841
- } | {
842
- type: 'MERGE_EVENTS';
843
- eventStore: EventStore;
844
- } | {
845
- type: 'REMOVE_EVENTS';
846
- eventStore: EventStore;
847
- } | {
848
- type: 'REMOVE_ALL_EVENTS';
849
- };
850
-
851
- interface CalendarDataManagerProps {
852
- optionOverrides: CalendarOptions;
853
- calendarApi: CalendarImpl;
854
- onAction?: (action: Action) => void;
855
- onData?: (data: CalendarData) => void;
856
- }
857
- type ReducerFunc = (// TODO: rename to CalendarDataInjector. move view-props-manip hook here as well?
858
- currentState: Dictionary | null, action: Action | null, context: CalendarContext & CalendarDataManagerState) => Dictionary;
859
- declare class CalendarDataManager {
860
- private computeCurrentViewData;
861
- private organizeRawLocales;
862
- private buildLocale;
863
- private buildPluginHooks;
864
- private buildDateEnv;
865
- private buildTheme;
866
- private parseToolbars;
867
- private buildViewSpecs;
868
- private buildDateProfileGenerator;
869
- private buildViewApi;
870
- private buildViewUiProps;
871
- private buildEventUiBySource;
872
- private buildEventUiBases;
873
- private parseContextBusinessHours;
874
- private buildTitle;
875
- emitter: Emitter<Required<RefinedOptionsFromRefiners<Required<CalendarListenerRefiners>>>>;
876
- private actionRunner;
877
- private props;
878
- private state;
879
- private data;
880
- currentCalendarOptionsInput: CalendarOptions;
881
- private currentCalendarOptionsRefined;
882
- private currentViewOptionsInput;
883
- private currentViewOptionsRefined;
884
- currentCalendarOptionsRefiners: any;
885
- private stableOptionOverrides;
886
- private stableDynamicOptionOverrides;
887
- private stableCalendarOptionsData;
888
- private optionsForRefining;
889
- private optionsForHandling;
890
- constructor(props: CalendarDataManagerProps);
891
- getCurrentData: () => CalendarData;
892
- dispatch: (action: Action) => void;
893
- resetOptions(optionOverrides: CalendarOptions, changedOptionNames?: string[]): void;
894
- _handleAction(action: Action): void;
895
- updateData(): void;
896
- computeOptionsData(optionOverrides: CalendarOptions, dynamicOptionOverrides: CalendarOptions, calendarApi: CalendarImpl): CalendarOptionsData;
897
- processRawCalendarOptions(optionOverrides: CalendarOptions, dynamicOptionOverrides: CalendarOptions): {
898
- rawOptions: CalendarOptions;
899
- refinedOptions: CalendarOptionsRefined;
900
- pluginHooks: PluginHooks;
901
- availableLocaleData: RawLocaleInfo;
902
- localeDefaults: CalendarOptionsRefined;
903
- extra: {};
904
- };
905
- _computeCurrentViewData(viewType: string, optionsData: CalendarOptionsData, optionOverrides: CalendarOptions, dynamicOptionOverrides: CalendarOptions): CalendarCurrentViewData;
906
- processRawViewOptions(viewSpec: ViewSpec, pluginHooks: PluginHooks, localeDefaults: CalendarOptions, optionOverrides: CalendarOptions, dynamicOptionOverrides: CalendarOptions): {
907
- rawOptions: ViewOptions;
908
- refinedOptions: ViewOptionsRefined;
909
- extra: {};
910
- };
911
- }
912
-
913
- interface DateSelectionApi extends DateSpanApi {
914
- jsEvent: UIEvent;
915
- view: ViewApi;
916
- }
917
- type DatePointTransform = (dateSpan: DateSpan, context: CalendarContext) => any;
918
- type DateSpanTransform = (dateSpan: DateSpan, context: CalendarContext) => any;
919
- type CalendarInteraction = {
920
- destroy: () => void;
921
- };
922
- type CalendarInteractionClass = {
923
- new (context: CalendarContext): CalendarInteraction;
924
- };
925
- type OptionChangeHandler = (propValue: any, context: CalendarContext) => void;
926
- type OptionChangeHandlerMap = {
927
- [propName: string]: OptionChangeHandler;
928
- };
929
- interface DateSelectArg extends DateSpanApi {
930
- jsEvent: MouseEvent | null;
931
- view: ViewApi;
932
- }
933
- declare function triggerDateSelect(selection: DateSpan, pev: PointerDragEvent | null, context: CalendarContext & {
934
- viewApi?: ViewImpl;
935
- }): void;
936
- interface DateUnselectArg {
937
- jsEvent: MouseEvent;
938
- view: ViewApi;
939
- }
940
- declare function getDefaultEventEnd(allDay: boolean, marker: DateMarker, context: CalendarContext): DateMarker;
941
-
942
- declare const ViewContextType: Context<any>;
943
- interface ViewContext extends CalendarContext {
944
- options: ViewOptionsRefined;
945
- theme: Theme;
946
- isRtl: boolean;
947
- dateProfileGenerator: DateProfileGenerator;
948
- viewSpec: ViewSpec;
949
- viewApi: ViewImpl;
950
- registerInteractiveComponent: (component: DateComponent<any>, settingsInput: InteractionSettingsInput) => void;
951
- unregisterInteractiveComponent: (component: DateComponent<any>) => void;
952
- }
953
-
954
- declare function filterHash(hash: any, func: any): {};
955
- declare function mapHash<InputItem, OutputItem>(hash: {
956
- [key: string]: InputItem;
957
- }, func: (input: InputItem, key: string) => OutputItem): {
958
- [key: string]: OutputItem;
959
- };
960
- declare function isPropsEqual(obj0: any, obj1: any): boolean;
961
- type EqualityFunc<T> = (a: T, b: T) => boolean;
962
- type EqualityThing<T> = EqualityFunc<T> | true;
963
- type EqualityFuncs<ObjType> = {
964
- [K in keyof ObjType]?: EqualityThing<ObjType[K]>;
965
- };
966
- declare function compareObjs(oldProps: any, newProps: any, equalityFuncs?: EqualityFuncs<any>): boolean;
967
- declare function collectFromHash<Item>(hash: {
968
- [key: string]: Item;
969
- }, startIndex?: number, endIndex?: number, step?: number): Item[];
970
-
971
- declare abstract class PureComponent<Props = Dictionary, State = Dictionary> extends Component<Props, State> {
972
- static addPropsEquality: typeof addPropsEquality;
973
- static addStateEquality: typeof addStateEquality;
974
- static contextType: any;
975
- context: ViewContext;
976
- propEquality: EqualityFuncs<Props>;
977
- stateEquality: EqualityFuncs<State>;
978
- debug: boolean;
979
- shouldComponentUpdate(nextProps: Props, nextState: State): boolean;
980
- }
981
- declare abstract class BaseComponent<Props = Dictionary, State = Dictionary> extends PureComponent<Props, State> {
982
- static contextType: any;
983
- context: ViewContext;
984
- }
985
- declare function addPropsEquality(this: {
986
- prototype: {
987
- propEquality: any;
988
- };
989
- }, propEquality: any): void;
990
- declare function addStateEquality(this: {
991
- prototype: {
992
- stateEquality: any;
993
- };
994
- }, stateEquality: any): void;
995
- declare function setRef<RefType>(ref: Ref<RefType> | void, current: RefType): void;
996
-
997
- interface Point {
998
- left: number;
999
- top: number;
1000
- }
1001
- interface Rect {
1002
- left: number;
1003
- right: number;
1004
- top: number;
1005
- bottom: number;
1006
- }
1007
- declare function pointInsideRect(point: Point, rect: Rect): boolean;
1008
- declare function intersectRects(rect1: Rect, rect2: Rect): Rect | false;
1009
- declare function translateRect(rect: Rect, deltaX: number, deltaY: number): Rect;
1010
- declare function constrainPoint(point: Point, rect: Rect): Point;
1011
- declare function getRectCenter(rect: Rect): Point;
1012
- declare function diffPoints(point1: Point, point2: Point): Point;
1013
-
1014
- interface Hit {
1015
- componentId?: string;
1016
- context?: ViewContext;
1017
- dateProfile: DateProfile;
1018
- dateSpan: DateSpan;
1019
- getDayEl: () => HTMLElement;
1020
- rect: Rect;
1021
- layer: number;
1022
- largeUnit?: string;
1023
- }
1024
-
1025
- interface EventSegUiInteractionState<S> {
1026
- affectedInstances: EventInstanceHash;
1027
- segs: (S & EventRangeProps)[];
1028
- isEvent: boolean;
1029
- }
1030
- declare abstract class DateComponent<Props = Dictionary, State = Dictionary> extends BaseComponent<Props, State> {
1031
- uid: string;
1032
- prepareHits(): void;
1033
- queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null;
1034
- isValidSegDownEl(el: HTMLElement): boolean;
1035
- isValidDateDownEl(el: HTMLElement): boolean;
1036
- }
1037
-
1038
- declare abstract class Interaction {
1039
- component: DateComponent<any>;
1040
- isHitComboAllowed: ((hit0: Hit, hit1: Hit) => boolean) | null;
1041
- constructor(settings: InteractionSettings);
1042
- destroy(): void;
1043
- }
1044
- type InteractionClass = {
1045
- new (settings: InteractionSettings): Interaction;
1046
- };
1047
- interface InteractionSettingsInput {
1048
- el: HTMLElement;
1049
- useEventCenter?: boolean;
1050
- isHitComboAllowed?: (hit0: Hit, hit1: Hit) => boolean;
1051
- disableHits?: boolean;
1052
- }
1053
- interface InteractionSettings {
1054
- component: DateComponent<any>;
1055
- el: HTMLElement;
1056
- useEventCenter: boolean;
1057
- isHitComboAllowed: ((hit0: Hit, hit1: Hit) => boolean) | null;
1058
- }
1059
- type InteractionSettingsStore = {
1060
- [componenUid: string]: InteractionSettings;
1061
- };
1062
- declare function interactionSettingsToStore(settings: InteractionSettings): {
1063
- [x: string]: InteractionSettings;
1064
- };
1065
- declare const interactionSettingsStore: InteractionSettingsStore;
1066
-
1067
- interface CalendarContentProps extends CalendarData {
1068
- forPrint: boolean;
1069
- }
1070
-
1071
- type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void;
1072
- type EventDropTransformers = (mutation: EventMutation, context: CalendarContext) => Dictionary;
1073
- type eventIsDraggableTransformer = (val: boolean, eventDef: EventDef, eventUi: EventUi, context: CalendarContext) => boolean;
1074
-
1075
- type dateSelectionJoinTransformer = (hit0: Hit, hit1: Hit) => any;
1076
-
1077
- declare const DRAG_META_REFINERS: {
1078
- startTime: typeof createDuration;
1079
- duration: typeof createDuration;
1080
- create: BooleanConstructor;
1081
- sourceId: StringConstructor;
1082
- };
1083
- type DragMetaInput = RawOptionsFromRefiners<typeof DRAG_META_REFINERS> & {
1084
- [otherProp: string]: any;
1085
- };
1086
- interface DragMeta {
1087
- startTime: Duration | null;
1088
- duration: Duration | null;
1089
- create: boolean;
1090
- sourceId: string;
1091
- leftoverProps: Dictionary;
1092
- }
1093
- declare function parseDragMeta(raw: DragMetaInput): DragMeta;
1094
-
1095
- type ExternalDefTransform = (dateSpan: DateSpan, dragMeta: DragMeta) => any;
1096
-
1097
- type EventSourceFuncArg = {
1098
- start: Date;
1099
- end: Date;
1100
- startStr: string;
1101
- endStr: string;
1102
- timeZone: string;
1103
- };
1104
- type EventSourceFunc = ((arg: EventSourceFuncArg, successCallback: (eventInputs: EventInput[]) => void, failureCallback: (error: Error) => void) => void) | ((arg: EventSourceFuncArg) => Promise<EventInput[]>);
1105
-
1106
- declare const JSON_FEED_EVENT_SOURCE_REFINERS: {
1107
- method: StringConstructor;
1108
- extraParams: Identity<Dictionary | (() => Dictionary)>;
1109
- startParam: StringConstructor;
1110
- endParam: StringConstructor;
1111
- timeZoneParam: StringConstructor;
1112
- };
1113
-
1114
- declare const EVENT_SOURCE_REFINERS: {
1115
- id: StringConstructor;
1116
- defaultAllDay: BooleanConstructor;
1117
- url: StringConstructor;
1118
- format: StringConstructor;
1119
- events: Identity<EventInput[] | EventSourceFunc>;
1120
- eventDataTransform: Identity<EventInputTransformer>;
1121
- success: Identity<EventSourceSuccessResponseHandler>;
1122
- failure: Identity<EventSourceErrorResponseHandler>;
1123
- };
1124
- type BuiltInEventSourceRefiners = typeof EVENT_SOURCE_REFINERS & typeof JSON_FEED_EVENT_SOURCE_REFINERS;
1125
- interface EventSourceRefiners extends BuiltInEventSourceRefiners {
1126
- }
1127
- type EventSourceInputObject = EventUiInput & RawOptionsFromRefiners<Required<EventSourceRefiners>>;
1128
- type EventSourceInput = EventSourceInputObject | // object in extended form
1129
- EventInput[] | EventSourceFunc | // just a function
1130
- string;
1131
- type EventSourceRefined = EventUiRefined & RefinedOptionsFromRefiners<Required<EventSourceRefiners>>;
1132
-
1133
- interface EventSourceDef<Meta> {
1134
- ignoreRange?: boolean;
1135
- parseMeta: (refined: EventSourceRefined) => Meta | null;
1136
- fetch: EventSourceFetcher<Meta>;
1137
- }
1138
-
1139
- interface ParsedRecurring<RecurringData> {
1140
- typeData: RecurringData;
1141
- allDayGuess: boolean | null;
1142
- duration: Duration | null;
1143
- }
1144
- interface RecurringType<RecurringData> {
1145
- parse: (refined: EventRefined, dateEnv: DateEnv) => ParsedRecurring<RecurringData> | null;
1146
- expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[];
1147
- }
1148
-
1149
- declare abstract class ElementDragging {
1150
- emitter: Emitter<any>;
1151
- constructor(el: HTMLElement, selector?: string);
1152
- destroy(): void;
1153
- abstract cancel(): void;
1154
- setMirrorIsVisible(bool: boolean): void;
1155
- setMirrorNeedsRevert(bool: boolean): void;
1156
- setAutoScrollEnabled(bool: boolean): void;
1157
- }
1158
- type ElementDraggingClass = {
1159
- new (el: HTMLElement, selector?: string): ElementDragging;
1160
- };
1161
-
1162
- interface ScrollerInterface {
1163
- x: number;
1164
- y: number;
1165
- scrollTo(options: {
1166
- x?: number;
1167
- y?: number;
1168
- }): void;
1169
- addScrollEndListener(handler: (isUser: boolean) => void): void;
1170
- removeScrollEndListener(handler: (isUser: boolean) => void): void;
1171
- }
1172
-
1173
- interface ScrollerSyncerClass {
1174
- new (horizontal?: boolean): ScrollerSyncerInterface;
1175
- }
1176
- interface ScrollerSyncerInterface extends ScrollerInterface {
1177
- handleChildren(scrollers: ScrollerInterface[]): void;
1178
- destroy(): void;
1179
- }
1180
-
1181
- interface PluginDefInput {
1182
- name: string;
1183
- premiumReleaseDate?: string;
1184
- deps?: PluginDef[];
1185
- reducers?: ReducerFunc[];
1186
- isLoadingFuncs?: ((state: Dictionary) => boolean)[];
1187
- contextInit?: (context: CalendarContext) => void;
1188
- eventRefiners?: GenericRefiners;
1189
- eventDefMemberAdders?: EventDefMemberAdder[];
1190
- eventSourceRefiners?: GenericRefiners;
1191
- isDraggableTransformers?: eventIsDraggableTransformer[];
1192
- eventDragMutationMassagers?: eventDragMutationMassager[];
1193
- eventDefMutationAppliers?: eventDefMutationApplier[];
1194
- dateSelectionTransformers?: dateSelectionJoinTransformer[];
1195
- datePointTransforms?: DatePointTransform[];
1196
- dateSpanTransforms?: DateSpanTransform[];
1197
- views?: ViewConfigInputHash;
1198
- viewPropsTransformers?: ViewPropsTransformerClass[];
1199
- isPropsValid?: isPropsValidTester;
1200
- externalDefTransforms?: ExternalDefTransform[];
1201
- viewContainerAppends?: ViewContainerAppend[];
1202
- eventDropTransformers?: EventDropTransformers[];
1203
- componentInteractions?: InteractionClass[];
1204
- calendarInteractions?: CalendarInteractionClass[];
1205
- themeClasses?: {
1206
- [themeSystemName: string]: ThemeClass;
1207
- };
1208
- eventSourceDefs?: EventSourceDef<any>[];
1209
- cmdFormatter?: CmdFormatterFunc;
1210
- recurringTypes?: RecurringType<any>[];
1211
- namedTimeZonedImpl?: NamedTimeZoneImplClass;
1212
- initialView?: string;
1213
- elementDraggingImpl?: ElementDraggingClass;
1214
- optionChangeHandlers?: OptionChangeHandlerMap;
1215
- scrollerSyncerClass?: ScrollerSyncerClass;
1216
- listenerRefiners?: GenericListenerRefiners;
1217
- optionRefiners?: GenericRefiners;
1218
- propSetHandlers?: {
1219
- [propName: string]: (val: any, context: CalendarData) => void;
1220
- };
1221
- }
1222
- interface PluginHooks {
1223
- premiumReleaseDate: Date | undefined;
1224
- reducers: ReducerFunc[];
1225
- isLoadingFuncs: ((state: Dictionary) => boolean)[];
1226
- contextInit: ((context: CalendarContext) => void)[];
1227
- eventRefiners: GenericRefiners;
1228
- eventDefMemberAdders: EventDefMemberAdder[];
1229
- eventSourceRefiners: GenericRefiners;
1230
- isDraggableTransformers: eventIsDraggableTransformer[];
1231
- eventDragMutationMassagers: eventDragMutationMassager[];
1232
- eventDefMutationAppliers: eventDefMutationApplier[];
1233
- dateSelectionTransformers: dateSelectionJoinTransformer[];
1234
- datePointTransforms: DatePointTransform[];
1235
- dateSpanTransforms: DateSpanTransform[];
1236
- views: ViewConfigInputHash;
1237
- viewPropsTransformers: ViewPropsTransformerClass[];
1238
- isPropsValid: isPropsValidTester | null;
1239
- externalDefTransforms: ExternalDefTransform[];
1240
- viewContainerAppends: ViewContainerAppend[];
1241
- eventDropTransformers: EventDropTransformers[];
1242
- componentInteractions: InteractionClass[];
1243
- calendarInteractions: CalendarInteractionClass[];
1244
- themeClasses: {
1245
- [themeSystemName: string]: ThemeClass;
1246
- };
1247
- eventSourceDefs: EventSourceDef<any>[];
1248
- cmdFormatter?: CmdFormatterFunc;
1249
- recurringTypes: RecurringType<any>[];
1250
- namedTimeZonedImpl?: NamedTimeZoneImplClass;
1251
- initialView: string;
1252
- elementDraggingImpl?: ElementDraggingClass;
1253
- optionChangeHandlers: OptionChangeHandlerMap;
1254
- scrollerSyncerClass: ScrollerSyncerClass | null;
1255
- listenerRefiners: GenericListenerRefiners;
1256
- optionRefiners: GenericRefiners;
1257
- propSetHandlers: {
1258
- [propName: string]: (val: any, context: CalendarData) => void;
1259
- };
1260
- }
1261
- interface PluginDef extends PluginHooks {
1262
- id: string;
1263
- name: string;
1264
- deps: PluginDef[];
1265
- }
1266
- type ViewPropsTransformerClass = new () => ViewPropsTransformer;
1267
- interface ViewPropsTransformer {
1268
- transform(viewProps: ViewProps, calendarProps: CalendarContentProps): any;
1269
- }
1270
- type ViewContainerAppend = (context: CalendarContext) => ComponentChildren;
1271
-
1272
- interface CalendarContext {
1273
- dateEnv: DateEnv;
1274
- options: BaseOptionsRefined;
1275
- pluginHooks: PluginHooks;
1276
- emitter: Emitter<CalendarListeners>;
1277
- dispatch(action: Action): void;
1278
- getCurrentData(): CalendarData;
1279
- calendarApi: CalendarImpl;
1280
- }
1281
-
1282
- type EventDefIdMap = {
1283
- [publicId: string]: string;
1284
- };
1285
-
1286
- declare const EVENT_REFINERS: {
1287
- extendedProps: Identity<Dictionary>;
1288
- start: Identity<DateInput>;
1289
- end: Identity<DateInput>;
1290
- date: Identity<DateInput>;
1291
- allDay: BooleanConstructor;
1292
- id: StringConstructor;
1293
- groupId: StringConstructor;
1294
- title: StringConstructor;
1295
- url: StringConstructor;
1296
- interactive: BooleanConstructor;
1297
- };
1298
- type BuiltInEventRefiners = typeof EVENT_REFINERS;
1299
- interface EventRefiners extends BuiltInEventRefiners {
1300
- }
1301
- type EventInput = EventUiInput & RawOptionsFromRefiners<Required<EventRefiners>> & // Required hack
1302
- {
1303
- [extendedProp: string]: any;
1304
- };
1305
- type EventRefined = EventUiRefined & RefinedOptionsFromRefiners<Required<EventRefiners>>;
1306
- interface EventTuple {
1307
- def: EventDef;
1308
- instance: EventInstance | null;
1309
- }
1310
- type EventInputTransformer = (input: EventInput) => EventInput;
1311
- type EventDefMemberAdder = (refined: EventRefined) => Partial<EventDef>;
1312
- declare function refineEventDef(raw: EventInput, context: CalendarContext, refiners?: GenericRefiners): {
1313
- refined: RefinedOptionsFromRefiners<GenericRefiners>;
1314
- extra: Dictionary;
1315
- };
1316
- declare function parseEventDef(refined: EventRefined, extra: Dictionary, sourceId: string, allDay: boolean, hasEnd: boolean, context: CalendarContext, defIdMap?: EventDefIdMap): EventDef;
1317
-
1318
- interface EventStore {
1319
- defs: EventDefHash;
1320
- instances: EventInstanceHash;
1321
- }
1322
- declare function eventTupleToStore(tuple: EventTuple, eventStore?: EventStore): EventStore;
1323
- declare function getRelevantEvents(eventStore: EventStore, instanceId: string): EventStore;
1324
- declare function createEmptyEventStore(): EventStore;
1325
- declare function mergeEventStores(store0: EventStore, store1: EventStore): EventStore;
1326
-
1327
- interface SplittableProps {
1328
- businessHours: EventStore | null;
1329
- dateSelection: DateSpan | null;
1330
- eventStore: EventStore;
1331
- eventUiBases: EventUiHash;
1332
- eventDrag: EventInteractionState | null;
1333
- eventResize: EventInteractionState | null;
1334
- eventSelection: string;
1335
- }
1336
- declare abstract class Splitter<PropsType extends SplittableProps = SplittableProps> {
1337
- private getKeysForEventDefs;
1338
- private splitDateSelection;
1339
- private splitEventStore;
1340
- private splitIndividualUi;
1341
- private splitEventDrag;
1342
- private splitEventResize;
1343
- private eventUiBuilders;
1344
- abstract getKeyInfo(props: PropsType): {
1345
- [key: string]: {
1346
- ui?: EventUi;
1347
- businessHours?: EventStore;
1348
- };
1349
- };
1350
- abstract getKeysForDateSpan(dateSpan: DateSpan): string[];
1351
- abstract getKeysForEventDef(eventDef: EventDef): string[];
1352
- splitProps(props: PropsType): {
1353
- [key: string]: SplittableProps;
1354
- };
1355
- private _splitDateSpan;
1356
- private _getKeysForEventDefs;
1357
- private _splitEventStore;
1358
- private _splitIndividualUi;
1359
- private _splitInteraction;
1360
- }
1361
-
1362
- type ConstraintInput = 'businessHours' | string | EventInput | EventInput[];
1363
- type Constraint = 'businessHours' | string | EventStore | false;
1364
- type OverlapFunc = ((stillEvent: EventImpl, movingEvent: EventImpl | null) => boolean);
1365
- type AllowFunc = (span: DateSpanApi, movingEvent: EventImpl | null) => boolean;
1366
- type isPropsValidTester = (props: SplittableProps, context: CalendarContext) => boolean;
1367
-
1368
- declare const EVENT_UI_REFINERS: {
1369
- display: StringConstructor;
1370
- editable: BooleanConstructor;
1371
- startEditable: BooleanConstructor;
1372
- durationEditable: BooleanConstructor;
1373
- constraint: Identity<any>;
1374
- overlap: Identity<boolean>;
1375
- allow: Identity<AllowFunc>;
1376
- className: typeof parseClassNames;
1377
- classNames: typeof parseClassNames;
1378
- color: StringConstructor;
1379
- backgroundColor: StringConstructor;
1380
- borderColor: StringConstructor;
1381
- textColor: StringConstructor;
1382
- };
1383
- type BuiltInEventUiRefiners = typeof EVENT_UI_REFINERS;
1384
- interface EventUiRefiners extends BuiltInEventUiRefiners {
1385
- }
1386
- type EventUiInput = RawOptionsFromRefiners<Required<EventUiRefiners>>;
1387
- type EventUiRefined = RefinedOptionsFromRefiners<Required<EventUiRefiners>>;
1388
- interface EventUi {
1389
- display: string | null;
1390
- startEditable: boolean | null;
1391
- durationEditable: boolean | null;
1392
- constraints: Constraint[];
1393
- overlap: boolean | null;
1394
- allows: AllowFunc[];
1395
- backgroundColor: string;
1396
- borderColor: string;
1397
- textColor: string;
1398
- classNames: string[];
1399
- }
1400
- type EventUiHash = {
1401
- [defId: string]: EventUi;
1402
- };
1403
- declare function createEventUi(refined: EventUiRefined, context: CalendarContext): EventUi;
1404
- declare function combineEventUis(uis: EventUi[]): EventUi;
1405
-
1406
- interface EventDef {
1407
- defId: string;
1408
- sourceId: string;
1409
- publicId: string;
1410
- groupId: string;
1411
- allDay: boolean;
1412
- hasEnd: boolean;
1413
- recurringDef: {
1414
- typeId: number;
1415
- typeData: any;
1416
- duration: Duration | null;
1417
- } | null;
1418
- title: string;
1419
- url: string;
1420
- ui: EventUi;
1421
- interactive?: boolean;
1422
- extendedProps: Dictionary;
1423
- }
1424
- type EventDefHash = {
1425
- [defId: string]: EventDef;
1426
- };
1427
-
1428
- interface EventRenderRange extends EventTuple {
1429
- ui: EventUi;
1430
- range: DateRange;
1431
- isStart: boolean;
1432
- isEnd: boolean;
1433
- }
1434
- interface EventRangeProps {
1435
- eventRange: EventRenderRange;
1436
- }
1437
- declare function getEventKey(seg: EventRangeProps): string;
1438
- declare function sliceEventStore(eventStore: EventStore, eventUiBases: EventUiHash, framingRange: DateRange, nextDayThreshold?: Duration): {
1439
- bg: EventRenderRange[];
1440
- fg: EventRenderRange[];
1441
- };
1442
- declare function hasBgRendering(def: EventDef): boolean;
1443
- declare function getElEventRange(el: HTMLElement): EventRenderRange | null;
1444
- declare function sortEventSegs<S extends EventRangeProps>(segs: S[], eventOrderSpecs: OrderSpec<EventImpl>[]): S[];
1445
- interface EventContentArg {
1446
- event: EventImpl;
1447
- timeText: string;
1448
- backgroundColor: string;
1449
- borderColor: string;
1450
- textColor: string;
1451
- isDraggable: boolean;
1452
- isStartResizable: boolean;
1453
- isEndResizable: boolean;
1454
- isMirror: boolean;
1455
- isStart: boolean;
1456
- isEnd: boolean;
1457
- isPast: boolean;
1458
- isFuture: boolean;
1459
- isToday: boolean;
1460
- isSelected: boolean;
1461
- isDragging: boolean;
1462
- isResizing: boolean;
1463
- view: ViewApi;
1464
- }
1465
- type EventMountArg = MountArg<EventContentArg>;
1466
- declare function buildEventRangeTimeText(timeFormat: DateFormatter, eventRange: EventRenderRange, // timed/whole-day span
1467
- slicedStart: DateMarker | undefined, // view-sliced timed/whole-day span
1468
- slicedEnd: DateMarker | undefined, // view-sliced timed/whole-day span
1469
- isStart: boolean, isEnd: boolean, context: ViewContext, defaultDisplayEventTime?: boolean, defaultDisplayEventEnd?: boolean): string;
1470
- declare function getEventRangeMeta(eventRange: EventRenderRange, todayRange: DateRange, nowDate?: DateMarker): {
1471
- isPast: boolean;
1472
- isFuture: boolean;
1473
- isToday: boolean;
1474
- };
1475
- declare function buildEventRangeKey(eventRange: EventRenderRange): string;
1476
- declare function getEventTagAndAttrs(eventRange: EventRenderRange, context: ViewContext): [
1477
- tag: string,
1478
- attrs: any
1479
- ];
1480
-
1481
- interface OpenDateSpanInput {
1482
- start?: DateInput;
1483
- end?: DateInput;
1484
- allDay?: boolean;
1485
- [otherProp: string]: any;
1486
- }
1487
- interface DateSpanInput extends OpenDateSpanInput {
1488
- start: DateInput;
1489
- end: DateInput;
1490
- }
1491
- interface OpenDateSpan {
1492
- range: OpenDateRange;
1493
- allDay: boolean;
1494
- [otherProp: string]: any;
1495
- }
1496
- interface DateSpan extends OpenDateSpan {
1497
- range: DateRange;
1498
- }
1499
- interface RangeApi {
1500
- start: Date;
1501
- end: Date;
1502
- startStr: string;
1503
- endStr: string;
1504
- }
1505
- interface DateSpanApi extends RangeApi {
1506
- allDay: boolean;
1507
- }
1508
- interface RangeApiWithTimeZone extends RangeApi {
1509
- timeZone: string;
1510
- }
1511
- interface DatePointApi {
1512
- date: Date;
1513
- dateStr: string;
1514
- allDay: boolean;
1515
- }
1516
- declare function isDateSpansEqual(span0: DateSpan, span1: DateSpan): boolean;
1517
-
1518
- type CssDimValue = string | number;
1519
- declare function getIsHeightAuto(options: {
1520
- height?: CssDimValue;
1521
- contentHeight?: CssDimValue;
1522
- }): boolean;
1523
- declare function getStickyHeaderDates(options: {
1524
- height?: CssDimValue;
1525
- contentHeight?: CssDimValue;
1526
- stickyHeaderDates?: boolean | 'auto';
1527
- }): boolean;
1528
- declare function getStickyFooterScrollbar(options: {
1529
- height?: CssDimValue;
1530
- contentHeight?: CssDimValue;
1531
- stickyFooterScrollbar?: boolean | 'auto';
1532
- }): boolean;
1533
- declare function getScrollerSyncerClass(pluginHooks: {
1534
- scrollerSyncerClass: ScrollerSyncerClass | null;
1535
- }): ScrollerSyncerClass;
1536
-
1537
- type BusinessHoursInput = boolean | EventInput | EventInput[];
1538
- declare function parseBusinessHours(input: BusinessHoursInput, context: CalendarContext): EventStore;
1539
-
1540
- type ElRef = Ref<HTMLElement>;
1541
- type ElAttrs = JSX.HTMLAttributes & JSX.SVGAttributes & {
1542
- ref?: ElRef;
1543
- } & Record<string, any>;
1544
- interface ElAttrsProps {
1545
- attrs?: ElAttrs;
1546
- className?: string;
1547
- style?: JSX.CSSProperties;
1548
- elRef?: ElRef;
1549
- }
1550
- interface ElProps extends ElAttrsProps {
1551
- tag: string;
1552
- }
1553
- interface ContentGeneratorProps<RenderProps> {
1554
- renderProps: RenderProps;
1555
- generatorName: string | undefined;
1556
- customGenerator?: CustomContentGenerator<RenderProps>;
1557
- defaultGenerator?: (renderProps: RenderProps) => ComponentChild;
1558
- }
1559
- declare function buildElAttrs(props: ElAttrsProps, className?: string, elRef?: ElRef): ElAttrs;
1560
-
1561
- type ContentContainerProps<RenderProps> = ElAttrsProps & ContentGeneratorProps<RenderProps> & {
1562
- tag?: string;
1563
- classNameGenerator: ClassNamesGenerator<RenderProps> | undefined;
1564
- didMount: ((renderProps: RenderProps & {
1565
- el: HTMLElement;
1566
- }) => void) | undefined;
1567
- willUnmount: ((renderProps: RenderProps & {
1568
- el: HTMLElement;
1569
- }) => void) | undefined;
1570
- children?: InnerContainerFunc<RenderProps>;
1571
- };
1572
- declare class ContentContainer<RenderProps> extends Component<ContentContainerProps<RenderProps>> {
1573
- static contextType: preact.Context<number>;
1574
- didMountMisfire?: boolean;
1575
- context: number;
1576
- el: HTMLElement;
1577
- InnerContent: any;
1578
- render(): ComponentChildren;
1579
- handleEl: (el: HTMLElement | null) => void;
1580
- componentDidMount(): void;
1581
- componentWillUnmount(): void;
1582
- }
1583
- type InnerContainerComponent = FunctionalComponent<ElProps>;
1584
- type InnerContainerFunc<RenderProps> = (InnerContainer: InnerContainerComponent, renderProps: RenderProps, attrs: ElAttrs) => ComponentChildren;
1585
- declare function renderText(renderProps: {
1586
- text: string;
1587
- }): ComponentChild;
1588
-
1589
- interface NowIndicatorContainerProps extends Partial<ElProps> {
1590
- isAxis: boolean;
1591
- date: DateMarker;
1592
- children?: InnerContainerFunc<NowIndicatorContentArg>;
1593
- }
1594
- interface NowIndicatorContentArg {
1595
- isAxis: boolean;
1596
- date: Date;
1597
- view: ViewApi;
1598
- }
1599
- type NowIndicatorMountArg = MountArg<NowIndicatorContentArg>;
1600
- declare const NowIndicatorContainer: (props: NowIndicatorContainerProps) => createElement.JSX.Element;
1601
-
1602
- interface WeekNumberContainerProps extends ElProps {
1603
- date: DateMarker;
1604
- defaultFormat: DateFormatter;
1605
- children?: InnerContainerFunc<WeekNumberContentArg>;
1606
- }
1607
- interface WeekNumberContentArg {
1608
- num: number;
1609
- text: string;
1610
- date: Date;
1611
- }
1612
- type WeekNumberMountArg = MountArg<WeekNumberContentArg>;
1613
- declare const WeekNumberContainer: (props: WeekNumberContainerProps) => createElement.JSX.Element;
1614
-
1615
- interface MoreLinkContainerProps extends Partial<ElAttrsProps> {
1616
- dateProfile: DateProfile;
1617
- todayRange: DateRange;
1618
- allDayDate: DateMarker | null;
1619
- segs: EventRangeProps[];
1620
- hiddenSegs: EventRangeProps[];
1621
- dateSpanProps?: Dictionary;
1622
- alignElRef?: RefObject<HTMLElement>;
1623
- alignParentTop?: string;
1624
- forceTimed?: boolean;
1625
- popoverContent: () => ComponentChild;
1626
- defaultGenerator?: (renderProps: MoreLinkContentArg) => ComponentChild;
1627
- children?: InnerContainerFunc<MoreLinkContentArg>;
1628
- }
1629
- interface MoreLinkContentArg {
1630
- num: number;
1631
- text: string;
1632
- shortText: string;
1633
- view: ViewApi;
1634
- }
1635
- type MoreLinkMountArg = MountArg<MoreLinkContentArg>;
1636
- interface MoreLinkContainerState {
1637
- isPopoverOpen: boolean;
1638
- popoverId: string;
1639
- }
1640
- declare class MoreLinkContainer extends BaseComponent<MoreLinkContainerProps, MoreLinkContainerState> {
1641
- private linkEl;
1642
- private parentEl;
1643
- state: {
1644
- isPopoverOpen: boolean;
1645
- popoverId: string;
1646
- };
1647
- render(): createElement.JSX.Element;
1648
- componentDidMount(): void;
1649
- componentDidUpdate(): void;
1650
- handleLinkEl: (linkEl: HTMLElement | null) => void;
1651
- updateParentEl(): void;
1652
- handleClick: (ev: MouseEvent) => void;
1653
- handlePopoverClose: () => void;
1654
- }
1655
-
1656
- interface EventSegment {
1657
- event: EventApi;
1658
- start: Date;
1659
- end: Date;
1660
- isStart: boolean;
1661
- isEnd: boolean;
1662
- }
1663
- type MoreLinkAction = MoreLinkSimpleAction | MoreLinkHandler;
1664
- type MoreLinkSimpleAction = 'popover' | 'week' | 'day' | 'timeGridWeek' | 'timeGridDay' | string;
1665
- interface MoreLinkArg {
1666
- date: Date;
1667
- allDay: boolean;
1668
- allSegs: EventSegment[];
1669
- hiddenSegs: EventSegment[];
1670
- jsEvent: UIEvent;
1671
- view: ViewApi;
1672
- }
1673
- type MoreLinkHandler = (arg: MoreLinkArg) => MoreLinkSimpleAction | void;
1674
-
1675
- interface DateMeta {
1676
- dow: number;
1677
- isDisabled: boolean;
1678
- isOther: boolean;
1679
- isToday: boolean;
1680
- isPast: boolean;
1681
- isFuture: boolean;
1682
- }
1683
- declare function getDateMeta(date: DateMarker, todayRange?: DateRange, nowDate?: DateMarker, dateProfile?: DateProfile): DateMeta;
1684
- declare function getDayClassName(meta: DateMeta): string;
1685
- declare function getSlotClassName(meta: DateMeta): string;
1686
-
1687
- interface SlotLaneContentArg extends Partial<DateMeta> {
1688
- time?: Duration;
1689
- date?: Date;
1690
- view: ViewApi;
1691
- }
1692
- type SlotLaneMountArg = MountArg<SlotLaneContentArg>;
1693
- interface SlotLabelContentArg {
1694
- level: number;
1695
- time: Duration;
1696
- date: Date;
1697
- view: ViewApi;
1698
- text: string;
1699
- }
1700
- type SlotLabelMountArg = MountArg<SlotLabelContentArg>;
1701
- interface AllDayContentArg {
1702
- text: string;
1703
- view: ViewApi;
1704
- }
1705
- type AllDayMountArg = MountArg<AllDayContentArg>;
1706
- interface DayHeaderContentArg extends DateMeta {
1707
- date: Date;
1708
- text: string;
1709
- view: ViewApi;
1710
- [otherProp: string]: any;
1711
- }
1712
- type DayHeaderMountArg = MountArg<DayHeaderContentArg>;
1713
-
1714
- interface DayCellContentArg extends DateMeta {
1715
- date: DateMarker;
1716
- view: ViewApi;
1717
- dayNumberText: string;
1718
- [extraProp: string]: any;
1719
- }
1720
- type DayCellMountArg = MountArg<DayCellContentArg>;
1721
- interface DayCellContainerProps extends Partial<ElProps> {
1722
- date: DateMarker;
1723
- dateMeta: DateMeta;
1724
- isMonthStart?: boolean;
1725
- showDayNumber?: boolean;
1726
- renderProps?: Dictionary;
1727
- defaultGenerator?: (renderProps: DayCellContentArg) => ComponentChild;
1728
- children?: InnerContainerFunc<DayCellContentArg>;
1729
- }
1730
- declare class DayCellContainer extends BaseComponent<DayCellContainerProps> {
1731
- refineRenderProps: (arg: DayCellRenderPropsInput) => DayCellContentArg;
1732
- render(): createElement.JSX.Element;
1733
- }
1734
- declare function hasCustomDayCellContent(options: ViewOptions): boolean;
1735
- interface DayCellRenderPropsInput {
1736
- date: DateMarker;
1737
- dateMeta: DateMeta;
1738
- dateEnv: DateEnv;
1739
- viewApi: ViewApi;
1740
- monthStartFormat: DateFormatter;
1741
- isMonthStart: boolean;
1742
- showDayNumber?: boolean;
1743
- renderProps?: Dictionary;
1744
- }
1745
-
1746
- interface ViewContainerProps extends Partial<ElProps> {
1747
- viewSpec: ViewSpec;
1748
- attrs?: any;
1749
- children: ComponentChildren;
1750
- }
1751
- interface ViewContentArg {
1752
- view: ViewApi;
1753
- }
1754
- type ViewMountArg = MountArg<ViewContentArg>;
1755
- declare class ViewContainer extends BaseComponent<ViewContainerProps> {
1756
- render(): createElement.JSX.Element;
1757
- }
1758
-
1759
- interface EventClickArg {
1760
- el: HTMLElement;
1761
- event: EventImpl;
1762
- jsEvent: MouseEvent;
1763
- view: ViewApi;
1764
- }
1765
-
1766
- interface EventHoveringArg {
1767
- el: HTMLElement;
1768
- event: EventImpl;
1769
- jsEvent: MouseEvent;
1770
- view: ViewApi;
1771
- }
1772
-
1773
- type DatesSetArg = RangeApiWithTimeZone & {
1774
- view: ViewApi;
1775
- };
1776
-
1777
- interface EventAddArg {
1778
- event: EventImpl;
1779
- relatedEvents: EventImpl[];
1780
- revert: () => void;
1781
- }
1782
- interface EventChangeArg {
1783
- oldEvent: EventImpl;
1784
- event: EventImpl;
1785
- relatedEvents: EventImpl[];
1786
- revert: () => void;
1787
- }
1788
- interface EventDropArg extends EventChangeArg {
1789
- el: HTMLElement;
1790
- delta: Duration;
1791
- jsEvent: MouseEvent;
1792
- view: ViewApi$1;
1793
- }
1794
- interface EventRemoveArg {
1795
- event: EventImpl;
1796
- relatedEvents: EventImpl[];
1797
- revert: () => void;
1798
- }
1799
-
1800
- declare class Store<Value> {
1801
- private handlers;
1802
- private currentValue;
1803
- set(value: Value): void;
1804
- subscribe(handler: (value: Value) => void): void;
1805
- }
1806
-
1807
- type CustomRenderingHandler<RenderProps> = (customRender: CustomRendering<RenderProps>) => void;
1808
- interface CustomRendering<RenderProps> extends ElProps {
1809
- id: string;
1810
- isActive: boolean;
1811
- containerEl: HTMLElement;
1812
- reportNewContainerEl: (el: HTMLElement | null) => void;
1813
- generatorName: string;
1814
- generatorMeta: any;
1815
- renderProps: RenderProps;
1816
- }
1817
- declare class CustomRenderingStore<RenderProps> extends Store<Map<string, CustomRendering<RenderProps>>> {
1818
- private map;
1819
- handle(customRendering: CustomRendering<RenderProps>): void;
1820
- }
1821
-
1822
- interface EventApi {
1823
- source: EventSourceApi | null;
1824
- start: Date | null;
1825
- end: Date | null;
1826
- startStr: string;
1827
- endStr: string;
1828
- id: string;
1829
- groupId: string;
1830
- allDay: boolean;
1831
- title: string;
1832
- url: string;
1833
- display: string;
1834
- startEditable: boolean;
1835
- durationEditable: boolean;
1836
- constraint: any;
1837
- overlap: boolean;
1838
- allow: any;
1839
- backgroundColor: string;
1840
- borderColor: string;
1841
- textColor: string;
1842
- classNames: string[];
1843
- extendedProps: Dictionary;
1844
- setProp(name: string, val: any): void;
1845
- setExtendedProp(name: string, val: any): void;
1846
- setStart(startInput: DateInput, options?: {
1847
- granularity?: string;
1848
- maintainDuration?: boolean;
1849
- }): void;
1850
- setEnd(endInput: DateInput | null, options?: {
1851
- granularity?: string;
1852
- }): void;
1853
- setDates(startInput: DateInput, endInput: DateInput | null, options?: {
1854
- allDay?: boolean;
1855
- granularity?: string;
1856
- }): void;
1857
- moveStart(deltaInput: DurationInput): void;
1858
- moveEnd(deltaInput: DurationInput): void;
1859
- moveDates(deltaInput: DurationInput): void;
1860
- setAllDay(allDay: boolean, options?: {
1861
- maintainDuration?: boolean;
1862
- }): void;
1863
- formatRange(formatInput: FormatterInput): any;
1864
- remove(): void;
1865
- toPlainObject(settings?: {
1866
- collapseExtendedProps?: boolean;
1867
- collapseColor?: boolean;
1868
- }): Dictionary;
1869
- toJSON(): Dictionary;
1870
- }
1871
-
1872
- interface CalendarApi {
1873
- view: ViewApi;
1874
- updateSize(): void;
1875
- setOption<OptionName extends keyof CalendarOptions>(name: OptionName, val: CalendarOptions[OptionName]): void;
1876
- getOption<OptionName extends keyof CalendarOptions>(name: OptionName): CalendarOptions[OptionName];
1877
- getAvailableLocaleCodes(): string[];
1878
- on<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, handler: CalendarListeners[ListenerName]): void;
1879
- off<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, handler: CalendarListeners[ListenerName]): void;
1880
- trigger<ListenerName extends keyof CalendarListeners>(handlerName: ListenerName, ...args: Parameters<CalendarListeners[ListenerName]>): void;
1881
- changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void;
1882
- zoomTo(dateMarker: Date, viewType?: string): void;
1883
- prev(): void;
1884
- next(): void;
1885
- prevYear(): void;
1886
- nextYear(): void;
1887
- today(): void;
1888
- gotoDate(zonedDateInput: DateInput): void;
1889
- incrementDate(deltaInput: DurationInput): void;
1890
- getDate(): Date;
1891
- formatDate(d: DateInput, formatter: FormatterInput): string;
1892
- formatRange(d0: DateInput, d1: DateInput, settings: any): string;
1893
- formatIso(d: DateInput, omitTime?: boolean): string;
1894
- select(dateOrObj: DateInput | any, endDate?: DateInput): void;
1895
- unselect(): void;
1896
- addEvent(eventInput: EventInput, sourceInput?: EventSourceApi | string | boolean): EventApi | null;
1897
- getEventById(id: string): EventApi | null;
1898
- getEvents(): EventApi[];
1899
- removeAllEvents(): void;
1900
- getEventSources(): EventSourceApi[];
1901
- getEventSourceById(id: string): EventSourceApi | null;
1902
- addEventSource(sourceInput: EventSourceInput): EventSourceApi;
1903
- removeAllEventSources(): void;
1904
- refetchEvents(): void;
1905
- scrollToTime(timeInput: DurationInput): void;
1906
- }
1907
-
1908
- declare const BASE_OPTION_REFINERS: {
1909
- navLinkDayClick: Identity<string | ((this: CalendarApi, date: Date, jsEvent: UIEvent) => void)>;
1910
- navLinkWeekClick: Identity<string | ((this: CalendarApi, weekStart: Date, jsEvent: UIEvent) => void)>;
1911
- duration: typeof createDuration;
1912
- bootstrapFontAwesome: Identity<false | ButtonIconsInput>;
1913
- buttonIcons: Identity<false | ButtonIconsInput>;
1914
- customButtons: Identity<{
1915
- [name: string]: CustomButtonInput;
1916
- }>;
1917
- defaultAllDayEventDuration: typeof createDuration;
1918
- defaultTimedEventDuration: typeof createDuration;
1919
- nextDayThreshold: typeof createDuration;
1920
- scrollTime: typeof createDuration;
1921
- scrollTimeReset: BooleanConstructor;
1922
- slotMinTime: typeof createDuration;
1923
- slotMaxTime: typeof createDuration;
1924
- dayPopoverFormat: typeof createFormatter;
1925
- slotDuration: typeof createDuration;
1926
- snapDuration: typeof createDuration;
1927
- headerToolbar: Identity<false | ToolbarInput>;
1928
- footerToolbar: Identity<false | ToolbarInput>;
1929
- defaultRangeSeparator: StringConstructor;
1930
- titleRangeSeparator: StringConstructor;
1931
- forceEventDuration: BooleanConstructor;
1932
- dayHeaders: BooleanConstructor;
1933
- dayHeaderFormat: typeof createFormatter;
1934
- dayHeaderClassNames: Identity<ClassNamesGenerator<DayHeaderContentArg>>;
1935
- dayHeaderContent: Identity<CustomContentGenerator<DayHeaderContentArg>>;
1936
- dayHeaderDidMount: Identity<DidMountHandler<DayHeaderMountArg>>;
1937
- dayHeaderWillUnmount: Identity<WillUnmountHandler<DayHeaderMountArg>>;
1938
- dayCellClassNames: Identity<ClassNamesGenerator<DayCellContentArg>>;
1939
- dayCellContent: Identity<CustomContentGenerator<DayCellContentArg>>;
1940
- dayCellDidMount: Identity<DidMountHandler<DayCellMountArg>>;
1941
- dayCellWillUnmount: Identity<WillUnmountHandler<DayCellMountArg>>;
1942
- initialView: StringConstructor;
1943
- aspectRatio: NumberConstructor;
1944
- weekends: BooleanConstructor;
1945
- weekNumberCalculation: Identity<WeekNumberCalculation>;
1946
- weekNumbers: BooleanConstructor;
1947
- weekNumberClassNames: Identity<ClassNamesGenerator<WeekNumberContentArg>>;
1948
- weekNumberContent: Identity<CustomContentGenerator<WeekNumberContentArg>>;
1949
- weekNumberDidMount: Identity<DidMountHandler<WeekNumberMountArg>>;
1950
- weekNumberWillUnmount: Identity<WillUnmountHandler<WeekNumberMountArg>>;
1951
- editable: BooleanConstructor;
1952
- viewClassNames: Identity<ClassNamesGenerator<ViewContentArg>>;
1953
- viewDidMount: Identity<DidMountHandler<ViewMountArg>>;
1954
- viewWillUnmount: Identity<WillUnmountHandler<ViewMountArg>>;
1955
- nowIndicator: BooleanConstructor;
1956
- nowIndicatorClassNames: Identity<ClassNamesGenerator<NowIndicatorContentArg>>;
1957
- nowIndicatorContent: Identity<CustomContentGenerator<NowIndicatorContentArg>>;
1958
- nowIndicatorDidMount: Identity<DidMountHandler<NowIndicatorMountArg>>;
1959
- nowIndicatorWillUnmount: Identity<WillUnmountHandler<NowIndicatorMountArg>>;
1960
- showNonCurrentDates: BooleanConstructor;
1961
- lazyFetching: BooleanConstructor;
1962
- startParam: StringConstructor;
1963
- endParam: StringConstructor;
1964
- timeZoneParam: StringConstructor;
1965
- timeZone: StringConstructor;
1966
- locales: Identity<LocaleInput[]>;
1967
- locale: Identity<LocaleSingularArg>;
1968
- themeSystem: Identity<string>;
1969
- dragRevertDuration: NumberConstructor;
1970
- dragScroll: BooleanConstructor;
1971
- allDayMaintainDuration: BooleanConstructor;
1972
- unselectAuto: BooleanConstructor;
1973
- dropAccept: Identity<string | ((this: CalendarApi, draggable: any) => boolean)>;
1974
- eventOrder: typeof parseFieldSpecs;
1975
- eventOrderStrict: BooleanConstructor;
1976
- eventSlicing: BooleanConstructor;
1977
- longPressDelay: NumberConstructor;
1978
- eventDragMinDistance: NumberConstructor;
1979
- expandRows: BooleanConstructor;
1980
- height: Identity<CssDimValue>;
1981
- contentHeight: Identity<CssDimValue>;
1982
- direction: Identity<"ltr" | "rtl">;
1983
- weekNumberFormat: typeof createFormatter;
1984
- eventResizableFromStart: BooleanConstructor;
1985
- displayEventTime: BooleanConstructor;
1986
- displayEventEnd: BooleanConstructor;
1987
- weekText: StringConstructor;
1988
- weekTextLong: StringConstructor;
1989
- progressiveEventRendering: BooleanConstructor;
1990
- businessHours: Identity<BusinessHoursInput>;
1991
- initialDate: Identity<DateInput>;
1992
- now: Identity<DateInput | ((this: CalendarApi) => DateInput)>;
1993
- eventDataTransform: Identity<EventInputTransformer>;
1994
- stickyHeaderDates: Identity<boolean | "auto">;
1995
- stickyFooterScrollbar: Identity<boolean | "auto">;
1996
- defaultAllDay: BooleanConstructor;
1997
- eventSourceFailure: Identity<(this: CalendarApi, error: any) => void>;
1998
- eventSourceSuccess: Identity<(this: CalendarApi, eventsInput: EventInput[], response?: Response) => EventInput[] | void>;
1999
- eventDisplay: StringConstructor;
2000
- eventStartEditable: BooleanConstructor;
2001
- eventDurationEditable: BooleanConstructor;
2002
- eventOverlap: Identity<boolean | OverlapFunc>;
2003
- eventConstraint: Identity<ConstraintInput>;
2004
- eventAllow: Identity<AllowFunc>;
2005
- eventBackgroundColor: StringConstructor;
2006
- eventBorderColor: StringConstructor;
2007
- eventTextColor: StringConstructor;
2008
- eventColor: StringConstructor;
2009
- eventClassNames: Identity<ClassNamesGenerator<EventContentArg>>;
2010
- eventContent: Identity<CustomContentGenerator<EventContentArg>>;
2011
- eventDidMount: Identity<DidMountHandler<EventMountArg>>;
2012
- eventWillUnmount: Identity<WillUnmountHandler<EventMountArg>>;
2013
- selectConstraint: Identity<ConstraintInput>;
2014
- selectOverlap: Identity<boolean | OverlapFunc>;
2015
- selectAllow: Identity<AllowFunc>;
2016
- droppable: BooleanConstructor;
2017
- unselectCancel: StringConstructor;
2018
- slotLabelFormat: Identity<FormatterInput | FormatterInput[]>;
2019
- slotLaneClassNames: Identity<ClassNamesGenerator<SlotLaneContentArg>>;
2020
- slotLaneContent: Identity<CustomContentGenerator<SlotLaneContentArg>>;
2021
- slotLaneDidMount: Identity<DidMountHandler<SlotLaneMountArg>>;
2022
- slotLaneWillUnmount: Identity<WillUnmountHandler<SlotLaneMountArg>>;
2023
- slotLabelClassNames: Identity<ClassNamesGenerator<SlotLabelContentArg>>;
2024
- slotLabelContent: Identity<CustomContentGenerator<SlotLabelContentArg>>;
2025
- slotLabelDidMount: Identity<DidMountHandler<SlotLabelMountArg>>;
2026
- slotLabelWillUnmount: Identity<WillUnmountHandler<SlotLabelMountArg>>;
2027
- dayMaxEvents: Identity<number | boolean>;
2028
- dayMaxEventRows: Identity<number | boolean>;
2029
- dayMinWidth: NumberConstructor;
2030
- slotLabelInterval: typeof createDuration;
2031
- allDayText: StringConstructor;
2032
- allDayClassNames: Identity<ClassNamesGenerator<AllDayContentArg>>;
2033
- allDayContent: Identity<CustomContentGenerator<AllDayContentArg>>;
2034
- allDayDidMount: Identity<DidMountHandler<AllDayMountArg>>;
2035
- allDayWillUnmount: Identity<WillUnmountHandler<AllDayMountArg>>;
2036
- timedText: StringConstructor;
2037
- slotMinWidth: NumberConstructor;
2038
- navLinks: BooleanConstructor;
2039
- eventTimeFormat: typeof createFormatter;
2040
- rerenderDelay: NumberConstructor;
2041
- moreLinkText: Identity<string | ((this: CalendarApi, num: number) => string)>;
2042
- moreLinkHint: Identity<string | ((this: CalendarApi, num: number) => string)>;
2043
- selectMinDistance: NumberConstructor;
2044
- selectable: BooleanConstructor;
2045
- selectLongPressDelay: NumberConstructor;
2046
- eventLongPressDelay: NumberConstructor;
2047
- selectMirror: BooleanConstructor;
2048
- eventMaxStack: NumberConstructor;
2049
- eventMinHeight: NumberConstructor;
2050
- eventMinWidth: NumberConstructor;
2051
- eventShortHeight: NumberConstructor;
2052
- slotEventOverlap: BooleanConstructor;
2053
- plugins: Identity<PluginDef[]>;
2054
- firstDay: NumberConstructor;
2055
- dayCount: NumberConstructor;
2056
- dateAlignment: StringConstructor;
2057
- dateIncrement: typeof createDuration;
2058
- hiddenDays: Identity<number[]>;
2059
- fixedWeekCount: BooleanConstructor;
2060
- validRange: Identity<DateRangeInput | ((this: CalendarApi, nowDate: Date) => DateRangeInput)>;
2061
- visibleRange: Identity<DateRangeInput | ((this: CalendarApi, currentDate: Date) => DateRangeInput)>;
2062
- titleFormat: Identity<FormatterInput>;
2063
- eventInteractive: BooleanConstructor;
2064
- noEventsText: StringConstructor;
2065
- viewHint: Identity<string | ((...args: any[]) => string)>;
2066
- viewChangeHint: StringConstructor;
2067
- navLinkHint: Identity<string | ((...args: any[]) => string)>;
2068
- closeHint: StringConstructor;
2069
- eventsHint: StringConstructor;
2070
- headingLevel: NumberConstructor;
2071
- moreLinkClick: Identity<MoreLinkAction>;
2072
- moreLinkClassNames: Identity<ClassNamesGenerator<MoreLinkContentArg>>;
2073
- moreLinkContent: Identity<CustomContentGenerator<MoreLinkContentArg>>;
2074
- moreLinkDidMount: Identity<DidMountHandler<MoreLinkMountArg>>;
2075
- moreLinkWillUnmount: Identity<WillUnmountHandler<MoreLinkMountArg>>;
2076
- monthStartFormat: typeof createFormatter;
2077
- handleCustomRendering: Identity<CustomRenderingHandler<any>>;
2078
- customRenderingMetaMap: Identity<{
2079
- [optionName: string]: any;
2080
- }>;
2081
- customRenderingReplaces: BooleanConstructor;
2082
- };
2083
- type BuiltInBaseOptionRefiners = typeof BASE_OPTION_REFINERS;
2084
- interface BaseOptionRefiners extends BuiltInBaseOptionRefiners {
2085
- }
2086
- type BaseOptions = RawOptionsFromRefiners<// as RawOptions
2087
- Required<BaseOptionRefiners>>;
2088
- declare const BASE_OPTION_DEFAULTS: {
2089
- eventDisplay: string;
2090
- defaultRangeSeparator: string;
2091
- titleRangeSeparator: string;
2092
- defaultTimedEventDuration: string;
2093
- defaultAllDayEventDuration: {
2094
- day: number;
2095
- };
2096
- forceEventDuration: boolean;
2097
- nextDayThreshold: string;
2098
- dayHeaders: boolean;
2099
- initialView: string;
2100
- aspectRatio: number;
2101
- headerToolbar: {
2102
- start: string;
2103
- center: string;
2104
- end: string;
2105
- };
2106
- weekends: boolean;
2107
- weekNumbers: boolean;
2108
- weekNumberCalculation: WeekNumberCalculation;
2109
- editable: boolean;
2110
- nowIndicator: boolean;
2111
- scrollTime: string;
2112
- scrollTimeReset: boolean;
2113
- slotMinTime: string;
2114
- slotMaxTime: string;
2115
- showNonCurrentDates: boolean;
2116
- lazyFetching: boolean;
2117
- startParam: string;
2118
- endParam: string;
2119
- timeZoneParam: string;
2120
- timeZone: string;
2121
- locales: any[];
2122
- locale: string;
2123
- themeSystem: string;
2124
- dragRevertDuration: number;
2125
- dragScroll: boolean;
2126
- allDayMaintainDuration: boolean;
2127
- unselectAuto: boolean;
2128
- dropAccept: string;
2129
- eventOrder: string;
2130
- dayPopoverFormat: {
2131
- month: string;
2132
- day: string;
2133
- year: string;
2134
- };
2135
- longPressDelay: number;
2136
- eventDragMinDistance: number;
2137
- expandRows: boolean;
2138
- navLinks: boolean;
2139
- selectable: boolean;
2140
- eventMinHeight: number;
2141
- eventMinWidth: number;
2142
- eventShortHeight: number;
2143
- monthStartFormat: {
2144
- month: string;
2145
- day: string;
2146
- };
2147
- headingLevel: number;
2148
- };
2149
- type BaseOptionsRefined = DefaultedRefinedOptions<RefinedOptionsFromRefiners<Required<BaseOptionRefiners>>, // Required is a hack for "Index signature is missing"
2150
- keyof typeof BASE_OPTION_DEFAULTS>;
2151
- declare const CALENDAR_LISTENER_REFINERS: {
2152
- datesSet: Identity<(arg: DatesSetArg) => void>;
2153
- eventsSet: Identity<(events: EventApi[]) => void>;
2154
- eventAdd: Identity<(arg: EventAddArg) => void>;
2155
- eventChange: Identity<(arg: EventChangeArg) => void>;
2156
- eventRemove: Identity<(arg: EventRemoveArg) => void>;
2157
- eventClick: Identity<(arg: EventClickArg) => void>;
2158
- eventMouseEnter: Identity<(arg: EventHoveringArg) => void>;
2159
- eventMouseLeave: Identity<(arg: EventHoveringArg) => void>;
2160
- select: Identity<(arg: DateSelectArg) => void>;
2161
- unselect: Identity<(arg: DateUnselectArg) => void>;
2162
- loading: Identity<(isLoading: boolean) => void>;
2163
- _unmount: Identity<() => void>;
2164
- _beforeprint: Identity<() => void>;
2165
- _afterprint: Identity<() => void>;
2166
- _noEventDrop: Identity<() => void>;
2167
- _noEventResize: Identity<() => void>;
2168
- _timeScrollRequest: Identity<(time: Duration) => void>;
2169
- };
2170
- type BuiltInCalendarListenerRefiners = typeof CALENDAR_LISTENER_REFINERS;
2171
- interface CalendarListenerRefiners extends BuiltInCalendarListenerRefiners {
2172
- }
2173
- type CalendarListenersLoose = RefinedOptionsFromRefiners<Required<CalendarListenerRefiners>>;
2174
- type CalendarListeners = Required<CalendarListenersLoose>;
2175
- declare const CALENDAR_OPTION_REFINERS: {
2176
- buttonText: Identity<ButtonTextCompoundInput>;
2177
- buttonHints: Identity<ButtonHintCompoundInput>;
2178
- views: Identity<{
2179
- [viewId: string]: ViewOptions;
2180
- }>;
2181
- plugins: Identity<PluginDef[]>;
2182
- initialEvents: Identity<EventSourceInput>;
2183
- events: Identity<EventSourceInput>;
2184
- eventSources: Identity<EventSourceInput[]>;
2185
- };
2186
- type BuiltInCalendarOptionRefiners = typeof CALENDAR_OPTION_REFINERS;
2187
- interface CalendarOptionRefiners extends BuiltInCalendarOptionRefiners {
2188
- }
2189
- type CalendarOptions = BaseOptions & CalendarListenersLoose & RawOptionsFromRefiners<Required<CalendarOptionRefiners>>;
2190
- type CalendarOptionsRefined = BaseOptionsRefined & CalendarListenersLoose & RefinedOptionsFromRefiners<Required<CalendarOptionRefiners>>;
2191
- declare const VIEW_OPTION_REFINERS: {
2192
- [name: string]: any;
2193
- };
2194
- type BuiltInViewOptionRefiners = typeof VIEW_OPTION_REFINERS;
2195
- interface ViewOptionRefiners extends BuiltInViewOptionRefiners {
2196
- }
2197
- type ViewOptions = BaseOptions & CalendarListenersLoose & RawOptionsFromRefiners<Required<ViewOptionRefiners>>;
2198
- type ViewOptionsRefined = BaseOptionsRefined & CalendarListenersLoose & RefinedOptionsFromRefiners<Required<ViewOptionRefiners>>;
2199
- declare function refineProps<Refiners extends GenericRefiners, Raw extends RawOptionsFromRefiners<Refiners>>(input: Raw, refiners: Refiners): {
2200
- refined: RefinedOptionsFromRefiners<Refiners>;
2201
- extra: Dictionary;
2202
- };
2203
- type GenericRefiners = {
2204
- [propName: string]: (input: any) => any;
2205
- };
2206
- type GenericListenerRefiners = {
2207
- [listenerName: string]: Identity<(this: CalendarApi, ...args: any[]) => void>;
2208
- };
2209
- type RawOptionsFromRefiners<Refiners extends GenericRefiners> = {
2210
- [Prop in keyof Refiners]?: Refiners[Prop] extends ((input: infer RawType) => infer RefinedType) ? (any extends RawType ? RefinedType : RawType) : never;
2211
- };
2212
- type RefinedOptionsFromRefiners<Refiners extends GenericRefiners> = {
2213
- [Prop in keyof Refiners]?: Refiners[Prop] extends ((input: any) => infer RefinedType) ? RefinedType : never;
2214
- };
2215
- type DefaultedRefinedOptions<RefinedOptions extends Dictionary, DefaultKey extends keyof RefinedOptions> = Required<Pick<RefinedOptions, DefaultKey>> & Partial<Omit<RefinedOptions, DefaultKey>>;
2216
- type Dictionary = Record<string, any>;
2217
- type Identity<T = any> = (raw: T) => T;
2218
- declare function identity<T>(raw: T): T;
2219
-
2220
- declare class JsonRequestError extends Error {
2221
- response: Response;
2222
- constructor(message: string, response: Response);
2223
- }
2224
- declare function requestJson<ParsedResponse>(method: string, url: string, params: Dictionary): Promise<[ParsedResponse, Response]>;
2225
-
2226
- declare function computeVisibleDayRange(timedRange: OpenDateRange, nextDayThreshold?: Duration): OpenDateRange;
2227
- declare function diffDates(date0: DateMarker, date1: DateMarker, dateEnv: DateEnv, largeUnit?: string): Duration;
2228
-
2229
- declare function removeExact(array: any, exactVal: any): number;
2230
- declare function isArraysEqual(a0: any, a1: any, equalityFunc?: (v0: any, v1: any) => boolean): boolean;
2231
-
2232
- declare function memoize<Args extends any[], Res>(workerFunc: (...args: Args) => Res, resEquality?: (res0: Res, res1: Res) => boolean, teardownFunc?: (res: Res) => void): (...args: Args) => Res;
2233
- declare function memoizeObjArg<Arg extends Dictionary, Res>(workerFunc: (arg: Arg) => Res, resEquality?: (res0: Res, res1: Res) => boolean, teardownFunc?: (res: Res) => void): (arg: Arg) => Res;
2234
-
2235
- declare function applyStyle(el: HTMLElement, props: Dictionary): void;
2236
- declare function getEventTargetViaRoot(ev: Event): EventTarget;
2237
- declare function getUniqueDomId(): string;
2238
-
2239
- declare function isDimsEqual(v0: number | undefined, v1: number): boolean;
2240
-
2241
- type SizeCallback = (width: number, height: number) => void;
2242
- type DisconnectSize = () => void;
2243
- type WatchSize = (el: HTMLElement, callback: SizeCallback, watchWidth?: boolean, watchHeight?: boolean) => DisconnectSize;
2244
- declare function afterSize(callback: () => void): void;
2245
- declare const watchSize: WatchSize;
2246
- declare function watchWidth(el: HTMLElement, callback: (width: number) => void): DisconnectSize;
2247
- declare function watchHeight(el: HTMLElement, callback: (height: number) => void): DisconnectSize;
2248
-
2249
- declare function buildDateStr(context: ViewContext, dateMarker: DateMarker, viewType?: string): string;
2250
- declare function buildNavLinkAttrs(context: ViewContext, dateMarker: DateMarker, viewType?: string, dateStr?: string, isTabbable?: boolean): {
2251
- tabIndex: number;
2252
- onKeyDown(ev: KeyboardEvent): void;
2253
- onClick: (ev: UIEvent) => void;
2254
- role: any;
2255
- 'aria-label': any;
2256
- className: string;
2257
- } | {
2258
- onClick: (ev: UIEvent) => void;
2259
- role: any;
2260
- 'aria-label': any;
2261
- className: string;
2262
- };
2263
-
2264
- declare function preventDefault(ev: any): void;
2265
- declare function whenTransitionDone(el: HTMLElement, callback: (ev: Event) => void): void;
2266
-
2267
- interface EdgeInfo {
2268
- borderLeft: number;
2269
- borderRight: number;
2270
- borderTop: number;
2271
- borderBottom: number;
2272
- scrollbarLeft: number;
2273
- scrollbarRight: number;
2274
- scrollbarBottom: number;
2275
- paddingLeft?: number;
2276
- paddingRight?: number;
2277
- paddingTop?: number;
2278
- paddingBottom?: number;
2279
- }
2280
- declare function computeEdges(el: HTMLElement, getPadding?: boolean): EdgeInfo;
2281
- declare function computeInnerRect(el: any, goWithinPadding?: boolean, doFromWindowViewport?: boolean): {
2282
- left: any;
2283
- right: number;
2284
- top: any;
2285
- bottom: number;
2286
- };
2287
- declare function computeRect(el: any): Rect;
2288
- declare function getClippingParents(el: HTMLElement): HTMLElement[];
2289
-
2290
- declare function unpromisify<Res>(func: (successCallback: (res: Res) => void, failureCallback: (error: Error) => void) => Promise<Res> | void, normalizedSuccessCallback: (res: Res) => void, normalizedFailureCallback: (error: Error) => void): void;
2291
-
2292
- declare class PositionCache {
2293
- els: HTMLElement[];
2294
- originClientRect: ClientRect;
2295
- lefts: any;
2296
- rights: any;
2297
- tops: any;
2298
- bottoms: any;
2299
- constructor(originEl: HTMLElement, els: HTMLElement[], isHorizontal: boolean, isVertical: boolean);
2300
- buildElHorizontals(originClientLeft: number): void;
2301
- buildElVerticals(originClientTop: number): void;
2302
- leftToIndex(leftPosition: number): any;
2303
- topToIndex(topPosition: number): any;
2304
- getWidth(leftIndex: number): number;
2305
- getHeight(topIndex: number): number;
2306
- similarTo(otherCache: PositionCache): boolean;
2307
- }
2308
-
2309
- declare abstract class ScrollController {
2310
- abstract getScrollTop(): number;
2311
- abstract getScrollLeft(): number;
2312
- abstract setScrollTop(top: number): void;
2313
- abstract setScrollLeft(left: number): void;
2314
- abstract getClientWidth(): number;
2315
- abstract getClientHeight(): number;
2316
- abstract getScrollWidth(): number;
2317
- abstract getScrollHeight(): number;
2318
- getMaxScrollTop(): number;
2319
- getMaxScrollLeft(): number;
2320
- canScrollVertically(): boolean;
2321
- canScrollHorizontally(): boolean;
2322
- canScrollUp(): boolean;
2323
- canScrollDown(): boolean;
2324
- canScrollLeft(): boolean;
2325
- canScrollRight(): boolean;
2326
- }
2327
- declare class ElementScrollController extends ScrollController {
2328
- el: HTMLElement;
2329
- constructor(el: HTMLElement);
2330
- getScrollTop(): number;
2331
- getScrollLeft(): number;
2332
- setScrollTop(top: number): void;
2333
- setScrollLeft(left: number): void;
2334
- getScrollWidth(): number;
2335
- getScrollHeight(): number;
2336
- getClientHeight(): number;
2337
- getClientWidth(): number;
2338
- }
2339
- declare class WindowScrollController extends ScrollController {
2340
- getScrollTop(): number;
2341
- getScrollLeft(): number;
2342
- setScrollTop(n: number): void;
2343
- setScrollLeft(n: number): void;
2344
- getScrollWidth(): number;
2345
- getScrollHeight(): number;
2346
- getClientHeight(): number;
2347
- getClientWidth(): number;
2348
- }
2349
-
2350
- declare function buildIsoString(marker: DateMarker, timeZoneOffset?: number, stripZeroTime?: boolean): string;
2351
- declare function formatDayString(marker: DateMarker): string;
2352
- declare function formatIsoMonthStr(marker: DateMarker): string;
2353
- declare function formatIsoTimeString(marker: DateMarker): string;
2354
-
2355
- declare function parse(str: any): {
2356
- marker: Date;
2357
- isTimeUnspecified: boolean;
2358
- timeZoneOffset: any;
2359
- };
2360
-
2361
- interface CoordSpan {
2362
- start: number;
2363
- size: number;
2364
- }
2365
- interface CoordRange {
2366
- start: number;
2367
- end: number;
2368
- }
2369
- interface SlicedCoordRange extends CoordRange {
2370
- isStart: boolean;
2371
- isEnd: boolean;
2372
- }
2373
- declare function getCoordRangeEnd(r: CoordRange): number;
2374
- declare function computeEarliestStart(segs: EventRangeProps[]): DateMarker;
2375
- declare function computeLatestEnd(segs: EventRangeProps[]): DateMarker;
2376
-
2377
- type EventSeg<R extends SlicedCoordRange> = R & EventRangeProps & {
2378
- isSlice?: boolean;
2379
- };
2380
- type EventPlacement<R extends SlicedCoordRange> = EventSeg<R> & {
2381
- thickness: number;
2382
- depth: number;
2383
- isSlice: boolean;
2384
- isZombie: boolean;
2385
- };
2386
- interface EventInsertion<R extends SlicedCoordRange> {
2387
- levelIndex: number;
2388
- levelCoord: number;
2389
- lateralIndex: number;
2390
- touchingPlacement: EventPlacement<R> | undefined;
2391
- depth: number;
2392
- }
2393
- declare class SegHierarchy<R extends SlicedCoordRange> {
2394
- private getSegThickness;
2395
- strictOrder: boolean;
2396
- private maxCoord;
2397
- private maxDepth;
2398
- private hiddenConsumes;
2399
- private allowSlicing;
2400
- placementsByLevel: EventPlacement<R>[][];
2401
- levelCoords: number[];
2402
- hiddenSegs: EventSeg<R>[];
2403
- constructor(segs: EventSeg<R>[], getSegThickness: (seg: EventSeg<R>) => number | undefined, strictOrder: boolean, // HACK
2404
- maxCoord: number | undefined, maxDepth: number | undefined, hiddenConsumes?: boolean, // hidden segs also hide the touchingPlacement?
2405
- allowSlicing?: boolean);
2406
- private insertSeg;
2407
- private isInsertionValid;
2408
- private splitSeg;
2409
- private insertSegAt;
2410
- findInsertion(seg: CoordRange, segThickness: number): EventInsertion<R>;
2411
- traverseSegs(handler: (seg: EventPlacement<R>, levelCoord: number) => void): void;
2412
- }
2413
- interface SegInternalGroup<R extends SlicedCoordRange> extends CoordRange {
2414
- segs: EventSeg<R>[];
2415
- }
2416
- interface SegGroup<R extends SlicedCoordRange> extends SegInternalGroup<R> {
2417
- key: string;
2418
- }
2419
- declare function groupIntersectingSegs<R extends SlicedCoordRange>(segs: EventSeg<R>[]): SegGroup<R>[];
2420
- declare function binarySearch<Item>(a: Item[], searchVal: number, getItemVal: (item: Item) => number): [number, number];
2421
-
2422
- declare const config: any;
2423
-
2424
- interface CalendarRootProps {
2425
- options: CalendarOptions;
2426
- theme: Theme;
2427
- emitter: Emitter<CalendarListeners>;
2428
- children: (classNames: string[], height: CssDimValue | undefined, forPrint: boolean) => ComponentChildren;
2429
- }
2430
- interface CalendarRootState {
2431
- forPrint: boolean;
2432
- }
2433
- declare class CalendarRoot extends BaseComponent<CalendarRootProps, CalendarRootState> {
2434
- state: CalendarRootState;
2435
- render(): ComponentChildren;
2436
- componentDidMount(): void;
2437
- componentWillUnmount(): void;
2438
- handleBeforePrint: () => void;
2439
- handleAfterPrint: () => void;
2440
- }
2441
-
2442
- declare class DaySeriesModel {
2443
- cnt: number;
2444
- dates: DateMarker[];
2445
- indices: number[];
2446
- constructor(range: DateRange, dateProfileGenerator: DateProfileGenerator);
2447
- sliceRange(range: DateRange): SlicedCoordRange | null;
2448
- private getDateDayIndex;
2449
- }
2450
-
2451
- interface DayGridRange extends SlicedCoordRange {
2452
- row: number;
2453
- }
2454
- interface DayTableCell {
2455
- key: string;
2456
- date: DateMarker;
2457
- renderProps?: Dictionary;
2458
- attrs?: Dictionary;
2459
- className?: string;
2460
- dateSpanProps?: Dictionary;
2461
- }
2462
- declare class DayTableModel {
2463
- rowCnt: number;
2464
- colCnt: number;
2465
- cellRows: DayTableCell[][];
2466
- headerDates: DateMarker[];
2467
- private daySeries;
2468
- constructor(daySeries: DaySeriesModel, breakOnWeeks: boolean);
2469
- buildCells(): any[];
2470
- private buildCell;
2471
- private buildHeaderDates;
2472
- sliceRange(range: DateRange): DayGridRange[];
2473
- }
2474
-
2475
- declare class ScrollListener {
2476
- el: HTMLElement;
2477
- emitter: Emitter<{
2478
- scrollStart: (isUser: boolean) => void;
2479
- scroll: (isUser: boolean) => void;
2480
- scrollEnd: (isUser: boolean) => void;
2481
- }>;
2482
- private wheelWaiter;
2483
- private scrollWaiter;
2484
- private isScroll;
2485
- private isScrollRecent;
2486
- private isWheelRecent;
2487
- private isMouseDown;
2488
- private isTouchDown;
2489
- private isMouse;
2490
- private isTouch;
2491
- private isWheel;
2492
- constructor(el: HTMLElement);
2493
- destroy(): void;
2494
- private startScroll;
2495
- endScroll(): void;
2496
- private getIsUser;
2497
- private handleScroll;
2498
- private handleScrollWait;
2499
- private handleWheel;
2500
- private handleWheelWait;
2501
- private handleMouseDown;
2502
- private handleMouseUp;
2503
- private handleTouchStart;
2504
- private handleTouchEnd;
2505
- }
2506
-
2507
- interface ScrollerProps {
2508
- vertical?: boolean;
2509
- horizontal?: boolean;
2510
- hideScrollbars?: boolean;
2511
- children: ComponentChildren;
2512
- clientWidthRef?: Ref<number>;
2513
- clientHeightRef?: Ref<number>;
2514
- bottomScrollbarWidthRef?: Ref<number>;
2515
- className?: string;
2516
- style?: Dictionary;
2517
- }
2518
- declare class Scroller extends DateComponent<ScrollerProps> implements ScrollerInterface {
2519
- private el?;
2520
- listener: ScrollListener;
2521
- private disconnectHRuler?;
2522
- private disconnectVRuler?;
2523
- private clientWidth?;
2524
- private clientHeight?;
2525
- private bottomScrollbarWidth?;
2526
- render(): createElement.JSX.Element;
2527
- handleEl: (el: HTMLDivElement | null) => void;
2528
- handleHRuler: (el: HTMLDivElement | null) => void;
2529
- handleVRuler: (el: HTMLDivElement | null) => void;
2530
- endScroll(): void;
2531
- get x(): number;
2532
- get y(): number;
2533
- scrollTo({ x, y }: {
2534
- x?: number;
2535
- y?: number;
2536
- }): void;
2537
- addScrollEndListener(handler: (isUser: boolean) => void): void;
2538
- removeScrollEndListener(handler: (isUser: boolean) => void): void;
2539
- }
2540
- declare function getNormalizedScrollX(el: HTMLElement, isRtl: boolean): number;
2541
- declare function setNormalizedScrollX(el: HTMLElement, isRtl: boolean, x: number): void;
2542
-
2543
- interface SliceableProps {
2544
- dateSelection: DateSpan;
2545
- businessHours: EventStore;
2546
- eventStore: EventStore;
2547
- eventDrag: EventInteractionState | null;
2548
- eventResize: EventInteractionState | null;
2549
- eventSelection: string;
2550
- eventUiBases: EventUiHash;
2551
- }
2552
- interface SlicedProps<R> {
2553
- fgEventSegs: (R & EventRangeProps)[];
2554
- bgEventSegs: (R & EventRangeProps)[];
2555
- businessHourSegs: (R & EventRangeProps)[];
2556
- dateSelectionSegs: (R & EventRangeProps)[];
2557
- eventDrag: EventSegUiInteractionState<R> | null;
2558
- eventResize: EventSegUiInteractionState<R> | null;
2559
- eventSelection: string;
2560
- }
2561
- declare abstract class Slicer<R, ExtraArgs extends any[] = []> {
2562
- private sliceBusinessHours;
2563
- private sliceDateSelection;
2564
- private sliceEventStore;
2565
- private sliceEventDrag;
2566
- private sliceEventResize;
2567
- abstract sliceRange(dateRange: DateRange, ...extraArgs: ExtraArgs): R[];
2568
- protected forceDayIfListItem: boolean;
2569
- sliceProps(props: SliceableProps, dateProfile: DateProfile, nextDayThreshold: Duration | null, context: CalendarContext, ...extraArgs: ExtraArgs): SlicedProps<R>;
2570
- sliceNowDate(// does not memoize
2571
- date: DateMarker, dateProfile: DateProfile, nextDayThreshold: Duration | null, context: CalendarContext, ...extraArgs: ExtraArgs): R[];
2572
- private _sliceBusinessHours;
2573
- private _sliceEventStore;
2574
- private _sliceInteraction;
2575
- private _sliceDateSpan;
2576
- private sliceEventRanges;
2577
- private sliceEventRange;
2578
- }
2579
-
2580
- declare function isInteractionValid(interaction: EventInteractionState, dateProfile: DateProfile, context: CalendarContext): boolean;
2581
- declare function isDateSelectionValid(dateSelection: DateSpan, dateProfile: DateProfile, context: CalendarContext): boolean;
2582
- declare function isPropsValid(state: SplittableProps, context: CalendarContext, dateSpanMeta?: {}, filterConfig?: any): boolean;
2583
-
2584
- declare class DelayedRunner {
2585
- private drainedOption?;
2586
- private isRunning;
2587
- private isDirty;
2588
- private pauseDepths;
2589
- private timeoutId;
2590
- constructor(drainedOption?: () => void);
2591
- request(delay?: number): void;
2592
- pause(scope?: string): void;
2593
- resume(scope?: string, force?: boolean): void;
2594
- isPaused(): number;
2595
- tryDrain(): void;
2596
- clear(): void;
2597
- private clearTimeout;
2598
- protected drained(): void;
2599
- }
2600
-
2601
- interface RulerProps {
2602
- widthRef: Ref<number>;
2603
- }
2604
- declare class Ruler extends BaseComponent<RulerProps> {
2605
- private elRef;
2606
- private disconnectWidth?;
2607
- render(): createElement.JSX.Element;
2608
- componentDidMount(): void;
2609
- componentWillUnmount(): void;
2610
- }
2611
-
2612
- declare class RefMap<K, V> {
2613
- masterCallback?: (val: V, key: K) => void;
2614
- rev: string;
2615
- current: Map<K, V>;
2616
- private callbacks;
2617
- constructor(masterCallback?: (val: V, key: K) => void);
2618
- createRef(key: K): (val: V) => void;
2619
- handleValue: (val: V, key: K) => void;
2620
- }
2621
-
2622
- interface NowTimerProps {
2623
- unit: string;
2624
- children: (now: DateMarker, todayRange: DateRange) => ComponentChildren;
2625
- }
2626
- interface NowTimerState {
2627
- nowDate: DateMarker;
2628
- todayRange: DateRange;
2629
- }
2630
- declare class NowTimer extends Component<NowTimerProps, NowTimerState> {
2631
- static contextType: any;
2632
- context: ViewContext;
2633
- initialNowDate: DateMarker;
2634
- initialNowQueriedMs: number;
2635
- timeoutId: any;
2636
- constructor(props: NowTimerProps, context: ViewContext);
2637
- render(): ComponentChildren;
2638
- componentDidMount(): void;
2639
- componentDidUpdate(prevProps: NowTimerProps): void;
2640
- componentWillUnmount(): void;
2641
- private computeTiming;
2642
- private setTimeout;
2643
- private clearTimeout;
2644
- }
2645
-
2646
- interface StandardEventProps {
2647
- elRef?: ElRef;
2648
- className?: string;
2649
- eventRange: EventRenderRange;
2650
- slicedStart?: DateMarker;
2651
- slicedEnd?: DateMarker;
2652
- isStart: boolean;
2653
- isEnd: boolean;
2654
- isDragging: boolean;
2655
- isResizing: boolean;
2656
- isDateSelecting: boolean;
2657
- isSelected: boolean;
2658
- isPast: boolean;
2659
- isFuture: boolean;
2660
- isToday: boolean;
2661
- disableDragging?: boolean;
2662
- disableResizing?: boolean;
2663
- defaultTimeFormat: DateFormatter;
2664
- defaultDisplayEventTime?: boolean;
2665
- defaultDisplayEventEnd?: boolean;
2666
- }
2667
- declare class StandardEvent extends BaseComponent<StandardEventProps> {
2668
- render(): createElement.JSX.Element;
2669
- }
2670
-
2671
- interface MinimalEventProps {
2672
- eventRange: EventRenderRange;
2673
- slicedStart?: DateMarker;
2674
- slicedEnd?: DateMarker;
2675
- isStart: boolean;
2676
- isEnd: boolean;
2677
- isDragging: boolean;
2678
- isResizing: boolean;
2679
- isDateSelecting: boolean;
2680
- isSelected: boolean;
2681
- isPast: boolean;
2682
- isFuture: boolean;
2683
- isToday: boolean;
2684
- }
2685
- type EventContainerProps = ElProps & MinimalEventProps & {
2686
- defaultGenerator: (renderProps: EventContentArg) => ComponentChild;
2687
- disableDragging?: boolean;
2688
- disableResizing?: boolean;
2689
- timeText: string;
2690
- children?: InnerContainerFunc<EventContentArg>;
2691
- };
2692
- declare class EventContainer extends BaseComponent<EventContainerProps> {
2693
- private buildPublicEvent;
2694
- el: HTMLElement;
2695
- render(): createElement.JSX.Element;
2696
- handleEl: (el: HTMLElement | null) => void;
2697
- componentDidUpdate(prevProps: EventContainerProps): void;
2698
- }
2699
-
2700
- interface BgEventProps {
2701
- eventRange: EventRenderRange;
2702
- isStart: boolean;
2703
- isEnd: boolean;
2704
- isPast: boolean;
2705
- isFuture: boolean;
2706
- isToday: boolean;
2707
- }
2708
- declare class BgEvent extends BaseComponent<BgEventProps> {
2709
- render(): createElement.JSX.Element;
2710
- }
2711
- declare function renderFill(fillType: string): createElement.JSX.Element;
2712
-
2713
- declare function injectStyles(styleText: string): void;
2714
-
2715
- interface FooterScrollbarProps {
2716
- isSticky?: boolean;
2717
- canvasWidth: CssDimValue;
2718
- scrollerRef?: Ref<Scroller>;
2719
- scrollbarWidthRef?: Ref<number>;
2720
- }
2721
- declare class FooterScrollbar extends BaseComponent<FooterScrollbarProps> {
2722
- rootElRef: preact.RefObject<HTMLDivElement>;
2723
- disconnectHeight?: () => void;
2724
- render(): createElement.JSX.Element;
2725
- componentDidMount(): void;
2726
- componentWillUnmount(): void;
2727
- }
2728
-
2729
- export { DayCellMountArg as $, AllowFunc as A, BusinessHoursInput as B, CalendarImpl as C, DateInput as D, EventSourceApi as E, FormatterInput as F, WeekNumberContentArg as G, WeekNumberMountArg as H, MoreLinkMountArg as I, JsonRequestError as J, SlotLaneContentArg as K, LocaleInput as L, MoreLinkContentArg as M, NativeFormatterOptions as N, OverlapFunc as O, PluginDefInput as P, SlotLaneMountArg as Q, SlotLabelContentArg as R, SpecificViewContentArg as S, SlotLabelMountArg as T, AllDayContentArg as U, ViewApi as V, WillUnmountHandler as W, AllDayMountArg as X, DayHeaderContentArg as Y, DayHeaderMountArg as Z, DayCellContentArg as _, CalendarOptions as a, enableCursor as a$, ViewContentArg as a0, ViewMountArg as a1, EventClickArg as a2, EventHoveringArg as a3, DateSelectArg as a4, DateUnselectArg as a5, WeekNumberCalculation as a6, ToolbarInput as a7, CustomButtonInput as a8, ButtonIconsInput as a9, RefinedOptionsFromRefiners as aA, CalendarListenerRefiners as aB, BASE_OPTION_DEFAULTS as aC, identity as aD, refineProps as aE, EventDef as aF, EventDefHash as aG, EventInstance as aH, EventInstanceHash as aI, createEventInstance as aJ, EventRefined as aK, EventTuple as aL, EventRefiners as aM, parseEventDef as aN, refineEventDef as aO, parseBusinessHours as aP, OrderSpec as aQ, padStart as aR, isInt as aS, parseFieldSpecs as aT, compareByFieldSpecs as aU, flexibleCompare as aV, preventSelection as aW, allowSelection as aX, preventContextMenu as aY, allowContextMenu as aZ, compareNumbers as a_, ButtonTextCompoundInput as aa, EventContentArg as ab, EventMountArg as ac, DatesSetArg as ad, EventAddArg as ae, EventChangeArg as af, EventDropArg as ag, EventRemoveArg as ah, ButtonHintCompoundInput as ai, CustomRenderingHandler as aj, CustomRenderingStore as ak, DateSpanApi as al, DatePointApi as am, DateSelectionApi as an, Duration as ao, EventSegment as ap, MoreLinkAction as aq, MoreLinkSimpleAction as ar, MoreLinkArg as as, MoreLinkHandler as at, Identity as au, Dictionary as av, BaseOptionRefiners as aw, BaseOptionsRefined as ax, ViewOptionsRefined as ay, RawOptionsFromRefiners as az, PluginDef as b, PositionCache as b$, disableCursor as b0, guid as b1, computeVisibleDayRange as b2, diffDates as b3, removeExact as b4, isArraysEqual as b5, memoize as b6, memoizeObjArg as b7, Rect as b8, Point as b9, SplittableProps as bA, Splitter as bB, getDayClassName as bC, getDateMeta as bD, getSlotClassName as bE, DateMeta as bF, isDimsEqual as bG, watchSize as bH, watchWidth as bI, watchHeight as bJ, afterSize as bK, buildNavLinkAttrs as bL, buildDateStr as bM, preventDefault as bN, whenTransitionDone as bO, computeInnerRect as bP, computeEdges as bQ, getClippingParents as bR, computeRect as bS, unpromisify as bT, Emitter as bU, DateRange as bV, rangeContainsMarker as bW, intersectRanges as bX, rangesEqual as bY, rangesIntersect as bZ, rangeContainsRange as b_, intersectRects as ba, pointInsideRect as bb, constrainPoint as bc, getRectCenter as bd, diffPoints as be, translateRect as bf, mapHash as bg, filterHash as bh, isPropsEqual as bi, compareObjs as bj, collectFromHash as bk, applyStyle as bl, getEventTargetViaRoot as bm, getUniqueDomId as bn, joinClassNames as bo, parseClassNames as bp, fracToCssDim as bq, EventStore as br, createEmptyEventStore as bs, mergeEventStores as bt, getRelevantEvents as bu, eventTupleToStore as bv, EventUiHash as bw, EventUi as bx, combineEventUis as by, createEventUi as bz, CalendarApi as c, EventDropTransformers as c$, ScrollController as c0, ElementScrollController as c1, WindowScrollController as c2, Theme as c3, ViewContext as c4, ViewContextType as c5, EventSegUiInteractionState as c6, DateComponent as c7, CalendarData as c8, ViewProps as c9, createFormatter as cA, DateFormatter as cB, VerboseFormattingArg as cC, formatIsoTimeString as cD, formatDayString as cE, buildIsoString as cF, formatIsoMonthStr as cG, NamedTimeZoneImpl as cH, parse as cI, EventSourceDef as cJ, EventSourceRefined as cK, EventSourceRefiners as cL, EventPlacement as cM, EventInsertion as cN, SegHierarchy as cO, SegGroup as cP, groupIntersectingSegs as cQ, binarySearch as cR, InteractionSettings as cS, InteractionSettingsStore as cT, Interaction as cU, interactionSettingsToStore as cV, interactionSettingsStore as cW, PointerDragEvent as cX, Hit as cY, dateSelectionJoinTransformer as cZ, eventDragMutationMassager as c_, DateProfile as ca, DateProfileGenerator as cb, ViewSpec as cc, DateSpan as cd, isDateSpansEqual as ce, DateMarker as cf, addDays as cg, startOfDay as ch, addMs as ci, addWeeks as cj, diffWeeks as ck, diffWholeWeeks as cl, diffWholeDays as cm, diffDayAndTime as cn, diffDays as co, isValidDate as cp, createDuration as cq, asCleanDays as cr, multiplyDuration as cs, addDurations as ct, asRoughMinutes as cu, asRoughSeconds as cv, asRoughMs as cw, wholeDivideDurations as cx, greatestDurationDenominator as cy, DateEnv as cz, EventApi as d, MoreLinkContainer as d$, ElementDragging as d0, config as d1, RecurringType as d2, DragMetaInput as d3, DragMeta as d4, parseDragMeta as d5, ViewPropsTransformer as d6, Action as d7, CalendarContext as d8, CalendarContentProps as d9, isInteractionValid as dA, isDateSelectionValid as dB, requestJson as dC, BaseComponent as dD, setRef as dE, DelayedRunner as dF, getStickyFooterScrollbar as dG, getStickyHeaderDates as dH, getIsHeightAuto as dI, getScrollerSyncerClass as dJ, ScrollerInterface as dK, ScrollerSyncerInterface as dL, Ruler as dM, RulerProps as dN, RefMap as dO, NowTimer as dP, MountArg as dQ, StandardEvent as dR, NowIndicatorContainer as dS, DayCellContainer as dT, hasCustomDayCellContent as dU, MinimalEventProps as dV, EventContainer as dW, renderFill as dX, BgEvent as dY, WeekNumberContainerProps as dZ, WeekNumberContainer as d_, CalendarRoot as da, DaySeriesModel as db, EventInteractionState as dc, sliceEventStore as dd, hasBgRendering as de, getElEventRange as df, buildEventRangeTimeText as dg, sortEventSegs as dh, getEventRangeMeta as di, buildEventRangeKey as dj, getEventTagAndAttrs as dk, EventRangeProps as dl, getEventKey as dm, DayTableCell as dn, DayGridRange as dp, DayTableModel as dq, Scroller as dr, getNormalizedScrollX as ds, setNormalizedScrollX as dt, SlicedProps as du, Slicer as dv, EventMutation as dw, applyMutationToEventStore as dx, Constraint as dy, isPropsValid as dz, EventRenderRange as e, ViewContainerProps as e0, ViewContainer as e1, DatePointTransform as e2, DateSpanTransform as e3, triggerDateSelect as e4, getDefaultEventEnd as e5, injectStyles as e6, EventImpl as e7, buildEventApis as e8, ElProps as e9, buildElAttrs as ea, InnerContainerFunc as eb, ContentContainer as ec, renderText as ed, CustomRendering as ee, CoordRange as ef, CoordSpan as eg, SlicedCoordRange as eh, computeEarliestStart as ei, computeLatestEnd as ej, getCoordRangeEnd as ek, FooterScrollbar as el, CalendarListeners as f, ViewOptions as g, DurationInput as h, DateSpanInput as i, DateRangeInput as j, EventSourceInput as k, EventSourceFunc as l, EventSourceFuncArg as m, EventInput as n, EventInputTransformer as o, CssDimValue as p, LocaleSingularArg as q, ConstraintInput as r, sliceEvents as s, ViewComponentType as t, SpecificViewMountArg as u, ClassNamesGenerator as v, CustomContentGenerator as w, DidMountHandler as x, NowIndicatorContentArg as y, NowIndicatorMountArg as z };