39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var index_cjs = require('@fullcalendar/core/index.cjs');
|
|
var internalCommon = require('./internal.cjs');
|
|
require('@fullcalendar/core/internal.cjs');
|
|
require('@fullcalendar/core/preact.cjs');
|
|
require('@fullcalendar/daygrid/internal.cjs');
|
|
|
|
const OPTION_REFINERS = {
|
|
allDaySlot: Boolean,
|
|
};
|
|
|
|
var index = index_cjs.createPlugin({
|
|
name: '@fullcalendar/timegrid',
|
|
initialView: 'timeGridWeek',
|
|
optionRefiners: OPTION_REFINERS,
|
|
views: {
|
|
timeGrid: {
|
|
component: internalCommon.DayTimeColsView,
|
|
usesMinMaxTime: true,
|
|
allDaySlot: true,
|
|
slotDuration: '00:30:00',
|
|
slotEventOverlap: true, // a bad name. confused with overlap/constraint system
|
|
},
|
|
timeGridDay: {
|
|
type: 'timeGrid',
|
|
duration: { days: 1 },
|
|
},
|
|
timeGridWeek: {
|
|
type: 'timeGrid',
|
|
duration: { weeks: 1 },
|
|
},
|
|
},
|
|
});
|
|
|
|
exports["default"] = index;
|