@event-calendar/day-grid
Advanced tools
Comparing version 0.16.1 to 0.17.0
39
index.js
import { SvelteComponent, init, safe_not_equal, element, space, attr, insert, append, noop, detach, destroy_each, component_subscribe, text, set_data, 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, construct_svelte_component, create_component, mount_component, action_destroyer, group_outros, destroy_component, check_outros, stop_propagation, update_keyed_each, outro_and_destroy_block, empty, bubble } from 'svelte/internal'; | ||
import { getContext, tick, onMount, afterUpdate, setContext } from 'svelte'; | ||
import { getContext, onMount, tick, afterUpdate, setContext } from 'svelte'; | ||
import { derived, writable } from 'svelte/store'; | ||
import { cloneDate, subtractDay, addDay, hasYScroll, setContent, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, repositionEvent, height, ancestor, outsideEvent, rect, datesEqual, setMidnight, createDate, toLocalDate, toISOString, assign, createEventChunk, setFn, prepareEventChunks, intl } from '@event-calendar/common'; | ||
import { cloneDate, subtractDay, addDay, hasYScroll, setContent, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, repositionEvent, height, ancestor, outsideEvent, rect, datesEqual, setMidnight, createDate, debounce, toLocalDate, toISOString, assign, createEventChunk, setFn, prepareEventChunks, intl } from '@event-calendar/common'; | ||
@@ -322,3 +322,3 @@ function days(state) { | ||
if (el && $_events) { | ||
tick().then(recheckScrollable); | ||
setTimeout(recheckScrollable); | ||
} | ||
@@ -1041,9 +1041,9 @@ } | ||
const child_ctx = ctx.slice(); | ||
child_ctx[46] = list[i]; | ||
child_ctx[47] = list; | ||
child_ctx[48] = i; | ||
child_ctx[48] = list[i]; | ||
child_ctx[49] = list; | ||
child_ctx[50] = i; | ||
return child_ctx; | ||
} | ||
// (140:4) {#if iChunks[1] && datesEqual(iChunks[1].date, date)} | ||
// (141:4) {#if iChunks[1] && datesEqual(iChunks[1].date, date)} | ||
function create_if_block_3(ctx) { | ||
@@ -1092,3 +1092,3 @@ let div; | ||
// (146:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)} | ||
// (147:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)} | ||
function create_if_block_2(ctx) { | ||
@@ -1137,7 +1137,7 @@ let div; | ||
// (152:8) {#each dayChunks as chunk, i (chunk.event)} | ||
// (153:8) {#each dayChunks as chunk, i (chunk.event)} | ||
function create_each_block$2(key_1, ctx) { | ||
let first; | ||
let event; | ||
let i = /*i*/ ctx[48]; | ||
let i = /*i*/ ctx[50]; | ||
let current; | ||
@@ -1148,3 +1148,3 @@ const assign_event = () => /*event_binding*/ ctx[39](event, i); | ||
let event_props = { | ||
chunk: /*chunk*/ ctx[46], | ||
chunk: /*chunk*/ ctx[48], | ||
longChunks: /*longChunks*/ ctx[1] | ||
@@ -1172,5 +1172,5 @@ }; | ||
if (i !== /*i*/ ctx[48]) { | ||
if (i !== /*i*/ ctx[50]) { | ||
unassign_event(); | ||
i = /*i*/ ctx[48]; | ||
i = /*i*/ ctx[50]; | ||
assign_event(); | ||
@@ -1180,3 +1180,3 @@ } | ||
const event_changes = {}; | ||
if (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[46]; | ||
if (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[48]; | ||
if (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1]; | ||
@@ -1202,3 +1202,3 @@ event.$set(event_changes); | ||
// (156:4) {#if showPopup} | ||
// (157:4) {#if showPopup} | ||
function create_if_block_1(ctx) { | ||
@@ -1232,3 +1232,3 @@ let popup; | ||
// (160:8) {#if hiddenEvents.size} | ||
// (161:8) {#if hiddenEvents.size} | ||
function create_if_block(ctx) { | ||
@@ -1294,3 +1294,3 @@ let a; | ||
let each_value = /*dayChunks*/ ctx[4]; | ||
const get_key = ctx => /*chunk*/ ctx[46].event; | ||
const get_key = ctx => /*chunk*/ ctx[48].event; | ||
@@ -1558,3 +1558,3 @@ for (let i = 0; i < each_value.length; i += 1) { | ||
let { iChunks = [] } = $$props; | ||
let { date: currentDate, dateClick, dayMaxEvents, highlightedDates, moreLinkContent, theme, _view, _interaction, selectable } = getContext('state'); | ||
let { date: currentDate, dateClick, dayMaxEvents, highlightedDates, moreLinkContent, theme, _view, _interaction, selectable, _queue } = getContext('state'); | ||
component_subscribe($$self, currentDate, value => $$invalidate(37, $currentDate = value)); | ||
@@ -1627,2 +1627,3 @@ component_subscribe($$self, dateClick, value => $$invalidate(13, $dateClick = value)); | ||
afterUpdate(reposition); | ||
let debounceHandle = {}; | ||
@@ -1721,3 +1722,3 @@ function pointerdown_handler(event) { | ||
if ($_hiddenEvents) { | ||
tick().then(reposition); | ||
debounce(reposition, debounceHandle, _queue); | ||
} | ||
@@ -1724,0 +1725,0 @@ } |
{ | ||
"name": "@event-calendar/day-grid", | ||
"version": "0.16.1", | ||
"version": "0.17.0", | ||
"title": "Event Calendar DayGrid plugin", | ||
@@ -39,5 +39,5 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/common": "~0.16.1", | ||
"@event-calendar/common": "~0.17.0", | ||
"svelte": "^3.55.1" | ||
} | ||
} |
@@ -120,2 +120,3 @@ # Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![npm](https://img.shields.io/npm/dm/@event-calendar/core?color=red&label=npm&style=flat-square)](https://www.npmjs.com/package/@event-calendar/core) [![Sponsor](https://img.shields.io/badge/Sponsor-$10-blue.svg?style=flat-square&logo=paypal)](https://www.paypal.me/vkurko/10usd) | ||
- [dateFromPoint](#datefrompoint-x-y-) | ||
- [destroy](#destroy) | ||
- [getView](#getview) | ||
@@ -195,4 +196,4 @@ - [unselect](#unselect-1) | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.16.1/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.16.1/event-calendar.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.17.0/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.17.0/event-calendar.min.js"></script> | ||
``` | ||
@@ -2006,2 +2007,7 @@ | ||
### destroy() | ||
- Return value `undefined` | ||
Destroys the calendar, removing all DOM elements, event handlers, and internal data. | ||
### getView() | ||
@@ -2008,0 +2014,0 @@ - Return value `View` |
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
134892
2055
2455
+ Added@event-calendar/common@0.17.1(transitive)
- Removed@event-calendar/common@0.16.1(transitive)