@event-calendar/common
Advanced tools
Comparing version 0.0.1-alpha.7 to 0.0.1-beta.1
40
index.js
@@ -254,2 +254,24 @@ import { is_function } from 'svelte/internal'; | ||
function createView(view, _viewTitle, _currentRange, _activeRange) { | ||
return { | ||
type: view, | ||
title: _viewTitle, | ||
currentStart: _currentRange.start, | ||
currentEnd: _currentRange.end, | ||
activeStart: _activeRange.start, | ||
activeEnd: _activeRange.end, | ||
calendar: undefined | ||
}; | ||
} | ||
function toViewWithLocalDates(view) { | ||
view = assign({}, view); | ||
view.currentStart = toLocalDate(view.currentStart); | ||
view.currentEnd = toLocalDate(view.currentEnd); | ||
view.activeStart = toLocalDate(view.activeStart); | ||
view.activeEnd = toLocalDate(view.activeEnd); | ||
return view; | ||
} | ||
let eventId = 1; | ||
@@ -310,5 +332,5 @@ function createEvents(input) { | ||
? eventContent({ | ||
event: chunk.event, | ||
event: toEventWithLocalDates(chunk.event), | ||
timeText, | ||
view: _view | ||
view: toViewWithLocalDates(_view) | ||
}) | ||
@@ -396,14 +418,2 @@ : eventContent; | ||
function createView(view, _viewTitle, _currentRange, _activeRange) { | ||
return { | ||
type: view, | ||
title: _viewTitle, | ||
currentStart: _currentRange.start, | ||
currentEnd: _currentRange.end, | ||
activeStart: _activeRange.start, | ||
activeEnd: _activeRange.end, | ||
calendar: undefined | ||
}; | ||
} | ||
export { DAY_IN_SECONDS, action, addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, derived2, formatRange, hasYScroll, intl, intlRange, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toEventWithLocalDates, toISOString, toLocalDate, writable2 }; | ||
export { DAY_IN_SECONDS, action, addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, derived2, formatRange, hasYScroll, intl, intlRange, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toEventWithLocalDates, toISOString, toLocalDate, toViewWithLocalDates, writable2 }; |
{ | ||
"name": "@event-calendar/common", | ||
"version": "0.0.1-alpha.7", | ||
"version": "0.0.1-beta.1", | ||
"title": "EventCalendar Common Package", | ||
"description": "Full-sized event calendar with resource view", | ||
"keywords": ["calendar", "event", "resource", "full-sized"], | ||
"homepage": "https://vkurko.github.io/calendar/", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/vkurko/calendar.git", | ||
"directory": "packages/common" | ||
}, | ||
"type": "module", | ||
@@ -5,0 +14,0 @@ "exports": { |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12380
358
1
0