import { Splitter , hasBgRendering , EventDef , DateSpan , } from '@fullcalendar/common' ; export class AllDaySplitter extends Splitter { getKeyInfo ( ) { return { allDay : { } , timed : { } , } ; } getKeysForDateSpan ( dateSpan ) { if ( dateSpan . allDay ) { return [ 'allDay' ] ; } return [ 'timed' ] ; } getKeysForEventDef ( eventDef ) { if ( ! eventDef . allDay ) { return [ 'timed' ] ; } if ( hasBgRendering ( eventDef ) ) { return [ 'timed' , 'allDay' ] ; } return [ 'allDay' ] ; } }