index.js 940 B

12345678910111213141516171819202122232425262728293031323334
  1. import { createPlugin } from '@fullcalendar/core/index.js';
  2. import { DayTimeColsView } from './internal.js';
  3. import '@fullcalendar/core/internal.js';
  4. import '@fullcalendar/core/preact.js';
  5. import '@fullcalendar/daygrid/internal.js';
  6. const OPTION_REFINERS = {
  7. allDaySlot: Boolean,
  8. };
  9. var index = createPlugin({
  10. name: '@fullcalendar/timegrid',
  11. initialView: 'timeGridWeek',
  12. optionRefiners: OPTION_REFINERS,
  13. views: {
  14. timeGrid: {
  15. component: DayTimeColsView,
  16. usesMinMaxTime: true,
  17. allDaySlot: true,
  18. slotDuration: '00:30:00',
  19. slotEventOverlap: true, // a bad name. confused with overlap/constraint system
  20. },
  21. timeGridDay: {
  22. type: 'timeGrid',
  23. duration: { days: 1 },
  24. },
  25. timeGridWeek: {
  26. type: 'timeGrid',
  27. duration: { weeks: 1 },
  28. },
  29. },
  30. });
  31. export { index as default };