index.js 941 B

12345678910111213141516171819202122232425262728293031323334
  1. import { createPlugin } from '@fullcalendar/core/index.js';
  2. import { DayGridView as DayTableView, TableDateProfileGenerator } from './internal.js';
  3. import '@fullcalendar/core/internal.js';
  4. import '@fullcalendar/core/preact.js';
  5. var index = createPlugin({
  6. name: '@fullcalendar/daygrid',
  7. initialView: 'dayGridMonth',
  8. views: {
  9. dayGrid: {
  10. component: DayTableView,
  11. dateProfileGeneratorClass: TableDateProfileGenerator,
  12. },
  13. dayGridDay: {
  14. type: 'dayGrid',
  15. duration: { days: 1 },
  16. },
  17. dayGridWeek: {
  18. type: 'dayGrid',
  19. duration: { weeks: 1 },
  20. },
  21. dayGridMonth: {
  22. type: 'dayGrid',
  23. duration: { months: 1 },
  24. fixedWeekCount: true,
  25. },
  26. dayGridYear: {
  27. type: 'dayGrid',
  28. duration: { years: 1 },
  29. },
  30. },
  31. });
  32. export { index as default };