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
102
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.13.2 to 0.13.3

131

index.js

@@ -31,6 +31,4 @@ import { SvelteComponent, init, safe_not_equal, element, space, attr, insert, append, noop, detach, destroy_each, component_subscribe, text, set_data, create_slot, listen, is_function, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, run_all, set_store_value, binding_callbacks, construct_svelte_component, create_component, mount_component, action_destroyer, group_outros, destroy_component, check_outros, stop_propagation, bubble, empty } from 'svelte/internal';

this._hiddenEvents = writable({});
this._popup = writable({
date: null,
chunks: []
});
this._popupDate = writable(null);
this._popupChunks = writable([]);
}

@@ -831,7 +829,7 @@ }

const child_ctx = ctx.slice();
child_ctx[13] = list[i];
child_ctx[15] = list[i];
return child_ctx;
}
// (57:8) {#each $_popup.chunks as chunk}
// (57:8) {#each $_popupChunks as chunk}
function create_each_block$3(ctx) {

@@ -842,3 +840,3 @@ let event;

event = new Event({
props: { chunk: /*chunk*/ ctx[13], inPopup: true }
props: { chunk: /*chunk*/ ctx[15], inPopup: true }
});

@@ -856,3 +854,3 @@

const event_changes = {};
if (dirty & /*$_popup*/ 4) event_changes.chunk = /*chunk*/ ctx[13];
if (dirty & /*$_popupChunks*/ 32) event_changes.chunk = /*chunk*/ ctx[15];
event.$set(event_changes);

@@ -878,3 +876,3 @@ },

let div0;
let t0_value = /*$_intlDayPopover*/ ctx[4].format(/*$_popup*/ ctx[2].date) + "";
let t0_value = /*$_intlDayPopover*/ ctx[4].format(/*$_popupDate*/ ctx[2]) + "";
let t0;

@@ -891,3 +889,3 @@ let t1;

let dispose;
let each_value = /*$_popup*/ ctx[2].chunks;
let each_value = /*$_popupChunks*/ ctx[5];
let each_blocks = [];

@@ -936,3 +934,3 @@

/*div2_binding*/ ctx[12](div2);
/*div2_binding*/ ctx[14](div2);
current = true;

@@ -942,7 +940,7 @@

dispose = [
listen(a, "click", stop_propagation(/*close*/ ctx[8])),
listen(a, "click", stop_propagation(/*close*/ ctx[10])),
action_destroyer(clickOutside.call(null, div2)),
listen(div2, "click", stop_propagation(/*click_handler*/ ctx[10])),
listen(div2, "pointerdown", stop_propagation(/*pointerdown_handler*/ ctx[11])),
listen(div2, "clickoutside", /*handleClickOutside*/ ctx[9])
listen(div2, "click", stop_propagation(/*click_handler*/ ctx[12])),
listen(div2, "pointerdown", stop_propagation(/*pointerdown_handler*/ ctx[13])),
listen(div2, "clickoutside", /*handleClickOutside*/ ctx[11])
];

@@ -954,3 +952,3 @@

p(ctx, [dirty]) {
if ((!current || dirty & /*$_intlDayPopover, $_popup*/ 20) && t0_value !== (t0_value = /*$_intlDayPopover*/ ctx[4].format(/*$_popup*/ ctx[2].date) + "")) set_data(t0, t0_value);
if ((!current || dirty & /*$_intlDayPopover, $_popupDate*/ 20) && t0_value !== (t0_value = /*$_intlDayPopover*/ ctx[4].format(/*$_popupDate*/ ctx[2]) + "")) set_data(t0, t0_value);

@@ -961,4 +959,4 @@ if (!current || dirty & /*$theme*/ 8 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[3].dayHead)) {

if (dirty & /*$_popup*/ 4) {
each_value = /*$_popup*/ ctx[2].chunks;
if (dirty & /*$_popupChunks*/ 32) {
each_value = /*$_popupChunks*/ ctx[5];
let i;

@@ -1022,3 +1020,3 @@

destroy_each(each_blocks, detaching);
/*div2_binding*/ ctx[12](null);
/*div2_binding*/ ctx[14](null);
mounted = false;

@@ -1031,10 +1029,12 @@ run_all(dispose);

function instance$3($$self, $$props, $$invalidate) {
let $_popup;
let $_popupDate;
let $theme;
let $_intlDayPopover;
let $_popupChunks;
let { theme, _intlDayPopover } = getContext('state');
component_subscribe($$self, theme, value => $$invalidate(3, $theme = value));
component_subscribe($$self, _intlDayPopover, value => $$invalidate(4, $_intlDayPopover = value));
let { _popup } = getContext('view-state');
component_subscribe($$self, _popup, value => $$invalidate(2, $_popup = value));
let { _popupDate, _popupChunks } = getContext('view-state');
component_subscribe($$self, _popupDate, value => $$invalidate(2, $_popupDate = value));
component_subscribe($$self, _popupChunks, value => $$invalidate(5, $_popupChunks = value));
let el;

@@ -1070,3 +1070,3 @@ let style = '';

function close(e) {
set_store_value(_popup, $_popup.date = null, $_popup);
set_store_value(_popupDate, $_popupDate = null, $_popupDate);
}

@@ -1097,8 +1097,10 @@

style,
$_popup,
$_popupDate,
$theme,
$_intlDayPopover,
$_popupChunks,
theme,
_intlDayPopover,
_popup,
_popupDate,
_popupChunks,
close,

@@ -1123,3 +1125,3 @@ handleClickOutside,

const child_ctx = ctx.slice();
child_ctx[39] = list[i];
child_ctx[42] = list[i];
return child_ctx;

@@ -1223,3 +1225,3 @@ }

props: {
chunk: /*chunk*/ ctx[39],
chunk: /*chunk*/ ctx[42],
longChunks: /*longChunks*/ ctx[1]

@@ -1239,3 +1241,3 @@ }

const event_changes = {};
if (dirty[0] & /*dayChunks*/ 8) event_changes.chunk = /*chunk*/ ctx[39];
if (dirty[0] & /*dayChunks*/ 8) event_changes.chunk = /*chunk*/ ctx[42];
if (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1];

@@ -1259,3 +1261,3 @@ event.$set(event_changes);

// (150:4) {#if $_popup.date && datesEqual(date, $_popup.date)}
// (150:4) {#if $_popupDate && datesEqual(date, $_popupDate)}
function create_if_block_1(ctx) {

@@ -1305,3 +1307,4 @@ let popup;

dispose = [
listen(a, "click", stop_propagation(/*showMore*/ ctx[27])),
listen(a, "click", stop_propagation(/*showMore*/ ctx[28])),
listen(a, "pointerdown", stop_propagation(/*pointerdown_handler*/ ctx[35])),
action_destroyer(setContent_action = setContent.call(null, a, /*moreLink*/ ctx[5]))

@@ -1338,3 +1341,3 @@ ];

let t4;
let show_if = /*$_popup*/ ctx[6].date && datesEqual(/*date*/ ctx[0], /*$_popup*/ ctx[6].date);
let show_if = /*$_popupDate*/ ctx[6] && datesEqual(/*date*/ ctx[0], /*$_popupDate*/ ctx[6]);
let t5;

@@ -1414,3 +1417,3 @@ let div2;

if (if_block3) if_block3.m(div2, null);
/*div3_binding*/ ctx[34](div3);
/*div3_binding*/ ctx[36](div3);
current = true;

@@ -1421,6 +1424,6 @@

listen(div3, "click", function () {
if (is_function(/*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[12]))) /*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[12]).apply(this, arguments);
if (is_function(/*createClickHandler*/ ctx[26](/*$dateClick*/ ctx[12]))) /*createClickHandler*/ ctx[26](/*$dateClick*/ ctx[12]).apply(this, arguments);
}),
listen(div3, "pointerenter", function () {
if (is_function(/*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[13]))) /*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[13]).apply(this, arguments);
if (is_function(/*createPointerEnterHandler*/ ctx[27](/*$_interaction*/ ctx[13]))) /*createPointerEnterHandler*/ ctx[27](/*$_interaction*/ ctx[13]).apply(this, arguments);
}),

@@ -1431,3 +1434,3 @@ listen(div3, "pointerleave", function () {

listen(div3, "pointerdown", function () {
if (is_function(/*createPointerDownHandler*/ ctx[28](/*$_interaction*/ ctx[13], /*$selectable*/ ctx[14]))) /*createPointerDownHandler*/ ctx[28](/*$_interaction*/ ctx[13], /*$selectable*/ ctx[14]).apply(this, arguments);
if (is_function(/*createPointerDownHandler*/ ctx[29](/*$_interaction*/ ctx[13], /*$selectable*/ ctx[14]))) /*createPointerDownHandler*/ ctx[29](/*$_interaction*/ ctx[13], /*$selectable*/ ctx[14]).apply(this, arguments);
})

@@ -1528,7 +1531,7 @@ ];

if (dirty[0] & /*$_popup, date*/ 65) show_if = /*$_popup*/ ctx[6].date && datesEqual(/*date*/ ctx[0], /*$_popup*/ ctx[6].date);
if (dirty[0] & /*$_popupDate, date*/ 65) show_if = /*$_popupDate*/ ctx[6] && datesEqual(/*date*/ ctx[0], /*$_popupDate*/ ctx[6]);
if (show_if) {
if (if_block2) {
if (dirty[0] & /*$_popup, date*/ 65) {
if (dirty[0] & /*$_popupDate, date*/ 65) {
transition_in(if_block2, 1);

@@ -1608,3 +1611,3 @@ }

if (if_block3) if_block3.d();
/*div3_binding*/ ctx[34](null);
/*div3_binding*/ ctx[36](null);
mounted = false;

@@ -1627,3 +1630,4 @@ run_all(dispose);

function instance$2($$self, $$props, $$invalidate) {
let $_popup;
let $_popupChunks;
let $_popupDate;
let $_view;

@@ -1643,13 +1647,14 @@ let $moreLinkContent;

let { date: currentDate, dateClick, dayMaxEvents, highlightedDates, moreLinkContent, theme, _view, _interaction, selectable } = getContext('state');
component_subscribe($$self, currentDate, value => $$invalidate(33, $currentDate = value));
component_subscribe($$self, currentDate, value => $$invalidate(34, $currentDate = value));
component_subscribe($$self, dateClick, value => $$invalidate(12, $dateClick = value));
component_subscribe($$self, highlightedDates, value => $$invalidate(32, $highlightedDates = value));
component_subscribe($$self, moreLinkContent, value => $$invalidate(30, $moreLinkContent = value));
component_subscribe($$self, highlightedDates, value => $$invalidate(33, $highlightedDates = value));
component_subscribe($$self, moreLinkContent, value => $$invalidate(31, $moreLinkContent = value));
component_subscribe($$self, theme, value => $$invalidate(11, $theme = value));
component_subscribe($$self, _view, value => $$invalidate(35, $_view = value));
component_subscribe($$self, _view, value => $$invalidate(38, $_view = value));
component_subscribe($$self, _interaction, value => $$invalidate(13, $_interaction = value));
component_subscribe($$self, selectable, value => $$invalidate(14, $selectable = value));
let { _hiddenEvents, _popup } = getContext('view-state');
component_subscribe($$self, _hiddenEvents, value => $$invalidate(31, $_hiddenEvents = value));
component_subscribe($$self, _popup, value => $$invalidate(6, $_popup = value));
let { _hiddenEvents, _popupDate, _popupChunks } = getContext('view-state');
component_subscribe($$self, _hiddenEvents, value => $$invalidate(32, $_hiddenEvents = value));
component_subscribe($$self, _popupDate, value => $$invalidate(6, $_popupDate = value));
component_subscribe($$self, _popupChunks, value => $$invalidate(37, $_popupChunks = value));
let el;

@@ -1686,3 +1691,3 @@ let dayChunks;

setPopupChunks();
set_store_value(_popup, $_popup.date = date, $_popup);
set_store_value(_popupDate, $_popupDate = date, $_popupDate);
}

@@ -1701,4 +1706,4 @@

tick().then(() => {
sortChunks($_popup.chunks);
_popup.set($_popup);
sortChunks($_popupChunks);
_popupChunks.set($_popupChunks);
});

@@ -1708,3 +1713,3 @@ }

set_store_value(_popup, $_popup.chunks = chunks, $_popup);
set_store_value(_popupChunks, $_popupChunks = chunks, $_popupChunks);
}

@@ -1718,2 +1723,6 @@

function pointerdown_handler(event) {
bubble.call(this, $$self, event);
}
function div3_binding($$value) {

@@ -1728,3 +1737,3 @@ binding_callbacks[$$value ? 'unshift' : 'push'](() => {

if ('date' in $$props) $$invalidate(0, date = $$props.date);
if ('chunks' in $$props) $$invalidate(29, chunks = $$props.chunks);
if ('chunks' in $$props) $$invalidate(30, chunks = $$props.chunks);
if ('longChunks' in $$props) $$invalidate(1, longChunks = $$props.longChunks);

@@ -1735,7 +1744,7 @@ if ('iChunks' in $$props) $$invalidate(2, iChunks = $$props.iChunks);

$$self.$$.update = () => {
if ($$self.$$.dirty[0] & /*hiddenEvents, chunks, date, dayChunks*/ 536870937) {
if ($$self.$$.dirty[0] & /*hiddenEvents, chunks, date, dayChunks*/ 1073741849) {
{
$$invalidate(3, dayChunks = []);
hiddenEvents.clear();
((($$invalidate(4, hiddenEvents), $$invalidate(29, chunks)), $$invalidate(0, date)), $$invalidate(3, dayChunks));
((($$invalidate(4, hiddenEvents), $$invalidate(30, chunks)), $$invalidate(0, date)), $$invalidate(3, dayChunks));

@@ -1755,3 +1764,3 @@ for (let chunk of chunks) {

if ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$currentDate, $highlightedDates*/ 6) {
if ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$currentDate, $highlightedDates*/ 12) {
{

@@ -1764,3 +1773,3 @@ $$invalidate(8, isToday = datesEqual(date, today));

if ($$self.$$.dirty[0] & /*hiddenEvents, $moreLinkContent, moreLink*/ 1073741872 | $$self.$$.dirty[1] & /*$_hiddenEvents*/ 1) {
if ($$self.$$.dirty[0] & /*hiddenEvents, moreLink*/ 48 | $$self.$$.dirty[1] & /*$_hiddenEvents, $moreLinkContent*/ 3) {
if ($_hiddenEvents && hiddenEvents.size) {

@@ -1784,4 +1793,4 @@ // make Svelte update this block on $_hiddenEvents update

if ($$self.$$.dirty[0] & /*$_popup, date, longChunks, dayChunks*/ 75) {
if ($_popup.date && datesEqual(date, $_popup.date) && longChunks && dayChunks) {
if ($$self.$$.dirty[0] & /*$_popupDate, date, longChunks, dayChunks*/ 75) {
if ($_popupDate && datesEqual(date, $_popupDate) && longChunks && dayChunks) {
setPopupChunks();

@@ -1799,3 +1808,3 @@ }

moreLink,
$_popup,
$_popupDate,
el,

@@ -1818,3 +1827,4 @@ isToday,

_hiddenEvents,
_popup,
_popupDate,
_popupChunks,
createClickHandler,

@@ -1829,2 +1839,3 @@ createPointerEnterHandler,

$currentDate,
pointerdown_handler,
div3_binding

@@ -1846,3 +1857,3 @@ ];

date: 0,
chunks: 29,
chunks: 30,
longChunks: 1,

@@ -1849,0 +1860,0 @@ iChunks: 2

{
"name": "@event-calendar/day-grid",
"version": "0.13.2",
"version": "0.13.3",
"title": "Event Calendar DayGrid plugin",

@@ -36,5 +36,5 @@ "description": "Full-sized drag & drop event calendar with resource view",

"dependencies": {
"@event-calendar/common": "~0.13.2",
"@event-calendar/common": "~0.13.3",
"svelte": "^3.51.0"
}
}

@@ -8,7 +8,5 @@ import {days} from './stores';

this._hiddenEvents = writable({});
this._popup = writable({
date: null,
chunks: []
});
this._popupDate = writable(null);
this._popupChunks = writable([]);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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