@event-calendar/resource-time-grid
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -45,3 +45,3 @@ import { SvelteComponent, init, safe_not_equal, create_component, space, mount_component, insert, transition_in, transition_out, destroy_component, detach, component_subscribe, element, text, attr, append, set_data, destroy_each, empty, group_outros, check_outros } from 'svelte/internal'; | ||
/* packages/resource-time-grid/src/View.svelte generated by Svelte v3.38.2 */ | ||
/* packages/resource-time-grid/src/View.svelte generated by Svelte v3.38.3 */ | ||
@@ -48,0 +48,0 @@ function get_each_context(ctx, list, i) { |
{ | ||
"name": "@event-calendar/resource-time-grid", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"title": "Event Calendar ResourceTimeGrid plugin", | ||
@@ -20,5 +20,5 @@ "description": "Full-sized event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/time-grid": "~0.1.2", | ||
"svelte": "^3.38.2" | ||
"@event-calendar/time-grid": "~0.2.0", | ||
"svelte": "^3.38.3" | ||
} | ||
} |
143
README.md
@@ -1,2 +0,2 @@ | ||
# Event Calendar | ||
# Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) | ||
@@ -20,54 +20,54 @@ See [demo](https://vkurko.github.io/calendar/). | ||
<tr><td> | ||
- [buttonText](#buttontext) | ||
- [date](#date) | ||
- [dateClick](#dateclick) | ||
- [dayHeaderFormat](#dayheaderformat) | ||
- [displayEventEnd](#displayeventend) | ||
- [duration](#duration) | ||
- [editable](#editable) | ||
- [events](#events) | ||
- [eventBackgroundColor](#eventbackgroundcolor) | ||
- [eventClick](#eventclick) | ||
- [eventColor](#eventcolor) | ||
- [eventContent](#eventcontent) | ||
- [eventDidMount](#eventdidmount) | ||
- [eventDragMinDistance](#eventdragmindistance) | ||
- [eventDragStart](#eventdragstart) | ||
- [eventDragStop](#eventdragstop) | ||
- [buttonText](#buttontext) | ||
- [date](#date) | ||
- [dateClick](#dateclick) | ||
- [dayHeaderFormat](#dayheaderformat) | ||
- [displayEventEnd](#displayeventend) | ||
- [duration](#duration) | ||
- [editable](#editable) | ||
- [events](#events) | ||
- [eventBackgroundColor](#eventbackgroundcolor) | ||
- [eventClick](#eventclick) | ||
- [eventColor](#eventcolor) | ||
- [eventContent](#eventcontent) | ||
- [eventDidMount](#eventdidmount) | ||
- [eventDragMinDistance](#eventdragmindistance) | ||
- [eventDragStart](#eventdragstart) | ||
- [eventDragStop](#eventdragstop) | ||
</td><td> | ||
- [eventDrop](#eventdrop) | ||
- [eventMouseEnter](#eventmouseenter) | ||
- [eventMouseLeave](#eventmouseleave) | ||
- [eventSources](#eventsources) | ||
- [eventStartEditable](#eventstarteditable) | ||
- [eventTimeFormat](#eventtimeformat) | ||
- [firstDay](#firstday) | ||
- [flexibleSlotTimeLimits](#flexibleslottimelimits) | ||
- [headerToolbar](#headertoolbar) | ||
- [height](#height) | ||
- [hiddenDays](#hiddendays) | ||
- [hideResourcesWithNoEvents](#hideresourceswithnoevents) | ||
- [highlightedDates](#highlighteddates) | ||
- [lazyFetching](#lazyfetching) | ||
- [listDayFormat](#listdayformat) | ||
- [listDaySideFormat](#listdaysideformat) | ||
- [eventDrop](#eventdrop) | ||
- [eventMouseEnter](#eventmouseenter) | ||
- [eventMouseLeave](#eventmouseleave) | ||
- [eventSources](#eventsources) | ||
- [eventStartEditable](#eventstarteditable) | ||
- [eventTimeFormat](#eventtimeformat) | ||
- [firstDay](#firstday) | ||
- [flexibleSlotTimeLimits](#flexibleslottimelimits) | ||
- [headerToolbar](#headertoolbar) | ||
- [height](#height) | ||
- [hiddenDays](#hiddendays) | ||
- [hideResourcesWithNoEvents](#hideresourceswithnoevents) | ||
- [highlightedDates](#highlighteddates) | ||
- [lazyFetching](#lazyfetching) | ||
- [listDayFormat](#listdayformat) | ||
- [listDaySideFormat](#listdaysideformat) | ||
</td><td> | ||
- [loading](#loading) | ||
- [locale](#locale) | ||
- [monthMode](#monthmode) | ||
- [noEventsClick](#noeventsclick) | ||
- [noEventsContent](#noeventscontent) | ||
- [resources](#resources) | ||
- [scrollTime](#scrolltime) | ||
- [slotDuration](#slotduration) | ||
- [slotLabelFormat](#slotlabelformat) | ||
- [slotMaxTime](#slotmaxtime) | ||
- [slotMinTime](#slotmintime) | ||
- [theme](#theme) | ||
- [view](#view) | ||
- [viewDidMount](#viewdidmount) | ||
- [views](#views) | ||
- [loading](#loading) | ||
- [locale](#locale) | ||
- [monthMode](#monthmode) | ||
- [noEventsClick](#noeventsclick) | ||
- [noEventsContent](#noeventscontent) | ||
- [resources](#resources) | ||
- [scrollTime](#scrolltime) | ||
- [slotDuration](#slotduration) | ||
- [slotLabelFormat](#slotlabelformat) | ||
- [slotMaxTime](#slotmaxtime) | ||
- [slotMinTime](#slotmintime) | ||
- [theme](#theme) | ||
- [view](#view) | ||
- [viewDidMount](#viewdidmount) | ||
- [views](#views) | ||
</td></tr> | ||
@@ -726,3 +726,5 @@ </table> | ||
`EventSource` should be an object with the following properties: | ||
`EventSource` should be an object with one of the following sets of properties: | ||
###### 1. Fetch events from a URL | ||
<table> | ||
@@ -761,2 +763,43 @@ <tr> | ||
###### 2. Execute custom function | ||
<table> | ||
<tr> | ||
<td> | ||
`events` | ||
</td> | ||
<td> | ||
A custom function that is executed whenever the Event Calendar needs new event data. | ||
```js | ||
function(fetchInfo, successCallback, failureCallback) { } | ||
``` | ||
`fetchInfo` is an object with the following properties: | ||
<table> | ||
<tr> | ||
<td> | ||
`start` | ||
</td> | ||
<td>JavaScript Date object for the beginning of the range the calendar needs events for</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
`end` | ||
</td> | ||
<td>JavaScript Date object for the end of the range the calendar needs events for. Note: This value is exclusive</td> | ||
</tr> | ||
</table> | ||
The `successCallback` function must be called by the custom function with an array of parsable [Event](#event-object) objects. | ||
If there is any failure (e.g., if an AJAX request fails), then call the `failureCallback` instead. It accepts an argument with information about the failure. | ||
Instead of calling `successCallback` and `failureCallback`, you may return the resulting array of events or return a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) (or [thenable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve)) object instead. | ||
</td> | ||
</tr> | ||
</table> | ||
### eventStartEditable | ||
@@ -763,0 +806,0 @@ - Type `boolean` |
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
51036
1532
+ Added@event-calendar/common@0.2.0(transitive)
+ Added@event-calendar/time-grid@0.2.0(transitive)
- Removed@event-calendar/common@0.1.2(transitive)
- Removed@event-calendar/time-grid@0.1.2(transitive)
Updatedsvelte@^3.38.3