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.
- {cone.calendar-0.2 → cone_calendar-0.4}/CHANGES.rst +14 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/LICENSE.rst +11 -12
- cone_calendar-0.4/PKG-INFO +239 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/setup.cfg +3 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/setup.py +6 -6
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/calendar.pt +1 -1
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/calendar.js +101 -108
- cone_calendar-0.4/src/cone/calendar/browser/static/calendar.min.js +1 -0
- cone_calendar-0.4/src/cone.calendar.egg-info/PKG-INFO +239 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/SOURCES.txt +2 -1
- cone_calendar-0.4/src/cone.calendar.egg-info/requires.txt +6 -0
- cone.calendar-0.2/PKG-INFO +0 -211
- cone.calendar-0.2/src/cone/calendar/browser/static/package.json +0 -9
- cone.calendar-0.2/src/cone.calendar.egg-info/PKG-INFO +0 -211
- cone.calendar-0.2/src/cone.calendar.egg-info/requires.txt +0 -6
- {cone.calendar-0.2 → cone_calendar-0.4}/MANIFEST.in +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/README.rst +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/__init__.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/__init__.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/__init__.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/calendar.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/calendar.css +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.css +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.min.css +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.min.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.print.css +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/fullcalendar.print.min.css +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/gcal.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/gcal.min.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/af.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-dz.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-ly.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-ma.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-sa.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar-tn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ar.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/bg.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/cs.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/da.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/de-at.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/de.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/el.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-au.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-gb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-ie.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/en-nz.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/es-do.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/es.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/eu.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fa.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr-ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr-ch.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/fr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/gl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/he.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/hu.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/id.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/is.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/it.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ja.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/kk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ko.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lt.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/lv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/mk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ms-my.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ms.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nl-be.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/nn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pt-br.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/pt.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ro.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/ru.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sr-cyrl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/sv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/th.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/tr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/uk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/vi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/zh-cn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale/zh-tw.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/fullcalendar/locale-all.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/af.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-dz.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-ly.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-ma.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-sa.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar-tn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ar.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/az.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/be.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bg.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/br.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/bs.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cs.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/cy.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/da.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/de-at.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/de.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/dv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/el.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-au.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-gb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-ie.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/en-nz.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/eo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/es-do.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/es.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/et.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/eu.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fa.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr-ca.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr-ch.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/fy.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/gd.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/gl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/he.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hu.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/hy-am.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/id.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/is.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/it.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ja.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/jv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ka.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/kk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/km.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ko.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ky.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lt.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/lv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/me.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ml.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/mr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ms-my.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ms.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/my.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nb.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ne.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nl-be.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/nn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pa-in.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pt-br.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/pt.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ro.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ru.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/se.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/si.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sq.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sr-cyrl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ss.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sv.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/sw.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/ta.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/te.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tet.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/th.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tl-ph.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tlh.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tr.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzl.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzm-latn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/tzm.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/uk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/uz.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/vi.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/x-pseudo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/yo.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-cn.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-hk.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locale/zh-tw.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locales.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/locales.min.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment-with-locales.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment-with-locales.min.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/browser/static/moment/moment.min.js +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/interfaces.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/locale/cone.calendar.pot +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/locale/de/LC_MESSAGES/cone.calendar.po +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone/calendar/tests.py +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/dependency_links.txt +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/namespace_packages.txt +0 -0
- {cone.calendar-0.2 → cone_calendar-0.4}/src/cone.calendar.egg-info/not-zip-safe +0 -0
- {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-
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
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.
|
|
@@ -9,7 +9,7 @@ def read_file(name):
|
|
|
9
9
|
return f.read()
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
version = '0.
|
|
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='
|
|
40
|
-
author_email='dev@
|
|
41
|
-
url=
|
|
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,43 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
for (
|
|
24
|
-
event_sources.push(new
|
|
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
|
-
|
|
39
|
+
let options = elem.data('calendar_options');
|
|
27
40
|
$.extend(options, {
|
|
28
41
|
eventSources: event_sources,
|
|
29
|
-
eventClick:
|
|
30
|
-
dayClick:
|
|
31
|
-
eventDrop:
|
|
32
|
-
eventResize:
|
|
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
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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 (
|
|
87
|
+
for (let i in actions) {
|
|
89
88
|
this.add_menu_item(wrapper, menu, actions[i]);
|
|
90
89
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
169
|
-
|
|
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
|
-
|
|
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
|
-
|
|
187
|
-
var params = {
|
|
172
|
+
}
|
|
173
|
+
event_clicked(cal_evt, js_evt, view) {
|
|
174
|
+
let params = {
|
|
188
175
|
view: view.name
|
|
189
176
|
};
|
|
190
|
-
|
|
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
|
-
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
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
|
-
|
|
222
|
-
|
|
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
|
-
|
|
230
|
-
|
|
213
|
+
let view = 'calendar_event_drop';
|
|
214
|
+
let cb = function(data) {
|
|
231
215
|
console.log(data);
|
|
232
|
-
}
|
|
233
|
-
|
|
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
|
-
|
|
241
|
-
|
|
223
|
+
let view = 'calendar_event_resize';
|
|
224
|
+
let cb = function(data) {
|
|
242
225
|
console.log(data);
|
|
243
|
-
}
|
|
244
|
-
|
|
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
|
-
})(
|
|
241
|
+
})({}, jQuery);
|