@fullcalendar/list
Advanced tools
Comparing version 5.6.0 to 5.7.0
MIT License | ||
Copyright (c) 2020 Adam Shaw | ||
Copyright (c) 2021 Adam Shaw | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
/*! | ||
FullCalendar v5.6.0 | ||
FullCalendar v5.7.0 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2020 Adam Shaw | ||
(c) 2021 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ 'use strict'; |
/*! | ||
FullCalendar v5.6.0 | ||
FullCalendar v5.7.0 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2020 Adam Shaw | ||
(c) 2021 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ var FullCalendarList = (function (exports, common) { |
/*! | ||
FullCalendar v5.6.0 | ||
FullCalendar v5.7.0 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2020 Adam Shaw | ||
(c) 2021 Adam Shaw | ||
*/ | ||
var FullCalendarList=function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){function a(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a(n,e),n.prototype.render=function(){var e=this.props,n=e.dayDate,a=e.todayRange,i=this.context,s=i.theme,l=i.dateEnv,c=i.options,u=i.viewApi,d=t.getDateMeta(n,a),m=c.listDayFormat?l.format(n,c.listDayFormat):"",v=c.listDaySideFormat?l.format(n,c.listDaySideFormat):"",y=c.navLinks?t.buildNavLinkData(n):null,f=r({date:l.toDate(n),view:u,text:m,sideText:v,navLinkData:y},d),g=["fc-list-day"].concat(t.getDayClassNames(d,s));return t.createElement(t.RenderHook,{hookProps:f,classNames:c.dayHeaderClassNames,content:c.dayHeaderContent,defaultContent:o,didMount:c.dayHeaderDidMount,willUnmount:c.dayHeaderWillUnmount},(function(e,a,r,i){return t.createElement("tr",{ref:e,className:g.concat(a).join(" "),"data-date":t.formatDayString(n)},t.createElement("th",{colSpan:3},t.createElement("div",{className:"fc-list-day-cushion "+s.getClass("tableCellShaded"),ref:r},i)))}))},n}(t.BaseComponent);function o(e){var n=e.navLinkData?{"data-navlink":e.navLinkData,tabIndex:0}:{};return t.createElement(t.Fragment,null,e.text&&t.createElement("a",r({className:"fc-list-day-text"},n),e.text),e.sideText&&t.createElement("a",r({className:"fc-list-day-side-text"},n),e.sideText))}var s=t.createFormatter({hour:"numeric",minute:"2-digit",meridiem:"short"}),l=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a(n,e),n.prototype.render=function(){var e=this.props,n=this.context,a=e.seg,r=n.options.eventTimeFormat||s;return t.createElement(t.EventRoot,{seg:a,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:c,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,i,o,s,l){return t.createElement("tr",{className:["fc-list-event",l.event.url?"fc-event-forced-url":""].concat(i).join(" "),ref:e},function(e,n,a){var r=a.options;if(!1!==r.displayEventTime){var i=e.eventRange.def,o=e.eventRange.instance,s=!1,l=void 0;if(i.allDay?s=!0:t.isMultiDayRange(e.eventRange.range)?e.isStart?l=t.buildSegTimeText(e,n,a,null,null,o.range.start,e.end):e.isEnd?l=t.buildSegTimeText(e,n,a,null,null,e.start,o.range.end):s=!0:l=t.buildSegTimeText(e,n,a),s){var c={text:a.options.allDayText,view:a.viewApi};return t.createElement(t.RenderHook,{hookProps:c,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:u,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(e,n,a,r){return t.createElement("td",{className:["fc-list-event-time"].concat(n).join(" "),ref:e},r)}))}return t.createElement("td",{className:"fc-list-event-time"},l)}return null}(a,r,n),t.createElement("td",{className:"fc-list-event-graphic"},t.createElement("span",{className:"fc-list-event-dot",style:{borderColor:l.borderColor||l.backgroundColor}})),t.createElement("td",{className:"fc-list-event-title",ref:o},s))}))},n}(t.BaseComponent);function c(e){var n=e.event,a=n.url,i=a?{href:a}:{};return t.createElement("a",r({},i),n.title)}function u(e){return e.text}var d=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.computeDateVars=t.memoize(v),n.eventStoreToSegs=t.memoize(n._eventStoreToSegs),n.setRootEl=function(e){e?n.context.registerInteractiveComponent(n,{el:e}):n.context.unregisterInteractiveComponent(n)},n}return a(n,e),n.prototype.render=function(){var e=this,n=this.props,a=this.context,r=["fc-list",a.theme.getClass("table"),!1!==a.options.stickyHeaderDates?"fc-list-sticky":""],i=this.computeDateVars(n.dateProfile),o=i.dayDates,s=i.dayRanges,l=this.eventStoreToSegs(n.eventStore,n.eventUiBases,s);return t.createElement(t.ViewRoot,{viewSpec:a.viewSpec,elRef:this.setRootEl},(function(a,i){return t.createElement("div",{ref:a,className:r.concat(i).join(" ")},t.createElement(t.Scroller,{liquid:!n.isHeightAuto,overflowX:n.isHeightAuto?"visible":"hidden",overflowY:n.isHeightAuto?"visible":"auto"},l.length>0?e.renderSegList(l,o):e.renderEmptyMessage()))}))},n.prototype.renderEmptyMessage=function(){var e=this.context,n=e.options,a=e.viewApi,r={text:n.noEventsText,view:a};return t.createElement(t.RenderHook,{hookProps:r,classNames:n.noEventsClassNames,content:n.noEventsContent,defaultContent:m,didMount:n.noEventsDidMount,willUnmount:n.noEventsWillUnmount},(function(e,n,a,r){return t.createElement("div",{className:["fc-list-empty"].concat(n).join(" "),ref:e},t.createElement("div",{className:"fc-list-empty-cushion",ref:a},r))}))},n.prototype.renderSegList=function(e,n){var a=this.context,o=a.theme,s=a.options,c=function(e){var t,n,a=[];for(t=0;t<e.length;t+=1)n=e[t],(a[n.dayIndex]||(a[n.dayIndex]=[])).push(n);return a}(e);return t.createElement(t.NowTimer,{unit:"day"},(function(e,a){for(var u=[],d=0;d<c.length;d+=1){var m=c[d];if(m){var v=n[d].toISOString();u.push(t.createElement(i,{key:v,dayDate:n[d],todayRange:a}));for(var y=0,f=m=t.sortEventSegs(m,s.eventOrder);y<f.length;y++){var g=f[y];u.push(t.createElement(l,r({key:v+":"+g.eventRange.instance.instanceId,seg:g,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1},t.getSegMeta(g,a,e))))}}}return t.createElement("table",{className:"fc-list-table "+o.getClass("table")},t.createElement("tbody",null,u))}))},n.prototype._eventStoreToSegs=function(e,n,a){return this.eventRangesToSegs(t.sliceEventStore(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,a)},n.prototype.eventRangesToSegs=function(e,t){for(var n=[],a=0,r=e;a<r.length;a++){var i=r[a];n.push.apply(n,this.eventRangeToSegs(i,t))}return n},n.prototype.eventRangeToSegs=function(e,n){var a,r,i,o=this.context.dateEnv,s=this.context.options.nextDayThreshold,l=e.range,c=e.def.allDay,u=[];for(a=0;a<n.length;a+=1)if((r=t.intersectRanges(l,n[a]))&&(i={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===l.end.valueOf(),dayIndex:a},u.push(i),!i.isEnd&&!c&&a+1<n.length&&l.end<o.add(n[a+1].start,s))){i.end=l.end,i.isEnd=!0;break}return u},n}(t.DateComponent);function m(e){return e.text}function v(e){for(var n=t.startOfDay(e.renderRange.start),a=e.renderRange.end,r=[],i=[];n<a;)r.push(n),i.push({start:n,end:t.addDays(n,1)}),n=t.addDays(n,1);return{dayDates:r,dayRanges:i}}var y={listDayFormat:f,listDaySideFormat:f,noEventsClassNames:t.identity,noEventsContent:t.identity,noEventsDidMount:t.identity,noEventsWillUnmount:t.identity};function f(e){return!1===e?null:t.createFormatter(e)}var g=t.createPlugin({optionRefiners:y,views:{list:{component:d,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});return t.globalPlugins.push(g),e.ListView=d,e.default=g,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar); |
/*! | ||
FullCalendar v5.6.0 | ||
FullCalendar v5.7.0 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2020 Adam Shaw | ||
(c) 2021 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ import './main.css'; |
{ | ||
"name": "@fullcalendar/list", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"title": "FullCalendar List View Plugin", | ||
@@ -8,3 +8,3 @@ "description": "View your events as a bulleted list", | ||
"dependencies": { | ||
"@fullcalendar/common": "~5.6.0", | ||
"@fullcalendar/common": "~5.7.0", | ||
"tslib": "^2.0.3" | ||
@@ -31,4 +31,4 @@ }, | ||
"devDependencies": { | ||
"@fullcalendar/core-preact": "5.6.0" | ||
"@fullcalendar/core-preact": "5.7.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@fullcalendar/common@5.7.2(transitive)
- Removed@fullcalendar/common@5.6.0(transitive)
Updated@fullcalendar/common@~5.7.0