@forcecalendar/interface 1.0.52 → 1.0.54

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.
@@ -734,10 +734,7 @@ class k {
734
734
  static debounce(t, e = 250) {
735
735
  let r;
736
736
  return function(...s) {
737
- const n = () => {
738
- clearTimeout(r), t(...s);
739
- };
740
- clearTimeout(r), r = setTimeout(n, e);
737
+ clearTimeout(r), r = setTimeout(() => t.apply(this, s), e);
741
738
  };
742
739
  }
743
740
  /**
@@ -1368,7 +1365,9 @@ class E {
1368
1365
  const c = new Date(o.start), l = new Date(o.end), d = c.getHours() * 60 + c.getMinutes(), p = Math.max(d + 1, l.getHours() * 60 + l.getMinutes());
1369
1366
  return { id: o.id, startMin: d, endMin: p };
1370
1367
  });
1371
- e.sort((o, c) => o.startMin - c.startMin || c.endMin - c.startMin - (o.endMin - o.startMin));
1368
+ e.sort(
1369
+ (o, c) => o.startMin - c.startMin || c.endMin - c.startMin - (o.endMin - o.startMin)
1370
+ );
1372
1371
  const r = [], i = /* @__PURE__ */ new Map();
1373
1372
  for (const o of e) {
1374
1373
  let c = !1;
@@ -1634,7 +1633,9 @@ class z extends E {
1634
1633
  <!-- Timed events -->
1635
1634
  ${(() => {
1636
1635
  const r = this.computeOverlapLayout(t.timedEvents);
1637
- return t.timedEvents.map((i) => this.renderTimedEvent(i, { compact: !0, overlapLayout: r })).join("");
1636
+ return t.timedEvents.map(
1637
+ (i) => this.renderTimedEvent(i, { compact: !0, overlapLayout: r })
1638
+ ).join("");
1638
1639
  })()}
1639
1640
  </div>
1640
1641
  `;
@@ -1778,7 +1779,9 @@ class B extends E {
1778
1779
  <!-- Timed events -->
1779
1780
  ${(() => {
1780
1781
  const s = this.computeOverlapLayout(t);
1781
- return t.map((n) => this.renderTimedEvent(n, { compact: !1, overlapLayout: s })).join("");
1782
+ return t.map(
1783
+ (n) => this.renderTimedEvent(n, { compact: !1, overlapLayout: s })
1784
+ ).join("");
1782
1785
  })()}
1783
1786
  </div>
1784
1787
  `;