@forcecalendar/interface 1.0.0 → 1.0.2

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.
@@ -397,7 +397,7 @@ class M {
397
397
  if (!e) return null;
398
398
  if (t === "UTC") return new Date(e);
399
399
  const s = this.getTimezoneOffset(e, t);
400
- return new Date(e.getTime() - s * 60 * 1e3);
400
+ return new Date(e.getTime() + s * 60 * 1e3);
401
401
  }
402
402
  /**
403
403
  * Convert UTC date to timezone
@@ -409,7 +409,7 @@ class M {
409
409
  if (!e) return null;
410
410
  if (t === "UTC") return new Date(e);
411
411
  const s = this.getTimezoneOffset(e, t);
412
- return new Date(e.getTime() + s * 60 * 1e3);
412
+ return new Date(e.getTime() - s * 60 * 1e3);
413
413
  }
414
414
  /**
415
415
  * Get timezone offset in minutes
@@ -708,8 +708,8 @@ class x {
708
708
  borderColor: l = null,
709
709
  textColor: d = null,
710
710
  recurring: h = !1,
711
- recurrenceRule: v = null,
712
- timeZone: w = null,
711
+ recurrenceRule: y = null,
712
+ timeZone: b = null,
713
713
  endTimeZone: D = null,
714
714
  status: k = "confirmed",
715
715
  visibility: T = "public",
@@ -739,8 +739,8 @@ class x {
739
739
  borderColor: l,
740
740
  textColor: d,
741
741
  recurring: h,
742
- recurrenceRule: v,
743
- timeZone: w,
742
+ recurrenceRule: y,
743
+ timeZone: b,
744
744
  endTimeZone: D,
745
745
  status: k,
746
746
  visibility: T,
@@ -1202,7 +1202,7 @@ class x {
1202
1202
  return this.conferenceData !== null;
1203
1203
  }
1204
1204
  }
1205
- let f = class b {
1205
+ let f = class w {
1206
1206
  /**
1207
1207
  * Get the start of a day
1208
1208
  * @param {Date} date - The date
@@ -1238,7 +1238,7 @@ let f = class b {
1238
1238
  * @returns {Date}
1239
1239
  */
1240
1240
  static endOfWeek(e, t = 0) {
1241
- const s = b.startOfWeek(e, t);
1241
+ const s = w.startOfWeek(e, t);
1242
1242
  return s.setTime(s.getTime() + 6 * 24 * 60 * 60 * 1e3), s.setHours(23, 59, 59, 999), s;
1243
1243
  }
1244
1244
  /**
@@ -1290,7 +1290,7 @@ let f = class b {
1290
1290
  * @returns {Date}
1291
1291
  */
1292
1292
  static addWeeks(e, t) {
1293
- return b.addDays(e, t * 7);
1293
+ return w.addDays(e, t * 7);
1294
1294
  }
1295
1295
  /**
1296
1296
  * Add months to a date
@@ -1372,7 +1372,7 @@ let f = class b {
1372
1372
  * @returns {boolean}
1373
1373
  */
1374
1374
  static isSameWeek(e, t, s = 0) {
1375
- const i = b.startOfWeek(e, s), a = b.startOfWeek(t, s);
1375
+ const i = w.startOfWeek(e, s), a = w.startOfWeek(t, s);
1376
1376
  return i.toDateString() === a.toDateString();
1377
1377
  }
1378
1378
  /**
@@ -1410,7 +1410,7 @@ let f = class b {
1410
1410
  * @returns {number}
1411
1411
  */
1412
1412
  static differenceInWeeks(e, t) {
1413
- return Math.floor(b.differenceInDays(e, t) / 7);
1413
+ return Math.floor(w.differenceInDays(e, t) / 7);
1414
1414
  }
1415
1415
  /**
1416
1416
  * Get the difference in months between two dates
@@ -1466,7 +1466,7 @@ let f = class b {
1466
1466
  * @returns {string}
1467
1467
  */
1468
1468
  static getMonthName(e, t = "en-US", s = "long") {
1469
- return b.format(e, t, { month: s });
1469
+ return w.format(e, t, { month: s });
1470
1470
  }
1471
1471
  /**
1472
1472
  * Get day name
@@ -1476,7 +1476,7 @@ let f = class b {
1476
1476
  * @returns {string}
1477
1477
  */
1478
1478
  static getDayName(e, t = "en-US", s = "long") {
1479
- return b.format(e, t, { weekday: s });
1479
+ return w.format(e, t, { weekday: s });
1480
1480
  }
1481
1481
  /**
1482
1482
  * Format time
@@ -1486,7 +1486,7 @@ let f = class b {
1486
1486
  * @returns {string}
1487
1487
  */
1488
1488
  static formatTime(e, t = "en-US", s = !1) {
1489
- return b.format(e, t, {
1489
+ return w.format(e, t, {
1490
1490
  hour: "numeric",
1491
1491
  minute: "2-digit",
1492
1492
  hour12: !s
@@ -1508,7 +1508,7 @@ let f = class b {
1508
1508
  * @returns {Date}
1509
1509
  */
1510
1510
  static setTime(e, t) {
1511
- const s = new Date(e), { hours: i, minutes: a } = b.parseTime(t);
1511
+ const s = new Date(e), { hours: i, minutes: a } = w.parseTime(t);
1512
1512
  return s.setHours(i, a, 0, 0), s;
1513
1513
  }
1514
1514
  /**
@@ -1587,7 +1587,7 @@ let f = class b {
1587
1587
  * @returns {boolean}
1588
1588
  */
1589
1589
  static isDST(e, t) {
1590
- const s = new Date(e.getFullYear(), 0, 1), i = new Date(e.getFullYear(), 6, 1), a = b.getTimezoneOffset(s, t), n = b.getTimezoneOffset(i, t), r = b.getTimezoneOffset(e, t);
1590
+ const s = new Date(e.getFullYear(), 0, 1), i = new Date(e.getFullYear(), 6, 1), a = w.getTimezoneOffset(s, t), n = w.getTimezoneOffset(i, t), r = w.getTimezoneOffset(e, t);
1591
1591
  return Math.max(a, n) === r;
1592
1592
  }
1593
1593
  /**
@@ -1598,9 +1598,9 @@ let f = class b {
1598
1598
  * @returns {Date}
1599
1599
  */
1600
1600
  static addHoursWithDST(e, t, s) {
1601
- const i = new Date(e), a = b.getTimezoneOffset(e, s);
1601
+ const i = new Date(e), a = w.getTimezoneOffset(e, s);
1602
1602
  i.setTime(i.getTime() + t * 60 * 60 * 1e3);
1603
- const n = b.getTimezoneOffset(i, s);
1603
+ const n = w.getTimezoneOffset(i, s);
1604
1604
  if (a !== n) {
1605
1605
  const r = (n - a) * 6e4;
1606
1606
  i.setTime(i.getTime() + r);
@@ -1619,7 +1619,7 @@ let f = class b {
1619
1619
  * @returns {Date}
1620
1620
  */
1621
1621
  static createInTimeZone(e, t, s, i = 0, a = 0, n = 0, r) {
1622
- const o = `${e}-${String(t + 1).padStart(2, "0")}-${String(s).padStart(2, "0")}`, c = `${String(i).padStart(2, "0")}:${String(a).padStart(2, "0")}:${String(n).padStart(2, "0")}`, l = /* @__PURE__ */ new Date(`${o}T${c}`), d = b.getTimezoneOffset(l, r), h = l.getTime() + d * 6e4;
1622
+ const o = `${e}-${String(t + 1).padStart(2, "0")}-${String(s).padStart(2, "0")}`, c = `${String(i).padStart(2, "0")}:${String(a).padStart(2, "0")}:${String(n).padStart(2, "0")}`, l = /* @__PURE__ */ new Date(`${o}T${c}`), d = w.getTimezoneOffset(l, r), h = l.getTime() + d * 6e4;
1623
1623
  return new Date(h);
1624
1624
  }
1625
1625
  };
@@ -1715,18 +1715,16 @@ class Y {
1715
1715
  }
1716
1716
  /**
1717
1717
  * Parse BYDAY value
1718
+ * Returns array of strings like ['MO', '2TU', '-1FR'] for compatibility with RecurrenceEngine
1718
1719
  * @private
1719
1720
  */
1720
1721
  static parseByDay(e) {
1721
1722
  const t = e.split(","), s = ["SU", "MO", "TU", "WE", "TH", "FR", "SA"], i = [];
1722
1723
  for (const a of t) {
1723
- const n = a.match(/^([+-]?\d*)([A-Z]{2})$/);
1724
- if (n) {
1725
- const [r, o, c] = n;
1726
- s.includes(c) && i.push({
1727
- weekday: c,
1728
- nth: o ? parseInt(o, 10) : null
1729
- });
1724
+ const r = a.trim().toUpperCase().match(/^([+-]?\d*)([A-Z]{2})$/);
1725
+ if (r) {
1726
+ const [o, c, l] = r;
1727
+ s.includes(l) && i.push(c ? `${c}${l}` : l);
1730
1728
  }
1731
1729
  }
1732
1730
  return i;
@@ -1877,16 +1875,16 @@ class N {
1877
1875
  const n = this.parseRule(e.recurrenceRule), r = [], o = e.end - e.start, c = a || e.timeZone || "UTC", l = new M();
1878
1876
  let d = new Date(e.start), h = 0;
1879
1877
  n.until && n.until < s && (s = n.until);
1880
- let v = l.getTimezoneOffset(d, c);
1878
+ let y = l.getTimezoneOffset(d, c);
1881
1879
  for (; d <= s && h < i; ) {
1882
1880
  if (d >= t) {
1883
- const w = new Date(d), D = new Date(d.getTime() + o), k = l.getTimezoneOffset(w, c);
1884
- if (k !== v) {
1885
- const T = v - k;
1886
- w.setMinutes(w.getMinutes() + T), D.setMinutes(D.getMinutes() + T);
1881
+ const b = new Date(d), D = new Date(d.getTime() + o), k = l.getTimezoneOffset(b, c);
1882
+ if (k !== y) {
1883
+ const T = y - k;
1884
+ b.setMinutes(b.getMinutes() + T), D.setMinutes(D.getMinutes() + T);
1887
1885
  }
1888
- v = k, this.isException(w, n, e.id) || r.push({
1889
- start: w,
1886
+ y = k, this.isException(b, n, e.id) || r.push({
1887
+ start: b,
1890
1888
  end: D,
1891
1889
  recurringEventId: e.id,
1892
1890
  timezone: c,
@@ -1920,10 +1918,12 @@ class N {
1920
1918
  i.setDate(i.getDate() + t.interval);
1921
1919
  break;
1922
1920
  case "WEEKLY":
1923
- if (t.byDay && t.byDay.length > 0)
1924
- for (i.setDate(i.getDate() + 1); !this.matchesByDay(i, t.byDay); )
1925
- i.setDate(i.getDate() + 1);
1926
- else
1921
+ if (t.byDay && t.byDay.length > 0) {
1922
+ let n = 0;
1923
+ for (i.setDate(i.getDate() + 1); !this.matchesByDay(i, t.byDay) && n < 8; )
1924
+ i.setDate(i.getDate() + 1), n++;
1925
+ n >= 8 && (console.warn("RecurrenceEngine: Invalid byDay rule, falling back to weekly interval"), i.setDate(i.getDate() + 7 * t.interval - 8));
1926
+ } else
1927
1927
  i.setDate(i.getDate() + 7 * t.interval);
1928
1928
  break;
1929
1929
  case "MONTHLY":
@@ -2257,7 +2257,7 @@ class W {
2257
2257
  if (e.jsHeapSizeLimit && e.usedJSHeapSize)
2258
2258
  return e.usedJSHeapSize / e.jsHeapSizeLimit;
2259
2259
  }
2260
- if (typeof process < "u" && process.memoryUsage) {
2260
+ if (typeof process < "u" && typeof process.memoryUsage == "function") {
2261
2261
  const e = process.memoryUsage();
2262
2262
  return e.heapUsed / e.heapTotal;
2263
2263
  }
@@ -3124,24 +3124,29 @@ class Z {
3124
3124
  */
3125
3125
  getEventsForDate(e, t = null) {
3126
3126
  t = t || this.defaultTimezone, f.getLocalDateString(e);
3127
- const s = [], i = new Date(e);
3128
- for (let a = -1; a <= 1; a++) {
3129
- const n = new Date(i);
3130
- n.setDate(n.getDate() + a);
3131
- const r = f.getLocalDateString(n), o = this.indices.byDate.get(r) || /* @__PURE__ */ new Set();
3132
- for (const c of o) {
3133
- const l = this.events.get(c);
3134
- if (l && !s.find((d) => d.id === l.id)) {
3135
- const d = l.getStartInTimezone(t), h = l.getEndInTimezone(t), v = new Date(e);
3136
- v.setHours(0, 0, 0, 0);
3137
- const w = new Date(e);
3138
- w.setHours(23, 59, 59, 999), d <= w && h >= v && s.push(l);
3139
- }
3127
+ const s = /* @__PURE__ */ new Set(), i = new Date(e);
3128
+ for (let l = -1; l <= 1; l++) {
3129
+ const d = new Date(i);
3130
+ d.setDate(d.getDate() + l);
3131
+ const h = f.getLocalDateString(d), y = this.indices.byDate.get(h);
3132
+ y && y.forEach((b) => s.add(b));
3133
+ }
3134
+ const a = `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, n = this.indices.byMonth.get(a);
3135
+ n && n.forEach((l) => s.add(l));
3136
+ const r = [], o = new Date(e);
3137
+ o.setHours(0, 0, 0, 0);
3138
+ const c = new Date(e);
3139
+ c.setHours(23, 59, 59, 999);
3140
+ for (const l of s) {
3141
+ const d = this.events.get(l);
3142
+ if (d) {
3143
+ const h = d.getStartInTimezone(t), y = d.getEndInTimezone(t);
3144
+ h <= c && y >= o && r.push(d);
3140
3145
  }
3141
3146
  }
3142
- return s.sort((a, n) => {
3143
- const r = a.getStartInTimezone(t), o = n.getStartInTimezone(t), c = r - o;
3144
- return c !== 0 ? c : n.duration - a.duration;
3147
+ return r.sort((l, d) => {
3148
+ const h = l.getStartInTimezone(t), y = d.getStartInTimezone(t), b = h - y;
3149
+ return b !== 0 ? b : d.duration - l.duration;
3145
3150
  });
3146
3151
  }
3147
3152
  /**
@@ -3158,8 +3163,8 @@ class Z {
3158
3163
  (this.indices.byDate.get(l) || /* @__PURE__ */ new Set()).forEach((h) => {
3159
3164
  if (!o.has(h) && h !== s) {
3160
3165
  o.add(h);
3161
- const v = this.events.get(h);
3162
- v && v.overlaps({ start: e, end: t }) && i.push(v);
3166
+ const y = this.events.get(h);
3167
+ y && y.overlaps({ start: e, end: t }) && i.push(y);
3163
3168
  }
3164
3169
  });
3165
3170
  }), i.sort((c, l) => c.start - l.start);
@@ -4336,13 +4341,13 @@ class K {
4336
4341
  let l = new Date(o);
4337
4342
  const d = a ? 6 : Math.ceil((r.getDate() + f.getDayOfWeek(n, i)) / 7);
4338
4343
  for (let h = 0; h < d; h++) {
4339
- const v = {
4344
+ const y = {
4340
4345
  weekNumber: f.getWeekNumber(l),
4341
4346
  days: []
4342
4347
  };
4343
- for (let w = 0; w < 7; w++) {
4348
+ for (let b = 0; b < 7; b++) {
4344
4349
  const D = new Date(l), k = D.getMonth() === s, T = f.isToday(D), A = D.getDay() === 0 || D.getDay() === 6;
4345
- v.days.push({
4350
+ y.days.push({
4346
4351
  date: D,
4347
4352
  dayOfMonth: D.getDate(),
4348
4353
  isCurrentMonth: k,
@@ -4351,7 +4356,7 @@ class K {
4351
4356
  events: this.getEventsForDate(D)
4352
4357
  }), l = f.addDays(l, 1);
4353
4358
  }
4354
- c.push(v);
4359
+ c.push(y);
4355
4360
  }
4356
4361
  return {
4357
4362
  type: "month",
@@ -4836,7 +4841,7 @@ class Q {
4836
4841
  this.subscribers.clear(), this.state = null, this.calendar = null;
4837
4842
  }
4838
4843
  }
4839
- class y extends f {
4844
+ class v extends f {
4840
4845
  /**
4841
4846
  * Format date for display
4842
4847
  */
@@ -5901,7 +5906,7 @@ class J extends S {
5901
5906
  renderHeader() {
5902
5907
  const { config: e } = this.stateManager.getState(), t = [], s = e.weekStartsOn || 0;
5903
5908
  for (let i = 0; i < 7; i++) {
5904
- const a = (s + i) % 7, n = y.getDayAbbreviation(a, e.locale);
5909
+ const a = (s + i) % 7, n = v.getDayAbbreviation(a, e.locale);
5905
5910
  t.push(`<div class="month-header-cell">${n}</div>`);
5906
5911
  }
5907
5912
  return `
@@ -5936,7 +5941,7 @@ class J extends S {
5936
5941
  renderDay(e) {
5937
5942
  const { date: t, dayOfMonth: s, isOtherMonth: i, isToday: a, isSelected: n, isWeekend: r, events: o = [] } = e, c = s, l = ["month-day"];
5938
5943
  i && l.push("other-month"), a && l.push("today"), n && l.push("selected"), r && l.push("weekend");
5939
- const d = o.slice(0, this.config.maxEventsToShow), h = o.length - this.config.maxEventsToShow, v = d.map((D) => this.renderEvent(D)).join(""), w = h > 0 ? `<div class="more-events">+${h} more</div>` : "";
5944
+ const d = o.slice(0, this.config.maxEventsToShow), h = o.length - this.config.maxEventsToShow, y = d.map((D) => this.renderEvent(D)).join(""), b = h > 0 ? `<div class="more-events">+${h} more</div>` : "";
5940
5945
  return `
5941
5946
  <div class="${l.join(" ")}"
5942
5947
  data-date="${t.toISOString()}"
@@ -5945,8 +5950,8 @@ class J extends S {
5945
5950
  <span class="day-number">${c}</span>
5946
5951
  </div>
5947
5952
  <div class="day-events">
5948
- ${v}
5949
- ${w}
5953
+ ${y}
5954
+ ${b}
5950
5955
  </div>
5951
5956
  </div>
5952
5957
  `;
@@ -5959,7 +5964,7 @@ class J extends S {
5959
5964
  r += `background-color: ${l}; color: ${d};`;
5960
5965
  }
5961
5966
  let o = "";
5962
- !i && s && (o = y.formatTime(new Date(s), !1, !1));
5967
+ !i && s && (o = v.formatTime(new Date(s), !1, !1));
5963
5968
  const c = ["event-item"];
5964
5969
  return i && c.push("all-day"), `
5965
5970
  <div class="${c.join(" ")}"
@@ -6041,7 +6046,7 @@ class X extends S {
6041
6046
  return {
6042
6047
  ...s,
6043
6048
  date: i,
6044
- isToday: y.isToday(i),
6049
+ isToday: v.isToday(i),
6045
6050
  timedEvents: (s.events || []).filter((a) => !a.allDay),
6046
6051
  allDayEvents: (s.events || []).filter((a) => a.allDay)
6047
6052
  };
@@ -6238,7 +6243,7 @@ class X extends S {
6238
6243
  <div class="time-gutter-header"></div>
6239
6244
  ${this.viewData.days.map((e) => `
6240
6245
  <div class="day-column-header ${e.isToday ? "is-today" : ""}">
6241
- <span class="day-name">${y.getDayAbbreviation(e.date.getDay())}</span>
6246
+ <span class="day-name">${v.getDayAbbreviation(e.date.getDay())}</span>
6242
6247
  <span class="day-number">${e.date.getDate()}</span>
6243
6248
  </div>
6244
6249
  `).join("")}
@@ -6261,7 +6266,7 @@ class X extends S {
6261
6266
  <div class="time-gutter">
6262
6267
  ${this.hours.map((e) => `
6263
6268
  <div class="time-slot-label">
6264
- ${e === 0 ? "" : y.formatTime((/* @__PURE__ */ new Date()).setHours(e, 0), !1)}
6269
+ ${e === 0 ? "" : v.formatTime((/* @__PURE__ */ new Date()).setHours(e, 0), !1)}
6265
6270
  </div>
6266
6271
  `).join("")}
6267
6272
  </div>
@@ -6283,7 +6288,7 @@ class X extends S {
6283
6288
  style="top: ${n}px; height: ${r}px; background-color: ${o}; color: ${c};"
6284
6289
  data-event-id="${e.id}">
6285
6290
  <span class="event-title">${E.escapeHTML(e.title)}</span>
6286
- <span class="event-time">${y.formatTime(t)}</span>
6291
+ <span class="event-time">${v.formatTime(t)}</span>
6287
6292
  </div>
6288
6293
  `;
6289
6294
  }
@@ -6340,7 +6345,7 @@ class ee extends S {
6340
6345
  updateSelection(e, t) {
6341
6346
  const s = this.shadowRoot.querySelector(".day-column");
6342
6347
  if (!s) return;
6343
- ((a) => a && y.isSameDay(a, new Date(s.dataset.date)))(e) ? s.classList.add("selected") : s.classList.remove("selected");
6348
+ ((a) => a && v.isSameDay(a, new Date(s.dataset.date)))(e) ? s.classList.add("selected") : s.classList.remove("selected");
6344
6349
  }
6345
6350
  loadViewData() {
6346
6351
  if (!this.stateManager) return;
@@ -6353,10 +6358,10 @@ class ee extends S {
6353
6358
  let t = null;
6354
6359
  const s = (n = this.stateManager) == null ? void 0 : n.getState(), i = (s == null ? void 0 : s.currentDate) || /* @__PURE__ */ new Date();
6355
6360
  if (e.days && Array.isArray(e.days) && e.days.length > 0)
6356
- t = e.days.find((r) => y.isSameDay(new Date(r.date), i)) || e.days[0];
6361
+ t = e.days.find((r) => v.isSameDay(new Date(r.date), i)) || e.days[0];
6357
6362
  else if (e.weeks && Array.isArray(e.weeks) && e.weeks.length > 0) {
6358
6363
  const r = e.weeks.flatMap((o) => o.days || []);
6359
- t = r.find((o) => y.isSameDay(new Date(o.date), i)) || r[0];
6364
+ t = r.find((o) => v.isSameDay(new Date(o.date), i)) || r[0];
6360
6365
  } else e.date && (t = e);
6361
6366
  if (!t) return null;
6362
6367
  const a = new Date(t.date);
@@ -6365,7 +6370,7 @@ class ee extends S {
6365
6370
  day: {
6366
6371
  ...t,
6367
6372
  date: a,
6368
- isToday: y.isToday(a),
6373
+ isToday: v.isToday(a),
6369
6374
  timedEvents: (t.events || []).filter((r) => !r.allDay),
6370
6375
  allDayEvents: (t.events || []).filter((r) => r.allDay)
6371
6376
  }
@@ -6543,7 +6548,7 @@ class ee extends S {
6543
6548
  var i, a, n;
6544
6549
  if (!this.viewData || !this.viewData.day)
6545
6550
  return '<div class="day-view" style="padding: 20px; color: var(--fc-text-light);">No data available.</div>';
6546
- const { day: e } = this.viewData, t = ((n = (a = (i = this.stateManager) == null ? void 0 : i.state) == null ? void 0 : a.config) == null ? void 0 : n.locale) || "en-US", s = y.formatDate(e.date, "day", t).split(" ")[0];
6551
+ const { day: e } = this.viewData, t = ((n = (a = (i = this.stateManager) == null ? void 0 : i.state) == null ? void 0 : a.config) == null ? void 0 : n.locale) || "en-US", s = v.formatDate(e.date, "day", t).split(" ")[0];
6547
6552
  return `
6548
6553
  <div class="day-view">
6549
6554
  <div class="day-header">
@@ -6569,7 +6574,7 @@ class ee extends S {
6569
6574
  <div class="time-gutter">
6570
6575
  ${this.hours.map((r) => `
6571
6576
  <div class="time-slot-label">
6572
- ${r === 0 ? "" : y.formatTime((/* @__PURE__ */ new Date()).setHours(r, 0), !1)}
6577
+ ${r === 0 ? "" : v.formatTime((/* @__PURE__ */ new Date()).setHours(r, 0), !1)}
6573
6578
  </div>
6574
6579
  `).join("")}
6575
6580
  </div>
@@ -6589,7 +6594,7 @@ class ee extends S {
6589
6594
  style="top: ${n}px; height: ${r}px; background-color: ${o}; color: ${c};"
6590
6595
  data-event-id="${e.id}">
6591
6596
  <span class="event-title">${E.escapeHTML(e.title)}</span>
6592
- <span class="event-time">${y.formatTime(t)} - ${y.formatTime(s)}</span>
6597
+ <span class="event-time">${v.formatTime(t)} - ${v.formatTime(s)}</span>
6593
6598
  </div>
6594
6599
  `;
6595
6600
  }
@@ -7327,14 +7332,14 @@ class se extends S {
7327
7332
  const s = this.stateManager.state.config.locale;
7328
7333
  switch (t) {
7329
7334
  case "month":
7330
- return y.formatDate(e, "month", s);
7335
+ return v.formatDate(e, "month", s);
7331
7336
  case "week":
7332
- const i = y.startOfWeek(e), a = y.endOfWeek(e);
7333
- return y.formatDateRange(i, a, s);
7337
+ const i = v.startOfWeek(e), a = v.endOfWeek(e);
7338
+ return v.formatDateRange(i, a, s);
7334
7339
  case "day":
7335
- return y.formatDate(e, "long", s);
7340
+ return v.formatDate(e, "long", s);
7336
7341
  default:
7337
- return y.formatDate(e, "month", s);
7342
+ return v.formatDate(e, "month", s);
7338
7343
  }
7339
7344
  }
7340
7345
  getIcon(e) {
@@ -7393,7 +7398,7 @@ typeof window < "u" && typeof customElements < "u" && console.log("Force Calenda
7393
7398
  export {
7394
7399
  S as BaseComponent,
7395
7400
  E as DOMUtils,
7396
- y as DateUtils,
7401
+ v as DateUtils,
7397
7402
  ee as DayView,
7398
7403
  G as EventBus,
7399
7404
  se as ForceCalendar,