@event-calendar/common
Advanced tools
Comparing version 0.10.2 to 0.11.0
@@ -295,2 +295,3 @@ import { is_function } from 'svelte/internal'; | ||
: ('resourceId' in event ? [String(event.resourceId)] : []), | ||
allDay: event.allDay || false, | ||
start: createDate(event.start), | ||
@@ -297,0 +298,0 @@ end: createDate(event.end), |
{ | ||
"name": "@event-calendar/common", | ||
"version": "0.10.2", | ||
"version": "0.11.0", | ||
"title": "Event Calendar Common package", | ||
@@ -5,0 +5,0 @@ "description": "Full-sized drag & drop event calendar with resource view", |
@@ -1,2 +0,2 @@ | ||
# Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![Donate](https://img.shields.io/badge/Donate_$10-PayPal-green.svg)](https://www.paypal.me/vkurko/10usd) [![Donate](https://img.shields.io/badge/Donate_$1-PayPal-green.svg)](https://www.paypal.me/vkurko/1usd) | ||
# Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![Sponsor](https://img.shields.io/badge/Sponsor-$10-green.svg)](https://www.paypal.me/vkurko/10usd) [![Sponsor](https://img.shields.io/badge/Sponsor-$1-green.svg)](https://www.paypal.me/vkurko/1usd) | ||
@@ -7,3 +7,3 @@ See [demo](https://vkurko.github.io/calendar/). | ||
* Lightweight (49kb [br](https://en.wikipedia.org/wiki/Brotli) compressed `modern` version) | ||
* Lightweight (55kb [br](https://en.wikipedia.org/wiki/Brotli) compressed `modern` version) | ||
* Zero-dependency (pre-built bundle) | ||
@@ -23,2 +23,4 @@ * Used by [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/) | ||
- [allDayContent](#alldaycontent) | ||
- [allDaySlot](#alldayslot) | ||
- [buttonText](#buttontext) | ||
@@ -43,5 +45,5 @@ - [date](#date) | ||
- [eventDragMinDistance](#eventdragmindistance) | ||
- [eventDragStart](#eventdragstart) | ||
</td><td> | ||
- [eventDragStart](#eventdragstart) | ||
- [eventDragStop](#eventdragstop) | ||
@@ -218,2 +220,37 @@ - [eventDrop](#eventdrop) | ||
### allDayContent | ||
- Type `string`, `object`or `function` | ||
- Default `'all-day'` | ||
Defines the content that is displayed as a title of the `all-day` slot. | ||
This value can be either a string containing HTML `'<p>...</p>'`, an object containing the HTML string `{html: '<p>...</p>'}`, an object containing an array of DOM nodes `{domNodes: [node1, node2, ...]}` or a function that returns any of the above formats: | ||
```js | ||
function (arg) { | ||
// return string or object | ||
} | ||
``` | ||
`arg` is an object with the following properties: | ||
<table> | ||
<tr> | ||
<td> | ||
`text` | ||
</td> | ||
<td> | ||
The default text | ||
</td> | ||
</tr> | ||
</table> | ||
### allDaySlot | ||
- Type `boolean` | ||
- Default `false` | ||
Determines whether the `all-day` slot is displayed at the top of the calendar. | ||
When hidden with false, all-day events will not be displayed in `timeGrid`/`resourceTimeGrid` views. | ||
### buttonText | ||
@@ -1698,2 +1735,11 @@ - Type `object` | ||
`allDay` | ||
</td> | ||
<td> | ||
Boolean (`true` or `false`). Determines if the event is shown in the `all-day` slot</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
`start` | ||
@@ -1819,2 +1865,12 @@ </td> | ||
`allDay` | ||
</td> | ||
<td> | ||
`boolean` Determines if the event is shown in the all-day slot. Default `false` | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
`start` | ||
@@ -1821,0 +1877,0 @@ </td> |
@@ -15,2 +15,3 @@ import {createDate, cloneDate, toLocalDate} from './date'; | ||
: ('resourceId' in event ? [String(event.resourceId)] : []), | ||
allDay: event.allDay || false, | ||
start: createDate(event.start), | ||
@@ -17,0 +18,0 @@ end: createDate(event.end), |
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
72863
766
2113