cone.calendar 0.2__tar.gz → 0.4__tar.gz

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.

Potentially problematic release.


This version of cone.calendar might be problematic. Click here for more details.

Files changed (216) hide show
  1. {cone.calendar-0.2 → cone_calendar-0.4}/CHANGES.rst +14 -0
  2. {cone.calendar-0.2 → cone_calendar-0.4}/LICENSE.rst +11 -12
  3. cone_calendar-0.4/PKG-INFO +239 -0
  4. {cone.calendar-0.2 → cone_calendar-0.4}/setup.cfg +3 -0
  5. {cone.calendar-0.2 → cone_calendar-0.4}/setup.py +6 -6
  6. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/calendar.pt +1 -1
  7. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/calendar.js +101 -108
  8. cone_calendar-0.4/src/cone/calendar/browser/static/calendar.min.js +1 -0
  9. cone_calendar-0.4/src/cone.calendar.egg-info/PKG-INFO +239 -0
  10. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/SOURCES.txt +2 -1
  11. cone_calendar-0.4/src/cone.calendar.egg-info/requires.txt +6 -0
  12. cone.calendar-0.2/PKG-INFO +0 -211
  13. cone.calendar-0.2/src/cone/calendar/browser/static/package.json +0 -9
  14. cone.calendar-0.2/src/cone.calendar.egg-info/PKG-INFO +0 -211
  15. cone.calendar-0.2/src/cone.calendar.egg-info/requires.txt +0 -6
  16. {cone.calendar-0.2 → cone_calendar-0.4}/MANIFEST.in +0 -0
  17. {cone.calendar-0.2 → cone_calendar-0.4}/README.rst +0 -0
  18. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/__init__.py +0 -0
  19. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/__init__.py +0 -0
  20. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/__init__.py +0 -0
  21. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/calendar.py +0 -0
  22. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/calendar.css +0 -0
  23. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.css +0 -0
  24. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.js +0 -0
  25. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.min.css +0 -0
  26. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.min.js +0 -0
  27. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.print.css +0 -0
  28. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.print.min.css +0 -0
  29. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/gcal.js +0 -0
  30. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/gcal.min.js +0 -0
  31. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/af.js +0 -0
  32. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-dz.js +0 -0
  33. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-ly.js +0 -0
  34. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-ma.js +0 -0
  35. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-sa.js +0 -0
  36. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-tn.js +0 -0
  37. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar.js +0 -0
  38. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/bg.js +0 -0
  39. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ca.js +0 -0
  40. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/cs.js +0 -0
  41. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/da.js +0 -0
  42. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/de-at.js +0 -0
  43. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/de.js +0 -0
  44. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/el.js +0 -0
  45. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-au.js +0 -0
  46. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-ca.js +0 -0
  47. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-gb.js +0 -0
  48. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-ie.js +0 -0
  49. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-nz.js +0 -0
  50. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/es-do.js +0 -0
  51. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/es.js +0 -0
  52. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/eu.js +0 -0
  53. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fa.js +0 -0
  54. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fi.js +0 -0
  55. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr-ca.js +0 -0
  56. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr-ch.js +0 -0
  57. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr.js +0 -0
  58. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/gl.js +0 -0
  59. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/he.js +0 -0
  60. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hi.js +0 -0
  61. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hr.js +0 -0
  62. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hu.js +0 -0
  63. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/id.js +0 -0
  64. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/is.js +0 -0
  65. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/it.js +0 -0
  66. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ja.js +0 -0
  67. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/kk.js +0 -0
  68. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ko.js +0 -0
  69. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lb.js +0 -0
  70. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lt.js +0 -0
  71. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lv.js +0 -0
  72. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/mk.js +0 -0
  73. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ms-my.js +0 -0
  74. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ms.js +0 -0
  75. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nb.js +0 -0
  76. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nl-be.js +0 -0
  77. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nl.js +0 -0
  78. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nn.js +0 -0
  79. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pl.js +0 -0
  80. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pt-br.js +0 -0
  81. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pt.js +0 -0
  82. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ro.js +0 -0
  83. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ru.js +0 -0
  84. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sk.js +0 -0
  85. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sl.js +0 -0
  86. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sr-cyrl.js +0 -0
  87. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sr.js +0 -0
  88. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sv.js +0 -0
  89. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/th.js +0 -0
  90. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/tr.js +0 -0
  91. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/uk.js +0 -0
  92. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/vi.js +0 -0
  93. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/zh-cn.js +0 -0
  94. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/zh-tw.js +0 -0
  95. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale-all.js +0 -0
  96. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/af.js +0 -0
  97. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-dz.js +0 -0
  98. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-ly.js +0 -0
  99. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-ma.js +0 -0
  100. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-sa.js +0 -0
  101. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-tn.js +0 -0
  102. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar.js +0 -0
  103. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/az.js +0 -0
  104. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/be.js +0 -0
  105. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bg.js +0 -0
  106. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bn.js +0 -0
  107. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bo.js +0 -0
  108. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/br.js +0 -0
  109. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bs.js +0 -0
  110. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ca.js +0 -0
  111. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cs.js +0 -0
  112. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cv.js +0 -0
  113. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cy.js +0 -0
  114. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/da.js +0 -0
  115. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/de-at.js +0 -0
  116. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/de.js +0 -0
  117. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/dv.js +0 -0
  118. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/el.js +0 -0
  119. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-au.js +0 -0
  120. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-ca.js +0 -0
  121. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-gb.js +0 -0
  122. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-ie.js +0 -0
  123. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-nz.js +0 -0
  124. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/eo.js +0 -0
  125. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/es-do.js +0 -0
  126. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/es.js +0 -0
  127. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/et.js +0 -0
  128. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/eu.js +0 -0
  129. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fa.js +0 -0
  130. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fi.js +0 -0
  131. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fo.js +0 -0
  132. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr-ca.js +0 -0
  133. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr-ch.js +0 -0
  134. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr.js +0 -0
  135. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fy.js +0 -0
  136. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/gd.js +0 -0
  137. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/gl.js +0 -0
  138. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/he.js +0 -0
  139. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hi.js +0 -0
  140. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hr.js +0 -0
  141. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hu.js +0 -0
  142. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hy-am.js +0 -0
  143. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/id.js +0 -0
  144. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/is.js +0 -0
  145. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/it.js +0 -0
  146. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ja.js +0 -0
  147. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/jv.js +0 -0
  148. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ka.js +0 -0
  149. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/kk.js +0 -0
  150. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/km.js +0 -0
  151. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ko.js +0 -0
  152. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ky.js +0 -0
  153. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lb.js +0 -0
  154. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lo.js +0 -0
  155. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lt.js +0 -0
  156. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lv.js +0 -0
  157. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/me.js +0 -0
  158. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mi.js +0 -0
  159. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mk.js +0 -0
  160. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ml.js +0 -0
  161. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mr.js +0 -0
  162. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ms-my.js +0 -0
  163. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ms.js +0 -0
  164. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/my.js +0 -0
  165. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nb.js +0 -0
  166. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ne.js +0 -0
  167. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nl-be.js +0 -0
  168. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nl.js +0 -0
  169. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nn.js +0 -0
  170. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pa-in.js +0 -0
  171. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pl.js +0 -0
  172. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pt-br.js +0 -0
  173. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pt.js +0 -0
  174. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ro.js +0 -0
  175. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ru.js +0 -0
  176. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/se.js +0 -0
  177. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/si.js +0 -0
  178. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sk.js +0 -0
  179. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sl.js +0 -0
  180. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sq.js +0 -0
  181. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sr-cyrl.js +0 -0
  182. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sr.js +0 -0
  183. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ss.js +0 -0
  184. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sv.js +0 -0
  185. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sw.js +0 -0
  186. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ta.js +0 -0
  187. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/te.js +0 -0
  188. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tet.js +0 -0
  189. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/th.js +0 -0
  190. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tl-ph.js +0 -0
  191. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tlh.js +0 -0
  192. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tr.js +0 -0
  193. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzl.js +0 -0
  194. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzm-latn.js +0 -0
  195. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzm.js +0 -0
  196. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/uk.js +0 -0
  197. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/uz.js +0 -0
  198. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/vi.js +0 -0
  199. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/x-pseudo.js +0 -0
  200. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/yo.js +0 -0
  201. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-cn.js +0 -0
  202. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-hk.js +0 -0
  203. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-tw.js +0 -0
  204. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locales.js +0 -0
  205. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locales.min.js +0 -0
  206. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment-with-locales.js +0 -0
  207. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment-with-locales.min.js +0 -0
  208. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment.min.js +0 -0
  209. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/interfaces.py +0 -0
  210. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/locale/cone.calendar.pot +0 -0
  211. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/locale/de/LC_MESSAGES/cone.calendar.po +0 -0
  212. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/tests.py +0 -0
  213. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/dependency_links.txt +0 -0
  214. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/namespace_packages.txt +0 -0
  215. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/not-zip-safe +0 -0
  216. {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/top_level.txt +0 -0
@@ -1,6 +1,20 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ 0.4 (2025-10-25)
5
+ ----------------
6
+
7
+ - Pin upper versions of dependencies.
8
+ [rnix]
9
+
10
+
11
+ 0.3 (2022-10-06)
12
+ ----------------
13
+
14
+ - Modernize JavaScript.
15
+ [rnix]
16
+
17
+
4
18
  0.2 (2020-07-09)
5
19
  ----------------
6
20
 
@@ -1,26 +1,25 @@
1
1
  License
2
2
  =======
3
3
 
4
- Copyright (c) 2017-2020, BlueDynamics Alliance, Austria
4
+ Copyright (c) 2017-2021, BlueDynamics Alliance, Austria
5
+ Copyright (c) 2021, Cone Contributors
5
6
  All rights reserved.
6
7
 
7
8
  Redistribution and use in source and binary forms, with or without
8
9
  modification, are permitted provided that the following conditions are met:
9
10
 
10
- * Redistributions of source code must retain the above copyright notice, this
11
+ * Redistributions of source code must retain the above copyright notice, this
11
12
  list of conditions and the following disclaimer.
12
- * Redistributions in binary form must reproduce the above copyright notice, this
13
- list of conditions and the following disclaimer in the documentation and/or
13
+
14
+ * Redistributions in binary form must reproduce the above copyright notice, this
15
+ list of conditions and the following disclaimer in the documentation and/or
14
16
  other materials provided with the distribution.
15
- * Neither the name of the BlueDynamics Alliance nor the names of its
16
- contributors may be used to endorse or promote products derived from this
17
- software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance ``AS IS`` AND ANY
20
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
20
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY
23
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
23
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
24
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26
25
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
@@ -0,0 +1,239 @@
1
+ Metadata-Version: 2.4
2
+ Name: cone.calendar
3
+ Version: 0.4
4
+ Summary: jQuery Fullcalendar integration for cone.app
5
+ Home-page: http://github.com/conestack/cone.calendar
6
+ Author: Cone Contributors
7
+ Author-email: dev@conestack.org
8
+ License: Simplified BSD
9
+ Keywords: node pyramid cone web
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
13
+ License-File: LICENSE.rst
14
+ Requires-Dist: setuptools
15
+ Requires-Dist: cone.app<1.1.0
16
+ Requires-Dist: yafowil.widget.cron<2.0.0
17
+ Provides-Extra: test
18
+ Requires-Dist: zope.testrunner; extra == "test"
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: home-page
24
+ Dynamic: keywords
25
+ Dynamic: license
26
+ Dynamic: license-file
27
+ Dynamic: provides-extra
28
+ Dynamic: requires-dist
29
+ Dynamic: summary
30
+
31
+ .. image:: https://img.shields.io/pypi/v/cone.calendar.svg
32
+ :target: https://pypi.python.org/pypi/cone.calendar
33
+ :alt: Latest PyPI version
34
+
35
+ .. image:: https://img.shields.io/pypi/dm/cone.calendar.svg
36
+ :target: https://pypi.python.org/pypi/cone.calendar
37
+ :alt: Number of PyPI downloads
38
+
39
+ .. image:: https://travis-ci.org/bluedynamics/cone.calendar.svg?branch=master
40
+ :target: https://travis-ci.org/bluedynamics/cone.calendar
41
+
42
+ .. image:: https://coveralls.io/repos/github/bluedynamics/cone.calendar/badge.svg?branch=master
43
+ :target: https://coveralls.io/github/bluedynamics/cone.calendar?branch=master
44
+
45
+
46
+ This package provides a calendar integration in to cone.app.
47
+ It utilizes jQuery Fullcalendar
48
+ (https://github.com/fullcalendar/fullcalendar).
49
+
50
+ Currently, tag 3.1.0 is included. See
51
+ (https://github.com/fullcalendar/fullcalendar/releases).
52
+
53
+
54
+ Calendar Widget
55
+ ---------------
56
+
57
+ The calendar widget integration is done via
58
+ ``cone.calendar.browser.CalendarTile`` which is registered by name ``calendar``.
59
+
60
+ The overall calendar configuration is done via model properties.
61
+
62
+ .. code-block:: python
63
+
64
+ from cone.app.model import BaseNode
65
+ from cone.app.model import Properties
66
+
67
+ class MyCalendar(BaseNode):
68
+
69
+ @property
70
+ def properties(self):
71
+ props = Properties()
72
+ props.default_content_tile = 'calendar'
73
+ props.calendar_header = {
74
+ 'left': 'month,agendaWeek,agendaDay',
75
+ 'center': 'title',
76
+ 'right': 'today prev,next'
77
+ }
78
+ return props
79
+
80
+ For a full list of available calendar options read
81
+ ``cone.calendar.browser.CalendarTile`` documentation.
82
+
83
+
84
+ Calendar Events
85
+ ---------------
86
+
87
+ In order to display events in the calendar, one or more event data sources
88
+ must be provided.
89
+
90
+ Concrete event data implementation must derive from
91
+ ``cone.calendar.browser.CalendarEvents`` and provide ``events`` function.
92
+
93
+ The default event data source is expected as JSON view registered by name
94
+ ``calendar_events`` for a dedictaed model context.
95
+
96
+ .. code-block:: python
97
+
98
+ from cone.calendar.browser import CalendarEvents
99
+ from datetime import datetime
100
+ from pyramid.view import view_config
101
+ import uuid
102
+
103
+ @view_config(
104
+ name='calendar_events',
105
+ context=MyCalendar,
106
+ accept='application/json',
107
+ renderer='json',
108
+ permission='view')
109
+ class MyEvents(CalendarEvents):
110
+
111
+ def events(self, start, end):
112
+ events = [{
113
+ 'id': uuid.uuid4(),
114
+ 'title': 'Title',
115
+ 'start': datetime(2020, 4, 29, 17, 40),
116
+ 'end': datetime(2020, 4, 29, 18, 0),
117
+ }]
118
+ return events
119
+
120
+ For a full list of available event options read
121
+ ``cone.calendar.browser.CalendarEvents`` documentation.
122
+
123
+ Multiple event data sources are defined via model properties.
124
+
125
+ .. code-block:: python
126
+
127
+ class MyCalendar(BaseNode):
128
+
129
+ @property
130
+ def properties(self):
131
+ props = Properties()
132
+ props.calendar_sources = [{
133
+ 'events': 'event_data_1',
134
+ 'color': 'green'
135
+ }, {
136
+ 'events': 'event_data_2',
137
+ 'color': 'red'
138
+ }]
139
+ return props
140
+
141
+ For a full list of available event source options read
142
+ ``cone.calendar.browser.CalendarTile`` documentation.
143
+
144
+
145
+ Locales
146
+ -------
147
+
148
+ The calendar locale can be set via ``calendar_locale`` on model properties.
149
+
150
+ .. code-block:: python
151
+
152
+ class MyCalendar(BaseNode):
153
+
154
+ @property
155
+ def properties(self):
156
+ props = Properties()
157
+ props.calendar_locale = 'de'
158
+ return props
159
+
160
+ Default calendar locale is ``en``. The desired locales must be delivered to
161
+ the browser in order to work correctly. Locales to deliver are defined in the
162
+ application ini config as comma separated list of locale names.
163
+
164
+ .. code-block:: ini
165
+
166
+ cone.calendar.locales = de,fr
167
+
168
+ For a complete list of available locales see ``browser/static/fullcalendar/locales``
169
+ folder of this package.
170
+
171
+
172
+ Contributors
173
+ ============
174
+
175
+ - Robert Niederreiter
176
+ - Johannes Raggam
177
+
178
+
179
+ Changes
180
+ =======
181
+
182
+ 0.4 (2025-10-25)
183
+ ----------------
184
+
185
+ - Pin upper versions of dependencies.
186
+ [rnix]
187
+
188
+
189
+ 0.3 (2022-10-06)
190
+ ----------------
191
+
192
+ - Modernize JavaScript.
193
+ [rnix]
194
+
195
+
196
+ 0.2 (2020-07-09)
197
+ ----------------
198
+
199
+ - Add ``show_contextmenu`` to ``CalendarTile``. Defaults to ``False``.
200
+ [rnix]
201
+
202
+ - Also check for action length when handling actions dropdown in JS.
203
+ [rnix]
204
+
205
+
206
+ 0.1 (2020-05-30)
207
+ ----------------
208
+
209
+ - Initial.
210
+ [rnix, thet]
211
+
212
+
213
+ License
214
+ =======
215
+
216
+ Copyright (c) 2017-2021, BlueDynamics Alliance, Austria
217
+ Copyright (c) 2021, Cone Contributors
218
+ All rights reserved.
219
+
220
+ Redistribution and use in source and binary forms, with or without
221
+ modification, are permitted provided that the following conditions are met:
222
+
223
+ * Redistributions of source code must retain the above copyright notice, this
224
+ list of conditions and the following disclaimer.
225
+
226
+ * Redistributions in binary form must reproduce the above copyright notice, this
227
+ list of conditions and the following disclaimer in the documentation and/or
228
+ other materials provided with the distribution.
229
+
230
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
231
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
232
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
233
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
234
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
235
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
236
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
237
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
238
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
239
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,3 +1,6 @@
1
+ [zest.releaser]
2
+ create-wheel = yes
3
+
1
4
  [egg_info]
2
5
  tag_build =
3
6
  tag_date = 0
@@ -9,7 +9,7 @@ def read_file(name):
9
9
  return f.read()
10
10
 
11
11
 
12
- version = '0.2'
12
+ version = '0.4'
13
13
  shortdesc = 'jQuery Fullcalendar integration for cone.app'
14
14
  longdesc = '\n\n'.join([read_file(name) for name in [
15
15
  'README.rst',
@@ -36,9 +36,9 @@ setup(
36
36
  'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
37
37
  ],
38
38
  keywords='node pyramid cone web',
39
- author='BlueDynamics Alliance',
40
- author_email='dev@bluedynamics.com',
41
- url=u'https://github.com/bluedynamics/cone.calendar',
39
+ author='Cone Contributors',
40
+ author_email='dev@conestack.org',
41
+ url='http://github.com/conestack/cone.calendar',
42
42
  license='Simplified BSD',
43
43
  packages=find_packages('src'),
44
44
  package_dir={'': 'src'},
@@ -47,8 +47,8 @@ setup(
47
47
  zip_safe=False,
48
48
  install_requires=[
49
49
  'setuptools',
50
- 'cone.app',
51
- 'yafowil.widget.cron'
50
+ 'cone.app<1.1.0',
51
+ 'yafowil.widget.cron<2.0.0'
52
52
  ],
53
53
  extras_require=dict(test=['zope.testrunner']),
54
54
  tests_require=['zope.testrunner'],
@@ -1,6 +1,6 @@
1
1
  <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"
2
2
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
3
- xmlns:ajax="http://namesspaces.bluedynamics.eu/ajax"
3
+ xmlns:ajax="http://namespaces.conestack.org/ajax"
4
4
  i18n:domain="cone.calendar"
5
5
  omit-tag="True">
6
6
 
@@ -1,43 +1,55 @@
1
- /* globals jQuery, bdajax */
2
- (function($, bdajax) {
3
-
4
- $(document).ready(function() {
5
- bdajax.register(calendar.binder.bind(calendar), true);
6
- });
7
-
8
- var calendar = {
9
- elem: null,
10
- target: null,
11
- actions: null,
12
-
13
- binder: function(context) {
14
- var elem = $('#calendar', context);
1
+ var cone_calendar = (function (exports, $) {
2
+ 'use strict';
3
+
4
+ class EventSource {
5
+ constructor(calendar, opts) {
6
+ this._calendar = calendar;
7
+ this._events_view = opts.events;
8
+ delete opts.events;
9
+ Object.assign(this, opts);
10
+ this.events = this.events.bind(this);
11
+ }
12
+ events(start, end, timezone, callback) {
13
+ let calendar = this._calendar,
14
+ url = calendar.target + '/' + this._events_view;
15
+ let params = {
16
+ start: start.unix(),
17
+ end: end.unix()
18
+ };
19
+ calendar.json_request(url, params, callback, null);
20
+ }
21
+ }
22
+ class Calendar {
23
+ static initialize(context) {
24
+ let elem = $('#calendar', context);
15
25
  if (!elem.length) {
16
26
  return;
17
27
  }
28
+ new Calendar(elem);
29
+ }
30
+ constructor(elem) {
18
31
  this.elem = elem;
19
32
  this.target = elem.data('calendar_target');
20
33
  this.actions = elem.data('calendar_actions');
21
- var sources = elem.data('calendar_sources');
22
- var event_sources = [];
23
- for (var i in sources) {
24
- event_sources.push(new calendar.EventSource(sources[i]));
34
+ let sources = elem.data('calendar_sources'),
35
+ event_sources = [];
36
+ for (let i in sources) {
37
+ event_sources.push(new EventSource(this, sources[i]));
25
38
  }
26
- var options = elem.data('calendar_options');
39
+ let options = elem.data('calendar_options');
27
40
  $.extend(options, {
28
41
  eventSources: event_sources,
29
- eventClick: calendar.event_clicked,
30
- dayClick: calendar.day_clicked,
31
- eventDrop: calendar.event_drop,
32
- eventResize: calendar.event_resize
42
+ eventClick: this.event_clicked.bind(this),
43
+ dayClick: this.day_clicked.bind(this),
44
+ eventDrop: this.event_drop.bind(this),
45
+ eventResize: this.event_resize.bind(this)
33
46
  });
34
47
  elem.bind('reload', function() {
35
48
  elem.fullCalendar('refetchEvents');
36
49
  });
37
50
  elem.fullCalendar(options);
38
- },
39
-
40
- json_request: function(url, params, callback, errback) {
51
+ }
52
+ json_request(url, params, callback, errback) {
41
53
  bdajax.request({
42
54
  url: url,
43
55
  type: 'json',
@@ -55,23 +67,10 @@
55
67
  bdajax.error('Failed to request JSON data');
56
68
  }
57
69
  });
58
- },
59
-
60
- EventSource: function(opts) {
61
- $.extend(this, opts);
62
- this.events = function(start, end, timezone, callback) {
63
- var url = calendar.target + '/' + opts.events;
64
- var params = {
65
- start: start.unix(),
66
- end: end.unix()
67
- };
68
- calendar.json_request(url, params, callback, null);
69
- };
70
- },
71
-
72
- create_context_menu: function(actions, x, y) {
73
- var body = $('body', document);
74
- var wrapper = $('<div />')
70
+ }
71
+ create_context_menu(actions, x, y) {
72
+ let body = $('body', document);
73
+ let wrapper = $('<div />')
75
74
  .attr('class', 'calendar-contextmenu-wrapper')
76
75
  .css('height', body.height() + 'px');
77
76
  body.append(wrapper);
@@ -79,19 +78,18 @@
79
78
  e.preventDefault();
80
79
  wrapper.remove();
81
80
  });
82
- var menu = $('<ul />')
81
+ let menu = $('<ul />')
83
82
  .attr('class', 'calendar-contextmenu dropdown-menu')
84
83
  .css('left', x + 'px')
85
84
  .css('top', y + 'px')
86
85
  .css('display', 'block');
87
86
  wrapper.append(menu);
88
- for (var i in actions) {
87
+ for (let i in actions) {
89
88
  this.add_menu_item(wrapper, menu, actions[i]);
90
89
  }
91
- },
92
-
93
- add_menu_item: function(wrapper, menu, action) {
94
- var menu_item = $('<li><span />' + action.title + '</li>');
90
+ }
91
+ add_menu_item(wrapper, menu, action) {
92
+ let menu_item = $('<li><span />' + action.title + '</li>');
95
93
  if (action.icon) {
96
94
  $('span', menu_item).attr('class', action.icon);
97
95
  }
@@ -101,19 +99,15 @@
101
99
  wrapper.remove();
102
100
  this.handle_action(action);
103
101
  }.bind(this));
104
- },
105
-
106
- prepare_target: function(target, params) {
107
- // parse target if defined as string
102
+ }
103
+ prepare_target(target, params) {
108
104
  if (!target.url) {
109
105
  target = bdajax.parsetarget(target);
110
106
  }
111
- // extend query params by additional params
112
107
  $.extend(target.params, params);
113
108
  return target;
114
- },
115
-
116
- handle_action: function(action) {
109
+ }
110
+ handle_action(action) {
117
111
  if (!action.target) {
118
112
  return;
119
113
  }
@@ -126,10 +120,9 @@
126
120
  } else {
127
121
  this.perform_action(action);
128
122
  }
129
- },
130
-
131
- perform_action: function(action) {
132
- var target = action.target;
123
+ }
124
+ perform_action(action) {
125
+ let target = action.target;
133
126
  if (action.action) {
134
127
  bdajax.action({
135
128
  name: action.action.name,
@@ -140,7 +133,7 @@
140
133
  });
141
134
  }
142
135
  if (action.event) {
143
- var event = action.event;
136
+ let event = action.event;
144
137
  bdajax.trigger(
145
138
  event.name,
146
139
  event.selector,
@@ -148,7 +141,7 @@
148
141
  );
149
142
  }
150
143
  if (action.overlay) {
151
- var overlay = action.overlay;
144
+ let overlay = action.overlay;
152
145
  bdajax.overlay({
153
146
  action: overlay.action,
154
147
  target: target,
@@ -157,92 +150,92 @@
157
150
  css: overlay.css
158
151
  });
159
152
  }
160
- },
161
-
162
- handle_actions: function(actions, target, params, x, y) {
153
+ }
154
+ handle_actions(actions, target, params, x, y) {
163
155
  if (!actions || !actions.length) {
164
156
  return;
165
157
  }
166
- // get a deepcopy of given actions
167
158
  actions = JSON.parse(JSON.stringify(actions));
168
- // prepare action target
169
- for (var i in actions) {
170
- var action = actions[i];
159
+ for (let i in actions) {
160
+ let action = actions[i];
171
161
  action.target = this.prepare_target(
172
162
  action.target || target,
173
163
  params
174
164
  );
175
165
  }
176
- // only one action defined, gets executed direclty
177
166
  if (actions.length == 1) {
178
- var action = actions[0];
167
+ let action = actions[0];
179
168
  this.handle_action(action);
180
169
  return;
181
170
  }
182
- // more than one action found, display context menu
183
171
  this.create_context_menu(actions, x, y);
184
- },
185
-
186
- event_clicked: function(cal_evt, js_evt, view) {
187
- var params = {
172
+ }
173
+ event_clicked(cal_evt, js_evt, view) {
174
+ let params = {
188
175
  view: view.name
189
176
  };
190
- calendar.handle_actions(
177
+ this.handle_actions(
191
178
  cal_evt.actions,
192
179
  cal_evt.target,
193
180
  params,
194
181
  js_evt.pageX,
195
182
  js_evt.pageY
196
183
  );
197
- },
198
-
199
- day_clicked: function(date, js_evt, view) {
200
- var params = {
184
+ }
185
+ day_clicked(date, js_evt, view) {
186
+ let params = {
201
187
  date: date.unix(),
202
188
  all_day: !date.hasTime(),
203
189
  view: view.name
204
190
  };
205
- calendar.handle_actions(
206
- calendar.actions,
207
- calendar.target,
191
+ this.handle_actions(
192
+ this.actions,
193
+ this.target,
208
194
  params,
209
195
  js_evt.pageX,
210
196
  js_evt.pageY
211
197
  );
212
- },
213
-
214
- update_event: function(cal_evt, delta, revert_func, view, callback) {
215
- var target = this.prepare_target(cal_evt.target, {
198
+ }
199
+ update_event(cal_evt, delta, revert_func, view, callback) {
200
+ let target = this.prepare_target(cal_evt.target, {
216
201
  id: cal_evt.id,
217
202
  start: cal_evt.start.unix(),
218
203
  end: cal_evt.end.unix(),
219
204
  delta: delta.asSeconds()
220
- })
221
- var url = target.url + '/' + view;
222
- calendar.json_request(url, target.params, callback, revert_func);
223
- },
224
-
225
- event_drop: function(cal_evt, delta, revert_func) {
205
+ });
206
+ let url = target.url + '/' + view;
207
+ this.json_request(url, target.params, callback, revert_func);
208
+ }
209
+ event_drop(cal_evt, delta, revert_func) {
226
210
  if (!cal_evt.editable && !cal_evt.startEditable) {
227
211
  return;
228
212
  }
229
- var view = 'calendar_event_drop'
230
- var cb = function(data) {
213
+ let view = 'calendar_event_drop';
214
+ let cb = function(data) {
231
215
  console.log(data);
232
- }
233
- calendar.update_event(cal_evt, delta, revert_func, view, cb);
234
- },
235
-
236
- event_resize: function(cal_evt, delta, revert_func) {
216
+ };
217
+ this.update_event(cal_evt, delta, revert_func, view, cb);
218
+ }
219
+ event_resize(cal_evt, delta, revert_func) {
237
220
  if (!cal_evt.editable && !cal_evt.durationEditable) {
238
221
  return;
239
222
  }
240
- var view = 'calendar_event_resize'
241
- var cb = function(data) {
223
+ let view = 'calendar_event_resize';
224
+ let cb = function(data) {
242
225
  console.log(data);
243
- }
244
- calendar.update_event(cal_evt, delta, revert_func, view, cb);
226
+ };
227
+ this.update_event(cal_evt, delta, revert_func, view, cb);
245
228
  }
246
- };
229
+ }
230
+
231
+ $(function() {
232
+ bdajax.register(Calendar.initialize, true);
233
+ });
234
+
235
+ exports.Calendar = Calendar;
236
+
237
+ Object.defineProperty(exports, '__esModule', { value: true });
238
+
239
+ return exports;
247
240
 
248
- })(jQuery, bdajax);
241
+ })({}, jQuery);