@event-calendar/day-grid
Advanced tools
Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
12
index.js
@@ -12,3 +12,3 @@ import { SvelteComponent, init, safe_not_equal, element, text, attr, insert, append, set_data, detach, space, noop, destroy_each, component_subscribe, create_slot, listen, update_slot, transition_in, transition_out, set_store_value, binding_callbacks, action_destroyer, is_function, run_all, create_component, mount_component, destroy_component, group_outros, check_outros, empty } from 'svelte/internal'; | ||
// First day of week | ||
while (day.getDay() !== $firstDay && max) { | ||
while (day.getUTCDay() !== $firstDay && max) { | ||
subtractDay(day); | ||
@@ -18,3 +18,3 @@ --max; | ||
for (let i = 0; i < 7; ++i) { | ||
if (!$hiddenDays.includes(day.getDay())) { | ||
if (!$hiddenDays.includes(day.getUTCDay())) { | ||
days.push(cloneDate(day)); | ||
@@ -330,3 +330,3 @@ } | ||
for (let chunk of chunks) { | ||
while (hiddenDays.includes(chunk.start.getDay())) { | ||
while (hiddenDays.includes(chunk.start.getUTCDay())) { | ||
// Try to move the start up to the first visible day | ||
@@ -634,3 +634,3 @@ let start = addDay(setMidnight(cloneDate(chunk.start))); | ||
let div0; | ||
let t0_value = /*date*/ ctx[0].getDate() + ""; | ||
let t0_value = /*date*/ ctx[0].getUTCDate() + ""; | ||
let t0; | ||
@@ -696,3 +696,3 @@ let div0_class_value; | ||
p(ctx, [dirty]) { | ||
if ((!current || dirty & /*date*/ 1) && t0_value !== (t0_value = /*date*/ ctx[0].getDate() + "")) set_data(t0, t0_value); | ||
if ((!current || dirty & /*date*/ 1) && t0_value !== (t0_value = /*date*/ ctx[0].getUTCDate() + "")) set_data(t0, t0_value); | ||
@@ -819,3 +819,3 @@ if (!current || dirty & /*$theme*/ 64 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[6].dayHead)) { | ||
$$invalidate(3, isToday = datesEqual(date, today)); | ||
$$invalidate(4, otherMonth = date.getMonth() !== $currentDate.getMonth()); | ||
$$invalidate(4, otherMonth = date.getUTCMonth() !== $currentDate.getUTCMonth()); | ||
$$invalidate(5, highlight = $highlightedDates.some(d => datesEqual(d, date))); | ||
@@ -822,0 +822,0 @@ } |
{ | ||
"name": "@event-calendar/day-grid", | ||
"version": "0.0.1-beta.1", | ||
"version": "0.0.1-beta.2", | ||
"title": "EventCalendar DayGrid Plugin", | ||
@@ -19,5 +19,5 @@ "description": "Full-sized event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/common": "~0.0.1-beta.1", | ||
"@event-calendar/common": "~0.0.1-beta.2", | ||
"svelte": "^3.25.0" | ||
} | ||
} |
33367