@synopackageland/ui 0.4.0 → 0.4.2
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/README.md +6 -0
- package/dist/index.js +676 -671
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zr from "vue";
|
|
2
|
-
import { defineComponent as q, computed as O, openBlock as y, createElementBlock as D, normalizeStyle as _e, createElementVNode as z, normalizeClass as ae, createBlock as C, createCommentVNode as R, renderSlot as k, inject as Kt, provide as Rt, shallowRef as zt, shallowReadonly as nt, watch as Q, customRef as rl, toValue as xe, getCurrentScope as kn, onScopeDispose as
|
|
3
|
-
import { Check as ba, ChevronDown as Wt, ChevronRight as jt, X as Ot, CalendarDays as ml, ChevronLeft as En, CircleAlert as Tn, TriangleAlert as Bn, CircleCheck as $n, Info as In, Filter as
|
|
2
|
+
import { defineComponent as q, computed as O, openBlock as y, createElementBlock as D, normalizeStyle as _e, createElementVNode as z, normalizeClass as ae, createBlock as C, createCommentVNode as R, renderSlot as k, inject as Kt, provide as Rt, shallowRef as zt, shallowReadonly as nt, watch as Q, customRef as rl, toValue as xe, getCurrentScope as kn, onScopeDispose as hr, effectScope as On, onBeforeUnmount as ha, isRef as _t, reactive as ua, unref as l, getCurrentInstance as tt, toRefs as fe, ref as E, nextTick as se, onMounted as ge, Fragment as ee, toHandlerKey as nl, camelize as Pn, watchEffect as Oe, onUpdated as ol, triggerRef as ll, toRef as il, onUnmounted as He, h as Xe, Comment as sl, mergeProps as j, cloneVNode as ul, withCtx as b, createVNode as P, withKeys as Se, withDirectives as da, vShow as ca, withModifiers as ne, Teleport as br, normalizeProps as te, guardReactiveProps as re, markRaw as dl, renderList as pe, watchPostEffect as Dn, withMemo as cl, mergeDefaults as An, toDisplayString as W, createTextVNode as ue, useAttrs as fl, resolveDynamicComponent as Ue, toHandlers as pl, resolveComponent as vl, useSlots as yl, useTemplateRef as za } from "vue";
|
|
3
|
+
import { Check as ba, ChevronDown as Wt, ChevronRight as jt, X as Ot, CalendarDays as ml, ChevronLeft as En, CircleAlert as Tn, TriangleAlert as Bn, CircleCheck as $n, Info as In, Filter as gl, Search as hl, ChevronUp as bl, RefreshCw as _l, FolderOpen as Rn, Folder as wl, File as xl, UploadCloud as Cl, FileText as ql } from "@lucide/vue";
|
|
4
4
|
import { DateFormatter as Ye, createCalendar as Sl, toCalendar as Wr, CalendarDateTime as Mn, CalendarDate as Fn, getLocalTimeZone as _r, ZonedDateTime as kl, getDayOfWeek as wr, startOfMonth as Ol, endOfMonth as jr, today as Pl, isEqualMonth as Hr, isSameMonth as Vn, isSameDay as Ct, isEqualDay as It, isToday as Dl, parseDate as Al } from "@internationalized/date";
|
|
5
5
|
const El = ["aria-label"], Ln = /* @__PURE__ */ q({
|
|
6
6
|
__name: "Spinner",
|
|
@@ -26,7 +26,7 @@ const El = ["aria-label"], Ln = /* @__PURE__ */ q({
|
|
|
26
26
|
function _a(...t) {
|
|
27
27
|
return t.filter(Boolean).join(" ");
|
|
28
28
|
}
|
|
29
|
-
const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
29
|
+
const Tl = ["type", "disabled", "data-disabled"], Bl = /* @__PURE__ */ q({
|
|
30
30
|
__name: "Button",
|
|
31
31
|
props: {
|
|
32
32
|
variant: { default: "secondary" },
|
|
@@ -38,20 +38,21 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
38
38
|
setup(t) {
|
|
39
39
|
const a = t, e = O(
|
|
40
40
|
() => _a(
|
|
41
|
-
"inline-flex select-none items-center justify-center gap-2 whitespace-nowrap border text-[length:var(--ui-font-size)] font-normal outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)]
|
|
42
|
-
a.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-
|
|
43
|
-
a.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-
|
|
44
|
-
a.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-
|
|
45
|
-
a.variant === "primary" && "border-[var(--ui-primary)] bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] hover:border-[var(--ui-primary-
|
|
46
|
-
a.variant === "secondary" && "border-
|
|
47
|
-
a.variant === "ghost" && "border-transparent bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]",
|
|
48
|
-
a.variant === "danger" && "border-[var(--ui-danger)] bg-[var(--ui-danger)] text-
|
|
41
|
+
"inline-flex select-none items-center justify-center gap-2 whitespace-nowrap border text-[length:var(--ui-font-size)] font-normal outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] disabled:pointer-events-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
42
|
+
a.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)] px-2.5",
|
|
43
|
+
a.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-control)] px-[13px]",
|
|
44
|
+
a.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)] px-4",
|
|
45
|
+
a.variant === "primary" && "border-[var(--ui-primary-hover)] bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] [--ui-spin-color:var(--ui-primary-foreground)] hover:border-[var(--ui-primary-active)] hover:bg-[var(--ui-primary-hover)] active:border-[var(--ui-primary-active)] active:bg-[var(--ui-primary-active)] data-[disabled]:opacity-40",
|
|
46
|
+
a.variant === "secondary" && "border-[var(--ui-control-border)] bg-[var(--ui-control-bg)] text-[var(--ui-text)] hover:border-[var(--ui-border-strong)] hover:bg-[var(--ui-control-bg-hover)] active:border-[var(--ui-control-border-active)] active:bg-[var(--ui-control-bg-active)] active:shadow-[var(--ui-shadow-control-active)] focus-visible:border-[var(--ui-border-strong)] data-[disabled]:text-[var(--ui-text-disabled)]",
|
|
47
|
+
a.variant === "ghost" && "border-transparent bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)] active:bg-[var(--ui-surface-selected)] data-[disabled]:text-[var(--ui-text-disabled)]",
|
|
48
|
+
a.variant === "danger" && "border-[var(--ui-danger-hover)] bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)] [--ui-spin-color:var(--ui-danger-foreground)] hover:border-[var(--ui-danger-active)] hover:bg-[var(--ui-danger-hover)] active:border-[var(--ui-danger-active)] active:bg-[var(--ui-danger-active)] data-[disabled]:opacity-40"
|
|
49
49
|
)
|
|
50
50
|
);
|
|
51
51
|
return (r, n) => (y(), D("button", {
|
|
52
52
|
type: t.type,
|
|
53
53
|
class: ae(e.value),
|
|
54
54
|
disabled: t.disabled || t.loading,
|
|
55
|
+
"data-disabled": t.disabled || void 0,
|
|
55
56
|
"data-syno-ui": ""
|
|
56
57
|
}, [
|
|
57
58
|
t.loading ? (y(), C(Ln, {
|
|
@@ -72,13 +73,13 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
72
73
|
setup(t) {
|
|
73
74
|
const a = t, e = O(
|
|
74
75
|
() => _a(
|
|
75
|
-
"inline-flex shrink-0 items-center justify-center border outline-none transition-[background-color,border-color,color,box-shadow] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:pointer-events-none
|
|
76
|
-
a.size === "sm" && "size-[var(--ui-control-sm)] rounded-[var(--ui-radius-
|
|
77
|
-
a.size === "md" && "size-[var(--ui-control-md)] rounded-[var(--ui-radius-
|
|
78
|
-
a.size === "lg" && "size-[var(--ui-control-lg)] rounded-[var(--ui-radius-
|
|
79
|
-
a.variant === "ghost" && "border-transparent bg-transparent text-[var(--ui-text-secondary)] hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)]",
|
|
80
|
-
a.variant === "secondary" && "border-[var(--ui-border)] bg-[var(--ui-surface)] text-[var(--ui-text-secondary)] hover:bg-[var(--ui-
|
|
81
|
-
a.variant === "primary" && "border-[var(--ui-primary)] bg-[var(--ui-primary)] text-
|
|
76
|
+
"inline-flex shrink-0 items-center justify-center border outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:pointer-events-none",
|
|
77
|
+
a.size === "sm" && "size-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)]",
|
|
78
|
+
a.size === "md" && "size-[var(--ui-control-md)] rounded-[var(--ui-radius-control)]",
|
|
79
|
+
a.size === "lg" && "size-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)]",
|
|
80
|
+
a.variant === "ghost" && "border-transparent bg-transparent text-[var(--ui-text-secondary)] hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] active:bg-[var(--ui-surface-selected)] disabled:text-[var(--ui-text-disabled)]",
|
|
81
|
+
a.variant === "secondary" && "border-[var(--ui-border)] bg-[var(--ui-surface)] text-[var(--ui-text-secondary)] hover:border-[var(--ui-border-strong)] hover:bg-[var(--ui-control-bg-hover)] hover:text-[var(--ui-text)] active:border-[var(--ui-control-border-active)] active:bg-[var(--ui-control-bg-active)] focus-visible:border-[var(--ui-border-strong)] disabled:text-[var(--ui-text-disabled)]",
|
|
82
|
+
a.variant === "primary" && "border-[var(--ui-primary-hover)] bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] hover:border-[var(--ui-primary-active)] hover:bg-[var(--ui-primary-hover)] active:border-[var(--ui-primary-active)] active:bg-[var(--ui-primary-active)] disabled:opacity-40"
|
|
82
83
|
)
|
|
83
84
|
);
|
|
84
85
|
return (r, n) => (y(), D("button", {
|
|
@@ -92,7 +93,7 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
92
93
|
k(r.$slots, "default")
|
|
93
94
|
], 10, $l));
|
|
94
95
|
}
|
|
95
|
-
}), Il = ["value", "type", "placeholder", "disabled", "aria-invalid"],
|
|
96
|
+
}), Il = ["value", "type", "placeholder", "disabled", "aria-invalid"], Tg = /* @__PURE__ */ q({
|
|
96
97
|
__name: "Input",
|
|
97
98
|
props: {
|
|
98
99
|
modelValue: { default: "" },
|
|
@@ -106,10 +107,10 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
106
107
|
setup(t, { emit: a }) {
|
|
107
108
|
const e = t, r = a, n = O(
|
|
108
109
|
() => _a(
|
|
109
|
-
"w-full border bg-[var(--ui-surface)] px-2.5 text-[13px] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow,background-color] placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)] focus:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:bg-[var(--ui-surface-subtle)] disabled:text-[var(--ui-text-disabled)]",
|
|
110
|
-
e.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-
|
|
111
|
-
e.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-
|
|
112
|
-
e.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-
|
|
110
|
+
"w-full border bg-[var(--ui-surface)] px-2.5 text-[13px] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)] focus:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:bg-[var(--ui-surface-subtle)] disabled:text-[var(--ui-text-disabled)]",
|
|
111
|
+
e.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)]",
|
|
112
|
+
e.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-control)]",
|
|
113
|
+
e.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)]",
|
|
113
114
|
e.invalid ? "border-[var(--ui-danger)]" : "border-[var(--ui-border)]"
|
|
114
115
|
)
|
|
115
116
|
);
|
|
@@ -124,7 +125,7 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
124
125
|
onInput: i[0] || (i[0] = (s) => r("update:modelValue", s.target.value))
|
|
125
126
|
}, null, 42, Il));
|
|
126
127
|
}
|
|
127
|
-
}), Rl = ["value", "placeholder", "disabled", "rows", "aria-invalid"],
|
|
128
|
+
}), Rl = ["value", "placeholder", "disabled", "rows", "aria-invalid"], Bg = /* @__PURE__ */ q({
|
|
128
129
|
__name: "Textarea",
|
|
129
130
|
props: {
|
|
130
131
|
modelValue: { default: "" },
|
|
@@ -143,7 +144,7 @@ const Tl = ["type", "disabled"], Bl = /* @__PURE__ */ q({
|
|
|
143
144
|
rows: e.rows,
|
|
144
145
|
"aria-invalid": e.invalid || void 0,
|
|
145
146
|
class: ae([
|
|
146
|
-
"w-full resize-y rounded-[var(--ui-radius-
|
|
147
|
+
"w-full resize-y rounded-[var(--ui-radius-control)] border bg-[var(--ui-surface)] px-2.5 py-2 text-[13px] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)] focus:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:bg-[var(--ui-surface-subtle)] disabled:text-[var(--ui-text-disabled)]",
|
|
147
148
|
e.invalid ? "border-[var(--ui-danger)]" : "border-[var(--ui-border)]"
|
|
148
149
|
]),
|
|
149
150
|
"data-syno-ui": "",
|
|
@@ -323,7 +324,7 @@ function nr(t, a) {
|
|
|
323
324
|
return St(t) ? !1 : Array.isArray(t) ? t.some((e) => ze(e, a)) : ze(t, a);
|
|
324
325
|
}
|
|
325
326
|
function pt(t, a) {
|
|
326
|
-
return kn() ? (
|
|
327
|
+
return kn() ? (hr(t, a), !0) : !1;
|
|
327
328
|
}
|
|
328
329
|
// @__NO_SIDE_EFFECTS__
|
|
329
330
|
function Nn() {
|
|
@@ -419,7 +420,7 @@ function Wn(t, a = 1e4) {
|
|
|
419
420
|
});
|
|
420
421
|
}
|
|
421
422
|
function Ul(t, a) {
|
|
422
|
-
Wl() &&
|
|
423
|
+
Wl() && ha(t, a);
|
|
423
424
|
}
|
|
424
425
|
function xr(t, a, e = {}) {
|
|
425
426
|
const { immediate: r = !0, immediateCallback: n = !1 } = e, o = zt(!1);
|
|
@@ -484,7 +485,7 @@ function Qe(...t) {
|
|
|
484
485
|
// @__NO_SIDE_EFFECTS__
|
|
485
486
|
function jn() {
|
|
486
487
|
const t = zt(!1), a = tt();
|
|
487
|
-
return a &&
|
|
488
|
+
return a && ge(() => {
|
|
488
489
|
t.value = !0;
|
|
489
490
|
}, a), t;
|
|
490
491
|
}
|
|
@@ -572,23 +573,23 @@ function me(t, a, e, r = {}) {
|
|
|
572
573
|
const { clone: i = !1, passive: s = !1, eventName: u, deep: d = !1, defaultValue: f, shouldEmit: c } = r, p = tt(), v = e || p?.emit || (p == null || (n = p.$emit) === null || n === void 0 ? void 0 : n.bind(p)) || (p == null || (o = p.proxy) === null || o === void 0 || (o = o.$emit) === null || o === void 0 ? void 0 : o.bind(p?.proxy));
|
|
573
574
|
let m = u;
|
|
574
575
|
a || (a = "modelValue"), m = m || `update:${a.toString()}`;
|
|
575
|
-
const _ = (w) => i ? typeof i == "function" ? i(w) : Ql(w) : w,
|
|
576
|
+
const _ = (w) => i ? typeof i == "function" ? i(w) : Ql(w) : w, h = () => Ll(t[a]) ? _(t[a]) : f, g = (w) => {
|
|
576
577
|
c ? c(w) && v(m, w) : v(m, w);
|
|
577
578
|
};
|
|
578
579
|
if (s) {
|
|
579
|
-
const w = E(
|
|
580
|
+
const w = E(h());
|
|
580
581
|
let S = !1;
|
|
581
582
|
return Q(() => t[a], (x) => {
|
|
582
583
|
S || (S = !0, w.value = _(x), se(() => S = !1));
|
|
583
584
|
}), Q(w, (x) => {
|
|
584
|
-
!S && (x !== t[a] || d) &&
|
|
585
|
+
!S && (x !== t[a] || d) && g(x);
|
|
585
586
|
}, { deep: d }), w;
|
|
586
587
|
} else return O({
|
|
587
588
|
get() {
|
|
588
|
-
return
|
|
589
|
+
return h();
|
|
589
590
|
},
|
|
590
591
|
set(w) {
|
|
591
|
-
|
|
592
|
+
g(w);
|
|
592
593
|
}
|
|
593
594
|
});
|
|
594
595
|
}
|
|
@@ -598,23 +599,23 @@ function qr(t) {
|
|
|
598
599
|
const ti = ["INPUT", "TEXTAREA"];
|
|
599
600
|
function or(t, a, e, r = {}) {
|
|
600
601
|
if (!a || r.enableIgnoredElement && ti.includes(a.nodeName)) return null;
|
|
601
|
-
const { arrowKeyOptions: n = "both", attributeName: o = "[data-reka-collection-item]", itemsArray: i = [], loop: s = !0, dir: u = "ltr", preventScroll: d = !0, focus: f = !1 } = r, [c, p, v, m, _,
|
|
602
|
+
const { arrowKeyOptions: n = "both", attributeName: o = "[data-reka-collection-item]", itemsArray: i = [], loop: s = !0, dir: u = "ltr", preventScroll: d = !0, focus: f = !1 } = r, [c, p, v, m, _, h] = [
|
|
602
603
|
t.key === "ArrowRight",
|
|
603
604
|
t.key === "ArrowLeft",
|
|
604
605
|
t.key === "ArrowUp",
|
|
605
606
|
t.key === "ArrowDown",
|
|
606
607
|
t.key === "Home",
|
|
607
608
|
t.key === "End"
|
|
608
|
-
],
|
|
609
|
-
if (!_ && !
|
|
609
|
+
], g = v || m, w = c || p;
|
|
610
|
+
if (!_ && !h && (!g && !w || n === "vertical" && w || n === "horizontal" && g)) return null;
|
|
610
611
|
const S = e ? Array.from(e.querySelectorAll(o)) : i;
|
|
611
612
|
if (!S.length) return null;
|
|
612
613
|
d && t.preventDefault();
|
|
613
614
|
let x = null;
|
|
614
|
-
return w ||
|
|
615
|
-
goForward:
|
|
615
|
+
return w || g ? x = Hn(S, a, {
|
|
616
|
+
goForward: g ? m : u === "ltr" ? c : p,
|
|
616
617
|
loop: s
|
|
617
|
-
}) : _ ? x = S.at(0) || null :
|
|
618
|
+
}) : _ ? x = S.at(0) || null : h && (x = S.at(-1) || null), f && x?.focus(), x;
|
|
618
619
|
}
|
|
619
620
|
function Hn(t, a, e, r = t.includes(a) ? t.length : t.length + 1) {
|
|
620
621
|
if (--r === 0) return null;
|
|
@@ -728,7 +729,7 @@ function ii(t, a) {
|
|
|
728
729
|
}
|
|
729
730
|
return !1;
|
|
730
731
|
}
|
|
731
|
-
function
|
|
732
|
+
function gt(t) {
|
|
732
733
|
t?.isConnected && !t.closest("[inert]") && t.focus({ preventScroll: !0 });
|
|
733
734
|
}
|
|
734
735
|
class si {
|
|
@@ -748,7 +749,7 @@ class si {
|
|
|
748
749
|
r.addEventListener("wheel", s, { passive: !1 }), r.addEventListener("touchmove", s, { passive: !1 }), o(() => {
|
|
749
750
|
r.removeEventListener("keydown", this.keydown, !0), r.removeEventListener("pointerdown", this.pointerdown, !0), r.removeEventListener("focusin", this.focusin, !0), r.ownerDocument.removeEventListener("focusin", i, !0), r.removeEventListener("wheel", s), r.removeEventListener("touchmove", s);
|
|
750
751
|
});
|
|
751
|
-
}, { flush: "post" }),
|
|
752
|
+
}, { flush: "post" }), ha(() => this.dispose());
|
|
752
753
|
}
|
|
753
754
|
root;
|
|
754
755
|
background;
|
|
@@ -788,7 +789,7 @@ class si {
|
|
|
788
789
|
if (!this.canFocus()) return;
|
|
789
790
|
const e = this.closingFocusTarget ?? a;
|
|
790
791
|
se(() => {
|
|
791
|
-
this.canFocus() && (e?.isConnected && this.belongs(e) && !e.closest("[inert]") ?
|
|
792
|
+
this.canFocus() && (e?.isConnected && this.belongs(e) && !e.closest("[inert]") ? gt(e) : gt(this.top?.element ?? this.root.value));
|
|
792
793
|
});
|
|
793
794
|
}
|
|
794
795
|
layer(a, e, r, n) {
|
|
@@ -800,7 +801,7 @@ class si {
|
|
|
800
801
|
f.local.add(this), this.layers.push(c);
|
|
801
802
|
const p = o.parentElement?.hasAttribute("data-reka-popper-content-wrapper") ? o.parentElement : o, v = Ua(p, "z-index", String(1401 + this.layers.length * 2)), m = o.previousElementSibling, _ = s && m?.getAttribute("data-ui-overlay") === "" ? Ua(m, "z-index", String(1400 + this.layers.length * 2)) : void 0;
|
|
802
803
|
this.reconcile(), d(() => {
|
|
803
|
-
this.layers = this.layers.filter((
|
|
804
|
+
this.layers = this.layers.filter((h) => h !== c), v(), _?.(), this.reconcile(), this.layers.length || f.local.delete(this);
|
|
804
805
|
});
|
|
805
806
|
}, { immediate: !0, flush: "post" });
|
|
806
807
|
}
|
|
@@ -844,13 +845,13 @@ class si {
|
|
|
844
845
|
const n = this.scopes.at(-1)?.element ?? this.modal?.element;
|
|
845
846
|
if (!n || !n.contains(a.target)) return;
|
|
846
847
|
const o = Ga(n), i = o[0], s = o.at(-1);
|
|
847
|
-
(!i || !a.shiftKey && a.target === s || a.shiftKey && a.target === i) && (a.preventDefault(),
|
|
848
|
+
(!i || !a.shiftKey && a.target === s || a.shiftKey && a.target === i) && (a.preventDefault(), gt((a.shiftKey ? s : i) ?? n));
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
851
|
};
|
|
851
852
|
pointerdown = (a) => {
|
|
852
853
|
const e = a.target, r = e.closest("button,input,select,textarea,a[href],[tabindex]");
|
|
853
|
-
r && r.tabIndex >= 0 && (!this.modal || this.allowed(r)) &&
|
|
854
|
+
r && r.tabIndex >= 0 && (!this.modal || this.allowed(r)) && gt(r), this.pointerIntent = !0, clearTimeout(this.pointerTimer), this.pointerTimer = setTimeout(() => {
|
|
854
855
|
this.pointerIntent = !1;
|
|
855
856
|
}, 0);
|
|
856
857
|
const n = this.top;
|
|
@@ -871,7 +872,7 @@ class si {
|
|
|
871
872
|
if (!this.modal && !r?.trapped) return;
|
|
872
873
|
this.returningFocus = !0;
|
|
873
874
|
const n = this.modal?.element ?? r.element;
|
|
874
|
-
|
|
875
|
+
gt(this.lastFocused && this.allowed(this.lastFocused) ? this.lastFocused : Ga(n)[0] ?? n), this.returningFocus = !1;
|
|
875
876
|
};
|
|
876
877
|
focusScope(a, e, r, n) {
|
|
877
878
|
Q([a, e], ([o, i], s, u) => {
|
|
@@ -882,7 +883,7 @@ class si {
|
|
|
882
883
|
const p = new Event("focusScope.autoFocusOnMount", { cancelable: !0 });
|
|
883
884
|
f || p.preventDefault(), n("mountAutoFocus", p);
|
|
884
885
|
const v = o.ownerDocument.activeElement;
|
|
885
|
-
!p.defaultPrevented && (this.canFocus() || f && v === o.ownerDocument.body) &&
|
|
886
|
+
!p.defaultPrevented && (this.canFocus() || f && v === o.ownerDocument.body) && gt(Ga(o)[0] ?? o);
|
|
886
887
|
}), u(() => {
|
|
887
888
|
const p = this.canFocus();
|
|
888
889
|
this.scopes = this.scopes.filter((m) => m !== c);
|
|
@@ -953,14 +954,14 @@ const Gn = ui(), di = /* @__PURE__ */ Kn(() => {
|
|
|
953
954
|
const m = window.innerWidth - document.documentElement.clientWidth, _ = {
|
|
954
955
|
padding: m,
|
|
955
956
|
margin: 0
|
|
956
|
-
},
|
|
957
|
+
}, h = n.scrollBody?.value ? typeof n.scrollBody.value == "object" ? Gn({
|
|
957
958
|
padding: n.scrollBody.value.padding === !0 ? m : n.scrollBody.value.padding,
|
|
958
959
|
margin: n.scrollBody.value.margin === !0 ? m : n.scrollBody.value.margin
|
|
959
960
|
}, _) : _ : {
|
|
960
961
|
padding: 0,
|
|
961
962
|
margin: 0
|
|
962
963
|
};
|
|
963
|
-
m > 0 && (document.body.style.paddingRight = typeof
|
|
964
|
+
m > 0 && (document.body.style.paddingRight = typeof h.padding == "number" ? `${h.padding}px` : String(h.padding), document.body.style.marginRight = typeof h.margin == "number" ? `${h.margin}px` : String(h.margin), document.documentElement.style.setProperty("--scrollbar-width", `${m}px`), document.body.style.overflow = "hidden"), se(() => {
|
|
964
965
|
r.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
|
|
965
966
|
});
|
|
966
967
|
}, {
|
|
@@ -1049,14 +1050,14 @@ function Jr(t, a) {
|
|
|
1049
1050
|
return e;
|
|
1050
1051
|
}
|
|
1051
1052
|
function Za(t) {
|
|
1052
|
-
const { dateObj: a, weekStartsOn: e, fixedWeeks: r, locale: n } = t, o = wt(a), i = Array.from({ length: o }, (
|
|
1053
|
+
const { dateObj: a, weekStartsOn: e, fixedWeeks: r, locale: n } = t, o = wt(a), i = Array.from({ length: o }, (h, g) => a.set({ day: g + 1 })), s = Ol(a), u = jr(a), d = pi(s, e, n), f = vi(u, e, n), c = Jr(d.subtract({ days: 1 }), s), p = Jr(u, f.add({ days: 1 })), v = c.length + i.length + p.length;
|
|
1053
1054
|
if (r && v < 42) {
|
|
1054
|
-
const
|
|
1055
|
-
let
|
|
1056
|
-
|
|
1057
|
-
const w = Array.from({ length:
|
|
1055
|
+
const h = 42 - v;
|
|
1056
|
+
let g = p.at(-1);
|
|
1057
|
+
g || (g = jr(a));
|
|
1058
|
+
const w = Array.from({ length: h }, (S, x) => {
|
|
1058
1059
|
const A = x + 1;
|
|
1059
|
-
return
|
|
1060
|
+
return g.add({ days: A });
|
|
1060
1061
|
});
|
|
1061
1062
|
p.push(...w);
|
|
1062
1063
|
}
|
|
@@ -1096,38 +1097,38 @@ function mi(t, a = {}) {
|
|
|
1096
1097
|
function r() {
|
|
1097
1098
|
return e.value;
|
|
1098
1099
|
}
|
|
1099
|
-
function n(
|
|
1100
|
-
e.value =
|
|
1100
|
+
function n(h) {
|
|
1101
|
+
e.value = h;
|
|
1101
1102
|
}
|
|
1102
|
-
function o(
|
|
1103
|
+
function o(h, g) {
|
|
1103
1104
|
return new Ye(e.value, {
|
|
1104
1105
|
...a,
|
|
1105
|
-
...
|
|
1106
|
-
}).format(
|
|
1106
|
+
...g
|
|
1107
|
+
}).format(h);
|
|
1107
1108
|
}
|
|
1108
|
-
function i(
|
|
1109
|
-
return fi(
|
|
1109
|
+
function i(h, g = !0) {
|
|
1110
|
+
return fi(h) && g ? o(Ne(h), {
|
|
1110
1111
|
dateStyle: "long",
|
|
1111
1112
|
timeStyle: "long"
|
|
1112
|
-
}) : o(Ne(
|
|
1113
|
+
}) : o(Ne(h), { dateStyle: "long" });
|
|
1113
1114
|
}
|
|
1114
|
-
function s(
|
|
1115
|
+
function s(h, g = {}) {
|
|
1115
1116
|
return new Ye(e.value, {
|
|
1116
1117
|
...a,
|
|
1117
1118
|
month: "long",
|
|
1118
1119
|
year: "numeric",
|
|
1119
|
-
...
|
|
1120
|
-
}).format(
|
|
1120
|
+
...g
|
|
1121
|
+
}).format(h);
|
|
1121
1122
|
}
|
|
1122
|
-
function u(
|
|
1123
|
+
function u(h, g = {}) {
|
|
1123
1124
|
return new Ye(e.value, {
|
|
1124
1125
|
...a,
|
|
1125
1126
|
month: "long",
|
|
1126
|
-
...
|
|
1127
|
-
}).format(
|
|
1127
|
+
...g
|
|
1128
|
+
}).format(h);
|
|
1128
1129
|
}
|
|
1129
1130
|
function d() {
|
|
1130
|
-
const
|
|
1131
|
+
const h = Pl(_r());
|
|
1131
1132
|
return [
|
|
1132
1133
|
1,
|
|
1133
1134
|
2,
|
|
@@ -1142,42 +1143,42 @@ function mi(t, a = {}) {
|
|
|
1142
1143
|
11,
|
|
1143
1144
|
12
|
|
1144
1145
|
].map((w) => ({
|
|
1145
|
-
label: u(Ne(
|
|
1146
|
+
label: u(Ne(h.set({ month: w }))),
|
|
1146
1147
|
value: w
|
|
1147
1148
|
}));
|
|
1148
1149
|
}
|
|
1149
|
-
function f(
|
|
1150
|
+
function f(h, g = {}) {
|
|
1150
1151
|
return new Ye(e.value, {
|
|
1151
1152
|
...a,
|
|
1152
1153
|
year: "numeric",
|
|
1153
|
-
...
|
|
1154
|
-
}).format(
|
|
1154
|
+
...g
|
|
1155
|
+
}).format(h);
|
|
1155
1156
|
}
|
|
1156
|
-
function c(
|
|
1157
|
-
return kr(
|
|
1157
|
+
function c(h, g) {
|
|
1158
|
+
return kr(h) ? new Ye(e.value, {
|
|
1158
1159
|
...a,
|
|
1159
|
-
...
|
|
1160
|
-
timeZone:
|
|
1161
|
-
}).formatToParts(Ne(
|
|
1160
|
+
...g,
|
|
1161
|
+
timeZone: h.timeZone
|
|
1162
|
+
}).formatToParts(Ne(h)) : new Ye(e.value, {
|
|
1162
1163
|
...a,
|
|
1163
|
-
...
|
|
1164
|
-
}).formatToParts(Ne(
|
|
1164
|
+
...g
|
|
1165
|
+
}).formatToParts(Ne(h));
|
|
1165
1166
|
}
|
|
1166
|
-
function p(
|
|
1167
|
+
function p(h, g = "narrow") {
|
|
1167
1168
|
return new Ye(e.value, {
|
|
1168
1169
|
...a,
|
|
1169
|
-
weekday:
|
|
1170
|
-
}).format(
|
|
1170
|
+
weekday: g
|
|
1171
|
+
}).format(h);
|
|
1171
1172
|
}
|
|
1172
|
-
function v(
|
|
1173
|
+
function v(h, g) {
|
|
1173
1174
|
const w = new Ye(e.value, {
|
|
1174
1175
|
...a,
|
|
1175
1176
|
hour: "numeric",
|
|
1176
1177
|
hourCycle: "h23",
|
|
1177
1178
|
hour12: void 0,
|
|
1178
1179
|
numberingSystem: "latn",
|
|
1179
|
-
...
|
|
1180
|
-
}).formatToParts(
|
|
1180
|
+
...g ? { timeZone: g } : {}
|
|
1181
|
+
}).formatToParts(h), S = Number(w.find((x) => x.type === "hour")?.value);
|
|
1181
1182
|
return !Number.isNaN(S) && S >= 12 ? "PM" : "AM";
|
|
1182
1183
|
}
|
|
1183
1184
|
const m = {
|
|
@@ -1188,11 +1189,11 @@ function mi(t, a = {}) {
|
|
|
1188
1189
|
minute: "numeric",
|
|
1189
1190
|
second: "numeric"
|
|
1190
1191
|
};
|
|
1191
|
-
function _(
|
|
1192
|
+
function _(h, g, w = {}) {
|
|
1192
1193
|
const S = {
|
|
1193
1194
|
...m,
|
|
1194
1195
|
...w
|
|
1195
|
-
}, A = c(
|
|
1196
|
+
}, A = c(h, S).find(($) => $.type === g);
|
|
1196
1197
|
return A ? A.value : "";
|
|
1197
1198
|
}
|
|
1198
1199
|
return {
|
|
@@ -1308,7 +1309,7 @@ function xa() {
|
|
|
1308
1309
|
const t = tt()?.vnode?.scopeId;
|
|
1309
1310
|
return t ? { [t]: "" } : {};
|
|
1310
1311
|
}
|
|
1311
|
-
function
|
|
1312
|
+
function gi(t, a) {
|
|
1312
1313
|
const e = Wn(!1, 300);
|
|
1313
1314
|
pt(() => {
|
|
1314
1315
|
e.value = !1;
|
|
@@ -1322,7 +1323,7 @@ function hi(t, a) {
|
|
|
1322
1323
|
const d = s.currentTarget, f = {
|
|
1323
1324
|
x: s.clientX,
|
|
1324
1325
|
y: s.clientY
|
|
1325
|
-
}, c =
|
|
1326
|
+
}, c = hi(f, d.getBoundingClientRect()), p = bi(f, c, 1), v = _i(u.getBoundingClientRect()), m = xi([...p, ...v]);
|
|
1326
1327
|
r.value = m, e.value = !0;
|
|
1327
1328
|
}
|
|
1328
1329
|
return Oe((s) => {
|
|
@@ -1349,7 +1350,7 @@ function hi(t, a) {
|
|
|
1349
1350
|
onPointerExit: n.on
|
|
1350
1351
|
};
|
|
1351
1352
|
}
|
|
1352
|
-
function
|
|
1353
|
+
function hi(t, a) {
|
|
1353
1354
|
const e = Math.abs(a.top - t.y), r = Math.abs(a.bottom - t.y), n = Math.abs(a.right - t.x), o = Math.abs(a.left - t.x);
|
|
1354
1355
|
switch (Math.min(e, r, n, o)) {
|
|
1355
1356
|
case o:
|
|
@@ -1470,7 +1471,7 @@ var qi = function(t) {
|
|
|
1470
1471
|
return null;
|
|
1471
1472
|
var a = Array.isArray(t) ? t[0] : t;
|
|
1472
1473
|
return a.ownerDocument.body;
|
|
1473
|
-
},
|
|
1474
|
+
}, ht = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), ra = {}, Qa = 0, Jn = function(t) {
|
|
1474
1475
|
return t && (t.host || Jn(t.parentNode));
|
|
1475
1476
|
}, Si = function(t, a) {
|
|
1476
1477
|
return a.map(function(e) {
|
|
@@ -1494,18 +1495,18 @@ var qi = function(t) {
|
|
|
1494
1495
|
f(p);
|
|
1495
1496
|
else
|
|
1496
1497
|
try {
|
|
1497
|
-
var v = p.getAttribute(r), m = v !== null && v !== "false", _ = (
|
|
1498
|
-
|
|
1499
|
-
} catch (
|
|
1500
|
-
console.error("aria-hidden: cannot operate on ", p,
|
|
1498
|
+
var v = p.getAttribute(r), m = v !== null && v !== "false", _ = (ht.get(p) || 0) + 1, h = (o.get(p) || 0) + 1;
|
|
1499
|
+
ht.set(p, _), o.set(p, h), i.push(p), _ === 1 && m && aa.set(p, !0), h === 1 && p.setAttribute(e, "true"), m || p.setAttribute(r, "true");
|
|
1500
|
+
} catch (g) {
|
|
1501
|
+
console.error("aria-hidden: cannot operate on ", p, g);
|
|
1501
1502
|
}
|
|
1502
1503
|
});
|
|
1503
1504
|
};
|
|
1504
1505
|
return f(a), s.clear(), Qa++, function() {
|
|
1505
1506
|
i.forEach(function(c) {
|
|
1506
|
-
var p =
|
|
1507
|
-
|
|
1508
|
-
}), Qa--, Qa || (
|
|
1507
|
+
var p = ht.get(c) - 1, v = o.get(c) - 1;
|
|
1508
|
+
ht.set(c, p), o.set(c, v), p || (aa.has(c) || c.removeAttribute(r), aa.delete(c)), v || c.removeAttribute(e);
|
|
1509
|
+
}), Qa--, Qa || (ht = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), ra = {});
|
|
1509
1510
|
};
|
|
1510
1511
|
}, Oi = function(t, a, e) {
|
|
1511
1512
|
e === void 0 && (e = "data-aria-hidden");
|
|
@@ -1618,7 +1619,7 @@ function Ai(t, a) {
|
|
|
1618
1619
|
function Ei(t) {
|
|
1619
1620
|
const a = E(), e = O(() => a.value?.width ?? 0), r = O(() => a.value?.height ?? 0);
|
|
1620
1621
|
let n;
|
|
1621
|
-
return
|
|
1622
|
+
return ge(() => {
|
|
1622
1623
|
const o = Be(t);
|
|
1623
1624
|
o ? (a.value = {
|
|
1624
1625
|
width: o.offsetWidth,
|
|
@@ -1698,39 +1699,39 @@ function Ii(t, a) {
|
|
|
1698
1699
|
ANIMATION_END: "unmounted"
|
|
1699
1700
|
},
|
|
1700
1701
|
unmounted: { MOUNT: "mounted" }
|
|
1701
|
-
}), f = (
|
|
1702
|
+
}), f = (h) => {
|
|
1702
1703
|
if (Te) {
|
|
1703
|
-
const
|
|
1704
|
+
const g = new CustomEvent(h, {
|
|
1704
1705
|
bubbles: !1,
|
|
1705
1706
|
cancelable: !1
|
|
1706
1707
|
});
|
|
1707
|
-
a.value?.dispatchEvent(
|
|
1708
|
+
a.value?.dispatchEvent(g);
|
|
1708
1709
|
}
|
|
1709
1710
|
};
|
|
1710
|
-
Q(t, async (
|
|
1711
|
-
const w =
|
|
1711
|
+
Q(t, async (h, g) => {
|
|
1712
|
+
const w = g !== h;
|
|
1712
1713
|
if (await se(), w) {
|
|
1713
1714
|
const S = r.value, x = na(a.value);
|
|
1714
|
-
|
|
1715
|
+
h ? (d("MOUNT"), f("enter"), x === "none" && f("after-enter")) : x === "none" || x === "undefined" || e.value?.display === "none" ? (d("UNMOUNT"), f("leave"), f("after-leave")) : g && S !== x ? (d("ANIMATION_OUT"), f("leave")) : (d("UNMOUNT"), f("after-leave"));
|
|
1715
1716
|
}
|
|
1716
1717
|
}, { immediate: !0 });
|
|
1717
|
-
const c = (
|
|
1718
|
-
if (
|
|
1719
|
-
const
|
|
1718
|
+
const c = (h) => {
|
|
1719
|
+
if (h.target !== a.value) return;
|
|
1720
|
+
const g = na(a.value), w = g.includes(CSS.escape(h.animationName)), S = u.value === "mounted" ? "enter" : "leave";
|
|
1720
1721
|
if (w && (f(`after-${S}`), d("ANIMATION_END"), !n.value)) {
|
|
1721
1722
|
const x = a.value.style.animationFillMode;
|
|
1722
1723
|
a.value.style.animationFillMode = "forwards", i = s?.setTimeout(() => {
|
|
1723
1724
|
a.value?.style.animationFillMode === "forwards" && (a.value.style.animationFillMode = x);
|
|
1724
1725
|
});
|
|
1725
1726
|
}
|
|
1726
|
-
|
|
1727
|
-
}, p = (
|
|
1728
|
-
|
|
1729
|
-
}, v = Q(a, (
|
|
1730
|
-
|
|
1727
|
+
g === "none" && d("ANIMATION_END");
|
|
1728
|
+
}, p = (h) => {
|
|
1729
|
+
h.target === a.value && (r.value = na(a.value));
|
|
1730
|
+
}, v = Q(a, (h, g) => {
|
|
1731
|
+
h ? (e.value = getComputedStyle(h), h.addEventListener("animationstart", p), h.addEventListener("animationcancel", c), h.addEventListener("animationend", c)) : (d("ANIMATION_END"), i !== void 0 && s?.clearTimeout(i), g?.removeEventListener("animationstart", p), g?.removeEventListener("animationcancel", c), g?.removeEventListener("animationend", c));
|
|
1731
1732
|
}, { immediate: !0 }), m = Q(u, () => {
|
|
1732
|
-
const
|
|
1733
|
-
r.value = u.value === "mounted" ?
|
|
1733
|
+
const h = na(a.value);
|
|
1734
|
+
r.value = u.value === "mounted" ? h : "none";
|
|
1734
1735
|
});
|
|
1735
1736
|
return He(() => {
|
|
1736
1737
|
v(), m(), a.value && (a.value.removeEventListener("animationstart", p), a.value.removeEventListener("animationcancel", c), a.value.removeEventListener("animationend", c)), i !== void 0 && s?.clearTimeout(i);
|
|
@@ -1914,7 +1915,7 @@ var Fi = /* @__PURE__ */ q({
|
|
|
1914
1915
|
d.value = _.height, u.value = _.width, c.value || (m.style.transitionDuration = p.value.transitionDuration, m.style.animationName = p.value.animationName);
|
|
1915
1916
|
}, { immediate: !0 });
|
|
1916
1917
|
const v = O(() => c.value && n.open.value);
|
|
1917
|
-
return
|
|
1918
|
+
return ge(() => {
|
|
1918
1919
|
requestAnimationFrame(() => {
|
|
1919
1920
|
c.value = !1;
|
|
1920
1921
|
});
|
|
@@ -1928,12 +1929,12 @@ var Fi = /* @__PURE__ */ q({
|
|
|
1928
1929
|
present: m.forceMount || l(n).open.value,
|
|
1929
1930
|
"force-mount": !0
|
|
1930
1931
|
}, {
|
|
1931
|
-
default: b(({ present:
|
|
1932
|
+
default: b(({ present: h }) => [P(l(H), j(m.$attrs, {
|
|
1932
1933
|
id: l(n).contentId,
|
|
1933
1934
|
ref: l(i),
|
|
1934
1935
|
"as-child": e.asChild,
|
|
1935
1936
|
as: m.as,
|
|
1936
|
-
hidden:
|
|
1937
|
+
hidden: h ? void 0 : l(n).unmountOnHide.value ? "" : "until-found",
|
|
1937
1938
|
"data-state": v.value ? void 0 : l(n).open.value ? "open" : "closed",
|
|
1938
1939
|
"data-disabled": l(n).disabled?.value ? "" : void 0,
|
|
1939
1940
|
style: {
|
|
@@ -1941,7 +1942,7 @@ var Fi = /* @__PURE__ */ q({
|
|
|
1941
1942
|
"--reka-collapsible-content-width": `${u.value}px`
|
|
1942
1943
|
}
|
|
1943
1944
|
}), {
|
|
1944
|
-
default: b(() => [!l(n).unmountOnHide.value ||
|
|
1945
|
+
default: b(() => [!l(n).unmountOnHide.value || h ? k(m.$slots, "default", { key: 0 }) : R("v-if", !0)]),
|
|
1945
1946
|
_: 2
|
|
1946
1947
|
}, 1040, [
|
|
1947
1948
|
"id",
|
|
@@ -2492,13 +2493,13 @@ var ps = /* @__PURE__ */ q({
|
|
|
2492
2493
|
return i.layer(o, () => e.present, () => e.disableOutsidePointerEvents, r), (m) => Xe(H, { ref: n, as: e.as, asChild: e.asChild, "data-dismissable-layer": "" }, m.$slots);
|
|
2493
2494
|
e.present && fa(), li(o, () => e.present);
|
|
2494
2495
|
const s = O(() => o.value?.ownerDocument ?? globalThis.document), u = O(() => be.layersRoot), d = O(() => o.value ? Array.from(u.value).indexOf(o.value) : -1), f = O(() => be.layersWithOutsidePointerEventsDisabled.size > 0), c = O(() => {
|
|
2495
|
-
const m = Array.from(u.value), [_] = [...be.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
2496
|
-
return d.value >=
|
|
2496
|
+
const m = Array.from(u.value), [_] = [...be.layersWithOutsidePointerEventsDisabled].slice(-1), h = m.indexOf(_);
|
|
2497
|
+
return d.value >= h;
|
|
2497
2498
|
}), p = cs(async (m) => {
|
|
2498
|
-
const _ = [...be.branches].some((
|
|
2499
|
+
const _ = [...be.branches].some((h) => h?.contains(m.target));
|
|
2499
2500
|
!e.present || !c.value || _ || (r("pointerDownOutside", m), r("interactOutside", m), await se(), m.defaultPrevented || r("dismiss"));
|
|
2500
2501
|
}, o, () => e.present), v = fs((m) => {
|
|
2501
|
-
const _ = [...be.branches].some((
|
|
2502
|
+
const _ = [...be.branches].some((h) => h?.contains(m.target));
|
|
2502
2503
|
!e.present || _ || (r("focusOutside", m), r("interactOutside", m), m.defaultPrevented || r("dismiss"));
|
|
2503
2504
|
}, o);
|
|
2504
2505
|
return Cr("Escape", (m) => {
|
|
@@ -2507,12 +2508,12 @@ var ps = /* @__PURE__ */ q({
|
|
|
2507
2508
|
o,
|
|
2508
2509
|
() => e.disableOutsidePointerEvents,
|
|
2509
2510
|
() => e.present
|
|
2510
|
-
], ([m, _,
|
|
2511
|
-
!m || !
|
|
2511
|
+
], ([m, _, h], g, w) => {
|
|
2512
|
+
!m || !h || _ && (be.layersWithOutsidePointerEventsDisabled.size === 0 && (be.originalBodyPointerEventsPriority = s.value.body.style.getPropertyPriority("pointer-events"), be.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), be.layersWithOutsidePointerEventsDisabled.add(m), w(() => {
|
|
2512
2513
|
be.layersWithOutsidePointerEventsDisabled.delete(m), be.layersWithOutsidePointerEventsDisabled.size === 0 && !St(be.originalBodyPointerEvents) && s.value.body.style.setProperty("pointer-events", be.originalBodyPointerEvents, be.originalBodyPointerEventsPriority ?? "");
|
|
2513
2514
|
}));
|
|
2514
|
-
}, { immediate: !0 }), Q([o, () => e.present], ([m, _],
|
|
2515
|
-
!m || !_ || (u.value.add(m),
|
|
2515
|
+
}, { immediate: !0 }), Q([o, () => e.present], ([m, _], h, g) => {
|
|
2516
|
+
!m || !_ || (u.value.add(m), g(() => {
|
|
2516
2517
|
u.value.delete(m);
|
|
2517
2518
|
}));
|
|
2518
2519
|
}, { immediate: !0 }), Oe((m) => {
|
|
@@ -2557,7 +2558,7 @@ var ps = /* @__PURE__ */ q({
|
|
|
2557
2558
|
if (n)
|
|
2558
2559
|
return n.branch(r), (i) => Xe(H, { ref: e, ...a }, i.$slots);
|
|
2559
2560
|
let o = null;
|
|
2560
|
-
return
|
|
2561
|
+
return ge(() => {
|
|
2561
2562
|
o = r.value, o && be.branches.add(o);
|
|
2562
2563
|
}), He(() => {
|
|
2563
2564
|
o && (be.branches.delete(o), o = null);
|
|
@@ -2568,7 +2569,7 @@ var ps = /* @__PURE__ */ q({
|
|
|
2568
2569
|
}
|
|
2569
2570
|
}), ys = vs;
|
|
2570
2571
|
const ms = /* @__PURE__ */ Vl(() => E([]));
|
|
2571
|
-
function
|
|
2572
|
+
function gs() {
|
|
2572
2573
|
const t = ms();
|
|
2573
2574
|
return {
|
|
2574
2575
|
add(a) {
|
|
@@ -2593,7 +2594,7 @@ function sa(t, { select: a = !1 } = {}) {
|
|
|
2593
2594
|
for (const r of t)
|
|
2594
2595
|
if (rt(r, { select: a }), ye() !== e) return !0;
|
|
2595
2596
|
}
|
|
2596
|
-
function
|
|
2597
|
+
function hs(t) {
|
|
2597
2598
|
const a = Dr(t), e = an(a, t), r = an(a.reverse(), t);
|
|
2598
2599
|
return [e, r];
|
|
2599
2600
|
}
|
|
@@ -2658,7 +2659,7 @@ var ws = /* @__PURE__ */ q({
|
|
|
2658
2659
|
const e = t, r = a, { currentRef: n, currentElement: o } = V(), i = Pe();
|
|
2659
2660
|
if (i)
|
|
2660
2661
|
return i.focusScope(o, () => e.present, () => e.trapped, r), (p) => Xe(H, { ref: n, as: e.as, asChild: e.asChild, tabindex: "-1" }, p.$slots);
|
|
2661
|
-
const s = E(null), u =
|
|
2662
|
+
const s = E(null), u = gs(), d = /* @__PURE__ */ ua({
|
|
2662
2663
|
paused: !1,
|
|
2663
2664
|
pause() {
|
|
2664
2665
|
this.paused = !0;
|
|
@@ -2681,7 +2682,7 @@ var ws = /* @__PURE__ */ q({
|
|
|
2681
2682
|
const S = w.relatedTarget;
|
|
2682
2683
|
S !== null && (v.contains(S) || rt(s.value, { select: !0 }));
|
|
2683
2684
|
}
|
|
2684
|
-
function
|
|
2685
|
+
function h(w) {
|
|
2685
2686
|
const S = s.value;
|
|
2686
2687
|
if (S === null || !w.some((T) => T.removedNodes.length > 0)) return;
|
|
2687
2688
|
const A = ye();
|
|
@@ -2689,16 +2690,16 @@ var ws = /* @__PURE__ */ q({
|
|
|
2689
2690
|
v.contains(S) || rt(v);
|
|
2690
2691
|
}
|
|
2691
2692
|
document.addEventListener("focusin", m), document.addEventListener("focusout", _);
|
|
2692
|
-
const
|
|
2693
|
-
v &&
|
|
2693
|
+
const g = new MutationObserver(h);
|
|
2694
|
+
v && g.observe(v, {
|
|
2694
2695
|
childList: !0,
|
|
2695
2696
|
subtree: !0
|
|
2696
2697
|
}), p(() => {
|
|
2697
|
-
document.removeEventListener("focusin", m), document.removeEventListener("focusout", _),
|
|
2698
|
+
document.removeEventListener("focusin", m), document.removeEventListener("focusout", _), g.disconnect();
|
|
2698
2699
|
});
|
|
2699
2700
|
});
|
|
2700
2701
|
function f(p, v) {
|
|
2701
|
-
const m = new CustomEvent(er, tn), _ = (
|
|
2702
|
+
const m = new CustomEvent(er, tn), _ = (h) => r("mountAutoFocus", h);
|
|
2702
2703
|
p.addEventListener(er, _), p.dispatchEvent(m), p.removeEventListener(er, _), m.defaultPrevented || (sa(Dr(p), { select: !0 }), ye() === v && rt(p));
|
|
2703
2704
|
}
|
|
2704
2705
|
Oe(async (p) => {
|
|
@@ -2707,11 +2708,11 @@ var ws = /* @__PURE__ */ q({
|
|
|
2707
2708
|
e.present !== !1 && u.add(d);
|
|
2708
2709
|
const m = ye();
|
|
2709
2710
|
!v.contains(m) && e.present !== !1 && f(v, m), p(() => {
|
|
2710
|
-
const
|
|
2711
|
+
const h = new CustomEvent(tr, tn), g = (w) => {
|
|
2711
2712
|
r("unmountAutoFocus", w);
|
|
2712
2713
|
};
|
|
2713
|
-
v.addEventListener(tr,
|
|
2714
|
-
|
|
2714
|
+
v.addEventListener(tr, g), v.dispatchEvent(h), v.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
2715
|
+
h.defaultPrevented || rt(m ?? document.body, { select: !0 }), v.removeEventListener(tr, g), u.remove(d), v.removeAttribute("data-focus-scope-unmounting");
|
|
2715
2716
|
}, 0);
|
|
2716
2717
|
});
|
|
2717
2718
|
}), Q(() => e.present, async (p, v) => {
|
|
@@ -2731,8 +2732,8 @@ var ws = /* @__PURE__ */ q({
|
|
|
2731
2732
|
if (!e.loop && !e.trapped || d.paused) return;
|
|
2732
2733
|
const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, m = ye();
|
|
2733
2734
|
if (v && m) {
|
|
2734
|
-
const _ = p.currentTarget, [
|
|
2735
|
-
|
|
2735
|
+
const _ = p.currentTarget, [h, g] = hs(_);
|
|
2736
|
+
h && g ? !p.shiftKey && m === g ? (p.preventDefault(), e.loop && rt(h, { select: !0 })) : p.shiftKey && m === h && (p.preventDefault(), e.loop && rt(g, { select: !0 })) : m === _ && p.preventDefault();
|
|
2736
2737
|
}
|
|
2737
2738
|
}
|
|
2738
2739
|
return (p, v) => (y(), C(l(H), {
|
|
@@ -2804,7 +2805,7 @@ function Es({ titleName: t = Ds, contentName: a = As, componentLink: e = "dialog
|
|
|
2804
2805
|
If you want to hide the \`${t}\`, you can wrap it with our VisuallyHidden component.
|
|
2805
2806
|
|
|
2806
2807
|
For more information, see https://www.reka-ui.com/docs/components/${e}`, s = `Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${a}.`;
|
|
2807
|
-
|
|
2808
|
+
ge(() => {
|
|
2808
2809
|
document.getElementById(r) || console.warn(i);
|
|
2809
2810
|
const d = o.value?.getAttribute("aria-describedby");
|
|
2810
2811
|
n && d && (document.getElementById(n) || console.warn(s));
|
|
@@ -2848,7 +2849,7 @@ var Ts = /* @__PURE__ */ q({
|
|
|
2848
2849
|
],
|
|
2849
2850
|
setup(t, { emit: a }) {
|
|
2850
2851
|
const e = t, r = a, n = Ge(), o = Pe(), { forwardRef: i, currentElement: s } = V();
|
|
2851
|
-
return n.titleId ||= Ce(void 0, "reka-dialog-title"), n.descriptionId ||= Ce(void 0, "reka-dialog-description"),
|
|
2852
|
+
return n.titleId ||= Ce(void 0, "reka-dialog-title"), n.descriptionId ||= Ce(void 0, "reka-dialog-description"), ge(() => {
|
|
2852
2853
|
n.contentElement = s, ye() !== document.body && (!o || o.canFocus()) && (n.triggerElement.value = ye());
|
|
2853
2854
|
}), process.env.NODE_ENV !== "production" && Es({
|
|
2854
2855
|
titleName: "DialogTitle",
|
|
@@ -3292,7 +3293,7 @@ var Ts = /* @__PURE__ */ q({
|
|
|
3292
3293
|
},
|
|
3293
3294
|
setup(t) {
|
|
3294
3295
|
const a = t, e = Ge(), { forwardRef: r, currentElement: n } = V();
|
|
3295
|
-
return e.contentId ||= Ce(void 0, "reka-dialog-content"),
|
|
3296
|
+
return e.contentId ||= Ce(void 0, "reka-dialog-content"), ge(() => {
|
|
3296
3297
|
e.triggerElement.value = n.value;
|
|
3297
3298
|
}), (o, i) => (y(), C(l(H), j(a, {
|
|
3298
3299
|
ref: l(r),
|
|
@@ -3332,8 +3333,8 @@ function Ie(t = {}) {
|
|
|
3332
3333
|
}, i = (c = !1) => {
|
|
3333
3334
|
const p = n.collectionRef.value;
|
|
3334
3335
|
if (!p) return [];
|
|
3335
|
-
const v = Array.from(p.querySelectorAll(`[${rn}]`)), m = new Map(v.map((
|
|
3336
|
-
return c ?
|
|
3336
|
+
const v = Array.from(p.querySelectorAll(`[${rn}]`)), m = new Map(v.map((g, w) => [g, w])), h = Array.from(n.itemMap.value.values()).sort((g, w) => (m.get(g.ref) ?? -1) - (m.get(w.ref) ?? -1));
|
|
3337
|
+
return c ? h : h.filter((g) => g.ref.dataset.disabled !== "");
|
|
3337
3338
|
}, s = /* @__PURE__ */ q({
|
|
3338
3339
|
name: "CollectionSlot",
|
|
3339
3340
|
inheritAttrs: !1,
|
|
@@ -3352,13 +3353,13 @@ function Ie(t = {}) {
|
|
|
3352
3353
|
props: { value: { validator: () => !0 } },
|
|
3353
3354
|
setup(c, { slots: p, attrs: v }) {
|
|
3354
3355
|
const { primitiveElement: m, currentElement: _ } = Ft();
|
|
3355
|
-
return Oe((
|
|
3356
|
+
return Oe((h) => {
|
|
3356
3357
|
if (_.value) {
|
|
3357
|
-
const
|
|
3358
|
-
n.itemMap.value.set(
|
|
3358
|
+
const g = dl(_.value);
|
|
3359
|
+
n.itemMap.value.set(g, {
|
|
3359
3360
|
ref: _.value,
|
|
3360
3361
|
value: c.value
|
|
3361
|
-
}),
|
|
3362
|
+
}), h(() => n.itemMap.value.delete(g));
|
|
3362
3363
|
}
|
|
3363
3364
|
}), () => Xe(ir, {
|
|
3364
3365
|
...v,
|
|
@@ -3622,10 +3623,10 @@ function nu(t) {
|
|
|
3622
3623
|
center: "50%",
|
|
3623
3624
|
end: "100%"
|
|
3624
3625
|
}[f], v = (n.arrow?.x ?? 0) + s / 2, m = (n.arrow?.y ?? 0) + u / 2;
|
|
3625
|
-
let _ = "",
|
|
3626
|
-
return d === "bottom" ? (_ = i ? c : `${v}px`,
|
|
3626
|
+
let _ = "", h = "";
|
|
3627
|
+
return d === "bottom" ? (_ = i ? c : `${v}px`, h = `${-u}px`) : d === "top" ? (_ = i ? c : `${v}px`, h = `${r.floating.height + u}px`) : d === "right" ? (_ = `${-u}px`, h = i ? p : `${m}px`) : d === "left" && (_ = `${r.floating.width + u}px`, h = i ? p : `${m}px`), { data: {
|
|
3627
3628
|
x: _,
|
|
3628
|
-
y:
|
|
3629
|
+
y: h
|
|
3629
3630
|
} };
|
|
3630
3631
|
}
|
|
3631
3632
|
};
|
|
@@ -3643,7 +3644,7 @@ const ou = ["top", "right", "bottom", "left"], ot = Math.min, Ze = Math.max, va
|
|
|
3643
3644
|
bottom: "top",
|
|
3644
3645
|
top: "bottom"
|
|
3645
3646
|
};
|
|
3646
|
-
function
|
|
3647
|
+
function go(t, a, e) {
|
|
3647
3648
|
return Ze(t, ot(a, e));
|
|
3648
3649
|
}
|
|
3649
3650
|
function et(t, a) {
|
|
@@ -3712,7 +3713,7 @@ function pu(t) {
|
|
|
3712
3713
|
left: (n = t.left) != null ? n : 0
|
|
3713
3714
|
};
|
|
3714
3715
|
}
|
|
3715
|
-
function
|
|
3716
|
+
function ho(t) {
|
|
3716
3717
|
return typeof t != "number" ? pu(t) : {
|
|
3717
3718
|
top: t,
|
|
3718
3719
|
right: t,
|
|
@@ -3795,8 +3796,8 @@ async function vu(t, a) {
|
|
|
3795
3796
|
elementContext: c = "floating",
|
|
3796
3797
|
altBoundary: p = !1,
|
|
3797
3798
|
padding: v = 0
|
|
3798
|
-
} = et(a, t), m =
|
|
3799
|
-
element: (e = await (o.isElement == null ? void 0 : o.isElement(
|
|
3799
|
+
} = et(a, t), m = ho(v), h = s[p ? c === "floating" ? "reference" : "floating" : c], g = ma(await o.getClippingRect({
|
|
3800
|
+
element: (e = await (o.isElement == null ? void 0 : o.isElement(h))) == null || e ? h : h.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
3800
3801
|
boundary: d,
|
|
3801
3802
|
rootBoundary: f,
|
|
3802
3803
|
strategy: u
|
|
@@ -3815,10 +3816,10 @@ async function vu(t, a) {
|
|
|
3815
3816
|
strategy: u
|
|
3816
3817
|
}) : w);
|
|
3817
3818
|
return {
|
|
3818
|
-
top: (
|
|
3819
|
-
bottom: (A.bottom -
|
|
3820
|
-
left: (
|
|
3821
|
-
right: (A.right -
|
|
3819
|
+
top: (g.top - A.top + m.top) / x.y,
|
|
3820
|
+
bottom: (A.bottom - g.bottom + m.bottom) / x.y,
|
|
3821
|
+
left: (g.left - A.left + m.left) / x.x,
|
|
3822
|
+
right: (A.right - g.right + m.right) / x.x
|
|
3822
3823
|
};
|
|
3823
3824
|
}
|
|
3824
3825
|
const yu = 50, mu = async (t, a, e) => {
|
|
@@ -3841,13 +3842,13 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3841
3842
|
} = sn(d, r, u), p = r, v = 0;
|
|
3842
3843
|
const m = {};
|
|
3843
3844
|
for (let _ = 0; _ < o.length; _++) {
|
|
3844
|
-
const
|
|
3845
|
-
if (!
|
|
3845
|
+
const h = o[_];
|
|
3846
|
+
if (!h)
|
|
3846
3847
|
continue;
|
|
3847
3848
|
const {
|
|
3848
|
-
name:
|
|
3849
|
+
name: g,
|
|
3849
3850
|
fn: w
|
|
3850
|
-
} =
|
|
3851
|
+
} = h, {
|
|
3851
3852
|
x: S,
|
|
3852
3853
|
y: x,
|
|
3853
3854
|
data: A,
|
|
@@ -3866,8 +3867,8 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3866
3867
|
floating: a
|
|
3867
3868
|
}
|
|
3868
3869
|
});
|
|
3869
|
-
f = S ?? f, c = x ?? c, m[
|
|
3870
|
-
...m[
|
|
3870
|
+
f = S ?? f, c = x ?? c, m[g] = {
|
|
3871
|
+
...m[g],
|
|
3871
3872
|
...A
|
|
3872
3873
|
}, $ && v < yu && (v++, typeof $ == "object" && ($.placement && (p = $.placement), $.rects && (d = $.rects === !0 ? await i.getElementRects({
|
|
3873
3874
|
reference: t,
|
|
@@ -3885,7 +3886,7 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3885
3886
|
strategy: n,
|
|
3886
3887
|
middlewareData: m
|
|
3887
3888
|
};
|
|
3888
|
-
},
|
|
3889
|
+
}, gu = (t) => ({
|
|
3889
3890
|
name: "arrow",
|
|
3890
3891
|
options: t,
|
|
3891
3892
|
async fn(a) {
|
|
@@ -3903,13 +3904,13 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3903
3904
|
} = et(t, a) || {};
|
|
3904
3905
|
if (d == null)
|
|
3905
3906
|
return {};
|
|
3906
|
-
const c =
|
|
3907
|
+
const c = ho(f), p = {
|
|
3907
3908
|
x: e,
|
|
3908
3909
|
y: r
|
|
3909
|
-
}, v = Br(n), m = Tr(v), _ = await i.getDimensions(d),
|
|
3910
|
+
}, v = Br(n), m = Tr(v), _ = await i.getDimensions(d), h = v === "y", g = h ? "top" : "left", w = h ? "bottom" : "right", S = h ? "clientHeight" : "clientWidth", x = o.reference[m] + o.reference[v] - p[v] - o.floating[m], A = p[v] - o.reference[v], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
3910
3911
|
let T = $ ? $[S] : 0;
|
|
3911
3912
|
(!T || !await (i.isElement == null ? void 0 : i.isElement($))) && (T = s.floating[S] || o.floating[m]);
|
|
3912
|
-
const I = x / 2 - A / 2, K = T / 2 - _[m] / 2 - 1, U = ot(c[
|
|
3913
|
+
const I = x / 2 - A / 2, K = T / 2 - _[m] / 2 - 1, U = ot(c[g], K), F = ot(c[w], K), J = T - _[m] - F, L = T / 2 - _[m] / 2 + I, X = go(U, L, J), B = !u.arrow && Et(n) != null && L !== X && o.reference[m] / 2 - (L < U ? U : F) - _[m] / 2 < 0, Y = B ? L < U ? L - U : L - J : 0;
|
|
3913
3914
|
return {
|
|
3914
3915
|
[v]: p[v] + Y,
|
|
3915
3916
|
data: {
|
|
@@ -3922,7 +3923,7 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3922
3923
|
reset: B
|
|
3923
3924
|
};
|
|
3924
3925
|
}
|
|
3925
|
-
}),
|
|
3926
|
+
}), hu = function(t) {
|
|
3926
3927
|
return t === void 0 && (t = {}), {
|
|
3927
3928
|
name: "flip",
|
|
3928
3929
|
options: t,
|
|
@@ -3942,15 +3943,15 @@ const yu = 50, mu = async (t, a, e) => {
|
|
|
3942
3943
|
fallbackStrategy: v = "bestFit",
|
|
3943
3944
|
fallbackAxisSideDirection: m = "none",
|
|
3944
3945
|
flipAlignment: _ = !0,
|
|
3945
|
-
...
|
|
3946
|
+
...h
|
|
3946
3947
|
} = et(t, a);
|
|
3947
3948
|
if ((e = o.arrow) != null && e.alignmentOffset)
|
|
3948
3949
|
return {};
|
|
3949
|
-
const
|
|
3950
|
+
const g = lt(n), w = Ke(s), S = lt(s) === s, x = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), A = p || (S || !_ ? [ya(s)] : su(s)), $ = m !== "none";
|
|
3950
3951
|
!p && $ && A.push(...fu(s, _, m, x));
|
|
3951
|
-
const T = [s, ...A], I = await u.detectOverflow(a,
|
|
3952
|
+
const T = [s, ...A], I = await u.detectOverflow(a, h), K = [];
|
|
3952
3953
|
let U = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
3953
|
-
if (f && K.push(I[
|
|
3954
|
+
if (f && K.push(I[g]), c) {
|
|
3954
3955
|
const X = iu(n, i, x);
|
|
3955
3956
|
K.push(I[X[0]], I[X[1]]);
|
|
3956
3957
|
}
|
|
@@ -4138,18 +4139,18 @@ const wu = function(t) {
|
|
|
4138
4139
|
y: r
|
|
4139
4140
|
}, c = await o.detectOverflow(a, d), p = Ke(n), v = Er(p);
|
|
4140
4141
|
let m = f[v], _ = f[p];
|
|
4141
|
-
const
|
|
4142
|
-
i && (m =
|
|
4143
|
-
const
|
|
4142
|
+
const h = (w, S) => go(S + c[w === "y" ? "top" : "left"], S, S - c[w === "y" ? "bottom" : "right"]);
|
|
4143
|
+
i && (m = h(v, m)), s && (_ = h(p, _));
|
|
4144
|
+
const g = u.fn({
|
|
4144
4145
|
...a,
|
|
4145
4146
|
[v]: m,
|
|
4146
4147
|
[p]: _
|
|
4147
4148
|
});
|
|
4148
4149
|
return {
|
|
4149
|
-
...
|
|
4150
|
+
...g,
|
|
4150
4151
|
data: {
|
|
4151
|
-
x:
|
|
4152
|
-
y:
|
|
4152
|
+
x: g.x - e,
|
|
4153
|
+
y: g.y - r,
|
|
4153
4154
|
enabled: {
|
|
4154
4155
|
[v]: i,
|
|
4155
4156
|
[p]: s
|
|
@@ -4177,13 +4178,13 @@ const wu = function(t) {
|
|
|
4177
4178
|
x: n,
|
|
4178
4179
|
y: o
|
|
4179
4180
|
}, v = Ke(i), m = Er(v);
|
|
4180
|
-
let _ = p[m],
|
|
4181
|
-
const
|
|
4182
|
-
mainAxis:
|
|
4181
|
+
let _ = p[m], h = p[v];
|
|
4182
|
+
const g = et(d, a), w = typeof g == "number" ? {
|
|
4183
|
+
mainAxis: g,
|
|
4183
4184
|
crossAxis: 0
|
|
4184
4185
|
} : {
|
|
4185
|
-
mainAxis: (e =
|
|
4186
|
-
crossAxis: (r =
|
|
4186
|
+
mainAxis: (e = g.mainAxis) != null ? e : 0,
|
|
4187
|
+
crossAxis: (r = g.crossAxis) != null ? r : 0
|
|
4187
4188
|
};
|
|
4188
4189
|
if (f) {
|
|
4189
4190
|
const A = m === "y" ? "height" : "width", $ = s.reference[m] - s.floating[A] + w.mainAxis, T = s.reference[m] + s.reference[A] - w.mainAxis;
|
|
@@ -4192,11 +4193,11 @@ const wu = function(t) {
|
|
|
4192
4193
|
if (c) {
|
|
4193
4194
|
var S, x;
|
|
4194
4195
|
const A = m === "y" ? "width" : "height", $ = bo.has(lt(i)), T = s.reference[v] - s.floating[A] + ($ && ((S = u.offset) == null ? void 0 : S[v]) || 0) + ($ ? 0 : w.crossAxis), I = s.reference[v] + s.reference[A] + ($ ? 0 : ((x = u.offset) == null ? void 0 : x[v]) || 0) - ($ ? w.crossAxis : 0);
|
|
4195
|
-
|
|
4196
|
+
h < T ? h = T : h > I && (h = I);
|
|
4196
4197
|
}
|
|
4197
4198
|
return {
|
|
4198
4199
|
[m]: _,
|
|
4199
|
-
[v]:
|
|
4200
|
+
[v]: h
|
|
4200
4201
|
};
|
|
4201
4202
|
}
|
|
4202
4203
|
};
|
|
@@ -4220,9 +4221,9 @@ const wu = function(t) {
|
|
|
4220
4221
|
} = r.floating;
|
|
4221
4222
|
let m, _;
|
|
4222
4223
|
d === "top" || d === "bottom" ? (m = d, _ = f === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, m = f === "end" ? "top" : "bottom");
|
|
4223
|
-
const
|
|
4224
|
+
const h = v - u.top - u.bottom, g = p - u.left - u.right, w = ot(v - u[m], h), S = ot(p - u[_], g), x = a.middlewareData.shift, A = !x;
|
|
4224
4225
|
let $ = w, T = S;
|
|
4225
|
-
x != null && x.enabled.x && (T =
|
|
4226
|
+
x != null && x.enabled.x && (T = g), x != null && x.enabled.y && ($ = h), A && !f && (c ? T = p - 2 * Ze(u.left, u.right) : $ = v - 2 * Ze(u.top, u.bottom)), await i({
|
|
4226
4227
|
...a,
|
|
4227
4228
|
availableWidth: T,
|
|
4228
4229
|
availableHeight: $
|
|
@@ -4400,8 +4401,8 @@ function ft(t, a, e, r) {
|
|
|
4400
4401
|
const p = ke(o), v = We(r) ? ke(r) : r;
|
|
4401
4402
|
let m = p, _ = pr(m);
|
|
4402
4403
|
for (; _ && v !== m; ) {
|
|
4403
|
-
const
|
|
4404
|
-
u *=
|
|
4404
|
+
const h = xt(_), g = _.getBoundingClientRect(), w = je(_), S = g.left + (_.clientLeft + parseFloat(w.paddingLeft)) * h.x, x = g.top + (_.clientTop + parseFloat(w.paddingTop)) * h.y;
|
|
4405
|
+
u *= h.x, d *= h.y, f *= h.x, c *= h.y, u += S, d += x, m = ke(_), _ = pr(m);
|
|
4405
4406
|
}
|
|
4406
4407
|
}
|
|
4407
4408
|
return ma({
|
|
@@ -4473,8 +4474,8 @@ function Iu(t, a, e) {
|
|
|
4473
4474
|
r ? p || (d = -i.offsetLeft, f = -i.offsetTop) : (s = i.width, u = i.height, p && (d = i.offsetLeft, f = i.offsetTop));
|
|
4474
4475
|
}
|
|
4475
4476
|
if (Ba(o) <= 0) {
|
|
4476
|
-
const p = o.ownerDocument, v = p.body, m = getComputedStyle(v), _ = p.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0,
|
|
4477
|
-
|
|
4477
|
+
const p = o.ownerDocument, v = p.body, m = getComputedStyle(v), _ = p.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - v.clientWidth - _), g = getComputedStyle(o).scrollbarGutter === "stable both-edges" ? h / 2 : h;
|
|
4478
|
+
g <= $u && (s -= g);
|
|
4478
4479
|
}
|
|
4479
4480
|
return {
|
|
4480
4481
|
width: s,
|
|
@@ -4646,12 +4647,12 @@ function Wu(t, a, e) {
|
|
|
4646
4647
|
left: v,
|
|
4647
4648
|
top: m,
|
|
4648
4649
|
width: _,
|
|
4649
|
-
height:
|
|
4650
|
+
height: h
|
|
4650
4651
|
} = p;
|
|
4651
|
-
if (f || a(), !_ || !
|
|
4652
|
+
if (f || a(), !_ || !h)
|
|
4652
4653
|
return;
|
|
4653
|
-
const
|
|
4654
|
-
rootMargin: -
|
|
4654
|
+
const g = oa(m), w = oa(o.clientWidth - (v + _)), S = oa(o.clientHeight - (m + h)), x = oa(v), $ = {
|
|
4655
|
+
rootMargin: -g + "px " + -w + "px " + -S + "px " + -x + "px",
|
|
4655
4656
|
threshold: Ze(0, ot(1, c)) || 1
|
|
4656
4657
|
};
|
|
4657
4658
|
let T = !0;
|
|
@@ -4693,32 +4694,32 @@ function ju(t, a, e, r) {
|
|
|
4693
4694
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
4694
4695
|
animationFrame: u = !1
|
|
4695
4696
|
} = r, d = Mr(t), f = n || o ? [...d ? Lt(d) : [], ...a ? Lt(a) : []] : [];
|
|
4696
|
-
f.forEach((
|
|
4697
|
-
n &&
|
|
4697
|
+
f.forEach((g) => {
|
|
4698
|
+
n && g.addEventListener("scroll", e), o && g.addEventListener("resize", e);
|
|
4698
4699
|
});
|
|
4699
4700
|
const c = d && s ? Wu(d, e, o) : null;
|
|
4700
4701
|
let p = -1, v = null;
|
|
4701
|
-
i && (v = new ResizeObserver((
|
|
4702
|
-
let [w] =
|
|
4702
|
+
i && (v = new ResizeObserver((g) => {
|
|
4703
|
+
let [w] = g;
|
|
4703
4704
|
w && w.target === d && v && a && (v.unobserve(a), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
4704
4705
|
var S;
|
|
4705
4706
|
(S = v) == null || S.observe(a);
|
|
4706
4707
|
})), e();
|
|
4707
4708
|
}), d && !u && v.observe(d), a && v.observe(a));
|
|
4708
4709
|
let m, _ = u ? ft(t) : null;
|
|
4709
|
-
u &&
|
|
4710
|
-
function
|
|
4711
|
-
const
|
|
4712
|
-
_ && !So(_,
|
|
4710
|
+
u && h();
|
|
4711
|
+
function h() {
|
|
4712
|
+
const g = ft(t);
|
|
4713
|
+
_ && !So(_, g) && e(), _ = g, m = requestAnimationFrame(h);
|
|
4713
4714
|
}
|
|
4714
4715
|
return e(), () => {
|
|
4715
|
-
var
|
|
4716
|
+
var g;
|
|
4716
4717
|
f.forEach((w) => {
|
|
4717
4718
|
n && w.removeEventListener("scroll", e), o && w.removeEventListener("resize", e);
|
|
4718
|
-
}), c?.(), (
|
|
4719
|
+
}), c?.(), (g = v) == null || g.disconnect(), v = null, u && cancelAnimationFrame(m);
|
|
4719
4720
|
};
|
|
4720
4721
|
}
|
|
4721
|
-
const Hu = wu, Uu = xu, vn =
|
|
4722
|
+
const Hu = wu, Uu = xu, vn = hu, Gu = qu, Yu = bu, Xu = gu, Zu = Cu, Ju = (t, a, e) => {
|
|
4722
4723
|
const r = /* @__PURE__ */ new Map(), n = e ?? {}, o = {
|
|
4723
4724
|
...zu,
|
|
4724
4725
|
...n.platform,
|
|
@@ -4776,7 +4777,7 @@ function td(t, a, e) {
|
|
|
4776
4777
|
}), u = O(() => {
|
|
4777
4778
|
var T;
|
|
4778
4779
|
return (T = bt(e.transform)) != null ? T : !0;
|
|
4779
|
-
}), d = O(() => vr(t.value)), f = O(() => vr(a.value)), c = E(0), p = E(0), v = E(s.value), m = E(i.value), _ = zt({}),
|
|
4780
|
+
}), d = O(() => vr(t.value)), f = O(() => vr(a.value)), c = E(0), p = E(0), v = E(s.value), m = E(i.value), _ = zt({}), h = E(!1), g = O(() => {
|
|
4780
4781
|
const T = {
|
|
4781
4782
|
position: v.value,
|
|
4782
4783
|
left: "0",
|
|
@@ -4807,7 +4808,7 @@ function td(t, a, e) {
|
|
|
4807
4808
|
placement: i.value,
|
|
4808
4809
|
strategy: s.value
|
|
4809
4810
|
}).then((I) => {
|
|
4810
|
-
c.value = I.x, p.value = I.y, v.value = I.strategy, m.value = I.placement, _.value = I.middlewareData,
|
|
4811
|
+
c.value = I.x, p.value = I.y, v.value = I.strategy, m.value = I.placement, _.value = I.middlewareData, h.value = T !== !1;
|
|
4811
4812
|
});
|
|
4812
4813
|
}
|
|
4813
4814
|
function x() {
|
|
@@ -4824,7 +4825,7 @@ function td(t, a, e) {
|
|
|
4824
4825
|
}
|
|
4825
4826
|
}
|
|
4826
4827
|
function $() {
|
|
4827
|
-
n.value || (
|
|
4828
|
+
n.value || (h.value = !1);
|
|
4828
4829
|
}
|
|
4829
4830
|
return Q([o, i, s, n], S, {
|
|
4830
4831
|
flush: "sync"
|
|
@@ -4832,14 +4833,14 @@ function td(t, a, e) {
|
|
|
4832
4833
|
flush: "sync"
|
|
4833
4834
|
}), Q(n, $, {
|
|
4834
4835
|
flush: "sync"
|
|
4835
|
-
}), kn() &&
|
|
4836
|
+
}), kn() && hr(x), {
|
|
4836
4837
|
x: nt(c),
|
|
4837
4838
|
y: nt(p),
|
|
4838
4839
|
strategy: nt(v),
|
|
4839
4840
|
placement: nt(m),
|
|
4840
4841
|
middlewareData: nt(_),
|
|
4841
|
-
isPositioned: nt(
|
|
4842
|
-
floatingStyles:
|
|
4842
|
+
isPositioned: nt(h),
|
|
4843
|
+
floatingStyles: g,
|
|
4843
4844
|
update: S
|
|
4844
4845
|
};
|
|
4845
4846
|
}
|
|
@@ -4860,7 +4861,7 @@ const ad = ["dir"], Oo = {
|
|
|
4860
4861
|
positionStrategy: "fixed",
|
|
4861
4862
|
updatePositionStrategy: "optimized",
|
|
4862
4863
|
prioritizePosition: !1
|
|
4863
|
-
}, [$
|
|
4864
|
+
}, [$g, rd] = /* @__PURE__ */ ie("PopperContent");
|
|
4864
4865
|
var nd = /* @__PURE__ */ q({
|
|
4865
4866
|
inheritAttrs: !1,
|
|
4866
4867
|
__name: "PopperContent",
|
|
@@ -4966,17 +4967,17 @@ var nd = /* @__PURE__ */ q({
|
|
|
4966
4967
|
padding: v.value,
|
|
4967
4968
|
boundary: m.value.filter(ru),
|
|
4968
4969
|
altBoundary: m.value.length > 0
|
|
4969
|
-
})),
|
|
4970
|
+
})), h = O(() => ({
|
|
4970
4971
|
mainAxis: e.sideFlip,
|
|
4971
4972
|
crossAxis: e.alignFlip
|
|
4972
|
-
})),
|
|
4973
|
+
})), g = O(() => [
|
|
4973
4974
|
Hu({
|
|
4974
4975
|
mainAxis: e.sideOffset + c.value,
|
|
4975
4976
|
alignmentAxis: e.alignOffset
|
|
4976
4977
|
}),
|
|
4977
4978
|
e.prioritizePosition && e.avoidCollisions && vn({
|
|
4978
4979
|
..._.value,
|
|
4979
|
-
...
|
|
4980
|
+
...h.value
|
|
4980
4981
|
}),
|
|
4981
4982
|
e.avoidCollisions && Uu({
|
|
4982
4983
|
mainAxis: !0,
|
|
@@ -4986,7 +4987,7 @@ var nd = /* @__PURE__ */ q({
|
|
|
4986
4987
|
}),
|
|
4987
4988
|
!e.prioritizePosition && e.avoidCollisions && vn({
|
|
4988
4989
|
..._.value,
|
|
4989
|
-
...
|
|
4990
|
+
...h.value
|
|
4990
4991
|
}),
|
|
4991
4992
|
Gu({
|
|
4992
4993
|
..._.value,
|
|
@@ -5015,7 +5016,7 @@ var nd = /* @__PURE__ */ q({
|
|
|
5015
5016
|
layoutShift: !e.disableUpdateOnLayoutShift,
|
|
5016
5017
|
animationFrame: e.updatePositionStrategy === "always"
|
|
5017
5018
|
}),
|
|
5018
|
-
middleware:
|
|
5019
|
+
middleware: g
|
|
5019
5020
|
}), T = O(() => cr(x.value)[0]), I = O(() => cr(x.value)[1]);
|
|
5020
5021
|
Dn(() => {
|
|
5021
5022
|
A.value && r("placed");
|
|
@@ -5141,45 +5142,45 @@ function dd(t, a) {
|
|
|
5141
5142
|
}
|
|
5142
5143
|
function cd(t) {
|
|
5143
5144
|
const a = mi(t.locale.value), e = O(() => {
|
|
5144
|
-
const
|
|
5145
|
-
return t.placeholder.value.calendar.identifier === "gregory" && t.placeholder.value.era === "BC" && (
|
|
5145
|
+
const g = { calendar: t.placeholder.value.calendar.identifier };
|
|
5146
|
+
return t.placeholder.value.calendar.identifier === "gregory" && t.placeholder.value.era === "BC" && (g.era = "short"), g;
|
|
5146
5147
|
}), r = E(ut({
|
|
5147
5148
|
dateObj: t.placeholder.value,
|
|
5148
5149
|
weekStartsOn: t.weekStartsOn.value,
|
|
5149
5150
|
locale: t.locale.value,
|
|
5150
5151
|
fixedWeeks: t.fixedWeeks.value,
|
|
5151
5152
|
numberOfMonths: t.numberOfMonths.value
|
|
5152
|
-
})), n = O(() => r.value.map((
|
|
5153
|
-
function o(
|
|
5154
|
-
return !n.value.some((w) => Hr(
|
|
5153
|
+
})), n = O(() => r.value.map((g) => g.value));
|
|
5154
|
+
function o(g) {
|
|
5155
|
+
return !n.value.some((w) => Hr(g, w));
|
|
5155
5156
|
}
|
|
5156
|
-
const i = (
|
|
5157
|
+
const i = (g) => {
|
|
5157
5158
|
if (!t.maxValue.value || !r.value.length) return !1;
|
|
5158
5159
|
if (t.disabled.value) return !0;
|
|
5159
5160
|
const w = r.value.at(-1).value;
|
|
5160
|
-
if (!
|
|
5161
|
+
if (!g && !t.nextPage.value) {
|
|
5161
5162
|
const x = w.add({ months: 1 }).set({ day: 1 });
|
|
5162
5163
|
return Xa(x, t.maxValue.value);
|
|
5163
5164
|
}
|
|
5164
|
-
const S = id(w,
|
|
5165
|
+
const S = id(w, g || t.nextPage.value);
|
|
5165
5166
|
return Xa(S, t.maxValue.value);
|
|
5166
|
-
}, s = (
|
|
5167
|
+
}, s = (g) => {
|
|
5167
5168
|
if (!t.minValue.value || !r.value.length) return !1;
|
|
5168
5169
|
if (t.disabled.value) return !0;
|
|
5169
5170
|
const w = r.value[0].value;
|
|
5170
|
-
if (!
|
|
5171
|
+
if (!g && !t.prevPage.value) {
|
|
5171
5172
|
const x = w.subtract({ months: 1 }).set({ day: 35 });
|
|
5172
5173
|
return ta(x, t.minValue.value);
|
|
5173
5174
|
}
|
|
5174
|
-
const S = sd(w,
|
|
5175
|
+
const S = sd(w, g || t.prevPage.value);
|
|
5175
5176
|
return ta(S, t.minValue.value);
|
|
5176
5177
|
};
|
|
5177
|
-
function u(
|
|
5178
|
-
return !!(t.isDateDisabled?.(
|
|
5178
|
+
function u(g) {
|
|
5179
|
+
return !!(t.isDateDisabled?.(g) || t.disabled.value || t.maxValue.value && Xa(g, t.maxValue.value) || t.minValue.value && ta(g, t.minValue.value));
|
|
5179
5180
|
}
|
|
5180
|
-
const d = (
|
|
5181
|
+
const d = (g) => !!t.isDateUnavailable?.(g), f = O(() => r.value.length ? r.value[0].rows[0].map((g) => a.dayOfWeek(Ne(g), t.weekdayFormat.value)) : []), c = (g) => {
|
|
5181
5182
|
const w = r.value[0].value;
|
|
5182
|
-
if (!
|
|
5183
|
+
if (!g && !t.nextPage.value) {
|
|
5183
5184
|
const $ = w.add({ months: t.pagedNavigation.value ? t.numberOfMonths.value : 1 }), T = ut({
|
|
5184
5185
|
dateObj: $,
|
|
5185
5186
|
weekStartsOn: t.weekStartsOn.value,
|
|
@@ -5190,7 +5191,7 @@ function cd(t) {
|
|
|
5190
5191
|
r.value = T, t.placeholder.value = T[0].value.set({ day: 1 });
|
|
5191
5192
|
return;
|
|
5192
5193
|
}
|
|
5193
|
-
const S = ud(w,
|
|
5194
|
+
const S = ud(w, g || t.nextPage.value), x = ut({
|
|
5194
5195
|
dateObj: S,
|
|
5195
5196
|
weekStartsOn: t.weekStartsOn.value,
|
|
5196
5197
|
locale: t.locale.value,
|
|
@@ -5199,14 +5200,14 @@ function cd(t) {
|
|
|
5199
5200
|
});
|
|
5200
5201
|
r.value = x;
|
|
5201
5202
|
const A = {};
|
|
5202
|
-
if (!
|
|
5203
|
+
if (!g) {
|
|
5203
5204
|
const $ = x[0].value.compare(w);
|
|
5204
5205
|
$ >= wt(w) && (A.day = 1), $ >= 365 && (A.month = 1);
|
|
5205
5206
|
}
|
|
5206
5207
|
t.placeholder.value = x[0].value.set({ ...A });
|
|
5207
|
-
}, p = (
|
|
5208
|
+
}, p = (g) => {
|
|
5208
5209
|
const w = r.value[0].value;
|
|
5209
|
-
if (!
|
|
5210
|
+
if (!g && !t.prevPage.value) {
|
|
5210
5211
|
const $ = w.subtract({ months: t.pagedNavigation.value ? t.numberOfMonths.value : 1 }), T = ut({
|
|
5211
5212
|
dateObj: $,
|
|
5212
5213
|
weekStartsOn: t.weekStartsOn.value,
|
|
@@ -5217,7 +5218,7 @@ function cd(t) {
|
|
|
5217
5218
|
r.value = T, t.placeholder.value = T[0].value.set({ day: 1 });
|
|
5218
5219
|
return;
|
|
5219
5220
|
}
|
|
5220
|
-
const S = dd(w,
|
|
5221
|
+
const S = dd(w, g || t.prevPage.value), x = ut({
|
|
5221
5222
|
dateObj: S,
|
|
5222
5223
|
weekStartsOn: t.weekStartsOn.value,
|
|
5223
5224
|
locale: t.locale.value,
|
|
@@ -5226,15 +5227,15 @@ function cd(t) {
|
|
|
5226
5227
|
});
|
|
5227
5228
|
r.value = x;
|
|
5228
5229
|
const A = {};
|
|
5229
|
-
if (!
|
|
5230
|
+
if (!g) {
|
|
5230
5231
|
const $ = w.compare(x[0].value);
|
|
5231
5232
|
$ >= wt(w) && (A.day = 1), $ >= 365 && (A.month = 1);
|
|
5232
5233
|
}
|
|
5233
5234
|
t.placeholder.value = x[0].value.set({ ...A });
|
|
5234
5235
|
};
|
|
5235
|
-
Q(t.placeholder, (
|
|
5236
|
-
n.value.some((w) => Hr(w,
|
|
5237
|
-
dateObj:
|
|
5236
|
+
Q(t.placeholder, (g) => {
|
|
5237
|
+
n.value.some((w) => Hr(w, g)) || (r.value = ut({
|
|
5238
|
+
dateObj: g,
|
|
5238
5239
|
weekStartsOn: t.weekStartsOn.value,
|
|
5239
5240
|
locale: t.locale.value,
|
|
5240
5241
|
fixedWeeks: t.fixedWeeks.value,
|
|
@@ -5260,14 +5261,14 @@ function cd(t) {
|
|
|
5260
5261
|
const I = r.value[0].value;
|
|
5261
5262
|
return `${a.fullMonthAndYear(Ne(I), e.value)}`;
|
|
5262
5263
|
}
|
|
5263
|
-
const
|
|
5264
|
+
const g = Ne(r.value[0].value), w = Ne(r.value.at(-1).value), S = a.fullMonth(g, e.value), x = a.fullMonth(w, e.value), A = a.fullYear(g, e.value), $ = a.fullYear(w, e.value);
|
|
5264
5265
|
return A === $ ? `${S} - ${x} ${$}` : `${S} ${A} - ${x} ${$}`;
|
|
5265
|
-
}), m = O(() => `${t.calendarLabel.value ?? "Event Date"}, ${v.value}`), _ = O(() => !(u(t.placeholder.value) || d(t.placeholder.value) || o(t.placeholder.value))),
|
|
5266
|
-
for (const
|
|
5267
|
-
if (t.minValue.value && ta(
|
|
5268
|
-
const w = wt(
|
|
5266
|
+
}), m = O(() => `${t.calendarLabel.value ?? "Event Date"}, ${v.value}`), _ = O(() => !(u(t.placeholder.value) || d(t.placeholder.value) || o(t.placeholder.value))), h = O(() => {
|
|
5267
|
+
for (const g of r.value) {
|
|
5268
|
+
if (t.minValue.value && ta(g.value, t.minValue.value)) continue;
|
|
5269
|
+
const w = wt(g.value), S = t.minValue.value && Vn(t.minValue.value, g.value) ? t.minValue.value.day : 1;
|
|
5269
5270
|
for (let x = S; x <= w; x++) {
|
|
5270
|
-
const A =
|
|
5271
|
+
const A = g.value.set({ day: x });
|
|
5271
5272
|
if (!(u(A) || d(A)))
|
|
5272
5273
|
return A;
|
|
5273
5274
|
}
|
|
@@ -5288,7 +5289,7 @@ function cd(t) {
|
|
|
5288
5289
|
headingValue: v,
|
|
5289
5290
|
fullCalendarLabel: m,
|
|
5290
5291
|
isPlaceholderFocusable: _,
|
|
5291
|
-
firstFocusableDate:
|
|
5292
|
+
firstFocusableDate: h
|
|
5292
5293
|
};
|
|
5293
5294
|
}
|
|
5294
5295
|
const fd = { style: {
|
|
@@ -5431,7 +5432,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5431
5432
|
},
|
|
5432
5433
|
emits: ["update:modelValue", "update:placeholder"],
|
|
5433
5434
|
setup(t, { emit: a }) {
|
|
5434
|
-
const e = t, r = a, { disabled: n, readonly: o, initialFocus: i, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: f, minValue: c, maxValue: p, numberOfMonths: v, preventDeselect: m, isDateDisabled: _, isDateUnavailable:
|
|
5435
|
+
const e = t, r = a, { disabled: n, readonly: o, initialFocus: i, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: f, minValue: c, maxValue: p, numberOfMonths: v, preventDeselect: m, isDateDisabled: _, isDateUnavailable: h, calendarLabel: g, defaultValue: w, nextPage: S, prevPage: x, dir: A, locale: $, disableDaysOutsideCurrentView: T } = fe(e), { primitiveElement: I, currentElement: K } = Ft(), U = Qn($), F = $e(A), J = O(() => e.weekStartsOn ?? Zn(U.value)), L = /* @__PURE__ */ me(e, "modelValue", r, {
|
|
5435
5436
|
defaultValue: w.value,
|
|
5436
5437
|
passive: e.modelValue === void 0
|
|
5437
5438
|
}), X = Yn({
|
|
@@ -5442,8 +5443,8 @@ var yd = /* @__PURE__ */ q({
|
|
|
5442
5443
|
defaultValue: e.defaultPlaceholder ?? X.copy(),
|
|
5443
5444
|
passive: e.placeholder === void 0
|
|
5444
5445
|
});
|
|
5445
|
-
function Y(
|
|
5446
|
-
B.value =
|
|
5446
|
+
function Y(he) {
|
|
5447
|
+
B.value = he.copy();
|
|
5447
5448
|
}
|
|
5448
5449
|
const { fullCalendarLabel: Z, headingValue: oe, isDateDisabled: ve, isDateUnavailable: we, isNextButtonDisabled: de, isPrevButtonDisabled: De, weekdays: Re, isOutsideVisibleView: Me, nextPage: M, prevPage: G, formatter: N, grid: le, isPlaceholderFocusable: ce, firstFocusableDate: qe } = cd({
|
|
5449
5450
|
locale: U,
|
|
@@ -5457,8 +5458,8 @@ var yd = /* @__PURE__ */ q({
|
|
|
5457
5458
|
weekdayFormat: u,
|
|
5458
5459
|
pagedNavigation: s,
|
|
5459
5460
|
isDateDisabled: _.value,
|
|
5460
|
-
isDateUnavailable:
|
|
5461
|
-
calendarLabel:
|
|
5461
|
+
isDateUnavailable: h.value,
|
|
5462
|
+
calendarLabel: g,
|
|
5462
5463
|
nextPage: S,
|
|
5463
5464
|
prevPage: x
|
|
5464
5465
|
}), { isInvalid: Fe, isDateSelected: Ve, hasSelectedDate: Bt, isSelectedDateDisabled: tl } = ld({
|
|
@@ -5466,21 +5467,21 @@ var yd = /* @__PURE__ */ q({
|
|
|
5466
5467
|
isDateDisabled: ve,
|
|
5467
5468
|
isDateUnavailable: we
|
|
5468
5469
|
});
|
|
5469
|
-
Q(L, (
|
|
5470
|
-
if (Array.isArray(
|
|
5471
|
-
const $t =
|
|
5470
|
+
Q(L, (he) => {
|
|
5471
|
+
if (Array.isArray(he) && he.length) {
|
|
5472
|
+
const $t = he.at(-1);
|
|
5472
5473
|
$t && !It(B.value, $t) && Y($t);
|
|
5473
|
-
} else !Array.isArray(
|
|
5474
|
+
} else !Array.isArray(he) && he && !It(B.value, he) && Y(he);
|
|
5474
5475
|
});
|
|
5475
|
-
function al(
|
|
5476
|
+
function al(he) {
|
|
5476
5477
|
if (f.value) {
|
|
5477
|
-
if (!L.value) L.value = [
|
|
5478
|
+
if (!L.value) L.value = [he.copy()];
|
|
5478
5479
|
else if (Array.isArray(L.value)) {
|
|
5479
|
-
if (L.value.findIndex((Qt) => Ct(Qt,
|
|
5480
|
+
if (L.value.findIndex((Qt) => Ct(Qt, he)) === -1) L.value = [...L.value, he];
|
|
5480
5481
|
else if (!m.value) {
|
|
5481
|
-
const Qt = L.value.filter((Ka) => !Ct(Ka,
|
|
5482
|
+
const Qt = L.value.filter((Ka) => !Ct(Ka, he));
|
|
5482
5483
|
if (!Qt.length) {
|
|
5483
|
-
B.value =
|
|
5484
|
+
B.value = he.copy(), L.value = void 0;
|
|
5484
5485
|
return;
|
|
5485
5486
|
}
|
|
5486
5487
|
L.value = Qt.map((Ka) => Ka.copy());
|
|
@@ -5488,13 +5489,13 @@ var yd = /* @__PURE__ */ q({
|
|
|
5488
5489
|
}
|
|
5489
5490
|
} else {
|
|
5490
5491
|
if (!L.value) {
|
|
5491
|
-
L.value =
|
|
5492
|
+
L.value = he.copy();
|
|
5492
5493
|
return;
|
|
5493
5494
|
}
|
|
5494
|
-
!m.value && It(L.value,
|
|
5495
|
+
!m.value && It(L.value, he) ? (B.value = he.copy(), L.value = void 0) : L.value = he.copy();
|
|
5495
5496
|
}
|
|
5496
5497
|
}
|
|
5497
|
-
return
|
|
5498
|
+
return ge(() => {
|
|
5498
5499
|
i.value && Xn(K.value);
|
|
5499
5500
|
}), vd({
|
|
5500
5501
|
isDateUnavailable: we,
|
|
@@ -5535,18 +5536,18 @@ var yd = /* @__PURE__ */ q({
|
|
|
5535
5536
|
firstFocusableDate: qe,
|
|
5536
5537
|
hasSelectedDate: Bt,
|
|
5537
5538
|
isSelectedDateDisabled: tl
|
|
5538
|
-
}), (
|
|
5539
|
+
}), (he, $t) => (y(), C(l(H), {
|
|
5539
5540
|
ref_key: "primitiveElement",
|
|
5540
5541
|
ref: I,
|
|
5541
|
-
as:
|
|
5542
|
-
"as-child":
|
|
5542
|
+
as: he.as,
|
|
5543
|
+
"as-child": he.asChild,
|
|
5543
5544
|
"aria-label": l(Z),
|
|
5544
5545
|
"data-readonly": l(o) ? "" : void 0,
|
|
5545
5546
|
"data-disabled": l(n) ? "" : void 0,
|
|
5546
5547
|
"data-invalid": l(Fe) ? "" : void 0,
|
|
5547
5548
|
dir: l(F)
|
|
5548
5549
|
}, {
|
|
5549
|
-
default: b(() => [k(
|
|
5550
|
+
default: b(() => [k(he.$slots, "default", {
|
|
5550
5551
|
date: l(B),
|
|
5551
5552
|
grid: l(le),
|
|
5552
5553
|
weekDays: l(Re),
|
|
@@ -5566,7 +5567,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5566
5567
|
"dir"
|
|
5567
5568
|
]));
|
|
5568
5569
|
}
|
|
5569
|
-
}), md = yd,
|
|
5570
|
+
}), md = yd, gd = /* @__PURE__ */ q({
|
|
5570
5571
|
__name: "CalendarCell",
|
|
5571
5572
|
props: {
|
|
5572
5573
|
date: {
|
|
@@ -5603,7 +5604,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5603
5604
|
"data-disabled"
|
|
5604
5605
|
]));
|
|
5605
5606
|
}
|
|
5606
|
-
}),
|
|
5607
|
+
}), hd = gd, bd = /* @__PURE__ */ q({
|
|
5607
5608
|
__name: "CalendarCellTrigger",
|
|
5608
5609
|
props: {
|
|
5609
5610
|
day: {
|
|
@@ -5631,17 +5632,17 @@ var yd = /* @__PURE__ */ q({
|
|
|
5631
5632
|
day: "numeric",
|
|
5632
5633
|
year: "numeric"
|
|
5633
5634
|
})), s = O(() => r.isDateUnavailable?.(a.day) ?? !1), u = O(() => Dl(a.day, _r())), d = O(() => !Vn(a.day, a.month)), f = O(() => r.isOutsideVisibleView(a.day)), c = O(() => r.isDateDisabled(a.day) || r.disableDaysOutsideCurrentView.value && d.value), p = O(() => d.value || c.value ? !1 : !r.disabled.value && r.isPlaceholderFocusable.value && Ct(a.day, r.placeholder.value) ? !0 : (!r.hasSelectedDate.value || r.isSelectedDateDisabled.value) && !r.isPlaceholderFocusable.value ? r.firstFocusableDate.value && Ct(a.day, r.firstFocusableDate.value) : !1), v = O(() => r.isDateSelected(a.day));
|
|
5634
|
-
function m(
|
|
5635
|
-
r.readonly.value || r.isDateDisabled(
|
|
5635
|
+
function m(g) {
|
|
5636
|
+
r.readonly.value || r.isDateDisabled(g) || r.isDateUnavailable?.(g) || r.onDateChange(g);
|
|
5636
5637
|
}
|
|
5637
5638
|
function _() {
|
|
5638
5639
|
c.value || m(a.day);
|
|
5639
5640
|
}
|
|
5640
|
-
function g
|
|
5641
|
-
if (c.value || (
|
|
5642
|
-
|
|
5641
|
+
function h(g) {
|
|
5642
|
+
if (c.value || (g.code === e.ENTER || g.code === e.SPACE_CODE) && (g.ctrlKey || g.metaKey || g.altKey)) return;
|
|
5643
|
+
g.preventDefault(), g.stopPropagation();
|
|
5643
5644
|
const w = r.parentElement.value, S = 7, x = r.dir.value === "rtl" ? -1 : 1;
|
|
5644
|
-
switch (
|
|
5645
|
+
switch (g.code) {
|
|
5645
5646
|
case e.ARROW_RIGHT:
|
|
5646
5647
|
A(a.day, x);
|
|
5647
5648
|
break;
|
|
@@ -5679,7 +5680,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5679
5680
|
r.onPlaceholderChange(I), K?.focus();
|
|
5680
5681
|
}
|
|
5681
5682
|
}
|
|
5682
|
-
return (
|
|
5683
|
+
return (g, w) => (y(), C(l(H), {
|
|
5683
5684
|
ref_key: "primitiveElement",
|
|
5684
5685
|
ref: n,
|
|
5685
5686
|
as: a.as,
|
|
@@ -5689,7 +5690,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5689
5690
|
"data-reka-calendar-cell-trigger": "",
|
|
5690
5691
|
"aria-disabled": c.value || s.value ? !0 : void 0,
|
|
5691
5692
|
"data-selected": v.value ? !0 : void 0,
|
|
5692
|
-
"data-value":
|
|
5693
|
+
"data-value": g.day.toString(),
|
|
5693
5694
|
"data-disabled": c.value ? "" : void 0,
|
|
5694
5695
|
"data-unavailable": s.value ? "" : void 0,
|
|
5695
5696
|
"data-today": u.value ? "" : void 0,
|
|
@@ -5698,7 +5699,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5698
5699
|
"data-focused": p.value ? "" : void 0,
|
|
5699
5700
|
tabindex: p.value ? 0 : d.value || c.value ? void 0 : -1,
|
|
5700
5701
|
onClick: _,
|
|
5701
|
-
onKeydown: Se(
|
|
5702
|
+
onKeydown: Se(h, [
|
|
5702
5703
|
"up",
|
|
5703
5704
|
"down",
|
|
5704
5705
|
"left",
|
|
@@ -5707,7 +5708,7 @@ var yd = /* @__PURE__ */ q({
|
|
|
5707
5708
|
"enter"
|
|
5708
5709
|
])
|
|
5709
5710
|
}, {
|
|
5710
|
-
default: b(() => [k(
|
|
5711
|
+
default: b(() => [k(g.$slots, "default", {
|
|
5711
5712
|
dayValue: o.value,
|
|
5712
5713
|
disabled: c.value,
|
|
5713
5714
|
today: u.value,
|
|
@@ -6018,11 +6019,11 @@ var Nd = /* @__PURE__ */ q({
|
|
|
6018
6019
|
defaultValue: r.defaultCurrentTabStopId,
|
|
6019
6020
|
passive: r.currentTabStopId === void 0
|
|
6020
6021
|
}), f = E(!1), c = E(!1), p = E(0), { getItems: v, CollectionSlot: m } = Ie({ isProvider: !0 });
|
|
6021
|
-
function _(
|
|
6022
|
+
function _(g) {
|
|
6022
6023
|
const w = !c.value;
|
|
6023
|
-
if (
|
|
6024
|
+
if (g.currentTarget && g.target === g.currentTarget && w && !f.value) {
|
|
6024
6025
|
const S = new CustomEvent(Ys, Xs);
|
|
6025
|
-
if (
|
|
6026
|
+
if (g.currentTarget.dispatchEvent(S), n("entryFocus", S), !S.defaultPrevented) {
|
|
6026
6027
|
const x = v().map((K) => K.ref).filter((K) => K.dataset.disabled !== ""), A = x.find((K) => K.getAttribute("data-active") === ""), $ = x.find((K) => K.getAttribute("data-highlighted") === ""), T = x.find((K) => K.id === d.value), I = [
|
|
6027
6028
|
A,
|
|
6028
6029
|
$,
|
|
@@ -6034,7 +6035,7 @@ var Nd = /* @__PURE__ */ q({
|
|
|
6034
6035
|
}
|
|
6035
6036
|
c.value = !1;
|
|
6036
6037
|
}
|
|
6037
|
-
function
|
|
6038
|
+
function h() {
|
|
6038
6039
|
setTimeout(() => {
|
|
6039
6040
|
c.value = !1;
|
|
6040
6041
|
}, 1);
|
|
@@ -6044,8 +6045,8 @@ var Nd = /* @__PURE__ */ q({
|
|
|
6044
6045
|
dir: u,
|
|
6045
6046
|
orientation: i,
|
|
6046
6047
|
currentTabStopId: d,
|
|
6047
|
-
onItemFocus: (
|
|
6048
|
-
d.value =
|
|
6048
|
+
onItemFocus: (g) => {
|
|
6049
|
+
d.value = g;
|
|
6049
6050
|
},
|
|
6050
6051
|
onItemShiftTab: () => {
|
|
6051
6052
|
f.value = !0;
|
|
@@ -6056,20 +6057,20 @@ var Nd = /* @__PURE__ */ q({
|
|
|
6056
6057
|
onFocusableItemRemove: () => {
|
|
6057
6058
|
p.value--;
|
|
6058
6059
|
}
|
|
6059
|
-
}), (
|
|
6060
|
+
}), (g, w) => (y(), C(l(m), null, {
|
|
6060
6061
|
default: b(() => [P(l(H), {
|
|
6061
6062
|
tabindex: f.value || p.value === 0 ? -1 : 0,
|
|
6062
6063
|
"data-orientation": l(i),
|
|
6063
|
-
as:
|
|
6064
|
-
"as-child":
|
|
6064
|
+
as: g.as,
|
|
6065
|
+
"as-child": g.asChild,
|
|
6065
6066
|
dir: l(u),
|
|
6066
6067
|
style: { outline: "none" },
|
|
6067
6068
|
onMousedown: w[0] || (w[0] = (S) => c.value = !0),
|
|
6068
|
-
onMouseup:
|
|
6069
|
+
onMouseup: h,
|
|
6069
6070
|
onFocus: _,
|
|
6070
6071
|
onBlur: w[1] || (w[1] = (S) => f.value = !1)
|
|
6071
6072
|
}, {
|
|
6072
|
-
default: b(() => [k(
|
|
6073
|
+
default: b(() => [k(g.$slots, "default")]),
|
|
6073
6074
|
_: 3
|
|
6074
6075
|
}, 8, [
|
|
6075
6076
|
"tabindex",
|
|
@@ -6113,7 +6114,7 @@ var Nd = /* @__PURE__ */ q({
|
|
|
6113
6114
|
},
|
|
6114
6115
|
setup(t) {
|
|
6115
6116
|
const a = t, e = Vd(), r = Ce(), n = O(() => a.tabStopId || r), o = O(() => e.currentTabStopId.value === n.value), { getItems: i, CollectionItem: s } = Ie();
|
|
6116
|
-
|
|
6117
|
+
ge(() => {
|
|
6117
6118
|
a.focusable && e.onFocusableItemAdd();
|
|
6118
6119
|
}), He(() => {
|
|
6119
6120
|
a.focusable && e.onFocusableItemRemove();
|
|
@@ -6240,12 +6241,12 @@ var Hd = /* @__PURE__ */ q({
|
|
|
6240
6241
|
if (St(i?.modelValue.value))
|
|
6241
6242
|
s.value === "indeterminate" ? s.value = e.trueValue : s.value = d.value ? e.falseValue : e.trueValue;
|
|
6242
6243
|
else {
|
|
6243
|
-
const
|
|
6244
|
-
if (nr(
|
|
6245
|
-
const
|
|
6246
|
-
|
|
6247
|
-
} else
|
|
6248
|
-
i.modelValue.value =
|
|
6244
|
+
const h = [...i.modelValue.value || []];
|
|
6245
|
+
if (nr(h, e.value)) {
|
|
6246
|
+
const g = h.findIndex((w) => ze(w, e.value));
|
|
6247
|
+
h.splice(g, 1);
|
|
6248
|
+
} else h.push(e.value);
|
|
6249
|
+
i.modelValue.value = h;
|
|
6249
6250
|
}
|
|
6250
6251
|
}
|
|
6251
6252
|
const p = Ut(o), v = xa(), m = fl(), _ = O(() => {
|
|
@@ -6255,19 +6256,19 @@ var Hd = /* @__PURE__ */ q({
|
|
|
6255
6256
|
return jd({
|
|
6256
6257
|
disabled: u,
|
|
6257
6258
|
state: f
|
|
6258
|
-
}), (
|
|
6259
|
-
...
|
|
6259
|
+
}), (h, g) => (y(), D(ee, null, [(y(), C(Ue(l(i)?.rovingFocus.value ? l(Ra) : l(H)), j({
|
|
6260
|
+
...h.$attrs,
|
|
6260
6261
|
...l(v)
|
|
6261
6262
|
}, {
|
|
6262
|
-
id:
|
|
6263
|
+
id: h.id,
|
|
6263
6264
|
ref: l(n),
|
|
6264
6265
|
role: "checkbox",
|
|
6265
|
-
"as-child":
|
|
6266
|
-
as:
|
|
6267
|
-
type:
|
|
6266
|
+
"as-child": h.asChild,
|
|
6267
|
+
as: h.as,
|
|
6268
|
+
type: h.as === "button" ? "button" : void 0,
|
|
6268
6269
|
"aria-checked": l(Fr)(f.value) ? "mixed" : f.value,
|
|
6269
|
-
"aria-required":
|
|
6270
|
-
"aria-label":
|
|
6270
|
+
"aria-required": h.required,
|
|
6271
|
+
"aria-label": h.$attrs["aria-label"] || _.value,
|
|
6271
6272
|
"data-state": l(Po)(f.value),
|
|
6272
6273
|
"data-disabled": u.value ? "" : void 0,
|
|
6273
6274
|
disabled: u.value,
|
|
@@ -6276,7 +6277,7 @@ var Hd = /* @__PURE__ */ q({
|
|
|
6276
6277
|
}, ["prevent"]), ["enter"]),
|
|
6277
6278
|
onClick: c
|
|
6278
6279
|
}), {
|
|
6279
|
-
default: b(() => [k(
|
|
6280
|
+
default: b(() => [k(h.$slots, "default", {
|
|
6280
6281
|
modelValue: l(s),
|
|
6281
6282
|
state: f.value
|
|
6282
6283
|
})]),
|
|
@@ -6294,14 +6295,14 @@ var Hd = /* @__PURE__ */ q({
|
|
|
6294
6295
|
"disabled",
|
|
6295
6296
|
"focusable",
|
|
6296
6297
|
"onKeydown"
|
|
6297
|
-
])), l(p) &&
|
|
6298
|
+
])), l(p) && h.name && !l(i) ? (y(), C(l(Oa), j({
|
|
6298
6299
|
key: 0,
|
|
6299
6300
|
type: "checkbox",
|
|
6300
6301
|
checked: !!f.value,
|
|
6301
|
-
name:
|
|
6302
|
-
value:
|
|
6302
|
+
name: h.name,
|
|
6303
|
+
value: h.value,
|
|
6303
6304
|
disabled: u.value,
|
|
6304
|
-
required:
|
|
6305
|
+
required: h.required
|
|
6305
6306
|
}, l(v)), null, 16, [
|
|
6306
6307
|
"checked",
|
|
6307
6308
|
"name",
|
|
@@ -6375,7 +6376,7 @@ var Hd = /* @__PURE__ */ q({
|
|
|
6375
6376
|
}), Vr = Xd;
|
|
6376
6377
|
function Zd() {
|
|
6377
6378
|
const t = E(!1);
|
|
6378
|
-
return
|
|
6379
|
+
return ge(() => {
|
|
6379
6380
|
Qe("keydown", () => {
|
|
6380
6381
|
t.value = !0;
|
|
6381
6382
|
}, {
|
|
@@ -6551,7 +6552,7 @@ var ac = /* @__PURE__ */ q({
|
|
|
6551
6552
|
setup(t, { emit: a }) {
|
|
6552
6553
|
const e = t, r = a, n = mt(), o = Zt(), { trapFocus: i, disableOutsidePointerEvents: s, loop: u } = fe(e);
|
|
6553
6554
|
Or(), wa(s.value);
|
|
6554
|
-
const d = E(""), f = E(0), c = E(0), p = E(null), v = E("right"), m = E(0), _ = E(null),
|
|
6555
|
+
const d = E(""), f = E(0), c = E(0), p = E(null), v = E("right"), m = E(0), _ = E(null), h = E(), { forwardRef: g, currentElement: w } = V(), { handleTypeaheadSearch: S } = qa(), x = E();
|
|
6555
6556
|
function A(B) {
|
|
6556
6557
|
const Y = or(B, x.value || ye(), w.value, {
|
|
6557
6558
|
loop: u.value,
|
|
@@ -6593,7 +6594,7 @@ var ac = /* @__PURE__ */ q({
|
|
|
6593
6594
|
});
|
|
6594
6595
|
if (de) return de?.focus();
|
|
6595
6596
|
if (B.code === "Space") return;
|
|
6596
|
-
const De =
|
|
6597
|
+
const De = h.value?.getItems() ?? [];
|
|
6597
6598
|
if (Z && (B.key === "Tab" && o.modal.value && B.preventDefault(), !ve && we && !oe && S(B.key, De)), B.target !== w.value || !qs.includes(B.key)) return;
|
|
6598
6599
|
B.preventDefault();
|
|
6599
6600
|
const Re = [...De.map((Me) => Me.ref)];
|
|
@@ -6647,7 +6648,7 @@ var ac = /* @__PURE__ */ q({
|
|
|
6647
6648
|
}, {
|
|
6648
6649
|
default: b(() => [P(l(Ia), {
|
|
6649
6650
|
ref_key: "rovingFocusGroupRef",
|
|
6650
|
-
ref:
|
|
6651
|
+
ref: h,
|
|
6651
6652
|
"current-tab-stop-id": _.value,
|
|
6652
6653
|
"onUpdate:currentTabStopId": Y[0] || (Y[0] = (Z) => _.value = Z),
|
|
6653
6654
|
"as-child": "",
|
|
@@ -6659,7 +6660,7 @@ var ac = /* @__PURE__ */ q({
|
|
|
6659
6660
|
})
|
|
6660
6661
|
}, {
|
|
6661
6662
|
default: b(() => [P(l($a), {
|
|
6662
|
-
ref: l(
|
|
6663
|
+
ref: l(g),
|
|
6663
6664
|
role: "menu",
|
|
6664
6665
|
as: B.as,
|
|
6665
6666
|
"as-child": B.asChild,
|
|
@@ -7294,7 +7295,7 @@ var ic = /* @__PURE__ */ q({
|
|
|
7294
7295
|
_: 3
|
|
7295
7296
|
}, 16));
|
|
7296
7297
|
}
|
|
7297
|
-
}), Bo = mc,
|
|
7298
|
+
}), Bo = mc, gc = /* @__PURE__ */ q({
|
|
7298
7299
|
__name: "MenuSeparator",
|
|
7299
7300
|
props: {
|
|
7300
7301
|
asChild: {
|
|
@@ -7316,8 +7317,8 @@ var ic = /* @__PURE__ */ q({
|
|
|
7316
7317
|
_: 3
|
|
7317
7318
|
}, 16));
|
|
7318
7319
|
}
|
|
7319
|
-
}), $o =
|
|
7320
|
-
const [Io,
|
|
7320
|
+
}), $o = gc;
|
|
7321
|
+
const [Io, hc] = /* @__PURE__ */ ie("MenuSub");
|
|
7321
7322
|
var bc = /* @__PURE__ */ q({
|
|
7322
7323
|
__name: "MenuSub",
|
|
7323
7324
|
props: { open: {
|
|
@@ -7342,7 +7343,7 @@ var bc = /* @__PURE__ */ q({
|
|
|
7342
7343
|
onContentChange: (u) => {
|
|
7343
7344
|
s.value = u;
|
|
7344
7345
|
}
|
|
7345
|
-
}),
|
|
7346
|
+
}), hc({
|
|
7346
7347
|
triggerId: "",
|
|
7347
7348
|
contentId: "",
|
|
7348
7349
|
trigger: i,
|
|
@@ -7538,7 +7539,7 @@ var bc = /* @__PURE__ */ q({
|
|
|
7538
7539
|
s();
|
|
7539
7540
|
const p = e.content.value?.getBoundingClientRect();
|
|
7540
7541
|
if (p?.width) {
|
|
7541
|
-
const v = e.content.value?.dataset.side, m = v === "right", _ = m ? -5 : 5,
|
|
7542
|
+
const v = e.content.value?.dataset.side, m = v === "right", _ = m ? -5 : 5, h = p[m ? "left" : "right"], g = p[m ? "right" : "left"];
|
|
7542
7543
|
o.onPointerGraceIntentChange({
|
|
7543
7544
|
area: [
|
|
7544
7545
|
{
|
|
@@ -7546,19 +7547,19 @@ var bc = /* @__PURE__ */ q({
|
|
|
7546
7547
|
y: c.clientY
|
|
7547
7548
|
},
|
|
7548
7549
|
{
|
|
7549
|
-
x:
|
|
7550
|
+
x: h,
|
|
7550
7551
|
y: p.top
|
|
7551
7552
|
},
|
|
7552
7553
|
{
|
|
7553
|
-
x:
|
|
7554
|
+
x: g,
|
|
7554
7555
|
y: p.top
|
|
7555
7556
|
},
|
|
7556
7557
|
{
|
|
7557
|
-
x:
|
|
7558
|
+
x: g,
|
|
7558
7559
|
y: p.bottom
|
|
7559
7560
|
},
|
|
7560
7561
|
{
|
|
7561
|
-
x:
|
|
7562
|
+
x: h,
|
|
7562
7563
|
y: p.bottom
|
|
7563
7564
|
}
|
|
7564
7565
|
],
|
|
@@ -8123,7 +8124,7 @@ var jc = /* @__PURE__ */ q({
|
|
|
8123
8124
|
async function v(m) {
|
|
8124
8125
|
e.value || (await se(), mn(m) && !m.defaultPrevented && d());
|
|
8125
8126
|
}
|
|
8126
|
-
return
|
|
8127
|
+
return ge(() => {
|
|
8127
8128
|
n.value && (o.triggerElement.value = n.value);
|
|
8128
8129
|
}), (m, _) => (y(), D(ee, null, [P(l(Vr), {
|
|
8129
8130
|
as: "template",
|
|
@@ -8350,7 +8351,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
8350
8351
|
"update:placeholder"
|
|
8351
8352
|
],
|
|
8352
8353
|
setup(t, { emit: a }) {
|
|
8353
|
-
const e = t, r = a, { locale: n, disabled: o, readonly: i, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: f, preventDeselect: c, isDateDisabled: p, isDateUnavailable: v, defaultOpen: m, modal: _, id:
|
|
8354
|
+
const e = t, r = a, { locale: n, disabled: o, readonly: i, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: f, preventDeselect: c, isDateDisabled: p, isDateUnavailable: v, defaultOpen: m, modal: _, id: h, name: g, required: w, minValue: S, maxValue: x, granularity: A, hideTimeZone: $, hourCycle: T, defaultValue: I, dir: K, step: U, closeOnSelect: F } = fe(e), J = $e(K), L = Qn(n), X = O(() => e.weekStartsOn ?? Zn(L.value)), B = /* @__PURE__ */ me(e, "modelValue", r, {
|
|
8354
8355
|
defaultValue: I.value,
|
|
8355
8356
|
passive: e.modelValue === void 0
|
|
8356
8357
|
}), Y = O(() => Yn({
|
|
@@ -8392,8 +8393,8 @@ var Xc = /* @__PURE__ */ q({
|
|
|
8392
8393
|
defaultOpen: m,
|
|
8393
8394
|
modal: _,
|
|
8394
8395
|
open: oe,
|
|
8395
|
-
id:
|
|
8396
|
-
name:
|
|
8396
|
+
id: h,
|
|
8397
|
+
name: g,
|
|
8397
8398
|
required: w,
|
|
8398
8399
|
minValue: S,
|
|
8399
8400
|
maxValue: x,
|
|
@@ -8483,7 +8484,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
8483
8484
|
},
|
|
8484
8485
|
setup(t) {
|
|
8485
8486
|
const a = t;
|
|
8486
|
-
return (e, r) => (y(), C(l(
|
|
8487
|
+
return (e, r) => (y(), C(l(hd), te(re(a)), {
|
|
8487
8488
|
default: b(() => [k(e.$slots, "default")]),
|
|
8488
8489
|
_: 3
|
|
8489
8490
|
}, 16));
|
|
@@ -9232,7 +9233,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
9232
9233
|
_: 3
|
|
9233
9234
|
}, 16));
|
|
9234
9235
|
}
|
|
9235
|
-
}),
|
|
9236
|
+
}), gf = mf, hf = /* @__PURE__ */ q({
|
|
9236
9237
|
__name: "DatePickerGridHead",
|
|
9237
9238
|
props: {
|
|
9238
9239
|
asChild: {
|
|
@@ -9251,7 +9252,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
9251
9252
|
_: 3
|
|
9252
9253
|
}, 16));
|
|
9253
9254
|
}
|
|
9254
|
-
}), bf =
|
|
9255
|
+
}), bf = hf, _f = /* @__PURE__ */ q({
|
|
9255
9256
|
__name: "DatePickerGridRow",
|
|
9256
9257
|
props: {
|
|
9257
9258
|
asChild: {
|
|
@@ -9270,7 +9271,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
9270
9271
|
_: 3
|
|
9271
9272
|
}, 16));
|
|
9272
9273
|
}
|
|
9273
|
-
}),
|
|
9274
|
+
}), gn = _f, wf = /* @__PURE__ */ q({
|
|
9274
9275
|
__name: "DatePickerHeadCell",
|
|
9275
9276
|
props: {
|
|
9276
9277
|
asChild: {
|
|
@@ -9388,7 +9389,7 @@ var Xc = /* @__PURE__ */ q({
|
|
|
9388
9389
|
},
|
|
9389
9390
|
setup(t) {
|
|
9390
9391
|
const a = t, e = Jt(), { forwardRef: r, currentElement: n } = V();
|
|
9391
|
-
return e.triggerId ||= Ce(void 0, "reka-popover-trigger"), e.contentId ||= Ce(void 0, "reka-popover-content"),
|
|
9392
|
+
return e.triggerId ||= Ce(void 0, "reka-popover-trigger"), e.contentId ||= Ce(void 0, "reka-popover-content"), ge(() => {
|
|
9392
9393
|
e.triggerElement.value = n.value;
|
|
9393
9394
|
}), (o, i) => (y(), C(Ue(l(e).hasCustomAnchor.value ? l(H) : l(Pa)), { "as-child": "" }, {
|
|
9394
9395
|
default: b(() => [P(l(H), {
|
|
@@ -9730,7 +9731,7 @@ var If = /* @__PURE__ */ q({
|
|
|
9730
9731
|
},
|
|
9731
9732
|
setup(t) {
|
|
9732
9733
|
const a = t, e = Wo(), { forwardRef: r, currentElement: n } = V();
|
|
9733
|
-
return
|
|
9734
|
+
return ge(() => {
|
|
9734
9735
|
e.triggerElement = n;
|
|
9735
9736
|
}), e.triggerId ||= Ce(void 0, "reka-dropdown-menu-trigger"), (o, i) => (y(), C(l(Vr), { "as-child": "" }, {
|
|
9736
9737
|
default: b(() => [P(l(H), {
|
|
@@ -9949,7 +9950,7 @@ var Qf = /* @__PURE__ */ q({
|
|
|
9949
9950
|
orientation: d,
|
|
9950
9951
|
name: f?.value,
|
|
9951
9952
|
required: c
|
|
9952
|
-
}), (_,
|
|
9953
|
+
}), (_, h) => (y(), C(l(Ia), {
|
|
9953
9954
|
"as-child": "",
|
|
9954
9955
|
orientation: l(d),
|
|
9955
9956
|
dir: l(v),
|
|
@@ -10070,8 +10071,8 @@ var rp = /* @__PURE__ */ q({
|
|
|
10070
10071
|
checked: d.value,
|
|
10071
10072
|
required: u.value,
|
|
10072
10073
|
disabled: s.value,
|
|
10073
|
-
"onUpdate:checked": _[0] || (_[0] = (
|
|
10074
|
-
onSelect: _[1] || (_[1] = (
|
|
10074
|
+
"onUpdate:checked": _[0] || (_[0] = (h) => l(i).changeModelValue(m.value)),
|
|
10075
|
+
onSelect: _[1] || (_[1] = (h) => r("select", h)),
|
|
10075
10076
|
onKeydown: _[2] || (_[2] = Se(ne(() => {
|
|
10076
10077
|
}, ["prevent"]), ["enter"])),
|
|
10077
10078
|
onFocus: p
|
|
@@ -10220,7 +10221,7 @@ var cp = /* @__PURE__ */ q({
|
|
|
10220
10221
|
y: 0
|
|
10221
10222
|
}), v = O(() => i.value && Array.isArray(u.value) ? u.value?.length === 0 : St(u.value));
|
|
10222
10223
|
Ie({ isProvider: !0 });
|
|
10223
|
-
const m = $e(s), _ = Ut(f),
|
|
10224
|
+
const m = $e(s), _ = Ut(f), h = E(/* @__PURE__ */ new Set()), g = O(() => Array.from(h.value).map((x) => x.value).join(";"));
|
|
10224
10225
|
function w(x) {
|
|
10225
10226
|
if (i.value) {
|
|
10226
10227
|
const A = Array.isArray(u.value) ? [...u.value] : [], $ = A.findIndex((T) => yr(T, x, e.by));
|
|
@@ -10228,7 +10229,7 @@ var cp = /* @__PURE__ */ q({
|
|
|
10228
10229
|
} else u.value = x;
|
|
10229
10230
|
}
|
|
10230
10231
|
function S(x) {
|
|
10231
|
-
return Array.from(
|
|
10232
|
+
return Array.from(h.value).find((A) => Nt(x, A.value, e.by));
|
|
10232
10233
|
}
|
|
10233
10234
|
return jo({
|
|
10234
10235
|
triggerElement: f,
|
|
@@ -10253,21 +10254,21 @@ var cp = /* @__PURE__ */ q({
|
|
|
10253
10254
|
triggerPointerDownPosRef: p,
|
|
10254
10255
|
disabled: o,
|
|
10255
10256
|
isEmptyModelValue: v,
|
|
10256
|
-
optionsSet:
|
|
10257
|
+
optionsSet: h,
|
|
10257
10258
|
onOptionAdd: (x) => {
|
|
10258
10259
|
const A = S(x.value);
|
|
10259
|
-
A &&
|
|
10260
|
+
A && h.value.delete(A), h.value.add(x);
|
|
10260
10261
|
},
|
|
10261
10262
|
onOptionRemove: (x) => {
|
|
10262
10263
|
const A = S(x.value);
|
|
10263
|
-
A &&
|
|
10264
|
+
A && h.value.delete(A);
|
|
10264
10265
|
}
|
|
10265
10266
|
}), (x, A) => (y(), C(l(Xt), null, {
|
|
10266
10267
|
default: b(() => [k(x.$slots, "default", {
|
|
10267
10268
|
modelValue: l(u),
|
|
10268
10269
|
open: l(d)
|
|
10269
10270
|
}), l(_) && x.name ? (y(), C(vp, {
|
|
10270
|
-
key:
|
|
10271
|
+
key: g.value,
|
|
10271
10272
|
"aria-hidden": "true",
|
|
10272
10273
|
tabindex: "-1",
|
|
10273
10274
|
multiple: l(i),
|
|
@@ -10280,7 +10281,7 @@ var cp = /* @__PURE__ */ q({
|
|
|
10280
10281
|
default: b(() => [l(St)(l(u)) ? (y(), D("option", {
|
|
10281
10282
|
key: 0,
|
|
10282
10283
|
value: x.nullableValue
|
|
10283
|
-
}, null, 8, dp)) : R("v-if", !0), (y(!0), D(ee, null, pe(Array.from(
|
|
10284
|
+
}, null, 8, dp)) : R("v-if", !0), (y(!0), D(ee, null, pe(Array.from(h.value), ($) => (y(), D("option", j({ key: $.value ?? "" }, { ref_for: !0 }, $), null, 16))), 128))]),
|
|
10284
10285
|
_: 1
|
|
10285
10286
|
}, 8, [
|
|
10286
10287
|
"multiple",
|
|
@@ -10462,7 +10463,7 @@ var cp = /* @__PURE__ */ q({
|
|
|
10462
10463
|
}, 16));
|
|
10463
10464
|
}
|
|
10464
10465
|
}), mp = yp;
|
|
10465
|
-
const
|
|
10466
|
+
const gp = {
|
|
10466
10467
|
onViewportChange: () => {
|
|
10467
10468
|
},
|
|
10468
10469
|
itemTextRefCallback: () => {
|
|
@@ -10470,7 +10471,7 @@ const hp = {
|
|
|
10470
10471
|
itemRefCallback: () => {
|
|
10471
10472
|
}
|
|
10472
10473
|
}, [Fa, Ho] = /* @__PURE__ */ ie("SelectContent");
|
|
10473
|
-
var
|
|
10474
|
+
var hp = /* @__PURE__ */ q({
|
|
10474
10475
|
__name: "SelectContentImpl",
|
|
10475
10476
|
props: {
|
|
10476
10477
|
position: {
|
|
@@ -10588,12 +10589,12 @@ var gp = /* @__PURE__ */ q({
|
|
|
10588
10589
|
Or(), wa(e.bodyLock);
|
|
10589
10590
|
const { CollectionSlot: i, getItems: s } = Ie(), u = E();
|
|
10590
10591
|
Ca(u);
|
|
10591
|
-
const { search: d, handleTypeaheadSearch: f } = qa(), c = E(), p = E(), v = E(), m = E(!1), _ = E(!1),
|
|
10592
|
-
function
|
|
10592
|
+
const { search: d, handleTypeaheadSearch: f } = qa(), c = E(), p = E(), v = E(), m = E(!1), _ = E(!1), h = E(!1);
|
|
10593
|
+
function g() {
|
|
10593
10594
|
p.value && u.value && dr([p.value, u.value]);
|
|
10594
10595
|
}
|
|
10595
10596
|
Q(m, () => {
|
|
10596
|
-
(!o || o.canFocus()) &&
|
|
10597
|
+
(!o || o.canFocus()) && g();
|
|
10597
10598
|
});
|
|
10598
10599
|
const { onOpenChange: w, triggerPointerDownPosRef: S } = n;
|
|
10599
10600
|
Oe((T) => {
|
|
@@ -10647,8 +10648,8 @@ var gp = /* @__PURE__ */ q({
|
|
|
10647
10648
|
itemRefCallback: (T, I, K) => {
|
|
10648
10649
|
const U = !_.value && !K, F = Nt(n.modelValue.value, I, n.by);
|
|
10649
10650
|
if (n.multiple.value) {
|
|
10650
|
-
if (
|
|
10651
|
-
(F || U) && (p.value = T, F && (
|
|
10651
|
+
if (h.value) return;
|
|
10652
|
+
(F || U) && (p.value = T, F && (h.value = !0));
|
|
10652
10653
|
} else (F || U) && (p.value = T);
|
|
10653
10654
|
U && (_.value = !0);
|
|
10654
10655
|
},
|
|
@@ -10661,7 +10662,7 @@ var gp = /* @__PURE__ */ q({
|
|
|
10661
10662
|
const U = !_.value && !K;
|
|
10662
10663
|
(Nt(n.modelValue.value, I, n.by) || U) && (v.value = T);
|
|
10663
10664
|
},
|
|
10664
|
-
focusSelectedItem:
|
|
10665
|
+
focusSelectedItem: g,
|
|
10665
10666
|
position: e.position,
|
|
10666
10667
|
isPositioned: m,
|
|
10667
10668
|
searchRef: d
|
|
@@ -10721,7 +10722,7 @@ var gp = /* @__PURE__ */ q({
|
|
|
10721
10722
|
_: 3
|
|
10722
10723
|
}));
|
|
10723
10724
|
}
|
|
10724
|
-
}), bp =
|
|
10725
|
+
}), bp = hp;
|
|
10725
10726
|
const [_p, wp] = /* @__PURE__ */ ie("SelectItemAlignedPosition");
|
|
10726
10727
|
var xp = /* @__PURE__ */ q({
|
|
10727
10728
|
inheritAttrs: !1,
|
|
@@ -10739,7 +10740,7 @@ var xp = /* @__PURE__ */ q({
|
|
|
10739
10740
|
emits: ["placed"],
|
|
10740
10741
|
setup(t, { emit: a }) {
|
|
10741
10742
|
const e = t, r = a, { getItems: n } = Ie(), o = st(), i = Fa(), s = E(!1), u = E(!0), d = E(), { forwardRef: f, currentElement: c } = V(), { viewport: p, selectedItem: v, selectedItemText: m, focusSelectedItem: _ } = i;
|
|
10742
|
-
function
|
|
10743
|
+
function h() {
|
|
10743
10744
|
if (o.triggerElement.value && o.valueElement.value && d.value && c.value && p?.value && v?.value && m?.value) {
|
|
10744
10745
|
const S = o.triggerElement.value.getBoundingClientRect(), x = c.value.getBoundingClientRect(), A = o.valueElement.value.getBoundingClientRect(), $ = m.value.getBoundingClientRect();
|
|
10745
10746
|
if (o.dir.value !== "rtl") {
|
|
@@ -10764,15 +10765,15 @@ var xp = /* @__PURE__ */ q({
|
|
|
10764
10765
|
d.value.style.margin = `${Le}px 0`, d.value.style.minHeight = `${Y}px`, d.value.style.maxHeight = `${I}px`, r("placed"), requestAnimationFrame(() => s.value = !0);
|
|
10765
10766
|
}
|
|
10766
10767
|
}
|
|
10767
|
-
const
|
|
10768
|
-
|
|
10769
|
-
await se(),
|
|
10768
|
+
const g = E("");
|
|
10769
|
+
ge(async () => {
|
|
10770
|
+
await se(), h(), c.value && (g.value = window.getComputedStyle(c.value).zIndex);
|
|
10770
10771
|
});
|
|
10771
10772
|
function w(S) {
|
|
10772
|
-
S && u.value === !0 && (
|
|
10773
|
+
S && u.value === !0 && (h(), _?.(), u.value = !1);
|
|
10773
10774
|
}
|
|
10774
10775
|
return ei(o.triggerElement, () => {
|
|
10775
|
-
|
|
10776
|
+
h();
|
|
10776
10777
|
}), wp({
|
|
10777
10778
|
contentWrapper: d,
|
|
10778
10779
|
shouldExpandOnScrollRef: s,
|
|
@@ -10784,7 +10785,7 @@ var xp = /* @__PURE__ */ q({
|
|
|
10784
10785
|
display: "flex",
|
|
10785
10786
|
flexDirection: "column",
|
|
10786
10787
|
position: "fixed",
|
|
10787
|
-
zIndex:
|
|
10788
|
+
zIndex: g.value
|
|
10788
10789
|
})
|
|
10789
10790
|
}, [P(l(H), j({
|
|
10790
10791
|
ref: l(f),
|
|
@@ -10808,7 +10809,7 @@ var xp = /* @__PURE__ */ q({
|
|
|
10808
10809
|
required: !0
|
|
10809
10810
|
} },
|
|
10810
10811
|
setup(t) {
|
|
10811
|
-
return jo(t.context), Ho(
|
|
10812
|
+
return jo(t.context), Ho(gp), (e, r) => k(e.$slots, "default");
|
|
10812
10813
|
}
|
|
10813
10814
|
}), Sp = qp;
|
|
10814
10815
|
const kp = { key: 1 };
|
|
@@ -10928,7 +10929,7 @@ var Op = /* @__PURE__ */ q({
|
|
|
10928
10929
|
],
|
|
10929
10930
|
setup(t, { emit: a }) {
|
|
10930
10931
|
const e = t, n = Ae(e, a), o = st(), i = E();
|
|
10931
|
-
|
|
10932
|
+
ge(() => {
|
|
10932
10933
|
i.value = new DocumentFragment();
|
|
10933
10934
|
});
|
|
10934
10935
|
const s = E(), u = O(() => e.forceMount || o.open.value), d = E(u.value);
|
|
@@ -11017,12 +11018,12 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11017
11018
|
originalEvent: x,
|
|
11018
11019
|
value: e.value
|
|
11019
11020
|
};
|
|
11020
|
-
qt(m,
|
|
11021
|
+
qt(m, h, A);
|
|
11021
11022
|
}
|
|
11022
|
-
async function
|
|
11023
|
+
async function h(x) {
|
|
11023
11024
|
await se(), r("select", x), !x.defaultPrevented && (n.value || (o.onValueChange(e.value), o.multiple.value || o.onOpenChange(!1)));
|
|
11024
11025
|
}
|
|
11025
|
-
async function
|
|
11026
|
+
async function g(x) {
|
|
11026
11027
|
await se(), !x.defaultPrevented && (n.value ? i.onItemLeave?.() : x.currentTarget?.focus({ preventScroll: !0 }));
|
|
11027
11028
|
}
|
|
11028
11029
|
async function w(x) {
|
|
@@ -11032,7 +11033,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11032
11033
|
await se(), !(x.defaultPrevented || i.searchRef?.value !== "" && x.key === " ") && (sp.includes(x.key) && _(x), x.key === " " && x.preventDefault());
|
|
11033
11034
|
}
|
|
11034
11035
|
if (e.value === "") throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
11035
|
-
return
|
|
11036
|
+
return ge(() => {
|
|
11036
11037
|
u.value && i.itemRefCallback(u.value, e.value, e.disabled);
|
|
11037
11038
|
}), Ep({
|
|
11038
11039
|
value: e.value,
|
|
@@ -11063,7 +11064,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11063
11064
|
}),
|
|
11064
11065
|
onTouchend: A[3] || (A[3] = ne(() => {
|
|
11065
11066
|
}, ["prevent", "stop"])),
|
|
11066
|
-
onPointermove:
|
|
11067
|
+
onPointermove: g,
|
|
11067
11068
|
onPointerleave: w,
|
|
11068
11069
|
onKeydown: S
|
|
11069
11070
|
}, {
|
|
@@ -11126,7 +11127,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11126
11127
|
disabled: n.disabled.value,
|
|
11127
11128
|
textContent: i.value?.textContent ?? n.value?.toString() ?? ""
|
|
11128
11129
|
}));
|
|
11129
|
-
return
|
|
11130
|
+
return ge(() => {
|
|
11130
11131
|
i.value && (n.onItemTextChange(i.value), r.itemTextRefCallback(i.value, n.value, n.disabled.value), e.onOptionAdd(s.value));
|
|
11131
11132
|
}), He(() => {
|
|
11132
11133
|
e.onOptionRemove(s.value);
|
|
@@ -11191,42 +11192,42 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11191
11192
|
},
|
|
11192
11193
|
setup(t) {
|
|
11193
11194
|
const a = t, e = st(), { forwardRef: r, currentElement: n } = V(), o = O(() => e.disabled?.value || a.disabled);
|
|
11194
|
-
e.contentId ||= Ce(void 0, "reka-select-content"),
|
|
11195
|
+
e.contentId ||= Ce(void 0, "reka-select-content"), ge(() => {
|
|
11195
11196
|
e.onTriggerChange(n.value);
|
|
11196
11197
|
});
|
|
11197
11198
|
const { getItems: i } = Ie(), { search: s, handleTypeaheadSearch: u, resetTypeahead: d } = qa();
|
|
11198
11199
|
function f() {
|
|
11199
11200
|
o.value || (e.onOpenChange(!0), d());
|
|
11200
11201
|
}
|
|
11201
|
-
function c(
|
|
11202
|
+
function c(g) {
|
|
11202
11203
|
f(), e.triggerPointerDownPosRef.value = {
|
|
11203
|
-
x: Math.round(
|
|
11204
|
-
y: Math.round(
|
|
11204
|
+
x: Math.round(g.pageX),
|
|
11205
|
+
y: Math.round(g.pageY)
|
|
11205
11206
|
};
|
|
11206
11207
|
}
|
|
11207
|
-
function p(
|
|
11208
|
-
return
|
|
11208
|
+
function p(g) {
|
|
11209
|
+
return g.button === 0 && g.ctrlKey === !1;
|
|
11209
11210
|
}
|
|
11210
11211
|
let v = !1;
|
|
11211
|
-
function m(
|
|
11212
|
-
if (
|
|
11213
|
-
const w =
|
|
11214
|
-
w.hasPointerCapture(
|
|
11212
|
+
function m(g) {
|
|
11213
|
+
if (g.pointerType === "touch") return g.preventDefault();
|
|
11214
|
+
const w = g.target;
|
|
11215
|
+
w.hasPointerCapture(g.pointerId) && w.releasePointerCapture(g.pointerId), p(g) && (c(g), v = !0);
|
|
11215
11216
|
}
|
|
11216
|
-
function _(
|
|
11217
|
-
p(
|
|
11217
|
+
function _(g) {
|
|
11218
|
+
p(g) && g.preventDefault();
|
|
11218
11219
|
}
|
|
11219
|
-
function g
|
|
11220
|
-
v ||
|
|
11220
|
+
function h(g) {
|
|
11221
|
+
v || g.currentTarget?.focus(), v = !1;
|
|
11221
11222
|
}
|
|
11222
|
-
return (
|
|
11223
|
+
return (g, w) => (y(), C(l(Pa), {
|
|
11223
11224
|
"as-child": "",
|
|
11224
|
-
reference:
|
|
11225
|
+
reference: g.reference
|
|
11225
11226
|
}, {
|
|
11226
11227
|
default: b(() => [P(l(H), {
|
|
11227
11228
|
ref: l(r),
|
|
11228
11229
|
role: "combobox",
|
|
11229
|
-
type:
|
|
11230
|
+
type: g.as === "button" ? "button" : void 0,
|
|
11230
11231
|
"aria-controls": l(e).open.value ? l(e).contentId : void 0,
|
|
11231
11232
|
"aria-expanded": l(e).open.value || !1,
|
|
11232
11233
|
"aria-required": l(e).required?.value,
|
|
@@ -11236,9 +11237,9 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11236
11237
|
"data-state": l(e)?.open.value ? "open" : "closed",
|
|
11237
11238
|
"data-disabled": o.value ? "" : void 0,
|
|
11238
11239
|
"data-placeholder": l(up)(l(e).modelValue?.value) ? "" : void 0,
|
|
11239
|
-
"as-child":
|
|
11240
|
-
as:
|
|
11241
|
-
onClick:
|
|
11240
|
+
"as-child": g.asChild,
|
|
11241
|
+
as: g.as,
|
|
11242
|
+
onClick: h,
|
|
11242
11243
|
onPointerdown: m,
|
|
11243
11244
|
onMousedown: _,
|
|
11244
11245
|
onPointerup: w[0] || (w[0] = ne((S) => {
|
|
@@ -11249,7 +11250,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11249
11250
|
!(S.ctrlKey || S.altKey || S.metaKey) && S.key.length === 1 && x && S.key === " " || (l(u)(S.key, l(i)()), l(ip).includes(S.key) && (f(), S.preventDefault()));
|
|
11250
11251
|
})
|
|
11251
11252
|
}, {
|
|
11252
|
-
default: b(() => [k(
|
|
11253
|
+
default: b(() => [k(g.$slots, "default")]),
|
|
11253
11254
|
_: 3
|
|
11254
11255
|
}, 8, [
|
|
11255
11256
|
"type",
|
|
@@ -11287,7 +11288,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11287
11288
|
},
|
|
11288
11289
|
setup(t) {
|
|
11289
11290
|
const a = t, { forwardRef: e, currentElement: r } = V(), n = st();
|
|
11290
|
-
|
|
11291
|
+
ge(() => {
|
|
11291
11292
|
n.valueElement = r;
|
|
11292
11293
|
});
|
|
11293
11294
|
const o = O(() => {
|
|
@@ -11331,7 +11332,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11331
11332
|
},
|
|
11332
11333
|
setup(t) {
|
|
11333
11334
|
const a = t, { nonce: e } = fe(a), r = od(e), n = Fa(), o = n.position === "item-aligned" ? _p() : void 0, { forwardRef: i, currentElement: s } = V();
|
|
11334
|
-
|
|
11335
|
+
ge(() => {
|
|
11335
11336
|
n?.onViewportChange(s.value);
|
|
11336
11337
|
});
|
|
11337
11338
|
const u = E(0);
|
|
@@ -11340,7 +11341,7 @@ var Tp = /* @__PURE__ */ q({
|
|
|
11340
11341
|
if (p?.value && v?.value) {
|
|
11341
11342
|
const m = Math.abs(u.value - c.scrollTop);
|
|
11342
11343
|
if (m > 0) {
|
|
11343
|
-
const _ = window.innerHeight - Le * 2,
|
|
11344
|
+
const _ = window.innerHeight - Le * 2, h = Number.parseFloat(v.value.style.minHeight), g = Number.parseFloat(v.value.style.height), w = Math.max(h, g);
|
|
11344
11345
|
if (w < _) {
|
|
11345
11346
|
const S = w + m, x = Math.min(_, S), A = S - x;
|
|
11346
11347
|
v.value.style.height = `${x}px`, v.value.style.bottom === "0px" && (c.scrollTop = A > 0 ? A : 0, v.value.style.justifyContent = "flex-end");
|
|
@@ -11642,11 +11643,11 @@ var tv = /* @__PURE__ */ q({
|
|
|
11642
11643
|
},
|
|
11643
11644
|
setup(t) {
|
|
11644
11645
|
const a = t, { forwardRef: e } = V(), r = Kr(), n = O(() => Go(r.baseId, a.value)), o = O(() => Yo(r.baseId, a.value)), i = O(() => a.value === r.modelValue.value), s = E(i.value);
|
|
11645
|
-
return
|
|
11646
|
+
return ge(() => {
|
|
11646
11647
|
r.registerContent(a.value), requestAnimationFrame(() => {
|
|
11647
11648
|
s.value = !1;
|
|
11648
11649
|
});
|
|
11649
|
-
}),
|
|
11650
|
+
}), ha(() => {
|
|
11650
11651
|
r.unregisterContent(a.value);
|
|
11651
11652
|
}), (u, d) => (y(), C(l(Ee), {
|
|
11652
11653
|
present: u.forceMount || i.value,
|
|
@@ -11894,7 +11895,7 @@ var dv = /* @__PURE__ */ q({
|
|
|
11894
11895
|
o = requestAnimationFrame(() => {
|
|
11895
11896
|
r.value = !0;
|
|
11896
11897
|
});
|
|
11897
|
-
}),
|
|
11898
|
+
}), hr(() => {
|
|
11898
11899
|
cancelAnimationFrame(n), cancelAnimationFrame(o);
|
|
11899
11900
|
})), (i, s) => l(e) || r.value ? (y(), C(l(Yt), {
|
|
11900
11901
|
key: 0,
|
|
@@ -11905,7 +11906,7 @@ var dv = /* @__PURE__ */ q({
|
|
|
11905
11906
|
})) : R("v-if", !0);
|
|
11906
11907
|
}
|
|
11907
11908
|
}), pv = fv;
|
|
11908
|
-
const vv = "toast.swipeStart", yv = "toast.swipeMove", mv = "toast.swipeCancel",
|
|
11909
|
+
const vv = "toast.swipeStart", yv = "toast.swipeMove", mv = "toast.swipeCancel", gv = "toast.swipeEnd", mr = "toast.viewportPause", gr = "toast.viewportResume";
|
|
11909
11910
|
function la(t, a, e) {
|
|
11910
11911
|
const r = e.originalEvent.currentTarget, n = new CustomEvent(t, {
|
|
11911
11912
|
bubbles: !1,
|
|
@@ -11914,17 +11915,17 @@ function la(t, a, e) {
|
|
|
11914
11915
|
});
|
|
11915
11916
|
a && r.addEventListener(t, a, { once: !0 }), r.dispatchEvent(n);
|
|
11916
11917
|
}
|
|
11917
|
-
function
|
|
11918
|
+
function hn(t, a, e = 0) {
|
|
11918
11919
|
const r = Math.abs(t.x), n = Math.abs(t.y), o = r > n;
|
|
11919
11920
|
return a === "left" || a === "right" ? o && r > e : !o && n > e;
|
|
11920
11921
|
}
|
|
11921
|
-
function
|
|
11922
|
+
function hv(t) {
|
|
11922
11923
|
return t.nodeType === t.ELEMENT_NODE;
|
|
11923
11924
|
}
|
|
11924
11925
|
function Xo(t) {
|
|
11925
11926
|
const a = [];
|
|
11926
11927
|
return Array.from(t.childNodes).forEach((r) => {
|
|
11927
|
-
if (r.nodeType === r.TEXT_NODE && r.textContent && a.push(r.textContent),
|
|
11928
|
+
if (r.nodeType === r.TEXT_NODE && r.textContent && a.push(r.textContent), hv(r)) {
|
|
11928
11929
|
const n = r.ariaHidden || r.hidden || r.style.display === "none", o = r.dataset.rekaToastAnnounceExclude === "";
|
|
11929
11930
|
if (!n) if (o) {
|
|
11930
11931
|
const i = r.dataset.rekaToastAnnounceAlt;
|
|
@@ -11976,10 +11977,10 @@ var wv = /* @__PURE__ */ q({
|
|
|
11976
11977
|
const S = Date.now() - c.value;
|
|
11977
11978
|
m.value = Math.max(p.value - S, 0);
|
|
11978
11979
|
}, { fpsLimit: 60 });
|
|
11979
|
-
function g(S) {
|
|
11980
|
-
S <= 0 || S === Number.POSITIVE_INFINITY || Te && (window.clearTimeout(v.value), c.value = Date.now(), v.value = window.setTimeout(h, S));
|
|
11981
|
-
}
|
|
11982
11980
|
function h(S) {
|
|
11981
|
+
S <= 0 || S === Number.POSITIVE_INFINITY || Te && (window.clearTimeout(v.value), c.value = Date.now(), v.value = window.setTimeout(g, S));
|
|
11982
|
+
}
|
|
11983
|
+
function g(S) {
|
|
11983
11984
|
const x = S?.pointerType === "";
|
|
11984
11985
|
o.value?.contains(ye()) && x && s.viewport.value?.focus(), x && (s.isClosePausedRef.value = !1), r("close");
|
|
11985
11986
|
}
|
|
@@ -11992,24 +11993,24 @@ var wv = /* @__PURE__ */ q({
|
|
|
11992
11993
|
const x = s.viewport.value;
|
|
11993
11994
|
if (x) {
|
|
11994
11995
|
const A = () => {
|
|
11995
|
-
|
|
11996
|
+
h(p.value), _.resume(), r("resume");
|
|
11996
11997
|
}, $ = () => {
|
|
11997
11998
|
const T = Date.now() - c.value;
|
|
11998
11999
|
p.value = p.value - T, window.clearTimeout(v.value), _.pause(), r("pause");
|
|
11999
12000
|
};
|
|
12000
|
-
x.addEventListener(mr, $), x.addEventListener(
|
|
12001
|
-
x.removeEventListener(mr, $), x.removeEventListener(
|
|
12001
|
+
x.addEventListener(mr, $), x.addEventListener(gr, A), S(() => {
|
|
12002
|
+
x.removeEventListener(mr, $), x.removeEventListener(gr, A);
|
|
12002
12003
|
});
|
|
12003
12004
|
}
|
|
12004
12005
|
}), Q(() => [e.open, f.value], () => {
|
|
12005
|
-
p.value = f.value, e.open && !s.isClosePausedRef.value &&
|
|
12006
|
+
p.value = f.value, e.open && !s.isClosePausedRef.value && h(f.value);
|
|
12006
12007
|
}, { immediate: !0 }), Cr("Escape", (S) => {
|
|
12007
|
-
r("escapeKeyDown", S), S.defaultPrevented || (s.isFocusedToastEscapeKeyDownRef.value = !0,
|
|
12008
|
-
}),
|
|
12008
|
+
r("escapeKeyDown", S), S.defaultPrevented || (s.isFocusedToastEscapeKeyDownRef.value = !0, g());
|
|
12009
|
+
}), ge(() => {
|
|
12009
12010
|
s.onToastAdd();
|
|
12010
12011
|
}), He(() => {
|
|
12011
12012
|
s.onToastRemove();
|
|
12012
|
-
}), _v({ onClose:
|
|
12013
|
+
}), _v({ onClose: g }), (S, x) => (y(), D(ee, null, [w.value ? (y(), C(pv, {
|
|
12013
12014
|
key: 0,
|
|
12014
12015
|
role: "alert",
|
|
12015
12016
|
"aria-live": S.type === "foreground" ? "assertive" : "polite"
|
|
@@ -12054,7 +12055,7 @@ var wv = /* @__PURE__ */ q({
|
|
|
12054
12055
|
originalEvent: A,
|
|
12055
12056
|
delta: X
|
|
12056
12057
|
};
|
|
12057
|
-
I ? (d.value = X, l(la)(l(yv), (Y) => r("swipeMove", Y), B)) : l(
|
|
12058
|
+
I ? (d.value = X, l(la)(l(yv), (Y) => r("swipeMove", Y), B)) : l(hn)(X, l(s).swipeDirection.value, L) ? (d.value = X, l(la)(l(vv), (Y) => r("swipeStart", Y), B), A.target.setPointerCapture(A.pointerId)) : (Math.abs($) > L || Math.abs(T) > L) && (u.value = null);
|
|
12058
12059
|
}),
|
|
12059
12060
|
onPointerup: x[2] || (x[2] = (A) => {
|
|
12060
12061
|
if (l(s).disableSwipe.value) return;
|
|
@@ -12064,7 +12065,7 @@ var wv = /* @__PURE__ */ q({
|
|
|
12064
12065
|
originalEvent: A,
|
|
12065
12066
|
delta: $
|
|
12066
12067
|
};
|
|
12067
|
-
l(
|
|
12068
|
+
l(hn)($, l(s).swipeDirection.value, l(s).swipeThreshold.value) ? l(la)(l(gv), (U) => r("swipeEnd", U), K) : l(la)(l(mv), (U) => r("swipeCancel", U), K), I?.addEventListener("click", (U) => U.preventDefault(), { once: !0 });
|
|
12068
12069
|
}
|
|
12069
12070
|
})
|
|
12070
12071
|
}), {
|
|
@@ -12322,30 +12323,30 @@ var wv = /* @__PURE__ */ q({
|
|
|
12322
12323
|
const a = t, { hotkey: e, label: r } = fe(a), { forwardRef: n, currentElement: o } = V(), { CollectionSlot: i, getItems: s } = Ie(), u = Va(), d = O(() => u.toastCount.value > 0), f = E(), c = E(), p = /Key/g, v = /Digit/g, m = O(() => e.value.join("+").replace(p, "").replace(v, ""));
|
|
12323
12324
|
Cr(e.value, () => {
|
|
12324
12325
|
o.value.focus();
|
|
12325
|
-
}),
|
|
12326
|
+
}), ge(() => {
|
|
12326
12327
|
u.onViewportChange(o.value);
|
|
12327
|
-
}), Oe((
|
|
12328
|
-
const
|
|
12329
|
-
if (d.value &&
|
|
12328
|
+
}), Oe((h) => {
|
|
12329
|
+
const g = o.value;
|
|
12330
|
+
if (d.value && g) {
|
|
12330
12331
|
const w = () => {
|
|
12331
12332
|
if (!u.isClosePausedRef.value) {
|
|
12332
12333
|
const T = new CustomEvent(mr);
|
|
12333
|
-
|
|
12334
|
+
g.dispatchEvent(T), u.isClosePausedRef.value = !0;
|
|
12334
12335
|
}
|
|
12335
12336
|
}, S = () => {
|
|
12336
12337
|
if (u.isClosePausedRef.value) {
|
|
12337
|
-
const T = new CustomEvent(
|
|
12338
|
-
|
|
12338
|
+
const T = new CustomEvent(gr);
|
|
12339
|
+
g.dispatchEvent(T), u.isClosePausedRef.value = !1;
|
|
12339
12340
|
}
|
|
12340
12341
|
}, x = (T) => {
|
|
12341
|
-
!
|
|
12342
|
+
!g.contains(T.relatedTarget) && S();
|
|
12342
12343
|
}, A = () => {
|
|
12343
|
-
|
|
12344
|
+
g.contains(ye()) || S();
|
|
12344
12345
|
}, $ = (T) => {
|
|
12345
12346
|
const I = T.altKey || T.ctrlKey || T.metaKey;
|
|
12346
12347
|
if (T.key === "Tab" && !I) {
|
|
12347
12348
|
const U = ye(), F = T.shiftKey;
|
|
12348
|
-
if (T.target ===
|
|
12349
|
+
if (T.target === g && F) {
|
|
12349
12350
|
f.value?.focus();
|
|
12350
12351
|
return;
|
|
12351
12352
|
}
|
|
@@ -12353,19 +12354,19 @@ var wv = /* @__PURE__ */ q({
|
|
|
12353
12354
|
sa(X.slice(B + 1)) ? T.preventDefault() : F ? f.value?.focus() : c.value?.focus();
|
|
12354
12355
|
}
|
|
12355
12356
|
};
|
|
12356
|
-
|
|
12357
|
-
|
|
12357
|
+
g.addEventListener("focusin", w), g.addEventListener("focusout", x), g.addEventListener("pointermove", w), g.addEventListener("pointerleave", A), g.addEventListener("keydown", $), window.addEventListener("blur", w), window.addEventListener("focus", S), h(() => {
|
|
12358
|
+
g.removeEventListener("focusin", w), g.removeEventListener("focusout", x), g.removeEventListener("pointermove", w), g.removeEventListener("pointerleave", A), g.removeEventListener("keydown", $), window.removeEventListener("blur", w), window.removeEventListener("focus", S);
|
|
12358
12359
|
});
|
|
12359
12360
|
}
|
|
12360
12361
|
});
|
|
12361
|
-
function _({ tabbingDirection:
|
|
12362
|
+
function _({ tabbingDirection: h }) {
|
|
12362
12363
|
const w = s().map((S) => S.ref).map((S) => {
|
|
12363
12364
|
const x = [S, ...Dr(S)];
|
|
12364
|
-
return
|
|
12365
|
+
return h === "forwards" ? x : x.reverse();
|
|
12365
12366
|
});
|
|
12366
|
-
return (
|
|
12367
|
+
return (h === "forwards" ? w.reverse() : w).flat();
|
|
12367
12368
|
}
|
|
12368
|
-
return (
|
|
12369
|
+
return (h, g) => (y(), C(l(ys), {
|
|
12369
12370
|
role: "region",
|
|
12370
12371
|
"aria-label": typeof l(r) == "string" ? l(r).replace("{hotkey}", m.value) : l(r)(m.value),
|
|
12371
12372
|
tabindex: "-1",
|
|
@@ -12377,7 +12378,7 @@ var wv = /* @__PURE__ */ q({
|
|
|
12377
12378
|
ref: (w) => {
|
|
12378
12379
|
w && (f.value = l(Be)(w));
|
|
12379
12380
|
},
|
|
12380
|
-
onFocusFromOutsideViewport:
|
|
12381
|
+
onFocusFromOutsideViewport: g[0] || (g[0] = () => {
|
|
12381
12382
|
const w = _({ tabbingDirection: "forwards" });
|
|
12382
12383
|
l(sa)(w);
|
|
12383
12384
|
})
|
|
@@ -12386,10 +12387,10 @@ var wv = /* @__PURE__ */ q({
|
|
|
12386
12387
|
default: b(() => [P(l(H), j({
|
|
12387
12388
|
ref: l(n),
|
|
12388
12389
|
tabindex: "-1",
|
|
12389
|
-
as:
|
|
12390
|
-
"as-child":
|
|
12391
|
-
},
|
|
12392
|
-
default: b(() => [k(
|
|
12390
|
+
as: h.as,
|
|
12391
|
+
"as-child": h.asChild
|
|
12392
|
+
}, h.$attrs), {
|
|
12393
|
+
default: b(() => [k(h.$slots, "default")]),
|
|
12393
12394
|
_: 3
|
|
12394
12395
|
}, 16, ["as", "as-child"])]),
|
|
12395
12396
|
_: 3
|
|
@@ -12399,7 +12400,7 @@ var wv = /* @__PURE__ */ q({
|
|
|
12399
12400
|
ref: (w) => {
|
|
12400
12401
|
w && (c.value = l(Be)(w));
|
|
12401
12402
|
},
|
|
12402
|
-
onFocusFromOutsideViewport:
|
|
12403
|
+
onFocusFromOutsideViewport: g[1] || (g[1] = () => {
|
|
12403
12404
|
const w = _({ tabbingDirection: "backwards" });
|
|
12404
12405
|
l(sa)(w);
|
|
12405
12406
|
})
|
|
@@ -12522,14 +12523,14 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12522
12523
|
Q(c, (x) => {
|
|
12523
12524
|
o.onClose && (x ? (o.onOpen(), (r?.eventTarget ?? document).dispatchEvent(new CustomEvent(Zo))) : o.onClose());
|
|
12524
12525
|
});
|
|
12525
|
-
const p = E(!1), v = E(), m = O(() => c.value ? p.value ? "delayed-open" : "instant-open" : "closed"), { start: _, stop:
|
|
12526
|
+
const p = E(!1), v = E(), m = O(() => c.value ? p.value ? "delayed-open" : "instant-open" : "closed"), { start: _, stop: h } = xr(() => {
|
|
12526
12527
|
p.value = !0, c.value = !0;
|
|
12527
12528
|
}, d, { immediate: !1 });
|
|
12528
|
-
function
|
|
12529
|
-
|
|
12529
|
+
function g() {
|
|
12530
|
+
h(), p.value = !1, c.value = !0;
|
|
12530
12531
|
}
|
|
12531
12532
|
function w() {
|
|
12532
|
-
|
|
12533
|
+
h(), c.value = !1;
|
|
12533
12534
|
}
|
|
12534
12535
|
function S() {
|
|
12535
12536
|
_();
|
|
@@ -12543,12 +12544,12 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12543
12544
|
v.value = x;
|
|
12544
12545
|
},
|
|
12545
12546
|
onTriggerEnter() {
|
|
12546
|
-
o.isOpenDelayed.value ? S() :
|
|
12547
|
+
o.isOpenDelayed.value ? S() : g();
|
|
12547
12548
|
},
|
|
12548
12549
|
onTriggerLeave() {
|
|
12549
|
-
i.value ? w() :
|
|
12550
|
+
i.value ? w() : h();
|
|
12550
12551
|
},
|
|
12551
|
-
onOpen:
|
|
12552
|
+
onOpen: g,
|
|
12552
12553
|
onClose: w,
|
|
12553
12554
|
disableHoverableContent: i,
|
|
12554
12555
|
disableClosingTrigger: s,
|
|
@@ -12642,7 +12643,7 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12642
12643
|
hideWhenDetached: !1
|
|
12643
12644
|
});
|
|
12644
12645
|
});
|
|
12645
|
-
return
|
|
12646
|
+
return ge(() => {
|
|
12646
12647
|
Qe(window, "scroll", (c) => {
|
|
12647
12648
|
c.target?.contains(o.trigger.value) && o.onClose();
|
|
12648
12649
|
}, { capture: !0 }), Qe(r?.eventTarget ?? document, Zo, o.onClose);
|
|
@@ -12747,7 +12748,7 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12747
12748
|
}
|
|
12748
12749
|
},
|
|
12749
12750
|
setup(t) {
|
|
12750
|
-
const e = Dt(t), { forwardRef: r, currentElement: n } = V(), { trigger: o, onClose: i } = Na(), s = La(), { isPointerInTransit: u, onPointerExit: d } =
|
|
12751
|
+
const e = Dt(t), { forwardRef: r, currentElement: n } = V(), { trigger: o, onClose: i } = Na(), s = La(), { isPointerInTransit: u, onPointerExit: d } = gi(o, n);
|
|
12751
12752
|
return s.isPointerInTransitRef = u, d(() => {
|
|
12752
12753
|
i();
|
|
12753
12754
|
}), Qe(n, "pointermove", (f) => {
|
|
@@ -12897,8 +12898,8 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12897
12898
|
pointerdown: f,
|
|
12898
12899
|
blur: m
|
|
12899
12900
|
});
|
|
12900
|
-
Q(o, (
|
|
12901
|
-
e.onTriggerChange(
|
|
12901
|
+
Q(o, (h) => {
|
|
12902
|
+
e.onTriggerChange(h);
|
|
12902
12903
|
}, { immediate: !0 });
|
|
12903
12904
|
function d() {
|
|
12904
12905
|
setTimeout(() => {
|
|
@@ -12908,14 +12909,14 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12908
12909
|
function f() {
|
|
12909
12910
|
e.open && !e.disableClosingTrigger.value && e.onClose(), i.value = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
12910
12911
|
}
|
|
12911
|
-
function c(
|
|
12912
|
-
|
|
12912
|
+
function c(h) {
|
|
12913
|
+
h.pointerType !== "touch" && !s.value && !r.isPointerInTransitRef.value && (e.onTriggerEnter(), s.value = !0);
|
|
12913
12914
|
}
|
|
12914
12915
|
function p() {
|
|
12915
12916
|
e.onTriggerLeave(), s.value = !1;
|
|
12916
12917
|
}
|
|
12917
|
-
function v(
|
|
12918
|
-
i.value || e.ignoreNonKeyboardFocus.value && !
|
|
12918
|
+
function v(h) {
|
|
12919
|
+
i.value || e.ignoreNonKeyboardFocus.value && !h.target.matches?.(":focus-visible") || e.onOpen();
|
|
12919
12920
|
}
|
|
12920
12921
|
function m() {
|
|
12921
12922
|
e.onClose();
|
|
@@ -12923,19 +12924,19 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12923
12924
|
function _() {
|
|
12924
12925
|
e.disableClosingTrigger.value || e.onClose();
|
|
12925
12926
|
}
|
|
12926
|
-
return (
|
|
12927
|
+
return (h, g) => (y(), C(l(Pa), {
|
|
12927
12928
|
"as-child": "",
|
|
12928
|
-
reference:
|
|
12929
|
+
reference: h.reference ?? l(o)
|
|
12929
12930
|
}, {
|
|
12930
12931
|
default: b(() => [P(l(H), j({
|
|
12931
12932
|
ref: l(n),
|
|
12932
12933
|
"aria-describedby": l(e).open.value ? l(e).contentId : void 0,
|
|
12933
12934
|
"data-state": l(e).stateAttribute.value,
|
|
12934
|
-
as:
|
|
12935
|
+
as: h.as,
|
|
12935
12936
|
"as-child": a.asChild,
|
|
12936
12937
|
"data-grace-area-trigger": ""
|
|
12937
12938
|
}, pl(u.value)), {
|
|
12938
|
-
default: b(() => [k(
|
|
12939
|
+
default: b(() => [k(h.$slots, "default")]),
|
|
12939
12940
|
_: 3
|
|
12940
12941
|
}, 16, [
|
|
12941
12942
|
"aria-describedby",
|
|
@@ -12947,8 +12948,8 @@ var Lv = /* @__PURE__ */ q({
|
|
|
12947
12948
|
}, 8, ["reference"]));
|
|
12948
12949
|
}
|
|
12949
12950
|
}), Xv = Yv;
|
|
12950
|
-
function
|
|
12951
|
-
return t.reduce((a, e) => (a.push(e), e.children && a.push(...
|
|
12951
|
+
function ga(t) {
|
|
12952
|
+
return t.reduce((a, e) => (a.push(e), e.children && a.push(...ga(e.children)), a), []);
|
|
12952
12953
|
}
|
|
12953
12954
|
const [Zv, Jv] = /* @__PURE__ */ ie("TreeRoot");
|
|
12954
12955
|
var Qv = /* @__PURE__ */ q({
|
|
@@ -13025,14 +13026,14 @@ var Qv = /* @__PURE__ */ q({
|
|
|
13025
13026
|
defaultValue: e.defaultValue ?? (o.value ? [] : void 0),
|
|
13026
13027
|
passive: !0,
|
|
13027
13028
|
deep: !0
|
|
13028
|
-
}),
|
|
13029
|
+
}), h = /* @__PURE__ */ me(e, "expanded", r, {
|
|
13029
13030
|
defaultValue: e.defaultExpanded ?? [],
|
|
13030
13031
|
passive: e.expanded === void 0,
|
|
13031
13032
|
deep: !0
|
|
13032
|
-
}), { onSelectItem:
|
|
13033
|
+
}), { onSelectItem: g, handleMultipleReplace: w } = Ai(_, e), S = O(() => o.value && Array.isArray(_.value) ? _.value.map((F) => e.getKey(F)) : [e.getKey(_.value ?? {})]);
|
|
13033
13034
|
function x(F, J = 1, L) {
|
|
13034
13035
|
return F.reduce((X, B, Y) => {
|
|
13035
|
-
const Z = e.getKey(B), oe = e.getChildren(B), ve =
|
|
13036
|
+
const Z = e.getKey(B), oe = e.getChildren(B), ve = h.value.includes(Z), we = {
|
|
13036
13037
|
_id: Z,
|
|
13037
13038
|
value: B,
|
|
13038
13039
|
index: Y,
|
|
@@ -13051,7 +13052,7 @@ var Qv = /* @__PURE__ */ q({
|
|
|
13051
13052
|
}
|
|
13052
13053
|
const A = O(() => {
|
|
13053
13054
|
const F = e.items;
|
|
13054
|
-
return
|
|
13055
|
+
return h.value.map((J) => J), x(F ?? []);
|
|
13055
13056
|
}), $ = [
|
|
13056
13057
|
"input",
|
|
13057
13058
|
"textarea",
|
|
@@ -13087,20 +13088,20 @@ var Qv = /* @__PURE__ */ q({
|
|
|
13087
13088
|
selectedKeys: S,
|
|
13088
13089
|
onSelect: (F) => {
|
|
13089
13090
|
const J = (X) => e.getKey(X ?? {}) === e.getKey(F), L = e.multiple && Array.isArray(_.value) ? _.value?.findIndex(J) !== -1 : void 0;
|
|
13090
|
-
if (
|
|
13091
|
+
if (g(F, J), e.bubbleSelect && e.multiple && Array.isArray(_.value)) {
|
|
13091
13092
|
const X = A.value.find((B) => e.getKey(B.value) === e.getKey(F));
|
|
13092
13093
|
X != null && U(X);
|
|
13093
13094
|
}
|
|
13094
13095
|
if (e.propagateSelect && e.multiple && Array.isArray(_.value)) {
|
|
13095
|
-
const X =
|
|
13096
|
+
const X = ga(e.getChildren(F) ?? []);
|
|
13096
13097
|
L ? _.value = [..._.value].filter((B) => !X.some((Y) => e.getKey(B ?? {}) === e.getKey(Y))) : _.value = [..._.value, ...X];
|
|
13097
13098
|
}
|
|
13098
13099
|
},
|
|
13099
|
-
expanded:
|
|
13100
|
+
expanded: h,
|
|
13100
13101
|
onToggle(F) {
|
|
13101
13102
|
if (!(F ? e.getChildren(F) : void 0)) return;
|
|
13102
13103
|
const L = e.getKey(F) ?? F;
|
|
13103
|
-
|
|
13104
|
+
h.value.includes(L) ? h.value = h.value.filter((X) => X !== L) : h.value = [...h.value, L];
|
|
13104
13105
|
},
|
|
13105
13106
|
getKey: e.getKey,
|
|
13106
13107
|
getChildren: e.getChildren,
|
|
@@ -13131,7 +13132,7 @@ var Qv = /* @__PURE__ */ q({
|
|
|
13131
13132
|
default: b(() => [k(F.$slots, "default", {
|
|
13132
13133
|
flattenItems: A.value,
|
|
13133
13134
|
modelValue: l(_),
|
|
13134
|
-
expanded: l(
|
|
13135
|
+
expanded: l(h)
|
|
13135
13136
|
})]),
|
|
13136
13137
|
_: 3
|
|
13137
13138
|
}, 8, [
|
|
@@ -13181,20 +13182,20 @@ var ry = /* @__PURE__ */ q({
|
|
|
13181
13182
|
return o.selectedKeys.value.includes(w);
|
|
13182
13183
|
}), f = O(() => {
|
|
13183
13184
|
if (o.bubbleSelect.value && s.value && Array.isArray(o.modelValue.value)) {
|
|
13184
|
-
const w =
|
|
13185
|
+
const w = ga(o.getChildren(r.value) || []);
|
|
13185
13186
|
return w.some((S) => o.modelValue.value.find((x) => o.getKey(x) === o.getKey(S))) && !w.every((S) => o.modelValue.value.find((x) => o.getKey(x) === o.getKey(S)));
|
|
13186
|
-
} else return o.propagateSelect.value && d.value && s.value && Array.isArray(o.modelValue.value) ? !
|
|
13187
|
+
} else return o.propagateSelect.value && d.value && s.value && Array.isArray(o.modelValue.value) ? !ga(o.getChildren(r.value) || []).every((S) => o.modelValue.value.find((x) => o.getKey(x) === o.getKey(S))) : void 0;
|
|
13187
13188
|
}), c = O(() => o.disabled.value || r.disabled);
|
|
13188
13189
|
function p(w) {
|
|
13189
13190
|
if (!c.value && s.value)
|
|
13190
13191
|
if (u.value) {
|
|
13191
13192
|
const S = i().map((I) => I.ref), x = ye(), A = S.indexOf(x), T = [...S].slice(A).find((I) => Number(I.getAttribute("data-indent")) === r.level + 1);
|
|
13192
13193
|
T && T.focus();
|
|
13193
|
-
} else
|
|
13194
|
+
} else g(w);
|
|
13194
13195
|
}
|
|
13195
13196
|
function v(w) {
|
|
13196
13197
|
if (!c.value)
|
|
13197
|
-
if (u.value)
|
|
13198
|
+
if (u.value) g(w);
|
|
13198
13199
|
else {
|
|
13199
13200
|
const S = i().map((I) => I.ref), x = ye(), A = S.indexOf(x), T = [...S].slice(0, A).reverse().find((I) => Number(I.getAttribute("data-indent")) === r.level - 1);
|
|
13200
13201
|
T && T.focus();
|
|
@@ -13206,7 +13207,7 @@ var ry = /* @__PURE__ */ q({
|
|
|
13206
13207
|
async function _(w) {
|
|
13207
13208
|
c.value || (n("toggle", w), !w?.defaultPrevented && o.onToggle(r.value));
|
|
13208
13209
|
}
|
|
13209
|
-
async function
|
|
13210
|
+
async function h(w) {
|
|
13210
13211
|
if (!w) return;
|
|
13211
13212
|
const S = {
|
|
13212
13213
|
originalEvent: w,
|
|
@@ -13216,7 +13217,7 @@ var ry = /* @__PURE__ */ q({
|
|
|
13216
13217
|
};
|
|
13217
13218
|
qt(ty, m, S);
|
|
13218
13219
|
}
|
|
13219
|
-
async function
|
|
13220
|
+
async function g(w) {
|
|
13220
13221
|
if (!w) return;
|
|
13221
13222
|
const S = {
|
|
13222
13223
|
originalEvent: w,
|
|
@@ -13252,12 +13253,12 @@ var ry = /* @__PURE__ */ q({
|
|
|
13252
13253
|
"data-expanded": u.value ? "" : void 0,
|
|
13253
13254
|
"data-disabled": c.value ? "" : void 0,
|
|
13254
13255
|
onKeydown: [
|
|
13255
|
-
Se(ne(
|
|
13256
|
+
Se(ne(h, ["self", "prevent"]), ["enter", "space"]),
|
|
13256
13257
|
S[0] || (S[0] = Se(ne((x) => l(o).dir.value === "ltr" ? p(x) : v(x), ["self", "prevent"]), ["right"])),
|
|
13257
13258
|
S[1] || (S[1] = Se(ne((x) => l(o).dir.value === "ltr" ? v(x) : p(x), ["self", "prevent"]), ["left"]))
|
|
13258
13259
|
],
|
|
13259
13260
|
onClick: S[2] || (S[2] = ne((x) => {
|
|
13260
|
-
|
|
13261
|
+
h(x), g(x);
|
|
13261
13262
|
}, ["stop"]))
|
|
13262
13263
|
}), {
|
|
13263
13264
|
default: b(() => [k(w.$slots, "default", {
|
|
@@ -13313,7 +13314,7 @@ const oy = {
|
|
|
13313
13314
|
P(l(Ud), {
|
|
13314
13315
|
"model-value": e.modelValue,
|
|
13315
13316
|
disabled: e.disabled,
|
|
13316
|
-
class: "mt-px flex size-4 shrink-0 items-center justify-center rounded-[
|
|
13317
|
+
class: "mt-px flex size-4 shrink-0 items-center justify-center rounded-[var(--ui-radius-sm)] border border-[var(--ui-border-strong)] bg-[var(--ui-surface)] text-white outline-none transition-[border-color,background-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:border-[var(--ui-primary)] data-[state=checked]:bg-[var(--ui-primary)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-50",
|
|
13317
13318
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => r("update:modelValue", i === !0))
|
|
13318
13319
|
}, {
|
|
13319
13320
|
default: b(() => [
|
|
@@ -13335,7 +13336,7 @@ const oy = {
|
|
|
13335
13336
|
])) : R("", !0)
|
|
13336
13337
|
], 2));
|
|
13337
13338
|
}
|
|
13338
|
-
}), sy = { key: 0 },
|
|
13339
|
+
}), sy = { key: 0 }, Ig = /* @__PURE__ */ q({
|
|
13339
13340
|
__name: "Switch",
|
|
13340
13341
|
props: {
|
|
13341
13342
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -13352,11 +13353,11 @@ const oy = {
|
|
|
13352
13353
|
P(l(Yp), {
|
|
13353
13354
|
"model-value": e.modelValue,
|
|
13354
13355
|
disabled: e.disabled,
|
|
13355
|
-
class: "relative h-[18px] w-8 shrink-0 rounded-full border border-[var(--ui-border-strong)] bg-[
|
|
13356
|
+
class: "relative h-[18px] w-8 shrink-0 rounded-full p-0 border border-[var(--ui-border-strong)] bg-[var(--ui-control-track)] outline-none transition-[background-color,border-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:border-[var(--ui-primary)] data-[state=checked]:bg-[var(--ui-primary)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-50",
|
|
13356
13357
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => r("update:modelValue", i))
|
|
13357
13358
|
}, {
|
|
13358
13359
|
default: b(() => [
|
|
13359
|
-
P(l(Zp), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-[15px]" })
|
|
13360
|
+
P(l(Zp), { class: "block size-3.5 translate-x-[1px] rounded-full bg-white shadow-sm transition-transform duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:translate-x-[15px]" })
|
|
13360
13361
|
]),
|
|
13361
13362
|
_: 1
|
|
13362
13363
|
}, 8, ["model-value", "disabled"]),
|
|
@@ -13366,7 +13367,7 @@ const oy = {
|
|
|
13366
13367
|
}), uy = { class: "block leading-4" }, dy = {
|
|
13367
13368
|
key: 0,
|
|
13368
13369
|
class: "mt-0.5 block text-[12px] leading-4 text-[var(--ui-text-muted)]"
|
|
13369
|
-
},
|
|
13370
|
+
}, Rg = /* @__PURE__ */ q({
|
|
13370
13371
|
__name: "RadioGroup",
|
|
13371
13372
|
props: {
|
|
13372
13373
|
modelValue: {},
|
|
@@ -13393,7 +13394,7 @@ const oy = {
|
|
|
13393
13394
|
P(l(np), {
|
|
13394
13395
|
value: i.value,
|
|
13395
13396
|
disabled: i.disabled,
|
|
13396
|
-
class: "mt-px flex size-4 shrink-0 items-center justify-center rounded-full border border-[var(--ui-border-strong)] bg-[var(--ui-surface)] outline-none transition-[border-color,box-shadow] data-[state=checked]:border-[var(--ui-primary)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-50"
|
|
13397
|
+
class: "mt-px flex size-4 shrink-0 items-center justify-center rounded-full border border-[var(--ui-border-strong)] bg-[var(--ui-surface)] outline-none transition-[border-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] data-[state=checked]:border-[var(--ui-primary)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-50"
|
|
13397
13398
|
}, {
|
|
13398
13399
|
default: b(() => [
|
|
13399
13400
|
P(l(lp), { class: "size-2 rounded-full bg-[var(--ui-primary)]" })
|
|
@@ -13412,7 +13413,7 @@ const oy = {
|
|
|
13412
13413
|
}), cy = {
|
|
13413
13414
|
class: "w-full",
|
|
13414
13415
|
"data-syno-ui": ""
|
|
13415
|
-
},
|
|
13416
|
+
}, Mg = /* @__PURE__ */ q({
|
|
13416
13417
|
__name: "Select",
|
|
13417
13418
|
props: {
|
|
13418
13419
|
modelValue: {},
|
|
@@ -13430,7 +13431,7 @@ const oy = {
|
|
|
13430
13431
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => r("update:modelValue", String(i ?? "")))
|
|
13431
13432
|
}, {
|
|
13432
13433
|
default: b(() => [
|
|
13433
|
-
P(l(Np), { class: "flex h-[var(--ui-control-md)] w-full min-w-32 items-center justify-between gap-2 rounded-[var(--ui-radius-
|
|
13434
|
+
P(l(Np), { class: "flex h-[var(--ui-control-md)] w-full min-w-32 items-center justify-between gap-2 rounded-[var(--ui-radius-control)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-2.5 text-[13px] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] hover:bg-[var(--ui-surface-hover)] focus:border-[var(--ui-primary)] focus:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-50" }, {
|
|
13434
13435
|
default: b(() => [
|
|
13435
13436
|
P(l(zp), {
|
|
13436
13437
|
placeholder: e.placeholder
|
|
@@ -13497,7 +13498,7 @@ const oy = {
|
|
|
13497
13498
|
}, 8, ["model-value", "disabled"])
|
|
13498
13499
|
]));
|
|
13499
13500
|
}
|
|
13500
|
-
}),
|
|
13501
|
+
}), Fg = /* @__PURE__ */ q({
|
|
13501
13502
|
__name: "Badge",
|
|
13502
13503
|
props: {
|
|
13503
13504
|
tone: { default: "neutral" }
|
|
@@ -13517,7 +13518,7 @@ const oy = {
|
|
|
13517
13518
|
k(a.$slots, "default")
|
|
13518
13519
|
], 2));
|
|
13519
13520
|
}
|
|
13520
|
-
}), fy = ["aria-orientation"],
|
|
13521
|
+
}), fy = ["aria-orientation"], Vg = /* @__PURE__ */ q({
|
|
13521
13522
|
__name: "Separator",
|
|
13522
13523
|
props: {
|
|
13523
13524
|
orientation: { default: "horizontal" }
|
|
@@ -13553,7 +13554,7 @@ const oy = {
|
|
|
13553
13554
|
key: 0,
|
|
13554
13555
|
class: "absolute inset-0 z-20 flex items-center justify-center bg-[rgba(255,255,255,0.6)]",
|
|
13555
13556
|
"data-loading-overlay": ""
|
|
13556
|
-
},
|
|
13557
|
+
}, gy = /* @__PURE__ */ q({
|
|
13557
13558
|
__name: "LoadingMask",
|
|
13558
13559
|
props: {
|
|
13559
13560
|
loading: { type: Boolean, default: !1 },
|
|
@@ -13571,23 +13572,23 @@ const oy = {
|
|
|
13571
13572
|
])) : R("", !0)
|
|
13572
13573
|
], 8, yy));
|
|
13573
13574
|
}
|
|
13574
|
-
}),
|
|
13575
|
+
}), hy = {
|
|
13575
13576
|
class: "flex h-full min-h-32 w-full items-center justify-center",
|
|
13576
13577
|
"data-syno-ui": ""
|
|
13577
|
-
},
|
|
13578
|
+
}, Lg = /* @__PURE__ */ q({
|
|
13578
13579
|
__name: "LoadingArea",
|
|
13579
13580
|
props: {
|
|
13580
13581
|
text: { default: "" }
|
|
13581
13582
|
},
|
|
13582
13583
|
setup(t) {
|
|
13583
|
-
return (a, e) => (y(), D("div",
|
|
13584
|
+
return (a, e) => (y(), D("div", hy, [
|
|
13584
13585
|
P(Qo, { text: t.text }, null, 8, ["text"])
|
|
13585
13586
|
]));
|
|
13586
13587
|
}
|
|
13587
13588
|
}), by = { "data-syno-ui": "" }, _y = {
|
|
13588
13589
|
key: 0,
|
|
13589
13590
|
class: "mb-1.5 flex justify-between gap-3 text-[12px] text-[var(--ui-text-secondary)]"
|
|
13590
|
-
}, wy = ["aria-valuenow", "aria-valuemax", "aria-label"],
|
|
13591
|
+
}, wy = ["aria-valuenow", "aria-valuemax", "aria-label"], Ng = /* @__PURE__ */ q({
|
|
13591
13592
|
__name: "Progress",
|
|
13592
13593
|
props: {
|
|
13593
13594
|
value: { default: 0 },
|
|
@@ -13616,7 +13617,7 @@ const oy = {
|
|
|
13616
13617
|
], 8, wy)
|
|
13617
13618
|
]));
|
|
13618
13619
|
}
|
|
13619
|
-
}),
|
|
13620
|
+
}), Kg = /* @__PURE__ */ q({
|
|
13620
13621
|
__name: "Skeleton",
|
|
13621
13622
|
props: {
|
|
13622
13623
|
width: { default: "100%" },
|
|
@@ -13630,7 +13631,7 @@ const oy = {
|
|
|
13630
13631
|
"aria-hidden": "true"
|
|
13631
13632
|
}, null, 4));
|
|
13632
13633
|
}
|
|
13633
|
-
}),
|
|
13634
|
+
}), zg = /* @__PURE__ */ q({
|
|
13634
13635
|
__name: "Surface",
|
|
13635
13636
|
props: {
|
|
13636
13637
|
padding: { default: "md" },
|
|
@@ -13652,7 +13653,7 @@ const oy = {
|
|
|
13652
13653
|
k(a.$slots, "default")
|
|
13653
13654
|
], 2));
|
|
13654
13655
|
}
|
|
13655
|
-
}),
|
|
13656
|
+
}), Wg = /* @__PURE__ */ q({
|
|
13656
13657
|
__name: "Tooltip",
|
|
13657
13658
|
props: {
|
|
13658
13659
|
content: {},
|
|
@@ -13693,7 +13694,7 @@ const oy = {
|
|
|
13693
13694
|
_: 3
|
|
13694
13695
|
}, 8, ["delay-duration"]));
|
|
13695
13696
|
}
|
|
13696
|
-
}),
|
|
13697
|
+
}), jg = /* @__PURE__ */ q({
|
|
13697
13698
|
__name: "Popover",
|
|
13698
13699
|
props: {
|
|
13699
13700
|
side: { default: "bottom" },
|
|
@@ -13805,9 +13806,9 @@ const oy = {
|
|
|
13805
13806
|
}));
|
|
13806
13807
|
}
|
|
13807
13808
|
}), ky = {
|
|
13808
|
-
class: "inline-flex items-stretch",
|
|
13809
|
+
class: "group inline-flex items-stretch",
|
|
13809
13810
|
"data-syno-ui": ""
|
|
13810
|
-
}, Oy = ["disabled"], Py = ["disabled", "aria-label"], wn = "inline-flex h-[var(--ui-control-md)] items-center border text-[length:var(--ui-font-size)] outline-none
|
|
13811
|
+
}, Oy = ["disabled"], Py = ["disabled", "aria-label"], wn = "inline-flex h-[var(--ui-control-md)] items-center border text-[length:var(--ui-font-size)] outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] disabled:pointer-events-none", Hg = /* @__PURE__ */ q({
|
|
13811
13812
|
__name: "SplitButton",
|
|
13812
13813
|
props: {
|
|
13813
13814
|
items: {},
|
|
@@ -13817,20 +13818,24 @@ const oy = {
|
|
|
13817
13818
|
},
|
|
13818
13819
|
emits: ["click", "select"],
|
|
13819
13820
|
setup(t, { emit: a }) {
|
|
13820
|
-
const e = t, r = a, n = () => e.variant === "primary" ? "border-[var(--ui-primary)] bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] hover:border-[var(--ui-primary-active)] hover:bg-[var(--ui-primary-hover)]" : "border-
|
|
13821
|
-
return (
|
|
13821
|
+
const e = t, r = a, n = () => e.variant === "primary" ? "border-[var(--ui-primary-hover)] bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] group-hover:border-[var(--ui-primary-active)] group-hover:bg-[var(--ui-primary-hover)] group-active:border-[var(--ui-primary-active)] group-active:bg-[var(--ui-primary-active)] disabled:opacity-40" : "border-[var(--ui-control-border)] bg-[var(--ui-control-bg)] text-[var(--ui-text)] group-hover:border-[var(--ui-border-strong)] group-hover:bg-[var(--ui-control-bg-hover)] group-active:border-[var(--ui-control-border-active)] group-active:bg-[var(--ui-control-bg-active)] disabled:text-[var(--ui-text-disabled)]", o = () => e.variant === "primary" ? "bg-[var(--ui-control-divider-on-accent)]" : "bg-[var(--ui-control-divider)]";
|
|
13822
|
+
return (i, s) => (y(), D("span", ky, [
|
|
13822
13823
|
z("button", {
|
|
13823
13824
|
type: "button",
|
|
13824
13825
|
"data-split-main": "",
|
|
13825
13826
|
disabled: e.disabled,
|
|
13826
|
-
class: ae([wn, n(), "rounded-l-[var(--ui-radius-
|
|
13827
|
-
onClick:
|
|
13827
|
+
class: ae([wn, n(), "rounded-l-[var(--ui-radius-control)] border-r-0 px-[13px] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]"]),
|
|
13828
|
+
onClick: s[0] || (s[0] = (u) => r("click", u))
|
|
13828
13829
|
}, [
|
|
13829
|
-
k(
|
|
13830
|
+
k(i.$slots, "default")
|
|
13830
13831
|
], 10, Oy),
|
|
13832
|
+
z("span", {
|
|
13833
|
+
class: ae(["w-px shrink-0 self-stretch", o()]),
|
|
13834
|
+
"aria-hidden": "true"
|
|
13835
|
+
}, null, 2),
|
|
13831
13836
|
P(Sy, {
|
|
13832
13837
|
items: e.items,
|
|
13833
|
-
onSelect:
|
|
13838
|
+
onSelect: s[1] || (s[1] = (u) => r("select", u))
|
|
13834
13839
|
}, {
|
|
13835
13840
|
trigger: b(() => [
|
|
13836
13841
|
z("button", {
|
|
@@ -13838,8 +13843,8 @@ const oy = {
|
|
|
13838
13843
|
"data-split-arrow": "",
|
|
13839
13844
|
disabled: e.disabled,
|
|
13840
13845
|
"aria-label": e.menuLabel,
|
|
13841
|
-
class: ae([wn, n(), "w-[22px] justify-center rounded-r-[var(--ui-radius-
|
|
13842
|
-
}, [...
|
|
13846
|
+
class: ae([wn, n(), "w-[22px] justify-center rounded-r-[var(--ui-radius-control)] border-l-0 focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]"])
|
|
13847
|
+
}, [...s[2] || (s[2] = [
|
|
13843
13848
|
z("svg", {
|
|
13844
13849
|
"data-caret": "",
|
|
13845
13850
|
class: "size-[7px] fill-current",
|
|
@@ -13962,7 +13967,7 @@ const oy = {
|
|
|
13962
13967
|
], 64))), 128);
|
|
13963
13968
|
};
|
|
13964
13969
|
}
|
|
13965
|
-
}),
|
|
13970
|
+
}), Ug = /* @__PURE__ */ q({
|
|
13966
13971
|
__name: "ContextMenu",
|
|
13967
13972
|
props: {
|
|
13968
13973
|
items: {},
|
|
@@ -14007,7 +14012,7 @@ const oy = {
|
|
|
14007
14012
|
}), Ry = { class: "flex min-h-11 items-start justify-between gap-4 border-b border-[var(--ui-border-subtle)] px-4 py-3" }, My = { class: "min-w-0" }, Fy = { class: "max-h-[calc(85vh-100px)] overflow-auto px-4 py-4" }, Vy = {
|
|
14008
14013
|
key: 0,
|
|
14009
14014
|
class: "flex min-h-12 items-center justify-end gap-2 border-t border-[var(--ui-border-subtle)] px-4 py-2.5"
|
|
14010
|
-
},
|
|
14015
|
+
}, Gg = /* @__PURE__ */ q({
|
|
14011
14016
|
__name: "Dialog",
|
|
14012
14017
|
props: {
|
|
14013
14018
|
open: { type: Boolean, default: void 0 },
|
|
@@ -14109,7 +14114,7 @@ const oy = {
|
|
|
14109
14114
|
}), Ly = { class: "flex min-h-12 items-start justify-between gap-4 border-b border-[var(--ui-border)] px-4 py-3" }, Ny = { class: "min-w-0" }, Ky = { class: "min-h-0 flex-1 overflow-auto p-4" }, zy = {
|
|
14110
14115
|
key: 0,
|
|
14111
14116
|
class: "flex min-h-12 items-center justify-end gap-2 border-t border-[var(--ui-border)] px-4 py-2.5"
|
|
14112
|
-
},
|
|
14117
|
+
}, Yg = /* @__PURE__ */ q({
|
|
14113
14118
|
__name: "Sheet",
|
|
14114
14119
|
props: {
|
|
14115
14120
|
open: { type: Boolean, default: void 0 },
|
|
@@ -14226,7 +14231,7 @@ const oy = {
|
|
|
14226
14231
|
type: "button",
|
|
14227
14232
|
class: "flex size-7 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
14228
14233
|
"aria-label": "Next month"
|
|
14229
|
-
},
|
|
14234
|
+
}, Xg = /* @__PURE__ */ q({
|
|
14230
14235
|
__name: "DatePicker",
|
|
14231
14236
|
props: {
|
|
14232
14237
|
modelValue: {},
|
|
@@ -14342,7 +14347,7 @@ const oy = {
|
|
|
14342
14347
|
default: b(() => [
|
|
14343
14348
|
P(l(bf), null, {
|
|
14344
14349
|
default: b(() => [
|
|
14345
|
-
P(l(
|
|
14350
|
+
P(l(gn), null, {
|
|
14346
14351
|
default: b(() => [
|
|
14347
14352
|
(y(!0), D(ee, null, pe(p, (m) => (y(), C(l(xf), {
|
|
14348
14353
|
key: m,
|
|
@@ -14359,23 +14364,23 @@ const oy = {
|
|
|
14359
14364
|
]),
|
|
14360
14365
|
_: 2
|
|
14361
14366
|
}, 1024),
|
|
14362
|
-
P(l(
|
|
14367
|
+
P(l(gf), null, {
|
|
14363
14368
|
default: b(() => [
|
|
14364
|
-
(y(!0), D(ee, null, pe(v.rows, (m, _) => (y(), C(l(
|
|
14369
|
+
(y(!0), D(ee, null, pe(v.rows, (m, _) => (y(), C(l(gn), { key: _ }, {
|
|
14365
14370
|
default: b(() => [
|
|
14366
|
-
(y(!0), D(ee, null, pe(m, (
|
|
14367
|
-
key:
|
|
14368
|
-
date:
|
|
14371
|
+
(y(!0), D(ee, null, pe(m, (h) => (y(), C(l(tf), {
|
|
14372
|
+
key: h.toString(),
|
|
14373
|
+
date: h,
|
|
14369
14374
|
class: "p-0.5"
|
|
14370
14375
|
}, {
|
|
14371
14376
|
default: b(() => [
|
|
14372
14377
|
P(l(rf), {
|
|
14373
|
-
day:
|
|
14378
|
+
day: h,
|
|
14374
14379
|
month: v.value,
|
|
14375
14380
|
class: "flex size-8 items-center justify-center rounded-[var(--ui-radius-sm)] text-[12px] text-[var(--ui-text)] outline-none hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] data-[outside-view]:text-[var(--ui-text-disabled)] data-[selected]:bg-[var(--ui-primary)] data-[selected]:font-semibold data-[selected]:text-white data-[today]:ring-1 data-[today]:ring-inset data-[today]:ring-[var(--ui-primary)] data-[disabled]:pointer-events-none data-[disabled]:opacity-35 data-[unavailable]:line-through"
|
|
14376
14381
|
}, {
|
|
14377
14382
|
default: b(() => [
|
|
14378
|
-
ue(W(
|
|
14383
|
+
ue(W(h.day), 1)
|
|
14379
14384
|
]),
|
|
14380
14385
|
_: 2
|
|
14381
14386
|
}, 1032, ["day", "month"])
|
|
@@ -14415,13 +14420,13 @@ const oy = {
|
|
|
14415
14420
|
]));
|
|
14416
14421
|
}
|
|
14417
14422
|
}), el = /* @__PURE__ */ Symbol("syno-ui-toast-controller");
|
|
14418
|
-
function
|
|
14423
|
+
function Zg() {
|
|
14419
14424
|
const t = Kt(el);
|
|
14420
14425
|
if (!t)
|
|
14421
14426
|
throw new Error("useToast() requires a <ToastProvider> ancestor");
|
|
14422
14427
|
return t;
|
|
14423
14428
|
}
|
|
14424
|
-
const Yy = { class: "min-w-0" }, Xy = ["onClick"],
|
|
14429
|
+
const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jg = /* @__PURE__ */ q({
|
|
14425
14430
|
__name: "ToastProvider",
|
|
14426
14431
|
props: {
|
|
14427
14432
|
duration: { default: 4500 },
|
|
@@ -14546,7 +14551,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14546
14551
|
_: 3
|
|
14547
14552
|
}, 8, ["duration", "swipe-direction"]));
|
|
14548
14553
|
}
|
|
14549
|
-
}),
|
|
14554
|
+
}), Qg = /* @__PURE__ */ q({
|
|
14550
14555
|
__name: "Tabs",
|
|
14551
14556
|
props: {
|
|
14552
14557
|
modelValue: {},
|
|
@@ -14591,7 +14596,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14591
14596
|
_: 3
|
|
14592
14597
|
}, 8, ["model-value"]));
|
|
14593
14598
|
}
|
|
14594
|
-
}),
|
|
14599
|
+
}), eh = /* @__PURE__ */ q({
|
|
14595
14600
|
__name: "Accordion",
|
|
14596
14601
|
props: {
|
|
14597
14602
|
items: {},
|
|
@@ -14661,11 +14666,11 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14661
14666
|
setup(t, { emit: a }) {
|
|
14662
14667
|
const e = t, r = a;
|
|
14663
14668
|
return (n, o) => (y(), D("label", Zy, [
|
|
14664
|
-
e.variant === "filter" ? (y(), C(l(
|
|
14669
|
+
e.variant === "filter" ? (y(), C(l(gl), {
|
|
14665
14670
|
key: 0,
|
|
14666
14671
|
class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text)]",
|
|
14667
14672
|
"aria-hidden": "true"
|
|
14668
|
-
})) : (y(), C(l(
|
|
14673
|
+
})) : (y(), C(l(hl), {
|
|
14669
14674
|
key: 1,
|
|
14670
14675
|
class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text-muted)]",
|
|
14671
14676
|
"aria-hidden": "true"
|
|
@@ -14674,14 +14679,14 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14674
14679
|
value: e.modelValue,
|
|
14675
14680
|
type: "search",
|
|
14676
14681
|
placeholder: e.placeholder,
|
|
14677
|
-
class: "h-[var(--ui-control-md)] w-full rounded-[var(--ui-radius-
|
|
14682
|
+
class: "h-[var(--ui-control-md)] w-full rounded-[var(--ui-radius-control)] border border-[var(--ui-border)] bg-[var(--ui-surface)] pr-8 pl-[33px] text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)] focus:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
14678
14683
|
onInput: o[0] || (o[0] = (i) => r("update:modelValue", i.target.value))
|
|
14679
14684
|
}, null, 40, Jy),
|
|
14680
14685
|
e.modelValue ? (y(), D("button", {
|
|
14681
14686
|
key: 2,
|
|
14682
14687
|
type: "button",
|
|
14683
14688
|
"aria-label": e.clearLabel,
|
|
14684
|
-
class: "absolute top-1/2 right-1.5 flex size-6 border-0 bg-transparent -translate-y-1/2 items-center justify-center rounded-[
|
|
14689
|
+
class: "absolute top-1/2 right-1.5 flex size-6 border-0 bg-transparent -translate-y-1/2 items-center justify-center rounded-[var(--ui-radius-control)] text-[var(--ui-text-muted)] hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)]",
|
|
14685
14690
|
onClick: o[1] || (o[1] = (i) => r("update:modelValue", ""))
|
|
14686
14691
|
}, [
|
|
14687
14692
|
P(l(Ot), {
|
|
@@ -14697,7 +14702,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14697
14702
|
}, rm = { class: "min-w-0" }, nm = {
|
|
14698
14703
|
key: 0,
|
|
14699
14704
|
class: "mt-1 text-[12px] leading-4 text-[var(--ui-text-muted)]"
|
|
14700
|
-
},
|
|
14705
|
+
}, th = /* @__PURE__ */ q({
|
|
14701
14706
|
__name: "SettingsRow",
|
|
14702
14707
|
props: {
|
|
14703
14708
|
label: {},
|
|
@@ -14726,7 +14731,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14726
14731
|
}), om = { "data-syno-ui": "" }, lm = ["aria-expanded"], im = {
|
|
14727
14732
|
key: 1,
|
|
14728
14733
|
class: "flex h-9 items-center border-b border-dashed border-[var(--ui-border)] text-[14px] font-medium text-[var(--ui-primary)]"
|
|
14729
|
-
}, sm = { class: "pt-4" },
|
|
14734
|
+
}, sm = { class: "pt-4" }, ah = /* @__PURE__ */ q({
|
|
14730
14735
|
__name: "SettingsSection",
|
|
14731
14736
|
props: {
|
|
14732
14737
|
title: {},
|
|
@@ -14759,7 +14764,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14759
14764
|
}), um = { class: "min-w-0" }, dm = {
|
|
14760
14765
|
key: 0,
|
|
14761
14766
|
class: "font-semibold text-[var(--ui-text)]"
|
|
14762
|
-
},
|
|
14767
|
+
}, rh = /* @__PURE__ */ q({
|
|
14763
14768
|
__name: "Callout",
|
|
14764
14769
|
props: {
|
|
14765
14770
|
tone: { default: "info" },
|
|
@@ -14805,7 +14810,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14805
14810
|
}, ym = {
|
|
14806
14811
|
key: 2,
|
|
14807
14812
|
class: "mt-4 flex items-center gap-2"
|
|
14808
|
-
},
|
|
14813
|
+
}, nh = /* @__PURE__ */ q({
|
|
14809
14814
|
__name: "EmptyState",
|
|
14810
14815
|
props: {
|
|
14811
14816
|
title: {},
|
|
@@ -14830,7 +14835,7 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14830
14835
|
}), mm = {
|
|
14831
14836
|
class: "overflow-auto border-y border-[var(--ui-border)]",
|
|
14832
14837
|
"data-syno-ui": ""
|
|
14833
|
-
},
|
|
14838
|
+
}, gm = { class: "w-full border-collapse text-[13px]" }, hm = { class: "bg-[var(--ui-surface-subtle)] text-[var(--ui-text-secondary)]" }, bm = { key: 0 }, _m = ["colspan"], oh = /* @__PURE__ */ q({
|
|
14834
14839
|
__name: "DataTable",
|
|
14835
14840
|
props: {
|
|
14836
14841
|
columns: {},
|
|
@@ -14845,8 +14850,8 @@ const Yy = { class: "min-w-0" }, Xy = ["onClick"], Jh = /* @__PURE__ */ q({
|
|
|
14845
14850
|
return String(r[a.rowKey] ?? n);
|
|
14846
14851
|
}
|
|
14847
14852
|
return (r, n) => (y(), D("div", mm, [
|
|
14848
|
-
z("table",
|
|
14849
|
-
z("thead",
|
|
14853
|
+
z("table", gm, [
|
|
14854
|
+
z("thead", hm, [
|
|
14850
14855
|
z("tr", null, [
|
|
14851
14856
|
(y(!0), D(ee, null, pe(a.columns, (o) => (y(), D("th", {
|
|
14852
14857
|
key: o.key,
|
|
@@ -14922,7 +14927,7 @@ const qm = {
|
|
|
14922
14927
|
}, Im = {
|
|
14923
14928
|
key: 0,
|
|
14924
14929
|
class: "flex h-[var(--ui-grid-footer-height)] shrink-0 items-center gap-3 border-t border-[var(--ui-border-subtle)] border-b-[var(--ui-border)] px-2 text-[var(--ui-text)]"
|
|
14925
|
-
}, Rm = { class: "min-w-0 flex-1" }, Mm = { class: "flex items-center gap-1" }, Sn = 40,
|
|
14930
|
+
}, Rm = { class: "min-w-0 flex-1" }, Mm = { class: "flex items-center gap-1" }, Sn = 40, lh = /* @__PURE__ */ q({
|
|
14926
14931
|
__name: "DataGrid",
|
|
14927
14932
|
props: {
|
|
14928
14933
|
columns: {},
|
|
@@ -14986,15 +14991,15 @@ const qm = {
|
|
|
14986
14991
|
const G = m(M);
|
|
14987
14992
|
d.value = G, r("update:sort", G);
|
|
14988
14993
|
}
|
|
14989
|
-
const
|
|
14994
|
+
const h = O(() => e.localPagination ? p.value.length : e.totalRows ?? e.rows.length), g = O(() => Math.max(1, Math.ceil(h.value / e.pageSize))), w = O(() => Math.min(e.page, g.value)), S = O(() => {
|
|
14990
14995
|
if (!e.localPagination) return p.value;
|
|
14991
14996
|
const M = (Math.max(1, e.page) - 1) * e.pageSize;
|
|
14992
14997
|
return p.value.slice(M, M + e.pageSize);
|
|
14993
14998
|
});
|
|
14994
14999
|
function x(M) {
|
|
14995
|
-
r("update:page", Math.min(
|
|
15000
|
+
r("update:page", Math.min(g.value, Math.max(1, M)));
|
|
14996
15001
|
}
|
|
14997
|
-
const A = O(() => e.footer ?? (
|
|
15002
|
+
const A = O(() => e.footer ?? (g.value > 1 || !!n.footer)), $ = O(() => S.value.map((M, G) => u(M, G))), T = O(() => $.value.length > 0 && $.value.every((M) => e.selectedKeys.includes(M)));
|
|
14998
15003
|
function I(M, G) {
|
|
14999
15004
|
const N = new Set(e.selectedKeys);
|
|
15000
15005
|
G ? N.add(M) : N.delete(M), r("update:selectedKeys", [...N]);
|
|
@@ -15047,10 +15052,10 @@ const qm = {
|
|
|
15047
15052
|
const le = Y();
|
|
15048
15053
|
we(G, { ...le, [G.key]: qn(le[G.key] + N, L(G)) });
|
|
15049
15054
|
}
|
|
15050
|
-
|
|
15055
|
+
ha(() => de?.());
|
|
15051
15056
|
const Me = (M) => M.align === "right" ? "text-right" : M.align === "center" ? "text-center" : "text-left";
|
|
15052
15057
|
return (M, G) => (y(), D("div", qm, [
|
|
15053
|
-
P(
|
|
15058
|
+
P(gy, {
|
|
15054
15059
|
class: "min-h-0 flex-1",
|
|
15055
15060
|
loading: e.loading,
|
|
15056
15061
|
text: e.loadingText
|
|
@@ -15194,13 +15199,13 @@ const qm = {
|
|
|
15194
15199
|
A.value ? (y(), D("div", Im, [
|
|
15195
15200
|
z("div", Rm, [
|
|
15196
15201
|
k(M.$slots, "footer", {
|
|
15197
|
-
total:
|
|
15202
|
+
total: h.value,
|
|
15198
15203
|
page: w.value,
|
|
15199
|
-
pageCount:
|
|
15204
|
+
pageCount: g.value
|
|
15200
15205
|
})
|
|
15201
15206
|
]),
|
|
15202
|
-
|
|
15203
|
-
z("span", null, W(s.value.page(w.value,
|
|
15207
|
+
g.value > 1 ? (y(), D(ee, { key: 0 }, [
|
|
15208
|
+
z("span", null, W(s.value.page(w.value, g.value)), 1),
|
|
15204
15209
|
z("div", Mm, [
|
|
15205
15210
|
P(ia, {
|
|
15206
15211
|
label: s.value.previous,
|
|
@@ -15216,7 +15221,7 @@ const qm = {
|
|
|
15216
15221
|
P(ia, {
|
|
15217
15222
|
label: s.value.next,
|
|
15218
15223
|
size: "sm",
|
|
15219
|
-
disabled: w.value >=
|
|
15224
|
+
disabled: w.value >= g.value,
|
|
15220
15225
|
onClick: G[3] || (G[3] = (N) => x(w.value + 1))
|
|
15221
15226
|
}, {
|
|
15222
15227
|
default: b(() => [
|
|
@@ -15226,7 +15231,7 @@ const qm = {
|
|
|
15226
15231
|
}, 8, ["label", "disabled"])
|
|
15227
15232
|
])
|
|
15228
15233
|
], 64)) : R("", !0),
|
|
15229
|
-
z("span", null, W(s.value.items(
|
|
15234
|
+
z("span", null, W(s.value.items(h.value)), 1),
|
|
15230
15235
|
e.refreshable ? (y(), C(ia, {
|
|
15231
15236
|
key: 1,
|
|
15232
15237
|
"data-refresh": "",
|
|
@@ -15248,7 +15253,7 @@ const qm = {
|
|
|
15248
15253
|
}), Fm = ["aria-label", "onClick"], Vm = {
|
|
15249
15254
|
key: 1,
|
|
15250
15255
|
class: "size-5 shrink-0"
|
|
15251
|
-
}, Lm = { class: "min-w-0 flex-1 truncate" },
|
|
15256
|
+
}, Lm = { class: "min-w-0 flex-1 truncate" }, ih = /* @__PURE__ */ q({
|
|
15252
15257
|
__name: "TreeView",
|
|
15253
15258
|
props: {
|
|
15254
15259
|
nodes: {},
|
|
@@ -15337,7 +15342,7 @@ const qm = {
|
|
|
15337
15342
|
}, Um = { key: 0 }, Gm = { key: 1 }, Ym = { key: 2 }, Xm = { key: 3 }, Zm = { key: 4 }, Jm = {
|
|
15338
15343
|
key: 0,
|
|
15339
15344
|
class: "mt-2 overflow-hidden rounded-[var(--ui-radius-md)] border border-[var(--ui-border)]"
|
|
15340
|
-
}, Qm = { class: "min-w-0 flex-1" },
|
|
15345
|
+
}, Qm = { class: "min-w-0 flex-1" }, eg = { class: "truncate text-[12px] text-[var(--ui-text)]" }, tg = { class: "text-[12px] text-[var(--ui-text-muted)]" }, sh = /* @__PURE__ */ q({
|
|
15341
15346
|
__name: "FilePicker",
|
|
15342
15347
|
props: {
|
|
15343
15348
|
modelValue: { default: () => [] },
|
|
@@ -15356,35 +15361,35 @@ const qm = {
|
|
|
15356
15361
|
const e = t, r = a, n = E(), o = E(!1), i = O(() => !e.maxFiles || e.modelValue.length < e.maxFiles);
|
|
15357
15362
|
function s(m) {
|
|
15358
15363
|
if (!e.accept) return !0;
|
|
15359
|
-
const _ = e.accept.split(",").map((w) => w.trim().toLowerCase()).filter(Boolean),
|
|
15360
|
-
return _.some((w) => w.startsWith(".") ?
|
|
15364
|
+
const _ = e.accept.split(",").map((w) => w.trim().toLowerCase()).filter(Boolean), h = m.name.toLowerCase(), g = m.type.toLowerCase();
|
|
15365
|
+
return _.some((w) => w.startsWith(".") ? h.endsWith(w) : w.endsWith("/*") ? g.startsWith(w.slice(0, -1)) : g === w);
|
|
15361
15366
|
}
|
|
15362
15367
|
function u(m, _) {
|
|
15363
|
-
return _.some((
|
|
15368
|
+
return _.some((h) => h.name === m.name && h.size === m.size && h.lastModified === m.lastModified);
|
|
15364
15369
|
}
|
|
15365
15370
|
function d(m) {
|
|
15366
15371
|
if (e.disabled || m.length === 0) return;
|
|
15367
|
-
const _ = [...e.modelValue],
|
|
15368
|
-
for (const
|
|
15369
|
-
if (!s(
|
|
15370
|
-
|
|
15372
|
+
const _ = [...e.modelValue], h = [];
|
|
15373
|
+
for (const g of m) {
|
|
15374
|
+
if (!s(g)) {
|
|
15375
|
+
h.push({ file: g, reason: "type", message: `${g.name} is not an accepted file type.` });
|
|
15371
15376
|
continue;
|
|
15372
15377
|
}
|
|
15373
|
-
if (e.maxSize &&
|
|
15374
|
-
|
|
15378
|
+
if (e.maxSize && g.size > e.maxSize) {
|
|
15379
|
+
h.push({ file: g, reason: "size", message: `${g.name} exceeds the maximum file size.` });
|
|
15375
15380
|
continue;
|
|
15376
15381
|
}
|
|
15377
|
-
if (u(
|
|
15378
|
-
|
|
15382
|
+
if (u(g, _)) {
|
|
15383
|
+
h.push({ file: g, reason: "duplicate", message: `${g.name} is already selected.` });
|
|
15379
15384
|
continue;
|
|
15380
15385
|
}
|
|
15381
15386
|
if (!e.multiple && _.length >= 1 || e.maxFiles && _.length >= e.maxFiles) {
|
|
15382
|
-
|
|
15387
|
+
h.push({ file: g, reason: "count", message: `${g.name} exceeds the file count limit.` });
|
|
15383
15388
|
continue;
|
|
15384
15389
|
}
|
|
15385
|
-
e.multiple ? _.push(
|
|
15390
|
+
e.multiple ? _.push(g) : _.splice(0, _.length, g);
|
|
15386
15391
|
}
|
|
15387
|
-
r("update:modelValue", _),
|
|
15392
|
+
r("update:modelValue", _), h.length && r("rejected", h);
|
|
15388
15393
|
}
|
|
15389
15394
|
function f(m) {
|
|
15390
15395
|
const _ = m.target;
|
|
@@ -15394,7 +15399,7 @@ const qm = {
|
|
|
15394
15399
|
o.value = !1, d(Array.from(m.dataTransfer?.files ?? []));
|
|
15395
15400
|
}
|
|
15396
15401
|
function p(m) {
|
|
15397
|
-
r("update:modelValue", e.modelValue.filter((_,
|
|
15402
|
+
r("update:modelValue", e.modelValue.filter((_, h) => h !== m));
|
|
15398
15403
|
}
|
|
15399
15404
|
function v(m) {
|
|
15400
15405
|
return m < 1024 ? `${m} B` : m < 1024 * 1024 ? `${(m / 1024).toFixed(1)} KB` : m < 1024 * 1024 * 1024 ? `${(m / 1024 / 1024).toFixed(1)} MB` : `${(m / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
@@ -15420,12 +15425,12 @@ const qm = {
|
|
|
15420
15425
|
role: "button",
|
|
15421
15426
|
tabindex: "0",
|
|
15422
15427
|
"aria-disabled": e.disabled,
|
|
15423
|
-
onDragenter: _[1] || (_[1] = ne((
|
|
15424
|
-
onDragover: _[2] || (_[2] = ne((
|
|
15425
|
-
onDragleave: _[3] || (_[3] = ne((
|
|
15428
|
+
onDragenter: _[1] || (_[1] = ne((h) => o.value = !0, ["prevent"])),
|
|
15429
|
+
onDragover: _[2] || (_[2] = ne((h) => o.value = !0, ["prevent"])),
|
|
15430
|
+
onDragleave: _[3] || (_[3] = ne((h) => o.value = !1, ["prevent"])),
|
|
15426
15431
|
onDrop: ne(c, ["prevent"]),
|
|
15427
|
-
onClick: _[4] || (_[4] = (
|
|
15428
|
-
onKeydown: _[5] || (_[5] = Se(ne((
|
|
15432
|
+
onClick: _[4] || (_[4] = (h) => n.value?.click()),
|
|
15433
|
+
onKeydown: _[5] || (_[5] = Se(ne((h) => n.value?.click(), ["prevent"]), ["enter", "space"]))
|
|
15429
15434
|
}, [
|
|
15430
15435
|
(y(), C(Ue(e.directory ? l(Rn) : l(Cl)), {
|
|
15431
15436
|
class: "mb-2 size-7 text-[var(--ui-primary)]",
|
|
@@ -15437,7 +15442,7 @@ const qm = {
|
|
|
15437
15442
|
class: "mt-3",
|
|
15438
15443
|
size: "sm",
|
|
15439
15444
|
disabled: e.disabled || !i.value,
|
|
15440
|
-
onClick: _[0] || (_[0] = ne((
|
|
15445
|
+
onClick: _[0] || (_[0] = ne((h) => n.value?.click(), ["stop"]))
|
|
15441
15446
|
}, {
|
|
15442
15447
|
default: b(() => [
|
|
15443
15448
|
ue("Choose " + W(e.directory ? "folder" : "files"), 1)
|
|
@@ -15453,8 +15458,8 @@ const qm = {
|
|
|
15453
15458
|
])) : R("", !0)
|
|
15454
15459
|
], 42, zm),
|
|
15455
15460
|
e.showList && e.modelValue.length ? (y(), D("div", Jm, [
|
|
15456
|
-
(y(!0), D(ee, null, pe(e.modelValue, (
|
|
15457
|
-
key: `${
|
|
15461
|
+
(y(!0), D(ee, null, pe(e.modelValue, (h, g) => (y(), D("div", {
|
|
15462
|
+
key: `${h.name}-${h.size}-${h.lastModified}`,
|
|
15458
15463
|
class: "flex min-h-10 items-center gap-2 border-b border-[var(--ui-border-subtle)] px-3 last:border-b-0"
|
|
15459
15464
|
}, [
|
|
15460
15465
|
P(l(ql), {
|
|
@@ -15462,18 +15467,18 @@ const qm = {
|
|
|
15462
15467
|
"aria-hidden": "true"
|
|
15463
15468
|
}),
|
|
15464
15469
|
z("div", Qm, [
|
|
15465
|
-
z("div",
|
|
15466
|
-
z("div",
|
|
15470
|
+
z("div", eg, W(h.name), 1),
|
|
15471
|
+
z("div", tg, W(v(h.size)), 1)
|
|
15467
15472
|
]),
|
|
15468
15473
|
k(m.$slots, "file-actions", {
|
|
15469
|
-
file:
|
|
15470
|
-
index:
|
|
15474
|
+
file: h,
|
|
15475
|
+
index: g
|
|
15471
15476
|
}),
|
|
15472
15477
|
P(ia, {
|
|
15473
|
-
label: `Remove ${
|
|
15478
|
+
label: `Remove ${h.name}`,
|
|
15474
15479
|
size: "sm",
|
|
15475
15480
|
disabled: e.disabled,
|
|
15476
|
-
onClick: (w) => p(
|
|
15481
|
+
onClick: (w) => p(g)
|
|
15477
15482
|
}, {
|
|
15478
15483
|
default: b(() => [
|
|
15479
15484
|
P(l(Ot), { class: "size-3.5" })
|
|
@@ -15484,7 +15489,7 @@ const qm = {
|
|
|
15484
15489
|
])) : R("", !0)
|
|
15485
15490
|
]));
|
|
15486
15491
|
}
|
|
15487
|
-
}),
|
|
15492
|
+
}), ag = ["data-ui-modal-scope", "tabindex"], uh = /* @__PURE__ */ q({
|
|
15488
15493
|
__name: "AppRoot",
|
|
15489
15494
|
props: {
|
|
15490
15495
|
modalScope: { default: "document" }
|
|
@@ -15528,12 +15533,12 @@ const qm = {
|
|
|
15528
15533
|
]),
|
|
15529
15534
|
_: 3
|
|
15530
15535
|
}, 8, ["teleport-to"])
|
|
15531
|
-
], 12,
|
|
15536
|
+
], 12, ag));
|
|
15532
15537
|
}
|
|
15533
|
-
}),
|
|
15538
|
+
}), rg = "data-ui-app", dh = `[${rg}]`, ng = {
|
|
15534
15539
|
key: 0,
|
|
15535
15540
|
class: "min-w-0 border-r border-[var(--ui-border)] bg-[var(--ui-surface)]"
|
|
15536
|
-
},
|
|
15541
|
+
}, og = { class: "flex min-w-0 flex-col bg-[var(--ui-surface)]" }, lg = { class: "min-h-0 flex-1" }, ch = /* @__PURE__ */ q({
|
|
15537
15542
|
__name: "AppLayout",
|
|
15538
15543
|
props: {
|
|
15539
15544
|
sidebarWidth: { default: "var(--ui-sidebar-width)" },
|
|
@@ -15545,29 +15550,29 @@ const qm = {
|
|
|
15545
15550
|
style: _e({ "--ui-app-sidebar-width": t.sidebarWidth, minHeight: t.minHeight }),
|
|
15546
15551
|
"data-syno-ui": ""
|
|
15547
15552
|
}, [
|
|
15548
|
-
a.$slots.sidebar ? (y(), D("aside",
|
|
15553
|
+
a.$slots.sidebar ? (y(), D("aside", ng, [
|
|
15549
15554
|
k(a.$slots, "sidebar")
|
|
15550
15555
|
])) : R("", !0),
|
|
15551
|
-
z("div",
|
|
15556
|
+
z("div", og, [
|
|
15552
15557
|
k(a.$slots, "toolbar"),
|
|
15553
|
-
z("main",
|
|
15558
|
+
z("main", lg, [
|
|
15554
15559
|
k(a.$slots, "default")
|
|
15555
15560
|
]),
|
|
15556
15561
|
k(a.$slots, "footer")
|
|
15557
15562
|
])
|
|
15558
15563
|
], 6));
|
|
15559
15564
|
}
|
|
15560
|
-
}),
|
|
15565
|
+
}), ig = {
|
|
15561
15566
|
class: "h-full overflow-auto px-1.5 py-1.5",
|
|
15562
15567
|
"aria-label": "Application navigation",
|
|
15563
15568
|
"data-syno-ui": ""
|
|
15564
|
-
},
|
|
15569
|
+
}, sg = ["aria-expanded", "onClick"], ug = {
|
|
15565
15570
|
key: 1,
|
|
15566
15571
|
class: "flex h-6 items-center px-[11px] text-[12px] font-bold text-[rgba(65,75,85,0.5)]"
|
|
15567
|
-
},
|
|
15572
|
+
}, dg = ["disabled", "aria-current", "onClick"], cg = { class: "min-w-0 flex-1 truncate" }, fg = {
|
|
15568
15573
|
key: 1,
|
|
15569
15574
|
class: "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[10px] font-semibold leading-none text-white"
|
|
15570
|
-
},
|
|
15575
|
+
}, fh = /* @__PURE__ */ q({
|
|
15571
15576
|
__name: "AppSidebar",
|
|
15572
15577
|
props: {
|
|
15573
15578
|
modelValue: {},
|
|
@@ -15590,7 +15595,7 @@ const qm = {
|
|
|
15590
15595
|
function d(f) {
|
|
15591
15596
|
f.disabled || (u("update:modelValue", f.key), u("select", f));
|
|
15592
15597
|
}
|
|
15593
|
-
return (f, c) => (y(), D("nav",
|
|
15598
|
+
return (f, c) => (y(), D("nav", ig, [
|
|
15594
15599
|
e.searchable ? (y(), C(em, {
|
|
15595
15600
|
key: 0,
|
|
15596
15601
|
modelValue: r.value,
|
|
@@ -15608,44 +15613,44 @@ const qm = {
|
|
|
15608
15613
|
"data-group-toggle": "",
|
|
15609
15614
|
"aria-expanded": s(v),
|
|
15610
15615
|
class: "flex h-6 w-full items-center gap-1 border-0 bg-transparent px-[11px] text-left text-[12px] font-bold text-[rgba(65,75,85,0.5)] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
15611
|
-
onClick: (
|
|
15616
|
+
onClick: (h) => i(v)
|
|
15612
15617
|
}, [
|
|
15613
15618
|
P(l(Wt), {
|
|
15614
15619
|
class: ae(["size-3 shrink-0 transition-transform", !s(v) && "-rotate-90"]),
|
|
15615
15620
|
"aria-hidden": "true"
|
|
15616
15621
|
}, null, 8, ["class"]),
|
|
15617
15622
|
ue(" " + W(p.label), 1)
|
|
15618
|
-
], 8,
|
|
15619
|
-
s(v) ? (y(!0), D(ee, { key: 2 }, pe(m, (
|
|
15620
|
-
key:
|
|
15623
|
+
], 8, sg)) : p.label ? (y(), D("div", ug, W(p.label), 1)) : R("", !0),
|
|
15624
|
+
s(v) ? (y(!0), D(ee, { key: 2 }, pe(m, (h) => (y(), D("button", {
|
|
15625
|
+
key: h.key,
|
|
15621
15626
|
type: "button",
|
|
15622
15627
|
"data-nav-item": "",
|
|
15623
|
-
disabled:
|
|
15624
|
-
"aria-current": e.modelValue ===
|
|
15628
|
+
disabled: h.disabled,
|
|
15629
|
+
"aria-current": e.modelValue === h.key ? "page" : void 0,
|
|
15625
15630
|
class: ae([
|
|
15626
15631
|
"flex h-[var(--ui-nav-row-height)] w-full items-center border-0 gap-[var(--ui-space-2)] rounded-[var(--ui-radius-lg)] px-[var(--ui-space-3)] text-left text-[length:var(--ui-font-size-lg)] outline-none transition-colors focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
15627
|
-
e.modelValue ===
|
|
15632
|
+
e.modelValue === h.key ? "bg-[var(--ui-surface-selected)] text-[var(--ui-text)]" : "bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]"
|
|
15628
15633
|
]),
|
|
15629
|
-
onClick: (
|
|
15634
|
+
onClick: (g) => d(h)
|
|
15630
15635
|
}, [
|
|
15631
|
-
|
|
15636
|
+
h.icon ? (y(), C(Ue(h.icon), {
|
|
15632
15637
|
key: 0,
|
|
15633
15638
|
class: "size-[22px] shrink-0",
|
|
15634
15639
|
"aria-hidden": "true"
|
|
15635
15640
|
})) : R("", !0),
|
|
15636
|
-
z("span",
|
|
15637
|
-
|
|
15638
|
-
], 10,
|
|
15641
|
+
z("span", cg, W(h.label), 1),
|
|
15642
|
+
h.badge !== void 0 ? (y(), D("span", fg, W(h.badge), 1)) : R("", !0)
|
|
15643
|
+
], 10, dg))), 128)) : R("", !0)
|
|
15639
15644
|
], 2))), 128))
|
|
15640
15645
|
]));
|
|
15641
15646
|
}
|
|
15642
|
-
}),
|
|
15647
|
+
}), pg = {
|
|
15643
15648
|
key: 0,
|
|
15644
15649
|
class: "flex shrink-0 items-center gap-1.5"
|
|
15645
|
-
},
|
|
15650
|
+
}, vg = { class: "min-w-0 flex-1" }, yg = {
|
|
15646
15651
|
key: 1,
|
|
15647
15652
|
class: "ml-auto flex shrink-0 items-center gap-2"
|
|
15648
|
-
},
|
|
15653
|
+
}, ph = /* @__PURE__ */ q({
|
|
15649
15654
|
__name: "AppToolbar",
|
|
15650
15655
|
props: {
|
|
15651
15656
|
height: { default: "var(--ui-toolbar-height)" }
|
|
@@ -15656,70 +15661,70 @@ const qm = {
|
|
|
15656
15661
|
style: _e({ minHeight: t.height }),
|
|
15657
15662
|
"data-syno-ui": ""
|
|
15658
15663
|
}, [
|
|
15659
|
-
a.$slots.leading ? (y(), D("div",
|
|
15664
|
+
a.$slots.leading ? (y(), D("div", pg, [
|
|
15660
15665
|
k(a.$slots, "leading")
|
|
15661
15666
|
])) : R("", !0),
|
|
15662
|
-
z("div",
|
|
15667
|
+
z("div", vg, [
|
|
15663
15668
|
k(a.$slots, "default")
|
|
15664
15669
|
]),
|
|
15665
|
-
a.$slots.actions ? (y(), D("div",
|
|
15670
|
+
a.$slots.actions ? (y(), D("div", yg, [
|
|
15666
15671
|
k(a.$slots, "actions")
|
|
15667
15672
|
])) : R("", !0)
|
|
15668
15673
|
], 4));
|
|
15669
15674
|
}
|
|
15670
|
-
}),
|
|
15675
|
+
}), mg = (t, a) => {
|
|
15671
15676
|
const e = t.__vccOpts || t;
|
|
15672
15677
|
for (const [r, n] of a)
|
|
15673
15678
|
e[r] = n;
|
|
15674
15679
|
return e;
|
|
15675
|
-
},
|
|
15680
|
+
}, gg = {}, hg = {
|
|
15676
15681
|
class: "flex min-h-12 items-center gap-2 border-t border-[var(--ui-border)] bg-[var(--ui-surface)] px-4 py-2",
|
|
15677
15682
|
"data-syno-ui": ""
|
|
15678
|
-
},
|
|
15683
|
+
}, bg = {
|
|
15679
15684
|
key: 0,
|
|
15680
15685
|
class: "mr-auto flex items-center gap-2"
|
|
15681
|
-
},
|
|
15682
|
-
function
|
|
15683
|
-
return y(), D("footer",
|
|
15684
|
-
t.$slots.leading ? (y(), D("div",
|
|
15686
|
+
}, _g = { class: "ml-auto flex items-center gap-2" };
|
|
15687
|
+
function wg(t, a) {
|
|
15688
|
+
return y(), D("footer", hg, [
|
|
15689
|
+
t.$slots.leading ? (y(), D("div", bg, [
|
|
15685
15690
|
k(t.$slots, "leading")
|
|
15686
15691
|
])) : R("", !0),
|
|
15687
|
-
z("div",
|
|
15692
|
+
z("div", _g, [
|
|
15688
15693
|
k(t.$slots, "default")
|
|
15689
15694
|
])
|
|
15690
15695
|
]);
|
|
15691
15696
|
}
|
|
15692
|
-
const
|
|
15697
|
+
const vh = /* @__PURE__ */ mg(gg, [["render", wg]]), xg = {
|
|
15693
15698
|
class: "flex items-start justify-between gap-[var(--ui-space-6)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]",
|
|
15694
15699
|
"data-syno-ui": ""
|
|
15695
|
-
},
|
|
15700
|
+
}, Cg = { class: "min-w-0" }, qg = { class: "text-[18px] font-semibold tracking-[-0.01em] text-[var(--ui-text)]" }, Sg = {
|
|
15696
15701
|
key: 0,
|
|
15697
15702
|
class: "mt-1 max-w-3xl text-[13px] leading-5 text-[var(--ui-text-muted)]"
|
|
15698
|
-
},
|
|
15703
|
+
}, kg = {
|
|
15699
15704
|
key: 0,
|
|
15700
15705
|
class: "flex shrink-0 items-center gap-2"
|
|
15701
|
-
},
|
|
15706
|
+
}, yh = /* @__PURE__ */ q({
|
|
15702
15707
|
__name: "PageHeader",
|
|
15703
15708
|
props: {
|
|
15704
15709
|
title: {},
|
|
15705
15710
|
description: {}
|
|
15706
15711
|
},
|
|
15707
15712
|
setup(t) {
|
|
15708
|
-
return (a, e) => (y(), D("div",
|
|
15709
|
-
z("div",
|
|
15710
|
-
z("h1",
|
|
15711
|
-
t.description ? (y(), D("p",
|
|
15713
|
+
return (a, e) => (y(), D("div", xg, [
|
|
15714
|
+
z("div", Cg, [
|
|
15715
|
+
z("h1", qg, W(t.title), 1),
|
|
15716
|
+
t.description ? (y(), D("p", Sg, W(t.description), 1)) : R("", !0)
|
|
15712
15717
|
]),
|
|
15713
|
-
a.$slots.actions ? (y(), D("div",
|
|
15718
|
+
a.$slots.actions ? (y(), D("div", kg, [
|
|
15714
15719
|
k(a.$slots, "actions")
|
|
15715
15720
|
])) : R("", !0)
|
|
15716
15721
|
]));
|
|
15717
15722
|
}
|
|
15718
|
-
}),
|
|
15723
|
+
}), Og = {
|
|
15719
15724
|
class: "flex h-[30px] items-end border-b border-[var(--ui-border)] px-2",
|
|
15720
15725
|
"aria-label": "Sections",
|
|
15721
15726
|
"data-syno-ui": ""
|
|
15722
|
-
},
|
|
15727
|
+
}, Pg = ["disabled", "aria-current", "onClick"], mh = /* @__PURE__ */ q({
|
|
15723
15728
|
__name: "SectionTabs",
|
|
15724
15729
|
props: {
|
|
15725
15730
|
modelValue: {},
|
|
@@ -15728,7 +15733,7 @@ const vg = /* @__PURE__ */ mh(hh, [["render", wh]]), xh = {
|
|
|
15728
15733
|
emits: ["update:modelValue"],
|
|
15729
15734
|
setup(t, { emit: a }) {
|
|
15730
15735
|
const e = t, r = a;
|
|
15731
|
-
return (n, o) => (y(), D("nav",
|
|
15736
|
+
return (n, o) => (y(), D("nav", Og, [
|
|
15732
15737
|
(y(!0), D(ee, null, pe(e.items, (i) => (y(), D("button", {
|
|
15733
15738
|
key: i.value,
|
|
15734
15739
|
type: "button",
|
|
@@ -15739,57 +15744,57 @@ const vg = /* @__PURE__ */ mh(hh, [["render", wh]]), xh = {
|
|
|
15739
15744
|
e.modelValue === i.value ? "text-[var(--ui-primary)] after:absolute after:right-0 after:bottom-[-1px] after:left-0 after:h-0.5 after:bg-[var(--ui-primary)]" : "text-[var(--ui-text)] hover:text-[var(--ui-primary)]"
|
|
15740
15745
|
]),
|
|
15741
15746
|
onClick: (s) => r("update:modelValue", i.value)
|
|
15742
|
-
}, W(i.label), 11,
|
|
15747
|
+
}, W(i.label), 11, Pg))), 128))
|
|
15743
15748
|
]));
|
|
15744
15749
|
}
|
|
15745
15750
|
});
|
|
15746
15751
|
export {
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15752
|
+
rg as APP_ROOT_ATTRIBUTE,
|
|
15753
|
+
dh as APP_ROOT_SELECTOR,
|
|
15754
|
+
eh as Accordion,
|
|
15755
|
+
vh as AppActionBar,
|
|
15756
|
+
ch as AppLayout,
|
|
15757
|
+
uh as AppRoot,
|
|
15758
|
+
fh as AppSidebar,
|
|
15759
|
+
ph as AppToolbar,
|
|
15760
|
+
Fg as Badge,
|
|
15756
15761
|
Bl as Button,
|
|
15757
|
-
|
|
15762
|
+
rh as Callout,
|
|
15758
15763
|
_n as Checkbox,
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15764
|
+
Ug as ContextMenu,
|
|
15765
|
+
lh as DataGrid,
|
|
15766
|
+
oh as DataTable,
|
|
15767
|
+
Xg as DatePicker,
|
|
15768
|
+
Gg as Dialog,
|
|
15769
|
+
Yg as Drawer,
|
|
15765
15770
|
Sy as DropdownMenu,
|
|
15766
|
-
|
|
15767
|
-
|
|
15771
|
+
nh as EmptyState,
|
|
15772
|
+
sh as FilePicker,
|
|
15768
15773
|
ia as IconButton,
|
|
15769
|
-
|
|
15770
|
-
|
|
15774
|
+
Tg as Input,
|
|
15775
|
+
Lg as LoadingArea,
|
|
15771
15776
|
Qo as LoadingIndicator,
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15777
|
+
gy as LoadingMask,
|
|
15778
|
+
yh as PageHeader,
|
|
15779
|
+
jg as Popover,
|
|
15780
|
+
Ng as Progress,
|
|
15781
|
+
Rg as RadioGroup,
|
|
15777
15782
|
em as SearchField,
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15783
|
+
mh as SectionTabs,
|
|
15784
|
+
Mg as Select,
|
|
15785
|
+
Vg as Separator,
|
|
15786
|
+
th as SettingsRow,
|
|
15787
|
+
ah as SettingsSection,
|
|
15788
|
+
Yg as Sheet,
|
|
15789
|
+
Kg as Skeleton,
|
|
15785
15790
|
Ln as Spinner,
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15791
|
+
Hg as SplitButton,
|
|
15792
|
+
zg as Surface,
|
|
15793
|
+
Ig as Switch,
|
|
15794
|
+
Qg as Tabs,
|
|
15795
|
+
Bg as Textarea,
|
|
15796
|
+
Jg as ToastProvider,
|
|
15797
|
+
Wg as Tooltip,
|
|
15798
|
+
ih as TreeView,
|
|
15799
|
+
Zg as useToast
|
|
15795
15800
|
};
|