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

@event-calendar/list

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-calendar/list - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

42

index.js

@@ -1,2 +0,2 @@

import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, space, action_destroyer, listen, is_function, noop, run_all, binding_callbacks, text, empty, set_data, create_component, mount_component, destroy_component, group_outros, check_outros, destroy_each } from 'svelte/internal';
import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, space, action_destroyer, listen, is_function, noop, run_all, binding_callbacks, text, empty, set_data, create_component, mount_component, destroy_component, group_outros, check_outros, destroy_each, set_store_value } from 'svelte/internal';
import { getContext, onMount, setContext } from 'svelte';

@@ -22,3 +22,3 @@ import { setContent, toEventWithLocalDates, toViewWithLocalDates, createEventContent, setMidnight, createDate, addDay, cloneDate, createEventChunk, sortEventChunks, datesEqual, toLocalDate, toISOString, intl } from '@event-calendar/common';

attr(div0, "class", div0_class_value = /*$theme*/ ctx[0].content);
attr(div1, "class", div1_class_value = "" + (/*$theme*/ ctx[0].body + " " + /*$theme*/ ctx[0].list));
attr(div1, "class", div1_class_value = /*$theme*/ ctx[0].body);
},

@@ -55,3 +55,3 @@ m(target, anchor) {

if (!current || dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = "" + (/*$theme*/ ctx[0].body + " " + /*$theme*/ ctx[0].list))) {
if (!current || dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].body)) {
attr(div1, "class", div1_class_value);

@@ -649,7 +649,7 @@ }

const child_ctx = ctx.slice();
child_ctx[16] = list[i];
child_ctx[18] = list[i];
return child_ctx;
}
// (47:1) {:else}
// (49:1) {:else}
function create_else_block(ctx) {

@@ -738,3 +738,3 @@ let each_1_anchor;

// (45:1) {#if noEvents}
// (47:1) {#if noEvents}
function create_if_block(ctx) {

@@ -758,3 +758,3 @@ let div;

action_destroyer(setContent_action = setContent.call(null, div, /*content*/ ctx[0])),
listen(div, "click", /*handleClick*/ ctx[10])
listen(div, "click", /*handleClick*/ ctx[11])
];

@@ -782,7 +782,7 @@

// (48:2) {#each $_viewDates as date}
// (50:2) {#each $_viewDates as date}
function create_each_block(ctx) {
let day;
let current;
day = new Day({ props: { date: /*date*/ ctx[16] } });
day = new Day({ props: { date: /*date*/ ctx[18] } });

@@ -799,3 +799,3 @@ return {

const day_changes = {};
if (dirty & /*$_viewDates*/ 2) day_changes.date = /*date*/ ctx[16];
if (dirty & /*$_viewDates*/ 2) day_changes.date = /*date*/ ctx[18];
day.$set(day_changes);

@@ -818,3 +818,3 @@ },

// (44:0) <Body>
// (46:0) <Body>
function create_default_slot(ctx) {

@@ -911,3 +911,3 @@ let current_block_type_index;

if (dirty & /*$$scope, $theme, content, noEvents, $_viewDates*/ 524303) {
if (dirty & /*$$scope, $theme, content, noEvents, $_viewDates*/ 2097167) {
body_changes.$$scope = { dirty, ctx };

@@ -939,12 +939,15 @@ }

let $_viewDates;
let $_viewClass;
let $theme;
let { _events, _view, _viewDates, noEventsClick, noEventsContent, theme } = getContext('state');
component_subscribe($$self, _events, value => $$invalidate(12, $_events = value));
component_subscribe($$self, _view, value => $$invalidate(13, $_view = value));
let { _events, _view, _viewDates, _viewClass, noEventsClick, noEventsContent, theme } = getContext('state');
component_subscribe($$self, _events, value => $$invalidate(13, $_events = value));
component_subscribe($$self, _view, value => $$invalidate(14, $_view = value));
component_subscribe($$self, _viewDates, value => $$invalidate(1, $_viewDates = value));
component_subscribe($$self, noEventsClick, value => $$invalidate(14, $noEventsClick = value));
component_subscribe($$self, noEventsContent, value => $$invalidate(11, $noEventsContent = value));
component_subscribe($$self, _viewClass, value => $$invalidate(16, $_viewClass = value));
component_subscribe($$self, noEventsClick, value => $$invalidate(15, $noEventsClick = value));
component_subscribe($$self, noEventsContent, value => $$invalidate(12, $noEventsContent = value));
component_subscribe($$self, theme, value => $$invalidate(3, $theme = value));
let state = new State(getContext('state'));
setContext('view-state', state);
set_store_value(_viewClass, $_viewClass = 'list', $_viewClass);
let noEvents, content;

@@ -962,3 +965,3 @@

$$self.$$.update = () => {
if ($$self.$$.dirty & /*$_viewDates, $_events*/ 4098) {
if ($$self.$$.dirty & /*$_viewDates, $_events*/ 8194) {
{

@@ -981,3 +984,3 @@ $$invalidate(2, noEvents = true);

if ($$self.$$.dirty & /*$noEventsContent, content*/ 2049) {
if ($$self.$$.dirty & /*$noEventsContent, content*/ 4097) {
{

@@ -1003,2 +1006,3 @@ $$invalidate(0, content = is_function($noEventsContent)

_viewDates,
_viewClass,
noEventsClick,

@@ -1005,0 +1009,0 @@ noEventsContent,

{
"name": "@event-calendar/list",
"version": "0.9.0",
"version": "0.10.0",
"title": "Event Calendar List plugin",

@@ -18,2 +18,12 @@ "description": "Full-sized drag & drop event calendar with resource view",

},
"funding": [
{
"type": "paypal_$10",
"url": "https://paypal.me/vkurko/10usd"
},
{
"type": "paypal_$1",
"url": "https://paypal.me/vkurko/1usd"
}
],
"license": "MIT",

@@ -27,5 +37,5 @@ "type": "module",

"dependencies": {
"@event-calendar/common": "~0.9.0",
"@event-calendar/common": "~0.10.0",
"svelte": "^3.46.6"
}
}

@@ -1,2 +0,2 @@

# Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build)
# Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![Donate](https://img.shields.io/badge/Donate_$10-PayPal-green.svg)](https://www.paypal.me/vkurko/10usd) [![Donate](https://img.shields.io/badge/Donate_$1-PayPal-green.svg)](https://www.paypal.me/vkurko/1usd)

@@ -41,9 +41,13 @@ See [demo](https://vkurko.github.io/calendar/).

- [eventDragMinDistance](#eventdragmindistance)
- [eventDragStart](#eventdragstart)
</td><td>
- [eventDragStart](#eventdragstart)
- [eventDragStop](#eventdragstop)
- [eventDrop](#eventdrop)
- [eventDurationEditable](#eventdurationeditable)
- [eventMouseEnter](#eventmouseenter)
- [eventMouseLeave](#eventmouseleave)
- [eventResize](#eventresize)
- [eventResizeStart](#eventresizestart)
- [eventResizeStop](#eventresizestop)
- [eventSources](#eventsources)

@@ -61,6 +65,6 @@ - [eventStartEditable](#eventstarteditable)

- [listDayFormat](#listdayformat)
</td><td>
- [listDaySideFormat](#listdaysideformat)
- [loading](#loading)
</td><td>
- [locale](#locale)

@@ -427,3 +431,3 @@ - [monthMode](#monthmode)

Currently, only **dragging** is supported. See [eventStartEditable](#eventstarteditable).
If you don't need both, use the more specific [eventStartEditable](#eventstarteditable) and [eventDurationEditable](#eventdurationeditable) instead.

@@ -684,3 +688,3 @@ ### events

It is triggered after the event’s information has been modified and after the [eventDragStop](#eventdrop) callback has been triggered.
It is triggered after the event’s information has been modified and after the [eventDragStop](#eventdragstop) callback has been triggered.

@@ -771,2 +775,8 @@ ```js

### eventDurationEditable
- Type `boolean`
- Default `true`
Determines whether calendar events can be resized.
### eventMouseEnter

@@ -866,2 +876,156 @@ - Type `function`

### eventResize
- Type `function`
- Default `undefined`
Callback function that is triggered when resizing stops, and the duration of the event has changed.
It is triggered after the event’s information has been modified and after the [eventResizeStop](#eventresizestop) callback has been triggered.
```js
function (info) { }
```
`info` is an object with the following properties:
<table>
<tr>
<td>
`event`
</td>
<td>
The associated [Event](#event-object) object
</td>
</tr>
<tr>
<td>
`oldEvent`
</td>
<td>
An [Event](#event-object) object that holds information about the event before the resize
</td>
</tr>
<tr>
<td>
`endDelta`
</td>
<td>
A [Duration](#duration-object) object that represents the amount of time the event’s end date was moved by
</td>
</tr>
<tr>
<td>
`revert`
</td>
<td>
A function that, if called, reverts the event’s end date to the values before the resize
</td>
</tr>
<tr>
<td>
`jsEvent`
</td>
<td>JavaScript native event object with low-level information such as click coordinates</td>
</tr>
<tr>
<td>
`view`
</td>
<td>
The current [View](#view-object) object
</td>
</tr>
</table>
### eventResizeStart
- Type `function`
- Default `undefined`
Callback function that is triggered when the event resizing begins.
```js
function (info) { }
```
`info` is an object with the following properties:
<table>
<tr>
<td>
`event`
</td>
<td>
The associated [Event](#event-object) object
</td>
</tr>
<tr>
<td>
`jsEvent`
</td>
<td>JavaScript native event object with low-level information such as click coordinates</td>
</tr>
<tr>
<td>
`view`
</td>
<td>
The current [View](#view-object) object
</td>
</tr>
</table>
### eventResizeStop
- Type `function`
- Default `undefined`
Callback function that is triggered when the event resizing stops.
It is triggered before the event’s information has been modified (if duration is changed) and before the [eventResize](#eventresize) callback is triggered.
```js
function (info) { }
```
`info` is an object with the following properties:
<table>
<tr>
<td>
`event`
</td>
<td>
The associated [Event](#event-object) object
</td>
</tr>
<tr>
<td>
`jsEvent`
</td>
<td>JavaScript native event object with low-level information such as click coordinates</td>
</tr>
<tr>
<td>
`view`
</td>
<td>
The current [View](#view-object) object
</td>
</tr>
</table>
### eventSources

@@ -1337,3 +1501,3 @@ - Type `EventSource[]`

- Type `object` or `function`
- Default `{active: 'ec-active', bgEvent: 'ec-bg-event', bgEvents: 'ec-bg-events', body: 'ec-body', button: 'ec-button', buttonGroup: 'ec-button-group', calendar: 'ec', compact: 'ec-compact', content: 'ec-content', day: 'ec-day', dayHead: 'ec-day-head', days: 'ec-days', event: 'ec-event', eventTime: 'ec-event-time', eventTitle: 'ec-event-title', events: 'ec-events', extra: 'ec-extra', handle: 'ec-handle', header: 'ec-header', hiddenScroll: 'ec-hidden-scroll', hiddenTimes: 'ec-hidden-times', highlight: 'ec-highlight', icon: 'ec-icon', line: 'ec-line', lines: 'ec-lines', nowIndicator: 'ec-now-indicator', otherMonth: 'ec-other-month', sidebar: 'ec-sidebar', today: 'ec-today', time: 'ec-time', title: 'ec-title', toolbar: 'ec-toolbar', week: 'ec-week', withScroll: 'ec-with-scroll', uniform: 'ec-uniform', dayFoot: 'ec-day-foot', month: 'ec-month', popup: 'ec-popup', daySide: 'ec-day-side', eventTag: 'ec-event-tag', list: 'ec-list', noEvents: 'ec-no-events', resource: 'ec-resource', resourceTitle: 'ec-resource-title', draggable: 'ec-draggable', ghost: 'ec-ghost', preview: 'ec-preview', pointer: 'ec-pointer'}`
- Default `{active: 'ec-active', bgEvent: 'ec-bg-event', bgEvents: 'ec-bg-events', body: 'ec-body', button: 'ec-button', buttonGroup: 'ec-button-group', calendar: 'ec', compact: 'ec-compact', content: 'ec-content', day: 'ec-day', dayHead: 'ec-day-head', days: 'ec-days', event: 'ec-event', eventBody: 'ec-event-body', eventTime: 'ec-event-time', eventTitle: 'ec-event-title', events: 'ec-events', extra: 'ec-extra', handle: 'ec-handle', header: 'ec-header', hiddenScroll: 'ec-hidden-scroll', hiddenTimes: 'ec-hidden-times', highlight: 'ec-highlight', icon: 'ec-icon', line: 'ec-line', lines: 'ec-lines', nowIndicator: 'ec-now-indicator', otherMonth: 'ec-other-month', sidebar: 'ec-sidebar', today: 'ec-today', time: 'ec-time', title: 'ec-title', toolbar: 'ec-toolbar', week: 'ec-week', withScroll: 'ec-with-scroll', uniform: 'ec-uniform', dayFoot: 'ec-day-foot', month: 'ec-month', popup: 'ec-popup', daySide: 'ec-day-side', eventTag: 'ec-event-tag', list: 'ec-list', noEvents: 'ec-no-events', resource: 'ec-resource', resourceTitle: 'ec-resource-title', draggable: 'ec-draggable', ghost: 'ec-ghost', preview: 'ec-preview', pointer: 'ec-pointer', resizer: 'ec-resizer', dragging: 'ec-dragging', resizingY: 'ec-resizing-y', resizingX: 'ec-resizing-x'}`

@@ -1578,2 +1742,12 @@ Defines the CSS classes that the Event Calendar uses to generate HTML markup.

`durationEditable`
</td>
<td>
Boolean (`true` or `false`) or `undefined`. The value overriding the [eventDurationEditable](#eventdurationeditable) setting for this specific event
</td>
</tr>
<tr>
<td>
`display`

@@ -1580,0 +1754,0 @@ </td>

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