Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@event-calendar/day-grid

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-calendar/day-grid - npm Package Compare versions

Comparing version 0.0.1-beta.2 to 0.0.1-beta.3

108

index.js

@@ -33,3 +33,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';

/* packages/day-grid/src/Header.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/Header.svelte generated by Svelte v3.31.2 */

@@ -194,3 +194,3 @@ function get_each_context(ctx, list, i) {

/* packages/day-grid/src/Body.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/Body.svelte generated by Svelte v3.31.2 */

@@ -205,4 +205,4 @@ function create_fragment$1(ctx) {

let dispose;
const default_slot_template = /*#slots*/ ctx[7].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
const default_slot_template = /*#slots*/ ctx[8].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);

@@ -225,3 +225,3 @@ return {

/*div1_binding*/ ctx[8](div1);
/*div1_binding*/ ctx[9](div1);
current = true;

@@ -236,4 +236,4 @@

if (default_slot) {
if (default_slot.p && dirty & /*$$scope*/ 64) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
if (default_slot.p && dirty & /*$$scope*/ 128) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null);
}

@@ -262,3 +262,3 @@ }

if (default_slot) default_slot.d(detaching);
/*div1_binding*/ ctx[8](null);
/*div1_binding*/ ctx[9](null);
mounted = false;

@@ -276,3 +276,3 @@ dispose();

let { _events, _scrollable, theme } = getContext("state");
component_subscribe($$self, _events, value => $$invalidate(9, $_events = value));
component_subscribe($$self, _events, value => $$invalidate(6, $_events = value));
component_subscribe($$self, _scrollable, value => $$invalidate(10, $_scrollable = value));

@@ -283,3 +283,3 @@ component_subscribe($$self, theme, value => $$invalidate(1, $theme = value));

function recheckScrollable() {
set_store_value(_scrollable, $_scrollable = hasYScroll(el));
set_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable);
}

@@ -295,7 +295,7 @@

$$self.$$set = $$props => {
if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope);
};
$$self.$$.update = () => {
if ($$self.$$.dirty & /*el, $_events*/ 513) {
if ($$self.$$.dirty & /*el, $_events*/ 65) {
if (el && $_events) {

@@ -314,2 +314,3 @@ tick().then(recheckScrollable);

recheckScrollable,
$_events,
$$scope,

@@ -368,3 +369,3 @@ slots,

/* packages/day-grid/src/Event.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/Event.svelte generated by Svelte v3.31.2 */

@@ -381,8 +382,8 @@ function create_fragment$2(ctx) {

div = element("div");
attr(div, "class", div_class_value = /*$theme*/ ctx[3].event);
attr(div, "style", /*style*/ ctx[1]);
attr(div, "class", div_class_value = /*$theme*/ ctx[0].event);
attr(div, "style", /*style*/ ctx[2]);
},
m(target, anchor) {
insert(target, div, anchor);
/*div_binding*/ ctx[23](div);
/*div_binding*/ ctx[30](div);

@@ -392,3 +393,3 @@ if (!mounted) {

listen(window, "resize", /*reposition*/ ctx[20]),
action_destroyer(action_action = action.call(null, div, /*content*/ ctx[2])),
action_destroyer(action_action = action.call(null, div, /*content*/ ctx[3])),
listen(div, "click", function () {

@@ -411,11 +412,11 @@ if (is_function(/*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]))) /*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]).apply(this, arguments);

if (dirty[0] & /*$theme*/ 8 && div_class_value !== (div_class_value = /*$theme*/ ctx[3].event)) {
if (dirty[0] & /*$theme*/ 1 && div_class_value !== (div_class_value = /*$theme*/ ctx[0].event)) {
attr(div, "class", div_class_value);
}
if (dirty[0] & /*style*/ 2) {
attr(div, "style", /*style*/ ctx[1]);
if (dirty[0] & /*style*/ 4) {
attr(div, "style", /*style*/ ctx[2]);
}
if (action_action && is_function(action_action.update) && dirty[0] & /*content*/ 4) action_action.update.call(null, /*content*/ ctx[2]);
if (action_action && is_function(action_action.update) && dirty[0] & /*content*/ 8) action_action.update.call(null, /*content*/ ctx[3]);
},

@@ -426,3 +427,3 @@ i: noop,

if (detaching) detach(div);
/*div_binding*/ ctx[23](null);
/*div_binding*/ ctx[30](null);
mounted = false;

@@ -450,13 +451,13 @@ run_all(dispose);

let { displayEventEnd, eventBackgroundColor, eventClick, eventColor, eventContent, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime } = getContext("state");
component_subscribe($$self, displayEventEnd, value => $$invalidate(28, $displayEventEnd = value));
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(25, $eventBackgroundColor = value));
component_subscribe($$self, displayEventEnd, value => $$invalidate(26, $displayEventEnd = value));
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(23, $eventBackgroundColor = value));
component_subscribe($$self, eventClick, value => $$invalidate(4, $eventClick = value));
component_subscribe($$self, eventColor, value => $$invalidate(26, $eventColor = value));
component_subscribe($$self, eventContent, value => $$invalidate(29, $eventContent = value));
component_subscribe($$self, eventColor, value => $$invalidate(24, $eventColor = value));
component_subscribe($$self, eventContent, value => $$invalidate(27, $eventContent = value));
component_subscribe($$self, eventDidMount, value => $$invalidate(32, $eventDidMount = value));
component_subscribe($$self, eventMouseEnter, value => $$invalidate(5, $eventMouseEnter = value));
component_subscribe($$self, eventMouseLeave, value => $$invalidate(6, $eventMouseLeave = value));
component_subscribe($$self, theme, value => $$invalidate(3, $theme = value));
component_subscribe($$self, _view, value => $$invalidate(31, $_view = value));
component_subscribe($$self, _intlEventTime, value => $$invalidate(30, $_intlEventTime = value));
component_subscribe($$self, theme, value => $$invalidate(0, $theme = value));
component_subscribe($$self, _view, value => $$invalidate(29, $_view = value));
component_subscribe($$self, _intlEventTime, value => $$invalidate(28, $_intlEventTime = value));
let el;

@@ -467,3 +468,3 @@ let style;

let margin = writable(1);
component_subscribe($$self, margin, value => $$invalidate(27, $margin = value));
component_subscribe($$self, margin, value => $$invalidate(25, $margin = value));

@@ -523,3 +524,3 @@ onMount(() => {

set_store_value(margin, $margin = m);
set_store_value(margin, $margin = m, $margin);
}

@@ -531,3 +532,3 @@ }

el = $$value;
$$invalidate(0, el);
$$invalidate(1, el);
});

@@ -542,3 +543,3 @@ }

$$self.$$.update = () => {
if ($$self.$$.dirty[0] & /*chunk, $eventBackgroundColor, $eventColor, $margin, style*/ 236978178) {
if ($$self.$$.dirty[0] & /*chunk, $eventBackgroundColor, $eventColor, $margin, style*/ 60817412) {
{

@@ -548,6 +549,6 @@ // Class & Style

$$invalidate(1, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${$margin}px;`);
$$invalidate(2, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${$margin}px;`);
if (bgColor) {
$$invalidate(1, style += `background-color:${bgColor};`);
$$invalidate(2, style += `background-color:${bgColor};`);
}

@@ -557,6 +558,6 @@ }

if ($$self.$$.dirty[0] & /*chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime*/ 1881145352 | $$self.$$.dirty[1] & /*$_view*/ 1) {
if ($$self.$$.dirty[0] & /*chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view*/ 1008730113) {
{
// Content
$$invalidate(2, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);
$$invalidate(3, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);
}

@@ -567,6 +568,6 @@ }

return [
$theme,
el,
style,
content,
$theme,
$eventClick,

@@ -591,2 +592,9 @@ $eventMouseEnter,

longChunks,
$eventBackgroundColor,
$eventColor,
$margin,
$displayEventEnd,
$eventContent,
$_intlEventTime,
$_view,
div_binding

@@ -603,3 +611,3 @@ ];

/* packages/day-grid/src/Day.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/Day.svelte generated by Svelte v3.31.2 */

@@ -859,3 +867,5 @@ function get_each_context$1(ctx, list, i) {

handleClick,
chunks
chunks,
$currentDate,
$highlightedDates
];

@@ -871,3 +881,3 @@ }

/* packages/day-grid/src/Week.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/Week.svelte generated by Svelte v3.31.2 */

@@ -1049,3 +1059,13 @@ function get_each_context$2(ctx, list, i) {

return [dates, chunks, longChunks, $theme, _events, hiddenDays, theme];
return [
dates,
chunks,
longChunks,
$theme,
_events,
hiddenDays,
theme,
$_events,
$hiddenDays
];
}

@@ -1060,3 +1080,3 @@

/* packages/day-grid/src/View.svelte generated by Svelte v3.25.0 */
/* packages/day-grid/src/View.svelte generated by Svelte v3.31.2 */

@@ -1271,3 +1291,3 @@ function get_each_context$3(ctx, list, i) {

return [weeks, _viewDates, hiddenDays];
return [weeks, _viewDates, hiddenDays, days, $hiddenDays, $_viewDates];
}

@@ -1274,0 +1294,0 @@

{
"name": "@event-calendar/day-grid",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"title": "EventCalendar DayGrid 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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc