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

@event-calendar/resource-timeline

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-calendar/resource-timeline - npm Package Compare versions

Comparing version 3.6.2 to 3.7.0

src/Expander.svelte

4

package.json
{
"name": "@event-calendar/resource-timeline",
"version": "3.6.2",
"version": "3.7.0",
"title": "Event Calendar ResourceTimeline plugin",

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

"dependencies": {
"@event-calendar/core": "~3.6.2",
"@event-calendar/core": "~3.7.0",
"svelte": "^4.2.19"
}
}
import {writable} from 'svelte/store';
import {btnTextDay, btnTextMonth, btnTextWeek, themeView, viewResources} from '@event-calendar/core';
import {dayTimeLimits, dayTimes} from './stores.js';
import {dayTimeLimits, dayTimes, nestedResources} from './stores.js';
import View from './View.svelte';

@@ -12,2 +12,3 @@

options.buttonText.resourceTimelineMonth = 'timeline';
options.theme.expander = 'ec-expander';
options.theme.main = 'ec-main';

@@ -57,2 +58,3 @@ options.theme.times = 'ec-times';

state._dayTimes = dayTimes(state);
state._nestedResources = nestedResources(state);
state._resHs = writable(new Map()); // resource row heights

@@ -59,0 +61,0 @@ state._sidebarEl = writable(undefined);

import {derived} from 'svelte/store';
import {createSlotTimeLimits, createTimes} from '@event-calendar/core';
import {createSlotTimeLimits, createTimes, getPayload} from '@event-calendar/core';

@@ -41,1 +41,5 @@ // slotTimeLimits per day

}
export function nestedResources(state) {
return derived(state.resources, $resources => $resources.some(resource => getPayload(resource).children.length));
}

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

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