@nomideusz/svelte-calendar 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,7 +131,7 @@ const layoutByDay = $derived.by(() => {
131
131
  const rsP = drag?.active && (drag.mode === "resize-start" || drag.mode === "resize-end") ? drag.payload : null;
132
132
  const map = new Map();
133
133
  for (const day of dayCols) {
134
- const dayEnd = day.ms + DAY_MS;
134
+ const dayEnd = addDaysMs(day.ms, 1);
135
135
  const bandStart = day.ms + startHour * HOUR_MS;
136
136
  const bandEnd = day.ms + endHour * HOUR_MS;
137
137
  const infos = [];
@@ -393,7 +393,7 @@ function ghostForDay(dayMs) {
393
393
  const axisGhost = $derived.by(() => {
394
394
  if (!drag?.active || !drag.payload) return null;
395
395
  const s = drag.payload.start.getTime();
396
- const day = dayCols.find((d) => s >= d.ms && s < d.ms + 24 * HOUR_MS);
396
+ const day = dayCols.find((d) => s >= d.ms && s < addDaysMs(d.ms, 1));
397
397
  return day ? ghostForDay(day.ms) : null;
398
398
  });
399
399
  // ── Drag-to-create (mouse: sweep; touch: long-press) ──
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomideusz/svelte-calendar",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "A themeable Svelte 5 calendar with Day and Week views — Planner and Agenda.",
5
5
  "type": "module",
6
6
  "sideEffects": [