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

@event-calendar/core

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/core - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

47

index.js

@@ -49,2 +49,3 @@ import { is_function, tick, SvelteComponent, init, safe_not_equal, empty, insert, detach, noop, destroy_each, component_subscribe, set_store_value, element, text, attr, append, listen, set_data, space, transition_in, group_outros, transition_out, check_outros, create_component, mount_component, destroy_component, set_style } from 'svelte/internal';

slotDuration: '00:30:00',
slotHeight: 24,
slotLabelFormat: {

@@ -279,3 +280,3 @@ hour: 'numeric',

}
} else if ('url' in source) {
} else {
// Events as a JSON feed

@@ -412,3 +413,3 @@ // Prepare params

/* packages/core/src/Buttons.svelte generated by Svelte v3.38.3 */
/* packages/core/src/Buttons.svelte generated by Svelte v3.42.1 */

@@ -440,4 +441,4 @@ function get_each_context$1(ctx, list, i) {

attr(button, "class", button_class_value = "" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]
? " " + /*$theme*/ ctx[3].active
: "") + " ec-" + /*button*/ ctx[23]));
? ' ' + /*$theme*/ ctx[3].active
: '') + " ec-" + /*button*/ ctx[23]));
},

@@ -458,4 +459,4 @@ m(target, anchor) {

if (dirty & /*$theme, $view, buttons*/ 73 && button_class_value !== (button_class_value = "" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]
? " " + /*$theme*/ ctx[3].active
: "") + " ec-" + /*button*/ ctx[23]))) {
? ' ' + /*$theme*/ ctx[3].active
: '') + " ec-" + /*button*/ ctx[23]))) {
attr(button, "class", button_class_value);

@@ -639,7 +640,7 @@ }

function select_block_type(ctx, dirty) {
if (/*button*/ ctx[23] == "") return create_if_block$1;
if (/*button*/ ctx[23] == "title") return create_if_block_1;
if (/*button*/ ctx[23] == "prev") return create_if_block_2;
if (/*button*/ ctx[23] === "next") return create_if_block_3;
if (/*button*/ ctx[23] === "today") return create_if_block_4;
if (/*button*/ ctx[23] == '') return create_if_block$1;
if (/*button*/ ctx[23] == 'title') return create_if_block_1;
if (/*button*/ ctx[23] == 'prev') return create_if_block_2;
if (/*button*/ ctx[23] === 'next') return create_if_block_3;
if (/*button*/ ctx[23] === 'today') return create_if_block_4;
return create_else_block$1;

@@ -738,6 +739,6 @@ }

function instance$2($$self, $$props, $$invalidate) {
let $_currentRange;
let $duration;
let $date;
let $duration;
let $hiddenDays;
let $_currentRange;
let $theme;

@@ -748,3 +749,3 @@ let $_viewTitle;

let { buttons } = $$props;
let { _currentRange, _viewTitle, buttonText, date, duration, hiddenDays, theme, view } = getContext("state");
let { _currentRange, _viewTitle, buttonText, date, duration, hiddenDays, theme, view } = getContext('state');
component_subscribe($$self, _currentRange, value => $$invalidate(18, $_currentRange = value));

@@ -780,3 +781,3 @@ component_subscribe($$self, _viewTitle, value => $$invalidate(4, $_viewTitle = value));

$$self.$$set = $$props => {
if ("buttons" in $$props) $$invalidate(0, buttons = $$props.buttons);
if ('buttons' in $$props) $$invalidate(0, buttons = $$props.buttons);
};

@@ -822,3 +823,3 @@

/* packages/core/src/Toolbar.svelte generated by Svelte v3.38.3 */
/* packages/core/src/Toolbar.svelte generated by Svelte v3.42.1 */

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

let $theme;
let { headerToolbar, theme } = getContext("state");
let { headerToolbar, theme } = getContext('state');
component_subscribe($$self, headerToolbar, value => $$invalidate(4, $headerToolbar = value));

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

for (let key of Object.keys(sections)) {
$$invalidate(0, sections[key] = $headerToolbar[key].split(" ").map(group => group.split(",")), sections);
$$invalidate(0, sections[key] = $headerToolbar[key].split(' ').map(group => group.split(',')), sections);
}

@@ -1195,3 +1196,3 @@ }

/* packages/core/src/Calendar.svelte generated by Svelte v3.38.3 */
/* packages/core/src/Calendar.svelte generated by Svelte v3.42.1 */

@@ -1339,3 +1340,3 @@ function create_fragment(ctx) {

let state = new State(plugins, options);
setContext("state", state);
setContext('state', state);
let { _viewComponent, _interactionComponent, height, theme } = state;

@@ -1410,4 +1411,4 @@ component_subscribe($$self, _viewComponent, value => $$invalidate(2, $_viewComponent = value));

$$self.$$set = $$props => {
if ("plugins" in $$props) $$invalidate(8, plugins = $$props.plugins);
if ("options" in $$props) $$invalidate(9, options = $$props.options);
if ('plugins' in $$props) $$invalidate(8, plugins = $$props.plugins);
if ('options' in $$props) $$invalidate(9, options = $$props.options);
};

@@ -1497,2 +1498,2 @@

export default Calendar;
export { Calendar as default };
{
"name": "@event-calendar/core",
"version": "0.2.0",
"version": "0.3.0",
"title": "Event Calendar Core package",

@@ -21,5 +21,5 @@ "description": "Full-sized event calendar with resource view",

"dependencies": {
"@event-calendar/common": "~0.2.0",
"svelte": "^3.38.3"
"@event-calendar/common": "~0.3.0",
"svelte": "^3.42.1"
}
}

@@ -7,3 +7,3 @@ # Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build)

* Lightweight (34kb [br](https://en.wikipedia.org/wiki/Brotli) compressed `modern` version)
* Lightweight (37.8kb [br](https://en.wikipedia.org/wiki/Brotli) compressed `modern` version)
* Zero-dependency (pre-built bundle)

@@ -16,11 +16,12 @@ * Used by [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

- [Usage](#usage)
- [Svelte component / ES6 module](#svelte-component--es6-module)
- [Pre-built browser ready bundle](#pre-built-browser-ready-bundle)
- [Svelte component / ES6 module](#svelte-component--es6-module)
- [Pre-built browser ready bundle](#pre-built-browser-ready-bundle)
- [Options](#options)
<table>
<tr><td>
- [buttonText](#buttontext)
- [date](#date)
- [dateClick](#dateclick)
- [datesAboveResources](#datesaboveresources)
- [dayHeaderFormat](#dayheaderformat)

@@ -47,2 +48,3 @@ - [displayEventEnd](#displayeventend)

- [eventTimeFormat](#eventtimeformat)
- [filterResourcesWithEvents](#filterresourceswithevents)
- [firstDay](#firstday)

@@ -53,3 +55,2 @@ - [flexibleSlotTimeLimits](#flexibleslottimelimits)

- [hiddenDays](#hiddendays)
- [hideResourcesWithNoEvents](#hideresourceswithnoevents)
- [highlightedDates](#highlighteddates)

@@ -59,5 +60,5 @@ - [lazyFetching](#lazyfetching)

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

@@ -70,2 +71,3 @@ - [monthMode](#monthmode)

- [slotDuration](#slotduration)
- [slotHeight](#slotheight)
- [slotLabelFormat](#slotlabelformat)

@@ -81,7 +83,7 @@ - [slotMaxTime](#slotmaxtime)

- [Event object](#event-object)
- [Parsing event from a plain object](#parsing-event-from-a-plain-object)
- [Parsing event from a plain object](#parsing-event-from-a-plain-object)
- [Duration object](#duration-object)
- [Parsing duration from input values](#parsing-duration-from-input-values)
- [Parsing duration from input values](#parsing-duration-from-input-values)
- [Resource object](#resource-object)
- [Parsing resource from a plain object](#parsing-resource-from-a-plain-object)
- [Parsing resource from a plain object](#parsing-resource-from-a-plain-object)
- [View object](#view-object)

@@ -224,2 +226,8 @@ - [Browser support](#browser-support)

### datesAboveResources
- Type `boolean`
- Default `false`
Determines whether the resource view should render the date headings above the resource headings.
### dayHeaderFormat

@@ -735,3 +743,3 @@ - Type `object` or `function`

###### 1. Fetch events from a URL
#### 1. Fetch events from a URL
<table>

@@ -770,3 +778,3 @@ <tr>

###### 2. Execute custom function
#### 2. Execute custom function
<table>

@@ -841,2 +849,8 @@ <tr>

### filterResourcesWithEvents
- Type `boolean`
- Default `false`
Determines whether resources with no events for the current range should be hidden in the resource view.
### firstDay

@@ -913,8 +927,2 @@ - Type `integer`

### hideResourcesWithNoEvents
- Type `boolean`
- Default `false`
Determines whether resources with no events for the current range should be hidden in the resource view.
### highlightedDates

@@ -948,3 +956,3 @@ - Type `Array`

function (date) {
// return formatted date string
// return formatted date string
}

@@ -972,3 +980,3 @@ ```

function (date) {
// return formatted date string
// return formatted date string
}

@@ -1062,3 +1070,3 @@ ```

function () {
// return string or object
// return string or object
}

@@ -1089,2 +1097,14 @@ ```

### slotHeight
- Type `integer`
- Default `24`
Defines the time slot height in pixels. When changing the setting, you must additionally override the following CSS styles:
```css
.ec-time, .ec-line {
height: 24px; /* override this value */
}
```
### slotLabelFormat

@@ -1100,3 +1120,3 @@ - Type `object` or `function`

function (time) {
// return formatted time string
// return formatted time string
}

@@ -1140,3 +1160,3 @@ ```

function (theme) {
// return actual theme object
// return actual theme object
}

@@ -1167,3 +1187,3 @@ ```

function (date) {
// return formatted date string
// return formatted date string
}

@@ -1170,0 +1190,0 @@ ```

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