"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/common/src/common/MorePopover.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.

MorePopover.tsx  (fullcalendar-5.9.0):MorePopover.tsx  (fullcalendar-5.10.0)
skipping to change at line 13 skipping to change at line 13
import { DateMarker } from '../datelib/marker' import { DateMarker } from '../datelib/marker'
import { DateProfile } from '../DateProfileGenerator' import { DateProfile } from '../DateProfileGenerator'
import { Hit } from '../interactions/hit' import { Hit } from '../interactions/hit'
import { Dictionary } from '../options' import { Dictionary } from '../options'
import { createElement, ComponentChildren } from '../vdom' import { createElement, ComponentChildren } from '../vdom'
import { DayCellContent } from './DayCellContent' import { DayCellContent } from './DayCellContent'
import { DayCellRoot } from './DayCellRoot' import { DayCellRoot } from './DayCellRoot'
import { Popover } from './Popover' import { Popover } from './Popover'
export interface MorePopoverProps { export interface MorePopoverProps {
id: string
startDate: DateMarker startDate: DateMarker
endDate: DateMarker endDate: DateMarker
dateProfile: DateProfile dateProfile: DateProfile
parentEl: HTMLElement parentEl: HTMLElement
alignmentEl: HTMLElement alignmentEl: HTMLElement
alignGridTop?: boolean alignGridTop?: boolean
todayRange: DateRange todayRange: DateRange
extraDateSpan: Dictionary extraDateSpan: Dictionary
children: ComponentChildren children: ComponentChildren
onClose?: () => void onClose?: () => void
skipping to change at line 38 skipping to change at line 39
render() { render() {
let { options, dateEnv } = this.context let { options, dateEnv } = this.context
let { props } = this let { props } = this
let { startDate, todayRange, dateProfile } = props let { startDate, todayRange, dateProfile } = props
let title = dateEnv.format(startDate, options.dayPopoverFormat) let title = dateEnv.format(startDate, options.dayPopoverFormat)
return ( return (
<DayCellRoot date={startDate} dateProfile={dateProfile} todayRange={todayR ange} elRef={this.handleRootEl}> <DayCellRoot date={startDate} dateProfile={dateProfile} todayRange={todayR ange} elRef={this.handleRootEl}>
{(rootElRef, dayClassNames, dataAttrs) => ( {(rootElRef, dayClassNames, dataAttrs) => (
<Popover <Popover
elRef={rootElRef} elRef={rootElRef}
id={props.id}
title={title} title={title}
extraClassNames={['fc-more-popover'].concat(dayClassNames)} extraClassNames={['fc-more-popover'].concat(dayClassNames)}
extraAttrs={dataAttrs /* TODO: make these time-based when not whole- day? */} extraAttrs={dataAttrs /* TODO: make these time-based when not whole- day? */}
parentEl={props.parentEl} parentEl={props.parentEl}
alignmentEl={props.alignmentEl} alignmentEl={props.alignmentEl}
alignGridTop={props.alignGridTop} alignGridTop={props.alignGridTop}
onClose={props.onClose} onClose={props.onClose}
> >
<DayCellContent date={startDate} dateProfile={dateProfile} todayRang e={todayRange}> <DayCellContent date={startDate} dateProfile={dateProfile} todayRang e={todayRange}>
{(innerElRef, innerContent) => ( {(innerElRef, innerContent) => (
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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