@arche-mc2/vue-ui-lib 1.2.50 → 1.2.51
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/vue-ui-lib.es.js +747 -749
- package/dist/vue-ui-lib.umd.js +5 -5
- package/package.json +1 -1
package/dist/vue-ui-lib.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l1, openBlock as w, createElementBlock as k, mergeProps as A3, toDisplayString as Y, ref as Z, computed as P, normalizeStyle as w1, normalizeClass as G, unref as
|
|
1
|
+
import { defineComponent as l1, openBlock as w, createElementBlock as k, mergeProps as A3, toDisplayString as Y, ref as Z, computed as P, normalizeStyle as w1, normalizeClass as G, unref as S1, createCommentVNode as F, createElementVNode as V, createBlock as i1, renderSlot as _1, h as me, Fragment as h1, Teleport as Xe, useModel as I4, watch as x1, withDirectives as Ka, vModelCheckbox as V4, createVNode as t1, mergeModels as B4, resolveDynamicComponent as Pa, normalizeProps as R4, withCtx as C1, onMounted as X3, nextTick as m3, getCurrentScope as T4, onScopeDispose as H4, getCurrentInstance as Wa, toRef as L4, readonly as O4, customRef as N4, shallowRef as $1, toValue as I1, useTemplateRef as Ve, onBeforeUnmount as u2, renderList as E1, createTextVNode as k3, useSlots as Qa, withModifiers as Ya, onUnmounted as qa, Transition as F4, watchEffect as j4, inject as n6 } from "vue";
|
|
2
2
|
const U4 = ["src", "alt"], K4 = {
|
|
3
3
|
key: 1,
|
|
4
4
|
class: "amc2-avatar__initials"
|
|
@@ -58,7 +58,7 @@ const J4 = ["width", "height", "fill"], Z4 = { key: 0 }, X4 = ["href", "id"], $4
|
|
|
58
58
|
"--icon-color-secondary": i.value && e.colorSecondaryHover || e.colorSecondary
|
|
59
59
|
}));
|
|
60
60
|
return (l, s) => (w(), k("div", {
|
|
61
|
-
class: G(["svgicon",
|
|
61
|
+
class: G(["svgicon", S1(t)]),
|
|
62
62
|
style: w1({ display: "flex", width: `${a.width}px`, height: `${a.height}px` })
|
|
63
63
|
}, [
|
|
64
64
|
(w(), k("svg", {
|
|
@@ -238,17 +238,17 @@ function Ut(a) {
|
|
|
238
238
|
}
|
|
239
239
|
function Te() {
|
|
240
240
|
var a, e, t, i, n, l, s, r;
|
|
241
|
-
for (K3.sort(function(o,
|
|
242
|
-
return o.__v.__b -
|
|
243
|
-
}); a = K3.shift(); ) a.__d && (e = K3.length, i = void 0, n = void 0, s = (l = (t = a).__v).__e, (r = t.__P) && (i = [], (n = M3({}, l)).__v = l.__v + 1, h2(r, l, n, t.__n, r.ownerSVGElement !== void 0, l.__h != null ? [s] : null, i, s ?? L0(l), l.__h), ri(i, l), l.__e != s && ai(l)), K3.length > e && K3.sort(function(o,
|
|
244
|
-
return o.__v.__b -
|
|
241
|
+
for (K3.sort(function(o, c) {
|
|
242
|
+
return o.__v.__b - c.__v.__b;
|
|
243
|
+
}); a = K3.shift(); ) a.__d && (e = K3.length, i = void 0, n = void 0, s = (l = (t = a).__v).__e, (r = t.__P) && (i = [], (n = M3({}, l)).__v = l.__v + 1, h2(r, l, n, t.__n, r.ownerSVGElement !== void 0, l.__h != null ? [s] : null, i, s ?? L0(l), l.__h), ri(i, l), l.__e != s && ai(l)), K3.length > e && K3.sort(function(o, c) {
|
|
244
|
+
return o.__v.__b - c.__v.__b;
|
|
245
245
|
}));
|
|
246
246
|
Te.__r = 0;
|
|
247
247
|
}
|
|
248
|
-
function ii(a, e, t, i, n, l, s, r, o,
|
|
249
|
-
var
|
|
250
|
-
for (t.__k = [],
|
|
251
|
-
if (h.__ = t, h.__b = t.__b + 1, (f = y[
|
|
248
|
+
function ii(a, e, t, i, n, l, s, r, o, c) {
|
|
249
|
+
var u, d, f, h, g, m, p, y = i && i.__k || ei, b = y.length;
|
|
250
|
+
for (t.__k = [], u = 0; u < e.length; u++) if ((h = t.__k[u] = (h = e[u]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? ge(null, h, null, null, h) : Array.isArray(h) ? ge(v1, { children: h }, null, null, null) : h.__b > 0 ? ge(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null) {
|
|
251
|
+
if (h.__ = t, h.__b = t.__b + 1, (f = y[u]) === null || f && h.key == f.key && h.type === f.type) y[u] = void 0;
|
|
252
252
|
else for (d = 0; d < b; d++) {
|
|
253
253
|
if ((f = y[d]) && h.key == f.key && h.type === f.type) {
|
|
254
254
|
y[d] = void 0;
|
|
@@ -256,10 +256,10 @@ function ii(a, e, t, i, n, l, s, r, o, u) {
|
|
|
256
256
|
}
|
|
257
257
|
f = null;
|
|
258
258
|
}
|
|
259
|
-
h2(a, h, f = f || Be, n, l, s, r, o,
|
|
259
|
+
h2(a, h, f = f || Be, n, l, s, r, o, c), g = h.__e, (d = h.ref) && f.ref != d && (p || (p = []), f.ref && p.push(f.ref, null, h), p.push(d, h.__c || g, h)), g != null ? (m == null && (m = g), typeof h.type == "function" && h.__k === f.__k ? h.__d = o = ni(h, o, a) : o = li(a, h, f, y, g, o), typeof t.type == "function" && (t.__d = o)) : o && f.__e == o && o.parentNode != a && (o = L0(f));
|
|
260
260
|
}
|
|
261
|
-
for (t.__e = m,
|
|
262
|
-
if (p) for (
|
|
261
|
+
for (t.__e = m, u = b; u--; ) y[u] != null && (typeof t.type == "function" && y[u].__e != null && y[u].__e == t.__d && (t.__d = si(i).nextSibling), ci(y[u], y[u]));
|
|
262
|
+
if (p) for (u = 0; u < p.length; u++) oi(p[u], p[++u], p[++u]);
|
|
263
263
|
}
|
|
264
264
|
function ni(a, e, t) {
|
|
265
265
|
for (var i, n = a.__k, l = 0; n && l < n.length; l++) (i = n[l]) && (i.__ = a, e = typeof i.type == "function" ? ni(i, e, t) : li(t, i, i, n, i.__e, e));
|
|
@@ -289,33 +289,33 @@ function si(a) {
|
|
|
289
289
|
return null;
|
|
290
290
|
}
|
|
291
291
|
function h2(a, e, t, i, n, l, s, r, o) {
|
|
292
|
-
var
|
|
292
|
+
var c, u, d, f, h, g, m, p, y, b, C, v, B, x, T, R = e.type;
|
|
293
293
|
if (e.constructor !== void 0) return null;
|
|
294
|
-
t.__h != null && (o = t.__h, r = e.__e = t.__e, e.__h = null, l = [r]), (
|
|
294
|
+
t.__h != null && (o = t.__h, r = e.__e = t.__e, e.__h = null, l = [r]), (c = W.__b) && c(e);
|
|
295
295
|
try {
|
|
296
296
|
e: if (typeof R == "function") {
|
|
297
|
-
if (p = e.props, y = (
|
|
297
|
+
if (p = e.props, y = (c = R.contextType) && i[c.__c], b = c ? y ? y.props.value : c.__ : i, t.__c ? m = (u = e.__c = t.__c).__ = u.__E : ("prototype" in R && R.prototype.render ? e.__c = u = new R(p, b) : (e.__c = u = new W1(p, b), u.constructor = R, u.render = ol), y && y.sub(u), u.props = p, u.state || (u.state = {}), u.context = b, u.__n = i, d = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), R.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = M3({}, u.__s)), M3(u.__s, R.getDerivedStateFromProps(p, u.__s))), f = u.props, h = u.state, u.__v = e, d) R.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
298
298
|
else {
|
|
299
|
-
if (R.getDerivedStateFromProps == null && p !== f &&
|
|
300
|
-
for (e.__v !== t.__v && (
|
|
299
|
+
if (R.getDerivedStateFromProps == null && p !== f && u.componentWillReceiveProps != null && u.componentWillReceiveProps(p, b), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(p, u.__s, b) === !1 || e.__v === t.__v) {
|
|
300
|
+
for (e.__v !== t.__v && (u.props = p, u.state = u.__s, u.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(_) {
|
|
301
301
|
_ && (_.__ = e);
|
|
302
|
-
}), C = 0; C <
|
|
303
|
-
|
|
302
|
+
}), C = 0; C < u._sb.length; C++) u.__h.push(u._sb[C]);
|
|
303
|
+
u._sb = [], u.__h.length && s.push(u);
|
|
304
304
|
break e;
|
|
305
305
|
}
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
u.componentWillUpdate != null && u.componentWillUpdate(p, u.__s, b), u.componentDidUpdate != null && u.__h.push(function() {
|
|
307
|
+
u.componentDidUpdate(f, h, g);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
if (
|
|
311
|
-
for (
|
|
312
|
-
|
|
310
|
+
if (u.context = b, u.props = p, u.__P = a, v = W.__r, B = 0, "prototype" in R && R.prototype.render) {
|
|
311
|
+
for (u.state = u.__s, u.__d = !1, v && v(e), c = u.render(u.props, u.state, u.context), x = 0; x < u._sb.length; x++) u.__h.push(u._sb[x]);
|
|
312
|
+
u._sb = [];
|
|
313
313
|
} else do
|
|
314
|
-
|
|
315
|
-
while (
|
|
316
|
-
|
|
314
|
+
u.__d = !1, v && v(e), c = u.render(u.props, u.state, u.context), u.state = u.__s;
|
|
315
|
+
while (u.__d && ++B < 25);
|
|
316
|
+
u.state = u.__s, u.getChildContext != null && (i = M3(M3({}, i), u.getChildContext())), d || u.getSnapshotBeforeUpdate == null || (g = u.getSnapshotBeforeUpdate(f, h)), T = c != null && c.type === v1 && c.key == null ? c.props.children : c, ii(a, Array.isArray(T) ? T : [T], e, t, i, n, l, s, r, o), u.base = e.__e, e.__h = null, u.__h.length && s.push(u), m && (u.__E = u.__ = null), u.__e = !1;
|
|
317
317
|
} else l == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = rl(t.__e, e, t, i, n, l, s, o);
|
|
318
|
-
(
|
|
318
|
+
(c = W.diffed) && c(e);
|
|
319
319
|
} catch (_) {
|
|
320
320
|
e.__v = null, (o || l != null) && (e.__e = r, e.__h = !!o, l[l.indexOf(r)] = null), W.__e(_, e, t);
|
|
321
321
|
}
|
|
@@ -332,7 +332,7 @@ function ri(a, e) {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
function rl(a, e, t, i, n, l, s, r) {
|
|
335
|
-
var o,
|
|
335
|
+
var o, c, u, d = t.props, f = e.props, h = e.type, g = 0;
|
|
336
336
|
if (h === "svg" && (n = !0), l != null) {
|
|
337
337
|
for (; g < l.length; g++) if ((o = l[g]) && "setAttribute" in o == !!h && (h ? o.localName === h : o.nodeType === 3)) {
|
|
338
338
|
a = o, l[g] = null;
|
|
@@ -345,11 +345,11 @@ function rl(a, e, t, i, n, l, s, r) {
|
|
|
345
345
|
}
|
|
346
346
|
if (h === null) d === f || r && a.data === f || (a.data = f);
|
|
347
347
|
else {
|
|
348
|
-
if (l = l && $e.call(a.childNodes),
|
|
348
|
+
if (l = l && $e.call(a.childNodes), c = (d = t.props || Be).dangerouslySetInnerHTML, u = f.dangerouslySetInnerHTML, !r) {
|
|
349
349
|
if (l != null) for (d = {}, g = 0; g < a.attributes.length; g++) d[a.attributes[g].name] = a.attributes[g].value;
|
|
350
|
-
(
|
|
350
|
+
(u || c) && (u && (c && u.__html == c.__html || u.__html === a.innerHTML) || (a.innerHTML = u && u.__html || ""));
|
|
351
351
|
}
|
|
352
|
-
if (ll(a, f, d, n, r),
|
|
352
|
+
if (ll(a, f, d, n, r), u) e.__k = [];
|
|
353
353
|
else if (g = e.props.children, ii(a, Array.isArray(g) ? g : [g], e, t, i, n && h !== "foreignObject", l, s, l ? l[0] : t.__k && L0(t, 0), r), l != null) for (g = l.length; g--; ) l[g] != null && ti(l[g]);
|
|
354
354
|
r || ("value" in f && (g = f.value) !== void 0 && (g !== a.value || h === "progress" && !g || h === "option" && g !== d.value) && Re(a, "value", g, d.value, !1), "checked" in f && (g = f.checked) !== void 0 && g !== a.checked && Re(a, "checked", g, d.checked, !1));
|
|
355
355
|
}
|
|
@@ -540,11 +540,11 @@ W.unmount = function(a) {
|
|
|
540
540
|
var r = function() {
|
|
541
541
|
if (!--i.__u) {
|
|
542
542
|
if (i.state.__a) {
|
|
543
|
-
var
|
|
544
|
-
i.__v.__k[0] = hi(
|
|
543
|
+
var c = i.state.__a;
|
|
544
|
+
i.__v.__k[0] = hi(c, c.__c.__P, c.__c.__O);
|
|
545
545
|
}
|
|
546
|
-
var
|
|
547
|
-
for (i.setState({ __a: i.__b = null });
|
|
546
|
+
var u;
|
|
547
|
+
for (i.setState({ __a: i.__b = null }); u = i.t.pop(); ) u.forceUpdate();
|
|
548
548
|
}
|
|
549
549
|
}, o = e.__h === !0;
|
|
550
550
|
i.__u++ || o || i.setState({ __a: i.__b = i.__v.__k[0] }), a.then(s, s);
|
|
@@ -1214,11 +1214,11 @@ class ms {
|
|
|
1214
1214
|
let o = r;
|
|
1215
1215
|
o > 1 && // the two dates are different in a way that's larger scale than time
|
|
1216
1216
|
(l.year === "numeric" || l.year === "2-digit") && (l.month === "numeric" || l.month === "2-digit") && (l.day === "numeric" || l.day === "2-digit") && (o = 1);
|
|
1217
|
-
let
|
|
1218
|
-
if (
|
|
1219
|
-
return
|
|
1220
|
-
let d = zs(l, o), f = T6(d, s, i), h = f(e), g = f(t), m = Cs(
|
|
1221
|
-
return m ? m.before + h + p + g + m.after :
|
|
1217
|
+
let c = this.format(e, i), u = this.format(t, i);
|
|
1218
|
+
if (c === u)
|
|
1219
|
+
return c;
|
|
1220
|
+
let d = zs(l, o), f = T6(d, s, i), h = f(e), g = f(t), m = Cs(c, h, u, g), p = s.separator || n || i.defaultSeparator || "";
|
|
1221
|
+
return m ? m.before + h + p + g + m.after : c + p + u;
|
|
1222
1222
|
}
|
|
1223
1223
|
getSmallestUnit() {
|
|
1224
1224
|
switch (this.smallestUnitNum) {
|
|
@@ -1292,13 +1292,13 @@ function Cs(a, e, t, i) {
|
|
|
1292
1292
|
n = l + e.length;
|
|
1293
1293
|
let r = a.substr(n), o = 0;
|
|
1294
1294
|
for (; o < t.length; ) {
|
|
1295
|
-
let
|
|
1296
|
-
if (
|
|
1295
|
+
let c = t.indexOf(i, o);
|
|
1296
|
+
if (c === -1)
|
|
1297
1297
|
break;
|
|
1298
|
-
let
|
|
1299
|
-
o =
|
|
1298
|
+
let u = t.substr(0, c);
|
|
1299
|
+
o = c + i.length;
|
|
1300
1300
|
let d = t.substr(o);
|
|
1301
|
-
if (s ===
|
|
1301
|
+
if (s === u && r === d)
|
|
1302
1302
|
return {
|
|
1303
1303
|
before: s,
|
|
1304
1304
|
after: r
|
|
@@ -2026,15 +2026,15 @@ class js {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
const E3 = Si({});
|
|
2029
|
-
function Us(a, e, t, i, n, l, s, r, o,
|
|
2029
|
+
function Us(a, e, t, i, n, l, s, r, o, c, u, d, f, h) {
|
|
2030
2030
|
return {
|
|
2031
2031
|
dateEnv: n,
|
|
2032
2032
|
nowManager: l,
|
|
2033
2033
|
options: t,
|
|
2034
2034
|
pluginHooks: r,
|
|
2035
|
-
emitter:
|
|
2035
|
+
emitter: u,
|
|
2036
2036
|
dispatch: o,
|
|
2037
|
-
getCurrentData:
|
|
2037
|
+
getCurrentData: c,
|
|
2038
2038
|
calendarApi: d,
|
|
2039
2039
|
viewSpec: a,
|
|
2040
2040
|
viewApi: e,
|
|
@@ -2042,13 +2042,13 @@ function Us(a, e, t, i, n, l, s, r, o, u, c, d, f, h) {
|
|
|
2042
2042
|
theme: s,
|
|
2043
2043
|
isRtl: t.direction === "rtl",
|
|
2044
2044
|
addResizeHandler(g) {
|
|
2045
|
-
|
|
2045
|
+
u.on("_resize", g);
|
|
2046
2046
|
},
|
|
2047
2047
|
removeResizeHandler(g) {
|
|
2048
|
-
|
|
2048
|
+
u.off("_resize", g);
|
|
2049
2049
|
},
|
|
2050
2050
|
createScrollResponder(g) {
|
|
2051
|
-
return new js(g,
|
|
2051
|
+
return new js(g, u, n1(t.scrollTime), t.scrollTimeReset);
|
|
2052
2052
|
},
|
|
2053
2053
|
registerInteractiveComponent: f,
|
|
2054
2054
|
unregisterInteractiveComponent: h
|
|
@@ -2104,18 +2104,18 @@ class C2 extends c1 {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
render() {
|
|
2106
2106
|
const { props: e, context: t } = this, { options: i } = t, { customGenerator: n, defaultGenerator: l, renderProps: s } = e, r = xi(e, [], this.handleEl);
|
|
2107
|
-
let o = !1,
|
|
2107
|
+
let o = !1, c, u = [], d;
|
|
2108
2108
|
if (n != null) {
|
|
2109
2109
|
const f = typeof n == "function" ? n(s, A) : n;
|
|
2110
2110
|
if (f === !0)
|
|
2111
2111
|
o = !0;
|
|
2112
2112
|
else {
|
|
2113
2113
|
const h = f && typeof f == "object";
|
|
2114
|
-
h && "html" in f ? r.dangerouslySetInnerHTML = { __html: f.html } : h && "domNodes" in f ?
|
|
2114
|
+
h && "html" in f ? r.dangerouslySetInnerHTML = { __html: f.html } : h && "domNodes" in f ? u = Array.prototype.slice.call(f.domNodes) : (h ? Za(f) : typeof f != "function") ? c = f : d = f;
|
|
2115
2115
|
}
|
|
2116
2116
|
} else
|
|
2117
2117
|
o = !Yt(e.generatorName, i);
|
|
2118
|
-
return o && l && (
|
|
2118
|
+
return o && l && (c = l(s)), this.queuedDomNodes = u, this.currentGeneratorMeta = d, A(e.elTag, r, c);
|
|
2119
2119
|
}
|
|
2120
2120
|
componentDidMount() {
|
|
2121
2121
|
this.applyQueueudDomNodes(), this.triggerCustomRendering(!0);
|
|
@@ -2292,8 +2292,8 @@ class Bi {
|
|
|
2292
2292
|
// Optional direction param indicates whether the date is being incremented/decremented
|
|
2293
2293
|
// from its previous value. decremented = -1, incremented = 1 (default).
|
|
2294
2294
|
build(e, t, i = !0) {
|
|
2295
|
-
let { props: n } = this, l, s, r, o,
|
|
2296
|
-
return l = this.buildValidRange(), l = this.trimHiddenDays(l), i && (e = Js(e, l)), s = this.buildCurrentRangeInfo(e, t), r = /^(year|month|week|day)$/.test(s.unit), o = this.buildRenderRange(this.trimHiddenDays(s.range), s.unit, r), o = this.trimHiddenDays(o),
|
|
2295
|
+
let { props: n } = this, l, s, r, o, c, u;
|
|
2296
|
+
return l = this.buildValidRange(), l = this.trimHiddenDays(l), i && (e = Js(e, l)), s = this.buildCurrentRangeInfo(e, t), r = /^(year|month|week|day)$/.test(s.unit), o = this.buildRenderRange(this.trimHiddenDays(s.range), s.unit, r), o = this.trimHiddenDays(o), c = o, n.showNonCurrentDates || (c = _3(c, s.range)), c = this.adjustActiveRange(c), c = _3(c, l), u = M2(s.range, l), g3(o, e) || (e = o.start), {
|
|
2297
2297
|
currentDate: e,
|
|
2298
2298
|
// constraint for where prev/next operations can go and where events can be dragged/resized to.
|
|
2299
2299
|
// an object with optional start and end properties.
|
|
@@ -2306,7 +2306,7 @@ class Bi {
|
|
|
2306
2306
|
isRangeAllDay: r,
|
|
2307
2307
|
// dates that display events and accept drag-n-drop
|
|
2308
2308
|
// will be `null` if no dates accept events
|
|
2309
|
-
activeRange:
|
|
2309
|
+
activeRange: c,
|
|
2310
2310
|
// date range with a rendered skeleton
|
|
2311
2311
|
// includes not-active days that need some sort of DOM
|
|
2312
2312
|
renderRange: o,
|
|
@@ -2314,7 +2314,7 @@ class Bi {
|
|
|
2314
2314
|
slotMinTime: n.slotMinTime,
|
|
2315
2315
|
// Duration object that denotes the exclusive visible end time of any given day
|
|
2316
2316
|
slotMaxTime: n.slotMaxTime,
|
|
2317
|
-
isValid:
|
|
2317
|
+
isValid: u,
|
|
2318
2318
|
// how far the current date will move for a prev/next operation
|
|
2319
2319
|
dateIncrement: this.buildDateIncrement(s.duration)
|
|
2320
2320
|
// pass a fallback (might be null) ^
|
|
@@ -2347,16 +2347,16 @@ class Bi {
|
|
|
2347
2347
|
// Builds the "current" range when it is specified as an explicit duration.
|
|
2348
2348
|
// `unit` is the already-computed greatestDurationDenominator unit of duration.
|
|
2349
2349
|
buildRangeFromDuration(e, t, i, n) {
|
|
2350
|
-
let { dateEnv: l, dateAlignment: s } = this.props, r, o,
|
|
2350
|
+
let { dateEnv: l, dateAlignment: s } = this.props, r, o, c;
|
|
2351
2351
|
if (!s) {
|
|
2352
2352
|
let { dateIncrement: d } = this.props;
|
|
2353
2353
|
d && e3(d) < e3(i) ? s = Qt(d).unit : s = n;
|
|
2354
2354
|
}
|
|
2355
2355
|
c0(i) <= 1 && this.isHiddenDay(r) && (r = this.skipHiddenDays(r, t), r = m1(r));
|
|
2356
|
-
function
|
|
2357
|
-
r = l.startOf(e, s), o = l.add(r, i),
|
|
2356
|
+
function u() {
|
|
2357
|
+
r = l.startOf(e, s), o = l.add(r, i), c = { start: r, end: o };
|
|
2358
2358
|
}
|
|
2359
|
-
return
|
|
2359
|
+
return u(), this.trimHiddenDays(c) || (e = this.skipHiddenDays(e, t), u()), c;
|
|
2360
2360
|
}
|
|
2361
2361
|
// Builds the "current" range when a dayCount is specified.
|
|
2362
2362
|
buildRangeFromDayCount(e, t, i) {
|
|
@@ -2453,15 +2453,15 @@ function J3(a, e, t) {
|
|
|
2453
2453
|
let { dateEnv: i, pluginHooks: n, options: l } = t, { defs: s, instances: r } = a;
|
|
2454
2454
|
r = G3(r, (o) => !s[o.defId].recurringDef);
|
|
2455
2455
|
for (let o in s) {
|
|
2456
|
-
let
|
|
2457
|
-
if (
|
|
2458
|
-
let { duration:
|
|
2459
|
-
|
|
2460
|
-
let d = Xs(
|
|
2456
|
+
let c = s[o];
|
|
2457
|
+
if (c.recurringDef) {
|
|
2458
|
+
let { duration: u } = c.recurringDef;
|
|
2459
|
+
u || (u = c.allDay ? l.defaultAllDayEventDuration : l.defaultTimedEventDuration);
|
|
2460
|
+
let d = Xs(c, u, e, i, n.recurringTypes);
|
|
2461
2461
|
for (let f of d) {
|
|
2462
2462
|
let h = S2(o, {
|
|
2463
2463
|
start: f,
|
|
2464
|
-
end: i.add(f,
|
|
2464
|
+
end: i.add(f, u)
|
|
2465
2465
|
});
|
|
2466
2466
|
r[h.instanceId] = h;
|
|
2467
2467
|
}
|
|
@@ -2489,16 +2489,16 @@ const we = {
|
|
|
2489
2489
|
allDay: Boolean
|
|
2490
2490
|
}, $s = Object.assign(Object.assign(Object.assign({}, we), Ri), { extendedProps: z });
|
|
2491
2491
|
function Ti(a, e, t, i, n = x2(t), l, s) {
|
|
2492
|
-
let { refined: r, extra: o } = Hi(a, t, n),
|
|
2493
|
-
if (
|
|
2494
|
-
let f = qt(r, o, e ? e.sourceId : "",
|
|
2492
|
+
let { refined: r, extra: o } = Hi(a, t, n), c = tr(e, t), u = Zs(r, c, t.dateEnv, t.pluginHooks.recurringTypes);
|
|
2493
|
+
if (u) {
|
|
2494
|
+
let f = qt(r, o, e ? e.sourceId : "", u.allDay, !!u.duration, t, l);
|
|
2495
2495
|
return f.recurringDef = {
|
|
2496
|
-
typeId:
|
|
2497
|
-
typeData:
|
|
2498
|
-
duration:
|
|
2496
|
+
typeId: u.typeId,
|
|
2497
|
+
typeData: u.typeData,
|
|
2498
|
+
duration: u.duration
|
|
2499
2499
|
}, { def: f, instance: null };
|
|
2500
2500
|
}
|
|
2501
|
-
let d = er(r,
|
|
2501
|
+
let d = er(r, c, t, i);
|
|
2502
2502
|
if (d) {
|
|
2503
2503
|
let f = qt(r, o, e ? e.sourceId : "", d.allDay, d.hasEnd, t, l), h = S2(f.defId, d.range, d.forcedStartTzo, d.forcedEndTzo);
|
|
2504
2504
|
return s && f.publicId && s[f.publicId] && (h.instanceId = s[f.publicId]), { def: f, instance: h };
|
|
@@ -2531,15 +2531,15 @@ function qt(a, e, t, i, n, l, s) {
|
|
|
2531
2531
|
return Object.freeze(r.ui.classNames), Object.freeze(r.extendedProps), r;
|
|
2532
2532
|
}
|
|
2533
2533
|
function er(a, e, t, i) {
|
|
2534
|
-
let { allDay: n } = a, l, s = null, r = !1, o,
|
|
2535
|
-
if (l = t.dateEnv.createMarkerMeta(
|
|
2534
|
+
let { allDay: n } = a, l, s = null, r = !1, o, c = null, u = a.start != null ? a.start : a.date;
|
|
2535
|
+
if (l = t.dateEnv.createMarkerMeta(u), l)
|
|
2536
2536
|
s = l.marker;
|
|
2537
2537
|
else if (!i)
|
|
2538
2538
|
return null;
|
|
2539
|
-
return a.end != null && (o = t.dateEnv.createMarkerMeta(a.end)), n == null && (e != null ? n = e : n = (!l || l.isTimeUnspecified) && (!o || o.isTimeUnspecified)), n && s && (s = m1(s)), o && (
|
|
2539
|
+
return a.end != null && (o = t.dateEnv.createMarkerMeta(a.end)), n == null && (e != null ? n = e : n = (!l || l.isTimeUnspecified) && (!o || o.isTimeUnspecified)), n && s && (s = m1(s)), o && (c = o.marker, n && (c = m1(c)), s && c <= s && (c = null)), c ? r = !0 : i || (r = t.options.forceEventDuration || !1, c = t.dateEnv.add(s, n ? t.options.defaultAllDayEventDuration : t.options.defaultTimedEventDuration)), {
|
|
2540
2540
|
allDay: n,
|
|
2541
2541
|
hasEnd: r,
|
|
2542
|
-
range: { start: s, end:
|
|
2542
|
+
range: { start: s, end: c },
|
|
2543
2543
|
forcedStartTzo: l ? l.forcedTzo : null,
|
|
2544
2544
|
forcedEndTzo: o ? o.forcedTzo : null
|
|
2545
2545
|
};
|
|
@@ -2551,8 +2551,8 @@ function tr(a, e) {
|
|
|
2551
2551
|
function N0(a, e, t, i, n, l) {
|
|
2552
2552
|
let s = Q1(), r = x2(t);
|
|
2553
2553
|
for (let o of a) {
|
|
2554
|
-
let
|
|
2555
|
-
|
|
2554
|
+
let c = Ti(o, e, t, i, r, n, l);
|
|
2555
|
+
c && Gt(c, s);
|
|
2556
2556
|
}
|
|
2557
2557
|
return s;
|
|
2558
2558
|
}
|
|
@@ -2992,12 +2992,12 @@ class A1 {
|
|
|
2992
2992
|
if (s && !(t != null && (r = n.createMarker(t), !r)) && this._instance) {
|
|
2993
2993
|
let o = this._instance.range;
|
|
2994
2994
|
i.allDay === !0 && (o = Ii(o));
|
|
2995
|
-
let
|
|
2995
|
+
let c = r0(o.start, s, n, i.granularity);
|
|
2996
2996
|
if (r) {
|
|
2997
|
-
let
|
|
2998
|
-
ql(
|
|
2997
|
+
let u = r0(o.end, r, n, i.granularity);
|
|
2998
|
+
ql(c, u) ? this.mutate({ datesDelta: c, standardProps: l }) : this.mutate({ startDelta: c, endDelta: u, standardProps: l });
|
|
2999
2999
|
} else
|
|
3000
|
-
l.hasEnd = !1, this.mutate({ datesDelta:
|
|
3000
|
+
l.hasEnd = !1, this.mutate({ datesDelta: c, standardProps: l });
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
moveStart(e) {
|
|
@@ -3173,19 +3173,19 @@ function Ki(a) {
|
|
|
3173
3173
|
function W3(a, e, t) {
|
|
3174
3174
|
let { defs: i, instances: n } = a, l = [], s = t ? t.instanceId : "";
|
|
3175
3175
|
for (let r in n) {
|
|
3176
|
-
let o = n[r],
|
|
3177
|
-
o.instanceId !== s && l.push(new A1(e,
|
|
3176
|
+
let o = n[r], c = i[o.defId];
|
|
3177
|
+
o.instanceId !== s && l.push(new A1(e, c, o));
|
|
3178
3178
|
}
|
|
3179
3179
|
return l;
|
|
3180
3180
|
}
|
|
3181
3181
|
function W6(a, e, t, i) {
|
|
3182
|
-
let n = {}, l = {}, s = {}, r = [], o = [],
|
|
3183
|
-
for (let
|
|
3184
|
-
let d = a.defs[
|
|
3185
|
-
|
|
3182
|
+
let n = {}, l = {}, s = {}, r = [], o = [], c = We(a.defs, e);
|
|
3183
|
+
for (let u in a.defs) {
|
|
3184
|
+
let d = a.defs[u];
|
|
3185
|
+
c[d.defId].display === "inverse-background" && (d.groupId ? (n[d.groupId] = [], s[d.groupId] || (s[d.groupId] = d)) : l[u] = []);
|
|
3186
3186
|
}
|
|
3187
|
-
for (let
|
|
3188
|
-
let d = a.instances[
|
|
3187
|
+
for (let u in a.instances) {
|
|
3188
|
+
let d = a.instances[u], f = a.defs[d.defId], h = c[f.defId], g = d.range, m = !f.allDay && i ? Vi(g, i) : g, p = _3(m, t);
|
|
3189
3189
|
p && (h.display === "inverse-background" ? f.groupId ? n[f.groupId].push(p) : l[d.defId].push(p) : h.display !== "none" && (h.display === "background" ? r : o).push({
|
|
3190
3190
|
def: f,
|
|
3191
3191
|
ui: h,
|
|
@@ -3195,10 +3195,10 @@ function W6(a, e, t, i) {
|
|
|
3195
3195
|
isEnd: m.end && m.end.valueOf() === p.end.valueOf()
|
|
3196
3196
|
}));
|
|
3197
3197
|
}
|
|
3198
|
-
for (let
|
|
3199
|
-
let d = n[
|
|
3198
|
+
for (let u in n) {
|
|
3199
|
+
let d = n[u], f = F6(d, t);
|
|
3200
3200
|
for (let h of f) {
|
|
3201
|
-
let g = s[
|
|
3201
|
+
let g = s[u], m = c[g.defId];
|
|
3202
3202
|
r.push({
|
|
3203
3203
|
def: g,
|
|
3204
3204
|
ui: m,
|
|
@@ -3209,12 +3209,12 @@ function W6(a, e, t, i) {
|
|
|
3209
3209
|
});
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
for (let
|
|
3213
|
-
let d = l[
|
|
3212
|
+
for (let u in l) {
|
|
3213
|
+
let d = l[u], f = F6(d, t);
|
|
3214
3214
|
for (let h of f)
|
|
3215
3215
|
r.push({
|
|
3216
|
-
def: a.defs[
|
|
3217
|
-
ui: u
|
|
3216
|
+
def: a.defs[u],
|
|
3217
|
+
ui: c[u],
|
|
3218
3218
|
instance: null,
|
|
3219
3219
|
range: h,
|
|
3220
3220
|
isStart: !1,
|
|
@@ -3268,10 +3268,10 @@ function xr(a, e) {
|
|
|
3268
3268
|
return a.isEnd && a.eventRange.ui.durationEditable;
|
|
3269
3269
|
}
|
|
3270
3270
|
function Qi(a, e, t, i, n, l, s) {
|
|
3271
|
-
let { dateEnv: r, options: o } = t, { displayEventTime:
|
|
3272
|
-
|
|
3271
|
+
let { dateEnv: r, options: o } = t, { displayEventTime: c, displayEventEnd: u } = o, d = a.eventRange.def, f = a.eventRange.instance;
|
|
3272
|
+
c == null && (c = i !== !1), u == null && (u = n !== !1);
|
|
3273
3273
|
let h = f.range.start, g = f.range.end, m = a.start || a.eventRange.range.start, p = a.end || a.eventRange.range.end, y = m1(h).valueOf() === m1(m).valueOf(), b = m1(B3(g, -1)).valueOf() === m1(B3(p, -1)).valueOf();
|
|
3274
|
-
return
|
|
3274
|
+
return c && !d.allDay && (y || b) ? (m = y ? h : m, p = b ? g : p, u && d.hasEnd ? r.formatRange(m, p, e, {
|
|
3275
3275
|
forcedStartTzo: f.forcedStartTzo,
|
|
3276
3276
|
forcedEndTzo: f.forcedEndTzo
|
|
3277
3277
|
}) : r.format(m, e, {
|
|
@@ -3843,21 +3843,21 @@ class qr {
|
|
|
3843
3843
|
this.getKeysForEventDefs = Q(this._getKeysForEventDefs), this.splitDateSelection = Q(this._splitDateSpan), this.splitEventStore = Q(this._splitEventStore), this.splitIndividualUi = Q(this._splitIndividualUi), this.splitEventDrag = Q(this._splitInteraction), this.splitEventResize = Q(this._splitInteraction), this.eventUiBuilders = {};
|
|
3844
3844
|
}
|
|
3845
3845
|
splitProps(e) {
|
|
3846
|
-
let t = this.getKeyInfo(e), i = this.getKeysForEventDefs(e.eventStore), n = this.splitDateSelection(e.dateSelection), l = this.splitIndividualUi(e.eventUiBases, i), s = this.splitEventStore(e.eventStore, i), r = this.splitEventDrag(e.eventDrag), o = this.splitEventResize(e.eventResize),
|
|
3847
|
-
this.eventUiBuilders = y3(t, (
|
|
3848
|
-
for (let
|
|
3849
|
-
let d = t[
|
|
3850
|
-
u
|
|
3846
|
+
let t = this.getKeyInfo(e), i = this.getKeysForEventDefs(e.eventStore), n = this.splitDateSelection(e.dateSelection), l = this.splitIndividualUi(e.eventUiBases, i), s = this.splitEventStore(e.eventStore, i), r = this.splitEventDrag(e.eventDrag), o = this.splitEventResize(e.eventResize), c = {};
|
|
3847
|
+
this.eventUiBuilders = y3(t, (u, d) => this.eventUiBuilders[d] || Q(Gr));
|
|
3848
|
+
for (let u in t) {
|
|
3849
|
+
let d = t[u], f = s[u] || Ct, h = this.eventUiBuilders[u];
|
|
3850
|
+
c[u] = {
|
|
3851
3851
|
businessHours: d.businessHours || e.businessHours,
|
|
3852
|
-
dateSelection: n[
|
|
3852
|
+
dateSelection: n[u] || null,
|
|
3853
3853
|
eventStore: f,
|
|
3854
|
-
eventUiBases: h(e.eventUiBases[""], d.ui, l[
|
|
3854
|
+
eventUiBases: h(e.eventUiBases[""], d.ui, l[u]),
|
|
3855
3855
|
eventSelection: f.instances[e.eventSelection] ? e.eventSelection : "",
|
|
3856
|
-
eventDrag: r[
|
|
3857
|
-
eventResize: o[
|
|
3856
|
+
eventDrag: r[u] || null,
|
|
3857
|
+
eventResize: o[u] || null
|
|
3858
3858
|
};
|
|
3859
3859
|
}
|
|
3860
|
-
return
|
|
3860
|
+
return c;
|
|
3861
3861
|
}
|
|
3862
3862
|
_splitDateSpan(e) {
|
|
3863
3863
|
let t = {};
|
|
@@ -3940,11 +3940,11 @@ function Qe(a, e, t = "day", i = !0) {
|
|
|
3940
3940
|
let r = n.format(e, t === "week" ? Jr : _r);
|
|
3941
3941
|
if (l.navLinks) {
|
|
3942
3942
|
let o = n.toDate(e);
|
|
3943
|
-
const
|
|
3943
|
+
const c = (u) => {
|
|
3944
3944
|
let d = t === "day" ? l.navLinkDayClick : t === "week" ? l.navLinkWeekClick : null;
|
|
3945
|
-
typeof d == "function" ? d.call(s, n.toDate(e),
|
|
3945
|
+
typeof d == "function" ? d.call(s, n.toDate(e), u) : (typeof d == "string" && (t = d), s.zoomTo(e, t));
|
|
3946
3946
|
};
|
|
3947
|
-
return Object.assign({ title: V0(l.navLinkHint, [r, o], r), "data-navlink": "" }, i ? bi(
|
|
3947
|
+
return Object.assign({ title: V0(l.navLinkHint, [r, o], r), "data-navlink": "" }, i ? bi(c) : { onClick: c });
|
|
3948
3948
|
}
|
|
3949
3949
|
return { "aria-label": r };
|
|
3950
3950
|
}
|
|
@@ -3983,16 +3983,16 @@ function $i(a) {
|
|
|
3983
3983
|
};
|
|
3984
3984
|
}
|
|
3985
3985
|
function t7(a, e = !1) {
|
|
3986
|
-
let t = window.getComputedStyle(a), i = parseInt(t.borderLeftWidth, 10) || 0, n = parseInt(t.borderRightWidth, 10) || 0, l = parseInt(t.borderTopWidth, 10) || 0, s = parseInt(t.borderBottomWidth, 10) || 0, r = $i(a), o = r.y - i - n,
|
|
3986
|
+
let t = window.getComputedStyle(a), i = parseInt(t.borderLeftWidth, 10) || 0, n = parseInt(t.borderRightWidth, 10) || 0, l = parseInt(t.borderTopWidth, 10) || 0, s = parseInt(t.borderBottomWidth, 10) || 0, r = $i(a), o = r.y - i - n, c = r.x - l - s, u = {
|
|
3987
3987
|
borderLeft: i,
|
|
3988
3988
|
borderRight: n,
|
|
3989
3989
|
borderTop: l,
|
|
3990
3990
|
borderBottom: s,
|
|
3991
|
-
scrollbarBottom:
|
|
3991
|
+
scrollbarBottom: c,
|
|
3992
3992
|
scrollbarLeft: 0,
|
|
3993
3993
|
scrollbarRight: 0
|
|
3994
3994
|
};
|
|
3995
|
-
return Zr() && t.direction === "rtl" ?
|
|
3995
|
+
return Zr() && t.direction === "rtl" ? u.scrollbarLeft = o : u.scrollbarRight = o, e && (u.paddingLeft = parseInt(t.paddingLeft, 10) || 0, u.paddingRight = parseInt(t.paddingRight, 10) || 0, u.paddingTop = parseInt(t.paddingTop, 10) || 0, u.paddingBottom = parseInt(t.paddingBottom, 10) || 0), u;
|
|
3996
3996
|
}
|
|
3997
3997
|
function a7(a, e = !1, t) {
|
|
3998
3998
|
let i = T2(a), n = t7(a, e), l = {
|
|
@@ -4246,7 +4246,7 @@ class tn {
|
|
|
4246
4246
|
does not care about limits
|
|
4247
4247
|
*/
|
|
4248
4248
|
findInsertion(e) {
|
|
4249
|
-
let { levelCoords: t, entriesByLevel: i, strictOrder: n, stackCnts: l } = this, s = t.length, r = 0, o = -1,
|
|
4249
|
+
let { levelCoords: t, entriesByLevel: i, strictOrder: n, stackCnts: l } = this, s = t.length, r = 0, o = -1, c = -1, u = null, d = 0;
|
|
4250
4250
|
for (let g = 0; g < s; g += 1) {
|
|
4251
4251
|
const m = t[g];
|
|
4252
4252
|
if (!n && m >= r + this.getEntryThickness(e))
|
|
@@ -4259,18 +4259,18 @@ class tn {
|
|
|
4259
4259
|
y.span.start < e.span.end;
|
|
4260
4260
|
) {
|
|
4261
4261
|
let v = m + this.getEntryThickness(y);
|
|
4262
|
-
v > r && (r = v,
|
|
4262
|
+
v > r && (r = v, u = y, o = g, c = C), v === r && (d = Math.max(d, l[Q3(y)] + 1)), C += 1;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
4265
|
let f = 0;
|
|
4266
|
-
if (
|
|
4266
|
+
if (u)
|
|
4267
4267
|
for (f = o + 1; f < s && t[f] < r; )
|
|
4268
4268
|
f += 1;
|
|
4269
4269
|
let h = -1;
|
|
4270
4270
|
return f < s && t[f] === r && (h = Zt(i[f], e.span.end, Jt)[0]), {
|
|
4271
4271
|
touchingLevel: o,
|
|
4272
|
-
touchingLateral:
|
|
4273
|
-
touchingEntry:
|
|
4272
|
+
touchingLateral: c,
|
|
4273
|
+
touchingEntry: u,
|
|
4274
4274
|
stackCnt: d,
|
|
4275
4275
|
levelCoord: r,
|
|
4276
4276
|
level: f,
|
|
@@ -4363,10 +4363,10 @@ function nn(a) {
|
|
|
4363
4363
|
}
|
|
4364
4364
|
class u7 extends c1 {
|
|
4365
4365
|
render() {
|
|
4366
|
-
let { dateEnv: e, options: t, theme: i, viewApi: n } = this.context, { props: l } = this, { date: s, dateProfile: r } = l, o = Xi(s, l.todayRange, null, r),
|
|
4366
|
+
let { dateEnv: e, options: t, theme: i, viewApi: n } = this.context, { props: l } = this, { date: s, dateProfile: r } = l, o = Xi(s, l.todayRange, null, r), c = [an].concat(R2(o, i)), u = e.format(s, l.dayHeaderFormat), d = !o.isDisabled && l.colCnt > 1 ? Qe(this.context, s) : {}, f = e.toDate(s);
|
|
4367
4367
|
e.namedTimeZoneImpl && (f = B3(f, 36e5));
|
|
4368
|
-
let h = Object.assign(Object.assign(Object.assign({ date: f, view: n }, l.extraRenderProps), { text:
|
|
4369
|
-
return A(q1, { elTag: "th", elClasses:
|
|
4368
|
+
let h = Object.assign(Object.assign(Object.assign({ date: f, view: n }, l.extraRenderProps), { text: u }), o);
|
|
4369
|
+
return A(q1, { elTag: "th", elClasses: c, elAttrs: Object.assign({ role: "columnheader", colSpan: l.colSpan, "data-date": o.isDisabled ? void 0 : y2(s) }, l.extraDataAttrs), renderProps: h, generatorName: "dayHeaderContent", customGenerator: t.dayHeaderContent, defaultGenerator: nn, classNameGenerator: t.dayHeaderClassNames, didMount: t.dayHeaderDidMount, willUnmount: t.dayHeaderWillUnmount }, (g) => A("div", { className: "fc-scrollgrid-sync-inner" }, !o.isDisabled && A(g, { elTag: "a", elAttrs: d, elClasses: [
|
|
4370
4370
|
"fc-col-header-cell-cushion",
|
|
4371
4371
|
l.isSticky && "fc-sticky"
|
|
4372
4372
|
] })));
|
|
@@ -4382,7 +4382,7 @@ class h7 extends c1 {
|
|
|
4382
4382
|
isPast: !1,
|
|
4383
4383
|
isToday: !1,
|
|
4384
4384
|
isOther: !1
|
|
4385
|
-
}, o = t.format(s, e.dayHeaderFormat),
|
|
4385
|
+
}, o = t.format(s, e.dayHeaderFormat), c = Object.assign(Object.assign(Object.assign(Object.assign({
|
|
4386
4386
|
// TODO: make this public?
|
|
4387
4387
|
date: s
|
|
4388
4388
|
}, r), { view: n }), e.extraRenderProps), { text: o });
|
|
@@ -4390,10 +4390,10 @@ class h7 extends c1 {
|
|
|
4390
4390
|
an,
|
|
4391
4391
|
...R2(r, i),
|
|
4392
4392
|
...e.extraClassNames || []
|
|
4393
|
-
], elAttrs: Object.assign({ role: "columnheader", colSpan: e.colSpan }, e.extraDataAttrs), renderProps:
|
|
4393
|
+
], elAttrs: Object.assign({ role: "columnheader", colSpan: e.colSpan }, e.extraDataAttrs), renderProps: c, generatorName: "dayHeaderContent", customGenerator: l.dayHeaderContent, defaultGenerator: nn, classNameGenerator: l.dayHeaderClassNames, didMount: l.dayHeaderDidMount, willUnmount: l.dayHeaderWillUnmount }, (u) => A(
|
|
4394
4394
|
"div",
|
|
4395
4395
|
{ className: "fc-scrollgrid-sync-inner" },
|
|
4396
|
-
A(
|
|
4396
|
+
A(u, { elTag: "a", elClasses: [
|
|
4397
4397
|
"fc-col-header-cell-cushion",
|
|
4398
4398
|
e.isSticky && "fc-sticky"
|
|
4399
4399
|
], elAttrs: {
|
|
@@ -4412,7 +4412,7 @@ class ln extends c1 {
|
|
|
4412
4412
|
"tr",
|
|
4413
4413
|
{ role: "row" },
|
|
4414
4414
|
l && l("day"),
|
|
4415
|
-
t.map((
|
|
4415
|
+
t.map((c) => n ? A(u7, { key: c.toISOString(), date: c, dateProfile: i, todayRange: o, colCnt: t.length, dayHeaderFormat: s }) : A(h7, { key: c.getUTCDay(), dow: c.getUTCDay(), dayHeaderFormat: s }))
|
|
4416
4416
|
));
|
|
4417
4417
|
}
|
|
4418
4418
|
}
|
|
@@ -4484,14 +4484,14 @@ class rn {
|
|
|
4484
4484
|
if (i) {
|
|
4485
4485
|
let { firstIndex: l, lastIndex: s } = i, r = l;
|
|
4486
4486
|
for (; r <= s; ) {
|
|
4487
|
-
let o = Math.floor(r / t),
|
|
4487
|
+
let o = Math.floor(r / t), c = Math.min((o + 1) * t, s + 1);
|
|
4488
4488
|
n.push({
|
|
4489
4489
|
row: o,
|
|
4490
4490
|
firstCol: r % t,
|
|
4491
|
-
lastCol: (
|
|
4491
|
+
lastCol: (c - 1) % t,
|
|
4492
4492
|
isStart: i.isStart && r === l,
|
|
4493
|
-
isEnd: i.isEnd &&
|
|
4494
|
-
}), r =
|
|
4493
|
+
isEnd: i.isEnd && c - 1 === s
|
|
4494
|
+
}), r = c;
|
|
4495
4495
|
}
|
|
4496
4496
|
}
|
|
4497
4497
|
return n;
|
|
@@ -4553,10 +4553,10 @@ class on {
|
|
|
4553
4553
|
let r = de(t, !!i), o = _3(e.range, r);
|
|
4554
4554
|
if (o) {
|
|
4555
4555
|
e = Object.assign(Object.assign({}, e), { range: o });
|
|
4556
|
-
let
|
|
4557
|
-
for (let d of
|
|
4558
|
-
d.eventRange =
|
|
4559
|
-
return
|
|
4556
|
+
let c = Hr(e, n, l), u = this.sliceRange(e.range, ...s);
|
|
4557
|
+
for (let d of u)
|
|
4558
|
+
d.eventRange = c;
|
|
4559
|
+
return u;
|
|
4560
4560
|
}
|
|
4561
4561
|
return [];
|
|
4562
4562
|
}
|
|
@@ -4610,12 +4610,12 @@ function v7(a, e, t = {}, i) {
|
|
|
4610
4610
|
return !(a.eventDrag && !m7(a, e, t, i) || a.dateSelection && !g7(a, e, t, i));
|
|
4611
4611
|
}
|
|
4612
4612
|
function m7(a, e, t, i) {
|
|
4613
|
-
let n = e.getCurrentData(), l = a.eventDrag, s = l.mutatedEvents, r = s.defs, o = s.instances,
|
|
4614
|
-
i && (
|
|
4615
|
-
let
|
|
4613
|
+
let n = e.getCurrentData(), l = a.eventDrag, s = l.mutatedEvents, r = s.defs, o = s.instances, c = We(r, l.isEvent ? a.eventUiBases : { "": n.selectionConfig });
|
|
4614
|
+
i && (c = y3(c, i));
|
|
4615
|
+
let u = fr(a.eventStore, l.affectedEvents.instances), d = u.defs, f = u.instances, h = We(d, a.eventUiBases);
|
|
4616
4616
|
for (let g in o) {
|
|
4617
|
-
let m = o[g], p = m.range, y =
|
|
4618
|
-
if (!dn(y.constraints, p,
|
|
4617
|
+
let m = o[g], p = m.range, y = c[m.defId], b = r[m.defId];
|
|
4618
|
+
if (!dn(y.constraints, p, u, a.businessHours, e))
|
|
4619
4619
|
return !1;
|
|
4620
4620
|
let { eventOverlap: C } = e.options, v = typeof C == "function" ? C : null;
|
|
4621
4621
|
for (let x in f) {
|
|
@@ -4637,16 +4637,16 @@ function m7(a, e, t, i) {
|
|
|
4637
4637
|
return !0;
|
|
4638
4638
|
}
|
|
4639
4639
|
function g7(a, e, t, i) {
|
|
4640
|
-
let n = a.eventStore, l = n.defs, s = n.instances, r = a.dateSelection, o = r.range, { selectionConfig:
|
|
4641
|
-
if (i && (
|
|
4640
|
+
let n = a.eventStore, l = n.defs, s = n.instances, r = a.dateSelection, o = r.range, { selectionConfig: c } = e.getCurrentData();
|
|
4641
|
+
if (i && (c = i(c)), !dn(c.constraints, o, n, a.businessHours, e))
|
|
4642
4642
|
return !1;
|
|
4643
|
-
let { selectOverlap:
|
|
4643
|
+
let { selectOverlap: u } = e.options, d = typeof u == "function" ? u : null;
|
|
4644
4644
|
for (let f in s) {
|
|
4645
4645
|
let h = s[f];
|
|
4646
|
-
if (M2(o, h.range) && (
|
|
4646
|
+
if (M2(o, h.range) && (c.overlap === !1 || d && !d(new A1(e, l[h.defId], h), null)))
|
|
4647
4647
|
return !1;
|
|
4648
4648
|
}
|
|
4649
|
-
for (let f of
|
|
4649
|
+
for (let f of c.allows) {
|
|
4650
4650
|
let h = Object.assign(Object.assign({}, t), r);
|
|
4651
4651
|
if (!f(I2(h, e), null))
|
|
4652
4652
|
return !1;
|
|
@@ -4842,13 +4842,13 @@ class N2 extends c1 {
|
|
|
4842
4842
|
render() {
|
|
4843
4843
|
let { props: e, state: t, context: i } = this, n = e.sections || [], l = this.processCols(e.cols), s = this.renderMicroColGroup(l, t.shrinkWidth), r = k7(e.liquid, i);
|
|
4844
4844
|
e.collapsibleWidth && r.push("fc-scrollgrid-collapsible");
|
|
4845
|
-
let o = n.length,
|
|
4846
|
-
for (;
|
|
4847
|
-
d.push(this.renderSection(
|
|
4848
|
-
for (;
|
|
4849
|
-
f.push(this.renderSection(
|
|
4850
|
-
for (;
|
|
4851
|
-
h.push(this.renderSection(
|
|
4845
|
+
let o = n.length, c = 0, u, d = [], f = [], h = [];
|
|
4846
|
+
for (; c < o && (u = n[c]).type === "header"; )
|
|
4847
|
+
d.push(this.renderSection(u, s, !0)), c += 1;
|
|
4848
|
+
for (; c < o && (u = n[c]).type === "body"; )
|
|
4849
|
+
f.push(this.renderSection(u, s, !1)), c += 1;
|
|
4850
|
+
for (; c < o && (u = n[c]).type === "footer"; )
|
|
4851
|
+
h.push(this.renderSection(u, s, !0)), c += 1;
|
|
4852
4852
|
let g = !Ji();
|
|
4853
4853
|
const m = { role: "rowgroup" };
|
|
4854
4854
|
return A("table", {
|
|
@@ -4863,7 +4863,7 @@ class N2 extends c1 {
|
|
|
4863
4863
|
renderChunkTd(e, t, i, n) {
|
|
4864
4864
|
if ("outerContent" in i)
|
|
4865
4865
|
return i.outerContent;
|
|
4866
|
-
let { props: l } = this, { forceYScrollbars: s, scrollerClientWidths: r, scrollerClientHeights: o } = this.state,
|
|
4866
|
+
let { props: l } = this, { forceYScrollbars: s, scrollerClientWidths: r, scrollerClientHeights: o } = this.state, c = E7(l, e), u = hn(l, e), d = l.liquid ? s ? "scroll" : c ? "auto" : "hidden" : "visible", f = e.key, h = z7(e, i, {
|
|
4867
4867
|
tableColGroupNode: t,
|
|
4868
4868
|
tableMinWidth: "",
|
|
4869
4869
|
clientWidth: !l.collapsibleWidth && r[f] !== void 0 ? r[f] : null,
|
|
@@ -4879,8 +4879,8 @@ class N2 extends c1 {
|
|
|
4879
4879
|
role: "presentation"
|
|
4880
4880
|
}, A(
|
|
4881
4881
|
"div",
|
|
4882
|
-
{ className: `fc-scroller-harness${
|
|
4883
|
-
A(b7, { ref: this.scrollerRefs.createRef(f), elRef: this.scrollerElRefs.createRef(f), overflowY: d, overflowX: l.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid:
|
|
4882
|
+
{ className: `fc-scroller-harness${u ? " fc-scroller-harness-liquid" : ""}` },
|
|
4883
|
+
A(b7, { ref: this.scrollerRefs.createRef(f), elRef: this.scrollerElRefs.createRef(f), overflowY: d, overflowX: l.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid: u, liquidIsAbsolute: !0 }, h)
|
|
4884
4884
|
));
|
|
4885
4885
|
}
|
|
4886
4886
|
_handleScrollerEl(e, t) {
|
|
@@ -4909,10 +4909,10 @@ class N2 extends c1 {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
4911
|
for (let r of this.props.sections) {
|
|
4912
|
-
let o = r.key,
|
|
4913
|
-
if (
|
|
4914
|
-
let
|
|
4915
|
-
l[o] = Math.floor(
|
|
4912
|
+
let o = r.key, c = i.currentMap[o];
|
|
4913
|
+
if (c) {
|
|
4914
|
+
let u = c.parentNode;
|
|
4915
|
+
l[o] = Math.floor(u.getBoundingClientRect().width - (n ? e.y : 0)), s[o] = Math.floor(u.getBoundingClientRect().height);
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
4918
4918
|
return { forceYScrollbars: n, scrollerClientWidths: l, scrollerClientHeights: s };
|
|
@@ -4971,12 +4971,12 @@ class j2 extends c1 {
|
|
|
4971
4971
|
return A(F2, Object.assign({}, e, { elTag: "a", elStyle: {
|
|
4972
4972
|
borderColor: l.borderColor,
|
|
4973
4973
|
backgroundColor: l.backgroundColor
|
|
4974
|
-
}, elAttrs: qi(n, t), defaultGenerator: V7, timeText: r }), (o,
|
|
4974
|
+
}, elAttrs: qi(n, t), defaultGenerator: V7, timeText: r }), (o, c) => A(
|
|
4975
4975
|
v1,
|
|
4976
4976
|
null,
|
|
4977
|
-
A(o, { elTag: "div", elClasses: ["fc-event-main"], elStyle: { color:
|
|
4978
|
-
!!
|
|
4979
|
-
!!
|
|
4977
|
+
A(o, { elTag: "div", elClasses: ["fc-event-main"], elStyle: { color: c.textColor } }),
|
|
4978
|
+
!!c.isStartResizable && A("div", { className: "fc-event-resizer fc-event-resizer-start" }),
|
|
4979
|
+
!!c.isEndResizable && A("div", { className: "fc-event-resizer fc-event-resizer-end" })
|
|
4980
4980
|
));
|
|
4981
4981
|
}
|
|
4982
4982
|
}
|
|
@@ -5107,10 +5107,10 @@ class L7 extends c1 {
|
|
|
5107
5107
|
if (l) {
|
|
5108
5108
|
let s = n.getBoundingClientRect(), r = i ? D1(t, ".fc-scrollgrid").getBoundingClientRect().top : l.top, o = e ? l.right - s.width : l.left;
|
|
5109
5109
|
r = Math.max(r, Dt), o = Math.min(o, document.documentElement.clientWidth - Dt - s.width), o = Math.max(o, Dt);
|
|
5110
|
-
let
|
|
5110
|
+
let c = n.offsetParent.getBoundingClientRect();
|
|
5111
5111
|
I0(n, {
|
|
5112
|
-
top: r -
|
|
5113
|
-
left: o -
|
|
5112
|
+
top: r - c.top,
|
|
5113
|
+
left: o - c.left
|
|
5114
5114
|
});
|
|
5115
5115
|
}
|
|
5116
5116
|
}
|
|
@@ -5126,9 +5126,9 @@ class O7 extends u3 {
|
|
|
5126
5126
|
}
|
|
5127
5127
|
render() {
|
|
5128
5128
|
let { options: e, dateEnv: t } = this.context, { props: i } = this, { startDate: n, todayRange: l, dateProfile: s } = i, r = t.format(n, e.dayPopoverFormat);
|
|
5129
|
-
return A(K2, { elRef: this.handleRootEl, date: n, dateProfile: s, todayRange: l }, (o,
|
|
5129
|
+
return A(K2, { elRef: this.handleRootEl, date: n, dateProfile: s, todayRange: l }, (o, c, u) => A(
|
|
5130
5130
|
L7,
|
|
5131
|
-
{ elRef:
|
|
5131
|
+
{ elRef: u.ref, id: i.id, title: r, extraClassNames: ["fc-more-popover"].concat(u.className || []), extraAttrs: u, parentEl: i.parentEl, alignmentEl: i.alignmentEl, alignGridTop: i.alignGridTop, onClose: i.onClose },
|
|
5132
5132
|
P2(e) && A(o, { elTag: "div", elClasses: ["fc-more-popover-misc"] }),
|
|
5133
5133
|
i.children
|
|
5134
5134
|
));
|
|
@@ -5163,11 +5163,11 @@ class gn extends c1 {
|
|
|
5163
5163
|
}, this.handleClick = (e) => {
|
|
5164
5164
|
let { props: t, context: i } = this, { moreLinkClick: n } = i.options, l = q6(t).start;
|
|
5165
5165
|
function s(r) {
|
|
5166
|
-
let { def: o, instance:
|
|
5166
|
+
let { def: o, instance: c, range: u } = r.eventRange;
|
|
5167
5167
|
return {
|
|
5168
|
-
event: new A1(i, o,
|
|
5169
|
-
start: i.dateEnv.toDate(
|
|
5170
|
-
end: i.dateEnv.toDate(
|
|
5168
|
+
event: new A1(i, o, c),
|
|
5169
|
+
start: i.dateEnv.toDate(u.start),
|
|
5170
|
+
end: i.dateEnv.toDate(u.end),
|
|
5171
5171
|
isStart: r.isStart,
|
|
5172
5172
|
isEnd: r.isEnd
|
|
5173
5173
|
};
|
|
@@ -5187,10 +5187,10 @@ class gn extends c1 {
|
|
|
5187
5187
|
render() {
|
|
5188
5188
|
let { props: e, state: t } = this;
|
|
5189
5189
|
return A(E3.Consumer, null, (i) => {
|
|
5190
|
-
let { viewApi: n, options: l, calendarApi: s } = i, { moreLinkText: r } = l, { moreCnt: o } = e,
|
|
5190
|
+
let { viewApi: n, options: l, calendarApi: s } = i, { moreLinkText: r } = l, { moreCnt: o } = e, c = q6(e), u = typeof r == "function" ? r.call(s, o) : `+${o} ${r}`, d = V0(l.moreLinkHint, [o], u), f = {
|
|
5191
5191
|
num: o,
|
|
5192
5192
|
shortText: `+${o}`,
|
|
5193
|
-
text:
|
|
5193
|
+
text: u,
|
|
5194
5194
|
view: n
|
|
5195
5195
|
};
|
|
5196
5196
|
return A(
|
|
@@ -5200,7 +5200,7 @@ class gn extends c1 {
|
|
|
5200
5200
|
...e.elClasses || [],
|
|
5201
5201
|
"fc-more-link"
|
|
5202
5202
|
], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), bi(this.handleClick)), { title: d, "aria-expanded": t.isPopoverOpen, "aria-controls": t.isPopoverOpen ? t.popoverId : "" }), renderProps: f, generatorName: "moreLinkContent", customGenerator: l.moreLinkContent, defaultGenerator: e.defaultGenerator || N7, classNameGenerator: l.moreLinkClassNames, didMount: l.moreLinkDidMount, willUnmount: l.moreLinkWillUnmount }, e.children),
|
|
5203
|
-
t.isPopoverOpen && A(O7, { id: t.popoverId, startDate:
|
|
5203
|
+
t.isPopoverOpen && A(O7, { id: t.popoverId, startDate: c.start, endDate: c.end, dateProfile: e.dateProfile, todayRange: e.todayRange, extraDateSpan: e.extraDateSpan, parentEl: this.parentEl, alignmentEl: e.alignmentElRef ? e.alignmentElRef.current : this.linkEl, alignGridTop: e.alignGridTop, forceTimed: e.forceTimed, onClose: this.handlePopoverClose }, e.popoverContent())
|
|
5204
5204
|
);
|
|
5205
5205
|
});
|
|
5206
5206
|
}
|
|
@@ -5519,17 +5519,17 @@ function $t(a, e, t, i) {
|
|
|
5519
5519
|
return n && (e[a] = n), n;
|
|
5520
5520
|
}
|
|
5521
5521
|
function $7(a, e, t, i) {
|
|
5522
|
-
let n = t[a], l = i[a], s = (
|
|
5522
|
+
let n = t[a], l = i[a], s = (u) => n && n[u] !== null ? n[u] : l && l[u] !== null ? l[u] : null, r = s("component"), o = s("superType"), c = null;
|
|
5523
5523
|
if (o) {
|
|
5524
5524
|
if (o === a)
|
|
5525
5525
|
throw new Error("Can't have a custom view type that references itself");
|
|
5526
|
-
|
|
5526
|
+
c = $t(o, e, t, i);
|
|
5527
5527
|
}
|
|
5528
|
-
return !r &&
|
|
5528
|
+
return !r && c && (r = c.component), r ? {
|
|
5529
5529
|
type: a,
|
|
5530
5530
|
component: r,
|
|
5531
|
-
defaults: Object.assign(Object.assign({},
|
|
5532
|
-
overrides: Object.assign(Object.assign({},
|
|
5531
|
+
defaults: Object.assign(Object.assign({}, c ? c.defaults : {}), n ? n.rawOptions : {}),
|
|
5532
|
+
overrides: Object.assign(Object.assign({}, c ? c.overrides : {}), l ? l.rawOptions : {})
|
|
5533
5533
|
} : null;
|
|
5534
5534
|
}
|
|
5535
5535
|
function G6(a) {
|
|
@@ -5552,12 +5552,12 @@ function to(a, e, t, i) {
|
|
|
5552
5552
|
return y3(s, (r) => ao(r, l, e, t, i));
|
|
5553
5553
|
}
|
|
5554
5554
|
function ao(a, e, t, i, n) {
|
|
5555
|
-
let l = a.overrides.duration || a.defaults.duration || i.duration || t.duration, s = null, r = "", o = "",
|
|
5555
|
+
let l = a.overrides.duration || a.defaults.duration || i.duration || t.duration, s = null, r = "", o = "", c = {};
|
|
5556
5556
|
if (l && (s = io(l), s)) {
|
|
5557
5557
|
let f = Qt(s);
|
|
5558
|
-
r = f.unit, f.value === 1 && (o = r,
|
|
5558
|
+
r = f.unit, f.value === 1 && (o = r, c = e[r] ? e[r].rawOptions : {});
|
|
5559
5559
|
}
|
|
5560
|
-
let
|
|
5560
|
+
let u = (f) => {
|
|
5561
5561
|
let h = f.buttonText || {}, g = a.defaults.buttonTextKey;
|
|
5562
5562
|
return g != null && h[g] != null ? h[g] : h[a.type] != null ? h[a.type] : h[o] != null ? h[o] : null;
|
|
5563
5563
|
}, d = (f) => {
|
|
@@ -5571,10 +5571,10 @@ function ao(a, e, t, i, n) {
|
|
|
5571
5571
|
durationUnit: r,
|
|
5572
5572
|
singleUnit: o,
|
|
5573
5573
|
optionDefaults: a.defaults,
|
|
5574
|
-
optionOverrides: Object.assign(Object.assign({},
|
|
5575
|
-
buttonTextOverride:
|
|
5574
|
+
optionOverrides: Object.assign(Object.assign({}, c), a.overrides),
|
|
5575
|
+
buttonTextOverride: u(i) || u(t) || // constructor-specified buttonText lookup hash takes precedence
|
|
5576
5576
|
a.overrides.buttonText,
|
|
5577
|
-
buttonTextDefault:
|
|
5577
|
+
buttonTextDefault: u(n) || a.defaults.buttonText || u(B0) || a.type,
|
|
5578
5578
|
// not DRY
|
|
5579
5579
|
buttonTitleOverride: d(i) || d(t) || a.overrides.buttonHint,
|
|
5580
5580
|
buttonTitleDefault: d(n) || a.defaults.buttonHint || d(B0)
|
|
@@ -5690,17 +5690,17 @@ function vo(a, e, t, i) {
|
|
|
5690
5690
|
isRefetch: t,
|
|
5691
5691
|
context: i
|
|
5692
5692
|
}, (o) => {
|
|
5693
|
-
let { rawEvents:
|
|
5694
|
-
n.eventSourceSuccess && (
|
|
5693
|
+
let { rawEvents: c } = o;
|
|
5694
|
+
n.eventSourceSuccess && (c = n.eventSourceSuccess.call(l, c, o.response) || c), a.success && (c = a.success.call(l, c, o.response) || c), i.dispatch({
|
|
5695
5695
|
type: "RECEIVE_EVENTS",
|
|
5696
5696
|
sourceId: a.sourceId,
|
|
5697
5697
|
fetchId: r,
|
|
5698
5698
|
fetchRange: e,
|
|
5699
|
-
rawEvents:
|
|
5699
|
+
rawEvents: c
|
|
5700
5700
|
});
|
|
5701
5701
|
}, (o) => {
|
|
5702
|
-
let
|
|
5703
|
-
n.eventSourceFailure && (n.eventSourceFailure.call(l, o),
|
|
5702
|
+
let c = !1;
|
|
5703
|
+
n.eventSourceFailure && (n.eventSourceFailure.call(l, o), c = !0), a.failure && (a.failure(o), c = !0), c || console.warn(o.message, o), i.dispatch({
|
|
5704
5704
|
type: "RECEIVE_EVENT_ERROR",
|
|
5705
5705
|
sourceId: a.sourceId,
|
|
5706
5706
|
fetchId: r,
|
|
@@ -5785,14 +5785,14 @@ function Eo(a, e, t, i, n) {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
function Z6(a, e, t, i, n, l) {
|
|
5787
5787
|
let s = {}, r = [], o = !1;
|
|
5788
|
-
for (let
|
|
5789
|
-
let
|
|
5790
|
-
s[
|
|
5788
|
+
for (let c in a) {
|
|
5789
|
+
let u = a[c], d = zo(u, e, t, i, n, l);
|
|
5790
|
+
s[c] = d.widgets, r.push(...d.viewsWithButtons), o = o || d.hasTitle;
|
|
5791
5791
|
}
|
|
5792
5792
|
return { sectionWidgets: s, viewsWithButtons: r, hasTitle: o };
|
|
5793
5793
|
}
|
|
5794
5794
|
function zo(a, e, t, i, n, l) {
|
|
5795
|
-
let s = e.direction === "rtl", r = e.customButtons || {}, o = t.buttonText || {},
|
|
5795
|
+
let s = e.direction === "rtl", r = e.customButtons || {}, o = t.buttonText || {}, c = e.buttonText || {}, u = t.buttonHints || {}, d = e.buttonHints || {}, f = a ? a.split(" ") : [], h = [], g = !1;
|
|
5796
5796
|
return { widgets: f.map((p) => p.split(",").map((y) => {
|
|
5797
5797
|
if (y === "title")
|
|
5798
5798
|
return g = !0, { buttonName: y };
|
|
@@ -5815,17 +5815,17 @@ function zo(a, e, t, i, n, l) {
|
|
|
5815
5815
|
} else if (l[y])
|
|
5816
5816
|
if (v = () => {
|
|
5817
5817
|
l[y]();
|
|
5818
|
-
}, (x = o[y]) || (B = i.getIconClass(y, s)) || (x =
|
|
5818
|
+
}, (x = o[y]) || (B = i.getIconClass(y, s)) || (x = c[y]), y === "prevYear" || y === "nextYear") {
|
|
5819
5819
|
let R = y === "prevYear" ? "prev" : "next";
|
|
5820
|
-
T = V0(
|
|
5821
|
-
|
|
5820
|
+
T = V0(u[R] || d[R], [
|
|
5821
|
+
c.year || "year",
|
|
5822
5822
|
"year"
|
|
5823
|
-
],
|
|
5823
|
+
], c[y]);
|
|
5824
5824
|
} else
|
|
5825
|
-
T = (R) => V0(
|
|
5826
|
-
|
|
5825
|
+
T = (R) => V0(u[y] || d[y], [
|
|
5826
|
+
c[R] || R,
|
|
5827
5827
|
R
|
|
5828
|
-
],
|
|
5828
|
+
], c[y]);
|
|
5829
5829
|
return { buttonName: y, buttonClick: v, buttonIcon: B, buttonText: x, buttonHint: T };
|
|
5830
5830
|
})), viewsWithButtons: h, hasTitle: g };
|
|
5831
5831
|
}
|
|
@@ -5914,8 +5914,8 @@ const Vo = z3({
|
|
|
5914
5914
|
eventSourceDefs: [Io]
|
|
5915
5915
|
});
|
|
5916
5916
|
function Bo(a, e, t) {
|
|
5917
|
-
let { dateEnv: i, options: n } = t, l, s, r, o,
|
|
5918
|
-
return l = a.startParam, l == null && (l = n.startParam), s = a.endParam, s == null && (s = n.endParam), r = a.timeZoneParam, r == null && (r = n.timeZoneParam), typeof a.extraParams == "function" ? o = a.extraParams() : o = a.extraParams || {}, Object.assign(
|
|
5917
|
+
let { dateEnv: i, options: n } = t, l, s, r, o, c = {};
|
|
5918
|
+
return l = a.startParam, l == null && (l = n.startParam), s = a.endParam, s == null && (s = n.endParam), r = a.timeZoneParam, r == null && (r = n.timeZoneParam), typeof a.extraParams == "function" ? o = a.extraParams() : o = a.extraParams || {}, Object.assign(c, o), c[l] = i.formatIso(e.start), c[s] = i.formatIso(e.end), i.timeZone !== "local" && (c[r] = i.timeZone), c;
|
|
5919
5919
|
}
|
|
5920
5920
|
const Ro = {
|
|
5921
5921
|
daysOfWeek: z,
|
|
@@ -5958,8 +5958,8 @@ const Ho = z3({
|
|
|
5958
5958
|
function Lo(a, e, t, i, n) {
|
|
5959
5959
|
let l = a ? Ci(a) : null, s = m1(n.start), r = n.end, o = [];
|
|
5960
5960
|
for (e && (e.milliseconds < 0 ? r = M1(r, 1) : e.milliseconds >= 1e3 * 60 * 60 * 24 && (s = M1(s, -1))); s < r; ) {
|
|
5961
|
-
let
|
|
5962
|
-
(!l || l[s.getUTCDay()]) && (e ?
|
|
5961
|
+
let c;
|
|
5962
|
+
(!l || l[s.getUTCDay()]) && (e ? c = i.add(s, e) : c = s, o.push(i.createMarker(t.toDate(c)))), s = M1(s, 1);
|
|
5963
5963
|
}
|
|
5964
5964
|
return o;
|
|
5965
5965
|
}
|
|
@@ -6109,13 +6109,13 @@ class Wo {
|
|
|
6109
6109
|
g3(o.activeRange, r) || (r = o.currentRange.start);
|
|
6110
6110
|
for (let f of i.pluginHooks.contextInit)
|
|
6111
6111
|
f(s);
|
|
6112
|
-
let
|
|
6112
|
+
let c = co(i.calendarOptions, o, s), u = {
|
|
6113
6113
|
dynamicOptionOverrides: t,
|
|
6114
6114
|
currentViewType: n,
|
|
6115
6115
|
currentDate: r,
|
|
6116
6116
|
dateProfile: o,
|
|
6117
6117
|
businessHours: this.parseContextBusinessHours(s),
|
|
6118
|
-
eventSources:
|
|
6118
|
+
eventSources: c,
|
|
6119
6119
|
eventUiBases: {},
|
|
6120
6120
|
eventStore: Q1(),
|
|
6121
6121
|
renderableEventStore: Q1(),
|
|
@@ -6124,10 +6124,10 @@ class Wo {
|
|
|
6124
6124
|
eventDrag: null,
|
|
6125
6125
|
eventResize: null,
|
|
6126
6126
|
selectionConfig: this.buildViewUiProps(s).selectionConfig
|
|
6127
|
-
}, d = Object.assign(Object.assign({}, s),
|
|
6127
|
+
}, d = Object.assign(Object.assign({}, s), u);
|
|
6128
6128
|
for (let f of i.pluginHooks.reducers)
|
|
6129
|
-
Object.assign(
|
|
6130
|
-
It(
|
|
6129
|
+
Object.assign(u, f(null, null, d));
|
|
6130
|
+
It(u, s) && this.emitter.trigger("loading", !0), this.state = u, this.updateData(), this.actionRunner.resume();
|
|
6131
6131
|
}
|
|
6132
6132
|
resetOptions(e, t) {
|
|
6133
6133
|
let { props: i } = this;
|
|
@@ -6138,7 +6138,7 @@ class Wo {
|
|
|
6138
6138
|
_handleAction(e) {
|
|
6139
6139
|
let { props: t, state: i, emitter: n } = this, l = ro(i.dynamicOptionOverrides, e), s = this.computeOptionsData(t.optionOverrides, l, t.calendarApi), r = no(i.currentViewType, e), o = this.computeCurrentViewData(r, s, t.optionOverrides, l);
|
|
6140
6140
|
t.calendarApi.currentDataManager = this, n.setThisContext(t.calendarApi), n.setOptions(o.options);
|
|
6141
|
-
let
|
|
6141
|
+
let c = {
|
|
6142
6142
|
nowManager: this.nowManager,
|
|
6143
6143
|
dateEnv: s.dateEnv,
|
|
6144
6144
|
options: s.calendarOptions,
|
|
@@ -6147,37 +6147,37 @@ class Wo {
|
|
|
6147
6147
|
dispatch: this.dispatch,
|
|
6148
6148
|
emitter: n,
|
|
6149
6149
|
getCurrentData: this.getCurrentData
|
|
6150
|
-
}, { currentDate:
|
|
6151
|
-
this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (d = o.dateProfileGenerator.build(
|
|
6150
|
+
}, { currentDate: u, dateProfile: d } = i;
|
|
6151
|
+
this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (d = o.dateProfileGenerator.build(u)), u = lo(u, e), d = oo(d, e, u, o.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
6152
6152
|
e.type === "NEXT" || // "
|
|
6153
|
-
!g3(d.currentRange,
|
|
6154
|
-
let f = uo(i.eventSources, e, d,
|
|
6153
|
+
!g3(d.currentRange, u)) && (u = d.currentRange.start);
|
|
6154
|
+
let f = uo(i.eventSources, e, d, c), h = cr(i.eventStore, e, f, d, c), m = zn(f) && !o.options.progressiveEventRendering && i.renderableEventStore || h, { eventUiSingleBase: p, selectionConfig: y } = this.buildViewUiProps(c), b = this.buildEventUiBySource(f), C = this.buildEventUiBases(m.defs, p, b), v = {
|
|
6155
6155
|
dynamicOptionOverrides: l,
|
|
6156
6156
|
currentViewType: r,
|
|
6157
|
-
currentDate:
|
|
6157
|
+
currentDate: u,
|
|
6158
6158
|
dateProfile: d,
|
|
6159
6159
|
eventSources: f,
|
|
6160
6160
|
eventStore: h,
|
|
6161
6161
|
renderableEventStore: m,
|
|
6162
6162
|
selectionConfig: y,
|
|
6163
6163
|
eventUiBases: C,
|
|
6164
|
-
businessHours: this.parseContextBusinessHours(
|
|
6164
|
+
businessHours: this.parseContextBusinessHours(c),
|
|
6165
6165
|
dateSelection: Ao(i.dateSelection, e),
|
|
6166
6166
|
eventSelection: yo(i.eventSelection, e),
|
|
6167
6167
|
eventDrag: bo(i.eventDrag, e),
|
|
6168
6168
|
eventResize: wo(i.eventResize, e)
|
|
6169
|
-
}, B = Object.assign(Object.assign({},
|
|
6169
|
+
}, B = Object.assign(Object.assign({}, c), v);
|
|
6170
6170
|
for (let R of s.pluginHooks.reducers)
|
|
6171
6171
|
Object.assign(v, R(i, e, B));
|
|
6172
|
-
let x = It(i,
|
|
6172
|
+
let x = It(i, c), T = It(v, c);
|
|
6173
6173
|
!x && T ? n.trigger("loading", !0) : x && !T && n.trigger("loading", !1), this.state = v, t.onAction && t.onAction(e);
|
|
6174
6174
|
}
|
|
6175
6175
|
updateData() {
|
|
6176
|
-
let { props: e, state: t } = this, i = this.data, n = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), l = this.computeCurrentViewData(t.currentViewType, n, e.optionOverrides, t.dynamicOptionOverrides), s = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(t.dateProfile, l.options, n.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, n), l), t), r = n.pluginHooks.optionChangeHandlers, o = i && i.calendarOptions,
|
|
6177
|
-
if (o && o !==
|
|
6178
|
-
o.timeZone !==
|
|
6179
|
-
for (let
|
|
6180
|
-
(this.optionsForHandling.indexOf(
|
|
6176
|
+
let { props: e, state: t } = this, i = this.data, n = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), l = this.computeCurrentViewData(t.currentViewType, n, e.optionOverrides, t.dynamicOptionOverrides), s = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(t.dateProfile, l.options, n.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, n), l), t), r = n.pluginHooks.optionChangeHandlers, o = i && i.calendarOptions, c = n.calendarOptions;
|
|
6177
|
+
if (o && o !== c) {
|
|
6178
|
+
o.timeZone !== c.timeZone && (t.eventSources = s.eventSources = ho(s.eventSources, t.dateProfile, s), t.eventStore = s.eventStore = K6(s.eventStore, i.dateEnv, s.dateEnv), t.renderableEventStore = s.renderableEventStore = K6(s.renderableEventStore, i.dateEnv, s.dateEnv));
|
|
6179
|
+
for (let u in r)
|
|
6180
|
+
(this.optionsForHandling.indexOf(u) !== -1 || o[u] !== c[u]) && r[u](c[u], s);
|
|
6181
6181
|
}
|
|
6182
6182
|
this.optionsForHandling = [], e.onData && e.onData(s);
|
|
6183
6183
|
}
|
|
@@ -6186,12 +6186,12 @@ class Wo {
|
|
|
6186
6186
|
return this.stableCalendarOptionsData;
|
|
6187
6187
|
let { refinedOptions: n, pluginHooks: l, localeDefaults: s, availableLocaleData: r, extra: o } = this.processRawCalendarOptions(e, t);
|
|
6188
6188
|
ea(o);
|
|
6189
|
-
let
|
|
6189
|
+
let c = this.buildDateEnv(n.timeZone, n.locale, n.weekNumberCalculation, n.firstDay, n.weekText, l, r, n.defaultRangeSeparator), u = this.buildViewSpecs(l.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, s), d = this.buildTheme(n, l), f = this.parseToolbars(n, this.stableOptionOverrides, d, u, i);
|
|
6190
6190
|
return this.stableCalendarOptionsData = {
|
|
6191
6191
|
calendarOptions: n,
|
|
6192
6192
|
pluginHooks: l,
|
|
6193
|
-
dateEnv:
|
|
6194
|
-
viewSpecs:
|
|
6193
|
+
dateEnv: c,
|
|
6194
|
+
viewSpecs: u,
|
|
6195
6195
|
theme: d,
|
|
6196
6196
|
toolbarConfig: f,
|
|
6197
6197
|
localeDefaults: s,
|
|
@@ -6204,21 +6204,21 @@ class Wo {
|
|
|
6204
6204
|
B0,
|
|
6205
6205
|
e,
|
|
6206
6206
|
t
|
|
6207
|
-
]), l = this.organizeRawLocales(i), s = l.map, r = this.buildLocale(n || l.defaultCode, s).options, o = this.buildPluginHooks(e.plugins || [], jo),
|
|
6207
|
+
]), l = this.organizeRawLocales(i), s = l.map, r = this.buildLocale(n || l.defaultCode, s).options, o = this.buildPluginHooks(e.plugins || [], jo), c = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), o.listenerRefiners), o.optionRefiners), u = {}, d = wt([
|
|
6208
6208
|
B0,
|
|
6209
6209
|
r,
|
|
6210
6210
|
e,
|
|
6211
6211
|
t
|
|
6212
6212
|
]), f = {}, h = this.currentCalendarOptionsInput, g = this.currentCalendarOptionsRefined, m = !1;
|
|
6213
6213
|
for (let p in d)
|
|
6214
|
-
this.optionsForRefining.indexOf(p) === -1 && (d[p] === h[p] || N3[p] && p in h && N3[p](h[p], d[p])) ? f[p] = g[p] :
|
|
6214
|
+
this.optionsForRefining.indexOf(p) === -1 && (d[p] === h[p] || N3[p] && p in h && N3[p](h[p], d[p])) ? f[p] = g[p] : c[p] ? (f[p] = c[p](d[p]), m = !0) : u[p] = h[p];
|
|
6215
6215
|
return m && (this.currentCalendarOptionsInput = d, this.currentCalendarOptionsRefined = f, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = t), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
6216
6216
|
rawOptions: this.currentCalendarOptionsInput,
|
|
6217
6217
|
refinedOptions: this.currentCalendarOptionsRefined,
|
|
6218
6218
|
pluginHooks: o,
|
|
6219
6219
|
availableLocaleData: l,
|
|
6220
6220
|
localeDefaults: r,
|
|
6221
|
-
extra:
|
|
6221
|
+
extra: u
|
|
6222
6222
|
};
|
|
6223
6223
|
}
|
|
6224
6224
|
_computeCurrentViewData(e, t, i, n) {
|
|
@@ -6246,8 +6246,8 @@ class Wo {
|
|
|
6246
6246
|
validRangeInput: s.validRange,
|
|
6247
6247
|
visibleRangeInput: s.visibleRange,
|
|
6248
6248
|
fixedWeekCount: s.fixedWeekCount
|
|
6249
|
-
}),
|
|
6250
|
-
return { viewSpec: l, options: s, dateProfileGenerator: o, viewApi:
|
|
6249
|
+
}), c = this.buildViewApi(e, this.getCurrentData, t.dateEnv);
|
|
6250
|
+
return { viewSpec: l, options: s, dateProfileGenerator: o, viewApi: c };
|
|
6251
6251
|
}
|
|
6252
6252
|
processRawViewOptions(e, t, i, n, l) {
|
|
6253
6253
|
let s = wt([
|
|
@@ -6257,9 +6257,9 @@ class Wo {
|
|
|
6257
6257
|
n,
|
|
6258
6258
|
e.optionOverrides,
|
|
6259
6259
|
l
|
|
6260
|
-
]), r = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), xs), t.listenerRefiners), t.optionRefiners), o = {},
|
|
6260
|
+
]), r = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), xs), t.listenerRefiners), t.optionRefiners), o = {}, c = this.currentViewOptionsInput, u = this.currentViewOptionsRefined, d = !1, f = {};
|
|
6261
6261
|
for (let h in s)
|
|
6262
|
-
s[h] ===
|
|
6262
|
+
s[h] === c[h] || N3[h] && N3[h](s[h], c[h]) ? o[h] = u[h] : (s[h] === this.currentCalendarOptionsInput[h] || N3[h] && N3[h](s[h], this.currentCalendarOptionsInput[h]) ? h in this.currentCalendarOptionsRefined && (o[h] = this.currentCalendarOptionsRefined[h]) : r[h] ? o[h] = r[h](s[h]) : f[h] = s[h], d = !0);
|
|
6263
6263
|
return d && (this.currentViewOptionsInput = s, this.currentViewOptionsRefined = o), {
|
|
6264
6264
|
rawOptions: this.currentViewOptionsInput,
|
|
6265
6265
|
refinedOptions: this.currentViewOptionsRefined,
|
|
@@ -6348,12 +6348,12 @@ class $o extends c1 {
|
|
|
6348
6348
|
renderWidgetGroup(e) {
|
|
6349
6349
|
let { props: t } = this, { theme: i } = this.context, n = [], l = !0;
|
|
6350
6350
|
for (let s of e) {
|
|
6351
|
-
let { buttonName: r, buttonClick: o, buttonText:
|
|
6351
|
+
let { buttonName: r, buttonClick: o, buttonText: c, buttonIcon: u, buttonHint: d } = s;
|
|
6352
6352
|
if (r === "title")
|
|
6353
6353
|
l = !1, n.push(A("h2", { className: "fc-toolbar-title", id: t.titleId }, t.title));
|
|
6354
6354
|
else {
|
|
6355
6355
|
let f = r === t.activeButton, h = !t.isTodayEnabled && r === "today" || !t.isPrevEnabled && r === "prev" || !t.isNextEnabled && r === "next", g = [`fc-${r}-button`, i.getClass("button")];
|
|
6356
|
-
f && g.push(i.getClass("buttonActive")), n.push(A("button", { type: "button", title: typeof d == "function" ? d(t.navUnit) : d, disabled: h, "aria-pressed": f, className: g.join(" "), onClick: o },
|
|
6356
|
+
f && g.push(i.getClass("buttonActive")), n.push(A("button", { type: "button", title: typeof d == "function" ? d(t.navUnit) : d, disabled: h, "aria-pressed": f, className: g.join(" "), onClick: o }, c || (u ? A("span", { className: u, role: "img" }) : "")));
|
|
6357
6357
|
}
|
|
6358
6358
|
}
|
|
6359
6359
|
if (n.length > 1) {
|
|
@@ -6499,19 +6499,19 @@ class i5 extends t0 {
|
|
|
6499
6499
|
return A(
|
|
6500
6500
|
E3.Provider,
|
|
6501
6501
|
{ value: r },
|
|
6502
|
-
A(E0, { unit: "day" }, (
|
|
6503
|
-
let
|
|
6502
|
+
A(E0, { unit: "day" }, (c) => {
|
|
6503
|
+
let u = this.buildToolbarProps(e.viewSpec, e.dateProfile, e.dateProfileGenerator, e.currentDate, c, e.viewTitle);
|
|
6504
6504
|
return A(
|
|
6505
6505
|
v1,
|
|
6506
6506
|
null,
|
|
6507
|
-
t.header && A(ta, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: t.header, titleId: o },
|
|
6507
|
+
t.header && A(ta, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: t.header, titleId: o }, u)),
|
|
6508
6508
|
A(
|
|
6509
6509
|
e5,
|
|
6510
6510
|
{ liquid: n, height: l, aspectRatio: s, labeledById: o },
|
|
6511
6511
|
this.renderView(e),
|
|
6512
6512
|
this.buildAppendContent()
|
|
6513
6513
|
),
|
|
6514
|
-
t.footer && A(ta, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: t.footer, titleId: "" },
|
|
6514
|
+
t.footer && A(ta, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: t.footer, titleId: "" }, u))
|
|
6515
6515
|
);
|
|
6516
6516
|
})
|
|
6517
6517
|
);
|
|
@@ -6778,8 +6778,8 @@ class p5 extends u3 {
|
|
|
6778
6778
|
let l = this.context.pluginHooks.scrollGridImpl;
|
|
6779
6779
|
if (!l)
|
|
6780
6780
|
throw new Error("No ScrollGrid implementation");
|
|
6781
|
-
let { props: s, context: r } = this, o = !s.forPrint && Ye(r.options),
|
|
6782
|
-
return e &&
|
|
6781
|
+
let { props: s, context: r } = this, o = !s.forPrint && Ye(r.options), c = !s.forPrint && fn(r.options), u = [];
|
|
6782
|
+
return e && u.push({
|
|
6783
6783
|
type: "header",
|
|
6784
6784
|
key: "header",
|
|
6785
6785
|
isSticky: o,
|
|
@@ -6789,7 +6789,7 @@ class p5 extends u3 {
|
|
|
6789
6789
|
tableClassName: "fc-col-header",
|
|
6790
6790
|
rowContent: e
|
|
6791
6791
|
}]
|
|
6792
|
-
}),
|
|
6792
|
+
}), u.push({
|
|
6793
6793
|
type: "body",
|
|
6794
6794
|
key: "body",
|
|
6795
6795
|
liquid: !0,
|
|
@@ -6797,7 +6797,7 @@ class p5 extends u3 {
|
|
|
6797
6797
|
key: "main",
|
|
6798
6798
|
content: t
|
|
6799
6799
|
}]
|
|
6800
|
-
}),
|
|
6800
|
+
}), c && u.push({
|
|
6801
6801
|
type: "footer",
|
|
6802
6802
|
key: "footer",
|
|
6803
6803
|
isSticky: !0,
|
|
@@ -6808,7 +6808,7 @@ class p5 extends u3 {
|
|
|
6808
6808
|
}), A(
|
|
6809
6809
|
Ue,
|
|
6810
6810
|
{ elClasses: ["fc-daygrid"], viewSpec: r.viewSpec },
|
|
6811
|
-
A(l, { liquid: !s.isHeightAuto && !s.forPrint, forPrint: s.forPrint, collapsibleWidth: s.forPrint, colGroups: [{ cols: [{ span: i, minWidth: n }] }], sections:
|
|
6811
|
+
A(l, { liquid: !s.isHeightAuto && !s.forPrint, forPrint: s.forPrint, collapsibleWidth: s.forPrint, colGroups: [{ cols: [{ span: i, minWidth: n }] }], sections: u })
|
|
6812
6812
|
);
|
|
6813
6813
|
}
|
|
6814
6814
|
}
|
|
@@ -6911,20 +6911,20 @@ class y5 extends u3 {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
render() {
|
|
6913
6913
|
let { context: e, props: t, state: i, rootElRef: n } = this, { options: l, dateEnv: s } = e, { date: r, dateProfile: o } = t;
|
|
6914
|
-
const
|
|
6914
|
+
const c = t.showDayNumber && w5(r, o.currentRange, s);
|
|
6915
6915
|
return A(K2, { elTag: "td", elRef: this.handleRootEl, elClasses: [
|
|
6916
6916
|
"fc-daygrid-day",
|
|
6917
6917
|
...t.extraClassNames || []
|
|
6918
|
-
], elAttrs: Object.assign(Object.assign(Object.assign({}, t.extraDataAttrs), t.showDayNumber ? { "aria-labelledby": i.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: b5, date: r, dateProfile: o, todayRange: t.todayRange, showDayNumber: t.showDayNumber, isMonthStart:
|
|
6918
|
+
], elAttrs: Object.assign(Object.assign(Object.assign({}, t.extraDataAttrs), t.showDayNumber ? { "aria-labelledby": i.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: b5, date: r, dateProfile: o, todayRange: t.todayRange, showDayNumber: t.showDayNumber, isMonthStart: c, extraRenderProps: t.extraRenderProps }, (u, d) => A(
|
|
6919
6919
|
"div",
|
|
6920
6920
|
{ ref: t.innerElRef, className: "fc-daygrid-day-frame fc-scrollgrid-sync-inner", style: { minHeight: t.minHeight } },
|
|
6921
6921
|
t.showWeekNumber && A(mn, { elTag: "a", elClasses: ["fc-daygrid-week-number"], elAttrs: Qe(e, r, "week"), date: r, defaultFormat: A5 }),
|
|
6922
6922
|
!d.isDisabled && (t.showDayNumber || P2(l) || t.forceDayTop) ? A(
|
|
6923
6923
|
"div",
|
|
6924
6924
|
{ className: "fc-daygrid-day-top" },
|
|
6925
|
-
A(
|
|
6925
|
+
A(u, { elTag: "a", elClasses: [
|
|
6926
6926
|
"fc-daygrid-day-number",
|
|
6927
|
-
|
|
6927
|
+
c && "fc-daygrid-month-start"
|
|
6928
6928
|
], elAttrs: Object.assign(Object.assign({}, Qe(e, r)), { id: i.dayNumberId }) })
|
|
6929
6929
|
) : t.showDayNumber ? (
|
|
6930
6930
|
// for creating correct amount of space (see issue #7162)
|
|
@@ -6952,8 +6952,8 @@ function b5(a) {
|
|
|
6952
6952
|
return a.dayNumberText || A(v1, null, " ");
|
|
6953
6953
|
}
|
|
6954
6954
|
function w5(a, e, t) {
|
|
6955
|
-
const { start: i, end: n } = e, l = B3(n, -1), s = t.getYear(i), r = t.getMonth(i), o = t.getYear(l),
|
|
6956
|
-
return !(s === o && r ===
|
|
6955
|
+
const { start: i, end: n } = e, l = B3(n, -1), s = t.getYear(i), r = t.getMonth(i), o = t.getYear(l), c = t.getMonth(l);
|
|
6956
|
+
return !(s === o && r === c) && // first date in current view?
|
|
6957
6957
|
(a.valueOf() === i.valueOf() || // a month-start that's within the current range?
|
|
6958
6958
|
t.getDay(a) === 1 && a.valueOf() < n.valueOf());
|
|
6959
6959
|
}
|
|
@@ -6969,7 +6969,7 @@ function E5(a, e, t, i, n, l, s) {
|
|
|
6969
6969
|
return n[b] || 1;
|
|
6970
6970
|
});
|
|
6971
6971
|
r.allowReslicing = !0, r.strictOrder = i, e === !0 || t === !0 ? (r.maxCoord = l, r.hiddenConsumes = !0) : typeof e == "number" ? r.maxStackCnt = e : typeof t == "number" && (r.maxStackCnt = t, r.hiddenConsumes = !0);
|
|
6972
|
-
let o = [],
|
|
6972
|
+
let o = [], c = [];
|
|
6973
6973
|
for (let y = 0; y < a.length; y += 1) {
|
|
6974
6974
|
let b = a[y], C = Rn(b);
|
|
6975
6975
|
n[C] != null ? o.push({
|
|
@@ -6978,10 +6978,10 @@ function E5(a, e, t, i, n, l, s) {
|
|
|
6978
6978
|
start: b.firstCol,
|
|
6979
6979
|
end: b.lastCol + 1
|
|
6980
6980
|
}
|
|
6981
|
-
}) :
|
|
6981
|
+
}) : c.push(b);
|
|
6982
6982
|
}
|
|
6983
|
-
let
|
|
6984
|
-
for (let y of
|
|
6983
|
+
let u = r.addSegs(o), d = r.toRects(), { singleColPlacements: f, multiColPlacements: h, leftoverMargins: g } = z5(d, a, s), m = [], p = [];
|
|
6984
|
+
for (let y of c) {
|
|
6985
6985
|
h[y.firstCol].push({
|
|
6986
6986
|
seg: y,
|
|
6987
6987
|
isVisible: !1,
|
|
@@ -7000,7 +7000,7 @@ function E5(a, e, t, i, n, l, s) {
|
|
|
7000
7000
|
}
|
|
7001
7001
|
for (let y = 0; y < s.length; y += 1)
|
|
7002
7002
|
m.push(0);
|
|
7003
|
-
for (let y of
|
|
7003
|
+
for (let y of u) {
|
|
7004
7004
|
let b = a[y.index], C = y.span;
|
|
7005
7005
|
h[C.start].push({
|
|
7006
7006
|
seg: u0(b, C.start, C.end, s),
|
|
@@ -7025,22 +7025,22 @@ function E5(a, e, t, i, n, l, s) {
|
|
|
7025
7025
|
function z5(a, e, t) {
|
|
7026
7026
|
let i = C5(a, t.length), n = [], l = [], s = [];
|
|
7027
7027
|
for (let r = 0; r < t.length; r += 1) {
|
|
7028
|
-
let o = i[r],
|
|
7028
|
+
let o = i[r], c = [], u = 0, d = 0;
|
|
7029
7029
|
for (let h of o) {
|
|
7030
7030
|
let g = e[h.index];
|
|
7031
|
-
|
|
7031
|
+
c.push({
|
|
7032
7032
|
seg: u0(g, r, r + 1, t),
|
|
7033
7033
|
isVisible: !0,
|
|
7034
7034
|
isAbsolute: !1,
|
|
7035
7035
|
absoluteTop: h.levelCoord,
|
|
7036
|
-
marginTop: h.levelCoord -
|
|
7037
|
-
}),
|
|
7036
|
+
marginTop: h.levelCoord - u
|
|
7037
|
+
}), u = h.levelCoord + h.thickness;
|
|
7038
7038
|
}
|
|
7039
7039
|
let f = [];
|
|
7040
|
-
|
|
7040
|
+
u = 0, d = 0;
|
|
7041
7041
|
for (let h of o) {
|
|
7042
7042
|
let g = e[h.index], m = h.span.end - h.span.start > 1, p = h.span.start === r;
|
|
7043
|
-
d += h.levelCoord -
|
|
7043
|
+
d += h.levelCoord - u, u = h.levelCoord + h.thickness, m ? (d += h.thickness, p && f.push({
|
|
7044
7044
|
seg: u0(g, h.span.start, h.span.end, t),
|
|
7045
7045
|
isVisible: !0,
|
|
7046
7046
|
isAbsolute: !0,
|
|
@@ -7055,7 +7055,7 @@ function z5(a, e, t) {
|
|
|
7055
7055
|
// claim the margin
|
|
7056
7056
|
}), d = 0);
|
|
7057
7057
|
}
|
|
7058
|
-
n.push(
|
|
7058
|
+
n.push(c), l.push(f), s.push(d);
|
|
7059
7059
|
}
|
|
7060
7060
|
return { singleColPlacements: n, multiColPlacements: l, leftoverMargins: s };
|
|
7061
7061
|
}
|
|
@@ -7095,13 +7095,13 @@ class M5 extends tn {
|
|
|
7095
7095
|
handleInvalidInsertion(e, t, i) {
|
|
7096
7096
|
const { entriesByLevel: n, forceHidden: l } = this, { touchingEntry: s, touchingLevel: r, touchingLateral: o } = e;
|
|
7097
7097
|
if (this.hiddenConsumes && s) {
|
|
7098
|
-
const
|
|
7099
|
-
if (!l[
|
|
7098
|
+
const c = Q3(s);
|
|
7099
|
+
if (!l[c])
|
|
7100
7100
|
if (this.allowReslicing) {
|
|
7101
|
-
const
|
|
7102
|
-
l[d] = !0, n[r][o] =
|
|
7101
|
+
const u = Object.assign(Object.assign({}, s), { span: L2(s.span, t.span) }), d = Q3(u);
|
|
7102
|
+
l[d] = !0, n[r][o] = u, i.push(u), this.splitEntry(s, t, i);
|
|
7103
7103
|
} else
|
|
7104
|
-
l[
|
|
7104
|
+
l[c] = !0, i.push(s);
|
|
7105
7105
|
}
|
|
7106
7106
|
super.handleInvalidInsertion(e, t, i);
|
|
7107
7107
|
}
|
|
@@ -7117,7 +7117,7 @@ class Tn extends u3 {
|
|
|
7117
7117
|
};
|
|
7118
7118
|
}
|
|
7119
7119
|
render() {
|
|
7120
|
-
let { props: e, state: t, context: i } = this, { options: n } = i, l = e.cells.length, s = fe(e.businessHourSegs, l), r = fe(e.bgEventSegs, l), o = fe(this.getHighlightSegs(), l),
|
|
7120
|
+
let { props: e, state: t, context: i } = this, { options: n } = i, l = e.cells.length, s = fe(e.businessHourSegs, l), r = fe(e.bgEventSegs, l), o = fe(this.getHighlightSegs(), l), c = fe(this.getMirrorSegs(), l), { singleColPlacements: u, multiColPlacements: d, moreCnts: f, moreMarginTops: h } = E5(Wi(e.fgEventSegs, n.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, n.eventOrderStrict, t.segHeights, t.maxContentHeight, e.cells), g = (
|
|
7121
7121
|
// TODO: messy way to compute this
|
|
7122
7122
|
e.eventDrag && e.eventDrag.affectedInstances || e.eventResize && e.eventResize.affectedInstances || {}
|
|
7123
7123
|
);
|
|
@@ -7126,8 +7126,8 @@ class Tn extends u3 {
|
|
|
7126
7126
|
{ ref: this.rootElRef, role: "row" },
|
|
7127
7127
|
e.renderIntro && e.renderIntro(),
|
|
7128
7128
|
e.cells.map((m, p) => {
|
|
7129
|
-
let y = this.renderFgSegs(p, e.forPrint ?
|
|
7130
|
-
return A(y5, { key: m.key, elRef: this.cellElRefs.createRef(m.key), innerElRef: this.frameElRefs.createRef(m.key), dateProfile: e.dateProfile, date: m.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && p === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: m.extraRenderProps, extraDataAttrs: m.extraDataAttrs, extraClassNames: m.extraClassNames, extraDateSpan: m.extraDateSpan, moreCnt: f[p], moreMarginTop: h[p], singlePlacements:
|
|
7129
|
+
let y = this.renderFgSegs(p, e.forPrint ? u[p] : d[p], e.todayRange, g), b = this.renderFgSegs(p, S5(c[p], d), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
|
|
7130
|
+
return A(y5, { key: m.key, elRef: this.cellElRefs.createRef(m.key), innerElRef: this.frameElRefs.createRef(m.key), dateProfile: e.dateProfile, date: m.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && p === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: m.extraRenderProps, extraDataAttrs: m.extraDataAttrs, extraClassNames: m.extraClassNames, extraDateSpan: m.extraDateSpan, moreCnt: f[p], moreMarginTop: h[p], singlePlacements: u[p], fgContentElRef: this.fgElRefs.createRef(m.key), fgContent: (
|
|
7131
7131
|
// Fragment scopes the keys
|
|
7132
7132
|
A(
|
|
7133
7133
|
v1,
|
|
@@ -7167,17 +7167,17 @@ class Tn extends u3 {
|
|
|
7167
7167
|
return e.eventResize && e.eventResize.segs.length ? e.eventResize.segs : [];
|
|
7168
7168
|
}
|
|
7169
7169
|
renderFgSegs(e, t, i, n, l, s, r) {
|
|
7170
|
-
let { context: o } = this, { eventSelection:
|
|
7171
|
-
if (
|
|
7170
|
+
let { context: o } = this, { eventSelection: c } = this.props, { framePositions: u } = this.state, d = this.props.cells.length === 1, f = l || s || r, h = [];
|
|
7171
|
+
if (u)
|
|
7172
7172
|
for (let g of t) {
|
|
7173
7173
|
let { seg: m } = g, { instanceId: p } = m.eventRange.instance, y = g.isVisible && !n[p], b = g.isAbsolute, C = "", v = "";
|
|
7174
|
-
b && (o.isRtl ? (v = 0, C =
|
|
7174
|
+
b && (o.isRtl ? (v = 0, C = u.lefts[m.lastCol] - u.lefts[m.firstCol]) : (C = 0, v = u.rights[m.firstCol] - u.rights[m.lastCol])), h.push(A("div", { className: "fc-daygrid-event-harness" + (b ? " fc-daygrid-event-harness-abs" : ""), key: Bn(m), ref: f ? null : this.segHarnessRefs.createRef(Rn(m)), style: {
|
|
7175
7175
|
visibility: y ? "" : "hidden",
|
|
7176
7176
|
marginTop: b ? "" : g.marginTop,
|
|
7177
7177
|
top: b ? g.absoluteTop : "",
|
|
7178
7178
|
left: C,
|
|
7179
7179
|
right: v
|
|
7180
|
-
} }, Dn(m) ? A(Vn, Object.assign({ seg: m, isDragging: l, isSelected: p ===
|
|
7180
|
+
} }, Dn(m) ? A(Vn, Object.assign({ seg: m, isDragging: l, isSelected: p === c, defaultDisplayEventEnd: d }, D3(m, i))) : A(In, Object.assign({ seg: m, isDragging: l, isResizing: s, isDateSelecting: r, isSelected: p === c, defaultDisplayEventEnd: d }, D3(m, i)))));
|
|
7181
7181
|
}
|
|
7182
7182
|
return h;
|
|
7183
7183
|
}
|
|
@@ -7200,18 +7200,18 @@ class Tn extends u3 {
|
|
|
7200
7200
|
let { props: t, state: i, frameElRefs: n } = this;
|
|
7201
7201
|
if (!t.forPrint && t.clientWidth !== null) {
|
|
7202
7202
|
if (e) {
|
|
7203
|
-
let o = t.cells.map((
|
|
7203
|
+
let o = t.cells.map((c) => n.currentMap[c.key]);
|
|
7204
7204
|
if (o.length) {
|
|
7205
|
-
let
|
|
7206
|
-
|
|
7205
|
+
let c = this.rootElRef.current, u = new v0(
|
|
7206
|
+
c,
|
|
7207
7207
|
o,
|
|
7208
7208
|
!0,
|
|
7209
7209
|
// isHorizontal
|
|
7210
7210
|
!1
|
|
7211
7211
|
);
|
|
7212
|
-
(!i.framePositions || !i.framePositions.similarTo(
|
|
7212
|
+
(!i.framePositions || !i.framePositions.similarTo(u)) && this.setState({
|
|
7213
7213
|
framePositions: new v0(
|
|
7214
|
-
|
|
7214
|
+
c,
|
|
7215
7215
|
o,
|
|
7216
7216
|
!0,
|
|
7217
7217
|
// isHorizontal
|
|
@@ -7274,7 +7274,7 @@ class k5 extends u3 {
|
|
|
7274
7274
|
super(...arguments), this.splitBusinessHourSegs = Q(Ee), this.splitBgEventSegs = Q(D5), this.splitFgEventSegs = Q(Ee), this.splitDateSelectionSegs = Q(Ee), this.splitEventDrag = Q(aa), this.splitEventResize = Q(aa), this.rowRefs = new v3();
|
|
7275
7275
|
}
|
|
7276
7276
|
render() {
|
|
7277
|
-
let { props: e, context: t } = this, i = e.cells.length, n = this.splitBusinessHourSegs(e.businessHourSegs, i), l = this.splitBgEventSegs(e.bgEventSegs, i), s = this.splitFgEventSegs(e.fgEventSegs, i), r = this.splitDateSelectionSegs(e.dateSelectionSegs, i), o = this.splitEventDrag(e.eventDrag, i),
|
|
7277
|
+
let { props: e, context: t } = this, i = e.cells.length, n = this.splitBusinessHourSegs(e.businessHourSegs, i), l = this.splitBgEventSegs(e.bgEventSegs, i), s = this.splitFgEventSegs(e.fgEventSegs, i), r = this.splitDateSelectionSegs(e.dateSelectionSegs, i), o = this.splitEventDrag(e.eventDrag, i), c = this.splitEventResize(e.eventResize, i), u = i >= 7 && e.clientWidth ? e.clientWidth / t.options.aspectRatio / 6 : null;
|
|
7278
7278
|
return A(E0, { unit: "day" }, (d, f) => A(v1, null, e.cells.map((h, g) => A(Tn, {
|
|
7279
7279
|
ref: this.rowRefs.createRef(g),
|
|
7280
7280
|
key: h.length ? h[0].date.toISOString() : g,
|
|
@@ -7290,12 +7290,12 @@ class k5 extends u3 {
|
|
|
7290
7290
|
fgEventSegs: s[g],
|
|
7291
7291
|
dateSelectionSegs: r[g],
|
|
7292
7292
|
eventDrag: o[g],
|
|
7293
|
-
eventResize:
|
|
7293
|
+
eventResize: c[g],
|
|
7294
7294
|
dayMaxEvents: e.dayMaxEvents,
|
|
7295
7295
|
dayMaxEventRows: e.dayMaxEventRows,
|
|
7296
7296
|
clientWidth: e.clientWidth,
|
|
7297
7297
|
clientHeight: e.clientHeight,
|
|
7298
|
-
cellMinHeight:
|
|
7298
|
+
cellMinHeight: u,
|
|
7299
7299
|
forPrint: e.forPrint
|
|
7300
7300
|
}))));
|
|
7301
7301
|
}
|
|
@@ -7815,8 +7815,8 @@ class Y5 {
|
|
|
7815
7815
|
computeBestEdge(e, t) {
|
|
7816
7816
|
let { edgeThreshold: i } = this, n = null, l = this.scrollCaches || [];
|
|
7817
7817
|
for (let s of l) {
|
|
7818
|
-
let r = s.clientRect, o = e - r.left,
|
|
7819
|
-
o >= 0 &&
|
|
7818
|
+
let r = s.clientRect, o = e - r.left, c = r.right - e, u = t - r.top, d = r.bottom - t;
|
|
7819
|
+
o >= 0 && c >= 0 && u >= 0 && d >= 0 && (u <= i && this.everMovedUp && s.canScrollUp() && (!n || n.distance > u) && (n = { scrollCache: s, name: "top", distance: u }), d <= i && this.everMovedDown && s.canScrollDown() && (!n || n.distance > d) && (n = { scrollCache: s, name: "bottom", distance: d }), o <= i && this.everMovedLeft && s.canScrollLeft() && (!n || n.distance > o) && (n = { scrollCache: s, name: "left", distance: o }), c <= i && this.everMovedRight && s.canScrollRight() && (!n || n.distance > c) && (n = { scrollCache: s, name: "right", distance: c }));
|
|
7820
7820
|
}
|
|
7821
7821
|
return n;
|
|
7822
7822
|
}
|
|
@@ -7967,7 +7967,7 @@ class lt {
|
|
|
7967
7967
|
let r = i[s].component, o = n[s];
|
|
7968
7968
|
if (o && // wasn't destroyed mid-drag
|
|
7969
7969
|
o.isWithinClipping(e, t)) {
|
|
7970
|
-
let
|
|
7970
|
+
let c = o.computeLeft(), u = o.computeTop(), d = e - c, f = t - u, { origRect: h } = o, g = h.right - h.left, m = h.bottom - h.top;
|
|
7971
7971
|
if (
|
|
7972
7972
|
// must be within the element's bounds
|
|
7973
7973
|
d >= 0 && d < g && f >= 0 && f < m
|
|
@@ -7979,9 +7979,9 @@ class lt {
|
|
|
7979
7979
|
// https://github.com/fullcalendar/fullcalendar/issues/5026
|
|
7980
7980
|
(this.disablePointCheck || o.el.contains(o.el.getRootNode().elementFromPoint(
|
|
7981
7981
|
// add-back origins to get coordinate relative to top-left of window viewport
|
|
7982
|
-
d +
|
|
7983
|
-
f +
|
|
7984
|
-
))) && (!l || p.layer > l.layer) && (p.componentId = s, p.context = r.context, p.rect.left +=
|
|
7982
|
+
d + c - window.scrollX,
|
|
7983
|
+
f + u - window.scrollY
|
|
7984
|
+
))) && (!l || p.layer > l.layer) && (p.componentId = s, p.context = r.context, p.rect.left += c, p.rect.right += c, p.rect.top += u, p.rect.bottom += u, l = p);
|
|
7985
7985
|
}
|
|
7986
7986
|
}
|
|
7987
7987
|
}
|
|
@@ -8014,8 +8014,8 @@ class J5 extends w0 {
|
|
|
8014
8014
|
if (!l.wasTouchScroll) {
|
|
8015
8015
|
let { initialHit: s, finalHit: r } = this.hitDragging;
|
|
8016
8016
|
if (s && r && st(s, r)) {
|
|
8017
|
-
let { context: o } = n,
|
|
8018
|
-
o.emitter.trigger("dateClick",
|
|
8017
|
+
let { context: o } = n, c = Object.assign(Object.assign({}, jn(s.dateSpan, o)), { dayEl: s.dayEl, jsEvent: i.origEvent, view: o.viewApi || o.calendarApi.view });
|
|
8018
|
+
o.emitter.trigger("dateClick", c);
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
8021
|
}, this.dragging = new Q0(e.el), this.dragging.autoScroller.isEnabled = !1;
|
|
@@ -8029,17 +8029,17 @@ class J5 extends w0 {
|
|
|
8029
8029
|
class Z5 extends w0 {
|
|
8030
8030
|
constructor(e) {
|
|
8031
8031
|
super(e), this.dragSelection = null, this.handlePointerDown = (s) => {
|
|
8032
|
-
let { component: r, dragging: o } = this, { options:
|
|
8033
|
-
o.setIgnoreMove(!
|
|
8032
|
+
let { component: r, dragging: o } = this, { options: c } = r.context, u = c.selectable && r.isValidDateDownEl(s.origEvent.target);
|
|
8033
|
+
o.setIgnoreMove(!u), o.delay = s.isTouch ? X5(r) : null;
|
|
8034
8034
|
}, this.handleDragStart = (s) => {
|
|
8035
8035
|
this.component.context.calendarApi.unselect(s);
|
|
8036
8036
|
}, this.handleHitUpdate = (s, r) => {
|
|
8037
|
-
let { context: o } = this.component,
|
|
8037
|
+
let { context: o } = this.component, c = null, u = !1;
|
|
8038
8038
|
if (s) {
|
|
8039
8039
|
let d = this.hitDragging.initialHit;
|
|
8040
|
-
s.componentId === d.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(d, s) || (
|
|
8040
|
+
s.componentId === d.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(d, s) || (c = $5(d, s, o.pluginHooks.dateSelectionTransformers)), (!c || !p7(c, s.dateProfile, o)) && (u = !0, c = null);
|
|
8041
8041
|
}
|
|
8042
|
-
|
|
8042
|
+
c ? o.dispatch({ type: "SELECT_DATES", selection: c }) : r || o.dispatch({ type: "UNSELECT_DATES" }), u ? m2() : g2(), r || (this.dragSelection = c);
|
|
8043
8043
|
}, this.handlePointerUp = (s) => {
|
|
8044
8044
|
this.dragSelection && (Ui(this.dragSelection, s, this.component.context), this.dragSelection = null);
|
|
8045
8045
|
};
|
|
@@ -8076,16 +8076,16 @@ function $5(a, e, t) {
|
|
|
8076
8076
|
class Y0 extends w0 {
|
|
8077
8077
|
constructor(e) {
|
|
8078
8078
|
super(e), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (s) => {
|
|
8079
|
-
let r = s.origEvent.target, { component: o, dragging:
|
|
8079
|
+
let r = s.origEvent.target, { component: o, dragging: c } = this, { mirror: u } = c, { options: d } = o.context, f = o.context;
|
|
8080
8080
|
this.subjectEl = s.subjectEl;
|
|
8081
8081
|
let h = this.subjectSeg = p0(s.subjectEl), m = (this.eventRange = h.eventRange).instance.instanceId;
|
|
8082
|
-
this.relevantEvents = k2(f.getCurrentData().eventStore, m),
|
|
8083
|
-
s.isTouch && m !== o.props.eventSelection ? tc(o) : null, d.fixedMirrorParent ?
|
|
8082
|
+
this.relevantEvents = k2(f.getCurrentData().eventStore, m), c.minDistance = s.isTouch ? 0 : d.eventDragMinDistance, c.delay = // only do a touch delay if touch and this event hasn't been selected yet
|
|
8083
|
+
s.isTouch && m !== o.props.eventSelection ? tc(o) : null, d.fixedMirrorParent ? u.parentNode = d.fixedMirrorParent : u.parentNode = D1(r, ".fc"), u.revertDuration = d.dragRevertDuration;
|
|
8084
8084
|
let p = o.isValidSegDownEl(r) && !D1(r, ".fc-event-resizer");
|
|
8085
|
-
|
|
8085
|
+
c.setIgnoreMove(!p), this.isDragging = p && s.subjectEl.classList.contains("fc-event-draggable");
|
|
8086
8086
|
}, this.handleDragStart = (s) => {
|
|
8087
|
-
let r = this.component.context, o = this.eventRange,
|
|
8088
|
-
s.isTouch ?
|
|
8087
|
+
let r = this.component.context, o = this.eventRange, c = o.instance.instanceId;
|
|
8088
|
+
s.isTouch ? c !== this.component.props.eventSelection && r.dispatch({ type: "SELECT_EVENT", eventInstanceId: c }) : r.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (r.calendarApi.unselect(s), r.emitter.trigger("eventDragStart", {
|
|
8089
8089
|
el: this.subjectEl,
|
|
8090
8090
|
event: new A1(r, o.def, o.instance),
|
|
8091
8091
|
jsEvent: s.origEvent,
|
|
@@ -8094,7 +8094,7 @@ class Y0 extends w0 {
|
|
|
8094
8094
|
}, this.handleHitUpdate = (s, r) => {
|
|
8095
8095
|
if (!this.isDragging)
|
|
8096
8096
|
return;
|
|
8097
|
-
let o = this.relevantEvents,
|
|
8097
|
+
let o = this.relevantEvents, c = this.hitDragging.initialHit, u = this.component.context, d = null, f = null, h = null, g = !1, m = {
|
|
8098
8098
|
affectedEvents: o,
|
|
8099
8099
|
mutatedEvents: Q1(),
|
|
8100
8100
|
isEvent: !0
|
|
@@ -8102,22 +8102,22 @@ class Y0 extends w0 {
|
|
|
8102
8102
|
if (s) {
|
|
8103
8103
|
d = s.context;
|
|
8104
8104
|
let p = d.options;
|
|
8105
|
-
|
|
8105
|
+
u === d || p.editable && p.droppable ? (f = ec(c, s, this.eventRange.instance.range.start, d.getCurrentData().pluginHooks.eventDragMutationMassagers), f && (h = V2(o, d.getCurrentData().eventUiBases, f, d), m.mutatedEvents = h, cn(m, s.dateProfile, d) || (g = !0, f = null, h = null, m.mutatedEvents = Q1()))) : d = null;
|
|
8106
8106
|
}
|
|
8107
|
-
this.displayDrag(d, m), g ? m2() : g2(), r || (
|
|
8108
|
-
st(
|
|
8107
|
+
this.displayDrag(d, m), g ? m2() : g2(), r || (u === d && // TODO: write test for this
|
|
8108
|
+
st(c, s) && (f = null), this.dragging.setMirrorNeedsRevert(!f), this.dragging.setMirrorIsVisible(!s || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = d, this.validMutation = f, this.mutatedRelevantEvents = h);
|
|
8109
8109
|
}, this.handlePointerUp = () => {
|
|
8110
8110
|
this.isDragging || this.cleanup();
|
|
8111
8111
|
}, this.handleDragEnd = (s) => {
|
|
8112
8112
|
if (this.isDragging) {
|
|
8113
|
-
let r = this.component.context, o = r.viewApi, { receivingContext:
|
|
8113
|
+
let r = this.component.context, o = r.viewApi, { receivingContext: c, validMutation: u } = this, d = this.eventRange.def, f = this.eventRange.instance, h = new A1(r, d, f), g = this.relevantEvents, m = this.mutatedRelevantEvents, { finalHit: p } = this.hitDragging;
|
|
8114
8114
|
if (this.clearDrag(), r.emitter.trigger("eventDragStop", {
|
|
8115
8115
|
el: this.subjectEl,
|
|
8116
8116
|
event: h,
|
|
8117
8117
|
jsEvent: s.origEvent,
|
|
8118
8118
|
view: o
|
|
8119
|
-
}),
|
|
8120
|
-
if (
|
|
8119
|
+
}), u) {
|
|
8120
|
+
if (c === r) {
|
|
8121
8121
|
let y = new A1(r, m.defs[d.defId], f ? m.instances[f.instanceId] : null);
|
|
8122
8122
|
r.dispatch({
|
|
8123
8123
|
type: "MERGE_EVENTS",
|
|
@@ -8136,9 +8136,9 @@ class Y0 extends w0 {
|
|
|
8136
8136
|
}
|
|
8137
8137
|
}, C = {};
|
|
8138
8138
|
for (let v of r.getCurrentData().pluginHooks.eventDropTransformers)
|
|
8139
|
-
Object.assign(C, v(
|
|
8140
|
-
r.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, b), C), { el: s.subjectEl, delta:
|
|
8141
|
-
} else if (
|
|
8139
|
+
Object.assign(C, v(u, r));
|
|
8140
|
+
r.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, b), C), { el: s.subjectEl, delta: u.datesDelta, jsEvent: s.origEvent, view: o })), r.emitter.trigger("eventChange", b);
|
|
8141
|
+
} else if (c) {
|
|
8142
8142
|
let y = {
|
|
8143
8143
|
event: h,
|
|
8144
8144
|
relatedEvents: W3(g, r, f),
|
|
@@ -8153,25 +8153,25 @@ class Y0 extends w0 {
|
|
|
8153
8153
|
type: "REMOVE_EVENTS",
|
|
8154
8154
|
eventStore: g
|
|
8155
8155
|
}), r.emitter.trigger("eventRemove", y);
|
|
8156
|
-
let b = m.defs[d.defId], C = m.instances[f.instanceId], v = new A1(
|
|
8157
|
-
|
|
8156
|
+
let b = m.defs[d.defId], C = m.instances[f.instanceId], v = new A1(c, b, C);
|
|
8157
|
+
c.dispatch({
|
|
8158
8158
|
type: "MERGE_EVENTS",
|
|
8159
8159
|
eventStore: m
|
|
8160
8160
|
});
|
|
8161
8161
|
let B = {
|
|
8162
8162
|
event: v,
|
|
8163
|
-
relatedEvents: W3(m,
|
|
8163
|
+
relatedEvents: W3(m, c, C),
|
|
8164
8164
|
revert() {
|
|
8165
|
-
|
|
8165
|
+
c.dispatch({
|
|
8166
8166
|
type: "REMOVE_EVENTS",
|
|
8167
8167
|
eventStore: m
|
|
8168
8168
|
});
|
|
8169
8169
|
}
|
|
8170
8170
|
};
|
|
8171
|
-
|
|
8171
|
+
c.emitter.trigger("eventAdd", B), s.isTouch && c.dispatch({
|
|
8172
8172
|
type: "SELECT_EVENT",
|
|
8173
8173
|
eventInstanceId: f.instanceId
|
|
8174
|
-
}),
|
|
8174
|
+
}), c.emitter.trigger("drop", Object.assign(Object.assign({}, jn(p.dateSpan, c)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: p.context.viewApi })), c.emitter.trigger("eventReceive", Object.assign(Object.assign({}, B), { draggedEl: s.subjectEl, view: p.context.viewApi }));
|
|
8175
8175
|
}
|
|
8176
8176
|
} else
|
|
8177
8177
|
r.emitter.trigger("_noEventDrop");
|
|
@@ -8210,15 +8210,15 @@ Y0.SELECTOR = ".fc-event-draggable, .fc-event-resizable";
|
|
|
8210
8210
|
function ec(a, e, t, i) {
|
|
8211
8211
|
let n = a.dateSpan, l = e.dateSpan, s = n.range.start, r = l.range.start, o = {};
|
|
8212
8212
|
n.allDay !== l.allDay && (o.allDay = l.allDay, o.hasEnd = e.context.options.allDayMaintainDuration, l.allDay ? s = m1(t) : s = t);
|
|
8213
|
-
let
|
|
8214
|
-
|
|
8215
|
-
let
|
|
8216
|
-
datesDelta:
|
|
8213
|
+
let c = r0(s, r, a.context.dateEnv, a.componentId === e.componentId ? a.largeUnit : null);
|
|
8214
|
+
c.milliseconds && (o.allDay = !1);
|
|
8215
|
+
let u = {
|
|
8216
|
+
datesDelta: c,
|
|
8217
8217
|
standardProps: o
|
|
8218
8218
|
};
|
|
8219
8219
|
for (let d of i)
|
|
8220
|
-
d(
|
|
8221
|
-
return
|
|
8220
|
+
d(u, a, e);
|
|
8221
|
+
return u;
|
|
8222
8222
|
}
|
|
8223
8223
|
function tc(a) {
|
|
8224
8224
|
let { options: e } = a.context, t = e.eventLongPressDelay;
|
|
@@ -8227,8 +8227,8 @@ function tc(a) {
|
|
|
8227
8227
|
class ac extends w0 {
|
|
8228
8228
|
constructor(e) {
|
|
8229
8229
|
super(e), this.draggingSegEl = null, this.draggingSeg = null, this.eventRange = null, this.relevantEvents = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (l) => {
|
|
8230
|
-
let { component: s } = this, r = this.querySegEl(l), o = p0(r),
|
|
8231
|
-
this.dragging.minDistance = s.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target) || l.isTouch && this.component.props.eventSelection !==
|
|
8230
|
+
let { component: s } = this, r = this.querySegEl(l), o = p0(r), c = this.eventRange = o.eventRange;
|
|
8231
|
+
this.dragging.minDistance = s.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target) || l.isTouch && this.component.props.eventSelection !== c.instance.instanceId);
|
|
8232
8232
|
}, this.handleDragStart = (l) => {
|
|
8233
8233
|
let { context: s } = this.component, r = this.eventRange;
|
|
8234
8234
|
this.relevantEvents = k2(s.getCurrentData().eventStore, this.eventRange.instance.instanceId);
|
|
@@ -8240,20 +8240,20 @@ class ac extends w0 {
|
|
|
8240
8240
|
view: s.viewApi
|
|
8241
8241
|
});
|
|
8242
8242
|
}, this.handleHitUpdate = (l, s, r) => {
|
|
8243
|
-
let { context: o } = this.component,
|
|
8244
|
-
affectedEvents:
|
|
8243
|
+
let { context: o } = this.component, c = this.relevantEvents, u = this.hitDragging.initialHit, d = this.eventRange.instance, f = null, h = null, g = !1, m = {
|
|
8244
|
+
affectedEvents: c,
|
|
8245
8245
|
mutatedEvents: Q1(),
|
|
8246
8246
|
isEvent: !0
|
|
8247
8247
|
};
|
|
8248
|
-
l && (l.componentId ===
|
|
8248
|
+
l && (l.componentId === u.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(u, l) || (f = ic(u, l, r.subjectEl.classList.contains("fc-event-resizer-start"), d.range))), f && (h = V2(c, o.getCurrentData().eventUiBases, f, o), m.mutatedEvents = h, cn(m, l.dateProfile, o) || (g = !0, f = null, h = null, m.mutatedEvents = null)), h ? o.dispatch({
|
|
8249
8249
|
type: "SET_EVENT_RESIZE",
|
|
8250
8250
|
state: m
|
|
8251
|
-
}) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), g ? m2() : g2(), s || (f && st(
|
|
8251
|
+
}) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), g ? m2() : g2(), s || (f && st(u, l) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = h);
|
|
8252
8252
|
}, this.handleDragEnd = (l) => {
|
|
8253
|
-
let { context: s } = this.component, r = this.eventRange.def, o = this.eventRange.instance,
|
|
8253
|
+
let { context: s } = this.component, r = this.eventRange.def, o = this.eventRange.instance, c = new A1(s, r, o), u = this.relevantEvents, d = this.mutatedRelevantEvents;
|
|
8254
8254
|
if (s.emitter.trigger("eventResizeStop", {
|
|
8255
8255
|
el: this.draggingSegEl,
|
|
8256
|
-
event:
|
|
8256
|
+
event: c,
|
|
8257
8257
|
jsEvent: l.origEvent,
|
|
8258
8258
|
view: s.viewApi
|
|
8259
8259
|
}), this.validMutation) {
|
|
@@ -8263,13 +8263,13 @@ class ac extends w0 {
|
|
|
8263
8263
|
eventStore: d
|
|
8264
8264
|
});
|
|
8265
8265
|
let h = {
|
|
8266
|
-
oldEvent:
|
|
8266
|
+
oldEvent: c,
|
|
8267
8267
|
event: f,
|
|
8268
8268
|
relatedEvents: W3(d, s, o),
|
|
8269
8269
|
revert() {
|
|
8270
8270
|
s.dispatch({
|
|
8271
8271
|
type: "MERGE_EVENTS",
|
|
8272
|
-
eventStore:
|
|
8272
|
+
eventStore: u
|
|
8273
8273
|
// the pre-change events
|
|
8274
8274
|
});
|
|
8275
8275
|
}
|
|
@@ -8522,7 +8522,7 @@ class pc extends u3 {
|
|
|
8522
8522
|
let o = this.context.pluginHooks.scrollGridImpl;
|
|
8523
8523
|
if (!o)
|
|
8524
8524
|
throw new Error("No ScrollGrid implementation");
|
|
8525
|
-
let { context:
|
|
8525
|
+
let { context: c, props: u } = this, d = !u.forPrint && Ye(c.options), f = !u.forPrint && fn(c.options), h = [];
|
|
8526
8526
|
e && h.push({
|
|
8527
8527
|
type: "header",
|
|
8528
8528
|
key: "header",
|
|
@@ -8562,16 +8562,16 @@ class pc extends u3 {
|
|
|
8562
8562
|
A(
|
|
8563
8563
|
"tr",
|
|
8564
8564
|
{ role: "presentation", className: "fc-scrollgrid-section" },
|
|
8565
|
-
A("td", { colSpan: 2, className: "fc-timegrid-divider " +
|
|
8565
|
+
A("td", { colSpan: 2, className: "fc-timegrid-divider " + c.theme.getClass("tableCellShaded") })
|
|
8566
8566
|
)
|
|
8567
8567
|
)
|
|
8568
8568
|
}));
|
|
8569
|
-
let g =
|
|
8569
|
+
let g = c.options.nowIndicator;
|
|
8570
8570
|
return h.push({
|
|
8571
8571
|
type: "body",
|
|
8572
8572
|
key: "body",
|
|
8573
8573
|
liquid: !0,
|
|
8574
|
-
expandRows: !!
|
|
8574
|
+
expandRows: !!c.options.expandRows,
|
|
8575
8575
|
chunks: [
|
|
8576
8576
|
{
|
|
8577
8577
|
key: "axis",
|
|
@@ -8626,8 +8626,8 @@ class pc extends u3 {
|
|
|
8626
8626
|
]
|
|
8627
8627
|
}), A(
|
|
8628
8628
|
Ue,
|
|
8629
|
-
{ elRef: this.rootElRef, elClasses: ["fc-timegrid"], viewSpec:
|
|
8630
|
-
A(o, { liquid: !
|
|
8629
|
+
{ elRef: this.rootElRef, elClasses: ["fc-timegrid"], viewSpec: c.viewSpec },
|
|
8630
|
+
A(o, { liquid: !u.isHeightAuto && !u.forPrint, forPrint: u.forPrint, collapsibleWidth: !1, colGroups: [
|
|
8631
8631
|
{ width: "shrink", cols: [{ width: "shrink" }] },
|
|
8632
8632
|
{ cols: [{ span: n, minWidth: l }] }
|
|
8633
8633
|
], sections: h })
|
|
@@ -8808,12 +8808,12 @@ function Sc(a, e, t) {
|
|
|
8808
8808
|
for (; o < r && i[o] < s; o += 1)
|
|
8809
8809
|
;
|
|
8810
8810
|
for (; o < r; o += 1) {
|
|
8811
|
-
let
|
|
8811
|
+
let c = n[o], u, d = Zt(c, l.span.start, Jt), f = d[0] + d[1], h = f;
|
|
8812
8812
|
for (
|
|
8813
8813
|
;
|
|
8814
8814
|
// loop through entries that horizontally intersect
|
|
8815
|
-
(
|
|
8816
|
-
|
|
8815
|
+
(u = c[h]) && // but not past the whole seg list
|
|
8816
|
+
u.span.start < l.span.end;
|
|
8817
8817
|
)
|
|
8818
8818
|
h += 1;
|
|
8819
8819
|
if (f < h)
|
|
@@ -8823,20 +8823,20 @@ function Sc(a, e, t) {
|
|
|
8823
8823
|
}
|
|
8824
8824
|
function xc(a, e) {
|
|
8825
8825
|
const t = Q2((i, n, l) => Q3(i), (i, n, l) => {
|
|
8826
|
-
let { nextLevelNodes: s, thickness: r } = i, o = r + l,
|
|
8826
|
+
let { nextLevelNodes: s, thickness: r } = i, o = r + l, c = r / o, u, d = [];
|
|
8827
8827
|
if (!s.length)
|
|
8828
|
-
|
|
8828
|
+
u = e;
|
|
8829
8829
|
else
|
|
8830
8830
|
for (let h of s)
|
|
8831
|
-
if (
|
|
8831
|
+
if (u === void 0) {
|
|
8832
8832
|
let g = t(h, n, o);
|
|
8833
|
-
|
|
8833
|
+
u = g[0], d.push(g[1]);
|
|
8834
8834
|
} else {
|
|
8835
|
-
let g = t(h,
|
|
8835
|
+
let g = t(h, u, 0);
|
|
8836
8836
|
d.push(g[1]);
|
|
8837
8837
|
}
|
|
8838
|
-
let f = (
|
|
8839
|
-
return [
|
|
8838
|
+
let f = (u - n) * c;
|
|
8839
|
+
return [u - f, Object.assign(Object.assign({}, i), { thickness: f, nextLevelNodes: d })];
|
|
8840
8840
|
});
|
|
8841
8841
|
return a.map((i) => t(i, 0, 0)[1]);
|
|
8842
8842
|
}
|
|
@@ -8884,22 +8884,22 @@ function sa(a, e, t = null, i = 0) {
|
|
|
8884
8884
|
}
|
|
8885
8885
|
function Dc(a, e, t, i) {
|
|
8886
8886
|
let n = [], l = [];
|
|
8887
|
-
for (let
|
|
8888
|
-
let
|
|
8889
|
-
|
|
8890
|
-
index:
|
|
8887
|
+
for (let c = 0; c < a.length; c += 1) {
|
|
8888
|
+
let u = e[c];
|
|
8889
|
+
u ? n.push({
|
|
8890
|
+
index: c,
|
|
8891
8891
|
thickness: 1,
|
|
8892
|
-
span:
|
|
8893
|
-
}) : l.push(a[
|
|
8892
|
+
span: u
|
|
8893
|
+
}) : l.push(a[c]);
|
|
8894
8894
|
}
|
|
8895
8895
|
let { segRects: s, hiddenGroups: r } = Ec(n, t, i), o = [];
|
|
8896
|
-
for (let
|
|
8896
|
+
for (let c of s)
|
|
8897
8897
|
o.push({
|
|
8898
|
-
seg: a[
|
|
8899
|
-
rect:
|
|
8898
|
+
seg: a[c.index],
|
|
8899
|
+
rect: c
|
|
8900
8900
|
});
|
|
8901
|
-
for (let
|
|
8902
|
-
o.push({ seg:
|
|
8901
|
+
for (let c of l)
|
|
8902
|
+
o.push({ seg: c, rect: null });
|
|
8903
8903
|
return { segPlacements: o, hiddenGroups: r };
|
|
8904
8904
|
}
|
|
8905
8905
|
const Ic = b1({
|
|
@@ -8953,7 +8953,7 @@ class Vc extends c1 {
|
|
|
8953
8953
|
return r.forPrint ? Pn(e, r) : this.renderPositionedFgSegs(e, t, i, n, l, s);
|
|
8954
8954
|
}
|
|
8955
8955
|
renderPositionedFgSegs(e, t, i, n, l, s) {
|
|
8956
|
-
let { eventMaxStack: r, eventShortHeight: o, eventOrderStrict:
|
|
8956
|
+
let { eventMaxStack: r, eventShortHeight: o, eventOrderStrict: c, eventMinHeight: u } = this.context.options, { date: d, slatCoords: f, eventSelection: h, todayRange: g, nowDate: m } = this.props, p = i || n || l, y = sa(e, d, f, u), { segPlacements: b, hiddenGroups: C } = Dc(e, y, c, r);
|
|
8957
8957
|
return A(
|
|
8958
8958
|
v1,
|
|
8959
8959
|
null,
|
|
@@ -8970,16 +8970,16 @@ class Vc extends c1 {
|
|
|
8970
8970
|
}
|
|
8971
8971
|
// will already have eventMinHeight applied because segInputs already had it
|
|
8972
8972
|
renderHiddenGroups(e, t) {
|
|
8973
|
-
let { extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize:
|
|
8974
|
-
return A(v1, null, e.map((
|
|
8975
|
-
let d = Vt(
|
|
8976
|
-
return A(bc, { key: zi(An(f)), hiddenSegs: f, top: d.top, bottom: d.bottom, extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize:
|
|
8973
|
+
let { extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: c } = this.props;
|
|
8974
|
+
return A(v1, null, e.map((u) => {
|
|
8975
|
+
let d = Vt(u.span), f = Bc(u.entries, t);
|
|
8976
|
+
return A(bc, { key: zi(An(f)), hiddenSegs: f, top: d.top, bottom: d.bottom, extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: c });
|
|
8977
8977
|
}));
|
|
8978
8978
|
}
|
|
8979
8979
|
renderFillSegs(e, t) {
|
|
8980
8980
|
let { props: i, context: n } = this, s = sa(e, i.date, i.slatCoords, n.options.eventMinHeight).map((r, o) => {
|
|
8981
|
-
let
|
|
8982
|
-
return A("div", { key: Yi(
|
|
8981
|
+
let c = e[o];
|
|
8982
|
+
return A("div", { key: Yi(c.eventRange), className: "fc-timegrid-bg-harness", style: Vt(r) }, t === "bg-event" ? A(pn, Object.assign({ seg: c }, D3(c, i.todayRange, i.nowDate))) : vn(t));
|
|
8983
8983
|
});
|
|
8984
8984
|
return A(v1, null, s);
|
|
8985
8985
|
}
|
|
@@ -9002,12 +9002,12 @@ class Vc extends c1 {
|
|
|
9002
9002
|
computeSegHStyle(e) {
|
|
9003
9003
|
let { isRtl: t, options: i } = this.context, n = i.slotEventOverlap, l = e.levelCoord, s = e.levelCoord + e.thickness, r, o;
|
|
9004
9004
|
n && (s = Math.min(1, l + (s - l) * 2)), t ? (r = 1 - s, o = l) : (r = l, o = 1 - s);
|
|
9005
|
-
let
|
|
9005
|
+
let c = {
|
|
9006
9006
|
zIndex: e.stackDepth + 1,
|
|
9007
9007
|
left: r * 100 + "%",
|
|
9008
9008
|
right: o * 100 + "%"
|
|
9009
9009
|
};
|
|
9010
|
-
return n && !e.stackForward && (
|
|
9010
|
+
return n && !e.stackForward && (c[t ? "marginLeft" : "marginRight"] = 20), c;
|
|
9011
9011
|
}
|
|
9012
9012
|
}
|
|
9013
9013
|
function Pn(a, { todayRange: e, nowDate: t, eventSelection: i, eventDrag: n, eventResize: l }) {
|
|
@@ -9035,7 +9035,7 @@ class Rc extends c1 {
|
|
|
9035
9035
|
super(...arguments), this.splitFgEventSegs = Q(x0), this.splitBgEventSegs = Q(x0), this.splitBusinessHourSegs = Q(x0), this.splitNowIndicatorSegs = Q(x0), this.splitDateSelectionSegs = Q(x0), this.splitEventDrag = Q(na), this.splitEventResize = Q(na), this.rootElRef = L1(), this.cellElRefs = new v3();
|
|
9036
9036
|
}
|
|
9037
9037
|
render() {
|
|
9038
|
-
let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), n = e.cells.length, l = this.splitFgEventSegs(e.fgEventSegs, n), s = this.splitBgEventSegs(e.bgEventSegs, n), r = this.splitBusinessHourSegs(e.businessHourSegs, n), o = this.splitNowIndicatorSegs(e.nowIndicatorSegs, n),
|
|
9038
|
+
let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), n = e.cells.length, l = this.splitFgEventSegs(e.fgEventSegs, n), s = this.splitBgEventSegs(e.bgEventSegs, n), r = this.splitBusinessHourSegs(e.businessHourSegs, n), o = this.splitNowIndicatorSegs(e.nowIndicatorSegs, n), c = this.splitDateSelectionSegs(e.dateSelectionSegs, n), u = this.splitEventDrag(e.eventDrag, n), d = this.splitEventResize(e.eventResize, n);
|
|
9039
9039
|
return A(
|
|
9040
9040
|
"div",
|
|
9041
9041
|
{ className: "fc-timegrid-cols", ref: this.rootElRef },
|
|
@@ -9061,7 +9061,7 @@ class Rc extends c1 {
|
|
|
9061
9061
|
A("div", { className: "fc-timegrid-now-indicator-container" }, typeof i == "number" && A(U2, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: i }, isAxis: !0, date: e.nowDate }))
|
|
9062
9062
|
)
|
|
9063
9063
|
),
|
|
9064
|
-
e.cells.map((f, h) => A(Vc, { key: f.key, elRef: this.cellElRefs.createRef(f.key), dateProfile: e.dateProfile, date: f.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: f.extraRenderProps, extraDataAttrs: f.extraDataAttrs, extraClassNames: f.extraClassNames, extraDateSpan: f.extraDateSpan, fgEventSegs: l[h], bgEventSegs: s[h], businessHourSegs: r[h], nowIndicatorSegs: o[h], dateSelectionSegs:
|
|
9064
|
+
e.cells.map((f, h) => A(Vc, { key: f.key, elRef: this.cellElRefs.createRef(f.key), dateProfile: e.dateProfile, date: f.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: f.extraRenderProps, extraDataAttrs: f.extraDataAttrs, extraClassNames: f.extraClassNames, extraDateSpan: f.extraDateSpan, fgEventSegs: l[h], bgEventSegs: s[h], businessHourSegs: r[h], nowIndicatorSegs: o[h], dateSelectionSegs: c[h], eventDrag: u[h], eventResize: d[h], slatCoords: e.slatCoords, eventSelection: e.eventSelection, forPrint: e.forPrint }))
|
|
9065
9065
|
)
|
|
9066
9066
|
)
|
|
9067
9067
|
)
|
|
@@ -9136,16 +9136,16 @@ class Hc extends u3 {
|
|
|
9136
9136
|
this.scrollResponder.detach();
|
|
9137
9137
|
}
|
|
9138
9138
|
queryHit(e, t) {
|
|
9139
|
-
let { dateEnv: i, options: n } = this.context, { colCoords: l } = this, { dateProfile: s } = this.props, { slatCoords: r } = this.state, { snapDuration: o, snapsPerSlot:
|
|
9140
|
-
if (
|
|
9141
|
-
let f = this.props.cells[
|
|
9139
|
+
let { dateEnv: i, options: n } = this.context, { colCoords: l } = this, { dateProfile: s } = this.props, { slatCoords: r } = this.state, { snapDuration: o, snapsPerSlot: c } = this.processSlotOptions(this.props.slotDuration, n.snapDuration), u = l.leftToIndex(e), d = r.positions.topToIndex(t);
|
|
9140
|
+
if (u != null && d != null) {
|
|
9141
|
+
let f = this.props.cells[u], h = r.positions.tops[d], g = r.positions.getHeight(d), m = (t - h) / g, p = Math.floor(m * c), y = d * c + p, b = this.props.cells[u].date, C = Wt(s.slotMinTime, _l(o, y)), v = i.add(b, C), B = i.add(v, o);
|
|
9142
9142
|
return {
|
|
9143
9143
|
dateProfile: s,
|
|
9144
9144
|
dateSpan: Object.assign({ range: { start: v, end: B }, allDay: !1 }, f.extraDateSpan),
|
|
9145
|
-
dayEl: l.els[
|
|
9145
|
+
dayEl: l.els[u],
|
|
9146
9146
|
rect: {
|
|
9147
|
-
left: l.lefts[
|
|
9148
|
-
right: l.rights[
|
|
9147
|
+
left: l.lefts[u],
|
|
9148
|
+
right: l.rights[u],
|
|
9149
9149
|
top: h,
|
|
9150
9150
|
bottom: h + g
|
|
9151
9151
|
},
|
|
@@ -9181,7 +9181,7 @@ class Nc extends u3 {
|
|
|
9181
9181
|
}
|
|
9182
9182
|
render() {
|
|
9183
9183
|
let { props: e, context: t } = this, { dateProfile: i, dayTableModel: n } = e, { nowIndicator: l, nextDayThreshold: s } = t.options, r = this.buildDayRanges(n, i, t.dateEnv);
|
|
9184
|
-
return A(E0, { unit: l ? "minute" : "day" }, (o,
|
|
9184
|
+
return A(E0, { unit: l ? "minute" : "day" }, (o, c) => A(Hc, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(e, i, null, t, r), { forPrint: e.forPrint, axis: e.axis, dateProfile: i, slatMetas: e.slatMetas, slotDuration: e.slotDuration, cells: n.cells[0], tableColGroupNode: e.tableColGroupNode, tableMinWidth: e.tableMinWidth, clientWidth: e.clientWidth, clientHeight: e.clientHeight, expandRows: e.expandRows, nowDate: o, nowIndicatorSegs: l && this.slicer.sliceNowDate(o, i, s, t, r), todayRange: c, onScrollTopRequest: e.onScrollTopRequest, onSlatCoords: e.onSlatCoords })));
|
|
9185
9185
|
}
|
|
9186
9186
|
}
|
|
9187
9187
|
function Fc(a, e, t) {
|
|
@@ -9201,18 +9201,18 @@ const ra = [
|
|
|
9201
9201
|
{ seconds: 15 }
|
|
9202
9202
|
];
|
|
9203
9203
|
function jc(a, e, t, i, n) {
|
|
9204
|
-
let l = /* @__PURE__ */ new Date(0), s = a, r = n1(0), o = t || Uc(i),
|
|
9204
|
+
let l = /* @__PURE__ */ new Date(0), s = a, r = n1(0), o = t || Uc(i), c = [];
|
|
9205
9205
|
for (; e3(s) < e3(e); ) {
|
|
9206
|
-
let
|
|
9207
|
-
|
|
9208
|
-
date:
|
|
9206
|
+
let u = n.add(l, s), d = A2(r, o) !== null;
|
|
9207
|
+
c.push({
|
|
9208
|
+
date: u,
|
|
9209
9209
|
time: s,
|
|
9210
|
-
key:
|
|
9211
|
-
isoTimeStr: ds(
|
|
9210
|
+
key: u.toISOString(),
|
|
9211
|
+
isoTimeStr: ds(u),
|
|
9212
9212
|
isLabeled: d
|
|
9213
9213
|
}), s = Wt(s, i), r = Wt(r, i);
|
|
9214
9214
|
}
|
|
9215
|
-
return
|
|
9215
|
+
return c;
|
|
9216
9216
|
}
|
|
9217
9217
|
function Uc(a) {
|
|
9218
9218
|
let e, t, i;
|
|
@@ -9226,8 +9226,8 @@ class Kc extends pc {
|
|
|
9226
9226
|
super(...arguments), this.buildTimeColsModel = Q(Pc), this.buildSlatMetas = Q(jc);
|
|
9227
9227
|
}
|
|
9228
9228
|
render() {
|
|
9229
|
-
let { options: e, dateEnv: t, dateProfileGenerator: i } = this.context, { props: n } = this, { dateProfile: l } = n, s = this.buildTimeColsModel(l, i), r = this.allDaySplitter.splitProps(n), o = this.buildSlatMetas(l.slotMinTime, l.slotMaxTime, e.slotLabelInterval, e.slotDuration, t), { dayMinWidth:
|
|
9230
|
-
return d ? this.renderHScrollLayout(f, h, g, s.colCnt,
|
|
9229
|
+
let { options: e, dateEnv: t, dateProfileGenerator: i } = this.context, { props: n } = this, { dateProfile: l } = n, s = this.buildTimeColsModel(l, i), r = this.allDaySplitter.splitProps(n), o = this.buildSlatMetas(l.slotMinTime, l.slotMaxTime, e.slotLabelInterval, e.slotDuration, t), { dayMinWidth: c } = e, u = !c, d = c, f = e.dayHeaders && A(ln, { dates: s.headerDates, dateProfile: l, datesRepDistinctDays: !0, renderIntro: u ? this.renderHeadAxis : null }), h = e.allDaySlot !== !1 && ((m) => A(Hn, Object.assign({}, r.allDay, { dateProfile: l, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: m.tableMinWidth, colGroupNode: m.tableColGroupNode, renderRowIntro: u ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: m.clientWidth, clientHeight: m.clientHeight, forPrint: n.forPrint }, this.getAllDayMaxEventProps()))), g = (m) => A(Nc, Object.assign({}, r.timed, { dayTableModel: s, dateProfile: l, axis: u, slotDuration: e.slotDuration, slatMetas: o, forPrint: n.forPrint, tableColGroupNode: m.tableColGroupNode, tableMinWidth: m.tableMinWidth, clientWidth: m.clientWidth, clientHeight: m.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: m.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
|
|
9230
|
+
return d ? this.renderHScrollLayout(f, h, g, s.colCnt, c, o, this.state.slatCoords) : this.renderSimpleLayout(f, h, g);
|
|
9231
9231
|
}
|
|
9232
9232
|
}
|
|
9233
9233
|
function Pc(a, e) {
|
|
@@ -9339,8 +9339,8 @@ function r8(a) {
|
|
|
9339
9339
|
};
|
|
9340
9340
|
return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {
|
|
9341
9341
|
Object.keys(e.elements).forEach(function(i) {
|
|
9342
|
-
var n = e.elements[i], l = e.attributes[i] || {}, s = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), r = s.reduce(function(o,
|
|
9343
|
-
return o[
|
|
9342
|
+
var n = e.elements[i], l = e.attributes[i] || {}, s = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), r = s.reduce(function(o, c) {
|
|
9343
|
+
return o[c] = "", o;
|
|
9344
9344
|
}, {});
|
|
9345
9345
|
!J1(n) || !c3(n) || (Object.assign(n.style, r), Object.keys(l).forEach(function(o) {
|
|
9346
9346
|
n.removeAttribute(o);
|
|
@@ -9373,16 +9373,16 @@ function A0(a, e, t) {
|
|
|
9373
9373
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
9374
9374
|
var i = a.getBoundingClientRect(), n = 1, l = 1;
|
|
9375
9375
|
e && J1(a) && (n = a.offsetWidth > 0 && g0(i.width) / a.offsetWidth || 1, l = a.offsetHeight > 0 && g0(i.height) / a.offsetHeight || 1);
|
|
9376
|
-
var s = Z3(a) ? Y1(a) : window, r = s.visualViewport, o = !qn() && t,
|
|
9376
|
+
var s = Z3(a) ? Y1(a) : window, r = s.visualViewport, o = !qn() && t, c = (i.left + (o && r ? r.offsetLeft : 0)) / n, u = (i.top + (o && r ? r.offsetTop : 0)) / l, d = i.width / n, f = i.height / l;
|
|
9377
9377
|
return {
|
|
9378
9378
|
width: d,
|
|
9379
9379
|
height: f,
|
|
9380
|
-
top:
|
|
9381
|
-
right:
|
|
9382
|
-
bottom:
|
|
9383
|
-
left:
|
|
9384
|
-
x:
|
|
9385
|
-
y:
|
|
9380
|
+
top: u,
|
|
9381
|
+
right: c + d,
|
|
9382
|
+
bottom: u + f,
|
|
9383
|
+
left: c,
|
|
9384
|
+
x: c,
|
|
9385
|
+
y: u
|
|
9386
9386
|
};
|
|
9387
9387
|
}
|
|
9388
9388
|
function G2(a) {
|
|
@@ -9489,9 +9489,9 @@ var d8 = function(e, t) {
|
|
|
9489
9489
|
})) : e, Jn(typeof e != "number" ? e : Zn(e, q0));
|
|
9490
9490
|
};
|
|
9491
9491
|
function h8(a) {
|
|
9492
|
-
var e, t = a.state, i = a.name, n = a.options, l = t.elements.arrow, s = t.modifiersData.popperOffsets, r = r3(t.placement), o = _2(r),
|
|
9492
|
+
var e, t = a.state, i = a.name, n = a.options, l = t.elements.arrow, s = t.modifiersData.popperOffsets, r = r3(t.placement), o = _2(r), c = [U1, X1].indexOf(r) >= 0, u = c ? "height" : "width";
|
|
9493
9493
|
if (!(!l || !s)) {
|
|
9494
|
-
var d = d8(n.padding, t), f = G2(l), h = o === "y" ? j1 : U1, g = o === "y" ? Z1 : X1, m = t.rects.reference[
|
|
9494
|
+
var d = d8(n.padding, t), f = G2(l), h = o === "y" ? j1 : U1, g = o === "y" ? Z1 : X1, m = t.rects.reference[u] + t.rects.reference[o] - s[o] - t.rects.popper[u], p = s[o] - t.rects.reference[o], y = G0(l), b = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = m / 2 - p / 2, v = d[h], B = b - f[u] - d[g], x = b / 2 - f[u] / 2 + C, T = R0(v, x, B), R = o;
|
|
9495
9495
|
t.modifiersData[i] = (e = {}, e[R] = T, e.centerOffset = T - x, e);
|
|
9496
9496
|
}
|
|
9497
9497
|
}
|
|
@@ -9525,7 +9525,7 @@ function m8(a, e) {
|
|
|
9525
9525
|
};
|
|
9526
9526
|
}
|
|
9527
9527
|
function ua(a) {
|
|
9528
|
-
var e, t = a.popper, i = a.popperRect, n = a.placement, l = a.variation, s = a.offsets, r = a.position, o = a.gpuAcceleration,
|
|
9528
|
+
var e, t = a.popper, i = a.popperRect, n = a.placement, l = a.variation, s = a.offsets, r = a.position, o = a.gpuAcceleration, c = a.adaptive, u = a.roundOffsets, d = a.isFixed, f = s.x, h = f === void 0 ? 0 : f, g = s.y, m = g === void 0 ? 0 : g, p = typeof u == "function" ? u({
|
|
9529
9529
|
x: h,
|
|
9530
9530
|
y: m
|
|
9531
9531
|
}) : {
|
|
@@ -9534,7 +9534,7 @@ function ua(a) {
|
|
|
9534
9534
|
};
|
|
9535
9535
|
h = p.x, m = p.y;
|
|
9536
9536
|
var y = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), C = U1, v = j1, B = window;
|
|
9537
|
-
if (
|
|
9537
|
+
if (c) {
|
|
9538
9538
|
var x = G0(t), T = "clientHeight", R = "clientWidth";
|
|
9539
9539
|
if (x === Y1(t) && (x = T3(t), b3(x).position !== "static" && r === "absolute" && (T = "scrollHeight", R = "scrollWidth")), x = x, n === j1 || (n === U1 || n === X1) && l === F0) {
|
|
9540
9540
|
v = Z1;
|
|
@@ -9555,7 +9555,7 @@ function ua(a) {
|
|
|
9555
9555
|
}
|
|
9556
9556
|
var j = Object.assign({
|
|
9557
9557
|
position: r
|
|
9558
|
-
},
|
|
9558
|
+
}, c && v8), e1 = u === !0 ? m8({
|
|
9559
9559
|
x: h,
|
|
9560
9560
|
y: m
|
|
9561
9561
|
}, Y1(t)) : {
|
|
@@ -9569,7 +9569,7 @@ function ua(a) {
|
|
|
9569
9569
|
return Object.assign({}, j, (e = {}, e[v] = b ? m + "px" : "", e[C] = y ? h + "px" : "", e.transform = "", e));
|
|
9570
9570
|
}
|
|
9571
9571
|
function g8(a) {
|
|
9572
|
-
var e = a.state, t = a.options, i = t.gpuAcceleration, n = i === void 0 ? !0 : i, l = t.adaptive, s = l === void 0 ? !0 : l, r = t.roundOffsets, o = r === void 0 ? !0 : r,
|
|
9572
|
+
var e = a.state, t = a.options, i = t.gpuAcceleration, n = i === void 0 ? !0 : i, l = t.adaptive, s = l === void 0 ? !0 : l, r = t.roundOffsets, o = r === void 0 ? !0 : r, c = {
|
|
9573
9573
|
placement: r3(e.placement),
|
|
9574
9574
|
variation: y0(e.placement),
|
|
9575
9575
|
popper: e.elements.popper,
|
|
@@ -9577,12 +9577,12 @@ function g8(a) {
|
|
|
9577
9577
|
gpuAcceleration: n,
|
|
9578
9578
|
isFixed: e.options.strategy === "fixed"
|
|
9579
9579
|
};
|
|
9580
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ua(Object.assign({},
|
|
9580
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ua(Object.assign({}, c, {
|
|
9581
9581
|
offsets: e.modifiersData.popperOffsets,
|
|
9582
9582
|
position: e.options.strategy,
|
|
9583
9583
|
adaptive: s,
|
|
9584
9584
|
roundOffsets: o
|
|
9585
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ua(Object.assign({},
|
|
9585
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ua(Object.assign({}, c, {
|
|
9586
9586
|
offsets: e.modifiersData.arrow,
|
|
9587
9587
|
position: "absolute",
|
|
9588
9588
|
adaptive: !1,
|
|
@@ -9602,12 +9602,12 @@ var pe = {
|
|
|
9602
9602
|
passive: !0
|
|
9603
9603
|
};
|
|
9604
9604
|
function y8(a) {
|
|
9605
|
-
var e = a.state, t = a.instance, i = a.options, n = i.scroll, l = n === void 0 ? !0 : n, s = i.resize, r = s === void 0 ? !0 : s, o = Y1(e.elements.popper),
|
|
9606
|
-
return l &&
|
|
9607
|
-
|
|
9605
|
+
var e = a.state, t = a.instance, i = a.options, n = i.scroll, l = n === void 0 ? !0 : n, s = i.resize, r = s === void 0 ? !0 : s, o = Y1(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
9606
|
+
return l && c.forEach(function(u) {
|
|
9607
|
+
u.addEventListener("scroll", t.update, pe);
|
|
9608
9608
|
}), r && o.addEventListener("resize", t.update, pe), function() {
|
|
9609
|
-
l &&
|
|
9610
|
-
|
|
9609
|
+
l && c.forEach(function(u) {
|
|
9610
|
+
u.removeEventListener("scroll", t.update, pe);
|
|
9611
9611
|
}), r && o.removeEventListener("resize", t.update, pe);
|
|
9612
9612
|
};
|
|
9613
9613
|
}
|
|
@@ -9654,8 +9654,8 @@ function z8(a, e) {
|
|
|
9654
9654
|
var t = Y1(a), i = T3(a), n = t.visualViewport, l = i.clientWidth, s = i.clientHeight, r = 0, o = 0;
|
|
9655
9655
|
if (n) {
|
|
9656
9656
|
l = n.width, s = n.height;
|
|
9657
|
-
var
|
|
9658
|
-
(
|
|
9657
|
+
var c = qn();
|
|
9658
|
+
(c || !c && e === "fixed") && (r = n.offsetLeft, o = n.offsetTop);
|
|
9659
9659
|
}
|
|
9660
9660
|
return {
|
|
9661
9661
|
width: l,
|
|
@@ -9711,9 +9711,9 @@ function S8(a) {
|
|
|
9711
9711
|
}) : [];
|
|
9712
9712
|
}
|
|
9713
9713
|
function x8(a, e, t, i) {
|
|
9714
|
-
var n = e === "clippingParents" ? S8(a) : [].concat(e), l = [].concat(n, [t]), s = l[0], r = l.reduce(function(o,
|
|
9715
|
-
var
|
|
9716
|
-
return o.top = Y3(
|
|
9714
|
+
var n = e === "clippingParents" ? S8(a) : [].concat(e), l = [].concat(n, [t]), s = l[0], r = l.reduce(function(o, c) {
|
|
9715
|
+
var u = ha(a, c, i);
|
|
9716
|
+
return o.top = Y3(u.top, o.top), o.right = Ge(u.right, o.right), o.bottom = Ge(u.bottom, o.bottom), o.left = Y3(u.left, o.left), o;
|
|
9717
9717
|
}, ha(a, s, i));
|
|
9718
9718
|
return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
9719
9719
|
}
|
|
@@ -9750,15 +9750,15 @@ function $n(a) {
|
|
|
9750
9750
|
y: e.y
|
|
9751
9751
|
};
|
|
9752
9752
|
}
|
|
9753
|
-
var
|
|
9754
|
-
if (
|
|
9755
|
-
var
|
|
9753
|
+
var c = n ? _2(n) : null;
|
|
9754
|
+
if (c != null) {
|
|
9755
|
+
var u = c === "y" ? "height" : "width";
|
|
9756
9756
|
switch (l) {
|
|
9757
9757
|
case m0:
|
|
9758
|
-
o[
|
|
9758
|
+
o[c] = o[c] - (e[u] / 2 - t[u] / 2);
|
|
9759
9759
|
break;
|
|
9760
9760
|
case F0:
|
|
9761
|
-
o[
|
|
9761
|
+
o[c] = o[c] + (e[u] / 2 - t[u] / 2);
|
|
9762
9762
|
break;
|
|
9763
9763
|
}
|
|
9764
9764
|
}
|
|
@@ -9766,7 +9766,7 @@ function $n(a) {
|
|
|
9766
9766
|
}
|
|
9767
9767
|
function j0(a, e) {
|
|
9768
9768
|
e === void 0 && (e = {});
|
|
9769
|
-
var t = e, i = t.placement, n = i === void 0 ? a.placement : i, l = t.strategy, s = l === void 0 ? a.strategy : l, r = t.boundary, o = r === void 0 ? Gc : r,
|
|
9769
|
+
var t = e, i = t.placement, n = i === void 0 ? a.placement : i, l = t.strategy, s = l === void 0 ? a.strategy : l, r = t.boundary, o = r === void 0 ? Gc : r, c = t.rootBoundary, u = c === void 0 ? Wn : c, d = t.elementContext, f = d === void 0 ? k0 : d, h = t.altBoundary, g = h === void 0 ? !1 : h, m = t.padding, p = m === void 0 ? 0 : m, y = Jn(typeof p != "number" ? p : Zn(p, q0)), b = f === k0 ? _c : k0, C = a.rects.popper, v = a.elements[g ? b : f], B = x8(Z3(v) ? v : v.contextElement || T3(a.elements.popper), o, u, s), x = A0(a.elements.reference), T = $n({
|
|
9770
9770
|
reference: x,
|
|
9771
9771
|
element: C,
|
|
9772
9772
|
placement: n
|
|
@@ -9787,10 +9787,10 @@ function j0(a, e) {
|
|
|
9787
9787
|
}
|
|
9788
9788
|
function k8(a, e) {
|
|
9789
9789
|
e === void 0 && (e = {});
|
|
9790
|
-
var t = e, i = t.placement, n = t.boundary, l = t.rootBoundary, s = t.padding, r = t.flipVariations, o = t.allowedAutoPlacements,
|
|
9791
|
-
return y0(g) ===
|
|
9790
|
+
var t = e, i = t.placement, n = t.boundary, l = t.rootBoundary, s = t.padding, r = t.flipVariations, o = t.allowedAutoPlacements, c = o === void 0 ? Qn : o, u = y0(i), d = u ? r ? oa : oa.filter(function(g) {
|
|
9791
|
+
return y0(g) === u;
|
|
9792
9792
|
}) : q0, f = d.filter(function(g) {
|
|
9793
|
-
return
|
|
9793
|
+
return c.indexOf(g) >= 0;
|
|
9794
9794
|
});
|
|
9795
9795
|
f.length === 0 && (f = d);
|
|
9796
9796
|
var h = f.reduce(function(g, m) {
|
|
@@ -9814,22 +9814,22 @@ function D8(a) {
|
|
|
9814
9814
|
function I8(a) {
|
|
9815
9815
|
var e = a.state, t = a.options, i = a.name;
|
|
9816
9816
|
if (!e.modifiersData[i]._skip) {
|
|
9817
|
-
for (var n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, o = t.fallbackPlacements,
|
|
9817
|
+
for (var n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, o = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, g = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, p = e.options.placement, y = r3(p), b = y === p, C = o || (b || !g ? [ze(p)] : D8(p)), v = [p].concat(C).reduce(function(p1, g1) {
|
|
9818
9818
|
return p1.concat(r3(g1) === Y2 ? k8(e, {
|
|
9819
9819
|
placement: g1,
|
|
9820
|
-
boundary:
|
|
9820
|
+
boundary: u,
|
|
9821
9821
|
rootBoundary: d,
|
|
9822
|
-
padding:
|
|
9822
|
+
padding: c,
|
|
9823
9823
|
flipVariations: g,
|
|
9824
9824
|
allowedAutoPlacements: m
|
|
9825
9825
|
}) : g1);
|
|
9826
9826
|
}, []), B = e.rects.reference, x = e.rects.popper, T = /* @__PURE__ */ new Map(), R = !0, _ = v[0], O = 0; O < v.length; O++) {
|
|
9827
9827
|
var j = v[O], e1 = r3(j), o1 = y0(j) === m0, L = [j1, Z1].indexOf(e1) >= 0, D = L ? "width" : "height", I = j0(e, {
|
|
9828
9828
|
placement: j,
|
|
9829
|
-
boundary:
|
|
9829
|
+
boundary: u,
|
|
9830
9830
|
rootBoundary: d,
|
|
9831
9831
|
altBoundary: f,
|
|
9832
|
-
padding:
|
|
9832
|
+
padding: c
|
|
9833
9833
|
}), E = L ? o1 ? X1 : U1 : o1 ? Z1 : j1;
|
|
9834
9834
|
B[D] > x[D] && (E = ze(E));
|
|
9835
9835
|
var S = ze(E), H = [];
|
|
@@ -9890,14 +9890,14 @@ function B8(a) {
|
|
|
9890
9890
|
elementContext: "reference"
|
|
9891
9891
|
}), r = j0(e, {
|
|
9892
9892
|
altBoundary: !0
|
|
9893
|
-
}), o = fa(s, i),
|
|
9893
|
+
}), o = fa(s, i), c = fa(r, n, l), u = pa(o), d = pa(c);
|
|
9894
9894
|
e.modifiersData[t] = {
|
|
9895
9895
|
referenceClippingOffsets: o,
|
|
9896
|
-
popperEscapeOffsets:
|
|
9897
|
-
isReferenceHidden:
|
|
9896
|
+
popperEscapeOffsets: c,
|
|
9897
|
+
isReferenceHidden: u,
|
|
9898
9898
|
hasPopperEscaped: d
|
|
9899
9899
|
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
9900
|
-
"data-popper-reference-hidden":
|
|
9900
|
+
"data-popper-reference-hidden": u,
|
|
9901
9901
|
"data-popper-escaped": d
|
|
9902
9902
|
});
|
|
9903
9903
|
}
|
|
@@ -9921,10 +9921,10 @@ function T8(a, e, t) {
|
|
|
9921
9921
|
};
|
|
9922
9922
|
}
|
|
9923
9923
|
function H8(a) {
|
|
9924
|
-
var e = a.state, t = a.options, i = a.name, n = t.offset, l = n === void 0 ? [0, 0] : n, s = Qn.reduce(function(
|
|
9925
|
-
return
|
|
9926
|
-
}, {}), r = s[e.placement], o = r.x,
|
|
9927
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y +=
|
|
9924
|
+
var e = a.state, t = a.options, i = a.name, n = t.offset, l = n === void 0 ? [0, 0] : n, s = Qn.reduce(function(u, d) {
|
|
9925
|
+
return u[d] = T8(d, e.rects, l), u;
|
|
9926
|
+
}, {}), r = s[e.placement], o = r.x, c = r.y;
|
|
9927
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += c), e.modifiersData[i] = s;
|
|
9928
9928
|
}
|
|
9929
9929
|
const L8 = {
|
|
9930
9930
|
name: "offset",
|
|
@@ -9952,11 +9952,11 @@ function F8(a) {
|
|
|
9952
9952
|
return a === "x" ? "y" : "x";
|
|
9953
9953
|
}
|
|
9954
9954
|
function j8(a) {
|
|
9955
|
-
var e = a.state, t = a.options, i = a.name, n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, o = t.boundary,
|
|
9955
|
+
var e = a.state, t = a.options, i = a.name, n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, o = t.boundary, c = t.rootBoundary, u = t.altBoundary, d = t.padding, f = t.tether, h = f === void 0 ? !0 : f, g = t.tetherOffset, m = g === void 0 ? 0 : g, p = j0(e, {
|
|
9956
9956
|
boundary: o,
|
|
9957
|
-
rootBoundary:
|
|
9957
|
+
rootBoundary: c,
|
|
9958
9958
|
padding: d,
|
|
9959
|
-
altBoundary:
|
|
9959
|
+
altBoundary: u
|
|
9960
9960
|
}), y = r3(e.placement), b = y0(e.placement), C = !b, v = _2(y), B = F8(v), x = e.modifiersData.popperOffsets, T = e.rects.reference, R = e.rects.popper, _ = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
9961
9961
|
placement: e.placement
|
|
9962
9962
|
})) : m, O = typeof _ == "number" ? {
|
|
@@ -10085,9 +10085,9 @@ function ma() {
|
|
|
10085
10085
|
function J8(a) {
|
|
10086
10086
|
a === void 0 && (a = {});
|
|
10087
10087
|
var e = a, t = e.defaultModifiers, i = t === void 0 ? [] : t, n = e.defaultOptions, l = n === void 0 ? va : n;
|
|
10088
|
-
return function(r, o,
|
|
10089
|
-
|
|
10090
|
-
var
|
|
10088
|
+
return function(r, o, c) {
|
|
10089
|
+
c === void 0 && (c = l);
|
|
10090
|
+
var u = {
|
|
10091
10091
|
placement: "bottom",
|
|
10092
10092
|
orderedModifiers: [],
|
|
10093
10093
|
options: Object.assign({}, va, l),
|
|
@@ -10099,15 +10099,15 @@ function J8(a) {
|
|
|
10099
10099
|
attributes: {},
|
|
10100
10100
|
styles: {}
|
|
10101
10101
|
}, d = [], f = !1, h = {
|
|
10102
|
-
state:
|
|
10102
|
+
state: u,
|
|
10103
10103
|
setOptions: function(y) {
|
|
10104
|
-
var b = typeof y == "function" ? y(
|
|
10105
|
-
m(),
|
|
10104
|
+
var b = typeof y == "function" ? y(u.options) : y;
|
|
10105
|
+
m(), u.options = Object.assign({}, l, u.options, b), u.scrollParents = {
|
|
10106
10106
|
reference: Z3(r) ? T0(r) : r.contextElement ? T0(r.contextElement) : [],
|
|
10107
10107
|
popper: T0(o)
|
|
10108
10108
|
};
|
|
10109
|
-
var C = q8(_8([].concat(i,
|
|
10110
|
-
return
|
|
10109
|
+
var C = q8(_8([].concat(i, u.options.modifiers)));
|
|
10110
|
+
return u.orderedModifiers = C.filter(function(v) {
|
|
10111
10111
|
return v.enabled;
|
|
10112
10112
|
}), g(), h.update();
|
|
10113
10113
|
},
|
|
@@ -10118,26 +10118,26 @@ function J8(a) {
|
|
|
10118
10118
|
// prefer the async Popper#update method
|
|
10119
10119
|
forceUpdate: function() {
|
|
10120
10120
|
if (!f) {
|
|
10121
|
-
var y =
|
|
10121
|
+
var y = u.elements, b = y.reference, C = y.popper;
|
|
10122
10122
|
if (ma(b, C)) {
|
|
10123
|
-
|
|
10124
|
-
reference: Q8(b, G0(C),
|
|
10123
|
+
u.rects = {
|
|
10124
|
+
reference: Q8(b, G0(C), u.options.strategy === "fixed"),
|
|
10125
10125
|
popper: G2(C)
|
|
10126
|
-
},
|
|
10127
|
-
return
|
|
10126
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(O) {
|
|
10127
|
+
return u.modifiersData[O.name] = Object.assign({}, O.data);
|
|
10128
10128
|
});
|
|
10129
|
-
for (var v = 0; v <
|
|
10130
|
-
if (
|
|
10131
|
-
|
|
10129
|
+
for (var v = 0; v < u.orderedModifiers.length; v++) {
|
|
10130
|
+
if (u.reset === !0) {
|
|
10131
|
+
u.reset = !1, v = -1;
|
|
10132
10132
|
continue;
|
|
10133
10133
|
}
|
|
10134
|
-
var B =
|
|
10135
|
-
typeof x == "function" && (
|
|
10136
|
-
state:
|
|
10134
|
+
var B = u.orderedModifiers[v], x = B.fn, T = B.options, R = T === void 0 ? {} : T, _ = B.name;
|
|
10135
|
+
typeof x == "function" && (u = x({
|
|
10136
|
+
state: u,
|
|
10137
10137
|
options: R,
|
|
10138
10138
|
name: _,
|
|
10139
10139
|
instance: h
|
|
10140
|
-
}) ||
|
|
10140
|
+
}) || u);
|
|
10141
10141
|
}
|
|
10142
10142
|
}
|
|
10143
10143
|
}
|
|
@@ -10146,7 +10146,7 @@ function J8(a) {
|
|
|
10146
10146
|
// not necessary (debounced to run at most once-per-tick)
|
|
10147
10147
|
update: G8(function() {
|
|
10148
10148
|
return new Promise(function(p) {
|
|
10149
|
-
h.forceUpdate(), p(
|
|
10149
|
+
h.forceUpdate(), p(u);
|
|
10150
10150
|
});
|
|
10151
10151
|
}),
|
|
10152
10152
|
destroy: function() {
|
|
@@ -10155,15 +10155,15 @@ function J8(a) {
|
|
|
10155
10155
|
};
|
|
10156
10156
|
if (!ma(r, o))
|
|
10157
10157
|
return h;
|
|
10158
|
-
h.setOptions(
|
|
10159
|
-
!f &&
|
|
10158
|
+
h.setOptions(c).then(function(p) {
|
|
10159
|
+
!f && c.onFirstUpdate && c.onFirstUpdate(p);
|
|
10160
10160
|
});
|
|
10161
10161
|
function g() {
|
|
10162
|
-
|
|
10162
|
+
u.orderedModifiers.forEach(function(p) {
|
|
10163
10163
|
var y = p.name, b = p.options, C = b === void 0 ? {} : b, v = p.effect;
|
|
10164
10164
|
if (typeof v == "function") {
|
|
10165
10165
|
var B = v({
|
|
10166
|
-
state:
|
|
10166
|
+
state: u,
|
|
10167
10167
|
name: y,
|
|
10168
10168
|
instance: h,
|
|
10169
10169
|
options: C
|
|
@@ -10284,10 +10284,10 @@ function u9(a) {
|
|
|
10284
10284
|
function d9(a, e) {
|
|
10285
10285
|
var t = e.clientX, i = e.clientY;
|
|
10286
10286
|
return a.every(function(n) {
|
|
10287
|
-
var l = n.popperRect, s = n.popperState, r = n.props, o = r.interactiveBorder,
|
|
10288
|
-
if (!
|
|
10287
|
+
var l = n.popperRect, s = n.popperState, r = n.props, o = r.interactiveBorder, c = l9(s.placement), u = s.modifiersData.offset;
|
|
10288
|
+
if (!u)
|
|
10289
10289
|
return !0;
|
|
10290
|
-
var d =
|
|
10290
|
+
var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, g = c === "left" ? u.right.x : 0, m = l.top - i + d > o, p = i - l.bottom - f > o, y = l.left - t + h > o, b = t - l.right - g > o;
|
|
10291
10291
|
return m || p || y || b;
|
|
10292
10292
|
});
|
|
10293
10293
|
}
|
|
@@ -10535,8 +10535,8 @@ function u4(a) {
|
|
|
10535
10535
|
var i = H0();
|
|
10536
10536
|
i.className = e4, i.setAttribute("data-state", "hidden"), Sa(i, a.props), e.appendChild(t), t.appendChild(i), n(a.props, a.props);
|
|
10537
10537
|
function n(l, s) {
|
|
10538
|
-
var r = s2(e), o = r.box,
|
|
10539
|
-
s.theme ? o.setAttribute("data-theme", s.theme) : o.removeAttribute("data-theme"), typeof s.animation == "string" ? o.setAttribute("data-animation", s.animation) : o.removeAttribute("data-animation"), s.inertia ? o.setAttribute("data-inertia", "") : o.removeAttribute("data-inertia"), o.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? o.setAttribute("role", s.role) : o.removeAttribute("role"), (l.content !== s.content || l.allowHTML !== s.allowHTML) && Sa(
|
|
10538
|
+
var r = s2(e), o = r.box, c = r.content, u = r.arrow;
|
|
10539
|
+
s.theme ? o.setAttribute("data-theme", s.theme) : o.removeAttribute("data-theme"), typeof s.animation == "string" ? o.setAttribute("data-animation", s.animation) : o.removeAttribute("data-animation"), s.inertia ? o.setAttribute("data-inertia", "") : o.removeAttribute("data-inertia"), o.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? o.setAttribute("role", s.role) : o.removeAttribute("role"), (l.content !== s.content || l.allowHTML !== s.allowHTML) && Sa(c, a.props), s.arrow ? u ? l.arrow !== s.arrow && (o.removeChild(u), o.appendChild(Ma(s.arrow))) : o.appendChild(Ma(s.arrow)) : u && o.removeChild(u);
|
|
10540
10540
|
}
|
|
10541
10541
|
return {
|
|
10542
10542
|
popper: e,
|
|
@@ -10546,7 +10546,7 @@ function u4(a) {
|
|
|
10546
10546
|
u4.$$tippy = !0;
|
|
10547
10547
|
var M9 = 1, ve = [], Ht = [];
|
|
10548
10548
|
function S9(a, e) {
|
|
10549
|
-
var t = Ca(a, Object.assign({}, P1, o4(ya(e)))), i, n, l, s = !1, r = !1, o = !1,
|
|
10549
|
+
var t = Ca(a, Object.assign({}, P1, o4(ya(e)))), i, n, l, s = !1, r = !1, o = !1, c = !1, u, d, f, h = [], g = ga(Z0, t.interactiveDebounce), m, p = M9++, y = null, b = n9(t.plugins), C = {
|
|
10550
10550
|
// Is the instance currently enabled?
|
|
10551
10551
|
isEnabled: !0,
|
|
10552
10552
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -10612,7 +10612,7 @@ function S9(a, e) {
|
|
|
10612
10612
|
return s2(x);
|
|
10613
10613
|
}
|
|
10614
10614
|
function I(M) {
|
|
10615
|
-
return v.state.isMounted && !v.state.isVisible || l3.isTouch ||
|
|
10615
|
+
return v.state.isMounted && !v.state.isVisible || l3.isTouch || u && u.type === "focus" ? 0 : Bt(v.props.delay, M ? 0 : 1, P1.delay);
|
|
10616
10616
|
}
|
|
10617
10617
|
function E(M) {
|
|
10618
10618
|
M === void 0 && (M = !1), x.style.pointerEvents = v.props.interactive && !M ? "" : "none", x.style.zIndex = "" + v.props.zIndex;
|
|
@@ -10742,8 +10742,8 @@ function S9(a, e) {
|
|
|
10742
10742
|
function i3(M) {
|
|
10743
10743
|
var N, q = !1;
|
|
10744
10744
|
if (!(!v.state.isEnabled || C0(M) || r)) {
|
|
10745
|
-
var u1 = ((N =
|
|
10746
|
-
|
|
10745
|
+
var u1 = ((N = u) == null ? void 0 : N.type) === "focus";
|
|
10746
|
+
u = M, m = M.currentTarget, U(), !v.state.isVisible && r9(M) && ve.forEach(function(s1) {
|
|
10747
10747
|
return s1(M);
|
|
10748
10748
|
}), M.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? q = !0 : M0(M), M.type === "click" && (s = !q), q && !u1 && H3(M);
|
|
10749
10749
|
}
|
|
@@ -10909,8 +10909,8 @@ function S9(a, e) {
|
|
|
10909
10909
|
}
|
|
10910
10910
|
f = function() {
|
|
10911
10911
|
var L3;
|
|
10912
|
-
if (!(!v.state.isVisible ||
|
|
10913
|
-
if (
|
|
10912
|
+
if (!(!v.state.isVisible || c)) {
|
|
10913
|
+
if (c = !0, x.offsetHeight, x.style.transition = v.props.moveTransition, e1() && v.props.animation) {
|
|
10914
10914
|
var ft = D(), le = ft.box, i0 = ft.content;
|
|
10915
10915
|
Rt([le, i0], s1), ba([le, i0], "visible");
|
|
10916
10916
|
}
|
|
@@ -10925,7 +10925,7 @@ function S9(a, e) {
|
|
|
10925
10925
|
process.env.NODE_ENV !== "production" && f3(v.state.isDestroyed, n0("hide"));
|
|
10926
10926
|
var M = !v.state.isVisible, N = v.state.isDestroyed, q = !v.state.isEnabled, u1 = Bt(v.props.duration, 1, P1.duration);
|
|
10927
10927
|
if (!(M || N || q) && (S("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
10928
|
-
if (v.state.isVisible = !1, v.state.isShown = !1,
|
|
10928
|
+
if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, s = !1, e1() && (x.style.visibility = "hidden"), X(), k1(), E(!0), e1()) {
|
|
10929
10929
|
var s1 = D(), H1 = s1.box, G1 = s1.content;
|
|
10930
10930
|
v.props.animation && (Rt([H1, G1], u1), ba([H1, G1], "hidden"));
|
|
10931
10931
|
}
|
|
@@ -10962,9 +10962,9 @@ function _0(a, e) {
|
|
|
10962
10962
|
`, `1) content: element.innerHTML
|
|
10963
10963
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
10964
10964
|
}
|
|
10965
|
-
var r = n.reduce(function(o,
|
|
10966
|
-
var
|
|
10967
|
-
return
|
|
10965
|
+
var r = n.reduce(function(o, c) {
|
|
10966
|
+
var u = c && S9(c, i);
|
|
10967
|
+
return u && o.push(u), o;
|
|
10968
10968
|
}, []);
|
|
10969
10969
|
return U0(a) ? r[0] : r;
|
|
10970
10970
|
}
|
|
@@ -11021,12 +11021,12 @@ const Lh = /* @__PURE__ */ l1({
|
|
|
11021
11021
|
start: d.event.start?.toISOString() || "",
|
|
11022
11022
|
end: d.event.end?.toISOString() || ""
|
|
11023
11023
|
});
|
|
11024
|
-
},
|
|
11024
|
+
}, c = (d) => {
|
|
11025
11025
|
i("onChangeView", {
|
|
11026
11026
|
start: d.startStr,
|
|
11027
11027
|
end: d.endStr
|
|
11028
11028
|
});
|
|
11029
|
-
},
|
|
11029
|
+
}, u = P(() => ({
|
|
11030
11030
|
plugins: [F5, rc, Yc],
|
|
11031
11031
|
initialView: n.value,
|
|
11032
11032
|
locale: qc,
|
|
@@ -11034,7 +11034,7 @@ const Lh = /* @__PURE__ */ l1({
|
|
|
11034
11034
|
select: r,
|
|
11035
11035
|
eventClick: o,
|
|
11036
11036
|
expandRows: !1,
|
|
11037
|
-
datesSet:
|
|
11037
|
+
datesSet: c,
|
|
11038
11038
|
allDaySlot: !1,
|
|
11039
11039
|
titleFormat: { month: "long", day: "numeric", year: "numeric" },
|
|
11040
11040
|
views: {
|
|
@@ -11078,7 +11078,7 @@ const Lh = /* @__PURE__ */ l1({
|
|
|
11078
11078
|
},
|
|
11079
11079
|
events: t.events
|
|
11080
11080
|
}));
|
|
11081
|
-
return (d, f) => (w(), i1(
|
|
11081
|
+
return (d, f) => (w(), i1(S1(o5), { options: u.value }, null, 8, ["options"]));
|
|
11082
11082
|
}
|
|
11083
11083
|
}), x9 = ["disabled"], k9 = ["innerHTML"], r2 = /* @__PURE__ */ l1({
|
|
11084
11084
|
__name: "CheckboxBase",
|
|
@@ -11099,7 +11099,7 @@ const Lh = /* @__PURE__ */ l1({
|
|
|
11099
11099
|
const e = a, t = I4(a, "modelValue"), i = Z(e.indeterminate ? "minus" : "check"), n = (l) => {
|
|
11100
11100
|
l.target instanceof HTMLElement && (l.target.className === "no-click" || l.target.parentNode instanceof HTMLElement && l.target.parentNode.className.includes("no-click")) && l.preventDefault();
|
|
11101
11101
|
};
|
|
11102
|
-
return
|
|
11102
|
+
return x1(
|
|
11103
11103
|
() => e.indeterminate,
|
|
11104
11104
|
(l) => {
|
|
11105
11105
|
i.value = l ? "minus" : "check";
|
|
@@ -11174,7 +11174,7 @@ function H9(a, e = !0, t) {
|
|
|
11174
11174
|
T9() ? X3(a, t) : e ? a() : m3(a);
|
|
11175
11175
|
}
|
|
11176
11176
|
function h4(a, e, t) {
|
|
11177
|
-
return
|
|
11177
|
+
return x1(
|
|
11178
11178
|
a,
|
|
11179
11179
|
e,
|
|
11180
11180
|
{
|
|
@@ -11192,28 +11192,28 @@ function b0(a) {
|
|
|
11192
11192
|
function xa(...a) {
|
|
11193
11193
|
const e = [], t = () => {
|
|
11194
11194
|
e.forEach((r) => r()), e.length = 0;
|
|
11195
|
-
}, i = (r, o,
|
|
11195
|
+
}, i = (r, o, c, u) => (r.addEventListener(o, c, u), () => r.removeEventListener(o, c, u)), n = P(() => {
|
|
11196
11196
|
const r = q3(I1(a[0])).filter((o) => o != null);
|
|
11197
11197
|
return r.every((o) => typeof o != "string") ? r : void 0;
|
|
11198
11198
|
}), l = h4(
|
|
11199
11199
|
() => {
|
|
11200
11200
|
var r, o;
|
|
11201
11201
|
return [
|
|
11202
|
-
(o = (r = n.value) == null ? void 0 : r.map((
|
|
11202
|
+
(o = (r = n.value) == null ? void 0 : r.map((c) => b0(c))) != null ? o : [t6].filter((c) => c != null),
|
|
11203
11203
|
q3(I1(n.value ? a[1] : a[0])),
|
|
11204
|
-
q3(
|
|
11204
|
+
q3(S1(n.value ? a[2] : a[1])),
|
|
11205
11205
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
11206
11206
|
I1(n.value ? a[3] : a[2])
|
|
11207
11207
|
];
|
|
11208
11208
|
},
|
|
11209
|
-
([r, o,
|
|
11210
|
-
if (t(), !r?.length || !o?.length || !
|
|
11209
|
+
([r, o, c, u]) => {
|
|
11210
|
+
if (t(), !r?.length || !o?.length || !c?.length)
|
|
11211
11211
|
return;
|
|
11212
|
-
const d = d4(
|
|
11212
|
+
const d = d4(u) ? { ...u } : u;
|
|
11213
11213
|
e.push(
|
|
11214
11214
|
...r.flatMap(
|
|
11215
11215
|
(f) => o.flatMap(
|
|
11216
|
-
(h) =>
|
|
11216
|
+
(h) => c.map((g) => i(f, h, g, d))
|
|
11217
11217
|
)
|
|
11218
11218
|
)
|
|
11219
11219
|
);
|
|
@@ -11244,19 +11244,19 @@ function O9(a, e, t = {}) {
|
|
|
11244
11244
|
}, o = P(() => {
|
|
11245
11245
|
const f = I1(a), h = q3(f).map(b0).filter(I9);
|
|
11246
11246
|
return new Set(h);
|
|
11247
|
-
}),
|
|
11247
|
+
}), c = x1(
|
|
11248
11248
|
o,
|
|
11249
11249
|
(f) => {
|
|
11250
11250
|
r(), s.value && f.size && (l = new MutationObserver(e), f.forEach((h) => l.observe(h, n)));
|
|
11251
11251
|
},
|
|
11252
11252
|
{ immediate: !0, flush: "post" }
|
|
11253
|
-
),
|
|
11254
|
-
|
|
11253
|
+
), u = () => l?.takeRecords(), d = () => {
|
|
11254
|
+
c(), r();
|
|
11255
11255
|
};
|
|
11256
11256
|
return J0(d), {
|
|
11257
11257
|
isSupported: s,
|
|
11258
11258
|
stop: d,
|
|
11259
|
-
takeRecords:
|
|
11259
|
+
takeRecords: u
|
|
11260
11260
|
};
|
|
11261
11261
|
}
|
|
11262
11262
|
function N9(a, e, t = {}) {
|
|
@@ -11267,7 +11267,7 @@ function N9(a, e, t = {}) {
|
|
|
11267
11267
|
}, o = P(() => {
|
|
11268
11268
|
const d = I1(a);
|
|
11269
11269
|
return Array.isArray(d) ? d.map((f) => b0(f)) : [b0(d)];
|
|
11270
|
-
}),
|
|
11270
|
+
}), c = x1(
|
|
11271
11271
|
o,
|
|
11272
11272
|
(d) => {
|
|
11273
11273
|
if (r(), s.value && i) {
|
|
@@ -11277,12 +11277,12 @@ function N9(a, e, t = {}) {
|
|
|
11277
11277
|
}
|
|
11278
11278
|
},
|
|
11279
11279
|
{ immediate: !0, flush: "post" }
|
|
11280
|
-
),
|
|
11281
|
-
r(),
|
|
11280
|
+
), u = () => {
|
|
11281
|
+
r(), c();
|
|
11282
11282
|
};
|
|
11283
|
-
return J0(
|
|
11283
|
+
return J0(u), {
|
|
11284
11284
|
isSupported: s,
|
|
11285
|
-
stop:
|
|
11285
|
+
stop: u
|
|
11286
11286
|
};
|
|
11287
11287
|
}
|
|
11288
11288
|
function ka(a, e = {}) {
|
|
@@ -11292,28 +11292,28 @@ function ka(a, e = {}) {
|
|
|
11292
11292
|
windowScroll: n = !0,
|
|
11293
11293
|
immediate: l = !0,
|
|
11294
11294
|
updateTiming: s = "sync"
|
|
11295
|
-
} = e, r = $1(0), o = $1(0),
|
|
11295
|
+
} = e, r = $1(0), o = $1(0), c = $1(0), u = $1(0), d = $1(0), f = $1(0), h = $1(0), g = $1(0);
|
|
11296
11296
|
function m() {
|
|
11297
11297
|
const y = b0(a);
|
|
11298
11298
|
if (!y) {
|
|
11299
|
-
t && (r.value = 0, o.value = 0,
|
|
11299
|
+
t && (r.value = 0, o.value = 0, c.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0, g.value = 0);
|
|
11300
11300
|
return;
|
|
11301
11301
|
}
|
|
11302
11302
|
const b = y.getBoundingClientRect();
|
|
11303
|
-
r.value = b.height, o.value = b.bottom,
|
|
11303
|
+
r.value = b.height, o.value = b.bottom, c.value = b.left, u.value = b.right, d.value = b.top, f.value = b.width, h.value = b.x, g.value = b.y;
|
|
11304
11304
|
}
|
|
11305
11305
|
function p() {
|
|
11306
11306
|
s === "sync" ? m() : s === "next-frame" && requestAnimationFrame(() => m());
|
|
11307
11307
|
}
|
|
11308
|
-
return N9(a, p),
|
|
11308
|
+
return N9(a, p), x1(() => b0(a), (y) => !y && p()), O9(a, p, {
|
|
11309
11309
|
attributeFilter: ["style", "class"]
|
|
11310
11310
|
}), n && xa("scroll", p, { capture: !0, passive: !0 }), i && xa("resize", p, { passive: !0 }), H9(() => {
|
|
11311
11311
|
l && p();
|
|
11312
11312
|
}), {
|
|
11313
11313
|
height: r,
|
|
11314
11314
|
bottom: o,
|
|
11315
|
-
left:
|
|
11316
|
-
right:
|
|
11315
|
+
left: c,
|
|
11316
|
+
right: u,
|
|
11317
11317
|
top: d,
|
|
11318
11318
|
width: f,
|
|
11319
11319
|
x: h,
|
|
@@ -11330,28 +11330,28 @@ function D0(a) {
|
|
|
11330
11330
|
function Ce(...a) {
|
|
11331
11331
|
const e = [], t = () => {
|
|
11332
11332
|
e.forEach((r) => r()), e.length = 0;
|
|
11333
|
-
}, i = (r, o,
|
|
11333
|
+
}, i = (r, o, c, u) => (r.addEventListener(o, c, u), () => r.removeEventListener(o, c, u)), n = P(() => {
|
|
11334
11334
|
const r = q3(I1(a[0])).filter((o) => o != null);
|
|
11335
11335
|
return r.every((o) => typeof o != "string") ? r : void 0;
|
|
11336
11336
|
}), l = h4(
|
|
11337
11337
|
() => {
|
|
11338
11338
|
var r, o;
|
|
11339
11339
|
return [
|
|
11340
|
-
(o = (r = n.value) == null ? void 0 : r.map((
|
|
11340
|
+
(o = (r = n.value) == null ? void 0 : r.map((c) => D0(c))) != null ? o : [p4].filter((c) => c != null),
|
|
11341
11341
|
q3(I1(n.value ? a[1] : a[0])),
|
|
11342
|
-
q3(
|
|
11342
|
+
q3(S1(n.value ? a[2] : a[1])),
|
|
11343
11343
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
11344
11344
|
I1(n.value ? a[3] : a[2])
|
|
11345
11345
|
];
|
|
11346
11346
|
},
|
|
11347
|
-
([r, o,
|
|
11348
|
-
if (t(), !r?.length || !o?.length || !
|
|
11347
|
+
([r, o, c, u]) => {
|
|
11348
|
+
if (t(), !r?.length || !o?.length || !c?.length)
|
|
11349
11349
|
return;
|
|
11350
|
-
const d = d4(
|
|
11350
|
+
const d = d4(u) ? { ...u } : u;
|
|
11351
11351
|
e.push(
|
|
11352
11352
|
...r.flatMap(
|
|
11353
11353
|
(f) => o.flatMap(
|
|
11354
|
-
(h) =>
|
|
11354
|
+
(h) => c.map((g) => i(f, h, g, d))
|
|
11355
11355
|
)
|
|
11356
11356
|
)
|
|
11357
11357
|
);
|
|
@@ -11373,7 +11373,7 @@ function Ia(a, e, t = {}) {
|
|
|
11373
11373
|
Array.from(i.document.body.children).forEach((y) => y.addEventListener("click", U3, p)), i.document.documentElement.addEventListener("click", U3, p);
|
|
11374
11374
|
}
|
|
11375
11375
|
let o = !0;
|
|
11376
|
-
const
|
|
11376
|
+
const c = (p) => I1(n).some((y) => {
|
|
11377
11377
|
if (typeof y == "string")
|
|
11378
11378
|
return Array.from(i.document.querySelectorAll(y)).some((b) => b === p.target || p.composedPath().includes(b));
|
|
11379
11379
|
{
|
|
@@ -11381,7 +11381,7 @@ function Ia(a, e, t = {}) {
|
|
|
11381
11381
|
return b && (p.target === b || p.composedPath().includes(b));
|
|
11382
11382
|
}
|
|
11383
11383
|
});
|
|
11384
|
-
function
|
|
11384
|
+
function u(p) {
|
|
11385
11385
|
const y = I1(p);
|
|
11386
11386
|
return y && y.$.subTree.shapeFlag === 16;
|
|
11387
11387
|
}
|
|
@@ -11391,8 +11391,8 @@ function Ia(a, e, t = {}) {
|
|
|
11391
11391
|
}
|
|
11392
11392
|
const f = (p) => {
|
|
11393
11393
|
const y = D0(a);
|
|
11394
|
-
if (p.target != null && !(!(y instanceof Element) &&
|
|
11395
|
-
if ("detail" in p && p.detail === 0 && (o = !
|
|
11394
|
+
if (p.target != null && !(!(y instanceof Element) && u(a) && d(a, p)) && !(!y || y === p.target || p.composedPath().includes(y))) {
|
|
11395
|
+
if ("detail" in p && p.detail === 0 && (o = !c(p)), !o) {
|
|
11396
11396
|
o = !0;
|
|
11397
11397
|
return;
|
|
11398
11398
|
}
|
|
@@ -11408,7 +11408,7 @@ function Ia(a, e, t = {}) {
|
|
|
11408
11408
|
}, { passive: !0, capture: l }),
|
|
11409
11409
|
Ce(i, "pointerdown", (p) => {
|
|
11410
11410
|
const y = D0(a);
|
|
11411
|
-
o = !
|
|
11411
|
+
o = !c(p) && !!(y && !p.composedPath().includes(y));
|
|
11412
11412
|
}, { passive: !0 }),
|
|
11413
11413
|
s && Ce(i, "blur", (p) => {
|
|
11414
11414
|
setTimeout(() => {
|
|
@@ -11465,14 +11465,14 @@ const Nt = /* @__PURE__ */ new WeakMap();
|
|
|
11465
11465
|
function U9(a, e = !1) {
|
|
11466
11466
|
const t = $1(e);
|
|
11467
11467
|
let i = null, n = "";
|
|
11468
|
-
|
|
11468
|
+
x1(R9(a), (r) => {
|
|
11469
11469
|
const o = Ot(I1(r));
|
|
11470
11470
|
if (o) {
|
|
11471
|
-
const
|
|
11472
|
-
if (Nt.get(
|
|
11471
|
+
const c = o;
|
|
11472
|
+
if (Nt.get(c) || Nt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (n = c.style.overflow), c.style.overflow === "hidden")
|
|
11473
11473
|
return t.value = !0;
|
|
11474
11474
|
if (t.value)
|
|
11475
|
-
return
|
|
11475
|
+
return c.style.overflow = "hidden";
|
|
11476
11476
|
}
|
|
11477
11477
|
}, {
|
|
11478
11478
|
immediate: !0
|
|
@@ -11508,7 +11508,7 @@ function K9() {
|
|
|
11508
11508
|
return;
|
|
11509
11509
|
a = !0;
|
|
11510
11510
|
const n = U9(t, i.value);
|
|
11511
|
-
|
|
11511
|
+
x1(e, (l) => n.value = l);
|
|
11512
11512
|
};
|
|
11513
11513
|
}
|
|
11514
11514
|
K9();
|
|
@@ -11527,10 +11527,10 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11527
11527
|
setup(a, { emit: e }) {
|
|
11528
11528
|
const t = a, i = e, n = Z(!1), l = Ve("contentWrapper"), s = Ve("menuContainer"), r = Z({}), o = () => {
|
|
11529
11529
|
n.value && (n.value = !1, i("close"));
|
|
11530
|
-
},
|
|
11530
|
+
}, c = [
|
|
11531
11531
|
o,
|
|
11532
11532
|
{ ignore: [s] }
|
|
11533
|
-
],
|
|
11533
|
+
], u = () => {
|
|
11534
11534
|
if (n.value) {
|
|
11535
11535
|
o();
|
|
11536
11536
|
return;
|
|
@@ -11573,7 +11573,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11573
11573
|
const p = l.value;
|
|
11574
11574
|
p && m.target instanceof Node && p.contains(m.target) || o();
|
|
11575
11575
|
}, h = () => d();
|
|
11576
|
-
|
|
11576
|
+
x1(n, (m) => {
|
|
11577
11577
|
m ? (window.addEventListener("scroll", f, !0), window.addEventListener("resize", h)) : (window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", h));
|
|
11578
11578
|
}), u2(() => {
|
|
11579
11579
|
window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", h);
|
|
@@ -11583,7 +11583,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11583
11583
|
V("div", P9, [
|
|
11584
11584
|
V("div", {
|
|
11585
11585
|
ref: "menuContainer",
|
|
11586
|
-
onClick:
|
|
11586
|
+
onClick: u
|
|
11587
11587
|
}, [
|
|
11588
11588
|
_1(m.$slots, "default")
|
|
11589
11589
|
], 512),
|
|
@@ -11603,7 +11603,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11603
11603
|
}, Y(y.label), 9, Q9))), 128))
|
|
11604
11604
|
])) : m.$slots.content ? _1(m.$slots, "content", { key: 1 }) : F("", !0)
|
|
11605
11605
|
], 6)), [
|
|
11606
|
-
[
|
|
11606
|
+
[S1(F9), c]
|
|
11607
11607
|
]) : F("", !0)
|
|
11608
11608
|
])
|
|
11609
11609
|
]));
|
|
@@ -11663,10 +11663,10 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11663
11663
|
setup(a) {
|
|
11664
11664
|
const e = a, t = Z(!1), i = Z({}), n = Z(null), l = Z(null), s = Z(!1);
|
|
11665
11665
|
let r = null;
|
|
11666
|
-
const o = Qa(),
|
|
11666
|
+
const o = Qa(), c = P(() => {
|
|
11667
11667
|
const h = o.content?.();
|
|
11668
11668
|
return h && h?.length > 0 && h[0].children.length > 0 ? "visible" : "hidden";
|
|
11669
|
-
}),
|
|
11669
|
+
}), u = async () => {
|
|
11670
11670
|
s.value = !0, t.value = !0, await m3(), f();
|
|
11671
11671
|
}, d = () => {
|
|
11672
11672
|
if (s.value = !1, !e.removeDelay) {
|
|
@@ -11698,14 +11698,14 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
|
|
|
11698
11698
|
...C,
|
|
11699
11699
|
position: "absolute",
|
|
11700
11700
|
zIndex: "9999",
|
|
11701
|
-
visibility:
|
|
11701
|
+
visibility: c.value,
|
|
11702
11702
|
...e.style
|
|
11703
11703
|
};
|
|
11704
11704
|
};
|
|
11705
11705
|
return (h, g) => (w(), k(h1, null, [
|
|
11706
11706
|
V("div", {
|
|
11707
11707
|
class: "tooltip-container",
|
|
11708
|
-
onMouseenter:
|
|
11708
|
+
onMouseenter: u,
|
|
11709
11709
|
onMouseleave: d
|
|
11710
11710
|
}, [
|
|
11711
11711
|
V("div", {
|
|
@@ -11787,9 +11787,9 @@ function Je(a, e) {
|
|
|
11787
11787
|
const r = e instanceof RegExp, o = a instanceof RegExp;
|
|
11788
11788
|
if (r && o) return e.toString() == a.toString();
|
|
11789
11789
|
if (r != o) return !1;
|
|
11790
|
-
const
|
|
11791
|
-
for (n = 0; n <
|
|
11792
|
-
for (n = 0; n <
|
|
11790
|
+
const c = Object.keys(e);
|
|
11791
|
+
for (n = 0; n < c.length; n++) if (!Object.prototype.hasOwnProperty.call(a, c[n])) return !1;
|
|
11792
|
+
for (n = 0; n < c.length; n++) if (!Je(a[c[n]], e[c[n]])) return !1;
|
|
11793
11793
|
return !0;
|
|
11794
11794
|
} else if (e && a && typeof e == "function" && typeof a == "function")
|
|
11795
11795
|
return e.toString() === a.toString();
|
|
@@ -12459,17 +12459,17 @@ class V1 {
|
|
|
12459
12459
|
const o = this.state;
|
|
12460
12460
|
if (this.overwrite === !0) {
|
|
12461
12461
|
s = i.state;
|
|
12462
|
-
for (let
|
|
12462
|
+
for (let u = 0; u < l.rawInserted.length; ++u)
|
|
12463
12463
|
i.unshift(this.displayValue.length - l.tailShift);
|
|
12464
12464
|
}
|
|
12465
|
-
let
|
|
12466
|
-
if (r =
|
|
12465
|
+
let c = this.appendTail(i);
|
|
12466
|
+
if (r = c.rawInserted.length === i.toString().length, !(r && c.inserted) && this.overwrite === "shift") {
|
|
12467
12467
|
this.state = o, s = i.state;
|
|
12468
|
-
for (let
|
|
12468
|
+
for (let u = 0; u < l.rawInserted.length; ++u)
|
|
12469
12469
|
i.shift();
|
|
12470
|
-
|
|
12470
|
+
c = this.appendTail(i), r = c.rawInserted.length === i.toString().length;
|
|
12471
12471
|
}
|
|
12472
|
-
r &&
|
|
12472
|
+
r && c.inserted && (this.state = o);
|
|
12473
12473
|
}
|
|
12474
12474
|
r || (l = new $(), this.state = n, i && s && (i.state = s));
|
|
12475
12475
|
}
|
|
@@ -12537,16 +12537,16 @@ class V1 {
|
|
|
12537
12537
|
input: !0
|
|
12538
12538
|
});
|
|
12539
12539
|
const s = e + t, r = this.extractTail(s), o = this.eager === !0 || this.eager === "remove";
|
|
12540
|
-
let
|
|
12541
|
-
o && (n = Z9(n),
|
|
12540
|
+
let c;
|
|
12541
|
+
o && (n = Z9(n), c = this.extractInput(0, s, {
|
|
12542
12542
|
raw: !0
|
|
12543
12543
|
}));
|
|
12544
|
-
let
|
|
12544
|
+
let u = e;
|
|
12545
12545
|
const d = new $();
|
|
12546
|
-
if (n !== K.NONE && (
|
|
12546
|
+
if (n !== K.NONE && (u = this.nearestInputPos(e, t > 1 && e !== 0 && !o ? K.NONE : n), d.tailShift = u - e), d.aggregate(this.remove(u)), o && n !== K.NONE && c === this.rawInputValue)
|
|
12547
12547
|
if (n === K.FORCE_LEFT) {
|
|
12548
12548
|
let f;
|
|
12549
|
-
for (;
|
|
12549
|
+
for (; c === this.rawInputValue && (f = this.displayValue.length); )
|
|
12550
12550
|
d.aggregate(new $({
|
|
12551
12551
|
tailShift: -1
|
|
12552
12552
|
})).aggregate(this.remove(f - 1));
|
|
@@ -12609,8 +12609,8 @@ class P3 {
|
|
|
12609
12609
|
e._stops.indexOf(s) >= 0) && t.aggregate(e._appendPlaceholder(s)), r = n instanceof P3 && e._blocks[s]), r) {
|
|
12610
12610
|
const o = r.appendTail(n);
|
|
12611
12611
|
t.aggregate(o);
|
|
12612
|
-
const
|
|
12613
|
-
|
|
12612
|
+
const c = n.toString().slice(o.rawInserted.length);
|
|
12613
|
+
c && t.aggregate(e.append(c, {
|
|
12614
12614
|
tail: !0
|
|
12615
12615
|
}));
|
|
12616
12616
|
} else
|
|
@@ -13033,9 +13033,9 @@ class B1 extends V1 {
|
|
|
13033
13033
|
let i = !1, n = !1;
|
|
13034
13034
|
for (let l = 0; l < t.length; ++l) {
|
|
13035
13035
|
if (this.blocks) {
|
|
13036
|
-
const
|
|
13037
|
-
|
|
13038
|
-
const d =
|
|
13036
|
+
const c = t.slice(l), u = Object.keys(this.blocks).filter((f) => c.indexOf(f) === 0);
|
|
13037
|
+
u.sort((f, h) => h.length - f.length);
|
|
13038
|
+
const d = u[0];
|
|
13039
13039
|
if (d) {
|
|
13040
13040
|
const {
|
|
13041
13041
|
expose: f,
|
|
@@ -13249,8 +13249,8 @@ class B1 extends V1 {
|
|
|
13249
13249
|
if (n) {
|
|
13250
13250
|
const l = this._mapPosToBlock(t), s = l && n.index === l.index, r = n.offset, o = l && s ? l.offset : this._blocks[n.index].displayValue.length;
|
|
13251
13251
|
if (i(this._blocks[n.index], n.index, r, o), l && !s) {
|
|
13252
|
-
for (let
|
|
13253
|
-
i(this._blocks[
|
|
13252
|
+
for (let c = n.index + 1; c < l.index; ++c)
|
|
13253
|
+
i(this._blocks[c], c, 0, this._blocks[c].displayValue.length);
|
|
13254
13254
|
i(this._blocks[l.index], l.index, 0, l.offset);
|
|
13255
13255
|
}
|
|
13256
13256
|
}
|
|
@@ -13337,9 +13337,9 @@ class Me extends B1 {
|
|
|
13337
13337
|
} = e;
|
|
13338
13338
|
this.to = t, this.from = i, this.maxLength = Math.max(String(t).length, n), this.autofix = l;
|
|
13339
13339
|
const r = String(this.from).padStart(this.maxLength, "0"), o = String(this.to).padStart(this.maxLength, "0");
|
|
13340
|
-
let
|
|
13341
|
-
for (;
|
|
13342
|
-
s.mask = o.slice(0,
|
|
13340
|
+
let c = 0;
|
|
13341
|
+
for (; c < o.length && o[c] === r[c]; ) ++c;
|
|
13342
|
+
s.mask = o.slice(0, c).replace(/0/g, "\\0") + "0".repeat(this.maxLength - c), super._update(s);
|
|
13343
13343
|
}
|
|
13344
13344
|
get isComplete() {
|
|
13345
13345
|
return super.isComplete && !!this.value;
|
|
@@ -13515,15 +13515,15 @@ class ut extends V1 {
|
|
|
13515
13515
|
}
|
|
13516
13516
|
_applyDispatch(e, t, i) {
|
|
13517
13517
|
e === void 0 && (e = ""), t === void 0 && (t = {}), i === void 0 && (i = "");
|
|
13518
|
-
const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, l = this.rawInputValue, s = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : l, r = l.slice(s.length), o = this.currentMask,
|
|
13518
|
+
const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, l = this.rawInputValue, s = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : l, r = l.slice(s.length), o = this.currentMask, c = new $(), u = o?.state;
|
|
13519
13519
|
return this.currentMask = this.doDispatch(e, {
|
|
13520
13520
|
...t
|
|
13521
13521
|
}, i), this.currentMask && (this.currentMask !== o ? (this.currentMask.reset(), s && (this.currentMask.append(s, {
|
|
13522
13522
|
raw: !0
|
|
13523
|
-
}),
|
|
13523
|
+
}), c.tailShift = this.currentMask.value.length - n.length), r && (c.tailShift += this.currentMask.append(r, {
|
|
13524
13524
|
raw: !0,
|
|
13525
13525
|
tail: !0
|
|
13526
|
-
}).tailShift)) :
|
|
13526
|
+
}).tailShift)) : u && (this.currentMask.state = u)), c;
|
|
13527
13527
|
}
|
|
13528
13528
|
_appendPlaceholder() {
|
|
13529
13529
|
const e = this._applyDispatch();
|
|
@@ -13685,13 +13685,13 @@ ut.DEFAULTS = {
|
|
|
13685
13685
|
dispatch: (a, e, t, i) => {
|
|
13686
13686
|
if (!e.compiledMasks.length) return;
|
|
13687
13687
|
const n = e.rawInputValue, l = e.compiledMasks.map((s, r) => {
|
|
13688
|
-
const o = e.currentMask === s,
|
|
13688
|
+
const o = e.currentMask === s, c = o ? s.displayValue.length : s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT);
|
|
13689
13689
|
return s.rawInputValue !== n ? (s.reset(), s.append(n, {
|
|
13690
13690
|
raw: !0
|
|
13691
|
-
})) : o || s.remove(
|
|
13691
|
+
})) : o || s.remove(c), s.append(a, e.currentMaskFlags(t)), s.appendTail(i), {
|
|
13692
13692
|
index: r,
|
|
13693
13693
|
weight: s.rawInputValue.length,
|
|
13694
|
-
totalInputPositions: s.totalInputPositions(0, Math.max(
|
|
13694
|
+
totalInputPositions: s.totalInputPositions(0, Math.max(c, s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT)))
|
|
13695
13695
|
};
|
|
13696
13696
|
});
|
|
13697
13697
|
return l.sort((s, r) => r.weight - s.weight || r.totalInputPositions - s.totalInputPositions), e.compiledMasks[l[0].index];
|
|
@@ -13849,14 +13849,14 @@ class K1 extends V1 {
|
|
|
13849
13849
|
let f;
|
|
13850
13850
|
this.min != null && this.min < 0 && this.number < this.min && (f = this.min), this.max != null && this.max > 0 && this.number > this.max && (f = this.max), f != null && (this.autofix ? (this._value = this.format(f, this).replace(K1.UNMASKED_RADIX, this.radix), o || (o = l === this._value && !t.tail)) : r = !1), r && (r = !!this._value.match(this._numberRegExp));
|
|
13851
13851
|
}
|
|
13852
|
-
let
|
|
13853
|
-
r ?
|
|
13852
|
+
let c;
|
|
13853
|
+
r ? c = new $({
|
|
13854
13854
|
inserted: this._value.slice(l.length),
|
|
13855
13855
|
rawInserted: o ? "" : e,
|
|
13856
13856
|
skip: o
|
|
13857
|
-
}) : (this._value = l,
|
|
13858
|
-
const
|
|
13859
|
-
return
|
|
13857
|
+
}) : (this._value = l, c = new $()), this._value = this._insertThousandsSeparators(this._value);
|
|
13858
|
+
const u = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, d = this._separatorsCountFromSlice(u);
|
|
13859
|
+
return c.tailShift += (d - n) * this.thousandsSeparator.length, c;
|
|
13860
13860
|
}
|
|
13861
13861
|
_findSeparatorAround(e) {
|
|
13862
13862
|
if (this.thousandsSeparator) {
|
|
@@ -14038,18 +14038,18 @@ class ru extends B1 {
|
|
|
14038
14038
|
t === void 0 && (t = {});
|
|
14039
14039
|
const i = new $();
|
|
14040
14040
|
for (
|
|
14041
|
-
let o = (n = (l = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : l.index) != null ? n : Math.max(this._blocks.length - 1, 0),
|
|
14041
|
+
let o = (n = (l = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : l.index) != null ? n : Math.max(this._blocks.length - 1, 0), c, u;
|
|
14042
14042
|
// try to get a block or
|
|
14043
14043
|
// try to allocate a new block if not allocated already
|
|
14044
|
-
|
|
14044
|
+
c = (s = this._blocks[o]) != null ? s : u = !u && this._allocateBlock(o);
|
|
14045
14045
|
++o
|
|
14046
14046
|
) {
|
|
14047
14047
|
var n, l, s, r;
|
|
14048
|
-
const d =
|
|
14048
|
+
const d = c._appendChar(e, {
|
|
14049
14049
|
...t,
|
|
14050
14050
|
_beforeTailState: (r = t._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[o]
|
|
14051
14051
|
});
|
|
14052
|
-
if (d.skip &&
|
|
14052
|
+
if (d.skip && u) {
|
|
14053
14053
|
this._blocks.pop(), this.mask = this.mask.slice(1);
|
|
14054
14054
|
break;
|
|
14055
14055
|
}
|
|
@@ -14100,7 +14100,7 @@ function E4() {
|
|
|
14100
14100
|
(function(t, i) {
|
|
14101
14101
|
a.exports = i();
|
|
14102
14102
|
})(ou, (function() {
|
|
14103
|
-
var t = 1e3, i = 6e4, n = 36e5, l = "millisecond", s = "second", r = "minute", o = "hour",
|
|
14103
|
+
var t = 1e3, i = 6e4, n = 36e5, l = "millisecond", s = "second", r = "minute", o = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", g = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
14104
14104
|
var D = ["th", "st", "nd", "rd"], I = L % 100;
|
|
14105
14105
|
return "[" + L + (D[(I - 20) % 10] || D[I] || D[0]) + "]";
|
|
14106
14106
|
} }, C = function(L, D, I) {
|
|
@@ -14116,7 +14116,7 @@ function E4() {
|
|
|
14116
14116
|
}, a: function(L) {
|
|
14117
14117
|
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
14118
14118
|
}, p: function(L) {
|
|
14119
|
-
return { M: d, y: h, w:
|
|
14119
|
+
return { M: d, y: h, w: u, d: c, D: g, h: o, m: r, s, ms: l, Q: f }[L] || String(L || "").toLowerCase().replace(/s$/, "");
|
|
14120
14120
|
}, u: function(L) {
|
|
14121
14121
|
return L === void 0;
|
|
14122
14122
|
} }, B = "en", x = {};
|
|
@@ -14187,7 +14187,7 @@ function E4() {
|
|
|
14187
14187
|
}, D.startOf = function(I, E) {
|
|
14188
14188
|
var S = this, H = !!j.u(E) || E, U = j.p(I), X = function(N1, y1) {
|
|
14189
14189
|
var T1 = j.w(S.$u ? Date.UTC(S.$y, y1, N1) : new Date(S.$y, y1, N1), S);
|
|
14190
|
-
return H ? T1 : T1.endOf(
|
|
14190
|
+
return H ? T1 : T1.endOf(c);
|
|
14191
14191
|
}, r1 = function(N1, y1) {
|
|
14192
14192
|
return j.w(S.toDate()[N1].apply(S.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y1)), S);
|
|
14193
14193
|
}, f1 = this.$W, p1 = this.$M, g1 = this.$D, k1 = "set" + (this.$u ? "UTC" : "");
|
|
@@ -14196,10 +14196,10 @@ function E4() {
|
|
|
14196
14196
|
return H ? X(1, 0) : X(31, 11);
|
|
14197
14197
|
case d:
|
|
14198
14198
|
return H ? X(1, p1) : X(0, p1 + 1);
|
|
14199
|
-
case
|
|
14199
|
+
case u:
|
|
14200
14200
|
var O1 = this.$locale().weekStart || 0, R1 = (f1 < O1 ? f1 + 7 : f1) - O1;
|
|
14201
14201
|
return X(H ? g1 - R1 : g1 + (6 - R1), p1);
|
|
14202
|
-
case
|
|
14202
|
+
case c:
|
|
14203
14203
|
case g:
|
|
14204
14204
|
return r1(k1 + "Hours", 0);
|
|
14205
14205
|
case o:
|
|
@@ -14214,7 +14214,7 @@ function E4() {
|
|
|
14214
14214
|
}, D.endOf = function(I) {
|
|
14215
14215
|
return this.startOf(I, !1);
|
|
14216
14216
|
}, D.$set = function(I, E) {
|
|
14217
|
-
var S, H = j.p(I), U = "set" + (this.$u ? "UTC" : ""), X = (S = {}, S[
|
|
14217
|
+
var S, H = j.p(I), U = "set" + (this.$u ? "UTC" : ""), X = (S = {}, S[c] = U + "Date", S[g] = U + "Date", S[d] = U + "Month", S[h] = U + "FullYear", S[o] = U + "Hours", S[r] = U + "Minutes", S[s] = U + "Seconds", S[l] = U + "Milliseconds", S)[H], r1 = H === c ? this.$D + (E - this.$W) : E;
|
|
14218
14218
|
if (H === d || H === h) {
|
|
14219
14219
|
var f1 = this.clone().set(g, 1);
|
|
14220
14220
|
f1.$d[X](r1), f1.init(), this.$d = f1.set(g, Math.min(this.$D, f1.daysInMonth())).$d;
|
|
@@ -14233,8 +14233,8 @@ function E4() {
|
|
|
14233
14233
|
};
|
|
14234
14234
|
if (U === d) return this.set(d, this.$M + I);
|
|
14235
14235
|
if (U === h) return this.set(h, this.$y + I);
|
|
14236
|
-
if (U ===
|
|
14237
|
-
if (U ===
|
|
14236
|
+
if (U === c) return X(1);
|
|
14237
|
+
if (U === u) return X(7);
|
|
14238
14238
|
var r1 = (S = {}, S[r] = i, S[o] = n, S[s] = t, S)[U] || 1, f1 = this.$d.getTime() + I * r1;
|
|
14239
14239
|
return j.w(f1, this);
|
|
14240
14240
|
}, D.subtract = function(I, E) {
|
|
@@ -14321,10 +14321,10 @@ function E4() {
|
|
|
14321
14321
|
case f:
|
|
14322
14322
|
H = g1() / 3;
|
|
14323
14323
|
break;
|
|
14324
|
-
case
|
|
14324
|
+
case u:
|
|
14325
14325
|
H = (p1 - f1) / 6048e5;
|
|
14326
14326
|
break;
|
|
14327
|
-
case
|
|
14327
|
+
case c:
|
|
14328
14328
|
H = (p1 - f1) / 864e5;
|
|
14329
14329
|
break;
|
|
14330
14330
|
case o:
|
|
@@ -14360,7 +14360,7 @@ function E4() {
|
|
|
14360
14360
|
return this.$d.toUTCString();
|
|
14361
14361
|
}, L;
|
|
14362
14362
|
})(), o1 = e1.prototype;
|
|
14363
|
-
return O.prototype = o1, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W",
|
|
14363
|
+
return O.prototype = o1, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W", c], ["$M", d], ["$y", h], ["$D", g]].forEach((function(L) {
|
|
14364
14364
|
o1[L[1]] = function(D) {
|
|
14365
14365
|
return this.$g(D, L[0], L[1]);
|
|
14366
14366
|
};
|
|
@@ -14416,8 +14416,8 @@ function gu() {
|
|
|
14416
14416
|
})(mu, (function() {
|
|
14417
14417
|
return function(t, i, n) {
|
|
14418
14418
|
i.prototype.isBetween = function(l, s, r, o) {
|
|
14419
|
-
var
|
|
14420
|
-
return (d ? this.isAfter(
|
|
14419
|
+
var c = n(l), u = n(s), d = (o = o || "()")[0] === "(", f = o[1] === ")";
|
|
14420
|
+
return (d ? this.isAfter(c, r) : !this.isBefore(c, r)) && (f ? this.isBefore(u, r) : !this.isAfter(u, r)) || (d ? this.isBefore(c, r) : !this.isAfter(c, r)) && (f ? this.isAfter(u, r) : !this.isBefore(u, r));
|
|
14421
14421
|
};
|
|
14422
14422
|
};
|
|
14423
14423
|
}));
|
|
@@ -14436,12 +14436,12 @@ function wu() {
|
|
|
14436
14436
|
var r = l.prototype;
|
|
14437
14437
|
r.week = function(o) {
|
|
14438
14438
|
if (o === void 0 && (o = null), o !== null) return this.add(7 * (o - this.week()), "day");
|
|
14439
|
-
var
|
|
14439
|
+
var c = this.$locale().yearStart || 1;
|
|
14440
14440
|
if (this.month() === 11 && this.date() > 25) {
|
|
14441
|
-
var
|
|
14442
|
-
if (
|
|
14441
|
+
var u = s(this).startOf(i).add(1, i).date(c), d = s(this).endOf(t);
|
|
14442
|
+
if (u.isBefore(d)) return 1;
|
|
14443
14443
|
}
|
|
14444
|
-
var f = s(this).startOf(i).date(
|
|
14444
|
+
var f = s(this).startOf(i).date(c).startOf(t).subtract(1, "millisecond"), h = this.diff(f, t, !0);
|
|
14445
14445
|
return h < 0 ? s(this).startOf("week").week() : Math.ceil(h);
|
|
14446
14446
|
}, r.weeks = function(o) {
|
|
14447
14447
|
return o === void 0 && (o = null), this.week(o);
|
|
@@ -14465,12 +14465,12 @@ const Cu = (a = /* @__PURE__ */ new Date()) => d1(a).startOf("month").format("d"
|
|
|
14465
14465
|
}) => d1(a).add(t, e).toDate(), xu = (a = /* @__PURE__ */ new Date(), { skipWE: e = !1, monthFormat: t = "MMMM", dayFormat: i = "dd" } = {}) => {
|
|
14466
14466
|
const n = d1(a), l = n.weekday(0), s = [], r = 6 - (e ? 2 : 0);
|
|
14467
14467
|
for (let o = 0; o <= r; o++) {
|
|
14468
|
-
const
|
|
14468
|
+
const c = n.format("D"), u = d1(l).add(o, "days").format("D");
|
|
14469
14469
|
s.push({
|
|
14470
|
-
number: parseInt(
|
|
14470
|
+
number: parseInt(u),
|
|
14471
14471
|
month: d1(l).add(o, "days").format(t),
|
|
14472
14472
|
day: d1(l).add(o, "days").format(i),
|
|
14473
|
-
isCurrent:
|
|
14473
|
+
isCurrent: c === u
|
|
14474
14474
|
});
|
|
14475
14475
|
}
|
|
14476
14476
|
return s;
|
|
@@ -14498,12 +14498,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14498
14498
|
emits: ["updateNavDate", "updateNavType"],
|
|
14499
14499
|
setup(a, { emit: e }) {
|
|
14500
14500
|
const t = a, i = e, n = Z(t.navigationDate), l = P(() => d1(t.navigationDate).format("MMMM")), s = P(() => d1(t.navigationDate).format("YYYY")), r = P(() => {
|
|
14501
|
-
const
|
|
14502
|
-
return `${
|
|
14501
|
+
const u = Number(s.value);
|
|
14502
|
+
return `${u - 8} - ${u + 7}`;
|
|
14503
14503
|
}), o = P(
|
|
14504
14504
|
() => [z1.Day, z1.Month].includes(t.navType)
|
|
14505
|
-
),
|
|
14506
|
-
const d = (f) =>
|
|
14505
|
+
), c = P(() => (u) => {
|
|
14506
|
+
const d = (f) => u === "left" ? -f : f;
|
|
14507
14507
|
switch (t.navType) {
|
|
14508
14508
|
case z1.Day:
|
|
14509
14509
|
n.value = jt({
|
|
@@ -14528,12 +14528,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14528
14528
|
break;
|
|
14529
14529
|
}
|
|
14530
14530
|
});
|
|
14531
|
-
return
|
|
14531
|
+
return x1(n, () => i("updateNavDate", n.value)), (u, d) => (w(), k("div", Iu, [
|
|
14532
14532
|
V("div", Vu, [
|
|
14533
14533
|
V("button", {
|
|
14534
14534
|
type: "button",
|
|
14535
14535
|
class: "datepicker-navigation-arrows datepicker-navigation-button",
|
|
14536
|
-
onClick: d[0] || (d[0] = (f) =>
|
|
14536
|
+
onClick: d[0] || (d[0] = (f) => c.value("left"))
|
|
14537
14537
|
}, [...d[4] || (d[4] = [
|
|
14538
14538
|
V("span", null, "‹", -1)
|
|
14539
14539
|
])]),
|
|
@@ -14541,23 +14541,23 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14541
14541
|
key: 0,
|
|
14542
14542
|
type: "button",
|
|
14543
14543
|
class: "datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",
|
|
14544
|
-
onClick: d[1] || (d[1] = (f) =>
|
|
14544
|
+
onClick: d[1] || (d[1] = (f) => u.$emit("updateNavType", S1(z1).Month))
|
|
14545
14545
|
}, [
|
|
14546
14546
|
V("span", null, Y(l.value), 1)
|
|
14547
14547
|
])) : F("", !0),
|
|
14548
14548
|
V("button", {
|
|
14549
14549
|
type: "button",
|
|
14550
14550
|
class: G(["datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month", {
|
|
14551
|
-
"datepicker-navigation-button__inactive": a.navType ===
|
|
14551
|
+
"datepicker-navigation-button__inactive": a.navType === S1(z1).Year
|
|
14552
14552
|
}]),
|
|
14553
|
-
onClick: d[2] || (d[2] = (f) =>
|
|
14553
|
+
onClick: d[2] || (d[2] = (f) => u.$emit("updateNavType", S1(z1).Year))
|
|
14554
14554
|
}, [
|
|
14555
|
-
V("span", null, Y(a.navType ===
|
|
14555
|
+
V("span", null, Y(a.navType === S1(z1).Year ? r.value : s.value), 1)
|
|
14556
14556
|
], 2),
|
|
14557
14557
|
V("button", {
|
|
14558
14558
|
type: "button",
|
|
14559
14559
|
class: "datepicker-navigation-arrows datepicker-navigation-button",
|
|
14560
|
-
onClick: d[3] || (d[3] = (f) =>
|
|
14560
|
+
onClick: d[3] || (d[3] = (f) => c.value("right"))
|
|
14561
14561
|
}, [...d[5] || (d[5] = [
|
|
14562
14562
|
V("span", null, "›", -1)
|
|
14563
14563
|
])])
|
|
@@ -14581,9 +14581,9 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14581
14581
|
},
|
|
14582
14582
|
emits: ["updateNavDate", "updateSelectedDate", "updateNavType"],
|
|
14583
14583
|
setup(a, { emit: e }) {
|
|
14584
|
-
const t = a, i = e, n = Z(t.navigationDate), l = xu(void 0, { dayFormat: "ddd" }).map(({ day: p }) => p), s = (p) => t.min === void 0 || p.isAfter(d1(t.min).startOf("day")), r = (p) => t.max === void 0 || p.isBefore(d1(t.max).endOf("day")), o = (p) => s(p) && r(p),
|
|
14584
|
+
const t = a, i = e, n = Z(t.navigationDate), l = xu(void 0, { dayFormat: "ddd" }).map(({ day: p }) => p), s = (p) => t.min === void 0 || p.isAfter(d1(t.min).startOf("day")), r = (p) => t.max === void 0 || p.isBefore(d1(t.max).endOf("day")), o = (p) => s(p) && r(p), c = (p) => {
|
|
14585
14585
|
n.value = p;
|
|
14586
|
-
},
|
|
14586
|
+
}, u = P(() => {
|
|
14587
14587
|
const p = [];
|
|
14588
14588
|
let y = parseInt(Cu(t.navigationDate));
|
|
14589
14589
|
y === 0 && (y = 7);
|
|
@@ -14597,7 +14597,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14597
14597
|
"calendar-cell__disabled": !B
|
|
14598
14598
|
},
|
|
14599
14599
|
value: v.date(),
|
|
14600
|
-
onClick: () => B &&
|
|
14600
|
+
onClick: () => B && c(v.toDate())
|
|
14601
14601
|
});
|
|
14602
14602
|
}
|
|
14603
14603
|
return p.reverse(), p;
|
|
@@ -14612,12 +14612,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14612
14612
|
"calendar-day-cell-current-month": !0
|
|
14613
14613
|
},
|
|
14614
14614
|
value: y,
|
|
14615
|
-
onClick: () => !C && v &&
|
|
14615
|
+
onClick: () => !C && v && c(b.toDate())
|
|
14616
14616
|
});
|
|
14617
14617
|
}
|
|
14618
14618
|
return p;
|
|
14619
14619
|
}), f = P(() => [
|
|
14620
|
-
...
|
|
14620
|
+
...u.value,
|
|
14621
14621
|
...d.value
|
|
14622
14622
|
]), h = P(() => {
|
|
14623
14623
|
const p = [];
|
|
@@ -14650,7 +14650,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14650
14650
|
"calendar-cell__disabled": !R
|
|
14651
14651
|
},
|
|
14652
14652
|
value: T.date(),
|
|
14653
|
-
onClick: () => R &&
|
|
14653
|
+
onClick: () => R && c(T.toDate())
|
|
14654
14654
|
});
|
|
14655
14655
|
}
|
|
14656
14656
|
p[C] = v;
|
|
@@ -14662,7 +14662,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14662
14662
|
const T = d1(t.navigationDate).month(C + x);
|
|
14663
14663
|
return {
|
|
14664
14664
|
value: B,
|
|
14665
|
-
onClick: () =>
|
|
14665
|
+
onClick: () => c(T.toDate())
|
|
14666
14666
|
};
|
|
14667
14667
|
});
|
|
14668
14668
|
})), m = P(() => {
|
|
@@ -14675,37 +14675,37 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14675
14675
|
const _ = d1(t.navigationDate).year(R).toDate();
|
|
14676
14676
|
return {
|
|
14677
14677
|
value: R,
|
|
14678
|
-
onClick: () =>
|
|
14678
|
+
onClick: () => c(_)
|
|
14679
14679
|
};
|
|
14680
14680
|
});
|
|
14681
14681
|
});
|
|
14682
14682
|
});
|
|
14683
|
-
return
|
|
14683
|
+
return x1(n, () => {
|
|
14684
14684
|
t.navType === z1.Day ? i("updateSelectedDate", n.value) : t.navType === z1.Month ? (i("updateNavDate", n.value), i("updateNavType", z1.Day)) : t.navType === z1.Year && (i("updateNavDate", n.value), i("updateNavType", z1.Month));
|
|
14685
14685
|
}), (p, y) => (w(), k("table", Ru, [
|
|
14686
|
-
a.navType ===
|
|
14686
|
+
a.navType === S1(z1).Day ? (w(), k("thead", Tu, [
|
|
14687
14687
|
V("tr", null, [
|
|
14688
|
-
(w(!0), k(h1, null, E1(
|
|
14688
|
+
(w(!0), k(h1, null, E1(S1(l), (b) => (w(), k("th", Hu, [
|
|
14689
14689
|
V("span", null, Y(b), 1)
|
|
14690
14690
|
]))), 256))
|
|
14691
14691
|
])
|
|
14692
14692
|
])) : F("", !0),
|
|
14693
14693
|
V("tbody", null, [
|
|
14694
|
-
a.navType ===
|
|
14694
|
+
a.navType === S1(z1).Day ? (w(!0), k(h1, { key: 0 }, E1(h.value, (b) => (w(), k("tr", null, [
|
|
14695
14695
|
(w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
|
|
14696
14696
|
class: G(["calendar-cell calendar-day-cell", C.class]),
|
|
14697
14697
|
onClick: (v) => C.onClick()
|
|
14698
14698
|
}, [
|
|
14699
14699
|
V("span", Ou, Y(C.value), 1)
|
|
14700
14700
|
], 10, Lu))), 256))
|
|
14701
|
-
]))), 256)) : a.navType ===
|
|
14701
|
+
]))), 256)) : a.navType === S1(z1).Month ? (w(!0), k(h1, { key: 1 }, E1(g.value, (b) => (w(), k("tr", null, [
|
|
14702
14702
|
(w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
|
|
14703
14703
|
class: "calendar-cell calendar-month-cell",
|
|
14704
14704
|
onClick: (v) => C.onClick()
|
|
14705
14705
|
}, [
|
|
14706
14706
|
V("span", Fu, Y(C.value), 1)
|
|
14707
14707
|
], 8, Nu))), 256))
|
|
14708
|
-
]))), 256)) : a.navType ===
|
|
14708
|
+
]))), 256)) : a.navType === S1(z1).Year ? (w(!0), k(h1, { key: 2 }, E1(m.value, (b) => (w(), k("tr", null, [
|
|
14709
14709
|
(w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
|
|
14710
14710
|
class: "calendar-cell calendar-year-cell",
|
|
14711
14711
|
onClick: (v) => C.onClick()
|
|
@@ -14730,16 +14730,16 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14730
14730
|
},
|
|
14731
14731
|
emits: ["update:modelValue"],
|
|
14732
14732
|
setup(a, { emit: e }) {
|
|
14733
|
-
const t = e, i = Z(), n = Z(i.value ?? /* @__PURE__ */ new Date()), l = Z(z1.Day), s = (
|
|
14734
|
-
n.value =
|
|
14735
|
-
}, r = (
|
|
14736
|
-
i.value =
|
|
14737
|
-
}, o = (
|
|
14738
|
-
l.value =
|
|
14733
|
+
const t = e, i = Z(), n = Z(i.value ?? /* @__PURE__ */ new Date()), l = Z(z1.Day), s = (c) => {
|
|
14734
|
+
n.value = c;
|
|
14735
|
+
}, r = (c) => {
|
|
14736
|
+
i.value = c;
|
|
14737
|
+
}, o = (c) => {
|
|
14738
|
+
l.value = c;
|
|
14739
14739
|
};
|
|
14740
|
-
return
|
|
14740
|
+
return x1(i, () => {
|
|
14741
14741
|
s(i.value ?? /* @__PURE__ */ new Date()), i.value && t("update:modelValue", i.value);
|
|
14742
|
-
}), (
|
|
14742
|
+
}), (c, u) => (w(), k("div", Pu, [
|
|
14743
14743
|
V("div", Wu, [
|
|
14744
14744
|
t1(Bu, {
|
|
14745
14745
|
navigationDate: n.value,
|
|
@@ -14802,7 +14802,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14802
14802
|
tel: "Numéro de téléphone",
|
|
14803
14803
|
url: "Url",
|
|
14804
14804
|
date: "Date"
|
|
14805
|
-
}, l = e, s = Z(t.modelValue ?? ""), r = Z(s.value !== ""), o = Z(!1),
|
|
14805
|
+
}, l = e, s = Z(t.modelValue ?? ""), r = Z(s.value !== ""), o = Z(!1), c = Z(!1), u = Z(null), d = Z({}), f = Z([]), h = Z(!1), g = Z(null);
|
|
14806
14806
|
let m = null;
|
|
14807
14807
|
const p = P(() => t.type === "password" ? i.value ? "text" : "password" : t.type === "date" ? "text" : t.type ?? "text"), y = P(() => i.value ? "eye-off" : "eye"), b = P(() => t.clearable === !0 && t.modelValue !== "" && !t.disabled), C = P(() => t.passwordControl && t.type === "password" && t.modelValue !== ""), v = P(() => t.label && t.modelValue === "" ? "absolute" : "relative"), B = () => {
|
|
14808
14808
|
if (!t.suggestions) return;
|
|
@@ -14813,20 +14813,20 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14813
14813
|
}, x = (E) => {
|
|
14814
14814
|
s.value = E.label, h.value = !1, l("update:modelValue", E.label);
|
|
14815
14815
|
};
|
|
14816
|
-
|
|
14816
|
+
x1(
|
|
14817
14817
|
() => t.modelValue,
|
|
14818
14818
|
(E) => {
|
|
14819
14819
|
const S = E ?? "";
|
|
14820
14820
|
s.value !== S && (s.value = S, t.type === "date" && m && (m.value = String(S)));
|
|
14821
14821
|
}
|
|
14822
|
-
),
|
|
14822
|
+
), x1(c, (E) => {
|
|
14823
14823
|
E && m3(() => {
|
|
14824
14824
|
T();
|
|
14825
14825
|
});
|
|
14826
14826
|
});
|
|
14827
14827
|
const T = () => {
|
|
14828
|
-
if (!
|
|
14829
|
-
const E =
|
|
14828
|
+
if (!u.value) return;
|
|
14829
|
+
const E = u.value.getBoundingClientRect();
|
|
14830
14830
|
d.value = {
|
|
14831
14831
|
position: "absolute",
|
|
14832
14832
|
top: `${E.bottom + window.scrollY}px`,
|
|
@@ -14842,13 +14842,13 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14842
14842
|
month: "2-digit",
|
|
14843
14843
|
year: "numeric"
|
|
14844
14844
|
});
|
|
14845
|
-
|
|
14845
|
+
c.value = !1, l("update:modelValue", S), m && (m.value = S);
|
|
14846
14846
|
}, O = () => {
|
|
14847
|
-
r.value = !0, t.type === "date" && m && (
|
|
14847
|
+
r.value = !0, t.type === "date" && m && (c.value = !0, m.updateOptions({ lazy: !1 })), h.value = !0;
|
|
14848
14848
|
}, j = () => {
|
|
14849
14849
|
setTimeout(() => {
|
|
14850
14850
|
const E = document.activeElement;
|
|
14851
|
-
if (!(document.querySelector(".datepicker-popup")?.contains(E) ?? !1) && (
|
|
14851
|
+
if (!(document.querySelector(".datepicker-popup")?.contains(E) ?? !1) && (c.value = !1, r.value = s.value !== "", t.type === "date" && m)) {
|
|
14852
14852
|
const H = m.value;
|
|
14853
14853
|
m.unmaskedValue !== "" && (H.length !== 10 || !e1(H)) ? o.value = !0 : (o.value = !1, m.unmaskedValue === "" ? l("update:modelValue", "") : l("update:modelValue", H)), m.updateOptions({ lazy: !0 });
|
|
14854
14854
|
}
|
|
@@ -14895,7 +14895,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14895
14895
|
}, null, 8, ["iconName"])) : F("", !0),
|
|
14896
14896
|
V("div", {
|
|
14897
14897
|
ref_key: "dateInputWrapper",
|
|
14898
|
-
ref:
|
|
14898
|
+
ref: u,
|
|
14899
14899
|
class: G(["input-content", v.value])
|
|
14900
14900
|
}, [
|
|
14901
14901
|
a.type !== "date" ? (w(), k("input", {
|
|
@@ -14953,7 +14953,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
14953
14953
|
])) : F("", !0)
|
|
14954
14954
|
], 2),
|
|
14955
14955
|
(w(), i1(Xe, { to: "body" }, [
|
|
14956
|
-
|
|
14956
|
+
c.value ? (w(), i1(Yu, {
|
|
14957
14957
|
key: 0,
|
|
14958
14958
|
class: "datepicker-popup",
|
|
14959
14959
|
style: w1(d.value),
|
|
@@ -15019,11 +15019,11 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15019
15019
|
},
|
|
15020
15020
|
emits: ["loadMore", "updateCheckItem", "updateCheckAll"],
|
|
15021
15021
|
setup(a, { expose: e, emit: t }) {
|
|
15022
|
-
const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = Ve("displayContainer"),
|
|
15022
|
+
const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = Ve("displayContainer"), c = Ve("settingsCol"), u = Z(""), { right: d, update: f } = ka(l), { right: h, update: g } = ka(c), m = P(
|
|
15023
15023
|
() => i.headers.filter((D) => D.visibility.isShown)
|
|
15024
15024
|
), p = P(
|
|
15025
15025
|
() => i.headers.filter((D) => {
|
|
15026
|
-
const I = Ba(D.label), E = Ba(
|
|
15026
|
+
const I = Ba(D.label), E = Ba(u.value);
|
|
15027
15027
|
return I.toLowerCase().includes(E.toLowerCase());
|
|
15028
15028
|
})
|
|
15029
15029
|
), y = P(() => {
|
|
@@ -15108,7 +15108,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15108
15108
|
}, L = () => m3(() => {
|
|
15109
15109
|
o1() && n("loadMore");
|
|
15110
15110
|
});
|
|
15111
|
-
return
|
|
15111
|
+
return x1(() => i.hasMore, O, { flush: "post" }), x1(
|
|
15112
15112
|
() => i.items,
|
|
15113
15113
|
() => m3(() => {
|
|
15114
15114
|
L(), f(), g();
|
|
@@ -15130,7 +15130,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15130
15130
|
a.selection ? (w(), k("div", nd, [
|
|
15131
15131
|
a.selection && a.headers.length ? (w(), i1(r2, {
|
|
15132
15132
|
key: "checkAll",
|
|
15133
|
-
theme: { "--amc2-checkbox-color":
|
|
15133
|
+
theme: { "--amc2-checkbox-color": S1(q4) },
|
|
15134
15134
|
iconStyle: r,
|
|
15135
15135
|
indeterminate: a.allCheckState.partially,
|
|
15136
15136
|
modelValue: a.allCheckState.isChecked,
|
|
@@ -15197,7 +15197,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15197
15197
|
t1(Va, {
|
|
15198
15198
|
position: "bottom-left",
|
|
15199
15199
|
class: "datagrid-settings-menu-container",
|
|
15200
|
-
onClose: I[2] || (I[2] = (E) =>
|
|
15200
|
+
onClose: I[2] || (I[2] = (E) => u.value = "")
|
|
15201
15201
|
}, {
|
|
15202
15202
|
content: C1(() => [
|
|
15203
15203
|
V("div", fd, [
|
|
@@ -15207,15 +15207,15 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15207
15207
|
type: "search",
|
|
15208
15208
|
iconName: "search",
|
|
15209
15209
|
clearable: "",
|
|
15210
|
-
modelValue:
|
|
15211
|
-
"onUpdate:modelValue": I[1] || (I[1] = (E) =>
|
|
15210
|
+
modelValue: u.value,
|
|
15211
|
+
"onUpdate:modelValue": I[1] || (I[1] = (E) => u.value = E)
|
|
15212
15212
|
}, null, 8, ["modelValue"]),
|
|
15213
15213
|
V("div", pd, [
|
|
15214
15214
|
(w(!0), k(h1, null, E1(p.value, (E) => (w(), k("div", {
|
|
15215
15215
|
key: E.key,
|
|
15216
15216
|
class: "col-selection-option"
|
|
15217
15217
|
}, [
|
|
15218
|
-
V("div", vd, Y(
|
|
15218
|
+
V("div", vd, Y(S1(G9)(E.label)), 1),
|
|
15219
15219
|
t1(q9, {
|
|
15220
15220
|
disabled: E.visibility?.isDisabled,
|
|
15221
15221
|
modelValue: E.visibility.isShown,
|
|
@@ -15358,41 +15358,41 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15358
15358
|
setup(a, { emit: e }) {
|
|
15359
15359
|
const t = a, i = e, n = Z(""), l = P({
|
|
15360
15360
|
get: () => t.modelValue,
|
|
15361
|
-
set: (
|
|
15362
|
-
}), s = (
|
|
15363
|
-
const
|
|
15361
|
+
set: (u) => i("update:modelValue", u)
|
|
15362
|
+
}), s = (u) => l.value.some((d) => d.value === u), r = P(() => {
|
|
15363
|
+
const u = n.value.toLowerCase();
|
|
15364
15364
|
return t.options.filter(
|
|
15365
|
-
(d) => d.label.toString().toLowerCase().includes(
|
|
15365
|
+
(d) => d.label.toString().toLowerCase().includes(u)
|
|
15366
15366
|
);
|
|
15367
15367
|
}), o = P({
|
|
15368
15368
|
get: () => r.value.length > 0 && r.value.every(
|
|
15369
|
-
(
|
|
15369
|
+
(u) => l.value.some((d) => d.value === u.value)
|
|
15370
15370
|
),
|
|
15371
15371
|
set: () => {
|
|
15372
15372
|
if (t.multiple)
|
|
15373
15373
|
if (o.value)
|
|
15374
15374
|
l.value = l.value.filter(
|
|
15375
|
-
(
|
|
15375
|
+
(u) => !r.value.some((d) => d.value === u.value)
|
|
15376
15376
|
);
|
|
15377
15377
|
else {
|
|
15378
|
-
const
|
|
15378
|
+
const u = r.value.filter(
|
|
15379
15379
|
(d) => !l.value.some((f) => f.value === d.value)
|
|
15380
15380
|
);
|
|
15381
|
-
l.value = [...l.value, ...
|
|
15381
|
+
l.value = [...l.value, ...u];
|
|
15382
15382
|
}
|
|
15383
15383
|
}
|
|
15384
|
-
}),
|
|
15384
|
+
}), c = (u) => {
|
|
15385
15385
|
if (t.multiple) {
|
|
15386
15386
|
const d = l.value.some(
|
|
15387
|
-
(f) => f.value ===
|
|
15387
|
+
(f) => f.value === u.value
|
|
15388
15388
|
);
|
|
15389
15389
|
l.value = d ? l.value.filter(
|
|
15390
|
-
(f) => f.value !==
|
|
15391
|
-
) : [...l.value,
|
|
15390
|
+
(f) => f.value !== u.value
|
|
15391
|
+
) : [...l.value, u];
|
|
15392
15392
|
} else
|
|
15393
|
-
l.value = [
|
|
15393
|
+
l.value = [u];
|
|
15394
15394
|
};
|
|
15395
|
-
return (
|
|
15395
|
+
return (u, d) => (w(), k("div", wd, [
|
|
15396
15396
|
a.multiple || a.searchable ? (w(), k("div", {
|
|
15397
15397
|
key: 0,
|
|
15398
15398
|
ref: "headerRef",
|
|
@@ -15440,7 +15440,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15440
15440
|
}, [
|
|
15441
15441
|
V("label", {
|
|
15442
15442
|
class: "amc2-list-item",
|
|
15443
|
-
onClick: (h) =>
|
|
15443
|
+
onClick: (h) => c(f)
|
|
15444
15444
|
}, [
|
|
15445
15445
|
V("span", {
|
|
15446
15446
|
class: G({ selected: s(f.value) })
|
|
@@ -15663,13 +15663,13 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15663
15663
|
setup(a, { emit: e }) {
|
|
15664
15664
|
const t = a, i = e, n = Z(null), l = Z(null), s = Z(t.modelValue.length), r = P(
|
|
15665
15665
|
() => t.modelValue.slice(0, s.value)
|
|
15666
|
-
), o = P(() => t.modelValue.slice(s.value)),
|
|
15667
|
-
function
|
|
15666
|
+
), o = P(() => t.modelValue.slice(s.value)), c = P(() => !t.disabled && t.clearable && t.modelValue.length > 0);
|
|
15667
|
+
function u(h) {
|
|
15668
15668
|
const g = [...t.modelValue], m = g[h];
|
|
15669
15669
|
g.splice(h, 1), i("update:modelValue", g), i("clear", m);
|
|
15670
15670
|
}
|
|
15671
15671
|
const d = (h) => {
|
|
15672
|
-
if (
|
|
15672
|
+
if (c.value) {
|
|
15673
15673
|
const g = [...t.modelValue];
|
|
15674
15674
|
i("update:modelValue", []), i("clearAll", g);
|
|
15675
15675
|
}
|
|
@@ -15689,7 +15689,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15689
15689
|
}), s.value = p;
|
|
15690
15690
|
});
|
|
15691
15691
|
}
|
|
15692
|
-
return
|
|
15692
|
+
return x1(
|
|
15693
15693
|
() => t.modelValue,
|
|
15694
15694
|
() => f(),
|
|
15695
15695
|
{ deep: !0, immediate: !0 }
|
|
@@ -15710,7 +15710,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15710
15710
|
a.modelValue.length === 0 ? (w(), k("span", Ud, Y(t.placeholder), 1)) : (w(!0), k(h1, { key: 1 }, E1(r.value, (m, p) => (w(), i1(Ua, {
|
|
15711
15711
|
key: p,
|
|
15712
15712
|
disabled: t.disabled,
|
|
15713
|
-
onClear: (y) =>
|
|
15713
|
+
onClear: (y) => u(p),
|
|
15714
15714
|
clearable: a.clearable,
|
|
15715
15715
|
modelValue: m
|
|
15716
15716
|
}, {
|
|
@@ -15733,7 +15733,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15733
15733
|
(w(!0), k(h1, null, E1(o.value, (m, p) => (w(), i1(Ua, {
|
|
15734
15734
|
key: p,
|
|
15735
15735
|
disabled: t.disabled,
|
|
15736
|
-
onClear: (y) =>
|
|
15736
|
+
onClear: (y) => u(p),
|
|
15737
15737
|
clearable: a.modelValue.length > 1,
|
|
15738
15738
|
modelValue: m
|
|
15739
15739
|
}, {
|
|
@@ -15750,7 +15750,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15750
15750
|
_: 1
|
|
15751
15751
|
}, 8, ["style", "position"])) : F("", !0)
|
|
15752
15752
|
]),
|
|
15753
|
-
|
|
15753
|
+
c.value ? (w(), i1(a1, {
|
|
15754
15754
|
key: 0,
|
|
15755
15755
|
iconName: "x",
|
|
15756
15756
|
onClick: d,
|
|
@@ -15775,73 +15775,71 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15775
15775
|
},
|
|
15776
15776
|
emits: ["update:modelValue"],
|
|
15777
15777
|
setup(a, { emit: e }) {
|
|
15778
|
-
const t = a, i = e, n = Z(!1),
|
|
15778
|
+
const t = a, i = e, n = P(() => !!t.label), l = Z(!1), s = P({
|
|
15779
15779
|
get: () => t.modelValue,
|
|
15780
|
-
set: (
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
const h = s.value.getBoundingClientRect(), g = r.value?.getBoundingClientRect(), m = window.innerHeight - h.bottom, p = h.top, y = g?.height || 300;
|
|
15788
|
-
m < y && p > m ? (u.value = "up", o.value = {
|
|
15780
|
+
set: (g) => {
|
|
15781
|
+
i("update:modelValue", g), !t.multiple && g.length === 1 && (l.value = !1);
|
|
15782
|
+
}
|
|
15783
|
+
}), r = Z(null), o = Z(null), c = Z({}), u = Z("down"), d = () => {
|
|
15784
|
+
if (!r.value) return;
|
|
15785
|
+
const g = r.value.getBoundingClientRect(), m = o.value?.getBoundingClientRect(), p = window.innerHeight - g.bottom, y = g.top, b = m?.height || 300;
|
|
15786
|
+
p < b && y > p ? (u.value = "up", c.value = {
|
|
15789
15787
|
position: "absolute",
|
|
15790
|
-
top: `${
|
|
15791
|
-
left: `${
|
|
15792
|
-
width: `${
|
|
15788
|
+
top: `${g.top - b + window.scrollY}px`,
|
|
15789
|
+
left: `${g.left + window.scrollX}px`,
|
|
15790
|
+
width: `${g.width}px`,
|
|
15793
15791
|
zIndex: "9999"
|
|
15794
|
-
}) : (u.value = "down",
|
|
15792
|
+
}) : (u.value = "down", c.value = {
|
|
15795
15793
|
position: "absolute",
|
|
15796
|
-
top: `${
|
|
15797
|
-
left: `${
|
|
15798
|
-
width: `${
|
|
15794
|
+
top: `${g.bottom + window.scrollY}px`,
|
|
15795
|
+
left: `${g.left + window.scrollX}px`,
|
|
15796
|
+
width: `${g.width}px`,
|
|
15799
15797
|
zIndex: "9999"
|
|
15800
15798
|
});
|
|
15801
|
-
},
|
|
15802
|
-
t.disabled || (
|
|
15803
|
-
|
|
15799
|
+
}, f = () => {
|
|
15800
|
+
t.disabled || (l.value = !l.value, l.value && m3(() => {
|
|
15801
|
+
d();
|
|
15804
15802
|
}));
|
|
15805
|
-
},
|
|
15806
|
-
const
|
|
15807
|
-
|
|
15803
|
+
}, h = (g) => {
|
|
15804
|
+
const m = g.target;
|
|
15805
|
+
r.value && !r.value.contains(m) && o.value && !o.value.contains(m) && (l.value = !1);
|
|
15808
15806
|
};
|
|
15809
15807
|
return X3(() => {
|
|
15810
|
-
document.addEventListener("mousedown",
|
|
15808
|
+
document.addEventListener("mousedown", h), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d);
|
|
15811
15809
|
}), u2(() => {
|
|
15812
|
-
document.removeEventListener("mousedown",
|
|
15813
|
-
}), (
|
|
15810
|
+
document.removeEventListener("mousedown", h), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
15811
|
+
}), (g, m) => (w(), k("div", {
|
|
15814
15812
|
ref_key: "selectRef",
|
|
15815
|
-
ref:
|
|
15813
|
+
ref: r,
|
|
15816
15814
|
class: G(["amc2-select", { "amc2-select-disabled": a.disabled }])
|
|
15817
15815
|
}, [
|
|
15818
15816
|
V("div", {
|
|
15819
15817
|
class: "amc2-select-display",
|
|
15820
|
-
onClick:
|
|
15818
|
+
onClick: f
|
|
15821
15819
|
}, [
|
|
15822
15820
|
V("div", {
|
|
15823
|
-
class: G(["amc2-select-display-content", { withLabel:
|
|
15821
|
+
class: G(["amc2-select-display-content", { withLabel: n.value }])
|
|
15824
15822
|
}, [
|
|
15825
|
-
|
|
15823
|
+
s.value.length === 1 ? (w(), k("span", Gd, Y(s.value[0].label), 1)) : (w(), i1(qd, {
|
|
15826
15824
|
key: 1,
|
|
15827
15825
|
clearable: a.clearable,
|
|
15828
15826
|
disabled: a.disabled,
|
|
15829
|
-
modelValue:
|
|
15830
|
-
"onUpdate:modelValue":
|
|
15827
|
+
modelValue: s.value,
|
|
15828
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => s.value = p)
|
|
15831
15829
|
}, null, 8, ["clearable", "disabled", "modelValue"])),
|
|
15832
15830
|
V("div", _d, [
|
|
15833
|
-
|
|
15831
|
+
n.value ? (w(), k("span", {
|
|
15834
15832
|
key: 0,
|
|
15835
15833
|
class: G(["amc2-select-label", [
|
|
15836
|
-
{ active:
|
|
15834
|
+
{ active: l.value || s.value.length > 0 },
|
|
15837
15835
|
{ alone: !a.placeholder }
|
|
15838
15836
|
]])
|
|
15839
15837
|
}, Y(a.label), 3)) : F("", !0),
|
|
15840
|
-
!
|
|
15838
|
+
!s.value.length && a.placeholder ? (w(), k("span", {
|
|
15841
15839
|
key: 1,
|
|
15842
15840
|
class: G(["amc2-select-placeholder", [
|
|
15843
|
-
{ active:
|
|
15844
|
-
{ alone: !
|
|
15841
|
+
{ active: l.value || s.value.length > 0 },
|
|
15842
|
+
{ alone: !n.value }
|
|
15845
15843
|
]])
|
|
15846
15844
|
}, Y(a.placeholder), 3)) : F("", !0)
|
|
15847
15845
|
])
|
|
@@ -15849,24 +15847,24 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15849
15847
|
a.disabled ? F("", !0) : (w(), i1(a1, {
|
|
15850
15848
|
key: 0,
|
|
15851
15849
|
iconName: "chevron-down",
|
|
15852
|
-
class: G(["amc2-select-icon", { opened:
|
|
15850
|
+
class: G(["amc2-select-icon", { opened: l.value }])
|
|
15853
15851
|
}, null, 8, ["class"]))
|
|
15854
15852
|
]),
|
|
15855
15853
|
(w(), i1(Xe, { to: "body" }, [
|
|
15856
|
-
|
|
15854
|
+
l.value ? (w(), k("div", {
|
|
15857
15855
|
key: 0,
|
|
15858
15856
|
ref_key: "dropdownRef",
|
|
15859
|
-
ref:
|
|
15857
|
+
ref: o,
|
|
15860
15858
|
class: "amc2-select-dropdown",
|
|
15861
|
-
style: w1(
|
|
15859
|
+
style: w1(c.value)
|
|
15862
15860
|
}, [
|
|
15863
15861
|
t1(kd, {
|
|
15864
15862
|
ref: "listRef",
|
|
15865
15863
|
options: a.options,
|
|
15866
15864
|
multiple: a.multiple,
|
|
15867
15865
|
searchable: a.searchable,
|
|
15868
|
-
modelValue:
|
|
15869
|
-
"onUpdate:modelValue":
|
|
15866
|
+
modelValue: s.value,
|
|
15867
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => s.value = p)
|
|
15870
15868
|
}, null, 8, ["options", "multiple", "searchable", "modelValue"])
|
|
15871
15869
|
], 4)) : F("", !0)
|
|
15872
15870
|
]))
|
|
@@ -15887,11 +15885,11 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15887
15885
|
l(r);
|
|
15888
15886
|
return;
|
|
15889
15887
|
}
|
|
15890
|
-
t.value.has(r.label) ? t.value.delete(r.label) : (Array.from(t.value).filter((
|
|
15891
|
-
const
|
|
15892
|
-
return
|
|
15893
|
-
}).forEach((
|
|
15894
|
-
t.value.delete(
|
|
15888
|
+
t.value.has(r.label) ? t.value.delete(r.label) : (Array.from(t.value).filter((c) => {
|
|
15889
|
+
const u = e.items.find((d) => d.label === c);
|
|
15890
|
+
return u?.children ? !u.children.some((d) => d.id === i.value) : !0;
|
|
15891
|
+
}).forEach((c) => {
|
|
15892
|
+
t.value.delete(c);
|
|
15895
15893
|
}), t.value.add(r.label));
|
|
15896
15894
|
}, l = (r) => {
|
|
15897
15895
|
i.value = r.id, r.action?.();
|
|
@@ -15899,32 +15897,32 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15899
15897
|
return X3(() => {
|
|
15900
15898
|
if (e.idSelected) {
|
|
15901
15899
|
const r = e.items.find(
|
|
15902
|
-
(o) => o.children?.some((
|
|
15900
|
+
(o) => o.children?.some((c) => c.id === e.idSelected)
|
|
15903
15901
|
);
|
|
15904
15902
|
r && t.value.add(r.label);
|
|
15905
15903
|
}
|
|
15906
15904
|
}), (r, o) => (w(), k("nav", Jd, [
|
|
15907
|
-
(w(!0), k(h1, null, E1(e.items, (
|
|
15908
|
-
key:
|
|
15909
|
-
class: G({ "side-menu-item": !0, selected:
|
|
15905
|
+
(w(!0), k(h1, null, E1(e.items, (c) => (w(), k("li", {
|
|
15906
|
+
key: c.id,
|
|
15907
|
+
class: G({ "side-menu-item": !0, selected: c.id === i.value })
|
|
15910
15908
|
}, [
|
|
15911
15909
|
V("div", {
|
|
15912
15910
|
class: "side-menu-item-line",
|
|
15913
|
-
onClick: (
|
|
15911
|
+
onClick: (u) => n(c)
|
|
15914
15912
|
}, [
|
|
15915
|
-
|
|
15913
|
+
c.icon ? (w(), i1(a1, {
|
|
15916
15914
|
key: 0,
|
|
15917
|
-
iconName:
|
|
15915
|
+
iconName: c.icon,
|
|
15918
15916
|
height: "22",
|
|
15919
15917
|
width: "22"
|
|
15920
15918
|
}, null, 8, ["iconName"])) : F("", !0),
|
|
15921
|
-
V("span", Xd, Y(
|
|
15919
|
+
V("span", Xd, Y(c.label), 1),
|
|
15922
15920
|
V("div", $d, [
|
|
15923
|
-
|
|
15921
|
+
c.children && !s(c) ? (w(), i1(a1, {
|
|
15924
15922
|
key: 0,
|
|
15925
15923
|
iconName: "chevron-down"
|
|
15926
15924
|
})) : F("", !0),
|
|
15927
|
-
|
|
15925
|
+
c.children && s(c) ? (w(), i1(a1, {
|
|
15928
15926
|
key: 1,
|
|
15929
15927
|
iconName: "chevron-up"
|
|
15930
15928
|
})) : F("", !0)
|
|
@@ -15935,23 +15933,23 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
15935
15933
|
appear: ""
|
|
15936
15934
|
}, {
|
|
15937
15935
|
default: C1(() => [
|
|
15938
|
-
|
|
15939
|
-
(w(!0), k(h1, null, E1(
|
|
15940
|
-
key:
|
|
15936
|
+
c.children && s(c) ? (w(), k("div", eh, [
|
|
15937
|
+
(w(!0), k(h1, null, E1(c.children, (u) => (w(), k("li", {
|
|
15938
|
+
key: u.id,
|
|
15941
15939
|
class: G({
|
|
15942
15940
|
"side-menu-submenu-item": !0,
|
|
15943
|
-
selected:
|
|
15941
|
+
selected: u.id === i.value
|
|
15944
15942
|
}),
|
|
15945
|
-
onClick: (d) => l(
|
|
15943
|
+
onClick: (d) => l(u)
|
|
15946
15944
|
}, [
|
|
15947
|
-
|
|
15945
|
+
u.icon ? (w(), i1(a1, {
|
|
15948
15946
|
key: 0,
|
|
15949
|
-
iconName:
|
|
15947
|
+
iconName: u.icon,
|
|
15950
15948
|
height: "20",
|
|
15951
15949
|
width: "20",
|
|
15952
15950
|
color: "currentColor"
|
|
15953
15951
|
}, null, 8, ["iconName"])) : F("", !0),
|
|
15954
|
-
V("span", null, Y(
|
|
15952
|
+
V("span", null, Y(u.label), 1)
|
|
15955
15953
|
], 10, th))), 128))
|
|
15956
15954
|
])) : F("", !0)
|
|
15957
15955
|
]),
|
|
@@ -16082,10 +16080,10 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
16082
16080
|
emits: ["update:open", "toggle"],
|
|
16083
16081
|
setup(a, { emit: e }) {
|
|
16084
16082
|
const t = a, i = e, n = Z(t.open);
|
|
16085
|
-
|
|
16083
|
+
x1(
|
|
16086
16084
|
() => t.open,
|
|
16087
|
-
(
|
|
16088
|
-
n.value =
|
|
16085
|
+
(c) => {
|
|
16086
|
+
n.value = c;
|
|
16089
16087
|
}
|
|
16090
16088
|
);
|
|
16091
16089
|
const l = {
|
|
@@ -16093,15 +16091,15 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
16093
16091
|
creation: "Création",
|
|
16094
16092
|
suppression: "Suppression"
|
|
16095
16093
|
}, s = P(() => {
|
|
16096
|
-
const
|
|
16097
|
-
return t.author.trim() !== "" ||
|
|
16094
|
+
const c = t.initials.trim();
|
|
16095
|
+
return t.author.trim() !== "" || c !== "" && c !== "?";
|
|
16098
16096
|
}), r = P(() => {
|
|
16099
|
-
const
|
|
16100
|
-
return t.author &&
|
|
16097
|
+
const c = [l[t.type]];
|
|
16098
|
+
return t.author && c.push(`par ${t.author}`), t.date && c.push(`le ${t.date}`), c.join(" ");
|
|
16101
16099
|
}), o = () => {
|
|
16102
16100
|
n.value = !n.value, i("update:open", n.value), i("toggle", n.value);
|
|
16103
16101
|
};
|
|
16104
|
-
return (
|
|
16102
|
+
return (c, u) => (w(), k("button", A3(c.$attrs, {
|
|
16105
16103
|
class: ["history-item", `history-item--${a.type}`],
|
|
16106
16104
|
type: "button",
|
|
16107
16105
|
"aria-expanded": n.value,
|
|
@@ -16237,7 +16235,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
16237
16235
|
}
|
|
16238
16236
|
};
|
|
16239
16237
|
return (s, r) => (w(), k("div", Eh, [
|
|
16240
|
-
(w(!0), k(h1, null, E1(
|
|
16238
|
+
(w(!0), k(h1, null, E1(S1(e), (o) => (w(), k("div", {
|
|
16241
16239
|
key: o.id,
|
|
16242
16240
|
class: G(["toast", "show", o.intent])
|
|
16243
16241
|
}, [
|
|
@@ -16252,7 +16250,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
|
|
|
16252
16250
|
V("div", Ch, [
|
|
16253
16251
|
t1(a1, {
|
|
16254
16252
|
"icon-name": "close",
|
|
16255
|
-
onClick: (
|
|
16253
|
+
onClick: (c) => i(o.id)
|
|
16256
16254
|
}, null, 8, ["onClick"])
|
|
16257
16255
|
])
|
|
16258
16256
|
])
|