@event-calendar/resource-timeline
Advanced tools
Comparing version 3.6.2 to 3.7.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184272
15
3069
2993
+ Added@event-calendar/core@3.7.2(transitive)
- Removed@event-calendar/core@3.6.2(transitive)
Updated@event-calendar/core@~3.7.0