@fullcalendar/list
Advanced tools
Comparing version 5.0.0-beta.4 to 5.0.0-rc
@@ -1,7 +0,8 @@ | ||
import { ViewApi, DateComponent, ViewProps, createElement, Seg, DateMarker, EventStore, EventUiHash, DateRange, EventRenderRange, Identity, ClassNamesGenerator, CustomContentGenerator, DidMountHandler, WillUnmountHandler, FormatterInput, DateFormatter, PluginDef } from '@fullcalendar/common'; | ||
import { ViewApi, MountArg, DateComponent, ViewProps, createElement, Seg, DateMarker, EventStore, EventUiHash, DateRange, EventRenderRange, Identity, ClassNamesGenerator, CustomContentGenerator, DidMountHandler, WillUnmountHandler, FormatterInput, DateFormatter, PluginDef } from '@fullcalendar/common'; | ||
interface NoEventsHookProps { | ||
interface NoEventsContentArg { | ||
text: string; | ||
view: ViewApi; | ||
} | ||
declare type NoEventsMountArg = MountArg<NoEventsContentArg>; | ||
declare class ListView extends DateComponent<ViewProps> { | ||
@@ -23,6 +24,6 @@ private computeDateVars; | ||
listDaySideFormat: typeof createFalsableFormatter; | ||
noEventsClassNames: Identity<ClassNamesGenerator<NoEventsHookProps>>; | ||
noEventsContent: Identity<CustomContentGenerator<NoEventsHookProps>>; | ||
noEventsDidMount: Identity<DidMountHandler<NoEventsHookProps>>; | ||
noEventsWillUnmount: Identity<WillUnmountHandler<NoEventsHookProps>>; | ||
noEventsClassNames: Identity<ClassNamesGenerator<NoEventsContentArg>>; | ||
noEventsContent: Identity<CustomContentGenerator<NoEventsContentArg>>; | ||
noEventsDidMount: Identity<DidMountHandler<MountArg<NoEventsContentArg>>>; | ||
noEventsWillUnmount: Identity<WillUnmountHandler<MountArg<NoEventsContentArg>>>; | ||
}; | ||
@@ -40,2 +41,2 @@ declare function createFalsableFormatter(input: FormatterInput | false): DateFormatter; | ||
export default _default; | ||
export { ListView, NoEventsHookProps }; | ||
export { ListView, NoEventsContentArg, NoEventsMountArg }; |
13
main.js
/*! | ||
FullCalendar v5.0.0-beta.4 | ||
FullCalendar v5.0.0-rc | ||
Docs & License: https://fullcalendar.io/ | ||
@@ -32,3 +32,3 @@ (c) 2019 Adam Shaw | ||
createElement("th", { colSpan: 3 }, | ||
createElement("div", { className: 'fc-list-day-frame ' + theme.getClass('tableCellShaded'), ref: innerElRef }, innerContent)))); })); | ||
createElement("div", { className: 'fc-list-day-cushion ' + theme.getClass('tableCellShaded'), ref: innerElRef }, innerContent)))); })); | ||
}; | ||
@@ -38,7 +38,10 @@ return ListViewHeaderRow; | ||
function renderInnerContent(props) { | ||
var navLinkAttrs = props.navLinkData // is there a type for this? | ||
? { 'data-navlink': props.navLinkData, tabIndex: 0 } | ||
: {}; | ||
return (createElement(Fragment, null, | ||
props.text && | ||
createElement("a", { className: 'fc-list-day-text', "data-navlink": props.navLinkData }, props.text), | ||
createElement("a", __assign({ className: 'fc-list-day-text' }, navLinkAttrs), props.text), | ||
props.sideText && | ||
createElement("a", { className: 'fc-list-day-side-text', "data-navlink": props.navLinkData }, props.sideText))); | ||
createElement("a", __assign({ className: 'fc-list-day-side-text' }, navLinkAttrs), props.sideText))); | ||
} | ||
@@ -141,3 +144,3 @@ | ||
'fc-list', | ||
context.theme.getClass('bordered'), | ||
context.theme.getClass('table'), | ||
context.options.stickyHeaderDates !== false ? 'fc-list-sticky' : '' | ||
@@ -144,0 +147,0 @@ ]; |
{ | ||
"name": "@fullcalendar/list", | ||
"version": "5.0.0-beta.4", | ||
"version": "5.0.0-rc", | ||
"title": "FullCalendar List View Plugin", | ||
@@ -8,6 +8,6 @@ "description": "View your events as a bulleted list", | ||
"dependencies": { | ||
"@fullcalendar/common": "5.0.0-beta.4", | ||
"tslib": "^1.9.3" | ||
"@fullcalendar/common": "5.0.0-rc", | ||
"tslib": "^2.0.0" | ||
}, | ||
"module": "main.js", | ||
"main": "main.js", | ||
"types": "main.d.ts", | ||
@@ -14,0 +14,0 @@ "homepage": "https://fullcalendar.io/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
50046
450
+ Added@fullcalendar/common@5.0.0-rc(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@fullcalendar/common@5.0.0-beta.4(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0