@leonardaustin/ui 0.26.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/tables/Pagination.d.ts +1 -1
- package/dist/components/tables/Pagination.js +7 -8
- package/dist/components/ui/CalendarGrid.js +10 -10
- package/dist/components/ui/DatePicker.d.ts +1 -1
- package/dist/components/ui/DatePicker.js +5 -10
- package/dist/components/ui/DateRangePicker.d.ts +3 -1
- package/dist/components/ui/DateRangePicker.js +56 -62
- package/dist/components/ui/DateTimePicker.js +20 -20
- package/dist/components/ui/MetadataGrid.d.ts +2 -2
- package/dist/components/ui/MetadataGrid.js +11 -11
- package/dist/components/ui/PaginationBar.d.ts +1 -1
- package/dist/components/ui/PaginationBar.js +4 -5
- package/dist/components/ui/Select.js +1 -1
- package/dist/core.css +15 -0
- package/dist/lib/calendar.d.ts +2 -0
- package/dist/lib/calendar.js +234 -229
- package/dist/styles.css +16 -0
- package/package.json +1 -1
package/dist/lib/calendar.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { clamp as e } from "./math.js";
|
|
2
|
+
import { MONTHS_SHORT as t } from "./months.js";
|
|
2
3
|
//#region src/lib/calendar.ts
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (!
|
|
4
|
+
var n = /* @__PURE__ */ new Map();
|
|
5
|
+
function r(e, t) {
|
|
6
|
+
if (!t) return {
|
|
6
7
|
year: e.getFullYear(),
|
|
7
8
|
month: e.getMonth() + 1,
|
|
8
9
|
day: e.getDate(),
|
|
@@ -11,9 +12,9 @@ function n(e, n) {
|
|
|
11
12
|
second: e.getSeconds(),
|
|
12
13
|
millisecond: e.getMilliseconds()
|
|
13
14
|
};
|
|
14
|
-
let r =
|
|
15
|
+
let r = n.get(t);
|
|
15
16
|
r || (r = new Intl.DateTimeFormat("en-GB-u-ca-iso8601-nu-latn", {
|
|
16
|
-
timeZone:
|
|
17
|
+
timeZone: t,
|
|
17
18
|
year: "numeric",
|
|
18
19
|
month: "2-digit",
|
|
19
20
|
day: "2-digit",
|
|
@@ -21,7 +22,7 @@ function n(e, n) {
|
|
|
21
22
|
minute: "2-digit",
|
|
22
23
|
second: "2-digit",
|
|
23
24
|
hourCycle: "h23"
|
|
24
|
-
}),
|
|
25
|
+
}), n.set(t, r));
|
|
25
26
|
let i = {};
|
|
26
27
|
for (let t of r.formatToParts(e)) t.type !== "literal" && (i[t.type] = Number(t.value));
|
|
27
28
|
return {
|
|
@@ -34,12 +35,12 @@ function n(e, n) {
|
|
|
34
35
|
millisecond: e.getUTCMilliseconds()
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function i(e) {
|
|
38
39
|
let t = /* @__PURE__ */ new Date(0);
|
|
39
40
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond), t.getTime();
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
let a =
|
|
42
|
+
function a(e, t, n = "compatible") {
|
|
43
|
+
let a = i(e), o = new Date(a);
|
|
43
44
|
if (!Object.values(e).every(Number.isInteger) || o.getUTCFullYear() !== e.year || o.getUTCMonth() + 1 !== e.month || o.getUTCDate() !== e.day || o.getUTCHours() !== e.hour || o.getUTCMinutes() !== e.minute || o.getUTCSeconds() !== e.second || o.getUTCMilliseconds() !== e.millisecond) throw RangeError("Invalid civil date and time");
|
|
44
45
|
if (!t) {
|
|
45
46
|
let t = /* @__PURE__ */ new Date(0);
|
|
@@ -53,152 +54,156 @@ function i(e, t, i = "compatible") {
|
|
|
53
54
|
24,
|
|
54
55
|
48
|
|
55
56
|
]) {
|
|
56
|
-
let
|
|
57
|
-
s.add(r(
|
|
57
|
+
let n = a + e * 36e5;
|
|
58
|
+
s.add(i(r(new Date(n), t)) - n);
|
|
58
59
|
}
|
|
59
|
-
let c = [...s].map((e) => a - e).sort((e, t) => e - t), l = c.filter((e) => r(
|
|
60
|
+
let c = [...s].map((e) => a - e).sort((e, t) => e - t), l = c.filter((e) => i(r(new Date(e), t)) === a);
|
|
60
61
|
if (l.length === 1) return new Date(l[0]);
|
|
61
|
-
if (
|
|
62
|
-
return l.length ? new Date(
|
|
62
|
+
if (n === "reject") throw RangeError(l.length ? "This time occurs twice in the selected timezone" : "This time does not exist in the selected timezone");
|
|
63
|
+
return l.length ? new Date(n === "later" ? l[l.length - 1] : l[0]) : new Date(n === "earlier" ? c[0] : c[c.length - 1]);
|
|
63
64
|
}
|
|
64
|
-
var
|
|
65
|
+
var o = 1440, s = 6e4, c = [
|
|
65
66
|
1,
|
|
66
67
|
2,
|
|
67
68
|
3,
|
|
68
69
|
4,
|
|
69
70
|
5
|
|
70
71
|
];
|
|
71
|
-
function
|
|
72
|
+
function l(e) {
|
|
72
73
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function u(e, t) {
|
|
75
76
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t, e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function d(e, t) {
|
|
78
79
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes() + t, e.getSeconds(), e.getMilliseconds());
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function f(e, t) {
|
|
81
82
|
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
|
|
82
83
|
return new Date(n.getFullYear(), n.getMonth(), Math.min(e.getDate(), r), e.getHours(), e.getMinutes());
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
let n =
|
|
86
|
-
return
|
|
85
|
+
function p(e, t = 1) {
|
|
86
|
+
let n = l(e);
|
|
87
|
+
return u(n, -((n.getDay() - t + 7) % 7));
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function m(e) {
|
|
89
90
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function h(e, t) {
|
|
92
93
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function g(e, t) {
|
|
95
96
|
let n = Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()), r = Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
|
|
96
97
|
return Math.round((n - r) / 864e5);
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
-
return e.getHours() * 60 + e.getMinutes() + e.getSeconds() / 60 + e.getMilliseconds() /
|
|
99
|
+
function _(e) {
|
|
100
|
+
return e.getHours() * 60 + e.getMinutes() + e.getSeconds() / 60 + e.getMilliseconds() / s;
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
-
let n =
|
|
103
|
-
if (!
|
|
102
|
+
function v(e, t) {
|
|
103
|
+
let n = y(e, t);
|
|
104
|
+
if (!h(n, e) || _(n) <= t) return n;
|
|
104
105
|
let r = Math.floor(t);
|
|
105
|
-
for (; r > 0 &&
|
|
106
|
-
return /* @__PURE__ */ new Date(n.getTime() - (t - r) *
|
|
106
|
+
for (; r > 0 && _(y(e, r - 1)) !== r - 1;) r--;
|
|
107
|
+
return /* @__PURE__ */ new Date(n.getTime() - (t - r) * s);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function y(e, t) {
|
|
109
110
|
let n = Math.floor(t);
|
|
110
111
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate(), 0, n, Math.round((t - n) * 60));
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function b(e) {
|
|
113
114
|
let t = /^(\d{1,2}):(\d{2})$/.exec(e.trim());
|
|
114
115
|
if (!t) throw RangeError(`Invalid time "${e}", expected HH:mm`);
|
|
115
116
|
let n = Number(t[1]), r = Number(t[2]);
|
|
116
117
|
if (r > 59 || n > 24 || n === 24 && r > 0) throw RangeError(`Invalid time "${e}"`);
|
|
117
118
|
return n * 60 + r;
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function x(e) {
|
|
120
121
|
let t = Math.round(e), n = Math.floor(t / 60), r = t % 60;
|
|
121
122
|
return `${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}`;
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function S(e) {
|
|
124
125
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
+
function C(e) {
|
|
127
128
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
128
129
|
if (!t) throw RangeError(`Invalid date key "${e}"`);
|
|
129
130
|
let n = new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
|
|
130
|
-
if (
|
|
131
|
+
if (S(n) !== e) throw RangeError(`Invalid date key "${e}"`);
|
|
131
132
|
return n;
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function w(e, t, n = "round") {
|
|
134
135
|
if (t <= 0) return e;
|
|
135
136
|
let r = n === "floor" ? Math.floor : n === "ceil" ? Math.ceil : Math.round, i = e / t;
|
|
136
137
|
return r(n === "floor" ? i + 1e-9 : n === "ceil" ? i - 1e-9 : i) * t;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
139
|
+
function T(e, t, n = "round") {
|
|
140
|
+
return y(l(e), w(_(e), t, n));
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function E(e) {
|
|
142
143
|
return e === "day" || e === "threeDay" || e === "workWeek" || e === "week";
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
let r = n.weekStartsOn ?? 1, i =
|
|
145
|
+
function D(e, t, n = {}) {
|
|
146
|
+
let r = n.weekStartsOn ?? 1, i = l(t);
|
|
146
147
|
switch (e) {
|
|
147
148
|
case "day":
|
|
148
149
|
case "timeline": return [i];
|
|
149
150
|
case "threeDay": return [
|
|
150
151
|
i,
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
u(i, 1),
|
|
153
|
+
u(i, 2)
|
|
153
154
|
];
|
|
154
155
|
case "week": {
|
|
155
|
-
let e =
|
|
156
|
-
return Array.from({ length: 7 }, (t, n) =>
|
|
156
|
+
let e = p(i, r);
|
|
157
|
+
return Array.from({ length: 7 }, (t, n) => u(e, n));
|
|
157
158
|
}
|
|
158
159
|
case "workWeek": {
|
|
159
|
-
let e = new Set(n.workWeekDays ??
|
|
160
|
+
let e = new Set(n.workWeekDays ?? c), t = p(i, r), a = Array.from({ length: 7 }, (e, n) => u(t, n)).filter((t) => e.has(t.getDay()));
|
|
160
161
|
return a.length ? a : [i];
|
|
161
162
|
}
|
|
162
163
|
case "agenda": {
|
|
163
164
|
let e = Math.max(1, Math.floor(n.agendaDays ?? 7));
|
|
164
|
-
return Array.from({ length: e }, (e, t) =>
|
|
165
|
+
return Array.from({ length: e }, (e, t) => u(i, t));
|
|
165
166
|
}
|
|
166
|
-
case "month": return
|
|
167
|
+
case "month": return O(t, r).flat();
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
-
let n =
|
|
170
|
+
function O(e, t = 1) {
|
|
171
|
+
let n = m(e), r = new Date(n.getFullYear(), n.getMonth() + 1, 0), i = p(n, t), a = [], o = i;
|
|
171
172
|
for (; o <= r || a.length === 0;) {
|
|
172
|
-
let e = Array.from({ length: 7 }, (e, t) =>
|
|
173
|
-
a.push(e), o =
|
|
173
|
+
let e = Array.from({ length: 7 }, (e, t) => u(o, t));
|
|
174
|
+
a.push(e), o = u(o, 7);
|
|
174
175
|
}
|
|
175
176
|
return a;
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
-
let r =
|
|
178
|
+
function k(e, t, n = {}) {
|
|
179
|
+
let r = D(e, t, n);
|
|
179
180
|
return {
|
|
180
181
|
start: r[0],
|
|
181
|
-
end:
|
|
182
|
+
end: u(r[r.length - 1], 1)
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function A(e, t, n, r = {}) {
|
|
185
186
|
switch (e) {
|
|
186
187
|
case "day":
|
|
187
|
-
case "timeline": return
|
|
188
|
-
case "threeDay": return
|
|
188
|
+
case "timeline": return u(t, n);
|
|
189
|
+
case "threeDay": return u(t, 3 * n);
|
|
189
190
|
case "week":
|
|
190
|
-
case "workWeek": return
|
|
191
|
-
case "agenda": return
|
|
192
|
-
case "month": return
|
|
191
|
+
case "workWeek": return u(t, 7 * n);
|
|
192
|
+
case "agenda": return u(t, Math.max(1, r.agendaDays ?? 7) * n);
|
|
193
|
+
case "month": return f(t, n);
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return r || (r = new Intl.DateTimeFormat(e, t), A.set(n, r)), r;
|
|
196
|
+
function j(e, n) {
|
|
197
|
+
let { year: i, month: a, day: o } = r(e, n);
|
|
198
|
+
return `${o} ${t[a - 1]} ${i}`;
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
var M = /* @__PURE__ */ new Map();
|
|
201
|
+
function N(e, t) {
|
|
202
|
+
let n = `${e}|${JSON.stringify(t)}`, r = M.get(n);
|
|
203
|
+
return r || (r = new Intl.DateTimeFormat(e, t), M.set(n, r)), r;
|
|
204
|
+
}
|
|
205
|
+
function P(e, t = {}) {
|
|
206
|
+
return N(t.locale ?? "en-GB", {
|
|
202
207
|
timeZone: t.timeZone,
|
|
203
208
|
timeZoneName: t.timeZone ? "short" : void 0,
|
|
204
209
|
hour: t.hour12 ? "numeric" : "2-digit",
|
|
@@ -206,71 +211,71 @@ function M(e, t = {}) {
|
|
|
206
211
|
hourCycle: t.hour12 ? "h12" : "h23"
|
|
207
212
|
}).format(e);
|
|
208
213
|
}
|
|
209
|
-
function
|
|
210
|
-
return `${
|
|
214
|
+
function F(e, t, n = {}) {
|
|
215
|
+
return `${P(e, n)}–${P(t, n)}`;
|
|
211
216
|
}
|
|
212
|
-
function
|
|
213
|
-
if (!t.hour12) return
|
|
214
|
-
let n =
|
|
215
|
-
return
|
|
217
|
+
function I(e, t = {}) {
|
|
218
|
+
if (!t.hour12) return x(e);
|
|
219
|
+
let n = y(new Date(2e3, 0, 1), e);
|
|
220
|
+
return N(t.locale ?? "en-GB", {
|
|
216
221
|
hour: "numeric",
|
|
217
222
|
minute: e % 60 ? "2-digit" : void 0,
|
|
218
223
|
hour12: !0
|
|
219
224
|
}).format(n);
|
|
220
225
|
}
|
|
221
|
-
function
|
|
222
|
-
return
|
|
226
|
+
function L(e, t = "en-GB") {
|
|
227
|
+
return N(t, {
|
|
223
228
|
weekday: "long",
|
|
224
229
|
day: "numeric",
|
|
225
230
|
month: "long",
|
|
226
231
|
year: "numeric"
|
|
227
232
|
}).format(e);
|
|
228
233
|
}
|
|
229
|
-
function
|
|
234
|
+
function R(e, t, n = {}) {
|
|
230
235
|
let r = n.locale ?? "en-GB";
|
|
231
|
-
if (e === "month") return
|
|
236
|
+
if (e === "month") return N(r, {
|
|
232
237
|
month: "long",
|
|
233
238
|
year: "numeric"
|
|
234
239
|
}).format(t);
|
|
235
|
-
let i =
|
|
236
|
-
if (i.length === 1) return
|
|
237
|
-
let s = a.getFullYear() === o.getFullYear(), c = s && a.getMonth() === o.getMonth(), l =
|
|
240
|
+
let i = D(e, t, n), a = i[0], o = i[i.length - 1];
|
|
241
|
+
if (i.length === 1) return L(a, r);
|
|
242
|
+
let s = a.getFullYear() === o.getFullYear(), c = s && a.getMonth() === o.getMonth(), l = N(r, {
|
|
238
243
|
day: "numeric",
|
|
239
244
|
month: "long",
|
|
240
245
|
year: "numeric"
|
|
241
246
|
});
|
|
242
247
|
if (c) return `${a.getDate()} – ${l.format(o)}`;
|
|
243
|
-
let u =
|
|
248
|
+
let u = N(r, s ? {
|
|
244
249
|
day: "numeric",
|
|
245
250
|
month: "short"
|
|
246
251
|
} : {
|
|
247
252
|
day: "numeric",
|
|
248
253
|
month: "short",
|
|
249
254
|
year: "numeric"
|
|
250
|
-
}), d =
|
|
255
|
+
}), d = N(r, {
|
|
251
256
|
day: "numeric",
|
|
252
257
|
month: "short",
|
|
253
258
|
year: "numeric"
|
|
254
259
|
});
|
|
255
260
|
return `${u.format(a)} – ${d.format(o)}`;
|
|
256
261
|
}
|
|
257
|
-
function
|
|
262
|
+
function z(e, t, n, r) {
|
|
258
263
|
return e < r && n < t;
|
|
259
264
|
}
|
|
260
|
-
function
|
|
261
|
-
let r =
|
|
262
|
-
if (s ===
|
|
263
|
-
if (
|
|
264
|
-
} else if (!
|
|
265
|
-
let
|
|
265
|
+
function B(e, t, n) {
|
|
266
|
+
let r = l(n), i = u(r, 1), a = e.getTime(), s = Math.max(t.getTime(), a);
|
|
267
|
+
if (s === a) {
|
|
268
|
+
if (a < r.getTime() || a >= i.getTime()) return null;
|
|
269
|
+
} else if (!z(a, s, r.getTime(), i.getTime())) return null;
|
|
270
|
+
let c = a < r.getTime(), d = s > i.getTime();
|
|
266
271
|
return {
|
|
267
|
-
startMinute:
|
|
268
|
-
endMinute: s >= i.getTime() ?
|
|
269
|
-
continuesBefore:
|
|
272
|
+
startMinute: c ? 0 : _(e),
|
|
273
|
+
endMinute: s >= i.getTime() ? o : Math.max(_(t), c ? 0 : _(e)),
|
|
274
|
+
continuesBefore: c,
|
|
270
275
|
continuesAfter: d
|
|
271
276
|
};
|
|
272
277
|
}
|
|
273
|
-
function
|
|
278
|
+
function V(e) {
|
|
274
279
|
let t = e.filter(([e, t]) => t > e).map(([e, t]) => [e, t]).sort((e, t) => e[0] - t[0]), n = [];
|
|
275
280
|
for (let [e, r] of t) {
|
|
276
281
|
let t = n[n.length - 1];
|
|
@@ -278,12 +283,12 @@ function z(e) {
|
|
|
278
283
|
}
|
|
279
284
|
return n;
|
|
280
285
|
}
|
|
281
|
-
function
|
|
286
|
+
function H(e, t, n) {
|
|
282
287
|
let r = [], i = e;
|
|
283
|
-
for (let [e, a] of
|
|
288
|
+
for (let [e, a] of V(n)) if (!(a <= i) && (e >= t || (e > i && r.push([i, Math.min(e, t)]), i = Math.max(i, a), i >= t))) break;
|
|
284
289
|
return i < t && r.push([i, t]), r;
|
|
285
290
|
}
|
|
286
|
-
function
|
|
291
|
+
function U(e, t = 0) {
|
|
287
292
|
let n = e.map((e) => ({
|
|
288
293
|
id: e.id,
|
|
289
294
|
start: e.start,
|
|
@@ -292,7 +297,7 @@ function V(e, t = 0) {
|
|
|
292
297
|
let e = a.length;
|
|
293
298
|
for (let t of i) {
|
|
294
299
|
let n = 1;
|
|
295
|
-
for (let r = t.column + 1; r < e && !i.some((e) => e.column === r &&
|
|
300
|
+
for (let r = t.column + 1; r < e && !i.some((e) => e.column === r && z(t.start, t.end, e.start, e.end)); r++) n++;
|
|
296
301
|
r.set(t.id, {
|
|
297
302
|
column: t.column,
|
|
298
303
|
columns: e,
|
|
@@ -311,7 +316,7 @@ function V(e, t = 0) {
|
|
|
311
316
|
}
|
|
312
317
|
return s(), r;
|
|
313
318
|
}
|
|
314
|
-
function
|
|
319
|
+
function W(e) {
|
|
315
320
|
let t = [...e].sort((e, t) => e.start - t.start || t.end - e.end || (e.id < t.id ? -1 : 1)), n = [], r = /* @__PURE__ */ new Map();
|
|
316
321
|
for (let e of t) {
|
|
317
322
|
let t = Math.max(e.end, e.start + 1e-6), i = n.findIndex((t) => t <= e.start);
|
|
@@ -322,39 +327,39 @@ function H(e) {
|
|
|
322
327
|
count: n.length
|
|
323
328
|
};
|
|
324
329
|
}
|
|
325
|
-
function
|
|
330
|
+
function G(e) {
|
|
326
331
|
return e === void 0 ? [] : typeof e == "string" ? [e] : e;
|
|
327
332
|
}
|
|
328
|
-
function
|
|
333
|
+
function K(e, t, { emptyMatchesAll: n }) {
|
|
329
334
|
if (t === void 0) return !0;
|
|
330
|
-
let r =
|
|
335
|
+
let r = G(e);
|
|
331
336
|
return r.length === 0 ? n : r.includes(t);
|
|
332
337
|
}
|
|
333
|
-
function
|
|
334
|
-
let r =
|
|
338
|
+
function q(e, t, n) {
|
|
339
|
+
let r = G(e);
|
|
335
340
|
if (t === void 0 || n === void 0 || t === n) return r.length ? [...r] : void 0;
|
|
336
341
|
if (r.length === 0) return;
|
|
337
342
|
let i = r.map((e) => e === t ? n : e);
|
|
338
343
|
return [...new Set(i)];
|
|
339
344
|
}
|
|
340
|
-
function
|
|
345
|
+
function J(e, t, n = []) {
|
|
341
346
|
let r = /* @__PURE__ */ new Set(), i = e.start.getTime(), a = e.end.getTime();
|
|
342
|
-
for (let e of [...t, ...n]) if (
|
|
347
|
+
for (let e of [...t, ...n]) if (z(e.start.getTime(), e.end.getTime(), i, a) && !("kind" in e && e.kind === "unavailable")) for (let t of G(e.resourceId)) r.add(t);
|
|
343
348
|
return r;
|
|
344
349
|
}
|
|
345
|
-
function
|
|
346
|
-
let { fromDateKey: r, wallDateAtMinutes: i, toDateKey:
|
|
350
|
+
function Y(e, t, n = {}) {
|
|
351
|
+
let { fromDateKey: r, wallDateAtMinutes: i, toDateKey: a, startOfWeek: s, startOfDay: c, addDays: l, differenceInDays: u, weekday: d } = $(n.timeZone), f = n.weekStartsOn ?? 1, p = [], m = t.start.getTime(), h = t.end.getTime();
|
|
347
352
|
for (let n of e) {
|
|
348
|
-
let e =
|
|
349
|
-
g <= e && (g +=
|
|
353
|
+
let e = b(n.startTime), g = b(n.endTime);
|
|
354
|
+
g <= e && (g += o);
|
|
350
355
|
let _ = r(n.startDate), v = (t) => {
|
|
351
|
-
let r = i(t, e),
|
|
352
|
-
if (
|
|
353
|
-
let s =
|
|
356
|
+
let r = i(t, e), o = i(t, g);
|
|
357
|
+
if (o <= r || !z(r.getTime(), o.getTime(), m, h)) return;
|
|
358
|
+
let s = a(t);
|
|
354
359
|
p.push({
|
|
355
360
|
id: n.recurrence ? `${n.id}@${s}` : n.id,
|
|
356
361
|
start: r,
|
|
357
|
-
end:
|
|
362
|
+
end: o,
|
|
358
363
|
kind: n.kind ?? "available",
|
|
359
364
|
resourceId: n.resourceId,
|
|
360
365
|
label: n.label,
|
|
@@ -364,117 +369,117 @@ function q(e, t, n = {}) {
|
|
|
364
369
|
occurrenceKey: n.recurrence ? s : void 0,
|
|
365
370
|
data: n.data
|
|
366
371
|
});
|
|
367
|
-
},
|
|
368
|
-
if (!
|
|
372
|
+
}, y = n.recurrence;
|
|
373
|
+
if (!y) {
|
|
369
374
|
v(_);
|
|
370
375
|
continue;
|
|
371
376
|
}
|
|
372
|
-
let x = Math.max(1, Math.floor(
|
|
377
|
+
let x = Math.max(1, Math.floor(y.interval ?? 1)), S = new Set(y.weekdays);
|
|
373
378
|
if (S.size === 0) continue;
|
|
374
|
-
let C = new Set(
|
|
379
|
+
let C = new Set(y.exclusions ?? []), w = y.until ? r(y.until) : null, T = s(_, f), E = c(t.start);
|
|
375
380
|
E = l(E, -1), E < _ && (E = _);
|
|
376
381
|
let D = c(t.end);
|
|
377
|
-
for (; E <= D && (!w || E <= w);) S.has(d(E)) && Math.floor(u(s(E, f), T) / 7) % x === 0 && !C.has(
|
|
382
|
+
for (; E <= D && (!w || E <= w);) S.has(d(E)) && Math.floor(u(s(E, f), T) / 7) % x === 0 && !C.has(a(E)) && v(E), E = l(E, 1);
|
|
378
383
|
}
|
|
379
384
|
return p.sort((e, t) => e.start.getTime() - t.start.getTime());
|
|
380
385
|
}
|
|
381
|
-
function
|
|
382
|
-
let
|
|
383
|
-
return f <= d && (f = new Date(d.getTime() + i *
|
|
386
|
+
function X(t, n, r, i, a) {
|
|
387
|
+
let o = w(n, i, "floor"), c = w(r, i, "floor"), l = e(Math.min(o, c), a.min, a.max - i), u = e(Math.max(o, c) + i, l + i, a.max), d = v(t, l), f = v(t, u);
|
|
388
|
+
return f <= d && (f = new Date(d.getTime() + i * s)), {
|
|
384
389
|
start: d,
|
|
385
390
|
end: f
|
|
386
391
|
};
|
|
387
392
|
}
|
|
388
|
-
function
|
|
389
|
-
let c = (t.end.getTime() - t.start.getTime()) /
|
|
390
|
-
u >=
|
|
391
|
-
let d =
|
|
393
|
+
function Z(t, n, r, i, a, o) {
|
|
394
|
+
let c = (t.end.getTime() - t.start.getTime()) / s, l = w(r - i, a), u = _(t.start);
|
|
395
|
+
u >= o.min && u + c <= o.max && (l = e(l, o.min, o.max - c));
|
|
396
|
+
let d = y(n, l);
|
|
392
397
|
return {
|
|
393
398
|
start: d,
|
|
394
|
-
end: new Date(d.getTime() + c *
|
|
399
|
+
end: new Date(d.getTime() + c * s)
|
|
395
400
|
};
|
|
396
401
|
}
|
|
397
|
-
function
|
|
398
|
-
let s =
|
|
399
|
-
return
|
|
402
|
+
function Q(t, n, r, i, a) {
|
|
403
|
+
let s = l(n), c = t.start.getTime() >= s.getTime() ? _(t.start) + i : i;
|
|
404
|
+
return v(s, e(w(r, i), Math.min(c, o), Math.max(a.max, c)));
|
|
400
405
|
}
|
|
401
|
-
function
|
|
406
|
+
function ee(e, t) {
|
|
402
407
|
return {
|
|
403
|
-
start:
|
|
404
|
-
end:
|
|
408
|
+
start: u(e.start, t),
|
|
409
|
+
end: u(e.end, t)
|
|
405
410
|
};
|
|
406
411
|
}
|
|
407
|
-
function
|
|
412
|
+
function te(e, t) {
|
|
408
413
|
return e.start.getTime() === t.start.getTime() && e.end.getTime() === t.end.getTime();
|
|
409
414
|
}
|
|
410
|
-
function
|
|
411
|
-
return e.allDay ? !0 : e.end.getTime() >=
|
|
415
|
+
function ne(e) {
|
|
416
|
+
return e.allDay ? !0 : e.end.getTime() >= u(e.start, 1).getTime();
|
|
412
417
|
}
|
|
413
418
|
function $(t) {
|
|
414
|
-
let
|
|
415
|
-
let t =
|
|
419
|
+
let n = (e) => r(e, t), i = (e) => a(e, t), l = (e) => {
|
|
420
|
+
let t = n(e);
|
|
416
421
|
return `${String(t.year).padStart(4, "0")}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
|
|
417
|
-
},
|
|
418
|
-
...
|
|
422
|
+
}, u = (e) => i({
|
|
423
|
+
...n(e),
|
|
419
424
|
hour: 0,
|
|
420
425
|
minute: 0,
|
|
421
426
|
second: 0,
|
|
422
427
|
millisecond: 0
|
|
423
428
|
}), f = (e, t) => {
|
|
424
429
|
if (t === 0) return new Date(e);
|
|
425
|
-
let
|
|
426
|
-
return
|
|
427
|
-
...
|
|
428
|
-
year:
|
|
429
|
-
month:
|
|
430
|
-
day:
|
|
430
|
+
let r = n(e), a = new Date(Date.UTC(r.year, r.month - 1, r.day + t));
|
|
431
|
+
return i({
|
|
432
|
+
...r,
|
|
433
|
+
year: a.getUTCFullYear(),
|
|
434
|
+
month: a.getUTCMonth() + 1,
|
|
435
|
+
day: a.getUTCDate()
|
|
431
436
|
});
|
|
432
437
|
}, p = (e, t) => {
|
|
433
|
-
let
|
|
434
|
-
return
|
|
435
|
-
...
|
|
436
|
-
year:
|
|
437
|
-
month:
|
|
438
|
-
day: Math.min(
|
|
438
|
+
let r = n(e), a = new Date(Date.UTC(r.year, r.month - 1 + t, 1)), o = new Date(Date.UTC(a.getUTCFullYear(), a.getUTCMonth() + 1, 0)).getUTCDate();
|
|
439
|
+
return i({
|
|
440
|
+
...r,
|
|
441
|
+
year: a.getUTCFullYear(),
|
|
442
|
+
month: a.getUTCMonth() + 1,
|
|
443
|
+
day: Math.min(r.day, o)
|
|
439
444
|
});
|
|
440
445
|
}, m = (e) => {
|
|
441
|
-
let t =
|
|
446
|
+
let t = n(e);
|
|
442
447
|
return new Date(Date.UTC(t.year, t.month - 1, t.day)).getUTCDay();
|
|
443
|
-
}, h = (e, t = 1) => f(
|
|
444
|
-
...
|
|
448
|
+
}, h = (e, t = 1) => f(u(e), -((m(e) - t + 7) % 7)), g = (e) => i({
|
|
449
|
+
...n(u(e)),
|
|
445
450
|
day: 1
|
|
446
|
-
}),
|
|
447
|
-
let
|
|
448
|
-
return Math.round((Date.UTC(
|
|
451
|
+
}), v = (e, t) => {
|
|
452
|
+
let r = n(e), i = n(t);
|
|
453
|
+
return Math.round((Date.UTC(r.year, r.month - 1, r.day) - Date.UTC(i.year, i.month - 1, i.day)) / 864e5);
|
|
449
454
|
}, b = (e, t) => {
|
|
450
|
-
let
|
|
451
|
-
return
|
|
452
|
-
year:
|
|
453
|
-
month:
|
|
454
|
-
day:
|
|
455
|
-
hour:
|
|
456
|
-
minute:
|
|
457
|
-
second:
|
|
458
|
-
millisecond:
|
|
455
|
+
let r = n(e), a = new Date(Date.UTC(r.year, r.month - 1, r.day, 0, Math.floor(t), 0, Math.round((t - Math.floor(t)) * s)));
|
|
456
|
+
return i({
|
|
457
|
+
year: a.getUTCFullYear(),
|
|
458
|
+
month: a.getUTCMonth() + 1,
|
|
459
|
+
day: a.getUTCDate(),
|
|
460
|
+
hour: a.getUTCHours(),
|
|
461
|
+
minute: a.getUTCMinutes(),
|
|
462
|
+
second: a.getUTCSeconds(),
|
|
463
|
+
millisecond: a.getUTCMilliseconds()
|
|
459
464
|
});
|
|
460
465
|
}, x = (e, t) => {
|
|
461
|
-
let
|
|
462
|
-
return
|
|
466
|
+
let r = n(e);
|
|
467
|
+
return v(e, t) * o + r.hour * 60 + r.minute + r.second / 60 + r.millisecond / s;
|
|
463
468
|
}, S = (e, n) => {
|
|
464
469
|
let r = b(e, n), i = x(r, e);
|
|
465
470
|
if (!t || i <= n + 1e-8) return r;
|
|
466
|
-
let a = Math.floor(r.getTime() - (i - n) *
|
|
467
|
-
for (; a <
|
|
468
|
-
let t = Math.floor((a +
|
|
469
|
-
x(new Date(t), e) < n ? a = t + 1 :
|
|
471
|
+
let a = Math.floor(r.getTime() - (i - n) * s), o = r.getTime();
|
|
472
|
+
for (; a < o;) {
|
|
473
|
+
let t = Math.floor((a + o) / 2);
|
|
474
|
+
x(new Date(t), e) < n ? a = t + 1 : o = t;
|
|
470
475
|
}
|
|
471
|
-
return new Date(
|
|
472
|
-
},
|
|
476
|
+
return new Date(o);
|
|
477
|
+
}, C = (e) => {
|
|
473
478
|
if (!Number.isFinite(e.min) || !Number.isFinite(e.max) || e.max <= e.min) throw RangeError("Calendar time bounds must contain a positive interval of real instants");
|
|
474
|
-
}, T = t ? (e, t) => new Date(
|
|
479
|
+
}, T = t ? (e, t) => new Date(u(e).getTime() + t * s) : y, E = t ? (e) => (e.getTime() - u(e).getTime()) / s : _, D = t ? (e, t) => new Date(e.getTime() + t * s) : d, O = (e) => {
|
|
475
480
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
476
481
|
if (!t) throw RangeError(`Invalid date key "${e}"`);
|
|
477
|
-
let n =
|
|
482
|
+
let n = i({
|
|
478
483
|
year: +t[1],
|
|
479
484
|
month: +t[2],
|
|
480
485
|
day: +t[3],
|
|
@@ -486,30 +491,30 @@ function $(t) {
|
|
|
486
491
|
if (l(n) !== e) throw RangeError(`Invalid date key "${e}"`);
|
|
487
492
|
return n;
|
|
488
493
|
}, k = (e, t = 1) => {
|
|
489
|
-
let n =
|
|
494
|
+
let n = g(e), r = p(n, 1), i = [];
|
|
490
495
|
for (let e = h(n, t); e < r; e = f(e, 7)) i.push(Array.from({ length: 7 }, (t, n) => f(e, n)));
|
|
491
496
|
return i;
|
|
492
497
|
}, A = (e, t, n = {}) => {
|
|
493
|
-
let r =
|
|
498
|
+
let r = u(t);
|
|
494
499
|
if (e === "month") return k(r, n.weekStartsOn).flat();
|
|
495
500
|
if (e === "week" || e === "workWeek") {
|
|
496
501
|
let t = h(r, n.weekStartsOn), i = Array.from({ length: 7 }, (e, n) => f(t, n));
|
|
497
502
|
if (e === "week") return i;
|
|
498
|
-
let a = new Set(n.workWeekDays ??
|
|
503
|
+
let a = new Set(n.workWeekDays ?? c), o = i.filter((e) => a.has(m(e)));
|
|
499
504
|
return o.length ? o : [r];
|
|
500
505
|
}
|
|
501
506
|
let i = e === "threeDay" ? 3 : e === "agenda" ? Math.max(1, Math.floor(n.agendaDays ?? 7)) : 1;
|
|
502
507
|
return Array.from({ length: i }, (e, t) => f(r, t));
|
|
503
|
-
},
|
|
504
|
-
if (!t) return
|
|
505
|
-
let i =
|
|
506
|
-
return (c ===
|
|
507
|
-
startMinute: Math.max(0, (
|
|
508
|
-
endMinute: Math.min(a - i, c - i) /
|
|
509
|
-
continuesBefore:
|
|
508
|
+
}, j = (e, n, r) => {
|
|
509
|
+
if (!t) return B(e, n, r);
|
|
510
|
+
let i = u(r).getTime(), a = f(u(r), 1).getTime(), o = e.getTime(), c = Math.max(o, n.getTime());
|
|
511
|
+
return (c === o ? o < i || o >= a : !z(o, c, i, a)) ? null : {
|
|
512
|
+
startMinute: Math.max(0, (o - i) / s),
|
|
513
|
+
endMinute: Math.min(a - i, c - i) / s,
|
|
514
|
+
continuesBefore: o < i,
|
|
510
515
|
continuesAfter: c > a
|
|
511
516
|
};
|
|
512
|
-
},
|
|
517
|
+
}, M = (e) => !!e.allDay || e.end >= f(e.start, 1), P = (e, n) => N(e, {
|
|
513
518
|
...n,
|
|
514
519
|
...t ? { timeZone: t } : {}
|
|
515
520
|
}), F = (e, t = "en-GB") => P(t, {
|
|
@@ -517,16 +522,16 @@ function $(t) {
|
|
|
517
522
|
day: "numeric",
|
|
518
523
|
month: "long",
|
|
519
524
|
year: "numeric"
|
|
520
|
-
}).format(e),
|
|
521
|
-
if (!t) return
|
|
525
|
+
}).format(e), I = (e, r, i = {}) => {
|
|
526
|
+
if (!t) return R(e, r, i);
|
|
522
527
|
let a = i.locale ?? "en-GB";
|
|
523
528
|
if (e === "month") return P(a, {
|
|
524
529
|
month: "long",
|
|
525
530
|
year: "numeric"
|
|
526
|
-
}).format(
|
|
527
|
-
let o = A(e,
|
|
531
|
+
}).format(r);
|
|
532
|
+
let o = A(e, r, i), s = o[0], c = o[o.length - 1];
|
|
528
533
|
if (o.length === 1) return F(s, a);
|
|
529
|
-
let l =
|
|
534
|
+
let l = n(s), u = n(c);
|
|
530
535
|
return l.year === u.year && l.month === u.month ? `${l.day} – ${P(a, {
|
|
531
536
|
day: "numeric",
|
|
532
537
|
month: "long",
|
|
@@ -540,14 +545,14 @@ function $(t) {
|
|
|
540
545
|
month: "short",
|
|
541
546
|
year: "numeric"
|
|
542
547
|
}).format(c)}`;
|
|
543
|
-
},
|
|
544
|
-
if (!t) return
|
|
545
|
-
|
|
546
|
-
let d = (
|
|
547
|
-
let t = T(i, e),
|
|
548
|
-
return
|
|
549
|
-
}, m = b(
|
|
550
|
-
|
|
548
|
+
}, L = (r, i, a, c, l, u) => {
|
|
549
|
+
if (!t) return Z(r, i, a, c, l, u);
|
|
550
|
+
C(u);
|
|
551
|
+
let d = (r.end.getTime() - r.start.getTime()) / s, f = w(a - c, l), p = (e) => {
|
|
552
|
+
let t = T(i, e), r = n(t);
|
|
553
|
+
return v(t, i) * o + r.hour * 60 + r.minute;
|
|
554
|
+
}, m = b(r.start, p(u.min)), h = b(r.start, p(u.max));
|
|
555
|
+
r.start >= m && r.end <= h && d <= u.max - u.min && (f = e(f, u.min, u.max - d));
|
|
551
556
|
let g = T(i, f);
|
|
552
557
|
return {
|
|
553
558
|
start: g,
|
|
@@ -555,17 +560,17 @@ function $(t) {
|
|
|
555
560
|
};
|
|
556
561
|
};
|
|
557
562
|
return {
|
|
558
|
-
parts:
|
|
563
|
+
parts: n,
|
|
559
564
|
weekday: m,
|
|
560
|
-
startOfDay:
|
|
565
|
+
startOfDay: u,
|
|
561
566
|
addDays: f,
|
|
562
567
|
addMonths: p,
|
|
563
568
|
addMinutes: D,
|
|
564
569
|
startOfWeek: h,
|
|
565
|
-
startOfMonth:
|
|
570
|
+
startOfMonth: g,
|
|
566
571
|
toDateKey: l,
|
|
567
572
|
fromDateKey: O,
|
|
568
|
-
differenceInDays:
|
|
573
|
+
differenceInDays: v,
|
|
569
574
|
isSameDay: (e, t) => l(e) === l(t),
|
|
570
575
|
dateAtMinutes: T,
|
|
571
576
|
wallDateAtMinutes: b,
|
|
@@ -582,30 +587,30 @@ function $(t) {
|
|
|
582
587
|
shiftDate: (e, t, n, r = {}) => e === "month" ? p(t, n) : f(t, n * (e === "threeDay" ? 3 : e === "week" || e === "workWeek" ? 7 : e === "agenda" ? Math.max(1, r.agendaDays ?? 7) : 1)),
|
|
583
588
|
getFormatter: P,
|
|
584
589
|
formatLongDate: F,
|
|
585
|
-
formatRangeTitle:
|
|
586
|
-
daySegment:
|
|
587
|
-
isAllDayLike:
|
|
588
|
-
eventsOnDay: (e, t) => e.filter((e) =>
|
|
590
|
+
formatRangeTitle: I,
|
|
591
|
+
daySegment: j,
|
|
592
|
+
isAllDayLike: M,
|
|
593
|
+
eventsOnDay: (e, t) => e.filter((e) => j(e.start, e.end, t)).sort((e, t) => Number(M(t)) - Number(M(e)) || e.start.getTime() - t.start.getTime() || t.end.getTime() - e.end.getTime() || e.title.localeCompare(t.title)),
|
|
589
594
|
computeCreateRange: (n, r, i, a, o) => {
|
|
590
|
-
if (!t) return
|
|
591
|
-
let s =
|
|
592
|
-
|
|
595
|
+
if (!t) return X(n, r, i, a, o);
|
|
596
|
+
let s = w(r, a, "floor"), c = w(i, a, "floor");
|
|
597
|
+
C(o);
|
|
593
598
|
let l = Math.min(a, o.max - o.min), u = e(Math.min(s, c), o.min, o.max - l);
|
|
594
599
|
return {
|
|
595
600
|
start: T(n, u),
|
|
596
601
|
end: T(n, e(Math.max(s, c) + a, u + l, o.max))
|
|
597
602
|
};
|
|
598
603
|
},
|
|
599
|
-
computeMoveRange:
|
|
600
|
-
computeResizeEnd: (n, r, i, a,
|
|
601
|
-
if (!t) return
|
|
602
|
-
|
|
603
|
-
let c = Math.max(0, (n.start.getTime() -
|
|
604
|
-
return T(r, e(
|
|
604
|
+
computeMoveRange: L,
|
|
605
|
+
computeResizeEnd: (n, r, i, a, o) => {
|
|
606
|
+
if (!t) return Q(n, r, i, a, o);
|
|
607
|
+
C(o);
|
|
608
|
+
let c = Math.max(0, (n.start.getTime() - u(r).getTime()) / s) + a;
|
|
609
|
+
return T(r, e(w(i, a), c, Math.max(o.max, c)));
|
|
605
610
|
},
|
|
606
|
-
computeNudgeRange: (e, t, n) =>
|
|
611
|
+
computeNudgeRange: (e, t, n) => L(e, u(e.start), E(e.start) + t, 0, 1, n),
|
|
607
612
|
shiftRangeDays: (e, n) => {
|
|
608
|
-
if (!t) return
|
|
613
|
+
if (!t) return ee(e, n);
|
|
609
614
|
if (e.allDay) return {
|
|
610
615
|
start: f(e.start, n),
|
|
611
616
|
end: f(e.end, n)
|
|
@@ -618,15 +623,15 @@ function $(t) {
|
|
|
618
623
|
},
|
|
619
624
|
dayBounds: (e, n) => {
|
|
620
625
|
if (!t) return n;
|
|
621
|
-
let r =
|
|
622
|
-
min: (S(e, n.min).getTime() - r) /
|
|
623
|
-
max: (S(e, n.max).getTime() - r) /
|
|
626
|
+
let r = u(e).getTime(), i = {
|
|
627
|
+
min: (S(e, n.min).getTime() - r) / s,
|
|
628
|
+
max: (S(e, n.max).getTime() - r) / s
|
|
624
629
|
};
|
|
625
|
-
return
|
|
630
|
+
return C(i), i;
|
|
626
631
|
}
|
|
627
632
|
};
|
|
628
633
|
}
|
|
629
|
-
function
|
|
634
|
+
function re(e, t, n, r, i = !0) {
|
|
630
635
|
let a = Math.max(5, t), o = (e) => Array.from({ length: Math.ceil((e.max - e.min) / a) }, (t, n) => e.min + n * a);
|
|
631
636
|
if (!i) return {
|
|
632
637
|
reference: void 0,
|
|
@@ -640,7 +645,7 @@ function te(e, t, n, r, i = !0) {
|
|
|
640
645
|
let s = $(n.timeZone), c = /* @__PURE__ */ new Map(), l = e.map(({ day: e, bounds: t }) => {
|
|
641
646
|
let i = s.toDateKey(e), a = c.get(i);
|
|
642
647
|
if (a) return a;
|
|
643
|
-
let l = o(t), u = l.map((t) => s.dateAtMinutes(e, t)), d = u.map((e) =>
|
|
648
|
+
let l = o(t), u = l.map((t) => s.dateAtMinutes(e, t)), d = u.map((e) => P(e, n)), f = N(n.locale ?? "en-GB", {
|
|
644
649
|
timeZone: n.timeZone,
|
|
645
650
|
timeZoneName: "short"
|
|
646
651
|
}), p = new Set(u.map((e) => f.formatToParts(e).find((e) => e.type === "timeZoneName")?.value)), m = t.max - t.min === r.max - r.min && p.size === 1, h = {
|
|
@@ -663,4 +668,4 @@ function te(e, t, n, r, i = !0) {
|
|
|
663
668
|
};
|
|
664
669
|
}
|
|
665
670
|
//#endregion
|
|
666
|
-
export {
|
|
671
|
+
export { u as addDays, d as addMinutes, f as addMonths, a as calendarDateFromParts, r as calendarDateParts, $ as createCalendarDateMath, y as dateAtMinutes, g as differenceInDays, Y as expandAvailabilityRules, I as formatHourLabel, j as formatPickerDate, R as formatRangeTitle, P as formatTime, x as formatTimeOfDay, F as formatTimeRange, C as fromDateKey, J as getActiveResourceIds, k as getViewRange, D as getVisibleDays, ne as isAllDayLike, h as isSameDay, E as isTimeGridView, U as layoutOverlaps, K as matchesResource, _ as minutesOfDay, W as packLanes, b as parseTime, z as rangesOverlap, q as replaceResource, G as resourceIdsOf, te as sameRange, re as selectCalendarTimeAxis, A as shiftDate, T as snapDate, w as snapMinutes, l as startOfDay, m as startOfMonth, p as startOfWeek, H as subtractIntervals, S as toDateKey };
|