@event-calendar/day-grid
Advanced tools
Comparing version 0.10.2 to 0.11.0
18
index.js
@@ -1131,3 +1131,3 @@ import { SvelteComponent, init, safe_not_equal, element, text, attr, insert, append, set_data, detach, space, noop, destroy_each, component_subscribe, create_slot, listen, is_function, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, run_all, set_store_value, binding_callbacks, create_component, mount_component, action_destroyer, group_outros, destroy_component, check_outros, stop_propagation, bubble, empty } from 'svelte/internal'; | ||
// (110:1) {#if iChunks[1] && datesEqual(iChunks[1].date, date)} | ||
// (111:1) {#if iChunks[1] && datesEqual(iChunks[1].date, date)} | ||
function create_if_block_3(ctx) { | ||
@@ -1176,3 +1176,3 @@ let div; | ||
// (115:1) {#if iChunks[0] && datesEqual(iChunks[0].date, date)} | ||
// (117:1) {#if iChunks[0] && datesEqual(iChunks[0].date, date)} | ||
function create_if_block_2(ctx) { | ||
@@ -1221,3 +1221,3 @@ let div; | ||
// (121:2) {#each dayChunks as chunk} | ||
// (123:2) {#each dayChunks as chunk} | ||
function create_each_block$2(ctx) { | ||
@@ -1263,3 +1263,3 @@ let event; | ||
// (125:1) {#if $_popup.date && datesEqual(date, $_popup.date)} | ||
// (127:1) {#if $_popup.date && datesEqual(date, $_popup.date)} | ||
function create_if_block_1(ctx) { | ||
@@ -1293,3 +1293,3 @@ let popup; | ||
// (129:2) {#if hiddenEvents.size} | ||
// (131:2) {#if hiddenEvents.size} | ||
function create_if_block(ctx) { | ||
@@ -2229,5 +2229,5 @@ let a; | ||
component_subscribe($$self, hiddenDays, value => $$invalidate(9, $hiddenDays = value)); | ||
let state = new State(getContext('state')); | ||
setContext('view-state', state); | ||
let { _hiddenEvents } = state; | ||
let viewState = new State(getContext('state')); | ||
setContext('view-state', viewState); | ||
let { _hiddenEvents } = viewState; | ||
component_subscribe($$self, _hiddenEvents, value => $$invalidate(10, $_hiddenEvents = value)); | ||
@@ -2306,2 +2306,2 @@ set_store_value(_viewClass, $_viewClass = 'month', $_viewClass); | ||
export { index as default }; | ||
export { index as default, prepareEventChunks }; |
{ | ||
"name": "@event-calendar/day-grid", | ||
"version": "0.10.2", | ||
"version": "0.11.0", | ||
"title": "Event Calendar DayGrid plugin", | ||
@@ -36,5 +36,5 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/common": "~0.10.2", | ||
"@event-calendar/common": "~0.11.0", | ||
"svelte": "^3.47.0" | ||
} | ||
} |
@@ -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> |
import View from './View.svelte'; | ||
import {intl} from "@event-calendar/common"; | ||
import {intl} from '@event-calendar/common'; | ||
export {prepareEventChunks} from './events.js'; | ||
export default { | ||
@@ -5,0 +7,0 @@ createOptions(options) { |
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
125840
2125
2113
+ Added@event-calendar/common@0.11.2(transitive)
- Removed@event-calendar/common@0.10.2(transitive)