@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.
- package/AGENT.md +36 -1
- package/dist/agenda-widget-BsRtRyZ3.cjs +2 -0
- package/dist/agenda-widget-BsRtRyZ3.cjs.map +1 -0
- package/dist/{agenda-widget-CyRPG-1p.js → agenda-widget-CNUXKiQT.js} +723 -745
- package/dist/agenda-widget-CNUXKiQT.js.map +1 -0
- package/dist/components/event/event-card.d.ts +16 -1
- package/dist/components/event/event-card.d.ts.map +1 -1
- package/dist/components/event/event-page-transition.d.ts +32 -0
- package/dist/components/event/event-page-transition.d.ts.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +27 -26
- package/dist/components/inno-calendar.d.ts.map +1 -1
- package/dist/components/primitives/multi-day-banner.d.ts.map +1 -1
- package/dist/components/views/day-events-expansion.d.ts +51 -0
- package/dist/components/views/day-events-expansion.d.ts.map +1 -0
- package/dist/components/views/index.d.ts +1 -0
- package/dist/components/views/index.d.ts.map +1 -1
- package/dist/components/views/month-view.d.ts +14 -3
- package/dist/components/views/month-view.d.ts.map +1 -1
- package/dist/components/views/timeline-view.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +139 -136
- package/dist/core/utils/date-utils.d.ts +31 -1
- package/dist/core/utils/date-utils.d.ts.map +1 -1
- package/dist/core/utils/event-utils.d.ts +40 -0
- package/dist/core/utils/event-utils.d.ts.map +1 -1
- package/dist/core/utils/position-utils.d.ts +5 -1
- package/dist/core/utils/position-utils.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +190 -186
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{tailwind-calendar-BaJAw6io.cjs → tailwind-calendar-BqhSHRk0.cjs} +2 -2
- package/dist/{tailwind-calendar-BaJAw6io.cjs.map → tailwind-calendar-BqhSHRk0.cjs.map} +1 -1
- package/dist/{tailwind-calendar-D-8ALvNh.js → tailwind-calendar-BvWm9ry9.js} +16 -16
- package/dist/{tailwind-calendar-D-8ALvNh.js.map → tailwind-calendar-BvWm9ry9.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.mjs +380 -335
- package/dist/utils.mjs.map +1 -1
- package/dist/week-view-BGthazCB.js +3015 -0
- package/dist/week-view-BGthazCB.js.map +1 -0
- package/dist/week-view-DOvr2VIq.cjs +11 -0
- package/dist/week-view-DOvr2VIq.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/agenda-widget-CuQxfYVI.cjs +0 -2
- package/dist/agenda-widget-CuQxfYVI.cjs.map +0 -1
- package/dist/agenda-widget-CyRPG-1p.js.map +0 -1
- package/dist/week-view-5nw-Hvod.js +0 -2754
- package/dist/week-view-5nw-Hvod.js.map +0 -1
- package/dist/week-view-C0iWG7_6.cjs +0 -11
- package/dist/week-view-C0iWG7_6.cjs.map +0 -1
package/dist/utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
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
|
-
],
|
|
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
|
-
},
|
|
21
|
+
}, rt = {
|
|
22
22
|
startHour: 0,
|
|
23
23
|
endHour: 24
|
|
24
|
-
},
|
|
24
|
+
}, ot = {
|
|
25
25
|
startHour: 8,
|
|
26
26
|
endHour: 18
|
|
27
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
122
|
-
function
|
|
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
|
|
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
|
|
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
|
|
135
|
-
return
|
|
134
|
+
function mt(t, e) {
|
|
135
|
+
return l(t, -e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function p(t, e) {
|
|
138
138
|
return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function U(t) {
|
|
141
|
+
return p(t, /* @__PURE__ */ new Date());
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function ht(t) {
|
|
144
144
|
return t.getDay();
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function W(t) {
|
|
147
147
|
const e = t.getDay();
|
|
148
148
|
return e === 0 || e === 6;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
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
|
|
155
|
-
const n =
|
|
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
|
|
159
|
-
return
|
|
158
|
+
function k(t, e) {
|
|
159
|
+
return l(t, e * 7);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
161
|
+
function yt(t, e) {
|
|
162
|
+
return l(t, -e * 7);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
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
|
|
171
|
-
const r =
|
|
172
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
187
|
-
return
|
|
186
|
+
function wt(t, e) {
|
|
187
|
+
return x(t, -e);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Mt(t) {
|
|
190
190
|
return new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function $(t, e) {
|
|
193
193
|
return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function v(t) {
|
|
196
196
|
return new Date(t.getFullYear(), 0, 1, 0, 0, 0, 0);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function G(t) {
|
|
199
199
|
return new Date(t.getFullYear(), 11, 31, 23, 59, 59, 999);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
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
|
|
206
|
-
return
|
|
205
|
+
function Et(t, e) {
|
|
206
|
+
return C(t, -e);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function St(t, e) {
|
|
209
209
|
return t.getFullYear() === e.getFullYear();
|
|
210
210
|
}
|
|
211
|
-
function
|
|
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
|
|
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
|
|
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
|
|
223
|
+
function kt(t) {
|
|
224
224
|
return t.getHours() + t.getMinutes() / 60;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function It(t, e) {
|
|
227
227
|
return t.getTime() < e.getTime();
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function xt(t, e) {
|
|
230
230
|
return t.getTime() > e.getTime();
|
|
231
231
|
}
|
|
232
|
-
function
|
|
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
|
|
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
|
|
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
|
|
244
|
+
function O(t, e) {
|
|
245
245
|
return t.getTime() - e.getTime();
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return Math.floor(
|
|
247
|
+
function Ot(t, e) {
|
|
248
|
+
return Math.floor(O(t, e) / 6e4);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return Math.floor(
|
|
250
|
+
function _t(t, e) {
|
|
251
|
+
return Math.floor(O(t, e) / 36e5);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
const n =
|
|
255
|
-
return Math.floor(
|
|
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
|
|
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
|
|
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
|
|
269
|
+
function Ut(t) {
|
|
270
270
|
return new Date(t);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function J(t, e) {
|
|
273
273
|
const n = [];
|
|
274
|
-
let r =
|
|
275
|
-
const o =
|
|
274
|
+
let r = g(t);
|
|
275
|
+
const o = g(e);
|
|
276
276
|
for (; r <= o; )
|
|
277
|
-
n.push(new Date(r)), r =
|
|
277
|
+
n.push(new Date(r)), r = l(r, 1);
|
|
278
278
|
return n;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
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 =
|
|
284
|
+
n.push(new Date(r)), r = z(r, 1);
|
|
285
285
|
return n;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
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(
|
|
290
|
+
r.push(n.format(l(o, a)));
|
|
291
291
|
return r;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
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
|
|
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
|
|
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
|
|
313
|
-
const n =
|
|
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(
|
|
315
|
+
r.push(l(n, o));
|
|
316
316
|
return r;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const n =
|
|
320
|
-
return
|
|
321
|
-
date:
|
|
322
|
-
isCurrentMonth:
|
|
323
|
-
isWeekend:
|
|
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
|
|
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
|
-
|
|
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
|
|
338
|
+
function Gt(t, e, n) {
|
|
333
339
|
return t.filter((r) => r.startDate <= n && r.endDate >= e);
|
|
334
340
|
}
|
|
335
|
-
function
|
|
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
|
|
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
|
|
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
|
|
351
|
-
const r =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
381
|
+
function Q(t) {
|
|
376
382
|
return t.filter((e) => !e.isCanceled);
|
|
377
383
|
}
|
|
378
|
-
function
|
|
384
|
+
function Xt(t, e) {
|
|
379
385
|
let n = [...t];
|
|
380
|
-
return e.dateRange && (n =
|
|
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 =
|
|
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
|
|
392
|
+
function jt(t) {
|
|
387
393
|
return [...t].sort((e, n) => e.startDate.getTime() - n.startDate.getTime());
|
|
388
394
|
}
|
|
389
|
-
function
|
|
395
|
+
function qt(t) {
|
|
390
396
|
return [...t].sort((e, n) => e.endDate.getTime() - n.endDate.getTime());
|
|
391
397
|
}
|
|
392
|
-
function
|
|
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
|
|
404
|
+
function Zt(t) {
|
|
399
405
|
const e = /* @__PURE__ */ new Map();
|
|
400
406
|
for (const n of t) {
|
|
401
|
-
const 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
|
|
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
|
|
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
|
|
428
|
+
function ne(t, e) {
|
|
423
429
|
return t.filter((n) => {
|
|
424
|
-
const r =
|
|
430
|
+
const r = g(e), o = T(e);
|
|
425
431
|
return n.startDate <= o && n.endDate >= r;
|
|
426
432
|
});
|
|
427
433
|
}
|
|
428
|
-
function
|
|
434
|
+
function re(t) {
|
|
429
435
|
return t.filter((e) => e.isAllDay);
|
|
430
436
|
}
|
|
431
|
-
function
|
|
437
|
+
function oe(t) {
|
|
432
438
|
return t.filter((e) => !e.isAllDay);
|
|
433
439
|
}
|
|
434
|
-
function
|
|
435
|
-
return t.filter((e) => e.isMultiDay ? !0 : !
|
|
440
|
+
function ae(t) {
|
|
441
|
+
return t.filter((e) => e.isMultiDay ? !0 : !p(e.startDate, e.endDate));
|
|
436
442
|
}
|
|
437
|
-
function
|
|
438
|
-
return t.isMultiDay ? !0 : !
|
|
443
|
+
function se(t) {
|
|
444
|
+
return t.isMultiDay ? !0 : !p(t.startDate, t.endDate);
|
|
439
445
|
}
|
|
440
|
-
function
|
|
446
|
+
function ue(t) {
|
|
441
447
|
return Math.floor((t.endDate.getTime() - t.startDate.getTime()) / 6e4);
|
|
442
448
|
}
|
|
443
|
-
function
|
|
449
|
+
function ie(t, e = "blue") {
|
|
444
450
|
return t.color ?? e;
|
|
445
451
|
}
|
|
446
|
-
function
|
|
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
|
|
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:
|
|
461
|
-
endDate:
|
|
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:
|
|
468
|
-
endDate:
|
|
501
|
+
startDate: D(t, n),
|
|
502
|
+
endDate: w(t, n)
|
|
469
503
|
};
|
|
470
504
|
case "month": {
|
|
471
|
-
const r =
|
|
505
|
+
const r = E(t), o = S(t);
|
|
472
506
|
return {
|
|
473
|
-
startDate:
|
|
474
|
-
endDate:
|
|
507
|
+
startDate: D(r, n),
|
|
508
|
+
endDate: w(o, n)
|
|
475
509
|
};
|
|
476
510
|
}
|
|
477
511
|
case "timeline-3day":
|
|
478
512
|
return {
|
|
479
|
-
startDate:
|
|
480
|
-
endDate:
|
|
513
|
+
startDate: g(t),
|
|
514
|
+
endDate: T(l(t, 2))
|
|
481
515
|
};
|
|
482
516
|
case "year":
|
|
483
517
|
return {
|
|
484
|
-
startDate:
|
|
485
|
-
endDate:
|
|
518
|
+
startDate: v(t),
|
|
519
|
+
endDate: G(t)
|
|
486
520
|
};
|
|
487
521
|
case "agenda":
|
|
488
522
|
return {
|
|
489
|
-
startDate:
|
|
490
|
-
endDate:
|
|
523
|
+
startDate: g(t),
|
|
524
|
+
endDate: T(l(t, 29))
|
|
491
525
|
};
|
|
492
526
|
default:
|
|
493
527
|
return {
|
|
494
|
-
startDate:
|
|
495
|
-
endDate:
|
|
528
|
+
startDate: g(t),
|
|
529
|
+
endDate: T(t)
|
|
496
530
|
};
|
|
497
531
|
}
|
|
498
532
|
}
|
|
499
|
-
function
|
|
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
|
|
538
|
+
return l(t, 1);
|
|
505
539
|
case "timeline-3day":
|
|
506
|
-
return
|
|
540
|
+
return l(t, 3);
|
|
507
541
|
case "week":
|
|
508
542
|
case "resource-week":
|
|
509
543
|
case "timeline-week":
|
|
510
|
-
return
|
|
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
|
|
550
|
+
return k(t, 1);
|
|
517
551
|
default:
|
|
518
|
-
return
|
|
552
|
+
return l(t, 1);
|
|
519
553
|
}
|
|
520
554
|
}
|
|
521
|
-
function
|
|
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
|
|
560
|
+
return l(t, -1);
|
|
527
561
|
case "timeline-3day":
|
|
528
|
-
return
|
|
562
|
+
return l(t, -3);
|
|
529
563
|
case "week":
|
|
530
564
|
case "resource-week":
|
|
531
565
|
case "timeline-week":
|
|
532
|
-
return
|
|
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
|
|
572
|
+
return k(t, -1);
|
|
539
573
|
default:
|
|
540
|
-
return
|
|
574
|
+
return l(t, -1);
|
|
541
575
|
}
|
|
542
576
|
}
|
|
543
|
-
function
|
|
544
|
-
return
|
|
577
|
+
function De() {
|
|
578
|
+
return g(/* @__PURE__ */ new Date());
|
|
545
579
|
}
|
|
546
|
-
function
|
|
547
|
-
const n =
|
|
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:
|
|
553
|
-
isCurrentMonth:
|
|
554
|
-
isWeekend:
|
|
586
|
+
isToday: U(u),
|
|
587
|
+
isCurrentMonth: $(u, t),
|
|
588
|
+
isWeekend: W(u),
|
|
555
589
|
dayOfWeek: u.getDay()
|
|
556
|
-
}), u =
|
|
590
|
+
}), u = l(u, 1);
|
|
557
591
|
return s;
|
|
558
592
|
}
|
|
559
|
-
function
|
|
560
|
-
const n =
|
|
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 =
|
|
596
|
+
const a = l(n, o);
|
|
563
597
|
r.push({
|
|
564
598
|
date: a,
|
|
565
|
-
isToday:
|
|
566
|
-
isCurrentMonth:
|
|
567
|
-
isWeekend:
|
|
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
|
|
574
|
-
const e =
|
|
607
|
+
function ye(t) {
|
|
608
|
+
const e = v(t), n = [];
|
|
575
609
|
for (let r = 0; r < 12; r++) {
|
|
576
|
-
const o =
|
|
610
|
+
const o = x(e, r);
|
|
577
611
|
n.push({
|
|
578
612
|
date: o,
|
|
579
|
-
isToday:
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
649
|
-
const o =
|
|
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
|
|
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 =
|
|
668
|
-
return u ===
|
|
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
|
|
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,
|
|
717
|
+
const u = (t + s) % 7, c = l(a, u);
|
|
684
718
|
o.push({
|
|
685
719
|
dayOfWeek: u,
|
|
686
|
-
label: r.format(
|
|
720
|
+
label: r.format(c)
|
|
687
721
|
});
|
|
688
722
|
}
|
|
689
723
|
return o;
|
|
690
724
|
}
|
|
691
|
-
function
|
|
692
|
-
const { startHour: o, endHour: a } = n, s = a - o, u = s * r,
|
|
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:
|
|
695
|
-
height:
|
|
728
|
+
top: m,
|
|
729
|
+
height: f,
|
|
696
730
|
left: 0,
|
|
697
731
|
width: 100,
|
|
698
732
|
zIndex: 1
|
|
699
733
|
};
|
|
700
734
|
}
|
|
701
|
-
function
|
|
735
|
+
function be(t, e, n, r = I) {
|
|
702
736
|
if (t.length === 0) return [];
|
|
703
|
-
const o = [...t].sort((i,
|
|
704
|
-
const
|
|
705
|
-
if (
|
|
706
|
-
const
|
|
707
|
-
return
|
|
708
|
-
}), a = []
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
722
|
-
const
|
|
723
|
-
|
|
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
|
-
|
|
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
|
|
738
|
-
const { startHour: a, endHour: s } = n, u = s - a,
|
|
739
|
-
return
|
|
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
|
|
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
|
|
787
|
+
function Ie(t, e) {
|
|
746
788
|
return t.startDate < e.endDate && t.endDate > e.startDate;
|
|
747
789
|
}
|
|
748
|
-
function
|
|
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
|
|
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
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
Rt as
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
Jt as
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
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
|