@fullcalendar/list
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
23
main.js
/*! | ||
FullCalendar List View Plugin v5.0.0-beta.1 | ||
FullCalendar List View Plugin v5.0.0-beta.2 | ||
Docs & License: https://fullcalendar.io/ | ||
@@ -33,3 +33,4 @@ (c) 2019 Adam Shaw | ||
return (h(RenderHook, { name: 'dayHeader', hookProps: hookProps, defaultContent: renderInnerContent }, function (rootElRef, customClassNames, innerElRef, innerContent) { return (h("tr", { ref: rootElRef, className: classNames.concat(customClassNames).join(' '), "data-date": formatDayString(dayDate) }, | ||
h("th", { colSpan: 3, className: theme.getClass('tableCellShaded'), ref: innerElRef }, innerContent))); })); | ||
h("th", { colSpan: 3 }, | ||
h("div", { className: 'fc-list-day-frame ' + theme.getClass('tableCellShaded'), ref: innerElRef }, innerContent)))); })); | ||
}; | ||
@@ -65,3 +66,3 @@ return ListViewHeaderRow; | ||
h("td", { class: 'fc-list-event-graphic' }, | ||
h("span", { class: 'fc-list-event-dot fc-dot', style: { | ||
h("span", { class: 'fc-list-event-dot', style: { | ||
backgroundColor: hookProps.event.backgroundColor | ||
@@ -143,11 +144,11 @@ } })), | ||
var _this = this; | ||
var extraClassNames = ['fc-list']; | ||
var themeClassName = context.theme.getClass('bordered'); | ||
if (themeClassName) { | ||
extraClassNames.push(themeClassName); | ||
} | ||
var extraClassNames = [ | ||
'fc-list', | ||
context.theme.getClass('bordered'), | ||
context.options.stickyHeaderDates !== false ? 'fc-list-sticky' : '' | ||
]; | ||
var _a = this.computeDateVars(props.dateProfile), dayDates = _a.dayDates, dayRanges = _a.dayRanges; | ||
var eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges); | ||
return (h(ViewRoot, { viewSpec: props.viewSpec, elRef: this.setRootEl }, function (rootElRef, classNames) { return (h("div", { ref: rootElRef, class: extraClassNames.concat(classNames).join(' ') }, | ||
h(Scroller, { liquid: !props.isHeightAuto, overflowX: 'hidden', overflowY: 'auto' }, eventSegs.length > 0 ? | ||
h(Scroller, { liquid: !props.isHeightAuto, overflowX: props.isHeightAuto ? 'visible' : 'hidden', overflowY: props.isHeightAuto ? 'visible' : 'auto' }, eventSegs.length > 0 ? | ||
_this.renderSegList(eventSegs, dayDates) : | ||
@@ -163,3 +164,3 @@ _this.renderEmptyMessage()))); })); | ||
return (h(RenderHook, { name: 'noEvents', hookProps: hookProps, defaultContent: renderNoEventsInner }, function (rootElRef, classNames, innerElRef, innerContent) { return (h("div", { className: ['fc-list-empty'].concat(classNames).join(' '), ref: rootElRef }, | ||
h("div", { className: 'fc-list-empty-inner', ref: innerElRef }, innerContent))); })); | ||
h("div", { className: 'fc-list-empty-cushion', ref: innerElRef }, innerContent))); })); | ||
}; | ||
@@ -276,3 +277,3 @@ ListView.prototype.renderSegList = function (allSegs, dayDates) { | ||
duration: { days: 1 }, | ||
listDayFormat: { weekday: 'long' } // day-of-week is all we need. full date is probably in header | ||
listDayFormat: { weekday: 'long' } // day-of-week is all we need. full date is probably in headerToolbar | ||
}, | ||
@@ -279,0 +280,0 @@ listWeek: { |
{ | ||
"name": "@fullcalendar/list", | ||
"version": "5.0.0-beta.1", | ||
"version": "5.0.0-beta.2", | ||
"title": "FullCalendar List View Plugin", | ||
@@ -30,3 +30,3 @@ "description": "View your events as a bulleted list", | ||
"peerDependencies": { | ||
"@fullcalendar/core": "5.0.0-beta.1" | ||
"@fullcalendar/core": "5.0.0-beta.2" | ||
}, | ||
@@ -33,0 +33,0 @@ "main": "main.js", |
Sorry, the diff of this file is not supported yet
19266
403