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
0
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 3.1.0 to 3.2.0

100

index.js
import { derived, writable } from 'svelte/store';
import { cloneDate, subtractDay, addDay, setContent, keyEnter, helperEvent, toEventWithLocalDates, toViewWithLocalDates, task, createEventClasses, createEventContent, rect, ancestor, repositionEvent, height, max, toISOString, outsideEvent, datesEqual, assign, createEventChunk, runReposition, setPayload, bgEvent, eventIntersects, prepareEventChunks, debounce, btnTextMonth, themeView, intl } from '@event-calendar/core';
import { cloneDate, subtractDay, addDay, setContent, keyEnter, helperEvent, toEventWithLocalDates, toViewWithLocalDates, task, resourceBackgroundColor, resourceTextColor, createEventClasses, createEventContent, rect, ancestor, repositionEvent, height, max, toISOString, outsideEvent, datesEqual, assign, createEventChunk, runReposition, setPayload, bgEvent, eventIntersects, prepareEventChunks, debounce, btnTextMonth, themeView, intl } from '@event-calendar/core';
import { SvelteComponent, init, safe_not_equal, ensure_array_like, element, space, attr, insert, append, noop, detach, destroy_each, component_subscribe, action_destroyer, is_function, construct_svelte_component, create_component, mount_component, listen, group_outros, transition_out, destroy_component, check_outros, transition_in, run_all, binding_callbacks, text, stop_propagation, update_keyed_each, outro_and_destroy_block, empty, set_store_value, bubble } from 'svelte/internal';

@@ -235,3 +235,3 @@ import { getContext, onMount, afterUpdate, tick } from 'svelte';

switch_instance.$on("pointerdown", function () {
if (is_function(/*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8], 'x'))) /*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8], 'x').apply(this, arguments);
if (is_function(/*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8], 'x'))) /*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8], 'x').apply(this, arguments);
});

@@ -257,3 +257,3 @@ }

if (switch_instance) mount_component(switch_instance, article, null);
/*article_binding*/ ctx[53](article);
/*article_binding*/ ctx[51](article);
current = true;

@@ -271,9 +271,9 @@

listen(article, "mouseenter", function () {
if (is_function(/*createHandler*/ ctx[32](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]))) /*createHandler*/ ctx[32](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]).apply(this, arguments);
if (is_function(/*createHandler*/ ctx[31](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]))) /*createHandler*/ ctx[31](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]).apply(this, arguments);
}),
listen(article, "mouseleave", function () {
if (is_function(/*createHandler*/ ctx[32](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]))) /*createHandler*/ ctx[32](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]).apply(this, arguments);
if (is_function(/*createHandler*/ ctx[31](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]))) /*createHandler*/ ctx[31](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]).apply(this, arguments);
}),
listen(article, "pointerdown", function () {
if (is_function(!helperEvent(/*display*/ ctx[1]) && /*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8]))) (!helperEvent(/*display*/ ctx[1]) && /*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8])).apply(this, arguments);
if (is_function(!helperEvent(/*display*/ ctx[1]) && /*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8]))) (!helperEvent(/*display*/ ctx[1]) && /*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8])).apply(this, arguments);
})

@@ -310,3 +310,3 @@ ];

switch_instance.$on("pointerdown", function () {
if (is_function(/*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8], 'x'))) /*createDragHandler*/ ctx[33](/*$_interaction*/ ctx[8], 'x').apply(this, arguments);
if (is_function(/*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8], 'x'))) /*createDragHandler*/ ctx[32](/*$_interaction*/ ctx[8], 'x').apply(this, arguments);
});

@@ -357,3 +357,3 @@

if (switch_instance) destroy_component(switch_instance);
/*article_binding*/ ctx[53](null);
/*article_binding*/ ctx[51](null);
mounted = false;

@@ -381,6 +381,5 @@ run_all(dispose);

let $eventTextColor;
let $_resTxtColor;
let $resources;
let $eventColor;
let $eventBackgroundColor;
let $_resBgColor;
let $eventMouseEnter;

@@ -392,24 +391,23 @@ let $eventMouseLeave;

let { dates = [] } = $$props;
let { dayMaxEvents, displayEventEnd, eventAllUpdated, eventBackgroundColor, eventTextColor, eventClick, eventColor, eventContent, eventClassNames, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _interaction, _iClasses, _resBgColor, _resTxtColor, _hiddenEvents, _popupDate, _tasks } = getContext('state');
component_subscribe($$self, dayMaxEvents, value => $$invalidate(56, $dayMaxEvents = value));
component_subscribe($$self, displayEventEnd, value => $$invalidate(45, $displayEventEnd = value));
component_subscribe($$self, eventAllUpdated, value => $$invalidate(58, $eventAllUpdated = value));
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(51, $eventBackgroundColor = value));
component_subscribe($$self, eventTextColor, value => $$invalidate(48, $eventTextColor = value));
component_subscribe($$self, eventClick, value => $$invalidate(41, $eventClick = value));
component_subscribe($$self, eventColor, value => $$invalidate(50, $eventColor = value));
component_subscribe($$self, eventContent, value => $$invalidate(44, $eventContent = value));
component_subscribe($$self, eventClassNames, value => $$invalidate(46, $eventClassNames = value));
component_subscribe($$self, eventDidMount, value => $$invalidate(59, $eventDidMount = value));
let { dayMaxEvents, displayEventEnd, eventAllUpdated, eventBackgroundColor, eventTextColor, eventClick, eventColor, eventContent, eventClassNames, eventDidMount, eventMouseEnter, eventMouseLeave, resources, theme, _view, _intlEventTime, _interaction, _iClasses, _hiddenEvents, _popupDate, _tasks } = getContext('state');
component_subscribe($$self, dayMaxEvents, value => $$invalidate(54, $dayMaxEvents = value));
component_subscribe($$self, displayEventEnd, value => $$invalidate(44, $displayEventEnd = value));
component_subscribe($$self, eventAllUpdated, value => $$invalidate(56, $eventAllUpdated = value));
component_subscribe($$self, eventBackgroundColor, value => $$invalidate(50, $eventBackgroundColor = value));
component_subscribe($$self, eventTextColor, value => $$invalidate(47, $eventTextColor = value));
component_subscribe($$self, eventClick, value => $$invalidate(40, $eventClick = value));
component_subscribe($$self, eventColor, value => $$invalidate(49, $eventColor = value));
component_subscribe($$self, eventContent, value => $$invalidate(43, $eventContent = value));
component_subscribe($$self, eventClassNames, value => $$invalidate(45, $eventClassNames = value));
component_subscribe($$self, eventDidMount, value => $$invalidate(57, $eventDidMount = value));
component_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));
component_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));
component_subscribe($$self, resources, value => $$invalidate(48, $resources = value));
component_subscribe($$self, theme, value => $$invalidate(2, $theme = value));
component_subscribe($$self, _view, value => $$invalidate(42, $_view = value));
component_subscribe($$self, _intlEventTime, value => $$invalidate(43, $_intlEventTime = value));
component_subscribe($$self, _view, value => $$invalidate(41, $_view = value));
component_subscribe($$self, _intlEventTime, value => $$invalidate(42, $_intlEventTime = value));
component_subscribe($$self, _interaction, value => $$invalidate(8, $_interaction = value));
component_subscribe($$self, _iClasses, value => $$invalidate(47, $_iClasses = value));
component_subscribe($$self, _resBgColor, value => $$invalidate(52, $_resBgColor = value));
component_subscribe($$self, _resTxtColor, value => $$invalidate(49, $_resTxtColor = value));
component_subscribe($$self, _hiddenEvents, value => $$invalidate(55, $_hiddenEvents = value));
component_subscribe($$self, _popupDate, value => $$invalidate(57, $_popupDate = value));
component_subscribe($$self, _iClasses, value => $$invalidate(46, $_iClasses = value));
component_subscribe($$self, _hiddenEvents, value => $$invalidate(53, $_hiddenEvents = value));
component_subscribe($$self, _popupDate, value => $$invalidate(55, $_popupDate = value));
let el;

@@ -465,3 +463,3 @@ let event;

$$invalidate(39, margin = repositionEvent(chunk, longChunks, height(el)));
$$invalidate(38, margin = repositionEvent(chunk, longChunks, height(el)));

@@ -471,3 +469,3 @@ if ($dayMaxEvents === true) {

} else {
$$invalidate(40, hidden = false);
$$invalidate(39, hidden = false);
}

@@ -479,3 +477,3 @@ }

let h = height(dayEl) - height(dayEl.firstElementChild) - footHeight(dayEl);
$$invalidate(40, hidden = chunk.bottom > h);
$$invalidate(39, hidden = chunk.bottom > h);
let update = false;

@@ -530,14 +528,14 @@

$$self.$$set = $$props => {
if ('chunk' in $$props) $$invalidate(34, chunk = $$props.chunk);
if ('longChunks' in $$props) $$invalidate(35, longChunks = $$props.longChunks);
if ('inPopup' in $$props) $$invalidate(36, inPopup = $$props.inPopup);
if ('dates' in $$props) $$invalidate(37, dates = $$props.dates);
if ('chunk' in $$props) $$invalidate(33, chunk = $$props.chunk);
if ('longChunks' in $$props) $$invalidate(34, longChunks = $$props.longChunks);
if ('inPopup' in $$props) $$invalidate(35, inPopup = $$props.inPopup);
if ('dates' in $$props) $$invalidate(36, dates = $$props.dates);
};
$$self.$$.update = () => {
if ($$self.$$.dirty[1] & /*chunk*/ 8) {
if ($$self.$$.dirty[1] & /*chunk*/ 4) {
$$invalidate(0, event = chunk.event);
}
if ($$self.$$.dirty[0] & /*event, style, $theme*/ 37 | $$self.$$.dirty[1] & /*$_resBgColor, $eventBackgroundColor, $eventColor, $_resTxtColor, $eventTextColor, margin, chunk, hidden, $_iClasses, $eventClassNames, $_view*/ 4164360) {
if ($$self.$$.dirty[0] & /*event, style, $theme*/ 37 | $$self.$$.dirty[1] & /*$resources, $eventBackgroundColor, $eventColor, $eventTextColor, margin, chunk, hidden, $_iClasses, $eventClassNames, $_view*/ 1033604) {
{

@@ -547,5 +545,5 @@ $$invalidate(1, display = event.display);

// Class & Style
let bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;
let bgColor = event.backgroundColor || resourceBackgroundColor(event, $resources) || $eventBackgroundColor || $eventColor;
let txtColor = event.textColor || $_resTxtColor(event) || $eventTextColor;
let txtColor = event.textColor || resourceTextColor(event, $resources) || $eventTextColor;
let marginTop = margin;

@@ -584,3 +582,3 @@

if ($$self.$$.dirty[0] & /*$theme*/ 4 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 30728) {
if ($$self.$$.dirty[0] & /*$theme*/ 4 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 15364) {
// Content

@@ -590,3 +588,3 @@ $$invalidate(6, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);

if ($$self.$$.dirty[0] & /*display*/ 2 | $$self.$$.dirty[1] & /*$eventClick*/ 1024) {
if ($$self.$$.dirty[0] & /*display*/ 2 | $$self.$$.dirty[1] & /*$eventClick*/ 512) {
// Onclick handler

@@ -621,2 +619,3 @@ $$invalidate(7, onclick = createHandler($eventClick, display));

eventMouseLeave,
resources,
theme,

@@ -627,4 +626,2 @@ _view,

_iClasses,
_resBgColor,
_resTxtColor,
_hiddenEvents,

@@ -649,6 +646,5 @@ _popupDate,

$eventTextColor,
$_resTxtColor,
$resources,
$eventColor,
$eventBackgroundColor,
$_resBgColor,
article_binding

@@ -669,10 +665,10 @@ ];

{
chunk: 34,
longChunks: 35,
inPopup: 36,
dates: 37,
reposition: 38
chunk: 33,
longChunks: 34,
inPopup: 35,
dates: 36,
reposition: 37
},
null,
[-1, -1, -1]
[-1, -1]
);

@@ -682,3 +678,3 @@ }

get reposition() {
return this.$$.ctx[38];
return this.$$.ctx[37];
}

@@ -685,0 +681,0 @@ }

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

@@ -30,5 +30,5 @@ "description": "Full-sized drag & drop event calendar with resource & timeline views",

"dependencies": {
"@event-calendar/core": "~3.1.0",
"@event-calendar/core": "~3.2.0",
"svelte": "^4.2.16"
}
}

Sorry, the diff of this file is too big to display

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