@event-calendar/time-grid
Advanced tools
Comparing version 0.0.1-beta.2 to 0.0.1-beta.3
113
index.js
@@ -77,3 +77,3 @@ 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'; | ||
/* packages/time-grid/src/Header.svelte generated by Svelte v3.25.0 */ | ||
/* packages/time-grid/src/Header.svelte generated by Svelte v3.31.2 */ | ||
@@ -290,3 +290,3 @@ function get_each_context(ctx, list, i) { | ||
/* packages/time-grid/src/Body.svelte generated by Svelte v3.25.0 */ | ||
/* packages/time-grid/src/Body.svelte generated by Svelte v3.31.2 */ | ||
@@ -323,3 +323,3 @@ function get_each_context$1(ctx, list, i) { | ||
p(ctx, dirty) { | ||
if (dirty & /*$_times*/ 8 && t_value !== (t_value = /*time*/ ctx[26] + "")) set_data(t, t_value); | ||
if (dirty & /*$_times*/ 2 && t_value !== (t_value = /*time*/ ctx[26] + "")) set_data(t, t_value); | ||
@@ -376,3 +376,3 @@ if (dirty & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].time)) { | ||
let dispose; | ||
let each_value_1 = /*$_times*/ ctx[3]; | ||
let each_value_1 = /*$_times*/ ctx[1]; | ||
let each_blocks_1 = []; | ||
@@ -384,3 +384,3 @@ | ||
let each_value = /*lines*/ ctx[2]; | ||
let each_value = /*lines*/ ctx[3]; | ||
let each_blocks = []; | ||
@@ -392,4 +392,4 @@ | ||
const default_slot_template = /*#slots*/ ctx[14].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], null); | ||
const default_slot_template = /*#slots*/ ctx[19].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[18], null); | ||
@@ -421,3 +421,3 @@ return { | ||
attr(div4, "class", div4_class_value = "" + (/*$theme*/ ctx[4].body + (/*compact*/ ctx[1] | ||
attr(div4, "class", div4_class_value = "" + (/*$theme*/ ctx[4].body + " " + /*$theme*/ ctx[4].week + (/*compact*/ ctx[2] | ||
? " " + /*$theme*/ ctx[4].compact | ||
@@ -449,3 +449,3 @@ : ""))); | ||
/*div4_binding*/ ctx[15](div4); | ||
/*div4_binding*/ ctx[20](div4); | ||
current = true; | ||
@@ -459,4 +459,4 @@ | ||
p(ctx, [dirty]) { | ||
if (dirty & /*$theme, $_times*/ 24) { | ||
each_value_1 = /*$_times*/ ctx[3]; | ||
if (dirty & /*$theme, $_times*/ 18) { | ||
each_value_1 = /*$_times*/ ctx[1]; | ||
let i; | ||
@@ -487,4 +487,4 @@ | ||
if (dirty & /*$theme, lines*/ 20) { | ||
each_value = /*lines*/ ctx[2]; | ||
if (dirty & /*$theme, lines*/ 24) { | ||
each_value = /*lines*/ ctx[3]; | ||
let i; | ||
@@ -516,4 +516,4 @@ | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 8192) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[13], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 262144) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[18], dirty, null, null); | ||
} | ||
@@ -530,3 +530,3 @@ } | ||
if (!current || dirty & /*$theme, compact*/ 18 && div4_class_value !== (div4_class_value = "" + (/*$theme*/ ctx[4].body + (/*compact*/ ctx[1] | ||
if (!current || dirty & /*$theme, compact*/ 20 && div4_class_value !== (div4_class_value = "" + (/*$theme*/ ctx[4].body + " " + /*$theme*/ ctx[4].week + (/*compact*/ ctx[2] | ||
? " " + /*$theme*/ ctx[4].compact | ||
@@ -551,3 +551,3 @@ : "")))) { | ||
if (default_slot) default_slot.d(detaching); | ||
/*div4_binding*/ ctx[15](null); | ||
/*div4_binding*/ ctx[20](null); | ||
mounted = false; | ||
@@ -569,10 +569,10 @@ dispose(); | ||
let { slotDuration, _intlSlotLabel, _viewDates, scrollTime, _scrollable, theme } = getContext("state"); | ||
component_subscribe($$self, slotDuration, value => $$invalidate(17, $slotDuration = value)); | ||
component_subscribe($$self, _viewDates, value => $$invalidate(19, $_viewDates = value)); | ||
component_subscribe($$self, scrollTime, value => $$invalidate(20, $scrollTime = value)); | ||
component_subscribe($$self, slotDuration, value => $$invalidate(14, $slotDuration = value)); | ||
component_subscribe($$self, _viewDates, value => $$invalidate(16, $_viewDates = value)); | ||
component_subscribe($$self, scrollTime, value => $$invalidate(17, $scrollTime = value)); | ||
component_subscribe($$self, _scrollable, value => $$invalidate(21, $_scrollable = value)); | ||
component_subscribe($$self, theme, value => $$invalidate(4, $theme = value)); | ||
let { _slotTimeLimits, _times } = getContext("view-state"); | ||
component_subscribe($$self, _slotTimeLimits, value => $$invalidate(18, $_slotTimeLimits = value)); | ||
component_subscribe($$self, _times, value => $$invalidate(3, $_times = value)); | ||
component_subscribe($$self, _slotTimeLimits, value => $$invalidate(15, $_slotTimeLimits = value)); | ||
component_subscribe($$self, _times, value => $$invalidate(1, $_times = value)); | ||
let el; | ||
@@ -584,3 +584,3 @@ let compact; | ||
function recheckScrollable() { | ||
set_store_value(_scrollable, $_scrollable = hasYScroll(el)); | ||
set_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable); | ||
} | ||
@@ -591,3 +591,3 @@ | ||
el = $$value; | ||
(((((($$invalidate(0, el), $$invalidate(19, $_viewDates)), $$invalidate(20, $scrollTime)), $$invalidate(16, timeLimitMin)), $$invalidate(17, $slotDuration)), $$invalidate(3, $_times)), $$invalidate(18, $_slotTimeLimits)); | ||
(((((($$invalidate(0, el), $$invalidate(16, $_viewDates)), $$invalidate(17, $scrollTime)), $$invalidate(13, timeLimitMin)), $$invalidate(14, $slotDuration)), $$invalidate(1, $_times)), $$invalidate(15, $_slotTimeLimits)); | ||
}); | ||
@@ -597,17 +597,17 @@ } | ||
$$self.$$set = $$props => { | ||
if ("$$scope" in $$props) $$invalidate(13, $$scope = $$props.$$scope); | ||
if ("$$scope" in $$props) $$invalidate(18, $$scope = $$props.$$scope); | ||
}; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*$slotDuration, $_times, $_slotTimeLimits*/ 393224) { | ||
if ($$self.$$.dirty & /*$slotDuration, $_times, $_slotTimeLimits*/ 49154) { | ||
{ | ||
$$invalidate(1, compact = $slotDuration.seconds >= 3600); | ||
$$invalidate(2, lines.length = $_times.length, lines); | ||
$$invalidate(2, compact = $slotDuration.seconds >= 3600); | ||
$$invalidate(3, lines.length = $_times.length, lines); | ||
// Use intermediate variable so that changes in _slotTimeLimits do not trigger setting the el.scrollTop | ||
$$invalidate(16, timeLimitMin = $_slotTimeLimits.min.seconds); | ||
$$invalidate(13, timeLimitMin = $_slotTimeLimits.min.seconds); | ||
} | ||
} | ||
if ($$self.$$.dirty & /*el, $_viewDates, $scrollTime, timeLimitMin, $slotDuration*/ 1769473) { | ||
if ($$self.$$.dirty & /*el, $_viewDates, $scrollTime, timeLimitMin, $slotDuration*/ 221185) { | ||
if (el && $_viewDates) { | ||
@@ -618,3 +618,3 @@ $$invalidate(0, el.scrollTop = ($scrollTime.seconds - timeLimitMin) / $slotDuration.seconds * 24 - 12, el); | ||
if ($$self.$$.dirty & /*el, $_times, $slotDuration*/ 131081) { | ||
if ($$self.$$.dirty & /*el, $_times, $slotDuration*/ 16387) { | ||
if (el && $_times && $slotDuration) { | ||
@@ -628,5 +628,5 @@ tick().then(recheckScrollable); | ||
el, | ||
$_times, | ||
compact, | ||
lines, | ||
$_times, | ||
$theme, | ||
@@ -641,2 +641,7 @@ slotDuration, | ||
recheckScrollable, | ||
timeLimitMin, | ||
$slotDuration, | ||
$_slotTimeLimits, | ||
$_viewDates, | ||
$scrollTime, | ||
$$scope, | ||
@@ -695,3 +700,3 @@ slots, | ||
/* packages/time-grid/src/Event.svelte generated by Svelte v3.25.0 */ | ||
/* packages/time-grid/src/Event.svelte generated by Svelte v3.31.2 */ | ||
@@ -712,3 +717,3 @@ function create_fragment$2(ctx) { | ||
insert(target, div, anchor); | ||
/*div_binding*/ ctx[23](div); | ||
/*div_binding*/ ctx[32](div); | ||
@@ -749,3 +754,3 @@ if (!mounted) { | ||
if (detaching) detach(div); | ||
/*div_binding*/ ctx[23](null); | ||
/*div_binding*/ ctx[32](null); | ||
mounted = false; | ||
@@ -774,6 +779,6 @@ run_all(dispose); | ||
let { displayEventEnd, eventBackgroundColor, eventColor, eventContent, eventClick, eventDidMount, eventMouseEnter, eventMouseLeave, slotDuration, theme, _view, _intlEventTime } = getContext("state"); | ||
component_subscribe($$self, displayEventEnd, value => $$invalidate(30, $displayEventEnd = value)); | ||
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(27, $eventBackgroundColor = value)); | ||
component_subscribe($$self, eventColor, value => $$invalidate(28, $eventColor = value)); | ||
component_subscribe($$self, eventContent, value => $$invalidate(31, $eventContent = value)); | ||
component_subscribe($$self, displayEventEnd, value => $$invalidate(28, $displayEventEnd = value)); | ||
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(25, $eventBackgroundColor = value)); | ||
component_subscribe($$self, eventColor, value => $$invalidate(26, $eventColor = value)); | ||
component_subscribe($$self, eventContent, value => $$invalidate(29, $eventContent = value)); | ||
component_subscribe($$self, eventClick, value => $$invalidate(4, $eventClick = value)); | ||
@@ -783,8 +788,8 @@ component_subscribe($$self, eventDidMount, value => $$invalidate(34, $eventDidMount = value)); | ||
component_subscribe($$self, eventMouseLeave, value => $$invalidate(6, $eventMouseLeave = value)); | ||
component_subscribe($$self, slotDuration, value => $$invalidate(25, $slotDuration = value)); | ||
component_subscribe($$self, theme, value => $$invalidate(29, $theme = value)); | ||
component_subscribe($$self, _view, value => $$invalidate(33, $_view = value)); | ||
component_subscribe($$self, _intlEventTime, value => $$invalidate(32, $_intlEventTime = value)); | ||
component_subscribe($$self, slotDuration, value => $$invalidate(23, $slotDuration = value)); | ||
component_subscribe($$self, theme, value => $$invalidate(27, $theme = value)); | ||
component_subscribe($$self, _view, value => $$invalidate(31, $_view = value)); | ||
component_subscribe($$self, _intlEventTime, value => $$invalidate(30, $_intlEventTime = value)); | ||
let { _slotTimeLimits } = getContext("view-state"); | ||
component_subscribe($$self, _slotTimeLimits, value => $$invalidate(26, $_slotTimeLimits = value)); | ||
component_subscribe($$self, _slotTimeLimits, value => $$invalidate(24, $_slotTimeLimits = value)); | ||
let el; | ||
@@ -833,3 +838,3 @@ let className; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty[0] & /*$slotDuration, $_slotTimeLimits, chunk, date, $eventBackgroundColor, $eventColor, style, $theme, $displayEventEnd*/ 2120220676 | $$self.$$.dirty[1] & /*$eventContent, $_intlEventTime, $_view*/ 7) { | ||
if ($$self.$$.dirty[0] & /*$slotDuration, $_slotTimeLimits, chunk, date, $eventBackgroundColor, $eventColor, style, $theme, $displayEventEnd, $eventContent, $_intlEventTime*/ 2145386500 | $$self.$$.dirty[1] & /*$_view*/ 1) { | ||
{ | ||
@@ -891,2 +896,11 @@ // Class & Style | ||
chunk, | ||
$slotDuration, | ||
$_slotTimeLimits, | ||
$eventBackgroundColor, | ||
$eventColor, | ||
$theme, | ||
$displayEventEnd, | ||
$eventContent, | ||
$_intlEventTime, | ||
$_view, | ||
div_binding | ||
@@ -903,3 +917,3 @@ ]; | ||
/* packages/time-grid/src/Day.svelte generated by Svelte v3.25.0 */ | ||
/* packages/time-grid/src/Day.svelte generated by Svelte v3.31.2 */ | ||
@@ -1276,3 +1290,6 @@ function get_each_context$2(ctx, list, i) { | ||
handleClick, | ||
resource | ||
resource, | ||
$_slotTimeLimits, | ||
$_events, | ||
$highlightedDates | ||
]; | ||
@@ -1288,3 +1305,3 @@ } | ||
/* packages/time-grid/src/View.svelte generated by Svelte v3.25.0 */ | ||
/* packages/time-grid/src/View.svelte generated by Svelte v3.31.2 */ | ||
@@ -1291,0 +1308,0 @@ function get_each_context$3(ctx, list, i) { |
{ | ||
"name": "@event-calendar/time-grid", | ||
"version": "0.0.1-beta.2", | ||
"version": "0.0.1-beta.3", | ||
"title": "EventCalendar TimeGrid Plugin", | ||
@@ -13,2 +13,3 @@ "description": "Full-sized event calendar with resource view", | ||
}, | ||
"license": "MIT", | ||
"type": "module", | ||
@@ -20,5 +21,5 @@ "exports": { | ||
"dependencies": { | ||
"@event-calendar/common": "~0.0.1-beta.2", | ||
"svelte": "^3.25.0" | ||
"@event-calendar/common": "~0.0.1-beta.3", | ||
"svelte": "^3.31.2" | ||
} | ||
} |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
44491
0
1387
Updatedsvelte@^3.31.2