@innosolutions/inno-calendar 1.0.35 → 1.0.38

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.
Files changed (55) hide show
  1. package/AGENT.md +36 -1
  2. package/dist/agenda-widget-BsRtRyZ3.cjs +2 -0
  3. package/dist/agenda-widget-BsRtRyZ3.cjs.map +1 -0
  4. package/dist/{agenda-widget-CyRPG-1p.js → agenda-widget-CNUXKiQT.js} +723 -745
  5. package/dist/agenda-widget-CNUXKiQT.js.map +1 -0
  6. package/dist/components/event/event-card.d.ts +16 -1
  7. package/dist/components/event/event-card.d.ts.map +1 -1
  8. package/dist/components/event/event-page-transition.d.ts +32 -0
  9. package/dist/components/event/event-page-transition.d.ts.map +1 -0
  10. package/dist/components/index.cjs +1 -1
  11. package/dist/components/index.d.ts +1 -1
  12. package/dist/components/index.d.ts.map +1 -1
  13. package/dist/components/index.mjs +27 -26
  14. package/dist/components/inno-calendar.d.ts.map +1 -1
  15. package/dist/components/primitives/multi-day-banner.d.ts.map +1 -1
  16. package/dist/components/views/day-events-expansion.d.ts +51 -0
  17. package/dist/components/views/day-events-expansion.d.ts.map +1 -0
  18. package/dist/components/views/index.d.ts +1 -0
  19. package/dist/components/views/index.d.ts.map +1 -1
  20. package/dist/components/views/month-view.d.ts +14 -3
  21. package/dist/components/views/month-view.d.ts.map +1 -1
  22. package/dist/components/views/timeline-view.d.ts.map +1 -1
  23. package/dist/core/index.cjs +1 -1
  24. package/dist/core/index.mjs +139 -136
  25. package/dist/core/utils/date-utils.d.ts +31 -1
  26. package/dist/core/utils/date-utils.d.ts.map +1 -1
  27. package/dist/core/utils/event-utils.d.ts +40 -0
  28. package/dist/core/utils/event-utils.d.ts.map +1 -1
  29. package/dist/core/utils/position-utils.d.ts +5 -1
  30. package/dist/core/utils/position-utils.d.ts.map +1 -1
  31. package/dist/index.cjs +1 -1
  32. package/dist/index.mjs +190 -186
  33. package/dist/presets/index.cjs +1 -1
  34. package/dist/presets/index.mjs +1 -1
  35. package/dist/styles/index.css +1 -1
  36. package/dist/{tailwind-calendar-BaJAw6io.cjs → tailwind-calendar-BqhSHRk0.cjs} +2 -2
  37. package/dist/{tailwind-calendar-BaJAw6io.cjs.map → tailwind-calendar-BqhSHRk0.cjs.map} +1 -1
  38. package/dist/{tailwind-calendar-D-8ALvNh.js → tailwind-calendar-BvWm9ry9.js} +16 -16
  39. package/dist/{tailwind-calendar-D-8ALvNh.js.map → tailwind-calendar-BvWm9ry9.js.map} +1 -1
  40. package/dist/utils.cjs +1 -1
  41. package/dist/utils.cjs.map +1 -1
  42. package/dist/utils.mjs +380 -335
  43. package/dist/utils.mjs.map +1 -1
  44. package/dist/week-view-BGthazCB.js +3015 -0
  45. package/dist/week-view-BGthazCB.js.map +1 -0
  46. package/dist/week-view-DOvr2VIq.cjs +11 -0
  47. package/dist/week-view-DOvr2VIq.cjs.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/agenda-widget-CuQxfYVI.cjs +0 -2
  50. package/dist/agenda-widget-CuQxfYVI.cjs.map +0 -1
  51. package/dist/agenda-widget-CyRPG-1p.js.map +0 -1
  52. package/dist/week-view-5nw-Hvod.js +0 -2754
  53. package/dist/week-view-5nw-Hvod.js.map +0 -1
  54. package/dist/week-view-C0iWG7_6.cjs +0 -11
  55. package/dist/week-view-C0iWG7_6.cjs.map +0 -1
package/dist/utils.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const K = [
1
+ const et = [
2
2
  "day",
3
3
  "week",
4
4
  "month",
@@ -8,7 +8,7 @@ const K = [
8
8
  "resource-week",
9
9
  "timeline-day",
10
10
  "timeline-week"
11
- ], X = {
11
+ ], nt = {
12
12
  startHour: 8,
13
13
  endHour: 18,
14
14
  firstDayOfWeek: 1,
@@ -18,13 +18,13 @@ const K = [
18
18
  timeFormat: "24h",
19
19
  badgeVariant: "colored",
20
20
  showCanceledEvents: !1
21
- }, j = {
21
+ }, rt = {
22
22
  startHour: 0,
23
23
  endHour: 24
24
- }, q = {
24
+ }, ot = {
25
25
  startHour: 8,
26
26
  endHour: 18
27
- }, Q = {
27
+ }, at = {
28
28
  day: {
29
29
  type: "day",
30
30
  slotMinTime: "00:00",
@@ -85,7 +85,7 @@ const K = [
85
85
  type: "timeline-week",
86
86
  slotDuration: "01:00:00"
87
87
  }
88
- }, Z = {
88
+ }, st = {
89
89
  blue: "#3b82f6",
90
90
  green: "#22c55e",
91
91
  red: "#ef4444",
@@ -96,7 +96,7 @@ const K = [
96
96
  teal: "#14b8a6",
97
97
  gray: "#6b7280",
98
98
  indigo: "#6366f1"
99
- }, tt = {
99
+ }, ut = {
100
100
  blue: { bg: "bg-blue-100", text: "text-blue-800", border: "border-blue-300" },
101
101
  green: { bg: "bg-green-100", text: "text-green-800", border: "border-green-300" },
102
102
  red: { bg: "bg-red-100", text: "text-red-800", border: "border-red-300" },
@@ -107,7 +107,7 @@ const K = [
107
107
  teal: { bg: "bg-teal-100", text: "text-teal-800", border: "border-teal-300" },
108
108
  gray: { bg: "bg-gray-100", text: "text-gray-800", border: "border-gray-300" },
109
109
  indigo: { bg: "bg-indigo-100", text: "text-indigo-800", border: "border-indigo-300" }
110
- }, et = {
110
+ }, it = {
111
111
  "#3b82f6": "blue",
112
112
  "#22c55e": "green",
113
113
  "#ef4444": "red",
@@ -118,143 +118,143 @@ const K = [
118
118
  "#14b8a6": "teal",
119
119
  "#6b7280": "gray",
120
120
  "#6366f1": "indigo"
121
- }, nt = 24, rt = 60, R = 60 * 1e3, U = 60 * R, ot = 24 * U, S = 64, at = 32, st = 56, ut = 200, W = 20;
122
- function f(t) {
121
+ }, ct = 24, lt = 60, N = 60 * 1e3, V = 60 * N, ft = 24 * V, I = 64, dt = 32, gt = 56, Dt = 200, P = 20;
122
+ function g(t) {
123
123
  const e = new Date(t);
124
124
  return e.setHours(0, 0, 0, 0), e;
125
125
  }
126
- function y(t) {
126
+ function T(t) {
127
127
  const e = new Date(t);
128
128
  return e.setHours(23, 59, 59, 999), e;
129
129
  }
130
- function c(t, e) {
130
+ function l(t, e) {
131
131
  const n = new Date(t);
132
132
  return n.setDate(n.getDate() + e), n;
133
133
  }
134
- function it(t, e) {
135
- return c(t, -e);
134
+ function mt(t, e) {
135
+ return l(t, -e);
136
136
  }
137
- function M(t, e) {
137
+ function p(t, e) {
138
138
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
139
139
  }
140
- function O(t) {
141
- return M(t, /* @__PURE__ */ new Date());
140
+ function U(t) {
141
+ return p(t, /* @__PURE__ */ new Date());
142
142
  }
143
- function ct(t) {
143
+ function ht(t) {
144
144
  return t.getDay();
145
145
  }
146
- function _(t) {
146
+ function W(t) {
147
147
  const e = t.getDay();
148
148
  return e === 0 || e === 6;
149
149
  }
150
- function d(t, e = 1) {
150
+ function D(t, e = 1) {
151
151
  const n = new Date(t), r = n.getDay(), o = (r < e ? 7 : 0) + r - e;
152
152
  return n.setDate(n.getDate() - o), n.setHours(0, 0, 0, 0), n;
153
153
  }
154
- function T(t, e = 1) {
155
- const n = d(t, e);
154
+ function w(t, e = 1) {
155
+ const n = D(t, e);
156
156
  return n.setDate(n.getDate() + 6), n.setHours(23, 59, 59, 999), n;
157
157
  }
158
- function b(t, e) {
159
- return c(t, e * 7);
158
+ function k(t, e) {
159
+ return l(t, e * 7);
160
160
  }
161
- function lt(t, e) {
162
- return c(t, -e * 7);
161
+ function yt(t, e) {
162
+ return l(t, -e * 7);
163
163
  }
164
- function ft(t) {
164
+ function pt(t) {
165
165
  const e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate())), n = e.getUTCDay() || 7;
166
166
  e.setUTCDate(e.getUTCDate() + 4 - n);
167
167
  const r = new Date(Date.UTC(e.getUTCFullYear(), 0, 1));
168
168
  return Math.ceil(((e.getTime() - r.getTime()) / 864e5 + 1) / 7);
169
169
  }
170
- function gt(t, e, n = 1) {
171
- const r = d(t, n), o = d(e, n);
172
- return M(r, o);
170
+ function Tt(t, e, n = 1) {
171
+ const r = D(t, n), o = D(e, n);
172
+ return p(r, o);
173
173
  }
174
- function p(t) {
174
+ function E(t) {
175
175
  const e = new Date(t);
176
176
  return e.setDate(1), e.setHours(0, 0, 0, 0), e;
177
177
  }
178
- function w(t) {
178
+ function S(t) {
179
179
  const e = new Date(t.getFullYear(), t.getMonth() + 1, 0);
180
180
  return e.setHours(23, 59, 59, 999), e;
181
181
  }
182
- function H(t, e) {
182
+ function x(t, e) {
183
183
  const n = new Date(t);
184
184
  return n.setMonth(n.getMonth() + e), n;
185
185
  }
186
- function dt(t, e) {
187
- return H(t, -e);
186
+ function wt(t, e) {
187
+ return x(t, -e);
188
188
  }
189
- function mt(t) {
189
+ function Mt(t) {
190
190
  return new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate();
191
191
  }
192
- function F(t, e) {
192
+ function $(t, e) {
193
193
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
194
194
  }
195
- function $(t) {
195
+ function v(t) {
196
196
  return new Date(t.getFullYear(), 0, 1, 0, 0, 0, 0);
197
197
  }
198
- function Y(t) {
198
+ function G(t) {
199
199
  return new Date(t.getFullYear(), 11, 31, 23, 59, 59, 999);
200
200
  }
201
- function x(t, e) {
201
+ function C(t, e) {
202
202
  const n = new Date(t);
203
203
  return n.setFullYear(n.getFullYear() + e), n;
204
204
  }
205
- function Dt(t, e) {
206
- return x(t, -e);
205
+ function Et(t, e) {
206
+ return C(t, -e);
207
207
  }
208
- function ht(t, e) {
208
+ function St(t, e) {
209
209
  return t.getFullYear() === e.getFullYear();
210
210
  }
211
- function A(t, e) {
211
+ function z(t, e) {
212
212
  const n = new Date(t);
213
213
  return n.setHours(n.getHours() + e), n;
214
214
  }
215
- function yt(t, e) {
215
+ function bt(t, e) {
216
216
  const n = new Date(t);
217
217
  return n.setMinutes(n.getMinutes() + e), n;
218
218
  }
219
- function Tt(t, e, n = 0, r = 0) {
219
+ function Ht(t, e, n = 0, r = 0) {
220
220
  const o = new Date(t);
221
221
  return o.setHours(e, n, r, 0), o;
222
222
  }
223
- function pt(t) {
223
+ function kt(t) {
224
224
  return t.getHours() + t.getMinutes() / 60;
225
225
  }
226
- function wt(t, e) {
226
+ function It(t, e) {
227
227
  return t.getTime() < e.getTime();
228
228
  }
229
- function Mt(t, e) {
229
+ function xt(t, e) {
230
230
  return t.getTime() > e.getTime();
231
231
  }
232
- function Et(t, e, n) {
232
+ function Ft(t, e, n) {
233
233
  const r = t.getTime();
234
234
  return r >= e.getTime() && r <= n.getTime();
235
235
  }
236
- function bt(t) {
236
+ function $t(t) {
237
237
  if (t.length !== 0)
238
238
  return t.reduce((e, n) => n < e ? n : e);
239
239
  }
240
- function St(t) {
240
+ function Ct(t) {
241
241
  if (t.length !== 0)
242
242
  return t.reduce((e, n) => n > e ? n : e);
243
243
  }
244
- function v(t, e) {
244
+ function O(t, e) {
245
245
  return t.getTime() - e.getTime();
246
246
  }
247
- function Ht(t, e) {
248
- return Math.floor(v(t, e) / 6e4);
247
+ function Ot(t, e) {
248
+ return Math.floor(O(t, e) / 6e4);
249
249
  }
250
- function kt(t, e) {
251
- return Math.floor(v(t, e) / 36e5);
250
+ function _t(t, e) {
251
+ return Math.floor(O(t, e) / 36e5);
252
252
  }
253
- function It(t, e) {
254
- const n = f(t), r = f(e);
255
- return Math.floor(v(n, r) / 864e5);
253
+ function At(t, e) {
254
+ const n = g(t), r = g(e);
255
+ return Math.floor(O(n, r) / 864e5);
256
256
  }
257
- function Ft(t, e = "24h") {
257
+ function H(t, e = "24h") {
258
258
  const n = t.getHours(), r = t.getMinutes();
259
259
  if (e === "12h") {
260
260
  const o = n >= 12 ? "PM" : "AM";
@@ -262,109 +262,115 @@ function Ft(t, e = "24h") {
262
262
  }
263
263
  return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
264
264
  }
265
- function xt(t) {
265
+ function Rt(t) {
266
266
  const e = t.getFullYear(), n = (t.getMonth() + 1).toString().padStart(2, "0"), r = t.getDate().toString().padStart(2, "0");
267
267
  return `${e}-${n}-${r}`;
268
268
  }
269
- function vt(t) {
269
+ function Ut(t) {
270
270
  return new Date(t);
271
271
  }
272
- function L(t, e) {
272
+ function J(t, e) {
273
273
  const n = [];
274
- let r = f(t);
275
- const o = f(e);
274
+ let r = g(t);
275
+ const o = g(e);
276
276
  for (; r <= o; )
277
- n.push(new Date(r)), r = c(r, 1);
277
+ n.push(new Date(r)), r = l(r, 1);
278
278
  return n;
279
279
  }
280
- function Ct(t, e) {
280
+ function Wt(t, e) {
281
281
  const n = [];
282
282
  let r = new Date(t);
283
283
  for (; r <= e; )
284
- n.push(new Date(r)), r = A(r, 1);
284
+ n.push(new Date(r)), r = z(r, 1);
285
285
  return n;
286
286
  }
287
- function Ot(t = "en-US", e = "short") {
287
+ function vt(t = "en-US", e = "short") {
288
288
  const n = new Intl.DateTimeFormat(t, { weekday: e }), r = [], o = new Date(2024, 0, 7);
289
289
  for (let a = 0; a < 7; a++)
290
- r.push(n.format(c(o, a)));
290
+ r.push(n.format(l(o, a)));
291
291
  return r;
292
292
  }
293
- function _t(t = "en-US", e = "long") {
293
+ function Yt(t = "en-US", e = "long") {
294
294
  const n = new Intl.DateTimeFormat(t, { month: e }), r = [];
295
295
  for (let o = 0; o < 12; o++)
296
296
  r.push(n.format(new Date(2024, o, 1)));
297
297
  return r;
298
298
  }
299
- function $t(t) {
299
+ function Lt(t) {
300
300
  const e = [];
301
301
  for (let n = t.startHour; n <= t.endHour; n++)
302
302
  e.push(n);
303
303
  return e;
304
304
  }
305
- function Rt(t, e = "24h") {
305
+ function Bt(t, e = "24h") {
306
306
  if (e === "12h") {
307
307
  const n = t >= 12 ? "PM" : "AM";
308
308
  return `${t % 12 || 12} ${n}`;
309
309
  }
310
310
  return `${String(t).padStart(2, "0")}:00`;
311
311
  }
312
- function Ut(t, e = 1) {
313
- const n = d(t, e), r = [];
312
+ function Nt(t, e = 1) {
313
+ const n = D(t, e), r = [];
314
314
  for (let o = 0; o < 7; o++)
315
- r.push(c(n, o));
315
+ r.push(l(n, o));
316
316
  return r;
317
317
  }
318
- function Wt(t, e = 1) {
319
- const n = p(t), r = w(t), o = d(n, e), a = T(r, e), s = t.getMonth();
320
- return L(o, a).map((l) => ({
321
- date: l,
322
- isCurrentMonth: l.getMonth() === s,
323
- isWeekend: l.getDay() === 0 || l.getDay() === 6
318
+ function Vt(t, e = 1) {
319
+ const n = E(t), r = S(t), o = D(n, e), a = w(r, e), s = t.getMonth();
320
+ return J(o, a).map((c) => ({
321
+ date: c,
322
+ isCurrentMonth: c.getMonth() === s,
323
+ isWeekend: c.getDay() === 0 || c.getDay() === 6
324
324
  }));
325
325
  }
326
- function Yt(t) {
326
+ function _(t) {
327
+ if (t.isAllDay) return !0;
328
+ const e = t.startDate.getHours(), n = t.startDate.getMinutes(), r = t.endDate.getHours(), o = t.endDate.getMinutes(), a = e === 0 && n === 0, s = r === 0 && o === 0 || // midnight next day
329
+ r === 23 && o >= 59;
330
+ return !!(a && s);
331
+ }
332
+ function Pt(t) {
327
333
  const e = [], n = [];
328
334
  for (const r of t)
329
- M(r.startDate, r.endDate) ? e.push(r) : n.push(r);
335
+ _(r) ? n.push(r) : p(r.startDate, r.endDate) ? e.push(r) : n.push(r);
330
336
  return { singleDay: e, multiDay: n };
331
337
  }
332
- function At(t, e, n) {
338
+ function Gt(t, e, n) {
333
339
  return t.filter((r) => r.startDate <= n && r.endDate >= e);
334
340
  }
335
- function Lt(t, e, n) {
341
+ function zt(t, e, n) {
336
342
  if (!n) return !0;
337
343
  const r = t.getDay(), o = n[r];
338
344
  return !o || !(o.enabled !== !1) || o.from === o.to ? !1 : e >= o.from && e < o.to;
339
345
  }
340
- function Bt(t, e) {
346
+ function Jt(t, e) {
341
347
  const n = t.getDay(), r = e[n];
342
348
  return !r || !(r.enabled !== !1) || r.from === r.to ? null : { from: r.from, to: r.to };
343
349
  }
344
- function Nt(t) {
350
+ function Kt(t) {
345
351
  const e = [];
346
352
  for (let n = 0; n < 12; n++)
347
353
  e.push(new Date(t, n, 1));
348
354
  return e;
349
355
  }
350
- function B(t, e, n) {
351
- const r = f(e), o = y(n);
356
+ function K(t, e, n) {
357
+ const r = g(e), o = T(n);
352
358
  return t.filter((a) => {
353
359
  const s = a.startDate, u = a.endDate;
354
360
  return s <= o && u >= r;
355
361
  });
356
362
  }
357
- function N(t, e) {
363
+ function X(t, e) {
358
364
  return e.length === 0 ? t : t.filter(
359
365
  (n) => n.scheduleTypeId !== void 0 && e.includes(n.scheduleTypeId)
360
366
  );
361
367
  }
362
- function V(t, e) {
368
+ function j(t, e) {
363
369
  return e.length === 0 ? t : t.filter(
364
370
  (n) => n.resourceId !== void 0 && e.includes(n.resourceId)
365
371
  );
366
372
  }
367
- function P(t, e) {
373
+ function q(t, e) {
368
374
  if (!e.trim()) return t;
369
375
  const n = e.toLowerCase();
370
376
  return t.filter((r) => {
@@ -372,38 +378,38 @@ function P(t, e) {
372
378
  return o || a;
373
379
  });
374
380
  }
375
- function G(t) {
381
+ function Q(t) {
376
382
  return t.filter((e) => !e.isCanceled);
377
383
  }
378
- function Vt(t, e) {
384
+ function Xt(t, e) {
379
385
  let n = [...t];
380
- return e.dateRange && (n = B(
386
+ return e.dateRange && (n = K(
381
387
  n,
382
388
  e.dateRange.startDate,
383
389
  e.dateRange.endDate
384
- )), e.scheduleTypeIds && e.scheduleTypeIds.length > 0 && (n = N(n, e.scheduleTypeIds)), e.resourceIds && e.resourceIds.length > 0 && (n = V(n, e.resourceIds)), e.search && (n = P(n, e.search)), e.showCanceled || (n = G(n)), n;
390
+ )), e.scheduleTypeIds && e.scheduleTypeIds.length > 0 && (n = X(n, e.scheduleTypeIds)), e.resourceIds && e.resourceIds.length > 0 && (n = j(n, e.resourceIds)), e.search && (n = q(n, e.search)), e.showCanceled || (n = Q(n)), n;
385
391
  }
386
- function Pt(t) {
392
+ function jt(t) {
387
393
  return [...t].sort((e, n) => e.startDate.getTime() - n.startDate.getTime());
388
394
  }
389
- function Gt(t) {
395
+ function qt(t) {
390
396
  return [...t].sort((e, n) => e.endDate.getTime() - n.endDate.getTime());
391
397
  }
392
- function zt(t) {
398
+ function Qt(t) {
393
399
  return [...t].sort((e, n) => {
394
400
  const r = e.endDate.getTime() - e.startDate.getTime();
395
401
  return n.endDate.getTime() - n.startDate.getTime() - r;
396
402
  });
397
403
  }
398
- function Jt(t) {
404
+ function Zt(t) {
399
405
  const e = /* @__PURE__ */ new Map();
400
406
  for (const n of t) {
401
- const r = f(n.startDate).toISOString(), o = e.get(r) ?? [];
407
+ const r = g(n.startDate).toISOString(), o = e.get(r) ?? [];
402
408
  o.push(n), e.set(r, o);
403
409
  }
404
410
  return e;
405
411
  }
406
- function Kt(t) {
412
+ function te(t) {
407
413
  const e = /* @__PURE__ */ new Map();
408
414
  for (const n of t) {
409
415
  const r = e.get(n.scheduleTypeId) ?? [];
@@ -411,7 +417,7 @@ function Kt(t) {
411
417
  }
412
418
  return e;
413
419
  }
414
- function Xt(t) {
420
+ function ee(t) {
415
421
  const e = /* @__PURE__ */ new Map();
416
422
  for (const n of t) {
417
423
  const r = e.get(n.resourceId) ?? [];
@@ -419,31 +425,31 @@ function Xt(t) {
419
425
  }
420
426
  return e;
421
427
  }
422
- function jt(t, e) {
428
+ function ne(t, e) {
423
429
  return t.filter((n) => {
424
- const r = f(e), o = y(e);
430
+ const r = g(e), o = T(e);
425
431
  return n.startDate <= o && n.endDate >= r;
426
432
  });
427
433
  }
428
- function qt(t) {
434
+ function re(t) {
429
435
  return t.filter((e) => e.isAllDay);
430
436
  }
431
- function Qt(t) {
437
+ function oe(t) {
432
438
  return t.filter((e) => !e.isAllDay);
433
439
  }
434
- function Zt(t) {
435
- return t.filter((e) => e.isMultiDay ? !0 : !M(e.startDate, e.endDate));
440
+ function ae(t) {
441
+ return t.filter((e) => e.isMultiDay ? !0 : !p(e.startDate, e.endDate));
436
442
  }
437
- function te(t) {
438
- return t.isMultiDay ? !0 : !M(t.startDate, t.endDate);
443
+ function se(t) {
444
+ return t.isMultiDay ? !0 : !p(t.startDate, t.endDate);
439
445
  }
440
- function ee(t) {
446
+ function ue(t) {
441
447
  return Math.floor((t.endDate.getTime() - t.startDate.getTime()) / 6e4);
442
448
  }
443
- function ne(t, e = "blue") {
449
+ function ie(t, e = "blue") {
444
450
  return t.color ?? e;
445
451
  }
446
- function re(t, e, n = "blue") {
452
+ function ce(t, e, n = "blue") {
447
453
  if (t.color) return t.color;
448
454
  if (t.scheduleTypeId !== void 0 && e) {
449
455
  const r = e.get(t.scheduleTypeId);
@@ -451,132 +457,160 @@ function re(t, e, n = "blue") {
451
457
  }
452
458
  return n;
453
459
  }
454
- function z(t, e, n = 1) {
460
+ function le(t) {
461
+ if (_(t)) {
462
+ if (p(t.startDate, t.endDate))
463
+ return "All day";
464
+ const n = t.startDate.toLocaleDateString(void 0, {
465
+ month: "short",
466
+ day: "numeric"
467
+ }), r = t.endDate.toLocaleDateString(void 0, {
468
+ month: "short",
469
+ day: "numeric"
470
+ });
471
+ return `All day · ${n} – ${r}`;
472
+ }
473
+ if (!p(t.startDate, t.endDate)) {
474
+ const n = t.startDate.toLocaleDateString(void 0, {
475
+ month: "short",
476
+ day: "numeric"
477
+ }), r = t.endDate.toLocaleDateString(void 0, {
478
+ month: "short",
479
+ day: "numeric"
480
+ });
481
+ return `${n}, ${H(t.startDate)} – ${r}, ${H(t.endDate)}`;
482
+ }
483
+ return `${H(t.startDate)} - ${H(t.endDate)}`;
484
+ }
485
+ function fe(t) {
486
+ return !_(t);
487
+ }
488
+ function Z(t, e, n = 1) {
455
489
  switch (e) {
456
490
  case "day":
457
491
  case "resource-day":
458
492
  case "timeline-day":
459
493
  return {
460
- startDate: f(t),
461
- endDate: y(t)
494
+ startDate: g(t),
495
+ endDate: T(t)
462
496
  };
463
497
  case "week":
464
498
  case "resource-week":
465
499
  case "timeline-week":
466
500
  return {
467
- startDate: d(t, n),
468
- endDate: T(t, n)
501
+ startDate: D(t, n),
502
+ endDate: w(t, n)
469
503
  };
470
504
  case "month": {
471
- const r = p(t), o = w(t);
505
+ const r = E(t), o = S(t);
472
506
  return {
473
- startDate: d(r, n),
474
- endDate: T(o, n)
507
+ startDate: D(r, n),
508
+ endDate: w(o, n)
475
509
  };
476
510
  }
477
511
  case "timeline-3day":
478
512
  return {
479
- startDate: f(t),
480
- endDate: y(c(t, 2))
513
+ startDate: g(t),
514
+ endDate: T(l(t, 2))
481
515
  };
482
516
  case "year":
483
517
  return {
484
- startDate: $(t),
485
- endDate: Y(t)
518
+ startDate: v(t),
519
+ endDate: G(t)
486
520
  };
487
521
  case "agenda":
488
522
  return {
489
- startDate: f(t),
490
- endDate: y(c(t, 29))
523
+ startDate: g(t),
524
+ endDate: T(l(t, 29))
491
525
  };
492
526
  default:
493
527
  return {
494
- startDate: f(t),
495
- endDate: y(t)
528
+ startDate: g(t),
529
+ endDate: T(t)
496
530
  };
497
531
  }
498
532
  }
499
- function oe(t, e) {
533
+ function de(t, e) {
500
534
  switch (e) {
501
535
  case "day":
502
536
  case "resource-day":
503
537
  case "timeline-day":
504
- return c(t, 1);
538
+ return l(t, 1);
505
539
  case "timeline-3day":
506
- return c(t, 3);
540
+ return l(t, 3);
507
541
  case "week":
508
542
  case "resource-week":
509
543
  case "timeline-week":
510
- return b(t, 1);
544
+ return k(t, 1);
511
545
  case "month":
512
- return H(t, 1);
513
- case "year":
514
546
  return x(t, 1);
547
+ case "year":
548
+ return C(t, 1);
515
549
  case "agenda":
516
- return b(t, 1);
550
+ return k(t, 1);
517
551
  default:
518
- return c(t, 1);
552
+ return l(t, 1);
519
553
  }
520
554
  }
521
- function ae(t, e) {
555
+ function ge(t, e) {
522
556
  switch (e) {
523
557
  case "day":
524
558
  case "resource-day":
525
559
  case "timeline-day":
526
- return c(t, -1);
560
+ return l(t, -1);
527
561
  case "timeline-3day":
528
- return c(t, -3);
562
+ return l(t, -3);
529
563
  case "week":
530
564
  case "resource-week":
531
565
  case "timeline-week":
532
- return b(t, -1);
566
+ return k(t, -1);
533
567
  case "month":
534
- return H(t, -1);
535
- case "year":
536
568
  return x(t, -1);
569
+ case "year":
570
+ return C(t, -1);
537
571
  case "agenda":
538
- return b(t, -1);
572
+ return k(t, -1);
539
573
  default:
540
- return c(t, -1);
574
+ return l(t, -1);
541
575
  }
542
576
  }
543
- function se() {
544
- return f(/* @__PURE__ */ new Date());
577
+ function De() {
578
+ return g(/* @__PURE__ */ new Date());
545
579
  }
546
- function ue(t, e = 1) {
547
- const n = p(t), r = w(t), o = d(n, e), a = T(r, e), s = [];
580
+ function me(t, e = 1) {
581
+ const n = E(t), r = S(t), o = D(n, e), a = w(r, e), s = [];
548
582
  let u = o;
549
583
  for (; u <= a; )
550
584
  s.push({
551
585
  date: new Date(u),
552
- isToday: O(u),
553
- isCurrentMonth: F(u, t),
554
- isWeekend: _(u),
586
+ isToday: U(u),
587
+ isCurrentMonth: $(u, t),
588
+ isWeekend: W(u),
555
589
  dayOfWeek: u.getDay()
556
- }), u = c(u, 1);
590
+ }), u = l(u, 1);
557
591
  return s;
558
592
  }
559
- function ie(t, e = 1) {
560
- const n = d(t, e), r = [];
593
+ function he(t, e = 1) {
594
+ const n = D(t, e), r = [];
561
595
  for (let o = 0; o < 7; o++) {
562
- const a = c(n, o);
596
+ const a = l(n, o);
563
597
  r.push({
564
598
  date: a,
565
- isToday: O(a),
566
- isCurrentMonth: F(a, t),
567
- isWeekend: _(a),
599
+ isToday: U(a),
600
+ isCurrentMonth: $(a, t),
601
+ isWeekend: W(a),
568
602
  dayOfWeek: a.getDay()
569
603
  });
570
604
  }
571
605
  return r;
572
606
  }
573
- function ce(t) {
574
- const e = $(t), n = [];
607
+ function ye(t) {
608
+ const e = v(t), n = [];
575
609
  for (let r = 0; r < 12; r++) {
576
- const o = H(e, r);
610
+ const o = x(e, r);
577
611
  n.push({
578
612
  date: o,
579
- isToday: F(o, /* @__PURE__ */ new Date()),
613
+ isToday: $(o, /* @__PURE__ */ new Date()),
580
614
  isCurrentMonth: !0,
581
615
  isWeekend: !1,
582
616
  dayOfWeek: o.getDay()
@@ -584,7 +618,7 @@ function ce(t) {
584
618
  }
585
619
  return n;
586
620
  }
587
- function le(t, e, n = 30) {
621
+ function pe(t, e, n = 30) {
588
622
  const r = [], o = 60 / n;
589
623
  for (let a = t; a < e; a++)
590
624
  for (let s = 0; s < o; s++) {
@@ -597,7 +631,7 @@ function le(t, e, n = 30) {
597
631
  }
598
632
  return r;
599
633
  }
600
- function fe(t, e, n = "24h") {
634
+ function Te(t, e, n = "24h") {
601
635
  const r = [];
602
636
  for (let o = t; o <= e; o++) {
603
637
  let a;
@@ -610,7 +644,7 @@ function fe(t, e, n = "24h") {
610
644
  }
611
645
  return r;
612
646
  }
613
- function ge(t, e, n = "en-US") {
647
+ function we(t, e, n = "en-US") {
614
648
  const r = new Intl.DateTimeFormat(n, {
615
649
  weekday: "short",
616
650
  month: "short",
@@ -622,34 +656,34 @@ function ge(t, e, n = "en-US") {
622
656
  case "timeline-day":
623
657
  return r.format(t);
624
658
  case "timeline-3day": {
625
- const a = f(t), s = c(t, 2);
659
+ const a = g(t), s = l(t, 2);
626
660
  return `${o.format(a)} - ${o.format(s)}`;
627
661
  }
628
662
  case "week":
629
663
  case "resource-week":
630
664
  case "timeline-week": {
631
- const a = d(t, 1), s = T(t, 1);
665
+ const a = D(t, 1), s = w(t, 1);
632
666
  return `${o.format(a)} - ${o.format(s)}`;
633
667
  }
634
668
  case "month": {
635
- const a = p(t), s = w(t);
669
+ const a = E(t), s = S(t);
636
670
  return `${o.format(a)} - ${o.format(s)}`;
637
671
  }
638
672
  case "year":
639
673
  return `Jan 1 - Dec 31, ${t.getFullYear()}`;
640
674
  case "agenda": {
641
- const a = p(t), s = w(t);
675
+ const a = E(t), s = S(t);
642
676
  return `${o.format(a)} - ${o.format(s)}`;
643
677
  }
644
678
  default:
645
679
  return "";
646
680
  }
647
681
  }
648
- function de(t, e, n, r = 1) {
649
- const o = z(e, n, r);
682
+ function Me(t, e, n, r = 1) {
683
+ const o = Z(e, n, r);
650
684
  return t.filter((a) => a.startDate <= o.endDate && a.endDate >= o.startDate).length;
651
685
  }
652
- function me(t, e, n = "en-US") {
686
+ function Ee(t, e, n = "en-US") {
653
687
  const r = new Intl.DateTimeFormat(n, { month: "long", year: "numeric" }), o = new Intl.DateTimeFormat(n, {
654
688
  weekday: "long",
655
689
  month: "long",
@@ -664,8 +698,8 @@ function me(t, e, n = "en-US") {
664
698
  case "week":
665
699
  case "resource-week":
666
700
  case "timeline-week": {
667
- const a = d(t, 1), s = T(t, 1), u = new Intl.DateTimeFormat(n, { month: "short" }).format(a), l = new Intl.DateTimeFormat(n, { month: "short" }).format(s), i = a.getFullYear();
668
- return u === l ? `${u} ${a.getDate()} - ${s.getDate()}, ${i}` : `${u} ${a.getDate()} - ${l} ${s.getDate()}, ${i}`;
701
+ const a = D(t, 1), s = w(t, 1), u = new Intl.DateTimeFormat(n, { month: "short" }).format(a), c = new Intl.DateTimeFormat(n, { month: "short" }).format(s), i = a.getFullYear();
702
+ return u === c ? `${u} ${a.getDate()} - ${s.getDate()}, ${i}` : `${u} ${a.getDate()} - ${c} ${s.getDate()}, ${i}`;
669
703
  }
670
704
  case "month":
671
705
  return r.format(t);
@@ -677,75 +711,83 @@ function me(t, e, n = "en-US") {
677
711
  return r.format(t);
678
712
  }
679
713
  }
680
- function De(t = 1, e = "short", n = "en-US") {
714
+ function Se(t = 1, e = "short", n = "en-US") {
681
715
  const r = new Intl.DateTimeFormat(n, { weekday: e }), o = [], a = new Date(2024, 0, 7);
682
716
  for (let s = 0; s < 7; s++) {
683
- const u = (t + s) % 7, l = c(a, u);
717
+ const u = (t + s) % 7, c = l(a, u);
684
718
  o.push({
685
719
  dayOfWeek: u,
686
- label: r.format(l)
720
+ label: r.format(c)
687
721
  });
688
722
  }
689
723
  return o;
690
724
  }
691
- function J(t, e, n, r = S) {
692
- const { startHour: o, endHour: a } = n, s = a - o, u = s * r, l = t.startDate.getHours() + t.startDate.getMinutes() / 60, i = t.endDate.getHours() + t.endDate.getMinutes() / 60, D = Math.max(l, o), h = Math.min(i, a), g = (D - o) / s * u, m = (h - o) / s * u, k = Math.max(m - g, W);
725
+ function tt(t, e, n, r = I) {
726
+ const { startHour: o, endHour: a } = n, s = a - o, u = s * r, c = t.startDate.getHours() + t.startDate.getMinutes() / 60, i = t.endDate.getHours() + t.endDate.getMinutes() / 60, d = Math.max(c, o), y = Math.min(i, a), m = (d - o) / s * u, h = (y - o) / s * u, f = Math.max(h - m, P);
693
727
  return {
694
- top: g,
695
- height: k,
728
+ top: m,
729
+ height: f,
696
730
  left: 0,
697
731
  width: 100,
698
732
  zIndex: 1
699
733
  };
700
734
  }
701
- function he(t, e, n, r = S) {
735
+ function be(t, e, n, r = I) {
702
736
  if (t.length === 0) return [];
703
- const o = [...t].sort((i, D) => {
704
- const h = i.startDate.getTime() - D.startDate.getTime();
705
- if (h !== 0) return h;
706
- const g = i.endDate.getTime() - i.startDate.getTime();
707
- return D.endDate.getTime() - D.startDate.getTime() - g;
708
- }), a = [], s = [];
709
- for (const i of o) {
710
- const D = i.startDate.getTime(), h = i.endDate.getTime();
711
- let g = -1;
712
- for (let E = 0; E < a.length; E++) {
713
- const I = a[E];
714
- if (!I) continue;
715
- const C = I[I.length - 1];
716
- if (C && C.endTime <= D) {
717
- g = E;
718
- break;
737
+ const o = [...t].sort((i, d) => {
738
+ const y = i.startDate.getTime() - d.startDate.getTime();
739
+ if (y !== 0) return y;
740
+ const m = i.endDate.getTime() - i.startDate.getTime();
741
+ return d.endDate.getTime() - d.startDate.getTime() - m;
742
+ }), a = [];
743
+ let s = [], u = 0;
744
+ for (const i of o)
745
+ s.length === 0 || i.startDate.getTime() < u ? (s.push(i), u = Math.max(u, i.endDate.getTime())) : (a.push(s), s = [i], u = i.endDate.getTime());
746
+ s.length > 0 && a.push(s);
747
+ const c = [];
748
+ for (const i of a) {
749
+ const d = [];
750
+ for (const f of i) {
751
+ const Y = f.startDate.getTime(), L = f.endDate.getTime();
752
+ let M = -1;
753
+ for (let b = 0; b < d.length; b++) {
754
+ const F = d[b];
755
+ if (!F) continue;
756
+ const R = F[F.length - 1];
757
+ if (R && R.endTime <= Y) {
758
+ M = b;
759
+ break;
760
+ }
719
761
  }
762
+ M === -1 && (M = d.length, d.push([]));
763
+ const A = d[M];
764
+ A && A.push({ event: f, endTime: L });
765
+ const B = tt(f, e, n, r);
766
+ c.push({
767
+ event: f,
768
+ position: B,
769
+ column: M,
770
+ columnSpan: 1
771
+ });
720
772
  }
721
- g === -1 && (g = a.length, a.push([]));
722
- const m = a[g];
723
- m && m.push({ event: i, endTime: h });
724
- const k = J(i, e, n, r);
725
- s.push({
726
- event: i,
727
- position: k,
728
- column: g,
729
- columnSpan: 1
730
- });
773
+ const m = 100 / d.length, h = new Set(i.map((f) => f.id));
774
+ for (const f of c)
775
+ h.has(f.event.id) && (f.position.left = f.column * m, f.position.width = m * f.columnSpan, f.position.zIndex = f.column + 1);
731
776
  }
732
- const l = 100 / a.length;
733
- for (const i of s)
734
- i.position.left = i.column * l, i.position.width = l * i.columnSpan, i.position.zIndex = i.column + 1;
735
- return s;
777
+ return c;
736
778
  }
737
- function ye(t, e, n, r = S, o = 30) {
738
- const { startHour: a, endHour: s } = n, u = s - a, l = u * r, i = t / l * u, h = (a + i) * 60, g = Math.round(h / o) * o, m = new Date(e);
739
- return m.setHours(0, 0, 0, 0), m.setMinutes(g), m;
779
+ function He(t, e, n, r = I, o = 30) {
780
+ const { startHour: a, endHour: s } = n, u = s - a, c = u * r, i = t / c * u, y = (a + i) * 60, m = Math.round(y / o) * o, h = new Date(e);
781
+ return h.setHours(0, 0, 0, 0), h.setMinutes(m), h;
740
782
  }
741
- function Te(t, e, n = S) {
783
+ function ke(t, e, n = I) {
742
784
  const { startHour: r, endHour: o } = e, a = o - r, s = a * n, u = t.getHours() + t.getMinutes() / 60;
743
785
  return (Math.max(r, Math.min(u, o)) - r) / a * s;
744
786
  }
745
- function pe(t, e) {
787
+ function Ie(t, e) {
746
788
  return t.startDate < e.endDate && t.endDate > e.startDate;
747
789
  }
748
- function we(t) {
790
+ function xe(t) {
749
791
  if (t.length === 0) return [];
750
792
  const e = [...t].sort((a, s) => a.startDate.getTime() - s.startDate.getTime()), n = [];
751
793
  let r = [], o = 0;
@@ -753,7 +795,7 @@ function we(t) {
753
795
  r.length === 0 || a.startDate.getTime() < o ? (r.push(a), o = Math.max(o, a.endDate.getTime())) : (r.length > 0 && n.push(r), r = [a], o = a.endDate.getTime());
754
796
  return r.length > 0 && n.push(r), n;
755
797
  }
756
- function Me(t, e, n) {
798
+ function Fe(t, e, n) {
757
799
  const r = Math.max(0, Math.min(t, e)), o = Math.min(n, Math.max(t, e));
758
800
  return {
759
801
  top: r,
@@ -761,117 +803,120 @@ function Me(t, e, n) {
761
803
  };
762
804
  }
763
805
  export {
764
- K as CALENDAR_VIEWS,
765
- q as DEFAULT_BUSINESS_HOURS,
766
- st as DEFAULT_HEADER_HEIGHT,
767
- S as DEFAULT_HOUR_HEIGHT,
768
- X as DEFAULT_PREFERENCES,
769
- ut as DEFAULT_RESOURCE_WIDTH,
770
- at as DEFAULT_SLOT_HEIGHT,
771
- Q as DEFAULT_VIEW_CONFIGS,
772
- j as DEFAULT_VISIBLE_HOURS,
773
- Z as EVENT_COLORS,
774
- tt as EVENT_COLOR_CLASSES,
775
- et as HEX_TO_EVENT_COLOR,
776
- nt as HOURS_IN_DAY,
777
- rt as MINUTES_IN_HOUR,
778
- W as MIN_EVENT_HEIGHT,
779
- ot as MS_PER_DAY,
780
- U as MS_PER_HOUR,
781
- R as MS_PER_MINUTE,
782
- c as addDays,
783
- A as addHours,
784
- yt as addMinutes,
785
- H as addMonths,
786
- b as addWeeks,
787
- x as addYears,
788
- Vt as applyEventFilters,
789
- J as calculateEventPosition,
790
- he as calculateOverlappingPositions,
791
- Me as calculateSelectionOverlay,
792
- It as differenceInDays,
793
- kt as differenceInHours,
794
- v as differenceInMilliseconds,
795
- Ht as differenceInMinutes,
796
- L as eachDayOfInterval,
797
- Ct as eachHourOfInterval,
798
- y as endOfDay,
799
- w as endOfMonth,
800
- T as endOfWeek,
801
- Y as endOfYear,
802
- pe as eventsOverlap,
803
- B as filterEventsByDateRange,
804
- V as filterEventsByResource,
805
- N as filterEventsByScheduleType,
806
- P as filterEventsBySearch,
807
- G as filterOutCanceled,
808
- xt as formatDateISO,
809
- Rt as formatHourLabel,
810
- Ft as formatTime,
811
- fe as generateHourLabels,
812
- ue as generateMonthCells,
813
- Wt as generateMonthGrid,
814
- le as generateTimeSlots,
815
- ie as generateWeekCells,
816
- ce as generateYearCells,
817
- qt as getAllDayEvents,
818
- ct as getDayOfWeek,
819
- mt as getDaysInMonth,
820
- pt as getDecimalHours,
821
- ne as getEventColor,
822
- ee as getEventDurationMinutes,
823
- de as getEventsCountInView,
824
- jt as getEventsForDay,
825
- At as getEventsInRange,
826
- _t as getMonthNames,
827
- Zt as getMultiDayEvents,
828
- we as getOverlappingGroups,
829
- ge as getRangeText,
830
- Qt as getTimedEvents,
831
- z as getViewDateRange,
832
- me as getViewTitle,
833
- $t as getVisibleHoursArray,
834
- Ut as getWeekDays,
835
- ft as getWeekNumber,
836
- De as getWeekdayHeaders,
837
- Ot as getWeekdayNames,
838
- Bt as getWorkingHoursForDay,
839
- Nt as getYearMonths,
840
- Jt as groupEventsByDate,
841
- Xt as groupEventsByResource,
842
- Kt as groupEventsByScheduleType,
843
- Mt as isAfter,
844
- wt as isBefore,
845
- Et as isBetween,
846
- te as isMultiDayEvent,
847
- M as isSameDay,
848
- F as isSameMonth,
849
- gt as isSameWeek,
850
- ht as isSameYear,
851
- O as isToday,
852
- _ as isWeekend,
853
- Lt as isWorkingHour,
854
- St as maxDate,
855
- bt as minDate,
856
- oe as navigateNext,
857
- ae as navigatePrev,
858
- se as navigateToday,
859
- vt as parseISO,
860
- re as resolveEventColor,
861
- Yt as separateEventsByDuration,
862
- Tt as setTime,
863
- zt as sortEventsByDuration,
864
- Gt as sortEventsByEnd,
865
- Pt as sortEventsByStart,
866
- f as startOfDay,
867
- p as startOfMonth,
868
- d as startOfWeek,
869
- $ as startOfYear,
870
- it as subDays,
871
- dt as subMonths,
872
- lt as subWeeks,
873
- Dt as subYears,
874
- Te as timeToY,
875
- ye as yToTime
806
+ et as CALENDAR_VIEWS,
807
+ ot as DEFAULT_BUSINESS_HOURS,
808
+ gt as DEFAULT_HEADER_HEIGHT,
809
+ I as DEFAULT_HOUR_HEIGHT,
810
+ nt as DEFAULT_PREFERENCES,
811
+ Dt as DEFAULT_RESOURCE_WIDTH,
812
+ dt as DEFAULT_SLOT_HEIGHT,
813
+ at as DEFAULT_VIEW_CONFIGS,
814
+ rt as DEFAULT_VISIBLE_HOURS,
815
+ st as EVENT_COLORS,
816
+ ut as EVENT_COLOR_CLASSES,
817
+ it as HEX_TO_EVENT_COLOR,
818
+ ct as HOURS_IN_DAY,
819
+ lt as MINUTES_IN_HOUR,
820
+ P as MIN_EVENT_HEIGHT,
821
+ ft as MS_PER_DAY,
822
+ V as MS_PER_HOUR,
823
+ N as MS_PER_MINUTE,
824
+ l as addDays,
825
+ z as addHours,
826
+ bt as addMinutes,
827
+ x as addMonths,
828
+ k as addWeeks,
829
+ C as addYears,
830
+ Xt as applyEventFilters,
831
+ tt as calculateEventPosition,
832
+ be as calculateOverlappingPositions,
833
+ Fe as calculateSelectionOverlay,
834
+ _ as detectAllDayEvent,
835
+ At as differenceInDays,
836
+ _t as differenceInHours,
837
+ O as differenceInMilliseconds,
838
+ Ot as differenceInMinutes,
839
+ J as eachDayOfInterval,
840
+ Wt as eachHourOfInterval,
841
+ T as endOfDay,
842
+ S as endOfMonth,
843
+ w as endOfWeek,
844
+ G as endOfYear,
845
+ Ie as eventsOverlap,
846
+ K as filterEventsByDateRange,
847
+ j as filterEventsByResource,
848
+ X as filterEventsByScheduleType,
849
+ q as filterEventsBySearch,
850
+ Q as filterOutCanceled,
851
+ Rt as formatDateISO,
852
+ le as formatEventTimeDisplay,
853
+ Bt as formatHourLabel,
854
+ H as formatTime,
855
+ Te as generateHourLabels,
856
+ me as generateMonthCells,
857
+ Vt as generateMonthGrid,
858
+ pe as generateTimeSlots,
859
+ he as generateWeekCells,
860
+ ye as generateYearCells,
861
+ re as getAllDayEvents,
862
+ ht as getDayOfWeek,
863
+ Mt as getDaysInMonth,
864
+ kt as getDecimalHours,
865
+ ie as getEventColor,
866
+ ue as getEventDurationMinutes,
867
+ Me as getEventsCountInView,
868
+ ne as getEventsForDay,
869
+ Gt as getEventsInRange,
870
+ Yt as getMonthNames,
871
+ ae as getMultiDayEvents,
872
+ xe as getOverlappingGroups,
873
+ we as getRangeText,
874
+ oe as getTimedEvents,
875
+ Z as getViewDateRange,
876
+ Ee as getViewTitle,
877
+ Lt as getVisibleHoursArray,
878
+ Nt as getWeekDays,
879
+ pt as getWeekNumber,
880
+ Se as getWeekdayHeaders,
881
+ vt as getWeekdayNames,
882
+ Jt as getWorkingHoursForDay,
883
+ Kt as getYearMonths,
884
+ Zt as groupEventsByDate,
885
+ ee as groupEventsByResource,
886
+ te as groupEventsByScheduleType,
887
+ xt as isAfter,
888
+ It as isBefore,
889
+ Ft as isBetween,
890
+ se as isMultiDayEvent,
891
+ p as isSameDay,
892
+ $ as isSameMonth,
893
+ Tt as isSameWeek,
894
+ St as isSameYear,
895
+ U as isToday,
896
+ W as isWeekend,
897
+ zt as isWorkingHour,
898
+ Ct as maxDate,
899
+ $t as minDate,
900
+ de as navigateNext,
901
+ ge as navigatePrev,
902
+ De as navigateToday,
903
+ Ut as parseISO,
904
+ ce as resolveEventColor,
905
+ Pt as separateEventsByDuration,
906
+ Ht as setTime,
907
+ fe as shouldShowEventTime,
908
+ Qt as sortEventsByDuration,
909
+ qt as sortEventsByEnd,
910
+ jt as sortEventsByStart,
911
+ g as startOfDay,
912
+ E as startOfMonth,
913
+ D as startOfWeek,
914
+ v as startOfYear,
915
+ mt as subDays,
916
+ wt as subMonths,
917
+ yt as subWeeks,
918
+ Et as subYears,
919
+ ke as timeToY,
920
+ He as yToTime
876
921
  };
877
922
  //# sourceMappingURL=utils.mjs.map