"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/daygrid/src/TableListItemEvent.tsx" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

TableListItemEvent.tsx  (fullcalendar-5.9.0):TableListItemEvent.tsx  (fullcalendar-5.10.0)
import { createElement, BaseComponent, Seg, EventRoot, buildSegTimeText, EventCo import {
ntentArg, Fragment } from '@fullcalendar/common' createElement,
BaseComponent,
Seg,
EventRoot,
buildSegTimeText,
EventContentArg,
Fragment,
getSegAnchorAttrs,
} from '@fullcalendar/common'
import { DEFAULT_TABLE_EVENT_TIME_FORMAT } from './event-rendering' import { DEFAULT_TABLE_EVENT_TIME_FORMAT } from './event-rendering'
export interface DotTableEventProps { export interface DotTableEventProps {
seg: Seg seg: Seg
isDragging: boolean isDragging: boolean
isSelected: boolean isSelected: boolean
isPast: boolean isPast: boolean
isFuture: boolean isFuture: boolean
isToday: boolean isToday: boolean
defaultDisplayEventEnd: boolean defaultDisplayEventEnd: boolean
skipping to change at line 43 skipping to change at line 52
isDateSelecting={false} isDateSelecting={false}
isSelected={props.isSelected} isSelected={props.isSelected}
isPast={props.isPast} isPast={props.isPast}
isFuture={props.isFuture} isFuture={props.isFuture}
isToday={props.isToday} isToday={props.isToday}
> >
{(rootElRef, classNames, innerElRef, innerContent) => ( // we don't use styles! {(rootElRef, classNames, innerElRef, innerContent) => ( // we don't use styles!
<a <a
className={['fc-daygrid-event', 'fc-daygrid-dot-event'].concat(class Names).join(' ')} className={['fc-daygrid-event', 'fc-daygrid-dot-event'].concat(class Names).join(' ')}
ref={rootElRef} ref={rootElRef}
{...getSegAnchorAttrs(props.seg)} {...getSegAnchorAttrs(props.seg, context)}
> >
{innerContent} {innerContent}
</a> </a>
)} )}
</EventRoot> </EventRoot>
) )
} }
} }
function renderInnerContent(innerProps: EventContentArg) { function renderInnerContent(innerProps: EventContentArg) {
skipping to change at line 69 skipping to change at line 78
/> />
{innerProps.timeText && ( {innerProps.timeText && (
<div className="fc-event-time">{innerProps.timeText}</div> <div className="fc-event-time">{innerProps.timeText}</div>
)} )}
<div className="fc-event-title"> <div className="fc-event-title">
{innerProps.event.title || <Fragment>&nbsp;</Fragment>} {innerProps.event.title || <Fragment>&nbsp;</Fragment>}
</div> </div>
</Fragment> </Fragment>
) )
} }
function getSegAnchorAttrs(seg: Seg) { // not dry. in StandardEvent too
let { url } = seg.eventRange.def
return url ? { href: url } : {}
}
 End of changes. 3 change blocks. 
3 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)