@event-calendar/list
Advanced tools
Comparing version 2.3.2 to 2.3.3
43
index.js
@@ -1,2 +0,2 @@ | ||
import { setContent, toEventWithLocalDates, toViewWithLocalDates, createEventClasses, createEventContent, setMidnight, createDate, addDay, cloneDate, bgEvent, eventIntersects, createEventChunk, sortEventChunks, datesEqual, setPayload, btnTextDay, themeView, btnTextWeek, btnTextMonth, btnTextYear, intl } from '@event-calendar/core'; | ||
import { setContent, toEventWithLocalDates, toViewWithLocalDates, createEventClasses, createEventContent, addDay, cloneDate, bgEvent, eventIntersects, createEventChunk, sortEventChunks, datesEqual, setPayload, btnTextDay, themeView, btnTextWeek, btnTextMonth, btnTextYear, intl } from '@event-calendar/core'; | ||
import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, binding_callbacks, space, action_destroyer, listen, is_function, noop, run_all, empty, group_outros, check_outros, ensure_array_like, update_keyed_each, outro_and_destroy_block, create_component, mount_component, destroy_component, destroy_each } from 'svelte/internal'; | ||
@@ -352,7 +352,7 @@ import { getContext, onMount } from 'svelte'; | ||
const child_ctx = ctx.slice(); | ||
child_ctx[19] = list[i]; | ||
child_ctx[20] = list[i]; | ||
return child_ctx; | ||
} | ||
// (50:0) {#if chunks.length} | ||
// (46:0) {#if chunks.length} | ||
function create_if_block$1(ctx) { | ||
@@ -375,3 +375,3 @@ let div; | ||
let each_value = ensure_array_like(/*chunks*/ ctx[2]); | ||
const get_key = ctx => /*chunk*/ ctx[19].event; | ||
const get_key = ctx => /*chunk*/ ctx[20].event; | ||
@@ -408,3 +408,3 @@ for (let i = 0; i < each_value.length; i += 1) { | ||
append(div, span1); | ||
/*div_binding*/ ctx[17](div); | ||
/*div_binding*/ ctx[19](div); | ||
insert(target, t1, anchor); | ||
@@ -479,3 +479,3 @@ | ||
/*div_binding*/ ctx[17](null); | ||
/*div_binding*/ ctx[19](null); | ||
@@ -492,3 +492,3 @@ for (let i = 0; i < each_blocks.length; i += 1) { | ||
// (59:4) {#each chunks as chunk (chunk.event)} | ||
// (55:4) {#each chunks as chunk (chunk.event)} | ||
function create_each_block$1(key_1, ctx) { | ||
@@ -498,3 +498,3 @@ let first; | ||
let current; | ||
event = new Event({ props: { chunk: /*chunk*/ ctx[19] } }); | ||
event = new Event({ props: { chunk: /*chunk*/ ctx[20] } }); | ||
@@ -517,3 +517,3 @@ return { | ||
const event_changes = {}; | ||
if (dirty & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[19]; | ||
if (dirty & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[20]; | ||
event.$set(event_changes); | ||
@@ -600,2 +600,3 @@ }, | ||
let $highlightedDates; | ||
let $_today; | ||
let $_events; | ||
@@ -607,12 +608,13 @@ let $theme; | ||
let { date } = $$props; | ||
let { _events, _interaction, _intlListDay, _intlListDaySide, highlightedDates, theme } = getContext('state'); | ||
component_subscribe($$self, _events, value => $$invalidate(16, $_events = value)); | ||
let { _events, _interaction, _intlListDay, _intlListDaySide, _today, highlightedDates, theme } = getContext('state'); | ||
component_subscribe($$self, _events, value => $$invalidate(18, $_events = value)); | ||
component_subscribe($$self, _interaction, value => $$invalidate(6, $_interaction = value)); | ||
component_subscribe($$self, _intlListDay, value => $$invalidate(7, $_intlListDay = value)); | ||
component_subscribe($$self, _intlListDaySide, value => $$invalidate(8, $_intlListDaySide = value)); | ||
component_subscribe($$self, highlightedDates, value => $$invalidate(15, $highlightedDates = value)); | ||
component_subscribe($$self, _today, value => $$invalidate(17, $_today = value)); | ||
component_subscribe($$self, highlightedDates, value => $$invalidate(16, $highlightedDates = value)); | ||
component_subscribe($$self, theme, value => $$invalidate(5, $theme = value)); | ||
let el; | ||
let chunks; | ||
let today = setMidnight(createDate()), isToday, highlight; | ||
let isToday, highlight; | ||
@@ -631,3 +633,3 @@ function div_binding($$value) { | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*date, $_events, chunks*/ 65541) { | ||
if ($$self.$$.dirty & /*date, $_events, chunks*/ 262149) { | ||
{ | ||
@@ -649,9 +651,10 @@ $$invalidate(2, chunks = []); | ||
if ($$self.$$.dirty & /*date, $highlightedDates*/ 32769) { | ||
{ | ||
$$invalidate(3, isToday = datesEqual(date, today)); | ||
$$invalidate(4, highlight = $highlightedDates.some(d => datesEqual(d, date))); | ||
} | ||
if ($$self.$$.dirty & /*date, $_today*/ 131073) { | ||
$$invalidate(3, isToday = datesEqual(date, $_today)); | ||
} | ||
if ($$self.$$.dirty & /*$highlightedDates, date*/ 65537) { | ||
$$invalidate(4, highlight = $highlightedDates.some(d => datesEqual(d, date))); | ||
} | ||
if ($$self.$$.dirty & /*el, date*/ 3) { | ||
@@ -684,5 +687,7 @@ // dateFromPoint | ||
_intlListDaySide, | ||
_today, | ||
highlightedDates, | ||
theme, | ||
$highlightedDates, | ||
$_today, | ||
$_events, | ||
@@ -689,0 +694,0 @@ div_binding |
{ | ||
"name": "@event-calendar/list", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"title": "Event Calendar List plugin", | ||
@@ -29,5 +29,5 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/core": "~2.3.2", | ||
"@event-calendar/core": "~2.3.3", | ||
"svelte": "^4.1.1" | ||
} | ||
} |
@@ -199,4 +199,4 @@ # 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) | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.3.2/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.3.2/event-calendar.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.3.3/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.3.3/event-calendar.min.js"></script> | ||
``` | ||
@@ -203,0 +203,0 @@ |
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
99421
1028
Updated@event-calendar/core@~2.3.3