@event-calendar/time-grid
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
12
index.js
import { SvelteComponent, init, safe_not_equal, element, text, attr, insert, append, set_data, detach, create_slot, space, update_slot, transition_in, transition_out, destroy_each, component_subscribe, listen, set_store_value, binding_callbacks, action_destroyer, is_function, noop, run_all, create_component, mount_component, destroy_component, group_outros, check_outros, empty } from 'svelte/internal'; | ||
import { getContext, tick, onMount, setContext } from 'svelte'; | ||
import { derived } from 'svelte/store'; | ||
import { createDuration, DAY_IN_SECONDS, addDuration, cloneDate, createDate, hasYScroll, sortEventChunks, action, createEventContent, setMidnight, createEventChunk, datesEqual } from '@event-calendar/common'; | ||
import { createDuration, DAY_IN_SECONDS, addDuration, cloneDate, createDate, hasYScroll, sortEventChunks, action, createEventContent, toEventWithLocalDates, setMidnight, createEventChunk, datesEqual, toLocalDate } from '@event-calendar/common'; | ||
@@ -786,3 +786,3 @@ function times(state, localState) { | ||
fn({ | ||
event: chunk.event, | ||
event: toEventWithLocalDates(chunk.event), | ||
el, | ||
@@ -1185,3 +1185,9 @@ jsEvent, | ||
let d = addDuration(cloneDate(date), $slotDuration, Math.floor(y / 24 + $_slotTimeLimits.min.seconds / $slotDuration.seconds)); | ||
$dateClick({ date: d, jsEvent, view: $_view, resource }); | ||
$dateClick({ | ||
date: toLocalDate(d), | ||
jsEvent, | ||
view: $_view, | ||
resource | ||
}); | ||
} | ||
@@ -1188,0 +1194,0 @@ } |
{ | ||
"name": "@event-calendar/time-grid", | ||
"version": "0.0.1-alpha.6", | ||
"version": "0.0.1-alpha.7", | ||
"type": "module", | ||
@@ -10,5 +10,5 @@ "exports": { | ||
"dependencies": { | ||
"@event-calendar/common": "~0.0.1-alpha.6", | ||
"@event-calendar/common": "~0.0.1-alpha.7", | ||
"svelte": "^3.25.0" | ||
} | ||
} |
43641
1370