@synopackageland/ui 0.17.11 → 0.17.12
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/CHANGELOG.md +4 -0
- package/README.md +17 -0
- package/dist/components/composite/upload-queue/UploadQueue.vue.d.ts +2 -0
- package/dist/index.js +851 -851
- package/dist/lib/uploadQueue.d.ts +5 -1
- package/dist/reka-runtime.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2179,8 +2179,8 @@ const ev = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
2179
2179
|
setup(e) {
|
|
2180
2180
|
const a = e, t = Rt(() => a.disabled), { pending: n, onClick: o } = Nu(() => a.onClick), r = g(() => a.loading || n.value), l = { sm: "h-[var(--ui-control-sm)] px-2.5", md: "h-[var(--ui-control-md)] px-[13px]", lg: "h-[var(--ui-control-lg)] px-4" }, s = P(null), u = P(null), d = P(!1);
|
|
2181
2181
|
function f() {
|
|
2182
|
-
const h = s.value,
|
|
2183
|
-
|
|
2182
|
+
const h = s.value, b = !!h && !h.textContent?.trim() && !!h.querySelector(":scope > svg");
|
|
2183
|
+
b !== d.value && (d.value = b);
|
|
2184
2184
|
}
|
|
2185
2185
|
qe(f), Pn(f);
|
|
2186
2186
|
const p = g(() => a.variant === "primary" || a.variant === "danger"), v = Jp(() => a.kind), m = g(
|
|
@@ -2196,7 +2196,7 @@ const ev = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
2196
2196
|
a.variant === "danger" && "border-[var(--ui-danger)] bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)] shadow-[var(--ui-shadow-control)] [--ui-spin-color:var(--ui-danger-foreground)] hover:border-[var(--ui-danger-hover)] hover:bg-[var(--ui-danger-hover)] active:border-[var(--ui-danger-active)] active:bg-[var(--ui-danger-active)] active:shadow-[var(--ui-shadow-control-active)] data-[disabled]:shadow-none data-[disabled]:border-[color-mix(in_srgb,var(--ui-danger)_30%,var(--ui-surface))] data-[disabled]:bg-[color-mix(in_srgb,var(--ui-danger)_12%,var(--ui-surface))] data-[disabled]:text-[color-mix(in_srgb,var(--ui-danger)_55%,var(--ui-text))]"
|
|
2197
2197
|
)
|
|
2198
2198
|
);
|
|
2199
|
-
return (h,
|
|
2199
|
+
return (h, b) => (c(), y("button", {
|
|
2200
2200
|
ref_key: "buttonEl",
|
|
2201
2201
|
ref: u,
|
|
2202
2202
|
type: e.type,
|
|
@@ -2208,8 +2208,8 @@ const ev = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
2208
2208
|
"data-variant": e.variant,
|
|
2209
2209
|
"aria-busy": r.value || void 0,
|
|
2210
2210
|
"data-syno-pkg-land-ui": "",
|
|
2211
|
-
onClick:
|
|
2212
|
-
(...
|
|
2211
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
|
2212
|
+
(...w) => i(o) && i(o)(...w))
|
|
2213
2213
|
}, [
|
|
2214
2214
|
r.value ? (c(), y("span", tv, [
|
|
2215
2215
|
O(Jt, { size: 16 })
|
|
@@ -2281,10 +2281,10 @@ function gt(e) {
|
|
|
2281
2281
|
r.value?.setDisabled(!1), t?.releaseControl?.(n);
|
|
2282
2282
|
});
|
|
2283
2283
|
const u = () => ({ class: a.class, style: a.style }), d = () => {
|
|
2284
|
-
const v = Object.fromEntries(Object.entries(a).filter(([
|
|
2284
|
+
const v = Object.fromEntries(Object.entries(a).filter(([w]) => w !== "class" && w !== "style")), m = [...new Set(`${r.value?.describedBy ?? ""} ${v["aria-describedby"] ?? ""}`.split(/\s+/).filter(Boolean))].join(" ") || void 0, h = e.ariaLabel?.() || v["aria-label"], b = e.id?.() ?? v.id ?? r.value?.controlId;
|
|
2285
2285
|
return {
|
|
2286
2286
|
...ae({ onBlur: r.value?.onBlur }, v),
|
|
2287
|
-
id:
|
|
2287
|
+
id: b === void 0 ? void 0 : String(b),
|
|
2288
2288
|
"aria-labelledby": e.ariaLabelledby?.() ?? v["aria-labelledby"] ?? (h ? void 0 : r.value?.labelId),
|
|
2289
2289
|
"aria-label": h === void 0 ? void 0 : String(h),
|
|
2290
2290
|
"aria-invalid": v["aria-invalid"] ?? (e.invalid?.() || r.value?.invalid || void 0),
|
|
@@ -2335,12 +2335,12 @@ const sv = ["value", "type", "name", "placeholder", "disabled", "readonly"], uv
|
|
|
2335
2335
|
t.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)]",
|
|
2336
2336
|
t.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-control)]",
|
|
2337
2337
|
t.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)]",
|
|
2338
|
-
|
|
2338
|
+
b.value ? "border-[var(--ui-danger)] focus:border-[var(--ui-danger)]" : "border-[var(--ui-border)] focus:border-[var(--ui-primary)] enabled:hover:not-focus:border-[var(--ui-control-border-hover)]"
|
|
2339
2339
|
)
|
|
2340
2340
|
);
|
|
2341
2341
|
ju(() => t.type === "number" ? void 0 : "sm");
|
|
2342
|
-
const { controlAttrs: v, wrapperAttrs: m, changed: h, invalid:
|
|
2343
|
-
return (
|
|
2342
|
+
const { controlAttrs: v, wrapperAttrs: m, changed: h, invalid: b } = gt({ value: () => t.modelValue, disabled: () => n.value, id: () => t.id, ariaLabel: () => t.ariaLabel, ariaLabelledby: () => t.ariaLabelledby, invalid: () => t.invalid });
|
|
2343
|
+
return (w, x) => d.value || s.value ? (c(), y("span", ae({ key: 0 }, i(m)(), {
|
|
2344
2344
|
class: ["flex min-w-0 items-center gap-2", t.type === "number" ? "max-w-full" : "w-full"],
|
|
2345
2345
|
"data-syno-pkg-land-ui": ""
|
|
2346
2346
|
}), [
|
|
@@ -2385,7 +2385,7 @@ const sv = ["value", "type", "name", "placeholder", "disabled", "readonly"], uv
|
|
|
2385
2385
|
"data-ui-input-unit": "",
|
|
2386
2386
|
class: J(["shrink-0 whitespace-nowrap text-[13px] leading-5", i(n) ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text)]"])
|
|
2387
2387
|
}, [
|
|
2388
|
-
S(
|
|
2388
|
+
S(w.$slots, "unit", {}, () => [
|
|
2389
2389
|
ue(V(e.unit), 1)
|
|
2390
2390
|
])
|
|
2391
2391
|
], 2)) : q("", !0)
|
|
@@ -2876,20 +2876,20 @@ function je(e, a, t, n = {}) {
|
|
|
2876
2876
|
const { clone: l = !1, passive: s = !1, eventName: u, deep: d = !1, defaultValue: f, shouldEmit: p } = n, v = Ct(), m = t || v?.emit || (v == null || (o = v.$emit) === null || o === void 0 ? void 0 : o.bind(v)) || (v == null || (r = v.proxy) === null || r === void 0 || (r = r.$emit) === null || r === void 0 ? void 0 : r.bind(v?.proxy));
|
|
2877
2877
|
let h = u;
|
|
2878
2878
|
a || (a = "modelValue"), h = h || `update:${a.toString()}`;
|
|
2879
|
-
const
|
|
2879
|
+
const b = (C) => l ? typeof l == "function" ? l(C) : Bv(C) : C, w = () => gv(e[a]) ? b(e[a]) : f, x = (C) => {
|
|
2880
2880
|
p ? p(C) && m(h, C) : m(h, C);
|
|
2881
2881
|
};
|
|
2882
2882
|
if (s) {
|
|
2883
|
-
const C = P(
|
|
2883
|
+
const C = P(w());
|
|
2884
2884
|
let E = !1;
|
|
2885
2885
|
return ve(() => e[a], (k) => {
|
|
2886
|
-
E || (E = !0, C.value =
|
|
2886
|
+
E || (E = !0, C.value = b(k), De(() => E = !1));
|
|
2887
2887
|
}), ve(C, (k) => {
|
|
2888
2888
|
!E && (k !== e[a] || d) && x(k);
|
|
2889
2889
|
}, { deep: d }), C;
|
|
2890
2890
|
} else return g({
|
|
2891
2891
|
get() {
|
|
2892
|
-
return
|
|
2892
|
+
return w();
|
|
2893
2893
|
},
|
|
2894
2894
|
set(C) {
|
|
2895
2895
|
x(C);
|
|
@@ -2902,7 +2902,7 @@ function Xi(e) {
|
|
|
2902
2902
|
const Dv = ["INPUT", "TEXTAREA"];
|
|
2903
2903
|
function ai(e, a, t, n = {}) {
|
|
2904
2904
|
if (!a || n.enableIgnoredElement && Dv.includes(a.nodeName)) return null;
|
|
2905
|
-
const { arrowKeyOptions: o = "both", attributeName: r = "[data-reka-collection-item]", itemsArray: l = [], loop: s = !0, dir: u = "ltr", preventScroll: d = !0, focus: f = !1 } = n, [p, v, m, h,
|
|
2905
|
+
const { arrowKeyOptions: o = "both", attributeName: r = "[data-reka-collection-item]", itemsArray: l = [], loop: s = !0, dir: u = "ltr", preventScroll: d = !0, focus: f = !1 } = n, [p, v, m, h, b, w] = [
|
|
2906
2906
|
e.key === "ArrowRight",
|
|
2907
2907
|
e.key === "ArrowLeft",
|
|
2908
2908
|
e.key === "ArrowUp",
|
|
@@ -2910,7 +2910,7 @@ function ai(e, a, t, n = {}) {
|
|
|
2910
2910
|
e.key === "Home",
|
|
2911
2911
|
e.key === "End"
|
|
2912
2912
|
], x = m || h, C = p || v;
|
|
2913
|
-
if (!
|
|
2913
|
+
if (!b && !w && (!x && !C || o === "vertical" && C || o === "horizontal" && x)) return null;
|
|
2914
2914
|
const E = t ? Array.from(t.querySelectorAll(r)) : l;
|
|
2915
2915
|
if (!E.length) return null;
|
|
2916
2916
|
d && e.preventDefault();
|
|
@@ -2918,7 +2918,7 @@ function ai(e, a, t, n = {}) {
|
|
|
2918
2918
|
return C || x ? k = Xu(E, a, {
|
|
2919
2919
|
goForward: x ? h : u === "ltr" ? p : v,
|
|
2920
2920
|
loop: s
|
|
2921
|
-
}) :
|
|
2921
|
+
}) : b ? k = E.at(0) || null : w && (k = E.at(-1) || null), f && k?.focus(), k;
|
|
2922
2922
|
}
|
|
2923
2923
|
function Xu(e, a, t, n = e.includes(a) ? e.length : e.length + 1) {
|
|
2924
2924
|
if (--n === 0) return null;
|
|
@@ -3113,9 +3113,9 @@ class zv {
|
|
|
3113
3113
|
if (f.document.size) throw new Error(Zi);
|
|
3114
3114
|
const p = { element: r, modal: s, emits: o };
|
|
3115
3115
|
f.local.add(this), this.layers.push(p);
|
|
3116
|
-
const v = r.closest("[data-reka-popper-content-wrapper]") ?? r, m = String(1401 + this.layers.length * 2), h = v.hasAttribute("data-reka-popper-content-wrapper") ? Lv(v, "--ui-local-layer-z", m) : Tr(v, "z-index", m),
|
|
3116
|
+
const v = r.closest("[data-reka-popper-content-wrapper]") ?? r, m = String(1401 + this.layers.length * 2), h = v.hasAttribute("data-reka-popper-content-wrapper") ? Lv(v, "--ui-local-layer-z", m) : Tr(v, "z-index", m), b = r.previousElementSibling, w = s && b?.getAttribute("data-ui-overlay") === "" ? Tr(b, "z-index", String(1400 + this.layers.length * 2)) : void 0;
|
|
3117
3117
|
this.reconcile(), d(() => {
|
|
3118
|
-
this.layers = this.layers.filter((x) => x !== p), h(),
|
|
3118
|
+
this.layers = this.layers.filter((x) => x !== p), h(), w?.(), this.reconcile(), this.layers.length || f.local.delete(this);
|
|
3119
3119
|
});
|
|
3120
3120
|
}, { immediate: !0, flush: "post" });
|
|
3121
3121
|
}
|
|
@@ -3278,17 +3278,17 @@ const Ju = Vv(), Nv = /* @__PURE__ */ Yu(() => {
|
|
|
3278
3278
|
a = () => {
|
|
3279
3279
|
p(), v(), nt.layersWithOutsidePointerEventsDisabled.size === 0 && h(), m(), f();
|
|
3280
3280
|
};
|
|
3281
|
-
const
|
|
3282
|
-
padding:
|
|
3281
|
+
const b = window.innerWidth - document.documentElement.clientWidth, w = {
|
|
3282
|
+
padding: b,
|
|
3283
3283
|
margin: 0
|
|
3284
3284
|
}, x = o.scrollBody?.value ? typeof o.scrollBody.value == "object" ? Ju({
|
|
3285
|
-
padding: o.scrollBody.value.padding === !0 ?
|
|
3286
|
-
margin: o.scrollBody.value.margin === !0 ?
|
|
3287
|
-
},
|
|
3285
|
+
padding: o.scrollBody.value.padding === !0 ? b : o.scrollBody.value.padding,
|
|
3286
|
+
margin: o.scrollBody.value.margin === !0 ? b : o.scrollBody.value.margin
|
|
3287
|
+
}, w) : w : {
|
|
3288
3288
|
padding: 0,
|
|
3289
3289
|
margin: 0
|
|
3290
3290
|
};
|
|
3291
|
-
|
|
3291
|
+
b > 0 && (document.body.style.paddingRight = typeof x.padding == "number" ? `${x.padding}px` : String(x.padding), document.body.style.marginRight = typeof x.margin == "number" ? `${x.margin}px` : String(x.margin), document.documentElement.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), ms && (r = Nt(document, "touchmove", (C) => Kv(C), { passive: !1 })), De(() => {
|
|
3292
3292
|
n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
|
|
3293
3293
|
});
|
|
3294
3294
|
}, {
|
|
@@ -3414,22 +3414,22 @@ function bs(e, a) {
|
|
|
3414
3414
|
return t;
|
|
3415
3415
|
}
|
|
3416
3416
|
function qr(e) {
|
|
3417
|
-
const { dateObj: a, weekStartsOn: t, fixedWeeks: n, locale: o } = e, r = Va(a), l = Array.from({ length: r }, (
|
|
3417
|
+
const { dateObj: a, weekStartsOn: t, fixedWeeks: n, locale: o } = e, r = Va(a), l = Array.from({ length: r }, (w, x) => a.set({ day: x + 1 })), s = Hp(a), u = fs(a), d = Yv(s, t, o), f = Xv(u, t, o), p = bs(d.subtract({ days: 1 }), s), v = bs(u, f.add({ days: 1 })), m = p.length + l.length + v.length;
|
|
3418
3418
|
if (n && m < 42) {
|
|
3419
|
-
const
|
|
3419
|
+
const w = 42 - m;
|
|
3420
3420
|
let x = v.at(-1);
|
|
3421
3421
|
x || (x = fs(a));
|
|
3422
|
-
const C = Array.from({ length:
|
|
3422
|
+
const C = Array.from({ length: w }, (E, k) => {
|
|
3423
3423
|
const T = k + 1;
|
|
3424
3424
|
return x.add({ days: T });
|
|
3425
3425
|
});
|
|
3426
3426
|
v.push(...C);
|
|
3427
3427
|
}
|
|
3428
|
-
const h = p.concat(l, v),
|
|
3428
|
+
const h = p.concat(l, v), b = Zv(h, 7);
|
|
3429
3429
|
return {
|
|
3430
3430
|
value: a,
|
|
3431
3431
|
cells: h,
|
|
3432
|
-
rows:
|
|
3432
|
+
rows: b
|
|
3433
3433
|
};
|
|
3434
3434
|
}
|
|
3435
3435
|
function ba(e) {
|
|
@@ -3461,38 +3461,38 @@ function Qv(e, a = {}) {
|
|
|
3461
3461
|
function n() {
|
|
3462
3462
|
return t.value;
|
|
3463
3463
|
}
|
|
3464
|
-
function o(
|
|
3465
|
-
t.value =
|
|
3464
|
+
function o(w) {
|
|
3465
|
+
t.value = w;
|
|
3466
3466
|
}
|
|
3467
|
-
function r(
|
|
3467
|
+
function r(w, x) {
|
|
3468
3468
|
return new Gt(t.value, {
|
|
3469
3469
|
...a,
|
|
3470
3470
|
...x
|
|
3471
|
-
}).format(
|
|
3471
|
+
}).format(w);
|
|
3472
3472
|
}
|
|
3473
|
-
function l(
|
|
3474
|
-
return Gv(
|
|
3473
|
+
function l(w, x = !0) {
|
|
3474
|
+
return Gv(w) && x ? r(Lt(w), {
|
|
3475
3475
|
dateStyle: "long",
|
|
3476
3476
|
timeStyle: "long"
|
|
3477
|
-
}) : r(Lt(
|
|
3477
|
+
}) : r(Lt(w), { dateStyle: "long" });
|
|
3478
3478
|
}
|
|
3479
|
-
function s(
|
|
3479
|
+
function s(w, x = {}) {
|
|
3480
3480
|
return new Gt(t.value, {
|
|
3481
3481
|
...a,
|
|
3482
3482
|
month: "long",
|
|
3483
3483
|
year: "numeric",
|
|
3484
3484
|
...x
|
|
3485
|
-
}).format(
|
|
3485
|
+
}).format(w);
|
|
3486
3486
|
}
|
|
3487
|
-
function u(
|
|
3487
|
+
function u(w, x = {}) {
|
|
3488
3488
|
return new Gt(t.value, {
|
|
3489
3489
|
...a,
|
|
3490
3490
|
month: "long",
|
|
3491
3491
|
...x
|
|
3492
|
-
}).format(
|
|
3492
|
+
}).format(w);
|
|
3493
3493
|
}
|
|
3494
3494
|
function d() {
|
|
3495
|
-
const
|
|
3495
|
+
const w = Up(Ki());
|
|
3496
3496
|
return [
|
|
3497
3497
|
1,
|
|
3498
3498
|
2,
|
|
@@ -3507,34 +3507,34 @@ function Qv(e, a = {}) {
|
|
|
3507
3507
|
11,
|
|
3508
3508
|
12
|
|
3509
3509
|
].map((C) => ({
|
|
3510
|
-
label: u(Lt(
|
|
3510
|
+
label: u(Lt(w.set({ month: C }))),
|
|
3511
3511
|
value: C
|
|
3512
3512
|
}));
|
|
3513
3513
|
}
|
|
3514
|
-
function f(
|
|
3514
|
+
function f(w, x = {}) {
|
|
3515
3515
|
return new Gt(t.value, {
|
|
3516
3516
|
...a,
|
|
3517
3517
|
year: "numeric",
|
|
3518
3518
|
...x
|
|
3519
|
-
}).format(
|
|
3519
|
+
}).format(w);
|
|
3520
3520
|
}
|
|
3521
|
-
function p(
|
|
3522
|
-
return Qi(
|
|
3521
|
+
function p(w, x) {
|
|
3522
|
+
return Qi(w) ? new Gt(t.value, {
|
|
3523
3523
|
...a,
|
|
3524
3524
|
...x,
|
|
3525
|
-
timeZone:
|
|
3526
|
-
}).formatToParts(Lt(
|
|
3525
|
+
timeZone: w.timeZone
|
|
3526
|
+
}).formatToParts(Lt(w)) : new Gt(t.value, {
|
|
3527
3527
|
...a,
|
|
3528
3528
|
...x
|
|
3529
|
-
}).formatToParts(Lt(
|
|
3529
|
+
}).formatToParts(Lt(w));
|
|
3530
3530
|
}
|
|
3531
|
-
function v(
|
|
3531
|
+
function v(w, x = "narrow") {
|
|
3532
3532
|
return new Gt(t.value, {
|
|
3533
3533
|
...a,
|
|
3534
3534
|
weekday: x
|
|
3535
|
-
}).format(
|
|
3535
|
+
}).format(w);
|
|
3536
3536
|
}
|
|
3537
|
-
function m(
|
|
3537
|
+
function m(w, x) {
|
|
3538
3538
|
const C = new Gt(t.value, {
|
|
3539
3539
|
...a,
|
|
3540
3540
|
hour: "numeric",
|
|
@@ -3542,7 +3542,7 @@ function Qv(e, a = {}) {
|
|
|
3542
3542
|
hour12: void 0,
|
|
3543
3543
|
numberingSystem: "latn",
|
|
3544
3544
|
...x ? { timeZone: x } : {}
|
|
3545
|
-
}).formatToParts(
|
|
3545
|
+
}).formatToParts(w), E = Number(C.find((k) => k.type === "hour")?.value);
|
|
3546
3546
|
return !Number.isNaN(E) && E >= 12 ? "PM" : "AM";
|
|
3547
3547
|
}
|
|
3548
3548
|
const h = {
|
|
@@ -3553,11 +3553,11 @@ function Qv(e, a = {}) {
|
|
|
3553
3553
|
minute: "numeric",
|
|
3554
3554
|
second: "numeric"
|
|
3555
3555
|
};
|
|
3556
|
-
function w
|
|
3556
|
+
function b(w, x, C = {}) {
|
|
3557
3557
|
const E = {
|
|
3558
3558
|
...h,
|
|
3559
3559
|
...C
|
|
3560
|
-
}, T = p(
|
|
3560
|
+
}, T = p(w, E).find((I) => I.type === x);
|
|
3561
3561
|
return T ? T.value : "";
|
|
3562
3562
|
}
|
|
3563
3563
|
return {
|
|
@@ -3568,7 +3568,7 @@ function Qv(e, a = {}) {
|
|
|
3568
3568
|
fullMonthAndYear: s,
|
|
3569
3569
|
toParts: p,
|
|
3570
3570
|
custom: r,
|
|
3571
|
-
part:
|
|
3571
|
+
part: b,
|
|
3572
3572
|
dayPeriod: m,
|
|
3573
3573
|
selectedDate: l,
|
|
3574
3574
|
dayOfWeek: v,
|
|
@@ -3723,8 +3723,8 @@ function em(e, a) {
|
|
|
3723
3723
|
const p = f.target, v = {
|
|
3724
3724
|
x: f.clientX,
|
|
3725
3725
|
y: f.clientY
|
|
3726
|
-
}, m = e.value?.contains(p) || a.value?.contains(p), h = !om(v, n.value),
|
|
3727
|
-
m ? r() : (h ||
|
|
3726
|
+
}, m = e.value?.contains(p) || a.value?.contains(p), h = !om(v, n.value), b = !!p.closest("[data-grace-area-trigger]");
|
|
3727
|
+
m ? r() : (h || b) && (r(), o.trigger());
|
|
3728
3728
|
}, d = e.value?.ownerDocument;
|
|
3729
3729
|
d?.addEventListener("pointermove", u), s(() => d?.removeEventListener("pointermove", u));
|
|
3730
3730
|
}
|
|
@@ -3878,8 +3878,8 @@ var lm = function(e) {
|
|
|
3878
3878
|
f(v);
|
|
3879
3879
|
else
|
|
3880
3880
|
try {
|
|
3881
|
-
var m = v.getAttribute(n), h = m !== null && m !== "false",
|
|
3882
|
-
La.set(v,
|
|
3881
|
+
var m = v.getAttribute(n), h = m !== null && m !== "false", b = (La.get(v) || 0) + 1, w = (r.get(v) || 0) + 1;
|
|
3882
|
+
La.set(v, b), r.set(v, w), l.push(v), b === 1 && h && Jn.set(v, !0), w === 1 && v.setAttribute(t, "true"), h || v.setAttribute(n, "true");
|
|
3883
3883
|
} catch (x) {
|
|
3884
3884
|
console.error("aria-hidden: cannot operate on ", v, x);
|
|
3885
3885
|
}
|
|
@@ -4083,25 +4083,25 @@ function hm(e, a) {
|
|
|
4083
4083
|
ANIMATION_END: "unmounted"
|
|
4084
4084
|
},
|
|
4085
4085
|
unmounted: { MOUNT: "mounted" }
|
|
4086
|
-
}), f = (
|
|
4086
|
+
}), f = (w) => {
|
|
4087
4087
|
if (kt) {
|
|
4088
|
-
const x = new CustomEvent(
|
|
4088
|
+
const x = new CustomEvent(w, {
|
|
4089
4089
|
bubbles: !1,
|
|
4090
4090
|
cancelable: !1
|
|
4091
4091
|
});
|
|
4092
4092
|
a.value?.dispatchEvent(x);
|
|
4093
4093
|
}
|
|
4094
4094
|
};
|
|
4095
|
-
ve(e, async (
|
|
4096
|
-
const C = x !==
|
|
4095
|
+
ve(e, async (w, x) => {
|
|
4096
|
+
const C = x !== w;
|
|
4097
4097
|
if (await De(), C) {
|
|
4098
4098
|
const E = n.value, k = to(a.value);
|
|
4099
|
-
|
|
4099
|
+
w ? (d("MOUNT"), f("enter"), k === "none" && f("after-enter")) : k === "none" || k === "undefined" || t.value?.display === "none" ? (d("UNMOUNT"), f("leave"), f("after-leave")) : x && E !== k ? (d("ANIMATION_OUT"), f("leave")) : (d("UNMOUNT"), f("after-leave"));
|
|
4100
4100
|
}
|
|
4101
4101
|
}, { immediate: !0 });
|
|
4102
|
-
const p = (
|
|
4103
|
-
if (
|
|
4104
|
-
const x = to(a.value), C = x.includes(CSS.escape(
|
|
4102
|
+
const p = (w) => {
|
|
4103
|
+
if (w.target !== a.value) return;
|
|
4104
|
+
const x = to(a.value), C = x.includes(CSS.escape(w.animationName)), E = u.value === "mounted" ? "enter" : "leave";
|
|
4105
4105
|
if (C && (f(`after-${E}`), d("ANIMATION_END"), !o.value)) {
|
|
4106
4106
|
const k = a.value.style.animationFillMode;
|
|
4107
4107
|
a.value.style.animationFillMode = "forwards", l = s?.setTimeout(() => {
|
|
@@ -4109,13 +4109,13 @@ function hm(e, a) {
|
|
|
4109
4109
|
});
|
|
4110
4110
|
}
|
|
4111
4111
|
x === "none" && d("ANIMATION_END");
|
|
4112
|
-
}, v = (
|
|
4113
|
-
|
|
4114
|
-
}, m = ve(a, (
|
|
4115
|
-
|
|
4112
|
+
}, v = (w) => {
|
|
4113
|
+
w.target === a.value && (n.value = to(a.value));
|
|
4114
|
+
}, m = ve(a, (w, x) => {
|
|
4115
|
+
w ? (t.value = getComputedStyle(w), w.addEventListener("animationstart", v), w.addEventListener("animationcancel", p), w.addEventListener("animationend", p)) : (d("ANIMATION_END"), l !== void 0 && s?.clearTimeout(l), x?.removeEventListener("animationstart", v), x?.removeEventListener("animationcancel", p), x?.removeEventListener("animationend", p));
|
|
4116
4116
|
}, { immediate: !0 }), h = ve(u, () => {
|
|
4117
|
-
const
|
|
4118
|
-
n.value = u.value === "mounted" ?
|
|
4117
|
+
const w = to(a.value);
|
|
4118
|
+
n.value = u.value === "mounted" ? w : "none";
|
|
4119
4119
|
});
|
|
4120
4120
|
return ht(() => {
|
|
4121
4121
|
m(), h(), a.value && (a.value.removeEventListener("animationstart", v), a.value.removeEventListener("animationcancel", p), a.value.removeEventListener("animationend", p)), l !== void 0 && s?.clearTimeout(l);
|
|
@@ -4295,8 +4295,8 @@ var bm = /* @__PURE__ */ B({
|
|
|
4295
4295
|
transitionDuration: h.style.transitionDuration,
|
|
4296
4296
|
animationName: h.style.animationName
|
|
4297
4297
|
}, h.style.transitionDuration = "0s", h.style.animationName = "none";
|
|
4298
|
-
const
|
|
4299
|
-
d.value =
|
|
4298
|
+
const b = h.getBoundingClientRect();
|
|
4299
|
+
d.value = b.height, u.value = b.width, p.value || (h.style.transitionDuration = v.value.transitionDuration, h.style.animationName = v.value.animationName);
|
|
4300
4300
|
}, { immediate: !0 });
|
|
4301
4301
|
const m = g(() => p.value && o.open.value);
|
|
4302
4302
|
return qe(() => {
|
|
@@ -4307,18 +4307,18 @@ var bm = /* @__PURE__ */ B({
|
|
|
4307
4307
|
requestAnimationFrame(() => {
|
|
4308
4308
|
o.onOpenToggle(), n("contentFound");
|
|
4309
4309
|
});
|
|
4310
|
-
}), (h,
|
|
4310
|
+
}), (h, b) => (c(), $(i(St), {
|
|
4311
4311
|
ref_key: "presentRef",
|
|
4312
4312
|
ref: r,
|
|
4313
4313
|
present: h.forceMount || i(o).open.value,
|
|
4314
4314
|
"force-mount": !0
|
|
4315
4315
|
}, {
|
|
4316
|
-
default: _(({ present:
|
|
4316
|
+
default: _(({ present: w }) => [O(i(xe), ae(h.$attrs, {
|
|
4317
4317
|
id: i(o).contentId,
|
|
4318
4318
|
ref: i(l),
|
|
4319
4319
|
"as-child": t.asChild,
|
|
4320
4320
|
as: h.as,
|
|
4321
|
-
hidden:
|
|
4321
|
+
hidden: w ? void 0 : i(o).unmountOnHide.value ? "" : "until-found",
|
|
4322
4322
|
"data-state": m.value ? void 0 : i(o).open.value ? "open" : "closed",
|
|
4323
4323
|
"data-disabled": i(o).disabled?.value ? "" : void 0,
|
|
4324
4324
|
style: {
|
|
@@ -4326,7 +4326,7 @@ var bm = /* @__PURE__ */ B({
|
|
|
4326
4326
|
"--reka-collapsible-content-width": `${u.value}px`
|
|
4327
4327
|
}
|
|
4328
4328
|
}), {
|
|
4329
|
-
default: _(() => [!i(o).unmountOnHide.value ||
|
|
4329
|
+
default: _(() => [!i(o).unmountOnHide.value || w ? S(h.$slots, "default", { key: 0 }) : q("v-if", !0)]),
|
|
4330
4330
|
_: 2
|
|
4331
4331
|
}, 1040, [
|
|
4332
4332
|
"id",
|
|
@@ -4540,7 +4540,7 @@ var qm = /* @__PURE__ */ B({
|
|
|
4540
4540
|
});
|
|
4541
4541
|
function f(p) {
|
|
4542
4542
|
const v = p.target;
|
|
4543
|
-
if (Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]") ?? []).findIndex((
|
|
4543
|
+
if (Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]") ?? []).findIndex((b) => b === v) === -1) return null;
|
|
4544
4544
|
ai(p, v, n.parentElement.value, {
|
|
4545
4545
|
arrowKeyOptions: n.orientation,
|
|
4546
4546
|
dir: n.direction.value,
|
|
@@ -4877,14 +4877,14 @@ var jm = /* @__PURE__ */ B({
|
|
|
4877
4877
|
return l.layer(r, () => t.present, () => t.disableOutsidePointerEvents, n), (h) => Pt(xe, { ref: o, as: t.as, asChild: t.asChild, "data-dismissable-layer": "" }, h.$slots);
|
|
4878
4878
|
t.present && ko(), Mv(r, () => t.present);
|
|
4879
4879
|
const s = g(() => r.value?.ownerDocument ?? globalThis.document), u = g(() => nt.layersRoot), d = g(() => r.value ? Array.from(u.value).indexOf(r.value) : -1), f = g(() => nt.layersWithOutsidePointerEventsDisabled.size > 0), p = g(() => {
|
|
4880
|
-
const h = Array.from(u.value), [
|
|
4881
|
-
return d.value >=
|
|
4880
|
+
const h = Array.from(u.value), [b] = [...nt.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(b);
|
|
4881
|
+
return d.value >= w;
|
|
4882
4882
|
}), v = Hm(async (h) => {
|
|
4883
|
-
const
|
|
4884
|
-
!t.present || !p.value ||
|
|
4883
|
+
const b = [...nt.branches].some((w) => w?.contains(h.target));
|
|
4884
|
+
!t.present || !p.value || b || (n("pointerDownOutside", h), n("interactOutside", h), await De(), h.defaultPrevented || n("dismiss"));
|
|
4885
4885
|
}, r, () => t.present), m = Um((h) => {
|
|
4886
|
-
const
|
|
4887
|
-
!t.present ||
|
|
4886
|
+
const b = [...nt.branches].some((w) => w?.contains(h.target));
|
|
4887
|
+
!t.present || b || (n("focusOutside", h), n("interactOutside", h), h.defaultPrevented || n("dismiss"));
|
|
4888
4888
|
}, r);
|
|
4889
4889
|
return Yi("Escape", (h) => {
|
|
4890
4890
|
!t.present || !(d.value === u.value.size - 1) || (n("escapeKeyDown", h), h.defaultPrevented || n("dismiss"));
|
|
@@ -4892,19 +4892,19 @@ var jm = /* @__PURE__ */ B({
|
|
|
4892
4892
|
r,
|
|
4893
4893
|
() => t.disableOutsidePointerEvents,
|
|
4894
4894
|
() => t.present
|
|
4895
|
-
], ([h,
|
|
4896
|
-
!h || !
|
|
4895
|
+
], ([h, b, w], x, C) => {
|
|
4896
|
+
!h || !w || b && (nt.layersWithOutsidePointerEventsDisabled.size === 0 && (nt.originalBodyPointerEventsPriority = s.value.body.style.getPropertyPriority("pointer-events"), nt.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), nt.layersWithOutsidePointerEventsDisabled.add(h), C(() => {
|
|
4897
4897
|
nt.layersWithOutsidePointerEventsDisabled.delete(h), nt.layersWithOutsidePointerEventsDisabled.size === 0 && !ja(nt.originalBodyPointerEvents) && s.value.body.style.setProperty("pointer-events", nt.originalBodyPointerEvents, nt.originalBodyPointerEventsPriority ?? "");
|
|
4898
4898
|
}));
|
|
4899
|
-
}, { immediate: !0 }), ve([r, () => t.present], ([h,
|
|
4900
|
-
!h || !
|
|
4899
|
+
}, { immediate: !0 }), ve([r, () => t.present], ([h, b], w, x) => {
|
|
4900
|
+
!h || !b || (u.value.add(h), x(() => {
|
|
4901
4901
|
u.value.delete(h);
|
|
4902
4902
|
}));
|
|
4903
4903
|
}, { immediate: !0 }), vt((h) => {
|
|
4904
4904
|
h(() => {
|
|
4905
4905
|
r.value && (u.value.delete(r.value), nt.layersWithOutsidePointerEventsDisabled.delete(r.value));
|
|
4906
4906
|
});
|
|
4907
|
-
}), (h,
|
|
4907
|
+
}), (h, b) => (c(), $(i(xe), {
|
|
4908
4908
|
ref: i(o),
|
|
4909
4909
|
"as-child": h.asChild,
|
|
4910
4910
|
as: h.as,
|
|
@@ -5061,30 +5061,30 @@ var th = /* @__PURE__ */ B({
|
|
|
5061
5061
|
const E = C.target;
|
|
5062
5062
|
m.contains(E) ? s.value = E : ia(s.value, { select: !0 });
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function b(C) {
|
|
5065
5065
|
if (d.paused || !m) return;
|
|
5066
5066
|
const E = C.relatedTarget;
|
|
5067
5067
|
E !== null && (m.contains(E) || ia(s.value, { select: !0 }));
|
|
5068
5068
|
}
|
|
5069
|
-
function
|
|
5069
|
+
function w(C) {
|
|
5070
5070
|
const E = s.value;
|
|
5071
5071
|
if (E === null || !C.some((M) => M.removedNodes.length > 0)) return;
|
|
5072
5072
|
const T = Je();
|
|
5073
5073
|
if (T && m.contains(T)) return;
|
|
5074
5074
|
m.contains(E) || ia(m);
|
|
5075
5075
|
}
|
|
5076
|
-
document.addEventListener("focusin", h), document.addEventListener("focusout",
|
|
5077
|
-
const x = new MutationObserver(
|
|
5076
|
+
document.addEventListener("focusin", h), document.addEventListener("focusout", b);
|
|
5077
|
+
const x = new MutationObserver(w);
|
|
5078
5078
|
m && x.observe(m, {
|
|
5079
5079
|
childList: !0,
|
|
5080
5080
|
subtree: !0
|
|
5081
5081
|
}), v(() => {
|
|
5082
|
-
document.removeEventListener("focusin", h), document.removeEventListener("focusout",
|
|
5082
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", b), x.disconnect();
|
|
5083
5083
|
});
|
|
5084
5084
|
});
|
|
5085
5085
|
function f(v, m) {
|
|
5086
|
-
const h = new CustomEvent(Ir, _s),
|
|
5087
|
-
v.addEventListener(Ir,
|
|
5086
|
+
const h = new CustomEvent(Ir, _s), b = (w) => n("mountAutoFocus", w);
|
|
5087
|
+
v.addEventListener(Ir, b), v.dispatchEvent(h), v.removeEventListener(Ir, b), h.defaultPrevented || (vo(tl(v), { select: !0 }), Je() === m && ia(v));
|
|
5088
5088
|
}
|
|
5089
5089
|
vt(async (v) => {
|
|
5090
5090
|
const m = r.value;
|
|
@@ -5092,11 +5092,11 @@ var th = /* @__PURE__ */ B({
|
|
|
5092
5092
|
t.present !== !1 && u.add(d);
|
|
5093
5093
|
const h = Je();
|
|
5094
5094
|
!m.contains(h) && t.present !== !1 && f(m, h), v(() => {
|
|
5095
|
-
const
|
|
5095
|
+
const w = new CustomEvent(Rr, _s), x = (C) => {
|
|
5096
5096
|
n("unmountAutoFocus", C);
|
|
5097
5097
|
};
|
|
5098
|
-
m.addEventListener(Rr, x), m.dispatchEvent(
|
|
5099
|
-
|
|
5098
|
+
m.addEventListener(Rr, x), m.dispatchEvent(w), m.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
5099
|
+
w.defaultPrevented || ia(h ?? document.body, { select: !0 }), m.removeEventListener(Rr, x), u.remove(d), m.removeAttribute("data-focus-scope-unmounting");
|
|
5100
5100
|
}, 0);
|
|
5101
5101
|
});
|
|
5102
5102
|
}), ve(() => t.present, async (v, m) => {
|
|
@@ -5109,15 +5109,15 @@ var th = /* @__PURE__ */ B({
|
|
|
5109
5109
|
u.add(d), await De();
|
|
5110
5110
|
const h = r.value;
|
|
5111
5111
|
if (!h) return;
|
|
5112
|
-
const
|
|
5113
|
-
h.contains(
|
|
5112
|
+
const b = Je();
|
|
5113
|
+
h.contains(b) || f(h, b);
|
|
5114
5114
|
});
|
|
5115
5115
|
function p(v) {
|
|
5116
5116
|
if (!t.loop && !t.trapped || d.paused) return;
|
|
5117
5117
|
const m = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, h = Je();
|
|
5118
5118
|
if (m && h) {
|
|
5119
|
-
const
|
|
5120
|
-
|
|
5119
|
+
const b = v.currentTarget, [w, x] = Qm(b);
|
|
5120
|
+
w && x ? !v.shiftKey && h === x ? (v.preventDefault(), t.loop && ia(w, { select: !0 })) : v.shiftKey && h === w && (v.preventDefault(), t.loop && ia(x, { select: !0 })) : h === b && v.preventDefault();
|
|
5121
5121
|
}
|
|
5122
5122
|
}
|
|
5123
5123
|
return (v, m) => (c(), $(i(xe), {
|
|
@@ -5341,8 +5341,8 @@ var fh = /* @__PURE__ */ B({
|
|
|
5341
5341
|
m.defaultPrevented || (m.preventDefault(), r ? r.restoreFocus(i(o).triggerElement.value) : i(o).triggerElement.value?.focus());
|
|
5342
5342
|
}),
|
|
5343
5343
|
onPointerDownOutside: v[1] || (v[1] = (m) => {
|
|
5344
|
-
const h = m.detail.originalEvent,
|
|
5345
|
-
(h.button === 2 ||
|
|
5344
|
+
const h = m.detail.originalEvent, b = h.button === 0 && h.ctrlKey === !0;
|
|
5345
|
+
(h.button === 2 || b) && m.preventDefault();
|
|
5346
5346
|
}),
|
|
5347
5347
|
onFocusOutside: v[2] || (v[2] = (m) => {
|
|
5348
5348
|
m.preventDefault();
|
|
@@ -5717,15 +5717,15 @@ function ct(e = {}) {
|
|
|
5717
5717
|
}, l = (p = !1) => {
|
|
5718
5718
|
const v = o.collectionRef.value;
|
|
5719
5719
|
if (!v) return [];
|
|
5720
|
-
const m = Array.from(v.querySelectorAll(`[${Cs}]`)), h = new Map(m.map((x, C) => [x, C])),
|
|
5721
|
-
return p ?
|
|
5720
|
+
const m = Array.from(v.querySelectorAll(`[${Cs}]`)), h = new Map(m.map((x, C) => [x, C])), w = Array.from(o.itemMap.value.values()).sort((x, C) => (h.get(x.ref) ?? -1) - (h.get(C.ref) ?? -1));
|
|
5721
|
+
return p ? w : w.filter((x) => x.ref.dataset.disabled !== "");
|
|
5722
5722
|
}, s = /* @__PURE__ */ B({
|
|
5723
5723
|
name: "CollectionSlot",
|
|
5724
5724
|
inheritAttrs: !1,
|
|
5725
5725
|
setup(p, { slots: v, attrs: m }) {
|
|
5726
|
-
const { primitiveElement: h, currentElement:
|
|
5727
|
-
return ve(
|
|
5728
|
-
o.collectionRef.value =
|
|
5726
|
+
const { primitiveElement: h, currentElement: b } = Kt();
|
|
5727
|
+
return ve(b, () => {
|
|
5728
|
+
o.collectionRef.value = b.value;
|
|
5729
5729
|
}), () => Pt(oi, {
|
|
5730
5730
|
ref: h,
|
|
5731
5731
|
...m
|
|
@@ -5736,14 +5736,14 @@ function ct(e = {}) {
|
|
|
5736
5736
|
inheritAttrs: !1,
|
|
5737
5737
|
props: { value: { validator: () => !0 } },
|
|
5738
5738
|
setup(p, { slots: v, attrs: m }) {
|
|
5739
|
-
const { primitiveElement: h, currentElement:
|
|
5740
|
-
return vt((
|
|
5741
|
-
if (
|
|
5742
|
-
const x = sp(
|
|
5739
|
+
const { primitiveElement: h, currentElement: b } = Kt();
|
|
5740
|
+
return vt((w) => {
|
|
5741
|
+
if (b.value) {
|
|
5742
|
+
const x = sp(b.value);
|
|
5743
5743
|
o.itemMap.value.set(x, {
|
|
5744
|
-
ref:
|
|
5744
|
+
ref: b.value,
|
|
5745
5745
|
value: p.value
|
|
5746
|
-
}),
|
|
5746
|
+
}), w(() => o.itemMap.value.delete(x));
|
|
5747
5747
|
}
|
|
5748
5748
|
}), () => Pt(oi, {
|
|
5749
5749
|
...m,
|
|
@@ -6021,13 +6021,13 @@ var Rh = /* @__PURE__ */ B({
|
|
|
6021
6021
|
"leave"
|
|
6022
6022
|
],
|
|
6023
6023
|
setup(e, { expose: a, emit: t }) {
|
|
6024
|
-
const n = e, o = t, { multiple: r, highlightOnHover: l, orientation: s, disabled: u, selectionBehavior: d, dir: f } = Ue(n), { getItems: p, getItem: v } = ct({ isProvider: !0 }), { handleTypeaheadSearch: m } = Mn(), { primitiveElement: h, currentElement:
|
|
6024
|
+
const n = e, o = t, { multiple: r, highlightOnHover: l, orientation: s, disabled: u, selectionBehavior: d, dir: f } = Ue(n), { getItems: p, getItem: v } = ct({ isProvider: !0 }), { handleTypeaheadSearch: m } = Mn(), { primitiveElement: h, currentElement: b } = Kt(), w = id(), x = bt(f), C = Ih(null);
|
|
6025
6025
|
bd({
|
|
6026
6026
|
suppressHighlightScroll: P(!1),
|
|
6027
6027
|
onHighlightScrollRequest: () => {
|
|
6028
6028
|
}
|
|
6029
6029
|
});
|
|
6030
|
-
const E = ta(
|
|
6030
|
+
const E = ta(b), k = P(), T = P(!1), I = P(!0), M = /* @__PURE__ */ je(n, "modelValue", o, {
|
|
6031
6031
|
defaultValue: n.defaultValue ?? (r.value ? [] : void 0),
|
|
6032
6032
|
passive: n.modelValue === void 0,
|
|
6033
6033
|
deep: !0
|
|
@@ -6142,7 +6142,7 @@ var Rh = /* @__PURE__ */ B({
|
|
|
6142
6142
|
if (!(R.value || n.selectionBehavior !== "replace" || !r.value || !Array.isArray(M.value) || (ne.altKey || ne.ctrlKey || ne.metaKey) && !ne.shiftKey) && ne.shiftKey) {
|
|
6143
6143
|
const Be = p().filter((ge) => ge.ref.dataset.disabled !== "");
|
|
6144
6144
|
let He = Be.find((ge) => ge.ref === ce)?.value;
|
|
6145
|
-
if (ne.key ===
|
|
6145
|
+
if (ne.key === w.END ? He = Be.at(-1)?.value : ne.key === w.HOME && (He = Be[0]?.value), !He || !k.value) return;
|
|
6146
6146
|
const Ge = po(Be.map((ge) => ge.value), k.value, He);
|
|
6147
6147
|
M.value = Ge;
|
|
6148
6148
|
}
|
|
@@ -6211,7 +6211,7 @@ var Rh = /* @__PURE__ */ B({
|
|
|
6211
6211
|
onPointerleave: _e,
|
|
6212
6212
|
onFocusout: ce[0] || (ce[0] = async (Se) => {
|
|
6213
6213
|
const Be = Se.relatedTarget || Se.target;
|
|
6214
|
-
await De(), X.value && i(
|
|
6214
|
+
await De(), X.value && i(b) && !i(b).contains(Be) && _e(Se);
|
|
6215
6215
|
})
|
|
6216
6216
|
}, {
|
|
6217
6217
|
default: _(() => [S(ne.$slots, "default", { modelValue: i(M) }), i(E) && ne.name ? (c(), $(i(ca), {
|
|
@@ -6331,10 +6331,10 @@ var Rh = /* @__PURE__ */ B({
|
|
|
6331
6331
|
const { isComposing: f, shouldDeferInput: p, handleCompositionStart: v, handleCompositionUpdate: m, handleCompositionEnd: h } = td((E) => {
|
|
6332
6332
|
o.value = E.target.value, r.onCompositionEnd(), r.highlightFirstItem();
|
|
6333
6333
|
});
|
|
6334
|
-
function
|
|
6334
|
+
function b() {
|
|
6335
6335
|
r.onCompositionStart(), v();
|
|
6336
6336
|
}
|
|
6337
|
-
function
|
|
6337
|
+
function w(E) {
|
|
6338
6338
|
p.value || (o.value = E.target.value, r.highlightFirstItem());
|
|
6339
6339
|
}
|
|
6340
6340
|
function x(E) {
|
|
@@ -6360,8 +6360,8 @@ var Rh = /* @__PURE__ */ B({
|
|
|
6360
6360
|
"home",
|
|
6361
6361
|
"end"
|
|
6362
6362
|
]), tt(C, ["enter"])],
|
|
6363
|
-
onInput:
|
|
6364
|
-
onCompositionstart:
|
|
6363
|
+
onInput: w,
|
|
6364
|
+
onCompositionstart: b,
|
|
6365
6365
|
onCompositionupdate: i(m),
|
|
6366
6366
|
onCompositionend: i(h)
|
|
6367
6367
|
}, {
|
|
@@ -6430,13 +6430,13 @@ var Gh = /* @__PURE__ */ B({
|
|
|
6430
6430
|
n("select", h), !h?.defaultPrevented && !p.value && h && (u.onValueChange(t.value), u.changeHighlight(s.value));
|
|
6431
6431
|
}
|
|
6432
6432
|
function m(h) {
|
|
6433
|
-
const
|
|
6433
|
+
const b = {
|
|
6434
6434
|
originalEvent: h,
|
|
6435
6435
|
value: t.value
|
|
6436
6436
|
};
|
|
6437
|
-
Ca(Hh, v,
|
|
6437
|
+
Ca(Hh, v, b);
|
|
6438
6438
|
}
|
|
6439
|
-
return jh({ isSelected: f }), (h,
|
|
6439
|
+
return jh({ isSelected: f }), (h, b) => (c(), $(i(r), { value: h.value }, {
|
|
6440
6440
|
default: _(() => [Mi([
|
|
6441
6441
|
d.value,
|
|
6442
6442
|
f.value,
|
|
@@ -6456,7 +6456,7 @@ var Gh = /* @__PURE__ */ B({
|
|
|
6456
6456
|
"data-state": f.value ? "checked" : "unchecked",
|
|
6457
6457
|
onClick: m,
|
|
6458
6458
|
onKeydown: tt(Ae(m, ["prevent"]), ["space"]),
|
|
6459
|
-
onPointermove:
|
|
6459
|
+
onPointermove: b[0] || (b[0] = () => {
|
|
6460
6460
|
i(u).highlightedElement.value !== i(s) && i(u).highlightOnHover.value && i(u).changeHighlight(i(s), !1, !1);
|
|
6461
6461
|
})
|
|
6462
6462
|
}), {
|
|
@@ -6473,7 +6473,7 @@ var Gh = /* @__PURE__ */ B({
|
|
|
6473
6473
|
"data-highlighted",
|
|
6474
6474
|
"data-state",
|
|
6475
6475
|
"onKeydown"
|
|
6476
|
-
]),
|
|
6476
|
+
]), b, 1)]),
|
|
6477
6477
|
_: 3
|
|
6478
6478
|
}, 8, ["value"]));
|
|
6479
6479
|
}
|
|
@@ -6613,10 +6613,10 @@ function ig(e) {
|
|
|
6613
6613
|
center: "50%",
|
|
6614
6614
|
end: "100%"
|
|
6615
6615
|
}[f], m = (o.arrow?.x ?? 0) + s / 2, h = (o.arrow?.y ?? 0) + u / 2;
|
|
6616
|
-
let
|
|
6617
|
-
return d === "bottom" ? (
|
|
6618
|
-
x:
|
|
6619
|
-
y:
|
|
6616
|
+
let b = "", w = "";
|
|
6617
|
+
return d === "bottom" ? (b = l ? p : `${m}px`, w = `${-u}px`) : d === "top" ? (b = l ? p : `${m}px`, w = `${n.floating.height + u}px`) : d === "right" ? (b = `${-u}px`, w = l ? v : `${h}px`) : d === "left" && (b = `${n.floating.width + u}px`, w = l ? v : `${h}px`), { data: {
|
|
6618
|
+
x: b,
|
|
6619
|
+
y: w
|
|
6620
6620
|
} };
|
|
6621
6621
|
}
|
|
6622
6622
|
};
|
|
@@ -6786,8 +6786,8 @@ async function hg(e, a) {
|
|
|
6786
6786
|
elementContext: p = "floating",
|
|
6787
6787
|
altBoundary: v = !1,
|
|
6788
6788
|
padding: m = 0
|
|
6789
|
-
} = Qt(a, e), h = _d(m),
|
|
6790
|
-
element: (t = await (r.isElement == null ? void 0 : r.isElement(
|
|
6789
|
+
} = Qt(a, e), h = _d(m), w = s[v ? p === "floating" ? "reference" : "floating" : p], x = Eo(await r.getClippingRect({
|
|
6790
|
+
element: (t = await (r.isElement == null ? void 0 : r.isElement(w))) == null || t ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
6791
6791
|
boundary: d,
|
|
6792
6792
|
rootBoundary: f,
|
|
6793
6793
|
strategy: u
|
|
@@ -6831,14 +6831,14 @@ const gg = 50, yg = async (e, a, t) => {
|
|
|
6831
6831
|
y: p
|
|
6832
6832
|
} = Ts(d, n, u), v = n, m = 0;
|
|
6833
6833
|
const h = {};
|
|
6834
|
-
for (let
|
|
6835
|
-
const
|
|
6836
|
-
if (!
|
|
6834
|
+
for (let b = 0; b < r.length; b++) {
|
|
6835
|
+
const w = r[b];
|
|
6836
|
+
if (!w)
|
|
6837
6837
|
continue;
|
|
6838
6838
|
const {
|
|
6839
6839
|
name: x,
|
|
6840
6840
|
fn: C
|
|
6841
|
-
} =
|
|
6841
|
+
} = w, {
|
|
6842
6842
|
x: E,
|
|
6843
6843
|
y: k,
|
|
6844
6844
|
data: T,
|
|
@@ -6867,7 +6867,7 @@ const gg = 50, yg = async (e, a, t) => {
|
|
|
6867
6867
|
}) : I.rects), {
|
|
6868
6868
|
x: f,
|
|
6869
6869
|
y: p
|
|
6870
|
-
} = Ts(d, v, u)),
|
|
6870
|
+
} = Ts(d, v, u)), b = -1);
|
|
6871
6871
|
}
|
|
6872
6872
|
return {
|
|
6873
6873
|
x: f,
|
|
@@ -6897,10 +6897,10 @@ const gg = 50, yg = async (e, a, t) => {
|
|
|
6897
6897
|
const p = _d(f), v = {
|
|
6898
6898
|
x: t,
|
|
6899
6899
|
y: n
|
|
6900
|
-
}, m = cl(o), h = dl(m),
|
|
6900
|
+
}, m = cl(o), h = dl(m), b = await l.getDimensions(d), w = m === "y", x = w ? "top" : "left", C = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", k = r.reference[h] + r.reference[m] - v[m] - r.floating[h], T = v[m] - r.reference[m], I = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
|
|
6901
6901
|
let M = I ? I[E] : 0;
|
|
6902
6902
|
(!M || !await (l.isElement == null ? void 0 : l.isElement(I))) && (M = s.floating[E] || r.floating[h]);
|
|
6903
|
-
const H = k / 2 - T / 2, X = M / 2 -
|
|
6903
|
+
const H = k / 2 - T / 2, X = M / 2 - b[h] / 2 - 1, N = sa(p[x], X), R = sa(p[C], X), F = M - b[h] - R, K = M / 2 - b[h] / 2 + H, U = xd(N, K, F), A = !u.arrow && nn(o) != null && K !== U && r.reference[h] / 2 - (K < N ? N : R) - b[h] / 2 < 0, W = A ? K < N ? K - N : K - F : 0;
|
|
6904
6904
|
return {
|
|
6905
6905
|
[m]: v[m] + W,
|
|
6906
6906
|
data: {
|
|
@@ -6932,14 +6932,14 @@ const gg = 50, yg = async (e, a, t) => {
|
|
|
6932
6932
|
fallbackPlacements: v,
|
|
6933
6933
|
fallbackStrategy: m = "bestFit",
|
|
6934
6934
|
fallbackAxisSideDirection: h = "none",
|
|
6935
|
-
flipAlignment:
|
|
6936
|
-
...
|
|
6935
|
+
flipAlignment: b = !0,
|
|
6936
|
+
...w
|
|
6937
6937
|
} = Qt(e, a);
|
|
6938
6938
|
if ((t = r.arrow) != null && t.alignmentOffset)
|
|
6939
6939
|
return {};
|
|
6940
|
-
const x = ua(o), C = Ft(s), E = ua(s) === s, k = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), T = v || (E || !
|
|
6941
|
-
!v && I && T.push(...vg(s,
|
|
6942
|
-
const M = [s, ...T], H = await u.detectOverflow(a,
|
|
6940
|
+
const x = ua(o), C = Ft(s), E = ua(s) === s, k = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), T = v || (E || !b ? [$o(s)] : dg(s)), I = h !== "none";
|
|
6941
|
+
!v && I && T.push(...vg(s, b, h, k));
|
|
6942
|
+
const M = [s, ...T], H = await u.detectOverflow(a, w), X = [];
|
|
6943
6943
|
let N = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
6944
6944
|
if (f && X.push(H[x]), p) {
|
|
6945
6945
|
const U = ug(o, l, k);
|
|
@@ -7128,13 +7128,13 @@ const kg = function(e) {
|
|
|
7128
7128
|
x: t,
|
|
7129
7129
|
y: n
|
|
7130
7130
|
}, p = await r.detectOverflow(a, d), v = Ft(o), m = ul(v);
|
|
7131
|
-
let h = f[m],
|
|
7132
|
-
const
|
|
7133
|
-
l && (h =
|
|
7131
|
+
let h = f[m], b = f[v];
|
|
7132
|
+
const w = (C, E) => xd(E + p[C === "y" ? "top" : "left"], E, E - p[C === "y" ? "bottom" : "right"]);
|
|
7133
|
+
l && (h = w(m, h)), s && (b = w(v, b));
|
|
7134
7134
|
const x = u.fn({
|
|
7135
7135
|
...a,
|
|
7136
7136
|
[m]: h,
|
|
7137
|
-
[v]:
|
|
7137
|
+
[v]: b
|
|
7138
7138
|
});
|
|
7139
7139
|
return {
|
|
7140
7140
|
...x,
|
|
@@ -7168,7 +7168,7 @@ const kg = function(e) {
|
|
|
7168
7168
|
x: o,
|
|
7169
7169
|
y: r
|
|
7170
7170
|
}, m = Ft(l), h = ul(m);
|
|
7171
|
-
let
|
|
7171
|
+
let b = v[h], w = v[m];
|
|
7172
7172
|
const x = Qt(d, a), C = typeof x == "number" ? {
|
|
7173
7173
|
mainAxis: x,
|
|
7174
7174
|
crossAxis: 0
|
|
@@ -7178,16 +7178,16 @@ const kg = function(e) {
|
|
|
7178
7178
|
};
|
|
7179
7179
|
if (f) {
|
|
7180
7180
|
const T = h === "y" ? "height" : "width", I = s.reference[h] - s.floating[T] + C.mainAxis, M = s.reference[h] + s.reference[T] - C.mainAxis;
|
|
7181
|
-
|
|
7181
|
+
b < I ? b = I : b > M && (b = M);
|
|
7182
7182
|
}
|
|
7183
7183
|
if (p) {
|
|
7184
7184
|
var E, k;
|
|
7185
7185
|
const T = h === "y" ? "width" : "height", I = kd.has(ua(l)), M = s.reference[m] - s.floating[T] + (I && ((E = u.offset) == null ? void 0 : E[m]) || 0) + (I ? 0 : C.crossAxis), H = s.reference[m] + s.reference[T] + (I ? 0 : ((k = u.offset) == null ? void 0 : k[m]) || 0) - (I ? C.crossAxis : 0);
|
|
7186
|
-
|
|
7186
|
+
w < M ? w = M : w > H && (w = H);
|
|
7187
7187
|
}
|
|
7188
7188
|
return {
|
|
7189
|
-
[h]:
|
|
7190
|
-
[m]:
|
|
7189
|
+
[h]: b,
|
|
7190
|
+
[m]: w
|
|
7191
7191
|
};
|
|
7192
7192
|
}
|
|
7193
7193
|
};
|
|
@@ -7209,11 +7209,11 @@ const kg = function(e) {
|
|
|
7209
7209
|
width: v,
|
|
7210
7210
|
height: m
|
|
7211
7211
|
} = n.floating;
|
|
7212
|
-
let h,
|
|
7213
|
-
d === "top" || d === "bottom" ? (h = d,
|
|
7214
|
-
const
|
|
7212
|
+
let h, b;
|
|
7213
|
+
d === "top" || d === "bottom" ? (h = d, b = f === (await (o.isRTL == null ? void 0 : o.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (b = d, h = f === "end" ? "top" : "bottom");
|
|
7214
|
+
const w = m - u.top - u.bottom, x = v - u.left - u.right, C = sa(m - u[h], w), E = sa(v - u[b], x), k = a.middlewareData.shift, T = !k;
|
|
7215
7215
|
let I = C, M = E;
|
|
7216
|
-
k != null && k.enabled.x && (M = x), k != null && k.enabled.y && (I =
|
|
7216
|
+
k != null && k.enabled.x && (M = x), k != null && k.enabled.y && (I = w), T && !f && (p ? M = v - 2 * Yt(u.left, u.right) : I = m - 2 * Yt(u.top, u.bottom)), await l({
|
|
7217
7217
|
...a,
|
|
7218
7218
|
availableWidth: M,
|
|
7219
7219
|
availableHeight: I
|
|
@@ -7389,10 +7389,10 @@ function $a(e, a, t, n) {
|
|
|
7389
7389
|
let u = (o.left + s.x) / l.x, d = (o.top + s.y) / l.y, f = o.width / l.x, p = o.height / l.y;
|
|
7390
7390
|
if (r && n) {
|
|
7391
7391
|
const v = _t(r), m = Wt(n) ? _t(n) : n;
|
|
7392
|
-
let h = v,
|
|
7393
|
-
for (;
|
|
7394
|
-
const
|
|
7395
|
-
u *=
|
|
7392
|
+
let h = v, b = di(h);
|
|
7393
|
+
for (; b && m !== h; ) {
|
|
7394
|
+
const w = Na(b), x = b.getBoundingClientRect(), C = Ht(b), E = x.left + (b.clientLeft + parseFloat(C.paddingLeft)) * w.x, k = x.top + (b.clientTop + parseFloat(C.paddingTop)) * w.y;
|
|
7395
|
+
u *= w.x, d *= w.y, f *= w.x, p *= w.y, u += E, d += k, h = _t(b), b = di(h);
|
|
7396
7396
|
}
|
|
7397
7397
|
}
|
|
7398
7398
|
return Eo({
|
|
@@ -7464,7 +7464,7 @@ function Mg(e, a, t) {
|
|
|
7464
7464
|
n ? v || (d = -l.offsetLeft, f = -l.offsetTop) : (s = l.width, u = l.height, v && (d = l.offsetLeft, f = l.offsetTop));
|
|
7465
7465
|
}
|
|
7466
7466
|
if (Go(r) <= 0) {
|
|
7467
|
-
const v = r.ownerDocument, m = v.body, h = getComputedStyle(m),
|
|
7467
|
+
const v = r.ownerDocument, m = v.body, h = getComputedStyle(m), b = v.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, w = Math.abs(r.clientWidth - m.clientWidth - b), x = getComputedStyle(r).scrollbarGutter === "stable both-edges" ? w / 2 : w;
|
|
7468
7468
|
x <= Rg && (s -= x);
|
|
7469
7469
|
}
|
|
7470
7470
|
return {
|
|
@@ -7636,12 +7636,12 @@ function Ug(e, a, t) {
|
|
|
7636
7636
|
const v = e.getBoundingClientRect(), {
|
|
7637
7637
|
left: m,
|
|
7638
7638
|
top: h,
|
|
7639
|
-
width:
|
|
7640
|
-
height:
|
|
7639
|
+
width: b,
|
|
7640
|
+
height: w
|
|
7641
7641
|
} = v;
|
|
7642
|
-
if (f || a(), !
|
|
7642
|
+
if (f || a(), !b || !w)
|
|
7643
7643
|
return;
|
|
7644
|
-
const x = ao(h), C = ao(r.clientWidth - (m +
|
|
7644
|
+
const x = ao(h), C = ao(r.clientWidth - (m + b)), E = ao(r.clientHeight - (h + w)), k = ao(m), I = {
|
|
7645
7645
|
rootMargin: -x + "px " + -C + "px " + -E + "px " + -k + "px",
|
|
7646
7646
|
threshold: Yt(0, sa(1, p)) || 1
|
|
7647
7647
|
};
|
|
@@ -7696,11 +7696,11 @@ function jg(e, a, t, n) {
|
|
|
7696
7696
|
(E = m) == null || E.observe(a);
|
|
7697
7697
|
})), t();
|
|
7698
7698
|
}), d && !u && m.observe(d), a && m.observe(a));
|
|
7699
|
-
let h,
|
|
7700
|
-
u &&
|
|
7701
|
-
function
|
|
7699
|
+
let h, b = u ? $a(e) : null;
|
|
7700
|
+
u && w();
|
|
7701
|
+
function w() {
|
|
7702
7702
|
const x = $a(e);
|
|
7703
|
-
|
|
7703
|
+
b && !Ad(b, x) && t(), b = x, h = requestAnimationFrame(w);
|
|
7704
7704
|
}
|
|
7705
7705
|
return t(), () => {
|
|
7706
7706
|
var x;
|
|
@@ -7767,7 +7767,7 @@ function ny(e, a, t) {
|
|
|
7767
7767
|
}), u = g(() => {
|
|
7768
7768
|
var M;
|
|
7769
7769
|
return (M = Fa(t.transform)) != null ? M : !0;
|
|
7770
|
-
}), d = g(() => ci(e.value)), f = g(() => ci(a.value)), p = P(0), v = P(0), m = P(s.value), h = P(l.value),
|
|
7770
|
+
}), d = g(() => ci(e.value)), f = g(() => ci(a.value)), p = P(0), v = P(0), m = P(s.value), h = P(l.value), b = zt({}), w = P(!1), x = g(() => {
|
|
7771
7771
|
const M = {
|
|
7772
7772
|
position: m.value,
|
|
7773
7773
|
left: "0",
|
|
@@ -7798,7 +7798,7 @@ function ny(e, a, t) {
|
|
|
7798
7798
|
placement: l.value,
|
|
7799
7799
|
strategy: s.value
|
|
7800
7800
|
}).then((H) => {
|
|
7801
|
-
p.value = H.x, v.value = H.y, m.value = H.strategy, h.value = H.placement,
|
|
7801
|
+
p.value = H.x, v.value = H.y, m.value = H.strategy, h.value = H.placement, b.value = H.middlewareData, w.value = M !== !1;
|
|
7802
7802
|
});
|
|
7803
7803
|
}
|
|
7804
7804
|
function k() {
|
|
@@ -7815,7 +7815,7 @@ function ny(e, a, t) {
|
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
function I() {
|
|
7818
|
-
o.value || (
|
|
7818
|
+
o.value || (w.value = !1);
|
|
7819
7819
|
}
|
|
7820
7820
|
return ve([r, l, s, o], E, {
|
|
7821
7821
|
flush: "sync"
|
|
@@ -7828,8 +7828,8 @@ function ny(e, a, t) {
|
|
|
7828
7828
|
y: la(v),
|
|
7829
7829
|
strategy: la(m),
|
|
7830
7830
|
placement: la(h),
|
|
7831
|
-
middlewareData: la(
|
|
7832
|
-
isPositioned: la(
|
|
7831
|
+
middlewareData: la(b),
|
|
7832
|
+
isPositioned: la(w),
|
|
7833
7833
|
floatingStyles: x,
|
|
7834
7834
|
update: E
|
|
7835
7835
|
};
|
|
@@ -7953,10 +7953,10 @@ var ly = /* @__PURE__ */ B({
|
|
|
7953
7953
|
bottom: 0,
|
|
7954
7954
|
left: 0,
|
|
7955
7955
|
...t.collisionPadding
|
|
7956
|
-
}),
|
|
7956
|
+
}), b = g(() => Array.isArray(t.collisionBoundary) ? t.collisionBoundary : [t.collisionBoundary]), w = g(() => ({
|
|
7957
7957
|
padding: h.value,
|
|
7958
|
-
boundary:
|
|
7959
|
-
altBoundary:
|
|
7958
|
+
boundary: b.value.filter(rg),
|
|
7959
|
+
altBoundary: b.value.length > 0
|
|
7960
7960
|
})), x = g(() => ({
|
|
7961
7961
|
mainAxis: t.sideFlip,
|
|
7962
7962
|
crossAxis: t.alignFlip
|
|
@@ -7966,21 +7966,21 @@ var ly = /* @__PURE__ */ B({
|
|
|
7966
7966
|
alignmentAxis: t.alignOffset
|
|
7967
7967
|
}),
|
|
7968
7968
|
t.prioritizePosition && t.avoidCollisions && Os({
|
|
7969
|
-
...
|
|
7969
|
+
...w.value,
|
|
7970
7970
|
...x.value
|
|
7971
7971
|
}),
|
|
7972
7972
|
t.avoidCollisions && Yg({
|
|
7973
7973
|
mainAxis: !0,
|
|
7974
7974
|
crossAxis: !!t.prioritizePosition,
|
|
7975
7975
|
limiter: t.sticky === "partial" ? Jg() : void 0,
|
|
7976
|
-
...
|
|
7976
|
+
...w.value
|
|
7977
7977
|
}),
|
|
7978
7978
|
!t.prioritizePosition && t.avoidCollisions && Os({
|
|
7979
|
-
...
|
|
7979
|
+
...w.value,
|
|
7980
7980
|
...x.value
|
|
7981
7981
|
}),
|
|
7982
7982
|
Xg({
|
|
7983
|
-
...
|
|
7983
|
+
...w.value,
|
|
7984
7984
|
apply: ({ elements: U, rects: A, availableWidth: W, availableHeight: z }) => {
|
|
7985
7985
|
const { width: G, height: L } = A.reference, Y = U.floating.style;
|
|
7986
7986
|
Y.setProperty("--reka-popper-available-width", `${W}px`), Y.setProperty("--reka-popper-available-height", `${z}px`), Y.setProperty("--reka-popper-anchor-width", `${G}px`), Y.setProperty("--reka-popper-anchor-height", `${L}px`);
|
|
@@ -7997,7 +7997,7 @@ var ly = /* @__PURE__ */ B({
|
|
|
7997
7997
|
}),
|
|
7998
7998
|
t.hideWhenDetached && Zg({
|
|
7999
7999
|
strategy: "referenceHidden",
|
|
8000
|
-
...
|
|
8000
|
+
...w.value
|
|
8001
8001
|
})
|
|
8002
8002
|
]), E = g(() => t.reference ?? r.anchor.value), { floatingStyles: k, placement: T, isPositioned: I, middlewareData: M } = ny(E, d, {
|
|
8003
8003
|
strategy: t.positionStrategy,
|
|
@@ -8288,7 +8288,7 @@ var py = /* @__PURE__ */ B({
|
|
|
8288
8288
|
"update:open"
|
|
8289
8289
|
],
|
|
8290
8290
|
setup(e, { expose: a, emit: t }) {
|
|
8291
|
-
const n = e, o = t, { primitiveElement: r, currentElement: l } = Kt(), { multiple: s, disabled: u, ignoreFilter: d, resetSearchTermOnSelect: f, openOnFocus: p, openOnClick: v, dir: m, resetModelValueOnClear: h, highlightOnHover:
|
|
8291
|
+
const n = e, o = t, { primitiveElement: r, currentElement: l } = Kt(), { multiple: s, disabled: u, ignoreFilter: d, resetSearchTermOnSelect: f, openOnFocus: p, openOnClick: v, dir: m, resetModelValueOnClear: h, highlightOnHover: b } = Ue(n), w = bt(m), x = /* @__PURE__ */ je(n, "modelValue", o, {
|
|
8292
8292
|
defaultValue: n.defaultValue ?? (s.value ? [] : void 0),
|
|
8293
8293
|
passive: n.modelValue === void 0,
|
|
8294
8294
|
deep: !0
|
|
@@ -8367,12 +8367,12 @@ var py = /* @__PURE__ */ B({
|
|
|
8367
8367
|
style: { pointerEvents: i(C) ? "auto" : void 0 },
|
|
8368
8368
|
as: z.as,
|
|
8369
8369
|
"as-child": z.asChild,
|
|
8370
|
-
dir: i(
|
|
8370
|
+
dir: i(w),
|
|
8371
8371
|
multiple: i(s),
|
|
8372
8372
|
name: z.name,
|
|
8373
8373
|
required: z.required,
|
|
8374
8374
|
disabled: i(u),
|
|
8375
|
-
"highlight-on-hover": i(
|
|
8375
|
+
"highlight-on-hover": i(b),
|
|
8376
8376
|
by: n.by,
|
|
8377
8377
|
onHighlight: G[1] || (G[1] = (L) => o("highlight", L))
|
|
8378
8378
|
}), {
|
|
@@ -8549,7 +8549,7 @@ var yy = /* @__PURE__ */ B({
|
|
|
8549
8549
|
],
|
|
8550
8550
|
setup(e, { emit: a }) {
|
|
8551
8551
|
const t = e, n = a, { position: o } = Ue(t), r = on(), l = /* @__PURE__ */ Symbol("ComboboxContent");
|
|
8552
|
-
ve(o, (
|
|
8552
|
+
ve(o, (w) => r.onContentPositionChange(l, w), { immediate: !0 });
|
|
8553
8553
|
const s = g(() => r.ignoreFilter.value ? r.allItems.value.size === 0 : r.filterState.value.count === 0), { forwardRef: u, currentElement: d } = ye();
|
|
8554
8554
|
In(t.bodyLock), Vo(), Rn(r.parentElement);
|
|
8555
8555
|
const f = g(() => t.position === "popper" ? t : {}), p = aa(f.value), v = {
|
|
@@ -8566,16 +8566,16 @@ var yy = /* @__PURE__ */ B({
|
|
|
8566
8566
|
r.inputElement.value && (m.value = d.value.contains(r.inputElement.value), m.value && r.inputElement.value.focus());
|
|
8567
8567
|
}), ht(() => {
|
|
8568
8568
|
r.onContentUnmount(l);
|
|
8569
|
-
const
|
|
8570
|
-
m.value && (!
|
|
8569
|
+
const w = Je();
|
|
8570
|
+
m.value && (!w || w === document.body) && r.triggerElement.value?.focus();
|
|
8571
8571
|
});
|
|
8572
|
-
function h(
|
|
8573
|
-
if (r.parentElement.value?.contains(
|
|
8574
|
-
const C = (
|
|
8572
|
+
function h(w) {
|
|
8573
|
+
if (r.parentElement.value?.contains(w)) return !0;
|
|
8574
|
+
const C = (w instanceof Element ? w.closest("label") : null)?.control;
|
|
8575
8575
|
return !!C && !!r.parentElement.value?.contains(C);
|
|
8576
8576
|
}
|
|
8577
|
-
const
|
|
8578
|
-
return (
|
|
8577
|
+
const b = { placed: () => r.onContentPlaced(l) };
|
|
8578
|
+
return (w, x) => (c(), $(i(Fh), { "as-child": "" }, {
|
|
8579
8579
|
default: _(() => [O(i(Ln), {
|
|
8580
8580
|
"as-child": "",
|
|
8581
8581
|
onMountAutoFocus: x[5] || (x[5] = Ae(() => {
|
|
@@ -8585,7 +8585,7 @@ var yy = /* @__PURE__ */ B({
|
|
|
8585
8585
|
}, {
|
|
8586
8586
|
default: _(() => [O(i(en), {
|
|
8587
8587
|
"as-child": "",
|
|
8588
|
-
"disable-outside-pointer-events":
|
|
8588
|
+
"disable-outside-pointer-events": w.disableOutsidePointerEvents,
|
|
8589
8589
|
onDismiss: x[0] || (x[0] = (C) => i(r).onOpenChange(!1)),
|
|
8590
8590
|
onFocusOutside: x[1] || (x[1] = (C) => {
|
|
8591
8591
|
h(C.target) && C.preventDefault(), n("focusOutside", C);
|
|
@@ -8597,7 +8597,7 @@ var yy = /* @__PURE__ */ B({
|
|
|
8597
8597
|
})
|
|
8598
8598
|
}, {
|
|
8599
8599
|
default: _(() => [(c(), $(Le(i(o) === "popper" ? i(zn) : i(xe)), ae({
|
|
8600
|
-
...
|
|
8600
|
+
...w.$attrs,
|
|
8601
8601
|
...i(p)
|
|
8602
8602
|
}, {
|
|
8603
8603
|
id: i(r).contentId,
|
|
@@ -8611,8 +8611,8 @@ var yy = /* @__PURE__ */ B({
|
|
|
8611
8611
|
outline: "none",
|
|
8612
8612
|
...i(o) === "popper" ? v : {}
|
|
8613
8613
|
}
|
|
8614
|
-
}, Ou(i(o) === "popper" ?
|
|
8615
|
-
default: _(() => [S(
|
|
8614
|
+
}, Ou(i(o) === "popper" ? b : {})), {
|
|
8615
|
+
default: _(() => [S(w.$slots, "default")]),
|
|
8616
8616
|
_: 3
|
|
8617
8617
|
}, 16, [
|
|
8618
8618
|
"id",
|
|
@@ -8831,18 +8831,18 @@ var ky = /* @__PURE__ */ B({
|
|
|
8831
8831
|
});
|
|
8832
8832
|
const { isComposing: d, shouldDeferInput: f, handleCompositionStart: p, handleCompositionUpdate: v, handleCompositionEnd: m } = td((T) => {
|
|
8833
8833
|
const I = T.target;
|
|
8834
|
-
I &&
|
|
8834
|
+
I && b(I.value);
|
|
8835
8835
|
});
|
|
8836
8836
|
function h(T) {
|
|
8837
8837
|
d.value || (T.preventDefault(), o.open.value || o.onOpenChange(!0));
|
|
8838
8838
|
}
|
|
8839
|
-
function
|
|
8839
|
+
function b(T) {
|
|
8840
8840
|
o.open.value ? o.filterSearch.value = T : (o.onOpenChange(!0), De(() => {
|
|
8841
8841
|
T && (o.filterSearch.value = T, r.highlightFirstItem());
|
|
8842
8842
|
}));
|
|
8843
8843
|
}
|
|
8844
|
-
function
|
|
8845
|
-
f.value ||
|
|
8844
|
+
function w(T) {
|
|
8845
|
+
f.value || b(T.target.value);
|
|
8846
8846
|
}
|
|
8847
8847
|
function x() {
|
|
8848
8848
|
o.openOnFocus.value && !o.open.value && o.onOpenChange(!0);
|
|
@@ -8891,7 +8891,7 @@ var ky = /* @__PURE__ */ B({
|
|
|
8891
8891
|
role: "combobox",
|
|
8892
8892
|
autocomplete: "off",
|
|
8893
8893
|
onClick: E,
|
|
8894
|
-
onInput:
|
|
8894
|
+
onInput: w,
|
|
8895
8895
|
onKeydown: tt(h, ["down", "up"]),
|
|
8896
8896
|
onFocus: x,
|
|
8897
8897
|
onBlur: C,
|
|
@@ -9260,7 +9260,7 @@ function Ny(e) {
|
|
|
9260
9260
|
}
|
|
9261
9261
|
const x = Lt(n.value[0].value), C = Lt(n.value.at(-1).value), E = a.fullMonth(x, t.value), k = a.fullMonth(C, t.value), T = a.fullYear(x, t.value), I = a.fullYear(C, t.value);
|
|
9262
9262
|
return T === I ? `${E} - ${k} ${I}` : `${E} ${T} - ${k} ${I}`;
|
|
9263
|
-
}), h = g(() => `${e.calendarLabel.value ?? "Event Date"}, ${m.value}`),
|
|
9263
|
+
}), h = g(() => `${e.calendarLabel.value ?? "Event Date"}, ${m.value}`), b = g(() => !(u(e.placeholder.value) || d(e.placeholder.value) || r(e.placeholder.value))), w = g(() => {
|
|
9264
9264
|
for (const x of n.value) {
|
|
9265
9265
|
if (e.minValue.value && Qn(x.value, e.minValue.value)) continue;
|
|
9266
9266
|
const C = Va(x.value), E = e.minValue.value && zu(e.minValue.value, x.value) ? e.minValue.value.day : 1;
|
|
@@ -9285,8 +9285,8 @@ function Ny(e) {
|
|
|
9285
9285
|
prevPage: v,
|
|
9286
9286
|
headingValue: m,
|
|
9287
9287
|
fullCalendarLabel: h,
|
|
9288
|
-
isPlaceholderFocusable:
|
|
9289
|
-
firstFocusableDate:
|
|
9288
|
+
isPlaceholderFocusable: b,
|
|
9289
|
+
firstFocusableDate: w
|
|
9290
9290
|
};
|
|
9291
9291
|
}
|
|
9292
9292
|
const Ky = { style: {
|
|
@@ -9429,7 +9429,7 @@ var Uy = /* @__PURE__ */ B({
|
|
|
9429
9429
|
},
|
|
9430
9430
|
emits: ["update:modelValue", "update:placeholder"],
|
|
9431
9431
|
setup(e, { emit: a }) {
|
|
9432
|
-
const t = e, n = a, { disabled: o, readonly: r, initialFocus: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: f, minValue: p, maxValue: v, numberOfMonths: m, preventDeselect: h, isDateDisabled:
|
|
9432
|
+
const t = e, n = a, { disabled: o, readonly: r, initialFocus: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, multiple: f, minValue: p, maxValue: v, numberOfMonths: m, preventDeselect: h, isDateDisabled: b, isDateUnavailable: w, calendarLabel: x, defaultValue: C, nextPage: E, prevPage: k, dir: T, locale: I, disableDaysOutsideCurrentView: M } = Ue(t), { primitiveElement: H, currentElement: X } = Kt(), N = ld(I), R = bt(T), F = g(() => t.weekStartsOn ?? od(N.value)), K = /* @__PURE__ */ je(t, "modelValue", n, {
|
|
9433
9433
|
defaultValue: C.value,
|
|
9434
9434
|
passive: t.modelValue === void 0
|
|
9435
9435
|
}), U = ad({
|
|
@@ -9454,8 +9454,8 @@ var Uy = /* @__PURE__ */ B({
|
|
|
9454
9454
|
disabled: o,
|
|
9455
9455
|
weekdayFormat: u,
|
|
9456
9456
|
pagedNavigation: s,
|
|
9457
|
-
isDateDisabled:
|
|
9458
|
-
isDateUnavailable:
|
|
9457
|
+
isDateDisabled: b.value,
|
|
9458
|
+
isDateUnavailable: w.value,
|
|
9459
9459
|
calendarLabel: x,
|
|
9460
9460
|
nextPage: E,
|
|
9461
9461
|
prevPage: k
|
|
@@ -9632,10 +9632,10 @@ var Uy = /* @__PURE__ */ B({
|
|
|
9632
9632
|
function h(x) {
|
|
9633
9633
|
n.readonly.value || n.isDateDisabled(x) || n.isDateUnavailable?.(x) || n.onDateChange(x);
|
|
9634
9634
|
}
|
|
9635
|
-
function
|
|
9635
|
+
function b() {
|
|
9636
9636
|
p.value || h(a.day);
|
|
9637
9637
|
}
|
|
9638
|
-
function
|
|
9638
|
+
function w(x) {
|
|
9639
9639
|
if (p.value || (x.code === t.ENTER || x.code === t.SPACE_CODE) && (x.ctrlKey || x.metaKey || x.altKey)) return;
|
|
9640
9640
|
x.preventDefault(), x.stopPropagation();
|
|
9641
9641
|
const C = n.parentElement.value, E = 7, k = n.dir.value === "rtl" ? -1 : 1;
|
|
@@ -9695,8 +9695,8 @@ var Uy = /* @__PURE__ */ B({
|
|
|
9695
9695
|
"data-outside-visible-view": f.value ? "" : void 0,
|
|
9696
9696
|
"data-focused": v.value ? "" : void 0,
|
|
9697
9697
|
tabindex: v.value ? 0 : d.value || p.value ? void 0 : -1,
|
|
9698
|
-
onClick:
|
|
9699
|
-
onKeydown: tt(
|
|
9698
|
+
onClick: b,
|
|
9699
|
+
onKeydown: tt(w, [
|
|
9700
9700
|
"up",
|
|
9701
9701
|
"down",
|
|
9702
9702
|
"left",
|
|
@@ -10016,7 +10016,7 @@ var yb = /* @__PURE__ */ B({
|
|
|
10016
10016
|
defaultValue: n.defaultCurrentTabStopId,
|
|
10017
10017
|
passive: n.currentTabStopId === void 0
|
|
10018
10018
|
}), f = P(!1), p = P(!1), v = P(0), { getItems: m, CollectionSlot: h } = ct({ isProvider: !0 });
|
|
10019
|
-
function
|
|
10019
|
+
function b(x) {
|
|
10020
10020
|
const C = !p.value;
|
|
10021
10021
|
if (x.currentTarget && x.target === x.currentTarget && C && !f.value) {
|
|
10022
10022
|
const E = new CustomEvent(Ph, Bh);
|
|
@@ -10032,7 +10032,7 @@ var yb = /* @__PURE__ */ B({
|
|
|
10032
10032
|
}
|
|
10033
10033
|
p.value = !1;
|
|
10034
10034
|
}
|
|
10035
|
-
function
|
|
10035
|
+
function w() {
|
|
10036
10036
|
setTimeout(() => {
|
|
10037
10037
|
p.value = !1;
|
|
10038
10038
|
}, 1);
|
|
@@ -10063,8 +10063,8 @@ var yb = /* @__PURE__ */ B({
|
|
|
10063
10063
|
dir: i(u),
|
|
10064
10064
|
style: { outline: "none" },
|
|
10065
10065
|
onMousedown: C[0] || (C[0] = (E) => p.value = !0),
|
|
10066
|
-
onMouseup:
|
|
10067
|
-
onFocus:
|
|
10066
|
+
onMouseup: w,
|
|
10067
|
+
onFocus: b,
|
|
10068
10068
|
onBlur: C[1] || (C[1] = (E) => f.value = !1)
|
|
10069
10069
|
}, {
|
|
10070
10070
|
default: _(() => [S(x.$slots, "default")]),
|
|
@@ -10238,34 +10238,34 @@ var kb = /* @__PURE__ */ B({
|
|
|
10238
10238
|
if (ja(l?.modelValue.value))
|
|
10239
10239
|
s.value === "indeterminate" ? s.value = t.trueValue : s.value = d.value ? t.falseValue : t.trueValue;
|
|
10240
10240
|
else {
|
|
10241
|
-
const
|
|
10242
|
-
if (_o(
|
|
10243
|
-
const x =
|
|
10244
|
-
|
|
10245
|
-
} else
|
|
10246
|
-
l.modelValue.value =
|
|
10241
|
+
const w = [...l.modelValue.value || []];
|
|
10242
|
+
if (_o(w, t.value)) {
|
|
10243
|
+
const x = w.findIndex((C) => It(C, t.value));
|
|
10244
|
+
w.splice(x, 1);
|
|
10245
|
+
} else w.push(t.value);
|
|
10246
|
+
l.modelValue.value = w;
|
|
10247
10247
|
}
|
|
10248
10248
|
}
|
|
10249
|
-
const v = ta(r), m = Ja(), h = Do(),
|
|
10249
|
+
const v = ta(r), m = Ja(), h = Do(), b = g(() => {
|
|
10250
10250
|
if (!h["aria-label"])
|
|
10251
10251
|
return t.id && r.value ? document.querySelector(`[for="${t.id}"]`)?.innerText : void 0;
|
|
10252
10252
|
});
|
|
10253
10253
|
return _b({
|
|
10254
10254
|
disabled: u,
|
|
10255
10255
|
state: f
|
|
10256
|
-
}), (
|
|
10257
|
-
...
|
|
10256
|
+
}), (w, x) => (c(), y(oe, null, [(c(), $(Le(i(l)?.rovingFocus.value ? i(Nn) : i(xe)), ae({
|
|
10257
|
+
...w.$attrs,
|
|
10258
10258
|
...i(m)
|
|
10259
10259
|
}, {
|
|
10260
|
-
id:
|
|
10260
|
+
id: w.id,
|
|
10261
10261
|
ref: i(o),
|
|
10262
10262
|
role: "checkbox",
|
|
10263
|
-
"as-child":
|
|
10264
|
-
as:
|
|
10265
|
-
type:
|
|
10263
|
+
"as-child": w.asChild,
|
|
10264
|
+
as: w.as,
|
|
10265
|
+
type: w.as === "button" ? "button" : void 0,
|
|
10266
10266
|
"aria-checked": i(hl)(f.value) ? "mixed" : f.value,
|
|
10267
|
-
"aria-required":
|
|
10268
|
-
"aria-label":
|
|
10267
|
+
"aria-required": w.required,
|
|
10268
|
+
"aria-label": w.$attrs["aria-label"] || b.value,
|
|
10269
10269
|
"data-state": i(Od)(f.value),
|
|
10270
10270
|
"data-disabled": u.value ? "" : void 0,
|
|
10271
10271
|
disabled: u.value,
|
|
@@ -10274,7 +10274,7 @@ var kb = /* @__PURE__ */ B({
|
|
|
10274
10274
|
}, ["prevent"]), ["enter"]),
|
|
10275
10275
|
onClick: p
|
|
10276
10276
|
}), {
|
|
10277
|
-
default: _(() => [S(
|
|
10277
|
+
default: _(() => [S(w.$slots, "default", {
|
|
10278
10278
|
modelValue: i(s),
|
|
10279
10279
|
state: f.value
|
|
10280
10280
|
})]),
|
|
@@ -10292,14 +10292,14 @@ var kb = /* @__PURE__ */ B({
|
|
|
10292
10292
|
"disabled",
|
|
10293
10293
|
"focusable",
|
|
10294
10294
|
"onKeydown"
|
|
10295
|
-
])), i(v) &&
|
|
10295
|
+
])), i(v) && w.name && !i(l) ? (c(), $(i(ca), ae({
|
|
10296
10296
|
key: 0,
|
|
10297
10297
|
type: "checkbox",
|
|
10298
10298
|
checked: !!f.value,
|
|
10299
|
-
name:
|
|
10300
|
-
value:
|
|
10299
|
+
name: w.name,
|
|
10300
|
+
value: w.value,
|
|
10301
10301
|
disabled: u.value,
|
|
10302
|
-
required:
|
|
10302
|
+
required: w.required
|
|
10303
10303
|
}, i(m)), null, 16, [
|
|
10304
10304
|
"checked",
|
|
10305
10305
|
"name",
|
|
@@ -10675,10 +10675,10 @@ var Jb = /* @__PURE__ */ B({
|
|
|
10675
10675
|
const N = E ? C.clientX - k.left - I / 2 : C.clientX - k.left - (p.value ?? 0);
|
|
10676
10676
|
return X(N);
|
|
10677
10677
|
}
|
|
10678
|
-
const
|
|
10678
|
+
const b = g(() => m.value ? "left" : "right"), w = g(() => m.value ? "right" : "left"), x = g(() => m.value ? 1 : -1);
|
|
10679
10679
|
return Nd({
|
|
10680
|
-
startEdge:
|
|
10681
|
-
endEdge:
|
|
10680
|
+
startEdge: b,
|
|
10681
|
+
endEdge: w,
|
|
10682
10682
|
direction: x,
|
|
10683
10683
|
size: "width"
|
|
10684
10684
|
}), (C, E) => (c(), $(Kd, {
|
|
@@ -10740,11 +10740,11 @@ var Jb = /* @__PURE__ */ B({
|
|
|
10740
10740
|
const I = [0, E.height - T], M = v.value ? [o.value, r.value] : [r.value, o.value], H = gl(I, M), X = C ? x.clientY - E.top - T / 2 : x.clientY - E.top - (f.value ?? 0);
|
|
10741
10741
|
return p.value = E, H(X);
|
|
10742
10742
|
}
|
|
10743
|
-
const h = g(() => v.value ? "bottom" : "top"),
|
|
10743
|
+
const h = g(() => v.value ? "bottom" : "top"), b = g(() => v.value ? "top" : "bottom"), w = g(() => v.value ? 1 : -1);
|
|
10744
10744
|
return Nd({
|
|
10745
10745
|
startEdge: h,
|
|
10746
|
-
endEdge:
|
|
10747
|
-
direction:
|
|
10746
|
+
endEdge: b,
|
|
10747
|
+
direction: w,
|
|
10748
10748
|
size: "height"
|
|
10749
10749
|
}), (x, C) => (c(), $(Kd, {
|
|
10750
10750
|
ref: i(u),
|
|
@@ -10851,7 +10851,7 @@ var ow = /* @__PURE__ */ B({
|
|
|
10851
10851
|
},
|
|
10852
10852
|
emits: ["update:modelValue", "valueCommit"],
|
|
10853
10853
|
setup(e, { emit: a }) {
|
|
10854
|
-
const t = e, n = a, { min: o, max: r, step: l, minStepsBetweenThumbs: s, orientation: u, disabled: d, thumbAlignment: f, dir: p } = Ue(t), v = bt(p), { forwardRef: m, currentElement: h } = ye(),
|
|
10854
|
+
const t = e, n = a, { min: o, max: r, step: l, minStepsBetweenThumbs: s, orientation: u, disabled: d, thumbAlignment: f, dir: p } = Ue(t), v = bt(p), { forwardRef: m, currentElement: h } = ye(), b = ta(h), { CollectionSlot: w } = ct({ isProvider: !0 }), x = /* @__PURE__ */ je(t, "modelValue", n, {
|
|
10855
10855
|
defaultValue: t.defaultValue,
|
|
10856
10856
|
passive: t.modelValue === void 0
|
|
10857
10857
|
}), C = g(() => Array.isArray(x.value) ? [...x.value] : []), E = P(0), k = P(C.value);
|
|
@@ -10885,7 +10885,7 @@ var ow = /* @__PURE__ */ B({
|
|
|
10885
10885
|
max: r,
|
|
10886
10886
|
disabled: d,
|
|
10887
10887
|
thumbAlignment: f
|
|
10888
|
-
}), (N, R) => (c(), $(i(
|
|
10888
|
+
}), (N, R) => (c(), $(i(w), null, {
|
|
10889
10889
|
default: _(() => [(c(), $(Le(i(u) === "horizontal" ? ew : aw), ae(N.$attrs, {
|
|
10890
10890
|
ref: i(m),
|
|
10891
10891
|
"as-child": N.asChild,
|
|
@@ -10911,7 +10911,7 @@ var ow = /* @__PURE__ */ B({
|
|
|
10911
10911
|
}
|
|
10912
10912
|
})
|
|
10913
10913
|
}), {
|
|
10914
|
-
default: _(() => [S(N.$slots, "default", { modelValue: i(x) }), i(
|
|
10914
|
+
default: _(() => [S(N.$slots, "default", { modelValue: i(x) }), i(b) && N.name ? (c(), $(i(ca), {
|
|
10915
10915
|
key: 0,
|
|
10916
10916
|
type: "number",
|
|
10917
10917
|
value: i(x),
|
|
@@ -11042,9 +11042,9 @@ var ow = /* @__PURE__ */ B({
|
|
|
11042
11042
|
return qe(() => {
|
|
11043
11043
|
t.thumbElements.value.push(r.value);
|
|
11044
11044
|
}), ht(() => {
|
|
11045
|
-
const h = t.thumbElements.value.findIndex((
|
|
11045
|
+
const h = t.thumbElements.value.findIndex((b) => b === r.value) ?? -1;
|
|
11046
11046
|
t.thumbElements.value.splice(h, 1);
|
|
11047
|
-
}), (h,
|
|
11047
|
+
}), (h, b) => (c(), $(i(l), null, {
|
|
11048
11048
|
default: _(() => [O(i(xe), ae(h.$attrs, {
|
|
11049
11049
|
ref: i(o),
|
|
11050
11050
|
role: "slider",
|
|
@@ -11064,7 +11064,7 @@ var ow = /* @__PURE__ */ B({
|
|
|
11064
11064
|
[i(n).startEdge.value]: `calc(${u.value}% + ${v.value}px)`,
|
|
11065
11065
|
display: !i(m) && s.value === void 0 ? "none" : void 0
|
|
11066
11066
|
},
|
|
11067
|
-
onFocus:
|
|
11067
|
+
onFocus: b[0] || (b[0] = () => {
|
|
11068
11068
|
i(t).valueIndexToChangeRef.value = h.index;
|
|
11069
11069
|
})
|
|
11070
11070
|
}), {
|
|
@@ -11338,7 +11338,7 @@ var xw = /* @__PURE__ */ B({
|
|
|
11338
11338
|
setup(e, { emit: a }) {
|
|
11339
11339
|
const t = e, n = a, o = qa(), r = Kn(), { trapFocus: l, disableOutsidePointerEvents: s, loop: u } = Ue(t);
|
|
11340
11340
|
Vo(), In(s.value);
|
|
11341
|
-
const d = P(""), f = P(0), p = P(0), v = P(null), m = P("right"), h = P(0),
|
|
11341
|
+
const d = P(""), f = P(0), p = P(0), v = P(null), m = P("right"), h = P(0), b = P(null), w = P(), { forwardRef: x, currentElement: C } = ye(), { handleTypeaheadSearch: E } = Mn(), k = P();
|
|
11342
11342
|
function T(A) {
|
|
11343
11343
|
const W = ai(A, k.value || Je(), C.value, {
|
|
11344
11344
|
loop: u.value,
|
|
@@ -11380,7 +11380,7 @@ var xw = /* @__PURE__ */ B({
|
|
|
11380
11380
|
});
|
|
11381
11381
|
if (Z) return Z?.focus();
|
|
11382
11382
|
if (A.code === "Space") return;
|
|
11383
|
-
const re =
|
|
11383
|
+
const re = w.value?.getItems() ?? [];
|
|
11384
11384
|
if (z && (A.key === "Tab" && r.modal.value && A.preventDefault(), !L && Y && !G && E(A.key, re)), A.target !== C.value || !oh.includes(A.key)) return;
|
|
11385
11385
|
A.preventDefault();
|
|
11386
11386
|
const ie = [...re.map((_e) => _e.ref)];
|
|
@@ -11402,7 +11402,7 @@ var xw = /* @__PURE__ */ B({
|
|
|
11402
11402
|
}
|
|
11403
11403
|
return ww({
|
|
11404
11404
|
onItemEnter: (A) => !!X(A),
|
|
11405
|
-
onItemLeave: (A) => X(A) ? !0 : (["INPUT", "TEXTAREA"].includes(Je()?.tagName || "") || C.value?.focus(),
|
|
11405
|
+
onItemLeave: (A) => X(A) ? !0 : (["INPUT", "TEXTAREA"].includes(Je()?.tagName || "") || C.value?.focus(), b.value = null, !1),
|
|
11406
11406
|
onTriggerLeave: (A) => !!X(A),
|
|
11407
11407
|
searchRef: d,
|
|
11408
11408
|
highlightedElement: k,
|
|
@@ -11434,9 +11434,9 @@ var xw = /* @__PURE__ */ B({
|
|
|
11434
11434
|
}, {
|
|
11435
11435
|
default: _(() => [O(i(Vn), {
|
|
11436
11436
|
ref_key: "rovingFocusGroupRef",
|
|
11437
|
-
ref:
|
|
11438
|
-
"current-tab-stop-id":
|
|
11439
|
-
"onUpdate:currentTabStopId": W[0] || (W[0] = (z) =>
|
|
11437
|
+
ref: w,
|
|
11438
|
+
"current-tab-stop-id": b.value,
|
|
11439
|
+
"onUpdate:currentTabStopId": W[0] || (W[0] = (z) => b.value = z),
|
|
11440
11440
|
"as-child": "",
|
|
11441
11441
|
orientation: "vertical",
|
|
11442
11442
|
dir: i(r).dir.value,
|
|
@@ -12356,8 +12356,8 @@ var Ww = /* @__PURE__ */ B({
|
|
|
12356
12356
|
i(r).onOpenChange(!1), i(s).trigger.value && (i(u).highlightedElement.value = i(s).trigger.value, i(s).trigger.value.focus()), m.preventDefault();
|
|
12357
12357
|
}),
|
|
12358
12358
|
onKeydown: v[4] || (v[4] = (m) => {
|
|
12359
|
-
const h = m.currentTarget?.contains(m.target),
|
|
12360
|
-
h &&
|
|
12359
|
+
const h = m.currentTarget?.contains(m.target), b = i(ih)[i(l).dir.value].includes(m.key);
|
|
12360
|
+
h && b && (i(r).onOpenChange(!1), i(u).filterElement.value ? (i(u).filterElement.value.focus(), i(u).highlightedElement.value = i(s).trigger.value, i(s).trigger.value?.scrollIntoView({ block: "nearest" })) : i(s).trigger.value?.focus(), m.preventDefault());
|
|
12361
12361
|
})
|
|
12362
12362
|
}), {
|
|
12363
12363
|
default: _(() => [S(p.$slots, "default")]),
|
|
@@ -12416,15 +12416,15 @@ var Ww = /* @__PURE__ */ B({
|
|
|
12416
12416
|
s();
|
|
12417
12417
|
const v = t.content.value?.getBoundingClientRect();
|
|
12418
12418
|
if (v?.width) {
|
|
12419
|
-
const m = t.content.value?.dataset.side, h = m === "right",
|
|
12419
|
+
const m = t.content.value?.dataset.side, h = m === "right", b = h ? -5 : 5, w = v[h ? "left" : "right"], x = v[h ? "right" : "left"];
|
|
12420
12420
|
r.onPointerGraceIntentChange({
|
|
12421
12421
|
area: [
|
|
12422
12422
|
{
|
|
12423
|
-
x: p.clientX +
|
|
12423
|
+
x: p.clientX + b,
|
|
12424
12424
|
y: p.clientY
|
|
12425
12425
|
},
|
|
12426
12426
|
{
|
|
12427
|
-
x:
|
|
12427
|
+
x: w,
|
|
12428
12428
|
y: v.top
|
|
12429
12429
|
},
|
|
12430
12430
|
{
|
|
@@ -12436,7 +12436,7 @@ var Ww = /* @__PURE__ */ B({
|
|
|
12436
12436
|
y: v.bottom
|
|
12437
12437
|
},
|
|
12438
12438
|
{
|
|
12439
|
-
x:
|
|
12439
|
+
x: w,
|
|
12440
12440
|
y: v.bottom
|
|
12441
12441
|
}
|
|
12442
12442
|
],
|
|
@@ -13003,7 +13003,7 @@ var px = /* @__PURE__ */ B({
|
|
|
13003
13003
|
}
|
|
13004
13004
|
return qe(() => {
|
|
13005
13005
|
o.value && (r.triggerElement.value = o.value);
|
|
13006
|
-
}), (h,
|
|
13006
|
+
}), (h, b) => (c(), y(oe, null, [O(i(yl), {
|
|
13007
13007
|
as: "template",
|
|
13008
13008
|
reference: s.value
|
|
13009
13009
|
}, null, 8, ["reference"]), O(i(xe), ae({
|
|
@@ -13257,7 +13257,7 @@ var bx = /* @__PURE__ */ B({
|
|
|
13257
13257
|
"update:placeholder"
|
|
13258
13258
|
],
|
|
13259
13259
|
setup(e, { emit: a }) {
|
|
13260
|
-
const t = e, n = a, { locale: o, disabled: r, readonly: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: f, preventDeselect: p, isDateDisabled: v, isDateUnavailable: m, defaultOpen: h, modal:
|
|
13260
|
+
const t = e, n = a, { locale: o, disabled: r, readonly: l, pagedNavigation: s, weekdayFormat: u, fixedWeeks: d, numberOfMonths: f, preventDeselect: p, isDateDisabled: v, isDateUnavailable: m, defaultOpen: h, modal: b, id: w, name: x, required: C, minValue: E, maxValue: k, granularity: T, hideTimeZone: I, hourCycle: M, defaultValue: H, dir: X, step: N, closeOnSelect: R } = Ue(t), F = bt(X), K = ld(o), U = g(() => t.weekStartsOn ?? od(K.value)), A = /* @__PURE__ */ je(t, "modelValue", n, {
|
|
13261
13261
|
defaultValue: H.value,
|
|
13262
13262
|
passive: t.modelValue === void 0
|
|
13263
13263
|
}), W = g(() => ad({
|
|
@@ -13297,9 +13297,9 @@ var bx = /* @__PURE__ */ B({
|
|
|
13297
13297
|
modelValue: A,
|
|
13298
13298
|
placeholder: z,
|
|
13299
13299
|
defaultOpen: h,
|
|
13300
|
-
modal:
|
|
13300
|
+
modal: b,
|
|
13301
13301
|
open: G,
|
|
13302
|
-
id:
|
|
13302
|
+
id: w,
|
|
13303
13303
|
name: x,
|
|
13304
13304
|
required: C,
|
|
13305
13305
|
minValue: E,
|
|
@@ -13321,7 +13321,7 @@ var bx = /* @__PURE__ */ B({
|
|
|
13321
13321
|
open: i(G),
|
|
13322
13322
|
"onUpdate:open": re[0] || (re[0] = (ie) => Vt(G) ? G.value = ie : null),
|
|
13323
13323
|
"default-open": i(h),
|
|
13324
|
-
modal: i(
|
|
13324
|
+
modal: i(b)
|
|
13325
13325
|
}, {
|
|
13326
13326
|
default: _(() => [S(Z.$slots, "default")]),
|
|
13327
13327
|
_: 3
|
|
@@ -13691,8 +13691,8 @@ var bx = /* @__PURE__ */ B({
|
|
|
13691
13691
|
}, ["prevent"])),
|
|
13692
13692
|
onPointerDownOutside: p[1] || (p[1] = (v) => {
|
|
13693
13693
|
n("pointerDownOutside", v);
|
|
13694
|
-
const m = v.detail.originalEvent, h = m.button === 0 && m.ctrlKey === !0,
|
|
13695
|
-
l.value =
|
|
13694
|
+
const m = v.detail.originalEvent, h = m.button === 0 && m.ctrlKey === !0, b = m.button === 2 || h;
|
|
13695
|
+
l.value = b;
|
|
13696
13696
|
}),
|
|
13697
13697
|
onFocusOutside: p[2] || (p[2] = Ae(() => {
|
|
13698
13698
|
}, ["prevent"]))
|
|
@@ -15129,15 +15129,15 @@ var S0 = /* @__PURE__ */ B({
|
|
|
15129
15129
|
}), { disabled: s, loop: u, orientation: d, name: f, required: p, dir: v } = Ue(t), m = bt(v), h = ta(r);
|
|
15130
15130
|
return C0({
|
|
15131
15131
|
modelValue: l,
|
|
15132
|
-
changeModelValue: (
|
|
15133
|
-
l.value =
|
|
15132
|
+
changeModelValue: (b) => {
|
|
15133
|
+
l.value = b;
|
|
15134
15134
|
},
|
|
15135
15135
|
disabled: s,
|
|
15136
15136
|
loop: u,
|
|
15137
15137
|
orientation: d,
|
|
15138
15138
|
name: f?.value,
|
|
15139
15139
|
required: p
|
|
15140
|
-
}), (
|
|
15140
|
+
}), (b, w) => (c(), $(i(Vn), {
|
|
15141
15141
|
"as-child": "",
|
|
15142
15142
|
orientation: i(d),
|
|
15143
15143
|
dir: i(m),
|
|
@@ -15147,13 +15147,13 @@ var S0 = /* @__PURE__ */ B({
|
|
|
15147
15147
|
ref: i(o),
|
|
15148
15148
|
role: "radiogroup",
|
|
15149
15149
|
"data-disabled": i(s) ? "" : void 0,
|
|
15150
|
-
"as-child":
|
|
15151
|
-
as:
|
|
15150
|
+
"as-child": b.asChild,
|
|
15151
|
+
as: b.as,
|
|
15152
15152
|
"aria-orientation": i(d),
|
|
15153
15153
|
"aria-required": i(p),
|
|
15154
15154
|
dir: i(m)
|
|
15155
15155
|
}, {
|
|
15156
|
-
default: _(() => [S(
|
|
15156
|
+
default: _(() => [S(b.$slots, "default", { modelValue: i(l) }), i(h) && i(f) ? (c(), $(i(ca), {
|
|
15157
15157
|
key: 0,
|
|
15158
15158
|
required: i(p),
|
|
15159
15159
|
disabled: i(s),
|
|
@@ -15242,7 +15242,7 @@ var A0 = /* @__PURE__ */ B({
|
|
|
15242
15242
|
}, 0);
|
|
15243
15243
|
}
|
|
15244
15244
|
const m = Ja();
|
|
15245
|
-
return (h,
|
|
15245
|
+
return (h, b) => (c(), $(i(Nn), {
|
|
15246
15246
|
checked: d.value,
|
|
15247
15247
|
disabled: s.value,
|
|
15248
15248
|
"as-child": "",
|
|
@@ -15258,9 +15258,9 @@ var A0 = /* @__PURE__ */ B({
|
|
|
15258
15258
|
checked: d.value,
|
|
15259
15259
|
required: u.value,
|
|
15260
15260
|
disabled: s.value,
|
|
15261
|
-
"onUpdate:checked":
|
|
15262
|
-
onSelect:
|
|
15263
|
-
onKeydown:
|
|
15261
|
+
"onUpdate:checked": b[0] || (b[0] = (w) => i(l).changeModelValue(h.value)),
|
|
15262
|
+
onSelect: b[1] || (b[1] = (w) => n("select", w)),
|
|
15263
|
+
onKeydown: b[2] || (b[2] = tt(Ae(() => {
|
|
15264
15264
|
}, ["prevent"]), ["enter"])),
|
|
15265
15265
|
onFocus: v
|
|
15266
15266
|
}), {
|
|
@@ -15408,7 +15408,7 @@ var M0 = /* @__PURE__ */ B({
|
|
|
15408
15408
|
y: 0
|
|
15409
15409
|
}), m = g(() => l.value && Array.isArray(u.value) ? u.value?.length === 0 : ja(u.value));
|
|
15410
15410
|
ct({ isProvider: !0 });
|
|
15411
|
-
const h = bt(s),
|
|
15411
|
+
const h = bt(s), b = ta(f), w = P(/* @__PURE__ */ new Set()), x = g(() => Array.from(w.value).map((k) => k.value).join(";"));
|
|
15412
15412
|
function C(k) {
|
|
15413
15413
|
if (l.value) {
|
|
15414
15414
|
const T = Array.isArray(u.value) ? [...u.value] : [], I = T.findIndex((M) => pi(M, k, t.by));
|
|
@@ -15416,7 +15416,7 @@ var M0 = /* @__PURE__ */ B({
|
|
|
15416
15416
|
} else u.value = k;
|
|
15417
15417
|
}
|
|
15418
15418
|
function E(k) {
|
|
15419
|
-
return Array.from(
|
|
15419
|
+
return Array.from(w.value).find((T) => En(k, T.value, t.by));
|
|
15420
15420
|
}
|
|
15421
15421
|
return fc({
|
|
15422
15422
|
triggerElement: f,
|
|
@@ -15441,20 +15441,20 @@ var M0 = /* @__PURE__ */ B({
|
|
|
15441
15441
|
triggerPointerDownPosRef: v,
|
|
15442
15442
|
disabled: r,
|
|
15443
15443
|
isEmptyModelValue: m,
|
|
15444
|
-
optionsSet:
|
|
15444
|
+
optionsSet: w,
|
|
15445
15445
|
onOptionAdd: (k) => {
|
|
15446
15446
|
const T = E(k.value);
|
|
15447
|
-
T &&
|
|
15447
|
+
T && w.value.delete(T), w.value.add(k);
|
|
15448
15448
|
},
|
|
15449
15449
|
onOptionRemove: (k) => {
|
|
15450
15450
|
const T = E(k.value);
|
|
15451
|
-
T &&
|
|
15451
|
+
T && w.value.delete(T);
|
|
15452
15452
|
}
|
|
15453
15453
|
}), (k, T) => (c(), $(i(tn), null, {
|
|
15454
15454
|
default: _(() => [S(k.$slots, "default", {
|
|
15455
15455
|
modelValue: i(u),
|
|
15456
15456
|
open: i(d)
|
|
15457
|
-
}), i(
|
|
15457
|
+
}), i(b) && k.name ? (c(), $(z0, {
|
|
15458
15458
|
key: x.value,
|
|
15459
15459
|
"aria-hidden": "true",
|
|
15460
15460
|
tabindex: "-1",
|
|
@@ -15468,7 +15468,7 @@ var M0 = /* @__PURE__ */ B({
|
|
|
15468
15468
|
default: _(() => [i(ja)(i(u)) ? (c(), y("option", {
|
|
15469
15469
|
key: 0,
|
|
15470
15470
|
value: k.nullableValue
|
|
15471
|
-
}, null, 8, R0)) : q("v-if", !0), (c(!0), y(oe, null, ke(Array.from(
|
|
15471
|
+
}, null, 8, R0)) : q("v-if", !0), (c(!0), y(oe, null, ke(Array.from(w.value), (I) => (c(), y("option", ae({ key: I.value ?? "" }, { ref_for: !0 }, I), null, 16))), 128))]),
|
|
15472
15472
|
_: 1
|
|
15473
15473
|
}, 8, [
|
|
15474
15474
|
"multiple",
|
|
@@ -15776,7 +15776,7 @@ var W0 = /* @__PURE__ */ B({
|
|
|
15776
15776
|
Vo(), In(t.bodyLock);
|
|
15777
15777
|
const { CollectionSlot: l, getItems: s } = ct(), u = P();
|
|
15778
15778
|
Rn(u);
|
|
15779
|
-
const { search: d, handleTypeaheadSearch: f } = Mn(), p = P(), v = P(), m = P(), h = P(!1),
|
|
15779
|
+
const { search: d, handleTypeaheadSearch: f } = Mn(), p = P(), v = P(), m = P(), h = P(!1), b = P(!1), w = P(!1);
|
|
15780
15780
|
function x() {
|
|
15781
15781
|
v.value && u.value && li([v.value, u.value]);
|
|
15782
15782
|
}
|
|
@@ -15833,12 +15833,12 @@ var W0 = /* @__PURE__ */ B({
|
|
|
15833
15833
|
p.value = M;
|
|
15834
15834
|
},
|
|
15835
15835
|
itemRefCallback: (M, H, X) => {
|
|
15836
|
-
const N = !
|
|
15836
|
+
const N = !b.value && !X, R = En(o.modelValue.value, H, o.by);
|
|
15837
15837
|
if (o.multiple.value) {
|
|
15838
|
-
if (
|
|
15839
|
-
(R || N) && (v.value = M, R && (
|
|
15838
|
+
if (w.value) return;
|
|
15839
|
+
(R || N) && (v.value = M, R && (w.value = !0));
|
|
15840
15840
|
} else (R || N) && (v.value = M);
|
|
15841
|
-
N && (
|
|
15841
|
+
N && (b.value = !0);
|
|
15842
15842
|
},
|
|
15843
15843
|
selectedItem: v,
|
|
15844
15844
|
selectedItemText: m,
|
|
@@ -15846,7 +15846,7 @@ var W0 = /* @__PURE__ */ B({
|
|
|
15846
15846
|
u.value?.focus();
|
|
15847
15847
|
},
|
|
15848
15848
|
itemTextRefCallback: (M, H, X) => {
|
|
15849
|
-
const N = !
|
|
15849
|
+
const N = !b.value && !X;
|
|
15850
15850
|
(En(o.modelValue.value, H, o.by) || N) && (m.value = M);
|
|
15851
15851
|
},
|
|
15852
15852
|
focusSelectedItem: x,
|
|
@@ -15926,8 +15926,8 @@ var G0 = /* @__PURE__ */ B({
|
|
|
15926
15926
|
},
|
|
15927
15927
|
emits: ["placed"],
|
|
15928
15928
|
setup(e, { emit: a }) {
|
|
15929
|
-
const t = e, n = a, { getItems: o } = ct(), r = pa(), l = Jo(), s = P(!1), u = P(!0), d = P(), { forwardRef: f, currentElement: p } = ye(), { viewport: v, selectedItem: m, selectedItemText: h, focusSelectedItem:
|
|
15930
|
-
function
|
|
15929
|
+
const t = e, n = a, { getItems: o } = ct(), r = pa(), l = Jo(), s = P(!1), u = P(!0), d = P(), { forwardRef: f, currentElement: p } = ye(), { viewport: v, selectedItem: m, selectedItemText: h, focusSelectedItem: b } = l;
|
|
15930
|
+
function w() {
|
|
15931
15931
|
if (r.triggerElement.value && r.valueElement.value && d.value && p.value && v?.value && m?.value && h?.value) {
|
|
15932
15932
|
const E = r.triggerElement.value.getBoundingClientRect(), k = p.value.getBoundingClientRect(), T = r.valueElement.value.getBoundingClientRect(), I = h.value.getBoundingClientRect();
|
|
15933
15933
|
if (r.dir.value !== "rtl") {
|
|
@@ -15954,13 +15954,13 @@ var G0 = /* @__PURE__ */ B({
|
|
|
15954
15954
|
}
|
|
15955
15955
|
const x = P("");
|
|
15956
15956
|
qe(async () => {
|
|
15957
|
-
await De(),
|
|
15957
|
+
await De(), w(), p.value && (x.value = window.getComputedStyle(p.value).zIndex);
|
|
15958
15958
|
});
|
|
15959
15959
|
function C(E) {
|
|
15960
|
-
E && u.value === !0 && (
|
|
15960
|
+
E && u.value === !0 && (w(), b?.(), u.value = !1);
|
|
15961
15961
|
}
|
|
15962
15962
|
return qv(r.triggerElement, () => {
|
|
15963
|
-
|
|
15963
|
+
w();
|
|
15964
15964
|
}), j0({
|
|
15965
15965
|
contentWrapper: d,
|
|
15966
15966
|
shouldExpandOnScrollRef: s,
|
|
@@ -16220,15 +16220,15 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16220
16220
|
emits: ["select"],
|
|
16221
16221
|
setup(e, { emit: a }) {
|
|
16222
16222
|
const t = e, n = a, { disabled: o } = Ue(t), r = pa(), l = Jo(), { forwardRef: s, currentElement: u } = ye(), { CollectionItem: d } = ct(), f = g(() => En(r.modelValue?.value, t.value, r.by)), p = P(!1), v = P(t.textValue ?? ""), m = et(void 0, "reka-select-item-text"), h = "select.select";
|
|
16223
|
-
async function
|
|
16223
|
+
async function b(k) {
|
|
16224
16224
|
if (k.defaultPrevented) return;
|
|
16225
16225
|
const T = {
|
|
16226
16226
|
originalEvent: k,
|
|
16227
16227
|
value: t.value
|
|
16228
16228
|
};
|
|
16229
|
-
Ca(h,
|
|
16229
|
+
Ca(h, w, T);
|
|
16230
16230
|
}
|
|
16231
|
-
async function
|
|
16231
|
+
async function w(k) {
|
|
16232
16232
|
await De(), n("select", k), !k.defaultPrevented && (o.value || (r.onValueChange(t.value), r.multiple.value || r.onOpenChange(!1)));
|
|
16233
16233
|
}
|
|
16234
16234
|
async function x(k) {
|
|
@@ -16238,7 +16238,7 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16238
16238
|
await De(), !k.defaultPrevented && k.currentTarget === Je() && l.onItemLeave?.();
|
|
16239
16239
|
}
|
|
16240
16240
|
async function E(k) {
|
|
16241
|
-
await De(), !(k.defaultPrevented || l.searchRef?.value !== "" && k.key === " ") && (O0.includes(k.key) &&
|
|
16241
|
+
await De(), !(k.defaultPrevented || l.searchRef?.value !== "" && k.key === " ") && (O0.includes(k.key) && b(k), k.key === " " && k.preventDefault());
|
|
16242
16242
|
}
|
|
16243
16243
|
if (t.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.");
|
|
16244
16244
|
return qe(() => {
|
|
@@ -16266,7 +16266,7 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16266
16266
|
"as-child": k.asChild,
|
|
16267
16267
|
onFocus: T[0] || (T[0] = (I) => p.value = !0),
|
|
16268
16268
|
onBlur: T[1] || (T[1] = (I) => p.value = !1),
|
|
16269
|
-
onPointerup:
|
|
16269
|
+
onPointerup: b,
|
|
16270
16270
|
onPointerdown: T[2] || (T[2] = (I) => {
|
|
16271
16271
|
I.currentTarget.focus({ preventScroll: !0 });
|
|
16272
16272
|
}),
|
|
@@ -16446,10 +16446,10 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16446
16446
|
const C = x.target;
|
|
16447
16447
|
C.hasPointerCapture(x.pointerId) && C.releasePointerCapture(x.pointerId), v(x) && (p(x), m = !0);
|
|
16448
16448
|
}
|
|
16449
|
-
function
|
|
16449
|
+
function b(x) {
|
|
16450
16450
|
v(x) && x.preventDefault();
|
|
16451
16451
|
}
|
|
16452
|
-
function
|
|
16452
|
+
function w(x) {
|
|
16453
16453
|
m || x.currentTarget?.focus(), m = !1;
|
|
16454
16454
|
}
|
|
16455
16455
|
return (x, C) => (c(), $(i(an), {
|
|
@@ -16471,9 +16471,9 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16471
16471
|
"data-placeholder": i(I0)(i(t).modelValue?.value) ? "" : void 0,
|
|
16472
16472
|
"as-child": x.asChild,
|
|
16473
16473
|
as: x.as,
|
|
16474
|
-
onClick:
|
|
16474
|
+
onClick: w,
|
|
16475
16475
|
onPointerdown: h,
|
|
16476
|
-
onMousedown:
|
|
16476
|
+
onMousedown: b,
|
|
16477
16477
|
onPointerup: C[0] || (C[0] = Ae((E) => {
|
|
16478
16478
|
E.pointerType === "touch" && p(E);
|
|
16479
16479
|
}, ["prevent"])),
|
|
@@ -16573,9 +16573,9 @@ var s_ = /* @__PURE__ */ B({
|
|
|
16573
16573
|
if (v?.value && m?.value) {
|
|
16574
16574
|
const h = Math.abs(u.value - p.scrollTop);
|
|
16575
16575
|
if (h > 0) {
|
|
16576
|
-
const
|
|
16577
|
-
if (C <
|
|
16578
|
-
const E = C + h, k = Math.min(
|
|
16576
|
+
const b = window.innerHeight - Ot * 2, w = Number.parseFloat(m.value.style.minHeight), x = Number.parseFloat(m.value.style.height), C = Math.max(w, x);
|
|
16577
|
+
if (C < b) {
|
|
16578
|
+
const E = C + h, k = Math.min(b, E), T = E - k;
|
|
16579
16579
|
m.value.style.height = `${k}px`, m.value.style.bottom === "0px" && (p.scrollTop = T > 0 ? T : 0, m.value.style.justifyContent = "flex-end");
|
|
16580
16580
|
}
|
|
16581
16581
|
}
|
|
@@ -17205,11 +17205,11 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17205
17205
|
"swipeEnd"
|
|
17206
17206
|
],
|
|
17207
17207
|
setup(e, { emit: a }) {
|
|
17208
|
-
const t = e, n = a, { forwardRef: o, currentElement: r } = ye(), { CollectionItem: l } = ct(), s = er(), u = P(null), d = P(null), f = g(() => typeof t.duration == "number" ? t.duration : s.duration.value), p = P(0), v = P(f.value), m = P(0), h = P(f.value),
|
|
17208
|
+
const t = e, n = a, { forwardRef: o, currentElement: r } = ye(), { CollectionItem: l } = ct(), s = er(), u = P(null), d = P(null), f = g(() => typeof t.duration == "number" ? t.duration : s.duration.value), p = P(0), v = P(f.value), m = P(0), h = P(f.value), b = Pv(() => {
|
|
17209
17209
|
const E = Date.now() - p.value;
|
|
17210
17210
|
h.value = Math.max(v.value - E, 0);
|
|
17211
17211
|
}, { fpsLimit: 60 });
|
|
17212
|
-
function
|
|
17212
|
+
function w(E) {
|
|
17213
17213
|
E <= 0 || E === Number.POSITIVE_INFINITY || kt && (window.clearTimeout(m.value), p.value = Date.now(), m.value = window.setTimeout(x, E));
|
|
17214
17214
|
}
|
|
17215
17215
|
function x(E) {
|
|
@@ -17225,17 +17225,17 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17225
17225
|
const k = s.viewport.value;
|
|
17226
17226
|
if (k) {
|
|
17227
17227
|
const T = () => {
|
|
17228
|
-
|
|
17228
|
+
w(v.value), b.resume(), n("resume");
|
|
17229
17229
|
}, I = () => {
|
|
17230
17230
|
const M = Date.now() - p.value;
|
|
17231
|
-
v.value = v.value - M, window.clearTimeout(m.value),
|
|
17231
|
+
v.value = v.value - M, window.clearTimeout(m.value), b.pause(), n("pause");
|
|
17232
17232
|
};
|
|
17233
17233
|
k.addEventListener(vi, I), k.addEventListener(mi, T), E(() => {
|
|
17234
17234
|
k.removeEventListener(vi, I), k.removeEventListener(mi, T);
|
|
17235
17235
|
});
|
|
17236
17236
|
}
|
|
17237
17237
|
}), ve(() => [t.open, f.value], () => {
|
|
17238
|
-
v.value = f.value, t.open && !s.isClosePausedRef.value &&
|
|
17238
|
+
v.value = f.value, t.open && !s.isClosePausedRef.value && w(f.value);
|
|
17239
17239
|
}, { immediate: !0 }), Yi("Escape", (E) => {
|
|
17240
17240
|
n("escapeKeyDown", E), E.defaultPrevented || (s.isFocusedToastEscapeKeyDownRef.value = !0, x());
|
|
17241
17241
|
}), qe(() => {
|
|
@@ -17557,7 +17557,7 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17557
17557
|
r.value.focus();
|
|
17558
17558
|
}), qe(() => {
|
|
17559
17559
|
u.onViewportChange(r.value);
|
|
17560
|
-
}), vt((
|
|
17560
|
+
}), vt((w) => {
|
|
17561
17561
|
const x = r.value;
|
|
17562
17562
|
if (d.value && x) {
|
|
17563
17563
|
const C = () => {
|
|
@@ -17582,23 +17582,23 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17582
17582
|
f.value?.focus();
|
|
17583
17583
|
return;
|
|
17584
17584
|
}
|
|
17585
|
-
const U =
|
|
17585
|
+
const U = b({ tabbingDirection: R ? "backwards" : "forwards" }), A = U.findIndex((W) => W === N);
|
|
17586
17586
|
vo(U.slice(A + 1)) ? M.preventDefault() : R ? f.value?.focus() : p.value?.focus();
|
|
17587
17587
|
}
|
|
17588
17588
|
};
|
|
17589
|
-
x.addEventListener("focusin", C), x.addEventListener("focusout", k), x.addEventListener("pointermove", C), x.addEventListener("pointerleave", T), x.addEventListener("keydown", I), window.addEventListener("blur", C), window.addEventListener("focus", E),
|
|
17589
|
+
x.addEventListener("focusin", C), x.addEventListener("focusout", k), x.addEventListener("pointermove", C), x.addEventListener("pointerleave", T), x.addEventListener("keydown", I), window.addEventListener("blur", C), window.addEventListener("focus", E), w(() => {
|
|
17590
17590
|
x.removeEventListener("focusin", C), x.removeEventListener("focusout", k), x.removeEventListener("pointermove", C), x.removeEventListener("pointerleave", T), x.removeEventListener("keydown", I), window.removeEventListener("blur", C), window.removeEventListener("focus", E);
|
|
17591
17591
|
});
|
|
17592
17592
|
}
|
|
17593
17593
|
});
|
|
17594
|
-
function
|
|
17594
|
+
function b({ tabbingDirection: w }) {
|
|
17595
17595
|
const C = s().map((E) => E.ref).map((E) => {
|
|
17596
17596
|
const k = [E, ...tl(E)];
|
|
17597
|
-
return
|
|
17597
|
+
return w === "forwards" ? k : k.reverse();
|
|
17598
17598
|
});
|
|
17599
|
-
return (
|
|
17599
|
+
return (w === "forwards" ? C.reverse() : C).flat();
|
|
17600
17600
|
}
|
|
17601
|
-
return (
|
|
17601
|
+
return (w, x) => (c(), $(i(Ym), {
|
|
17602
17602
|
role: "region",
|
|
17603
17603
|
"aria-label": typeof i(n) == "string" ? i(n).replace("{hotkey}", h.value) : i(n)(h.value),
|
|
17604
17604
|
tabindex: "-1",
|
|
@@ -17611,7 +17611,7 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17611
17611
|
C && (f.value = i(Bt)(C));
|
|
17612
17612
|
},
|
|
17613
17613
|
onFocusFromOutsideViewport: x[0] || (x[0] = () => {
|
|
17614
|
-
const C =
|
|
17614
|
+
const C = b({ tabbingDirection: "forwards" });
|
|
17615
17615
|
i(vo)(C);
|
|
17616
17616
|
})
|
|
17617
17617
|
}, null, 512)) : q("v-if", !0),
|
|
@@ -17619,10 +17619,10 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17619
17619
|
default: _(() => [O(i(xe), ae({
|
|
17620
17620
|
ref: i(o),
|
|
17621
17621
|
tabindex: "-1",
|
|
17622
|
-
as:
|
|
17623
|
-
"as-child":
|
|
17624
|
-
},
|
|
17625
|
-
default: _(() => [S(
|
|
17622
|
+
as: w.as,
|
|
17623
|
+
"as-child": w.asChild
|
|
17624
|
+
}, w.$attrs), {
|
|
17625
|
+
default: _(() => [S(w.$slots, "default")]),
|
|
17626
17626
|
_: 3
|
|
17627
17627
|
}, 16, ["as", "as-child"])]),
|
|
17628
17628
|
_: 3
|
|
@@ -17633,7 +17633,7 @@ var J_ = /* @__PURE__ */ B({
|
|
|
17633
17633
|
C && (p.value = i(Bt)(C));
|
|
17634
17634
|
},
|
|
17635
17635
|
onFocusFromOutsideViewport: x[1] || (x[1] = () => {
|
|
17636
|
-
const C =
|
|
17636
|
+
const C = b({ tabbingDirection: "backwards" });
|
|
17637
17637
|
i(vo)(C);
|
|
17638
17638
|
})
|
|
17639
17639
|
}, null, 512)) : q("v-if", !0)
|
|
@@ -17710,22 +17710,22 @@ var m1 = /* @__PURE__ */ B({
|
|
|
17710
17710
|
loop: o,
|
|
17711
17711
|
rovingFocus: r,
|
|
17712
17712
|
disabled: l
|
|
17713
|
-
}), (
|
|
17713
|
+
}), (b, w) => (c(), $(Le(i(r) ? i(Vn) : i(xe)), {
|
|
17714
17714
|
"as-child": "",
|
|
17715
|
-
orientation: i(r) ?
|
|
17715
|
+
orientation: i(r) ? b.orientation : void 0,
|
|
17716
17716
|
dir: i(u),
|
|
17717
17717
|
loop: i(r) ? i(o) : void 0
|
|
17718
17718
|
}, {
|
|
17719
17719
|
default: _(() => [O(i(xe), {
|
|
17720
17720
|
ref: i(d),
|
|
17721
17721
|
role: "group",
|
|
17722
|
-
"as-child":
|
|
17723
|
-
as:
|
|
17722
|
+
"as-child": b.asChild,
|
|
17723
|
+
as: b.as
|
|
17724
17724
|
}, {
|
|
17725
|
-
default: _(() => [S(
|
|
17725
|
+
default: _(() => [S(b.$slots, "default", { modelValue: i(p) }), i(h) && b.name ? (c(), $(ca, {
|
|
17726
17726
|
key: 0,
|
|
17727
|
-
name:
|
|
17728
|
-
required:
|
|
17727
|
+
name: b.name,
|
|
17728
|
+
required: b.required,
|
|
17729
17729
|
value: i(p)
|
|
17730
17730
|
}, null, 8, [
|
|
17731
17731
|
"name",
|
|
@@ -18013,17 +18013,17 @@ var k1 = /* @__PURE__ */ B({
|
|
|
18013
18013
|
ve(p, (k) => {
|
|
18014
18014
|
r.onClose && (k ? (r.onOpen(), (n?.eventTarget ?? document).dispatchEvent(new CustomEvent(wc))) : r.onClose());
|
|
18015
18015
|
});
|
|
18016
|
-
const v = P(!1), m = P(), h = g(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start:
|
|
18016
|
+
const v = P(!1), m = P(), h = g(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: w } = ji(() => {
|
|
18017
18017
|
v.value = !0, p.value = !0;
|
|
18018
18018
|
}, d, { immediate: !1 });
|
|
18019
18019
|
function x() {
|
|
18020
|
-
|
|
18020
|
+
w(), v.value = !1, p.value = !0;
|
|
18021
18021
|
}
|
|
18022
18022
|
function C() {
|
|
18023
|
-
|
|
18023
|
+
w(), p.value = !1;
|
|
18024
18024
|
}
|
|
18025
18025
|
function E() {
|
|
18026
|
-
|
|
18026
|
+
b();
|
|
18027
18027
|
}
|
|
18028
18028
|
return _1({
|
|
18029
18029
|
contentId: "",
|
|
@@ -18037,7 +18037,7 @@ var k1 = /* @__PURE__ */ B({
|
|
|
18037
18037
|
r.isOpenDelayed.value ? E() : x();
|
|
18038
18038
|
},
|
|
18039
18039
|
onTriggerLeave() {
|
|
18040
|
-
l.value ? C() :
|
|
18040
|
+
l.value ? C() : w();
|
|
18041
18041
|
},
|
|
18042
18042
|
onOpen: x,
|
|
18043
18043
|
onClose: C,
|
|
@@ -18381,15 +18381,15 @@ var k1 = /* @__PURE__ */ B({
|
|
|
18381
18381
|
const a = e, t = or(), n = ar();
|
|
18382
18382
|
t.contentId ||= et(void 0, "reka-tooltip-content");
|
|
18383
18383
|
const { forwardRef: o, currentElement: r } = ye(), l = P(!1), s = P(!1), u = g(() => t.disabled.value ? {} : {
|
|
18384
|
-
click:
|
|
18384
|
+
click: b,
|
|
18385
18385
|
focus: m,
|
|
18386
18386
|
pointermove: p,
|
|
18387
18387
|
pointerleave: v,
|
|
18388
18388
|
pointerdown: f,
|
|
18389
18389
|
blur: h
|
|
18390
18390
|
});
|
|
18391
|
-
ve(r, (
|
|
18392
|
-
t.onTriggerChange(
|
|
18391
|
+
ve(r, (w) => {
|
|
18392
|
+
t.onTriggerChange(w);
|
|
18393
18393
|
}, { immediate: !0 });
|
|
18394
18394
|
function d() {
|
|
18395
18395
|
setTimeout(() => {
|
|
@@ -18399,34 +18399,34 @@ var k1 = /* @__PURE__ */ B({
|
|
|
18399
18399
|
function f() {
|
|
18400
18400
|
t.open && !t.disableClosingTrigger.value && t.onClose(), l.value = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
18401
18401
|
}
|
|
18402
|
-
function p(
|
|
18403
|
-
|
|
18402
|
+
function p(w) {
|
|
18403
|
+
w.pointerType !== "touch" && !s.value && !n.isPointerInTransitRef.value && (t.onTriggerEnter(), s.value = !0);
|
|
18404
18404
|
}
|
|
18405
18405
|
function v() {
|
|
18406
18406
|
t.onTriggerLeave(), s.value = !1;
|
|
18407
18407
|
}
|
|
18408
|
-
function m(
|
|
18409
|
-
l.value || t.ignoreNonKeyboardFocus.value && !
|
|
18408
|
+
function m(w) {
|
|
18409
|
+
l.value || t.ignoreNonKeyboardFocus.value && !w.target.matches?.(":focus-visible") || t.onOpen();
|
|
18410
18410
|
}
|
|
18411
18411
|
function h() {
|
|
18412
18412
|
t.onClose();
|
|
18413
18413
|
}
|
|
18414
|
-
function
|
|
18414
|
+
function b() {
|
|
18415
18415
|
t.disableClosingTrigger.value || t.onClose();
|
|
18416
18416
|
}
|
|
18417
|
-
return (
|
|
18417
|
+
return (w, x) => (c(), $(i(an), {
|
|
18418
18418
|
"as-child": "",
|
|
18419
|
-
reference:
|
|
18419
|
+
reference: w.reference ?? i(r)
|
|
18420
18420
|
}, {
|
|
18421
18421
|
default: _(() => [O(i(xe), ae({
|
|
18422
18422
|
ref: i(o),
|
|
18423
18423
|
"aria-describedby": i(t).open.value ? i(t).contentId : void 0,
|
|
18424
18424
|
"data-state": i(t).stateAttribute.value,
|
|
18425
|
-
as:
|
|
18425
|
+
as: w.as,
|
|
18426
18426
|
"as-child": a.asChild,
|
|
18427
18427
|
"data-grace-area-trigger": ""
|
|
18428
18428
|
}, Ou(u.value)), {
|
|
18429
|
-
default: _(() => [S(
|
|
18429
|
+
default: _(() => [S(w.$slots, "default")]),
|
|
18430
18430
|
_: 3
|
|
18431
18431
|
}, 16, [
|
|
18432
18432
|
"aria-describedby",
|
|
@@ -18512,18 +18512,18 @@ var q1 = /* @__PURE__ */ B({
|
|
|
18512
18512
|
},
|
|
18513
18513
|
emits: ["update:modelValue", "update:expanded"],
|
|
18514
18514
|
setup(e, { emit: a }) {
|
|
18515
|
-
const t = e, n = a, { items: o, multiple: r, disabled: l, propagateSelect: s, dir: u, bubbleSelect: d } = Ue(t), { handleTypeaheadSearch: f } = Mn(), p = bt(u), v = P(), m = P(!1), h = /* @__PURE__ */ za(),
|
|
18515
|
+
const t = e, n = a, { items: o, multiple: r, disabled: l, propagateSelect: s, dir: u, bubbleSelect: d } = Ue(t), { handleTypeaheadSearch: f } = Mn(), p = bt(u), v = P(), m = P(!1), h = /* @__PURE__ */ za(), b = /* @__PURE__ */ je(t, "modelValue", n, {
|
|
18516
18516
|
defaultValue: t.defaultValue ?? (r.value ? [] : void 0),
|
|
18517
18517
|
passive: !0,
|
|
18518
18518
|
deep: !0
|
|
18519
|
-
}),
|
|
18519
|
+
}), w = /* @__PURE__ */ je(t, "expanded", n, {
|
|
18520
18520
|
defaultValue: t.defaultExpanded ?? [],
|
|
18521
18521
|
passive: t.expanded === void 0,
|
|
18522
18522
|
deep: !0
|
|
18523
|
-
}), { onSelectItem: x, handleMultipleReplace: C } = fm(
|
|
18523
|
+
}), { onSelectItem: x, handleMultipleReplace: C } = fm(b, t), E = g(() => r.value && Array.isArray(b.value) ? b.value.map((R) => t.getKey(R)) : [t.getKey(b.value ?? {})]);
|
|
18524
18524
|
function k(R, F = 1, K) {
|
|
18525
18525
|
return R.reduce((U, A, W) => {
|
|
18526
|
-
const z = t.getKey(A), G = t.getChildren(A), L =
|
|
18526
|
+
const z = t.getKey(A), G = t.getChildren(A), L = w.value.includes(z), Y = {
|
|
18527
18527
|
_id: z,
|
|
18528
18528
|
value: A,
|
|
18529
18529
|
index: W,
|
|
@@ -18542,7 +18542,7 @@ var q1 = /* @__PURE__ */ B({
|
|
|
18542
18542
|
}
|
|
18543
18543
|
const T = g(() => {
|
|
18544
18544
|
const R = t.items;
|
|
18545
|
-
return
|
|
18545
|
+
return w.value.map((F) => F), k(R ?? []);
|
|
18546
18546
|
}), I = [
|
|
18547
18547
|
"input",
|
|
18548
18548
|
"textarea",
|
|
@@ -18568,30 +18568,30 @@ var q1 = /* @__PURE__ */ B({
|
|
|
18568
18568
|
});
|
|
18569
18569
|
}
|
|
18570
18570
|
function N(R) {
|
|
18571
|
-
if (R.parentItem != null && Array.isArray(
|
|
18571
|
+
if (R.parentItem != null && Array.isArray(b.value) && t.multiple) {
|
|
18572
18572
|
const F = T.value.find((K) => R.parentItem != null && t.getKey(K.value) === t.getKey(R.parentItem));
|
|
18573
|
-
F != null && (t.getChildren(F.value)?.every((U) =>
|
|
18573
|
+
F != null && (t.getChildren(F.value)?.every((U) => b.value.find((A) => t.getKey(A) === t.getKey(U))) ? b.value = [...b.value, F.value] : b.value = b.value.filter((U) => t.getKey(U) !== t.getKey(F.value)), N(F));
|
|
18574
18574
|
}
|
|
18575
18575
|
}
|
|
18576
18576
|
return B1({
|
|
18577
|
-
modelValue:
|
|
18577
|
+
modelValue: b,
|
|
18578
18578
|
selectedKeys: E,
|
|
18579
18579
|
onSelect: (R) => {
|
|
18580
|
-
const F = (U) => t.getKey(U ?? {}) === t.getKey(R), K = t.multiple && Array.isArray(
|
|
18581
|
-
if (x(R, F), t.bubbleSelect && t.multiple && Array.isArray(
|
|
18580
|
+
const F = (U) => t.getKey(U ?? {}) === t.getKey(R), K = t.multiple && Array.isArray(b.value) ? b.value?.findIndex(F) !== -1 : void 0;
|
|
18581
|
+
if (x(R, F), t.bubbleSelect && t.multiple && Array.isArray(b.value)) {
|
|
18582
18582
|
const U = T.value.find((A) => t.getKey(A.value) === t.getKey(R));
|
|
18583
18583
|
U != null && N(U);
|
|
18584
18584
|
}
|
|
18585
|
-
if (t.propagateSelect && t.multiple && Array.isArray(
|
|
18585
|
+
if (t.propagateSelect && t.multiple && Array.isArray(b.value)) {
|
|
18586
18586
|
const U = qo(t.getChildren(R) ?? []);
|
|
18587
|
-
K ?
|
|
18587
|
+
K ? b.value = [...b.value].filter((A) => !U.some((W) => t.getKey(A ?? {}) === t.getKey(W))) : b.value = [...b.value, ...U];
|
|
18588
18588
|
}
|
|
18589
18589
|
},
|
|
18590
|
-
expanded:
|
|
18590
|
+
expanded: w,
|
|
18591
18591
|
onToggle(R) {
|
|
18592
18592
|
if (!(R ? t.getChildren(R) : void 0)) return;
|
|
18593
18593
|
const K = t.getKey(R) ?? R;
|
|
18594
|
-
|
|
18594
|
+
w.value.includes(K) ? w.value = w.value.filter((U) => U !== K) : w.value = [...w.value, K];
|
|
18595
18595
|
},
|
|
18596
18596
|
getKey: t.getKey,
|
|
18597
18597
|
getChildren: t.getChildren,
|
|
@@ -18621,8 +18621,8 @@ var q1 = /* @__PURE__ */ B({
|
|
|
18621
18621
|
}, {
|
|
18622
18622
|
default: _(() => [S(R.$slots, "default", {
|
|
18623
18623
|
flattenItems: T.value,
|
|
18624
|
-
modelValue: i(
|
|
18625
|
-
expanded: i(
|
|
18624
|
+
modelValue: i(b),
|
|
18625
|
+
expanded: i(w)
|
|
18626
18626
|
})]),
|
|
18627
18627
|
_: 3
|
|
18628
18628
|
}, 8, [
|
|
@@ -18694,10 +18694,10 @@ var R1 = /* @__PURE__ */ B({
|
|
|
18694
18694
|
async function h(C) {
|
|
18695
18695
|
p.value || (o("select", C), !C?.defaultPrevented && r.onSelect(n.value));
|
|
18696
18696
|
}
|
|
18697
|
-
async function
|
|
18697
|
+
async function b(C) {
|
|
18698
18698
|
p.value || (o("toggle", C), !C?.defaultPrevented && r.onToggle(n.value));
|
|
18699
18699
|
}
|
|
18700
|
-
async function
|
|
18700
|
+
async function w(C) {
|
|
18701
18701
|
if (!C) return;
|
|
18702
18702
|
const E = {
|
|
18703
18703
|
originalEvent: C,
|
|
@@ -18715,7 +18715,7 @@ var R1 = /* @__PURE__ */ B({
|
|
|
18715
18715
|
isExpanded: u.value,
|
|
18716
18716
|
isSelected: d.value
|
|
18717
18717
|
};
|
|
18718
|
-
Ca(I1,
|
|
18718
|
+
Ca(I1, b, E);
|
|
18719
18719
|
}
|
|
18720
18720
|
return a({
|
|
18721
18721
|
isExpanded: u,
|
|
@@ -18743,12 +18743,12 @@ var R1 = /* @__PURE__ */ B({
|
|
|
18743
18743
|
"data-expanded": u.value ? "" : void 0,
|
|
18744
18744
|
"data-disabled": p.value ? "" : void 0,
|
|
18745
18745
|
onKeydown: [
|
|
18746
|
-
tt(Ae(
|
|
18746
|
+
tt(Ae(w, ["self", "prevent"]), ["enter", "space"]),
|
|
18747
18747
|
E[0] || (E[0] = tt(Ae((k) => i(r).dir.value === "ltr" ? v(k) : m(k), ["self", "prevent"]), ["right"])),
|
|
18748
18748
|
E[1] || (E[1] = tt(Ae((k) => i(r).dir.value === "ltr" ? m(k) : v(k), ["self", "prevent"]), ["left"]))
|
|
18749
18749
|
],
|
|
18750
18750
|
onClick: E[2] || (E[2] = Ae((k) => {
|
|
18751
|
-
|
|
18751
|
+
w(k), x(k);
|
|
18752
18752
|
}, ["stop"]))
|
|
18753
18753
|
}), {
|
|
18754
18754
|
default: _(() => [S(C.$slots, "default", {
|
|
@@ -18851,11 +18851,11 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
18851
18851
|
step: n.step,
|
|
18852
18852
|
precision: n.precision,
|
|
18853
18853
|
patchNum: n.patchNum
|
|
18854
|
-
})), v = P(null), m = P(null), h = P(String(n.modelValue)),
|
|
18854
|
+
})), v = P(null), m = P(null), h = P(String(n.modelValue)), b = P(!1), w = P(!1), x = P(-1);
|
|
18855
18855
|
ve(
|
|
18856
18856
|
() => n.modelValue,
|
|
18857
18857
|
(L) => {
|
|
18858
|
-
|
|
18858
|
+
b.value || (h.value = String(L));
|
|
18859
18859
|
}
|
|
18860
18860
|
);
|
|
18861
18861
|
const C = g(() => !o.value && n.modelValue > s.value), E = g(() => !o.value && n.modelValue < u.value), k = (L) => `${l}-option-${L}`;
|
|
@@ -18869,39 +18869,39 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
18869
18869
|
T(Sc(n.modelValue, L, p.value));
|
|
18870
18870
|
}
|
|
18871
18871
|
function H(L) {
|
|
18872
|
-
|
|
18872
|
+
b.value = !0, h.value = String(n.modelValue), n.selectOnFocus && L.target.select();
|
|
18873
18873
|
}
|
|
18874
18874
|
function X() {
|
|
18875
|
-
|
|
18875
|
+
b.value = !1, I();
|
|
18876
18876
|
}
|
|
18877
18877
|
function N() {
|
|
18878
|
-
o.value || !n.menu.length || (
|
|
18878
|
+
o.value || !n.menu.length || (w.value = !0);
|
|
18879
18879
|
}
|
|
18880
18880
|
function R() {
|
|
18881
|
-
|
|
18881
|
+
w.value = !1, v.value?.focus();
|
|
18882
18882
|
}
|
|
18883
|
-
ve(
|
|
18883
|
+
ve(w, (L) => {
|
|
18884
18884
|
if (!L) return;
|
|
18885
18885
|
const Y = n.menu.findIndex((Z) => Z.value === n.modelValue);
|
|
18886
18886
|
x.value = Y < 0 ? 0 : Y;
|
|
18887
18887
|
});
|
|
18888
18888
|
function F(L) {
|
|
18889
18889
|
const Y = n.menu[L];
|
|
18890
|
-
|
|
18890
|
+
w.value = !1, Y && T(Ka(Y.value, p.value)), v.value?.focus();
|
|
18891
18891
|
}
|
|
18892
18892
|
function K(L) {
|
|
18893
18893
|
if (!o.value) {
|
|
18894
|
-
if (
|
|
18894
|
+
if (w.value) {
|
|
18895
18895
|
L.key === "ArrowDown" ? (L.preventDefault(), x.value = (x.value + 1) % n.menu.length) : L.key === "ArrowUp" ? (L.preventDefault(), x.value = (x.value - 1 + n.menu.length) % n.menu.length) : L.key === "Home" ? (L.preventDefault(), x.value = 0) : L.key === "End" ? (L.preventDefault(), x.value = n.menu.length - 1) : L.key === "Enter" || L.key === " " ? (L.preventDefault(), F(x.value)) : L.key === "Escape" && (L.preventDefault(), R());
|
|
18896
18896
|
return;
|
|
18897
18897
|
}
|
|
18898
18898
|
L.key === "ArrowUp" ? (L.preventDefault(), M(1)) : L.key === "ArrowDown" ? (L.preventDefault(), n.menu.length ? N() : M(-1)) : L.key === "Home" && d.value ? (L.preventDefault(), T(Ka(s.value, p.value))) : L.key === "End" && f.value ? (L.preventDefault(), T(Ka(u.value, p.value))) : L.key === "Enter" && I();
|
|
18899
18899
|
}
|
|
18900
18900
|
}
|
|
18901
|
-
const { controlAttrs: U, wrapperAttrs: A, changed: W } = gt({ value: () => n.modelValue, disabled: () => o.value, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), z = qt(() => m.value?.$el, () =>
|
|
18901
|
+
const { controlAttrs: U, wrapperAttrs: A, changed: W } = gt({ value: () => n.modelValue, disabled: () => o.value, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), z = qt(() => m.value?.$el, () => w.value), G = g(() => ({ increase: t("Increase value"), decrease: t("Decrease value"), presets: t("Preset values"), ...n.text }));
|
|
18902
18902
|
return (L, Y) => (c(), $(i(Wn), {
|
|
18903
|
-
open:
|
|
18904
|
-
"onUpdate:open": Y[8] || (Y[8] = (Z) =>
|
|
18903
|
+
open: w.value,
|
|
18904
|
+
"onUpdate:open": Y[8] || (Y[8] = (Z) => w.value = Z)
|
|
18905
18905
|
}, {
|
|
18906
18906
|
default: _(() => [
|
|
18907
18907
|
O(i(rc), {
|
|
@@ -18944,7 +18944,7 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
18944
18944
|
"aria-valuemin": d.value ? s.value : void 0,
|
|
18945
18945
|
"aria-valuemax": f.value ? u.value : void 0,
|
|
18946
18946
|
"aria-disabled": i(o) || void 0,
|
|
18947
|
-
"aria-activedescendant":
|
|
18947
|
+
"aria-activedescendant": w.value && x.value >= 0 ? k(x.value) : void 0,
|
|
18948
18948
|
class: i(Re)(
|
|
18949
18949
|
"h-full w-full min-w-0 border-0 bg-transparent text-center text-[13px] text-[var(--ui-text)] outline-none placeholder:text-[var(--ui-text-muted)] disabled:cursor-default",
|
|
18950
18950
|
n.hasDivider && n.controlsType === "right-left" && "border-x border-[var(--ui-control-divider)]",
|
|
@@ -18964,7 +18964,7 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
18964
18964
|
type: "button",
|
|
18965
18965
|
class: "absolute top-1/2 right-0.5 flex size-5 [@media(pointer:coarse)]:after:absolute [@media(pointer:coarse)]:after:-inset-1.5 [@media(pointer:coarse)]:after:content-[''] -translate-y-1/2 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-muted)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
18966
18966
|
disabled: i(o),
|
|
18967
|
-
"aria-expanded":
|
|
18967
|
+
"aria-expanded": w.value,
|
|
18968
18968
|
"aria-label": G.value.presets
|
|
18969
18969
|
}, [
|
|
18970
18970
|
O(i(it), {
|
|
@@ -19107,35 +19107,35 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
19107
19107
|
})), m = g(() => {
|
|
19108
19108
|
const N = l.value - r.value;
|
|
19109
19109
|
return N <= 0 ? 0 : Math.min(100, Math.max(0, (n.modelValue - r.value) / N * 100));
|
|
19110
|
-
}), h = P(String(n.modelValue)),
|
|
19110
|
+
}), h = P(String(n.modelValue)), b = P(!1);
|
|
19111
19111
|
ve(
|
|
19112
19112
|
() => n.modelValue,
|
|
19113
19113
|
(N) => {
|
|
19114
|
-
|
|
19114
|
+
b.value || (h.value = String(N));
|
|
19115
19115
|
}
|
|
19116
19116
|
);
|
|
19117
|
-
function
|
|
19117
|
+
function w(N) {
|
|
19118
19118
|
N !== n.modelValue && (X(N), o("update:modelValue", N), o("input", N));
|
|
19119
19119
|
}
|
|
19120
19120
|
function x(N) {
|
|
19121
19121
|
const R = N?.[0];
|
|
19122
19122
|
if (R === void 0) return;
|
|
19123
19123
|
const F = Ka(R, v.value);
|
|
19124
|
-
F !== !1 &&
|
|
19124
|
+
F !== !1 && w(F);
|
|
19125
19125
|
}
|
|
19126
19126
|
function C() {
|
|
19127
19127
|
const N = Cc(h.value, v.value);
|
|
19128
|
-
N === !1 ? h.value = String(n.modelValue) : (h.value = String(N),
|
|
19128
|
+
N === !1 ? h.value = String(n.modelValue) : (h.value = String(N), w(N));
|
|
19129
19129
|
}
|
|
19130
19130
|
function E(N) {
|
|
19131
19131
|
const R = Sc(n.modelValue, N, v.value);
|
|
19132
|
-
R !== !1 && (h.value = String(R),
|
|
19132
|
+
R !== !1 && (h.value = String(R), w(R));
|
|
19133
19133
|
}
|
|
19134
19134
|
function k(N) {
|
|
19135
|
-
|
|
19135
|
+
b.value = !0, h.value = String(n.modelValue), N.target.select();
|
|
19136
19136
|
}
|
|
19137
19137
|
function T() {
|
|
19138
|
-
|
|
19138
|
+
b.value = !1, C();
|
|
19139
19139
|
}
|
|
19140
19140
|
function I(N) {
|
|
19141
19141
|
n.disabled || (N.key === "ArrowUp" ? (N.preventDefault(), E(1)) : N.key === "ArrowDown" ? (N.preventDefault(), E(-1)) : N.key === "Enter" && C());
|
|
@@ -19331,8 +19331,8 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
19331
19331
|
const Pe = u(de);
|
|
19332
19332
|
return Pe ? fi(Pe).toUpperCase() : void 0;
|
|
19333
19333
|
}
|
|
19334
|
-
const p = dt(), v = P(!1), m = P(0), h = `${p}-palette`,
|
|
19335
|
-
() =>
|
|
19334
|
+
const p = dt(), v = P(!1), m = P(0), h = `${p}-palette`, b = (de) => `${p}-swatch-${de}`, w = g(() => u(r.modelValue)), x = g(() => w.value ? fi(w.value).toUpperCase() : ""), C = g(() => w.value ? s((w.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = g(
|
|
19335
|
+
() => w.value ? Rs({ ...w.value, alpha: C.value }, "rgb") : "transparent"
|
|
19336
19336
|
), k = g(() => [r.ariaLabel, x.value].filter(Boolean).join(", ") || _e.value.choose);
|
|
19337
19337
|
function T(de) {
|
|
19338
19338
|
return { value: de, hex: f(de) };
|
|
@@ -19371,7 +19371,7 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
19371
19371
|
v.value = !1;
|
|
19372
19372
|
}
|
|
19373
19373
|
function A(de) {
|
|
19374
|
-
De(() => document.getElementById(
|
|
19374
|
+
De(() => document.getElementById(b(de))?.focus());
|
|
19375
19375
|
}
|
|
19376
19376
|
function W() {
|
|
19377
19377
|
if (r.disabled || v.value) return;
|
|
@@ -19474,7 +19474,7 @@ const L1 = ["disabled", "aria-label"], F1 = { class: "relative min-w-0 flex-1" }
|
|
|
19474
19474
|
)
|
|
19475
19475
|
}, [
|
|
19476
19476
|
(c(!0), y(oe, null, ke(me.items, (se, ne) => (c(), y("button", {
|
|
19477
|
-
id:
|
|
19477
|
+
id: b(me.offset + ne),
|
|
19478
19478
|
key: `${me.key}-${se.value}-${ne}`,
|
|
19479
19479
|
type: "button",
|
|
19480
19480
|
role: "option",
|
|
@@ -19806,12 +19806,12 @@ const bk = { key: 0 }, wk = { key: 1 }, xk = { key: 2 }, _k = {
|
|
|
19806
19806
|
query: l,
|
|
19807
19807
|
minSearchChar: () => o.minSearchChar,
|
|
19808
19808
|
caseSensitive: () => o.caseSensitive
|
|
19809
|
-
}),
|
|
19809
|
+
}), b = pt(/* @__PURE__ */ new Map());
|
|
19810
19810
|
vt(() => {
|
|
19811
|
-
for (const H of Tn(hi(o.options)))
|
|
19812
|
-
for (const H of Tn(m.value))
|
|
19811
|
+
for (const H of Tn(hi(o.options))) b.set(H.value, H.label);
|
|
19812
|
+
for (const H of Tn(m.value)) b.set(H.value, H.label);
|
|
19813
19813
|
});
|
|
19814
|
-
const
|
|
19814
|
+
const w = g(() => o.modelValue ? b.get(o.modelValue) ?? "" : "");
|
|
19815
19815
|
function x() {
|
|
19816
19816
|
const H = f.value?.$el;
|
|
19817
19817
|
return H ? Array.from(H.querySelectorAll('[role="option"]')).filter(
|
|
@@ -19863,7 +19863,7 @@ const bk = { key: 0 }, wk = { key: 1 }, xk = { key: 2 }, _k = {
|
|
|
19863
19863
|
placeholder: i(o).placeholder
|
|
19864
19864
|
}, {
|
|
19865
19865
|
default: _(({ selectedLabel: N }) => [
|
|
19866
|
-
N.length ? (c(), y("span", bk, V(N.join(", ")), 1)) :
|
|
19866
|
+
N.length ? (c(), y("span", bk, V(N.join(", ")), 1)) : w.value ? (c(), y("span", wk, V(w.value), 1)) : (c(), y("span", xk, V(i(o).placeholder), 1))
|
|
19867
19867
|
]),
|
|
19868
19868
|
_: 1
|
|
19869
19869
|
}, 8, ["placeholder"]),
|
|
@@ -20104,13 +20104,13 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
20104
20104
|
function h(k) {
|
|
20105
20105
|
m = l.value && k.pointerType !== "mouse" ? o.value : null, f();
|
|
20106
20106
|
}
|
|
20107
|
-
function
|
|
20107
|
+
function b(k) {
|
|
20108
20108
|
const T = n.value, I = m;
|
|
20109
20109
|
if (m = null, !a.openOnTap || !T || k.pointerType !== "touch" && k.pointerType !== "pen") return;
|
|
20110
20110
|
const M = Hs(k.target, T);
|
|
20111
20111
|
M && M.element !== I && p(M, 0);
|
|
20112
20112
|
}
|
|
20113
|
-
function
|
|
20113
|
+
function w(k) {
|
|
20114
20114
|
try {
|
|
20115
20115
|
return k.matches(":focus-visible");
|
|
20116
20116
|
} catch {
|
|
@@ -20119,7 +20119,7 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
20119
20119
|
}
|
|
20120
20120
|
function x(k) {
|
|
20121
20121
|
const T = n.value, I = k.target;
|
|
20122
|
-
T &&
|
|
20122
|
+
T && w(I) && p(Mk(I, T), 0);
|
|
20123
20123
|
}
|
|
20124
20124
|
function C() {
|
|
20125
20125
|
o.value && f();
|
|
@@ -20127,7 +20127,7 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
20127
20127
|
function E(k, T) {
|
|
20128
20128
|
if (!k) return;
|
|
20129
20129
|
const I = T ? k.addEventListener.bind(k) : k.removeEventListener.bind(k);
|
|
20130
|
-
I("pointerover", v), I("pointerleave", f), I("pointerdown", h), I("pointerup",
|
|
20130
|
+
I("pointerover", v), I("pointerleave", f), I("pointerdown", h), I("pointerup", b), I("focusin", x), I("focusout", f);
|
|
20131
20131
|
}
|
|
20132
20132
|
return ve(n, (k, T) => {
|
|
20133
20133
|
E(T, !1), E(k, !0), f();
|
|
@@ -20231,17 +20231,17 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
20231
20231
|
},
|
|
20232
20232
|
emits: ["update:modelValue", "update:loading", "select", "create", "invalid", "focus", "blur", "open-dropdown", "close-dropdown"],
|
|
20233
20233
|
setup(e, { emit: a }) {
|
|
20234
|
-
const t = e, n = Rt(() => o.disabled), o = Ze(t, { placeholder: "Select…", loadingText: "Loading…", notFoundText: "No results", createHintText: "Add", clearLabel: "Clear", openLabel: "Open options" }), r = a, l = P(""), s = P(""), u = P(!1), d = P(""), f = Me("input"), p = Me("anchor"), v = qt(() => p.value?.$el, () => u.value), m = g(() => f.value?.$el), h = g(() => o.modelValue !== void 0),
|
|
20234
|
+
const t = e, n = Rt(() => o.disabled), o = Ze(t, { placeholder: "Select…", loadingText: "Loading…", notFoundText: "No results", createHintText: "Add", clearLabel: "Clear", openLabel: "Open options" }), r = a, l = P(""), s = P(""), u = P(!1), d = P(""), f = Me("input"), p = Me("anchor"), v = qt(() => p.value?.$el, () => u.value), m = g(() => f.value?.$el), h = g(() => o.modelValue !== void 0), b = g(() => {
|
|
20235
20235
|
const le = o.defaultValue ?? (o.multiple ? [] : "");
|
|
20236
20236
|
return Array.isArray(le) ? [...le] : le;
|
|
20237
|
-
}),
|
|
20237
|
+
}), w = P(b.value), x = g(() => h.value ? o.modelValue : w.value), C = g(() => {
|
|
20238
20238
|
const le = x.value;
|
|
20239
20239
|
return o.multiple ? Array.isArray(le) ? le : le ? [le] : [] : Array.isArray(le) ? le[0] ?? "" : le;
|
|
20240
20240
|
}), E = g(
|
|
20241
20241
|
() => o.multiple ? C.value : C.value ? [C.value] : []
|
|
20242
20242
|
), k = g(() => E.value.length > 0);
|
|
20243
20243
|
function T(le) {
|
|
20244
|
-
h.value || (
|
|
20244
|
+
h.value || (w.value = le), we(le), r("update:modelValue", le);
|
|
20245
20245
|
}
|
|
20246
20246
|
const I = pt(/* @__PURE__ */ new Map()), { groups: M, searching: H } = $c({
|
|
20247
20247
|
options: () => o.options,
|
|
@@ -21379,16 +21379,16 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
21379
21379
|
...t.radioValue !== void 0 ? { "": t.radioValue } : {}
|
|
21380
21380
|
}));
|
|
21381
21381
|
function p(m, h) {
|
|
21382
|
-
const
|
|
21383
|
-
o.value =
|
|
21382
|
+
const b = h ? [.../* @__PURE__ */ new Set([...d.value, m])] : d.value.filter((w) => w !== m);
|
|
21383
|
+
o.value = b, n("update:checkedKeys", b), n("toggle", m, h);
|
|
21384
21384
|
}
|
|
21385
|
-
function v(m, h,
|
|
21386
|
-
const
|
|
21387
|
-
r.value =
|
|
21385
|
+
function v(m, h, b) {
|
|
21386
|
+
const w = { ...f.value, [b]: m };
|
|
21387
|
+
r.value = w, b === "" && n("update:radioValue", m), n("update:radioValues", w), n("radioSelect", m, h, b);
|
|
21388
21388
|
}
|
|
21389
21389
|
return (m, h) => (c(), $(i(To), {
|
|
21390
21390
|
open: l.value,
|
|
21391
|
-
"onUpdate:open": h[1] || (h[1] = (
|
|
21391
|
+
"onUpdate:open": h[1] || (h[1] = (b) => l.value = b)
|
|
21392
21392
|
}, {
|
|
21393
21393
|
default: _(() => [
|
|
21394
21394
|
O(i(Bo), ae({
|
|
@@ -21417,7 +21417,7 @@ const qc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
21417
21417
|
"radio-values": f.value,
|
|
21418
21418
|
"collision-boundary": i(u),
|
|
21419
21419
|
"radio-indicator": t.radioIndicator,
|
|
21420
|
-
onSelect: h[0] || (h[0] = (
|
|
21420
|
+
onSelect: h[0] || (h[0] = (b) => n("select", b)),
|
|
21421
21421
|
onToggle: p,
|
|
21422
21422
|
onRadio: v
|
|
21423
21423
|
}, null, 8, ["items", "checked-keys", "radio-values", "collision-boundary", "radio-indicator"])
|
|
@@ -21733,11 +21733,11 @@ function YC(e, a, t) {
|
|
|
21733
21733
|
for (const X of Ys(d.style)) m.style.setProperty(X, d.style.getPropertyValue(X));
|
|
21734
21734
|
};
|
|
21735
21735
|
h();
|
|
21736
|
-
const
|
|
21737
|
-
|
|
21738
|
-
const
|
|
21739
|
-
const X = !!
|
|
21740
|
-
|
|
21736
|
+
const b = new MutationObserver(h);
|
|
21737
|
+
b.observe(d, { attributes: !0, attributeFilter: [...Gs, "style"] });
|
|
21738
|
+
const w = jC(d), x = () => {
|
|
21739
|
+
const X = !!w && GC(d, w);
|
|
21740
|
+
w && (m.style.zIndex = v.getComputedStyle(w).zIndex, m.style.visibility = X ? "hidden" : "");
|
|
21741
21741
|
const { left: N, top: R, width: F, height: K } = d.getBoundingClientRect();
|
|
21742
21742
|
if (o.value = X ? null : { left: N, top: R, width: F, height: K }, !X) {
|
|
21743
21743
|
m.style.setProperty("--ui-floating-owner-width", `${F}px`);
|
|
@@ -21761,8 +21761,8 @@ function YC(e, a, t) {
|
|
|
21761
21761
|
if (!N) return;
|
|
21762
21762
|
(I?.isConnected && N.contains(I) ? I : N).focus({ preventScroll: !0 });
|
|
21763
21763
|
};
|
|
21764
|
-
m.addEventListener("focusin", M),
|
|
21765
|
-
|
|
21764
|
+
m.addEventListener("focusin", M), w ? (w.after(m), T.observe(w, { attributes: !0, attributeFilter: ["style", "class"] }), w.addEventListener("focusin", H)) : d.ownerDocument.body.appendChild(m), E(), v.addEventListener("resize", E), m.addEventListener("pointerdown", t, !0), n.value = m, p(() => {
|
|
21765
|
+
b.disconnect(), k?.disconnect(), T.disconnect(), v.removeEventListener("resize", E), m.removeEventListener("pointerdown", t, !0), m.removeEventListener("focusin", M), w?.removeEventListener("focusin", H), m.remove(), n.value = null, s = void 0;
|
|
21766
21766
|
});
|
|
21767
21767
|
}, { flush: "post" }), { element: n, owner: o, locate: () => (s?.(), o.value), area: r, draggable: l };
|
|
21768
21768
|
}
|
|
@@ -21785,8 +21785,8 @@ function JC(e, a) {
|
|
|
21785
21785
|
if (a) {
|
|
21786
21786
|
let p = a.owner.value;
|
|
21787
21787
|
const v = (m) => {
|
|
21788
|
-
const h = m.getBoundingClientRect(),
|
|
21789
|
-
|
|
21788
|
+
const h = m.getBoundingClientRect(), b = a.locate();
|
|
21789
|
+
b && (p = b), t.value = KC(b ?? a.area.value, h, a.area.value);
|
|
21790
21790
|
};
|
|
21791
21791
|
ve([e, n], ([m, h]) => {
|
|
21792
21792
|
if (!m || !h) {
|
|
@@ -21794,13 +21794,13 @@ function JC(e, a) {
|
|
|
21794
21794
|
return;
|
|
21795
21795
|
}
|
|
21796
21796
|
t.value || (s = !1, v(m.parentElement));
|
|
21797
|
-
}, { flush: "post" }), ve(e, (m, h,
|
|
21798
|
-
const
|
|
21799
|
-
if (!
|
|
21797
|
+
}, { flush: "post" }), ve(e, (m, h, b) => {
|
|
21798
|
+
const w = m?.parentElement;
|
|
21799
|
+
if (!w || typeof ResizeObserver > "u") return;
|
|
21800
21800
|
const x = new ResizeObserver(() => {
|
|
21801
|
-
t.value && (s ? l(0, 0) : v(
|
|
21801
|
+
t.value && (s ? l(0, 0) : v(w));
|
|
21802
21802
|
});
|
|
21803
|
-
x.observe(
|
|
21803
|
+
x.observe(w), b(() => x.disconnect());
|
|
21804
21804
|
}, { flush: "post" }), ve(a.area, () => l(0, 0)), ve(a.owner, (m) => {
|
|
21805
21805
|
m && (p && l(m.left - p.left, m.top - p.top), p = m);
|
|
21806
21806
|
});
|
|
@@ -21810,14 +21810,14 @@ function JC(e, a) {
|
|
|
21810
21810
|
const v = p.target;
|
|
21811
21811
|
if (!n.value || !t.value || p.button !== 0 || v.closest("button,a,input,select,textarea")) return;
|
|
21812
21812
|
p.preventDefault();
|
|
21813
|
-
const m = { x: p.clientX, y: p.clientY, from: t.value }, h = v.ownerDocument.defaultView,
|
|
21813
|
+
const m = { x: p.clientX, y: p.clientY, from: t.value }, h = v.ownerDocument.defaultView, b = (x) => {
|
|
21814
21814
|
s = !0, r({ x: m.from.x + x.clientX - m.x, y: m.from.y + x.clientY - m.y });
|
|
21815
21815
|
};
|
|
21816
21816
|
u?.(), u = () => {
|
|
21817
|
-
h.removeEventListener("pointermove",
|
|
21817
|
+
h.removeEventListener("pointermove", b), h.removeEventListener("pointerup", w), h.removeEventListener("pointercancel", w), u = void 0;
|
|
21818
21818
|
};
|
|
21819
|
-
const
|
|
21820
|
-
h.addEventListener("pointermove",
|
|
21819
|
+
const w = () => u?.();
|
|
21820
|
+
h.addEventListener("pointermove", b), h.addEventListener("pointerup", w), h.addEventListener("pointercancel", w);
|
|
21821
21821
|
}
|
|
21822
21822
|
function f(p) {
|
|
21823
21823
|
const v = QC[p.key];
|
|
@@ -21914,7 +21914,7 @@ const Fc = /* @__PURE__ */ B({
|
|
|
21914
21914
|
function u(R, F) {
|
|
21915
21915
|
o(R === "pointerDownOutside" ? "pointerDownOutside" : "interactOutside", F), n.closeOnOutside || F.preventDefault();
|
|
21916
21916
|
}
|
|
21917
|
-
const d = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = Mc(), p = g(() => f?.element.value ?? null), { position: v, draggable: m, onPointerdown: h, onKeydown:
|
|
21917
|
+
const d = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = Mc(), p = g(() => f?.element.value ?? null), { position: v, draggable: m, onPointerdown: h, onKeydown: b } = JC(Me("handle"), f), w = g(() => n.width ? void 0 : n.size), x = g(() => n.width ?? (w.value && `var(--ui-dialog-width-${w.value})`)), C = g(() => !!x.value), E = lv(), k = g(() => C.value ? void 0 : E.value), T = g(() => ({
|
|
21918
21918
|
left: v.value && `${v.value.x}px`,
|
|
21919
21919
|
top: v.value && `${v.value.y}px`,
|
|
21920
21920
|
maxWidth: x.value,
|
|
@@ -21963,7 +21963,7 @@ const Fc = /* @__PURE__ */ B({
|
|
|
21963
21963
|
]],
|
|
21964
21964
|
style: T.value,
|
|
21965
21965
|
"data-ui-dialog-sizing": C.value ? "fixed" : "content",
|
|
21966
|
-
"data-ui-dialog-size":
|
|
21966
|
+
"data-ui-dialog-size": w.value,
|
|
21967
21967
|
"data-ui-dialog-floor": k.value,
|
|
21968
21968
|
"data-ui-dialog-layout": H.value ? "window" : "message",
|
|
21969
21969
|
"data-syno-pkg-land-ui": "",
|
|
@@ -21988,7 +21988,7 @@ const Fc = /* @__PURE__ */ B({
|
|
|
21988
21988
|
key: 0,
|
|
21989
21989
|
class: "text-[length:var(--ui-font-size)] leading-5 font-bold text-[var(--ui-text)] [overflow-wrap:anywhere] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]"
|
|
21990
21990
|
}, i(m) ? { tabindex: 0, "aria-keyshortcuts": "ArrowUp ArrowDown ArrowLeft ArrowRight", "data-ui-keyboard-focus": "" } : {}, {
|
|
21991
|
-
onKeydown: i(
|
|
21991
|
+
onKeydown: i(b),
|
|
21992
21992
|
onMousedown: F[0] || (F[0] = (K) => i(m) && K.preventDefault())
|
|
21993
21993
|
}), {
|
|
21994
21994
|
default: _(() => [
|
|
@@ -22263,7 +22263,7 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22263
22263
|
const t = Ta(() => {
|
|
22264
22264
|
}), n = Me("root"), o = P(!1), r = qt(() => n.value ?? void 0, () => o.value), l = Ke(), s = e, u = g(() => s.locale ?? t.value), d = a, f = g(() => Vc(s.modelValue)), p = g(() => f.value?.date), v = g(() => s.editable && !s.showTime), m = g(
|
|
22265
22265
|
() => s.timeFormat ?? (s.enableHour24 ? "HH:mm" : "h:mm a")
|
|
22266
|
-
), h = pt({ hours: 0, minutes: 0, checked: !1 }),
|
|
22266
|
+
), h = pt({ hours: 0, minutes: 0, checked: !1 }), b = g(() => s.timeOptional ? h.checked : !0);
|
|
22267
22267
|
ve(
|
|
22268
22268
|
f,
|
|
22269
22269
|
(ie) => {
|
|
@@ -22275,7 +22275,7 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22275
22275
|
},
|
|
22276
22276
|
{ immediate: !0 }
|
|
22277
22277
|
);
|
|
22278
|
-
function
|
|
22278
|
+
function w(ie) {
|
|
22279
22279
|
if (ie)
|
|
22280
22280
|
try {
|
|
22281
22281
|
return Gp(ie);
|
|
@@ -22283,8 +22283,8 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22283
22283
|
return;
|
|
22284
22284
|
}
|
|
22285
22285
|
}
|
|
22286
|
-
const x = g(() =>
|
|
22287
|
-
function E(ie, _e =
|
|
22286
|
+
const x = g(() => w(s.min)), C = g(() => w(s.max));
|
|
22287
|
+
function E(ie, _e = b.value) {
|
|
22288
22288
|
return !s.showTime || !_e ? ie : cS(ie, h.hours, h.minutes);
|
|
22289
22289
|
}
|
|
22290
22290
|
function k(ie) {
|
|
@@ -22297,7 +22297,7 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22297
22297
|
p.value && k(E(p.value));
|
|
22298
22298
|
}
|
|
22299
22299
|
const M = g({
|
|
22300
|
-
get: () =>
|
|
22300
|
+
get: () => w(p.value),
|
|
22301
22301
|
set: (ie) => {
|
|
22302
22302
|
ie && T(ie.toString());
|
|
22303
22303
|
}
|
|
@@ -22329,7 +22329,7 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22329
22329
|
month: "short",
|
|
22330
22330
|
day: "2-digit"
|
|
22331
22331
|
}).format(new Date(Number(ie.slice(0, 4)), Number(ie.slice(5, 7)) - 1, Number(ie.slice(8, 10))));
|
|
22332
|
-
return !s.showTime || !
|
|
22332
|
+
return !s.showTime || !b.value ? _e : `${_e} ${pS(h.hours, h.minutes, m.value)}`;
|
|
22333
22333
|
}), K = P(""), U = P(!1);
|
|
22334
22334
|
ve(
|
|
22335
22335
|
[p, () => s.dateFormat, v],
|
|
@@ -22547,7 +22547,7 @@ const hS = ["disabled", "readonly", "placeholder", "onKeydown"], gS = ["disabled
|
|
|
22547
22547
|
}, null, 40, kS),
|
|
22548
22548
|
ue(" " + V(re.value.addTime), 1)
|
|
22549
22549
|
])) : q("", !0),
|
|
22550
|
-
|
|
22550
|
+
b.value ? (c(), y("div", CS, [
|
|
22551
22551
|
D("span", SS, [
|
|
22552
22552
|
xt(D("select", {
|
|
22553
22553
|
"onUpdate:modelValue": _e[3] || (_e[3] = (de) => H.value = de),
|
|
@@ -22662,16 +22662,16 @@ const RS = { class: "min-w-0" }, MS = ["onClick"], eL = /* @__PURE__ */ B({
|
|
|
22662
22662
|
}[m];
|
|
22663
22663
|
}
|
|
22664
22664
|
function s(m) {
|
|
22665
|
-
const h = typeof m == "string" ? { title: m } : m,
|
|
22665
|
+
const h = typeof m == "string" ? { title: m } : m, b = r++;
|
|
22666
22666
|
return o.value.push({
|
|
22667
|
-
id:
|
|
22667
|
+
id: b,
|
|
22668
22668
|
open: !0,
|
|
22669
22669
|
tone: "info",
|
|
22670
22670
|
...h
|
|
22671
|
-
}),
|
|
22671
|
+
}), b;
|
|
22672
22672
|
}
|
|
22673
22673
|
function u(m) {
|
|
22674
|
-
const h = o.value.find((
|
|
22674
|
+
const h = o.value.find((b) => b.id === m);
|
|
22675
22675
|
h && (h.open = !1);
|
|
22676
22676
|
}
|
|
22677
22677
|
function d() {
|
|
@@ -22703,44 +22703,44 @@ const RS = { class: "min-w-0" }, MS = ["onClick"], eL = /* @__PURE__ */ B({
|
|
|
22703
22703
|
S(m.$slots, "default"),
|
|
22704
22704
|
O(i(i1), null, {
|
|
22705
22705
|
default: _(() => [
|
|
22706
|
-
(c(!0), y(oe, null, ke(o.value, (
|
|
22707
|
-
key:
|
|
22708
|
-
open:
|
|
22709
|
-
duration:
|
|
22706
|
+
(c(!0), y(oe, null, ke(o.value, (b) => (c(), $(i(s1), {
|
|
22707
|
+
key: b.id,
|
|
22708
|
+
open: b.open,
|
|
22709
|
+
duration: b.duration,
|
|
22710
22710
|
class: "ui-toast pointer-events-auto relative grid w-[360px] max-w-full grid-cols-[18px_minmax(0,1fr)_auto] items-start gap-x-3 gap-y-1 rounded-[var(--ui-callout-radius,12px)] py-3 pr-3 pl-4 data-[state=closed]:animate-[ui-toast-out_160ms_ease-in] data-[state=open]:animate-[ui-toast-in_240ms_var(--ui-motion-ease)]",
|
|
22711
|
-
"data-tone":
|
|
22711
|
+
"data-tone": b.tone ?? "info",
|
|
22712
22712
|
"data-syno-pkg-land-ui": "",
|
|
22713
|
-
"onUpdate:open": (
|
|
22713
|
+
"onUpdate:open": (w) => p(b, w)
|
|
22714
22714
|
}, {
|
|
22715
22715
|
default: _(() => [
|
|
22716
|
-
(c(), $(Le(l(
|
|
22716
|
+
(c(), $(Le(l(b.tone)), {
|
|
22717
22717
|
class: "ui-toast-icon mt-px",
|
|
22718
22718
|
"aria-hidden": "true"
|
|
22719
22719
|
})),
|
|
22720
22720
|
D("div", RS, [
|
|
22721
22721
|
O(i(d1), { class: "text-[13px] leading-5 font-semibold text-[var(--ui-text)]" }, {
|
|
22722
22722
|
default: _(() => [
|
|
22723
|
-
ue(V(
|
|
22723
|
+
ue(V(b.title), 1)
|
|
22724
22724
|
]),
|
|
22725
22725
|
_: 2
|
|
22726
22726
|
}, 1024),
|
|
22727
|
-
|
|
22727
|
+
b.description ? (c(), $(i(o1), {
|
|
22728
22728
|
key: 0,
|
|
22729
22729
|
class: "mt-0.5 text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
22730
22730
|
}, {
|
|
22731
22731
|
default: _(() => [
|
|
22732
|
-
ue(V(
|
|
22732
|
+
ue(V(b.description), 1)
|
|
22733
22733
|
]),
|
|
22734
22734
|
_: 2
|
|
22735
22735
|
}, 1024)) : q("", !0),
|
|
22736
|
-
|
|
22736
|
+
b.actionLabel ? (c(), y("button", {
|
|
22737
22737
|
key: 1,
|
|
22738
22738
|
type: "button",
|
|
22739
22739
|
class: "ui-toast-action mt-2 inline-flex h-6 items-center border border-[var(--ui-control-border)] bg-[var(--ui-control-bg)] text-[12px] font-semibold text-[var(--ui-text)] outline-none hover:border-[var(--ui-control-border-hover)] hover:bg-[var(--ui-control-bg-hover)] focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
22740
|
-
onClick: (
|
|
22741
|
-
|
|
22740
|
+
onClick: (w) => {
|
|
22741
|
+
b.onAction?.(), u(b.id);
|
|
22742
22742
|
}
|
|
22743
|
-
}, V(
|
|
22743
|
+
}, V(b.actionLabel), 9, MS)) : q("", !0)
|
|
22744
22744
|
]),
|
|
22745
22745
|
O(i(a1), {
|
|
22746
22746
|
class: "-mr-1.5 -mt-1.5 flex size-8 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
@@ -22774,7 +22774,7 @@ function Kc(e, a, t, n = 0) {
|
|
|
22774
22774
|
if (!r) return;
|
|
22775
22775
|
const f = Array.from(r.querySelectorAll("[data-ui-tab-value]")), p = f.find((h) => h.dataset.uiTabValue === s), v = () => {
|
|
22776
22776
|
const h = p?.getBoundingClientRect();
|
|
22777
|
-
if (!h || h.width <= 0 || !l.some(([
|
|
22777
|
+
if (!h || h.width <= 0 || !l.some(([b]) => b === s)) {
|
|
22778
22778
|
o.value = { width: "0px", transform: "translateX(0px)", opacity: 0 };
|
|
22779
22779
|
return;
|
|
22780
22780
|
}
|
|
@@ -23428,12 +23428,12 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23428
23428
|
}), (v, m) => (c(), $(Le(l.value), Oe(Ie(s.value)), {
|
|
23429
23429
|
default: _(() => [
|
|
23430
23430
|
(c(), $(Le(u.value), Oe(Ie(d.value)), {
|
|
23431
|
-
default: _(({ pressed: h, disabled:
|
|
23431
|
+
default: _(({ pressed: h, disabled: b }) => [
|
|
23432
23432
|
O(at, ae({
|
|
23433
23433
|
variant: h ? e.appearance.on : e.appearance.off,
|
|
23434
23434
|
size: e.size,
|
|
23435
23435
|
style: p.value,
|
|
23436
|
-
disabled:
|
|
23436
|
+
disabled: b || e.disabled
|
|
23437
23437
|
}, v.$attrs, { "data-toggle-button": "" }), {
|
|
23438
23438
|
default: _(() => [
|
|
23439
23439
|
S(v.$slots, "icon"),
|
|
@@ -23521,11 +23521,11 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23521
23521
|
const m = g(() => v(o.icon)), h = g(() => {
|
|
23522
23522
|
const K = v(o.avatar);
|
|
23523
23523
|
return K ? { ...K, size: K.size ?? [12, 12] } : void 0;
|
|
23524
|
-
}),
|
|
23525
|
-
let
|
|
23524
|
+
}), b = P(!1);
|
|
23525
|
+
let w;
|
|
23526
23526
|
function x() {
|
|
23527
23527
|
const K = s.value, U = !!(K && K.scrollWidth > K.clientWidth);
|
|
23528
|
-
|
|
23528
|
+
b.value !== U && (b.value = U);
|
|
23529
23529
|
}
|
|
23530
23530
|
let C = 0, E = -1, k = -1;
|
|
23531
23531
|
function T(K) {
|
|
@@ -23536,12 +23536,12 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23536
23536
|
}
|
|
23537
23537
|
const I = g(() => {
|
|
23538
23538
|
if (typeof o.tooltip == "string") return o.tooltip;
|
|
23539
|
-
if (o.tooltip === !0 &&
|
|
23539
|
+
if (o.tooltip === !0 && b.value) return o.label;
|
|
23540
23540
|
}), M = g(() => I.value ? va : xe), H = g(() => I.value ? { content: I.value } : { asChild: !0 });
|
|
23541
23541
|
qe(() => {
|
|
23542
|
-
x(), !(typeof ResizeObserver > "u" || !s.value) && (
|
|
23542
|
+
x(), !(typeof ResizeObserver > "u" || !s.value) && (w = new ResizeObserver(T), w.observe(s.value));
|
|
23543
23543
|
}), We(() => {
|
|
23544
|
-
|
|
23544
|
+
w?.disconnect(), C && cancelAnimationFrame(C);
|
|
23545
23545
|
});
|
|
23546
23546
|
const X = g(() => ({
|
|
23547
23547
|
role: u.value ? "button" : void 0,
|
|
@@ -23635,7 +23635,7 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23635
23635
|
viewHeight: 0,
|
|
23636
23636
|
scrollWidth: 0,
|
|
23637
23637
|
scrollHeight: 0
|
|
23638
|
-
}), d = pt({ left: 0, top: 0 }), f = pt({ top: !0, bottom: !0, left: !0, right: !0 }), p = P(!1), v = P(!1), m = g(() => u.scrollHeight - u.viewHeight > 0.5), h = g(() => u.scrollWidth - u.viewWidth > 0.5),
|
|
23638
|
+
}), d = pt({ left: 0, top: 0 }), f = pt({ top: !0, bottom: !0, left: !0, right: !0 }), p = P(!1), v = P(!1), m = g(() => u.scrollHeight - u.viewHeight > 0.5), h = g(() => u.scrollWidth - u.viewWidth > 0.5), b = g(() => !n.disabled && n.showYRail && m.value), w = g(() => !n.disabled && n.showXRail && h.value), x = g(
|
|
23639
23639
|
() => !n.activeAdaptiveScrollbar || p.value || v.value
|
|
23640
23640
|
), C = g(() => {
|
|
23641
23641
|
if (!m.value) return 0;
|
|
@@ -23661,7 +23661,7 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23661
23661
|
"size-full",
|
|
23662
23662
|
n.disabled ? "overflow-auto" : "overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
23663
23663
|
n.overscroll && "overscroll-contain",
|
|
23664
|
-
n.hasPadding &&
|
|
23664
|
+
n.hasPadding && b.value && "pr-[10px]",
|
|
23665
23665
|
n.viewClass
|
|
23666
23666
|
)
|
|
23667
23667
|
);
|
|
@@ -23885,7 +23885,7 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23885
23885
|
]),
|
|
23886
23886
|
_: 3
|
|
23887
23887
|
}, 40, ["style", "class"])),
|
|
23888
|
-
|
|
23888
|
+
b.value ? (c(), y("div", {
|
|
23889
23889
|
key: 0,
|
|
23890
23890
|
"data-scrollbar-rail": "y",
|
|
23891
23891
|
class: J(["absolute inset-y-0 right-0 z-10 w-[10px]", x.value ? "pointer-events-auto" : "pointer-events-none"]),
|
|
@@ -23901,7 +23901,7 @@ const fL = /* @__PURE__ */ Bl(g$, [["render", b$]]), pL = /* @__PURE__ */ B({
|
|
|
23901
23901
|
onPointerdown: we[0] || (we[0] = Ae((le) => He(le, "y"), ["stop"]))
|
|
23902
23902
|
}, null, 38)
|
|
23903
23903
|
], 34)) : q("", !0),
|
|
23904
|
-
|
|
23904
|
+
w.value ? (c(), y("div", {
|
|
23905
23905
|
key: 1,
|
|
23906
23906
|
"data-scrollbar-rail": "x",
|
|
23907
23907
|
class: J(["absolute inset-x-0 bottom-0 z-10 h-[10px]", x.value ? "pointer-events-auto" : "pointer-events-none"]),
|
|
@@ -24037,8 +24037,8 @@ const M$ = {
|
|
|
24037
24037
|
},
|
|
24038
24038
|
emits: ["clickItem"],
|
|
24039
24039
|
setup(e, { emit: a }) {
|
|
24040
|
-
const n = Ze(e, { collapsedLabel: "Show full path" }), o = a, r = Tt(), l = g(() => (Array.isArray(n.actionMenuItems) ? n.actionMenuItems : []).map((X) => R$(X) ? { kind: "divider" } : { kind: "action", item: X })), s = g(() => l.value.some((H) => H.kind === "action") || !!r["action-menu-dropdown"]), u = g(() => n.items.length - 1), d = { visibleTailCount: 0, hiddenCount: 0 }, f = P(), p = P(), v = P([]), m = P(), h = P(),
|
|
24041
|
-
function
|
|
24040
|
+
const n = Ze(e, { collapsedLabel: "Show full path" }), o = a, r = Tt(), l = g(() => (Array.isArray(n.actionMenuItems) ? n.actionMenuItems : []).map((X) => R$(X) ? { kind: "divider" } : { kind: "action", item: X })), s = g(() => l.value.some((H) => H.kind === "action") || !!r["action-menu-dropdown"]), u = g(() => n.items.length - 1), d = { visibleTailCount: 0, hiddenCount: 0 }, f = P(), p = P(), v = P([]), m = P(), h = P(), b = P(d);
|
|
24041
|
+
function w(H, X) {
|
|
24042
24042
|
H instanceof HTMLElement && (v.value[X] = H);
|
|
24043
24043
|
}
|
|
24044
24044
|
function x(H) {
|
|
@@ -24047,10 +24047,10 @@ const M$ = {
|
|
|
24047
24047
|
function C() {
|
|
24048
24048
|
const H = f.value;
|
|
24049
24049
|
if (!H || n.items.length === 0) {
|
|
24050
|
-
|
|
24050
|
+
b.value = d;
|
|
24051
24051
|
return;
|
|
24052
24052
|
}
|
|
24053
|
-
|
|
24053
|
+
b.value = I$({
|
|
24054
24054
|
containerWidth: H.clientWidth,
|
|
24055
24055
|
itemWidths: n.items.map((X, N) => x(v.value[N])),
|
|
24056
24056
|
separatorWidth: x(h.value) || H$,
|
|
@@ -24063,7 +24063,7 @@ const M$ = {
|
|
|
24063
24063
|
}), We(() => E?.disconnect()), ve(() => n.items, () => {
|
|
24064
24064
|
De(C);
|
|
24065
24065
|
}, { deep: !0 });
|
|
24066
|
-
const k = g(() => Math.min(
|
|
24066
|
+
const k = g(() => Math.min(b.value.hiddenCount, Math.max(0, n.items.length - 2))), T = g(() => n.items.slice(1, 1 + k.value)), I = g(
|
|
24067
24067
|
() => n.items.slice(1 + k.value).map((H, X) => ({ item: H, index: k.value + X + 1 }))
|
|
24068
24068
|
);
|
|
24069
24069
|
function M(H) {
|
|
@@ -24210,7 +24210,7 @@ const M$ = {
|
|
|
24210
24210
|
(c(!0), y(oe, null, ke(i(n).items, (N, R) => (c(), y("li", {
|
|
24211
24211
|
key: N.id,
|
|
24212
24212
|
ref_for: !0,
|
|
24213
|
-
ref: (F) =>
|
|
24213
|
+
ref: (F) => w(F, R),
|
|
24214
24214
|
class: "flex min-w-0 items-center"
|
|
24215
24215
|
}, [
|
|
24216
24216
|
R > 0 ? (c(), y("span", N$, [
|
|
@@ -24339,7 +24339,7 @@ const Z$ = ["aria-label"], Q$ = {
|
|
|
24339
24339
|
return Number.isFinite(W) ? W : 0;
|
|
24340
24340
|
}, f = g(() => Math.max(0, d(o.total))), p = g(() => G$(f.value, o.pageSize)), v = g(
|
|
24341
24341
|
() => o.endless ? Math.max(1, Math.trunc(d(o.modelValue))) : Qs(d(o.modelValue), p.value)
|
|
24342
|
-
), m = g(() => d(o.start) || (v.value - 1) * o.pageSize + 1), h = g(() => d(o.end) || Math.min(v.value * o.pageSize, f.value)),
|
|
24342
|
+
), m = g(() => d(o.start) || (v.value - 1) * o.pageSize + 1), h = g(() => d(o.end) || Math.min(v.value * o.pageSize, f.value)), b = g(() => o.hasPrev ?? v.value > 1), w = g(() => o.hasNext ?? (o.endless ? !0 : v.value < p.value)), x = g(
|
|
24343
24343
|
() => o.endless ? [] : Y$(v.value, p.value, o.maxPageButtons).map(
|
|
24344
24344
|
(A) => A === "ellipsis" ? { kind: "ellipsis" } : { kind: "page", page: A }
|
|
24345
24345
|
)
|
|
@@ -24401,7 +24401,7 @@ const Z$ = ["aria-label"], Q$ = {
|
|
|
24401
24401
|
key: 0,
|
|
24402
24402
|
label: u.value.first,
|
|
24403
24403
|
size: "sm",
|
|
24404
|
-
disabled: !
|
|
24404
|
+
disabled: !b.value || !o.switchPage,
|
|
24405
24405
|
onClick: W[0] || (W[0] = (z) => N(1))
|
|
24406
24406
|
}, {
|
|
24407
24407
|
default: _(() => [
|
|
@@ -24414,7 +24414,7 @@ const Z$ = ["aria-label"], Q$ = {
|
|
|
24414
24414
|
ref: F,
|
|
24415
24415
|
label: u.value.previous,
|
|
24416
24416
|
size: "sm",
|
|
24417
|
-
disabled: !
|
|
24417
|
+
disabled: !b.value || !o.switchPage,
|
|
24418
24418
|
onClick: W[1] || (W[1] = (z) => N(v.value - o.pageShiftUnit))
|
|
24419
24419
|
}, {
|
|
24420
24420
|
default: _(() => [
|
|
@@ -24442,7 +24442,7 @@ const Z$ = ["aria-label"], Q$ = {
|
|
|
24442
24442
|
ref: K,
|
|
24443
24443
|
label: u.value.next,
|
|
24444
24444
|
size: "sm",
|
|
24445
|
-
disabled: !
|
|
24445
|
+
disabled: !w.value || !o.switchPage,
|
|
24446
24446
|
onClick: W[2] || (W[2] = (z) => N(v.value + o.pageShiftUnit))
|
|
24447
24447
|
}, {
|
|
24448
24448
|
default: _(() => [
|
|
@@ -24454,7 +24454,7 @@ const Z$ = ["aria-label"], Q$ = {
|
|
|
24454
24454
|
key: 3,
|
|
24455
24455
|
label: u.value.last,
|
|
24456
24456
|
size: "sm",
|
|
24457
|
-
disabled: !
|
|
24457
|
+
disabled: !w.value || !o.switchPage,
|
|
24458
24458
|
onClick: W[3] || (W[3] = (z) => N(o.endless ? v.value + 1 : p.value))
|
|
24459
24459
|
}, {
|
|
24460
24460
|
default: _(() => [
|
|
@@ -24524,7 +24524,7 @@ const sE = ["aria-label", "aria-labelledby"], SL = /* @__PURE__ */ B({
|
|
|
24524
24524
|
function d(p, v) {
|
|
24525
24525
|
const m = u();
|
|
24526
24526
|
if (m.length === 0) return;
|
|
24527
|
-
const h = m.findIndex((
|
|
24527
|
+
const h = m.findIndex((w) => w.value === p);
|
|
24528
24528
|
(v === "first" ? m[0] : v === "last" ? m[m.length - 1] : h === -1 ? m[0] : v === "next" ? m[h + 1] : m[h - 1])?.element()?.focus();
|
|
24529
24529
|
}
|
|
24530
24530
|
const f = {
|
|
@@ -24587,7 +24587,7 @@ const sE = ["aria-label", "aria-labelledby"], SL = /* @__PURE__ */ B({
|
|
|
24587
24587
|
!s.value && "bg-[var(--ui-surface-subtle)] text-[var(--ui-text-secondary)]",
|
|
24588
24588
|
u.value ? "opacity-40" : !s.value && "hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] active:bg-[var(--ui-surface-selected)]"
|
|
24589
24589
|
)
|
|
24590
|
-
),
|
|
24590
|
+
), b = g(() => a.ariaLabel ?? n.value?.textContent?.trim() ?? ""), w = g(() => t?.variant.value === "sheet" ? h.value : m.value), x = {
|
|
24591
24591
|
get value() {
|
|
24592
24592
|
return a.value;
|
|
24593
24593
|
},
|
|
@@ -24626,8 +24626,8 @@ const sE = ["aria-label", "aria-labelledby"], SL = /* @__PURE__ */ B({
|
|
|
24626
24626
|
"aria-disabled": u.value ? "true" : void 0,
|
|
24627
24627
|
tabindex: d.value,
|
|
24628
24628
|
"data-state": s.value ? "selected" : "inactive",
|
|
24629
|
-
class:
|
|
24630
|
-
title: v.value ? void 0 :
|
|
24629
|
+
class: w.value,
|
|
24630
|
+
title: v.value ? void 0 : b.value || void 0,
|
|
24631
24631
|
onClick: C,
|
|
24632
24632
|
onKeydown: k
|
|
24633
24633
|
}), [
|
|
@@ -25524,9 +25524,9 @@ const KE = {
|
|
|
25524
25524
|
idle: r("Not set up"),
|
|
25525
25525
|
unknown: r("Unknown"),
|
|
25526
25526
|
...n.text
|
|
25527
|
-
})), s = (A) => A.label || l.value[A.state], u = (A) => A.label ?? l.value[A.state], d = (A) => `${[A.source, A.via, n.target].filter((W) => W).map((W) => W.label).join(", ")}: ${A.links.map(s).join(", ")}`, f = (A) => n.selectedLane !== void 0 && String(A.id) === String(n.selectedLane), p = Me("root"), v = jt(p), m = g(() => n.compact || v.value > 0 && v.value < 640), h = g(() => m.value && v.value > 0 && v.value < 240),
|
|
25527
|
+
})), s = (A) => A.label || l.value[A.state], u = (A) => A.label ?? l.value[A.state], d = (A) => `${[A.source, A.via, n.target].filter((W) => W).map((W) => W.label).join(", ")}: ${A.links.map(s).join(", ")}`, f = (A) => n.selectedLane !== void 0 && String(A.id) === String(n.selectedLane), p = Me("root"), v = jt(p), m = g(() => n.compact || v.value > 0 && v.value < 640), h = g(() => m.value && v.value > 0 && v.value < 240), b = ["", "words", "all"], w = (A) => b.indexOf(A.getAttribute("data-wrap") ?? "");
|
|
25528
25528
|
function x(A, W) {
|
|
25529
|
-
W ? A.setAttribute("data-wrap",
|
|
25529
|
+
W ? A.setAttribute("data-wrap", b[W]) : A.removeAttribute("data-wrap");
|
|
25530
25530
|
}
|
|
25531
25531
|
function C(A) {
|
|
25532
25532
|
if (A.scrollWidth > A.clientWidth + 1) return !1;
|
|
@@ -25554,10 +25554,10 @@ const KE = {
|
|
|
25554
25554
|
M = !0, X(() => {
|
|
25555
25555
|
let A = !1;
|
|
25556
25556
|
for (const W of E()) {
|
|
25557
|
-
const z =
|
|
25557
|
+
const z = w(W), G = H.get(W) ?? /* @__PURE__ */ new Set();
|
|
25558
25558
|
H.set(W, G);
|
|
25559
25559
|
let L = z;
|
|
25560
|
-
C(W) ? z > 0 && !G.has(z - 1) && (L = z - 1) : (G.add(z), L = Math.min(z + 1,
|
|
25560
|
+
C(W) ? z > 0 && !G.has(z - 1) && (L = z - 1) : (G.add(z), L = Math.min(z + 1, b.length - 1)), L !== z && (x(W, L), A = !0);
|
|
25561
25561
|
}
|
|
25562
25562
|
A ? N() : M = !1;
|
|
25563
25563
|
});
|
|
@@ -26520,8 +26520,8 @@ function pr(e, a, t, n) {
|
|
|
26520
26520
|
const f = gf(e, u), p = d === "~" ? f === 2 ? 4 : 0 : f === 1 ? 1 : f <= 3 ? 2 : 0, v = p === 4 ? 2 : p, m = u + v, h = p && /\S/.test(e[u + f] ?? "") ? MA(e, m, p, r ??= new Uint8Array(e.length)) : -1;
|
|
26521
26521
|
if (h > m) {
|
|
26522
26522
|
l();
|
|
26523
|
-
const
|
|
26524
|
-
pr(e.slice(m, h), { ...a, ...
|
|
26523
|
+
const b = p === 4 ? { strike: !0 } : p === 2 ? { strong: !0 } : { em: !0 };
|
|
26524
|
+
pr(e.slice(m, h), { ...a, ...b }, t, n), u = h + v;
|
|
26525
26525
|
continue;
|
|
26526
26526
|
}
|
|
26527
26527
|
o += e.slice(u, u + f), u += f;
|
|
@@ -26578,10 +26578,10 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
26578
26578
|
E.preventDefault();
|
|
26579
26579
|
}
|
|
26580
26580
|
let h = null;
|
|
26581
|
-
function
|
|
26581
|
+
function b(E) {
|
|
26582
26582
|
E.pointerType !== "mouse" && (h = { x: E.clientX, y: E.clientY });
|
|
26583
26583
|
}
|
|
26584
|
-
function
|
|
26584
|
+
function w(E) {
|
|
26585
26585
|
if (!h) return;
|
|
26586
26586
|
const k = E.clientX - h.x, T = E.clientY - h.y;
|
|
26587
26587
|
h = null, Math.abs(k) >= 48 && Math.abs(k) > Math.abs(T) * 1.5 && v(k < 0 ? 1 : -1);
|
|
@@ -26605,8 +26605,8 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
26605
26605
|
"data-ui-lightbox": "",
|
|
26606
26606
|
"data-syno-pkg-land-ui": "",
|
|
26607
26607
|
onKeydown: m,
|
|
26608
|
-
onPointerdown:
|
|
26609
|
-
onPointerup:
|
|
26608
|
+
onPointerdown: b,
|
|
26609
|
+
onPointerup: w,
|
|
26610
26610
|
onPointercancel: k[5] || (k[5] = (T) => Vt(h) ? h.value = null : h = null)
|
|
26611
26611
|
}, {
|
|
26612
26612
|
default: _(() => [
|
|
@@ -26956,13 +26956,13 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
26956
26956
|
const t = e, n = a, o = g(() => cf(t.body, { people: t.mentions, headings: t.headings }));
|
|
26957
26957
|
function r(p, v = []) {
|
|
26958
26958
|
const m = (h) => {
|
|
26959
|
-
for (const
|
|
26959
|
+
for (const b of h) b.type === "image" && v.push(b);
|
|
26960
26960
|
};
|
|
26961
26961
|
for (const h of p)
|
|
26962
26962
|
if (h.type === "paragraph" || h.type === "heading") m(h.parts);
|
|
26963
26963
|
else if (h.type === "quote") r(h.blocks, v);
|
|
26964
|
-
else if (h.type === "list") for (const
|
|
26965
|
-
m(
|
|
26964
|
+
else if (h.type === "list") for (const b of h.items)
|
|
26965
|
+
m(b.parts), b.list?.items.forEach((w) => m(w.parts));
|
|
26966
26966
|
return v;
|
|
26967
26967
|
}
|
|
26968
26968
|
const l = (p, v) => ({ ...t.files?.(p) ?? { name: v || p, state: "missing" }, id: p }), s = g(() => r(o.value).map((p) => l(p.id, p.alt))), u = P(!1), d = P(0);
|
|
@@ -27199,15 +27199,15 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27199
27199
|
n("open", h, t.items[h]), t.lightbox && (u.value = h, s.value = !0);
|
|
27200
27200
|
}
|
|
27201
27201
|
const p = (h) => bf(h) && h.thumb && (h.state ?? "ready") === "ready" && !d.value.has(h.id), v = g(() => t.size === "sm" ? "size-7 rounded-[var(--ui-radius-sm)]" : "size-16 rounded-[var(--ui-radius-md)]"), m = (h) => h.state === "processing" ? `${h.name}, ${o("Processing")}` : h.state === "missing" ? `${h.name}, ${o("File is missing")}` : h.state === "failed" ? `${h.name}, ${o("Can't show this file")}` : h.name;
|
|
27202
|
-
return (h,
|
|
27202
|
+
return (h, b) => e.items.length ? (c(), y("div", {
|
|
27203
27203
|
key: 0,
|
|
27204
27204
|
class: "flex min-w-0 flex-wrap items-center gap-1",
|
|
27205
27205
|
"data-size": e.size,
|
|
27206
27206
|
"data-ui-file-thumbs": "",
|
|
27207
27207
|
"data-syno-pkg-land-ui": ""
|
|
27208
27208
|
}, [
|
|
27209
|
-
(c(!0), y(oe, null, ke(r.value, (
|
|
27210
|
-
key:
|
|
27209
|
+
(c(!0), y(oe, null, ke(r.value, (w, x) => (c(), y("span", {
|
|
27210
|
+
key: w.id,
|
|
27211
27211
|
class: "relative inline-flex shrink-0",
|
|
27212
27212
|
"data-ui-file-thumb-wrap": ""
|
|
27213
27213
|
}, [
|
|
@@ -27218,42 +27218,42 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27218
27218
|
"after:absolute after:-inset-2 [@media(pointer:fine)]:after:hidden",
|
|
27219
27219
|
v.value
|
|
27220
27220
|
]),
|
|
27221
|
-
style: Ce({ background:
|
|
27222
|
-
"aria-label": m(
|
|
27223
|
-
title:
|
|
27224
|
-
"data-state":
|
|
27225
|
-
"data-ui-file-thumb":
|
|
27221
|
+
style: Ce({ background: w.state === "processing" ? w.dominant : void 0 }),
|
|
27222
|
+
"aria-label": m(w),
|
|
27223
|
+
title: w.name,
|
|
27224
|
+
"data-state": w.state ?? "ready",
|
|
27225
|
+
"data-ui-file-thumb": w.id,
|
|
27226
27226
|
onClick: (C) => f(x)
|
|
27227
27227
|
}, [
|
|
27228
|
-
p(
|
|
27228
|
+
p(w) ? (c(), y("img", {
|
|
27229
27229
|
key: 0,
|
|
27230
|
-
src:
|
|
27230
|
+
src: w.thumb,
|
|
27231
27231
|
alt: "",
|
|
27232
27232
|
loading: "lazy",
|
|
27233
27233
|
decoding: "async",
|
|
27234
27234
|
draggable: "false",
|
|
27235
27235
|
class: "size-full object-cover",
|
|
27236
|
-
style: Ce({ background:
|
|
27237
|
-
onError: (C) => d.value = new Set(d.value).add(
|
|
27238
|
-
}, null, 44, kP)) :
|
|
27236
|
+
style: Ce({ background: w.dominant }),
|
|
27237
|
+
onError: (C) => d.value = new Set(d.value).add(w.id)
|
|
27238
|
+
}, null, 44, kP)) : w.state === "processing" ? (c(), $(Jt, {
|
|
27239
27239
|
key: 1,
|
|
27240
27240
|
size: e.size === "sm" ? 16 : 24,
|
|
27241
27241
|
inline: "",
|
|
27242
27242
|
label: i(o)("Processing")
|
|
27243
27243
|
}, null, 8, ["size", "label"])) : (c(), $(Pl, {
|
|
27244
27244
|
key: 2,
|
|
27245
|
-
name:
|
|
27245
|
+
name: w.name,
|
|
27246
27246
|
size: e.size === "sm" ? "sm" : "m",
|
|
27247
|
-
class: J((
|
|
27247
|
+
class: J((w.state === "missing" || w.state === "failed") && "opacity-40")
|
|
27248
27248
|
}, null, 8, ["name", "size", "class"]))
|
|
27249
27249
|
], 14, _P),
|
|
27250
27250
|
e.removable ? (c(), y("button", {
|
|
27251
27251
|
key: 0,
|
|
27252
27252
|
type: "button",
|
|
27253
27253
|
class: "absolute -end-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full border border-[var(--ui-surface)] bg-[var(--ui-text-secondary)] p-0 text-[var(--ui-surface)] outline-none hover:bg-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)] after:absolute after:-inset-3 [@media(pointer:fine)]:after:hidden",
|
|
27254
|
-
"aria-label": i(o)("Remove {name}", { name:
|
|
27255
|
-
"data-ui-file-thumb-remove":
|
|
27256
|
-
onClick: (C) => n("remove",
|
|
27254
|
+
"aria-label": i(o)("Remove {name}", { name: w.name }),
|
|
27255
|
+
"data-ui-file-thumb-remove": w.id,
|
|
27256
|
+
onClick: (C) => n("remove", w)
|
|
27257
27257
|
}, [
|
|
27258
27258
|
O(i(lt), {
|
|
27259
27259
|
class: "size-3",
|
|
@@ -27272,14 +27272,14 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27272
27272
|
]),
|
|
27273
27273
|
"aria-label": i(o)("Show all {count} files", { count: e.items.length }),
|
|
27274
27274
|
"data-ui-file-thumbs-more": "",
|
|
27275
|
-
onClick:
|
|
27275
|
+
onClick: b[0] || (b[0] = (w) => f(r.value.length))
|
|
27276
27276
|
}, "+" + V(l.value), 11, SP)) : q("", !0),
|
|
27277
27277
|
e.lightbox ? (c(), $(wf, {
|
|
27278
27278
|
key: 1,
|
|
27279
27279
|
open: s.value,
|
|
27280
|
-
"onUpdate:open":
|
|
27280
|
+
"onUpdate:open": b[1] || (b[1] = (w) => s.value = w),
|
|
27281
27281
|
index: u.value,
|
|
27282
|
-
"onUpdate:index":
|
|
27282
|
+
"onUpdate:index": b[2] || (b[2] = (w) => u.value = w),
|
|
27283
27283
|
items: e.items
|
|
27284
27284
|
}, null, 8, ["open", "index", "items"])) : q("", !0)
|
|
27285
27285
|
], 8, xP)) : q("", !0);
|
|
@@ -27302,12 +27302,12 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27302
27302
|
},
|
|
27303
27303
|
emits: ["retry", "cancel", "retryAll", "cancelAll", "close"],
|
|
27304
27304
|
setup(e, { emit: a }) {
|
|
27305
|
-
const t = e, n = a, o = Ke(), r = P(!1), l = (
|
|
27306
|
-
o("Uploaded {done} of {total}", { done: s.value, total:
|
|
27305
|
+
const t = e, n = a, o = Ke(), r = P(!1), l = (b) => t.tasks.filter((w) => w.status === b).length, s = g(() => l("done")), u = g(() => l("failed")), d = g(() => t.tasks.filter((b) => b.status === "failed" && !b.final).length), f = g(() => t.tasks.some((b) => b.status === "queued" || b.status === "uploading")), p = g(() => t.tasks.filter((b) => b.status !== "canceled").length), v = g(() => [
|
|
27306
|
+
o("Uploaded {done} of {total}", { done: s.value, total: p.value }),
|
|
27307
27307
|
t.processing ? o("Processing {count}", { count: t.processing }) : "",
|
|
27308
27308
|
u.value ? o("{count} failed", { count: u.value }) : ""
|
|
27309
|
-
].filter(Boolean)),
|
|
27310
|
-
return (
|
|
27309
|
+
].filter(Boolean)), m = (b) => b.size ? Math.round(b.loaded / b.size * 100) : 0, h = { queued: "Waiting", uploading: "Uploading", done: "Uploaded", failed: "Upload failed", canceled: "Canceled" };
|
|
27310
|
+
return (b, w) => (c(), y("section", {
|
|
27311
27311
|
class: "flex min-w-0 flex-col overflow-hidden rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] text-[length:var(--ui-font-size)] text-[var(--ui-text)] shadow-[var(--ui-shadow-menu)]",
|
|
27312
27312
|
"aria-label": i(o)("Uploads"),
|
|
27313
27313
|
"data-ui-upload-queue": "",
|
|
@@ -27315,29 +27315,29 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27315
27315
|
}, [
|
|
27316
27316
|
D("header", EP, [
|
|
27317
27317
|
D("span", TP, [
|
|
27318
|
-
(c(!0), y(oe, null, ke(
|
|
27319
|
-
ue(V(
|
|
27320
|
-
D("span", AP, V(
|
|
27318
|
+
(c(!0), y(oe, null, ke(v.value, (x, C) => (c(), y(oe, { key: C }, [
|
|
27319
|
+
ue(V(C ? ", " : ""), 1),
|
|
27320
|
+
D("span", AP, V(x), 1)
|
|
27321
27321
|
], 64))), 128))
|
|
27322
27322
|
]),
|
|
27323
|
-
|
|
27323
|
+
d.value > 1 ? (c(), $(at, {
|
|
27324
27324
|
key: 0,
|
|
27325
27325
|
size: "sm",
|
|
27326
27326
|
variant: "ghost",
|
|
27327
27327
|
"data-ui-upload-retry-all": "",
|
|
27328
|
-
onClick: w[0] || (w[0] = (
|
|
27328
|
+
onClick: w[0] || (w[0] = (x) => n("retryAll"))
|
|
27329
27329
|
}, {
|
|
27330
27330
|
default: _(() => [
|
|
27331
27331
|
ue(V(i(o)("Retry all")), 1)
|
|
27332
27332
|
]),
|
|
27333
27333
|
_: 1
|
|
27334
27334
|
})) : q("", !0),
|
|
27335
|
-
|
|
27335
|
+
f.value ? (c(), $(at, {
|
|
27336
27336
|
key: 1,
|
|
27337
27337
|
size: "sm",
|
|
27338
27338
|
variant: "ghost",
|
|
27339
27339
|
"data-ui-upload-cancel-all": "",
|
|
27340
|
-
onClick: w[1] || (w[1] = (
|
|
27340
|
+
onClick: w[1] || (w[1] = (x) => n("cancelAll"))
|
|
27341
27341
|
}, {
|
|
27342
27342
|
default: _(() => [
|
|
27343
27343
|
ue(V(i(o)("Cancel all")), 1)
|
|
@@ -27350,7 +27350,7 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27350
27350
|
label: r.value ? i(o)("Show uploads") : i(o)("Hide uploads"),
|
|
27351
27351
|
"aria-expanded": !r.value,
|
|
27352
27352
|
"data-ui-upload-fold": "",
|
|
27353
|
-
onClick: w[2] || (w[2] = (
|
|
27353
|
+
onClick: w[2] || (w[2] = (x) => r.value = !r.value)
|
|
27354
27354
|
}, {
|
|
27355
27355
|
default: _(() => [
|
|
27356
27356
|
O(i(it), {
|
|
@@ -27360,12 +27360,12 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27360
27360
|
]),
|
|
27361
27361
|
_: 1
|
|
27362
27362
|
}, 8, ["label", "aria-expanded"])) : q("", !0),
|
|
27363
|
-
e.closable && !
|
|
27363
|
+
e.closable && !f.value ? (c(), $(mt, {
|
|
27364
27364
|
key: 3,
|
|
27365
27365
|
size: "sm",
|
|
27366
27366
|
label: i(o)("Close"),
|
|
27367
27367
|
"data-ui-upload-close": "",
|
|
27368
|
-
onClick: w[3] || (w[3] = (
|
|
27368
|
+
onClick: w[3] || (w[3] = (x) => n("close"))
|
|
27369
27369
|
}, {
|
|
27370
27370
|
default: _(() => [
|
|
27371
27371
|
O(i(lt), {
|
|
@@ -27377,64 +27377,64 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27377
27377
|
}, 8, ["label"])) : q("", !0)
|
|
27378
27378
|
]),
|
|
27379
27379
|
xt(D("ul", PP, [
|
|
27380
|
-
(c(!0), y(oe, null, ke(e.tasks, (
|
|
27381
|
-
key:
|
|
27380
|
+
(c(!0), y(oe, null, ke(e.tasks, (x) => (c(), y("li", {
|
|
27381
|
+
key: x.key,
|
|
27382
27382
|
class: "flex min-h-12 items-center gap-2.5 border-b border-[var(--ui-border-subtle)] px-3 py-1.5 last:border-b-0",
|
|
27383
|
-
"data-status":
|
|
27384
|
-
"data-ui-upload-task":
|
|
27383
|
+
"data-status": x.status,
|
|
27384
|
+
"data-ui-upload-task": x.key
|
|
27385
27385
|
}, [
|
|
27386
27386
|
O(Pl, {
|
|
27387
|
-
name:
|
|
27387
|
+
name: x.name,
|
|
27388
27388
|
class: "shrink-0"
|
|
27389
27389
|
}, null, 8, ["name"]),
|
|
27390
27390
|
D("div", qP, [
|
|
27391
27391
|
D("div", DP, [
|
|
27392
27392
|
D("span", {
|
|
27393
27393
|
class: "min-w-0 flex-1 truncate",
|
|
27394
|
-
title:
|
|
27395
|
-
}, V(
|
|
27396
|
-
D("span", IP, V(i(Xa)(
|
|
27394
|
+
title: x.name
|
|
27395
|
+
}, V(x.name), 9, OP),
|
|
27396
|
+
D("span", IP, V(i(Xa)(x.size)), 1)
|
|
27397
27397
|
]),
|
|
27398
|
-
|
|
27398
|
+
x.status === "uploading" ? (c(), y("div", {
|
|
27399
27399
|
key: 0,
|
|
27400
27400
|
class: "h-1 overflow-hidden rounded-full bg-[var(--ui-surface-subtle)]",
|
|
27401
27401
|
role: "progressbar",
|
|
27402
|
-
"aria-label":
|
|
27402
|
+
"aria-label": x.name,
|
|
27403
27403
|
"aria-valuemin": "0",
|
|
27404
27404
|
"aria-valuemax": "100",
|
|
27405
|
-
"aria-valuenow":
|
|
27405
|
+
"aria-valuenow": m(x)
|
|
27406
27406
|
}, [
|
|
27407
27407
|
D("div", {
|
|
27408
27408
|
class: "h-full rounded-full bg-[var(--ui-primary)] transition-[width] duration-[var(--ui-motion-fast)]",
|
|
27409
|
-
style: Ce({ width: `${
|
|
27409
|
+
style: Ce({ width: `${m(x)}%` })
|
|
27410
27410
|
}, null, 4)
|
|
27411
27411
|
], 8, RP)) : (c(), y("span", {
|
|
27412
27412
|
key: 1,
|
|
27413
|
-
class: J(["flex min-w-0 items-center gap-1 text-[length:var(--ui-font-size-sm)]",
|
|
27413
|
+
class: J(["flex min-w-0 items-center gap-1 text-[length:var(--ui-font-size-sm)]", x.status === "failed" ? "text-[var(--ui-danger-text)]" : "text-[var(--ui-text-secondary)]"]),
|
|
27414
27414
|
"data-ui-upload-status": ""
|
|
27415
27415
|
}, [
|
|
27416
|
-
|
|
27416
|
+
x.status === "done" ? (c(), $(i(ut), {
|
|
27417
27417
|
key: 0,
|
|
27418
27418
|
class: "size-3.5 shrink-0 text-[var(--ui-success)]",
|
|
27419
27419
|
"aria-hidden": "true"
|
|
27420
|
-
})) :
|
|
27420
|
+
})) : x.status === "failed" ? (c(), $(i(Ro), {
|
|
27421
27421
|
key: 1,
|
|
27422
27422
|
class: "size-3.5 shrink-0",
|
|
27423
27423
|
"aria-hidden": "true"
|
|
27424
27424
|
})) : q("", !0),
|
|
27425
27425
|
D("span", {
|
|
27426
27426
|
class: "min-w-0 truncate",
|
|
27427
|
-
title:
|
|
27428
|
-
}, V(
|
|
27427
|
+
title: x.error
|
|
27428
|
+
}, V(x.status === "failed" && x.error ? `${i(o)(h.failed)}: ${x.error}` : i(o)(h[x.status])), 9, MP)
|
|
27429
27429
|
], 2))
|
|
27430
27430
|
]),
|
|
27431
|
-
|
|
27431
|
+
!x.final && (x.status === "failed" || x.status === "canceled") ? (c(), $(mt, {
|
|
27432
27432
|
key: 0,
|
|
27433
27433
|
size: "sm",
|
|
27434
27434
|
class: "[@media(pointer:coarse)]:size-11",
|
|
27435
|
-
label: i(o)("Retry {name}", { name:
|
|
27435
|
+
label: i(o)("Retry {name}", { name: x.name }),
|
|
27436
27436
|
"data-ui-upload-retry": "",
|
|
27437
|
-
onClick: (
|
|
27437
|
+
onClick: (C) => n("retry", x.key)
|
|
27438
27438
|
}, {
|
|
27439
27439
|
default: _(() => [
|
|
27440
27440
|
O(i(Ap), {
|
|
@@ -27443,13 +27443,13 @@ const zA = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
27443
27443
|
})
|
|
27444
27444
|
]),
|
|
27445
27445
|
_: 1
|
|
27446
|
-
}, 8, ["label", "onClick"])) :
|
|
27446
|
+
}, 8, ["label", "onClick"])) : x.status === "queued" || x.status === "uploading" ? (c(), $(mt, {
|
|
27447
27447
|
key: 1,
|
|
27448
27448
|
size: "sm",
|
|
27449
27449
|
class: "[@media(pointer:coarse)]:size-11",
|
|
27450
|
-
label: i(o)("Cancel {name}", { name:
|
|
27450
|
+
label: i(o)("Cancel {name}", { name: x.name }),
|
|
27451
27451
|
"data-ui-upload-cancel": "",
|
|
27452
|
-
onClick: (
|
|
27452
|
+
onClick: (C) => n("cancel", x.key)
|
|
27453
27453
|
}, {
|
|
27454
27454
|
default: _(() => [
|
|
27455
27455
|
O(i(lt), {
|
|
@@ -27478,36 +27478,36 @@ function nF(e, a = {}) {
|
|
|
27478
27478
|
async function u(m) {
|
|
27479
27479
|
const h = new AbortController();
|
|
27480
27480
|
r.set(m.key, h), m.status = "uploading", m.error = void 0;
|
|
27481
|
-
for (let
|
|
27481
|
+
for (let b = 0; ; b++) {
|
|
27482
27482
|
m.loaded = 0;
|
|
27483
27483
|
try {
|
|
27484
|
-
const
|
|
27484
|
+
const w = await e(m.file, { signal: h.signal, onProgress: (x) => {
|
|
27485
27485
|
m.loaded = Math.min(x, m.size);
|
|
27486
27486
|
} });
|
|
27487
27487
|
if (h.signal.aborted) break;
|
|
27488
|
-
m.result =
|
|
27488
|
+
m.result = w, m.loaded = m.size, m.status = "done", a.onDone?.(m);
|
|
27489
27489
|
break;
|
|
27490
|
-
} catch (
|
|
27490
|
+
} catch (w) {
|
|
27491
27491
|
if (h.signal.aborted) break;
|
|
27492
|
-
if (w < n) {
|
|
27493
|
-
if (await FP(1e3 * 3 **
|
|
27492
|
+
if (m.final = typeof w == "object" && w !== null && "final" in w && w.final === !0, !m.final && b < n) {
|
|
27493
|
+
if (await FP(1e3 * 3 ** b, h.signal), h.signal.aborted) break;
|
|
27494
27494
|
continue;
|
|
27495
27495
|
}
|
|
27496
|
-
m.status = "failed", m.error =
|
|
27496
|
+
m.status = "failed", m.error = w instanceof Error ? w.message : String(w), a.onFailed?.(m);
|
|
27497
27497
|
break;
|
|
27498
27498
|
}
|
|
27499
27499
|
}
|
|
27500
27500
|
r.get(m.key) === h && r.delete(m.key), s();
|
|
27501
27501
|
}
|
|
27502
27502
|
function d(m) {
|
|
27503
|
-
const h = Array.from(m, (
|
|
27503
|
+
const h = Array.from(m, (w) => ({ key: `upload-${++LP}`, file: w, name: w.name, size: w.size, loaded: 0, status: "queued" }));
|
|
27504
27504
|
o.push(...h);
|
|
27505
|
-
const
|
|
27506
|
-
return s(),
|
|
27505
|
+
const b = o.slice(o.length - h.length);
|
|
27506
|
+
return s(), b;
|
|
27507
27507
|
}
|
|
27508
27508
|
function f(m) {
|
|
27509
27509
|
const h = l(m);
|
|
27510
|
-
!h || h.status !== "failed" && h.status !== "canceled" || (h.status = "queued", h.error = void 0, h.loaded = 0, s());
|
|
27510
|
+
!h || h.final || h.status !== "failed" && h.status !== "canceled" || (h.status = "queued", h.error = void 0, h.loaded = 0, s());
|
|
27511
27511
|
}
|
|
27512
27512
|
function p(m) {
|
|
27513
27513
|
const h = l(m);
|
|
@@ -27515,7 +27515,7 @@ function nF(e, a = {}) {
|
|
|
27515
27515
|
}
|
|
27516
27516
|
function v(m) {
|
|
27517
27517
|
p(m);
|
|
27518
|
-
const h = o.findIndex((
|
|
27518
|
+
const h = o.findIndex((b) => b.key === m);
|
|
27519
27519
|
h >= 0 && o.splice(h, 1);
|
|
27520
27520
|
}
|
|
27521
27521
|
return {
|
|
@@ -27735,7 +27735,7 @@ const QP = {
|
|
|
27735
27735
|
function m(j) {
|
|
27736
27736
|
p.value = j, r("update:rows", j);
|
|
27737
27737
|
}
|
|
27738
|
-
const h = o.stateKey ? UP(o.stateKey) : {},
|
|
27738
|
+
const h = o.stateKey ? UP(o.stateKey) : {}, b = P(h.sort !== void 0 ? h.sort : o.defaultSort), w = g(() => o.sort !== void 0 ? o.sort : b.value);
|
|
27739
27739
|
function x(j, te) {
|
|
27740
27740
|
return j == null && te == null ? 0 : j == null ? -1 : te == null ? 1 : typeof j == "number" && typeof te == "number" ? j - te : j instanceof Date && te instanceof Date ? j.getTime() - te.getTime() : String(j).localeCompare(String(te), void 0, { numeric: !0, sensitivity: "base" });
|
|
27741
27741
|
}
|
|
@@ -27743,7 +27743,7 @@ const QP = {
|
|
|
27743
27743
|
const j = C.value;
|
|
27744
27744
|
return j ? v.value.filter((te) => o.filterRow ? o.filterRow(te, j) : KP(te, gr.value, j)) : v.value;
|
|
27745
27745
|
}), k = g(() => {
|
|
27746
|
-
const j =
|
|
27746
|
+
const j = w.value;
|
|
27747
27747
|
if (!o.localSort || !j) return E.value;
|
|
27748
27748
|
const te = o.columns.find((Ne) => Ne.key === j.key);
|
|
27749
27749
|
if (!te) return E.value;
|
|
@@ -27752,16 +27752,16 @@ const QP = {
|
|
|
27752
27752
|
});
|
|
27753
27753
|
function T(j) {
|
|
27754
27754
|
if (j.sortable)
|
|
27755
|
-
return
|
|
27755
|
+
return w.value?.key !== j.key ? "none" : w.value.direction === "asc" ? "ascending" : "descending";
|
|
27756
27756
|
}
|
|
27757
27757
|
function I(j) {
|
|
27758
|
-
const te =
|
|
27758
|
+
const te = w.value;
|
|
27759
27759
|
return !te || te.key !== j.key ? { key: j.key, direction: "asc" } : te.direction === "asc" ? { key: j.key, direction: "desc" } : null;
|
|
27760
27760
|
}
|
|
27761
27761
|
function M(j) {
|
|
27762
27762
|
if (!j.sortable) return;
|
|
27763
27763
|
const te = I(j);
|
|
27764
|
-
|
|
27764
|
+
b.value = te, r("update:sort", te);
|
|
27765
27765
|
}
|
|
27766
27766
|
const H = P(1), X = P(h.pageSize ?? null), N = g(() => o.pageSize ?? X.value ?? o.pageSizes?.[0] ?? BB), R = g(() => o.localPagination ? k.value.length : o.totalRows ?? o.rows.length), F = g(() => C.value !== ""), K = g(() => Math.max(1, Math.ceil(R.value / N.value))), U = g(() => Math.min(Math.max(1, o.page ?? H.value), K.value)), A = g(() => {
|
|
27767
27767
|
if (!o.localPagination) return k.value;
|
|
@@ -27774,7 +27774,7 @@ const QP = {
|
|
|
27774
27774
|
function G(j) {
|
|
27775
27775
|
z(Math.min(K.value, Math.max(1, j)));
|
|
27776
27776
|
}
|
|
27777
|
-
ve([() => o.filter,
|
|
27777
|
+
ve([() => o.filter, w, N], () => {
|
|
27778
27778
|
U.value !== 1 && z(1);
|
|
27779
27779
|
});
|
|
27780
27780
|
const L = g(() => (o.pageSizes ?? []).map((j) => ({ label: String(j), value: String(j) })));
|
|
@@ -28018,12 +28018,12 @@ const QP = {
|
|
|
28018
28018
|
}
|
|
28019
28019
|
if (o.stateKey) {
|
|
28020
28020
|
const j = o.stateKey;
|
|
28021
|
-
ve([mr, hr, ga,
|
|
28021
|
+
ve([mr, hr, ga, b, X], () => {
|
|
28022
28022
|
Ra || jP(j, {
|
|
28023
28023
|
columnOrder: pn.value.map((te) => te.key),
|
|
28024
28024
|
hiddenColumns: [...vn.value],
|
|
28025
28025
|
columnWidths: { ...ga.value },
|
|
28026
|
-
sort:
|
|
28026
|
+
sort: b.value,
|
|
28027
28027
|
...X.value ? { pageSize: X.value } : {}
|
|
28028
28028
|
});
|
|
28029
28029
|
});
|
|
@@ -28182,8 +28182,8 @@ const QP = {
|
|
|
28182
28182
|
ue(V(Q.label), 1)
|
|
28183
28183
|
])
|
|
28184
28184
|
]),
|
|
28185
|
-
Q.sortable &&
|
|
28186
|
-
|
|
28185
|
+
Q.sortable && w.value?.key === Q.key ? (c(), y(oe, { key: 0 }, [
|
|
28186
|
+
w.value.direction === "asc" ? (c(), $(i(Vi), {
|
|
28187
28187
|
key: 0,
|
|
28188
28188
|
class: "size-3 shrink-0 text-[var(--ui-text)]",
|
|
28189
28189
|
"aria-hidden": "true"
|
|
@@ -28624,20 +28624,20 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
28624
28624
|
function h(ee) {
|
|
28625
28625
|
Array.isArray(ee) ? (s("update:modelValue", ee.map((se) => se.id)), ee.at(-1) && s("select", ee.at(-1))) : ee ? (s("update:modelValue", ee.id), s("select", ee)) : s("update:modelValue", void 0);
|
|
28626
28626
|
}
|
|
28627
|
-
const
|
|
28627
|
+
const b = P([...l.defaultCheckedKeys]), w = g(() => l.checkedKeys ?? b.value);
|
|
28628
28628
|
function x(ee) {
|
|
28629
28629
|
const se = Ei(ee);
|
|
28630
|
-
if (!se.length) return
|
|
28631
|
-
const ne = se.filter((ce) =>
|
|
28630
|
+
if (!se.length) return w.value.includes(ee.id);
|
|
28631
|
+
const ne = se.filter((ce) => w.value.includes(ce)).length;
|
|
28632
28632
|
return ne === 0 ? !1 : ne === se.length ? !0 : "indeterminate";
|
|
28633
28633
|
}
|
|
28634
28634
|
function C(ee, se) {
|
|
28635
28635
|
if (ee.disabled) return;
|
|
28636
|
-
const ne = Ei(ee), ce = new Set(
|
|
28636
|
+
const ne = Ei(ee), ce = new Set(w.value);
|
|
28637
28637
|
for (const Be of ne.length ? ne : [ee.id])
|
|
28638
28638
|
se ? ce.add(Be) : ce.delete(Be);
|
|
28639
28639
|
const Se = [...ce];
|
|
28640
|
-
|
|
28640
|
+
b.value = Se, s("update:checkedKeys", Se), s("check", { node: ee, checked: se, keys: Se });
|
|
28641
28641
|
}
|
|
28642
28642
|
function E(ee = !1) {
|
|
28643
28643
|
return p.value.filter((se) => {
|
|
@@ -29076,14 +29076,14 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29076
29076
|
!t.disabled && v.value && o.value?.click();
|
|
29077
29077
|
}
|
|
29078
29078
|
const v = g(() => !t.maxFiles || t.modelValue.length < t.maxFiles), m = g(() => (t.accept ?? "").split(",").map((G) => G.trim().toLowerCase()).filter(Boolean)), h = g(() => ({ "image/*": s.value.images, "video/*": s.value.videos, "audio/*": s.value.audio }));
|
|
29079
|
-
function
|
|
29079
|
+
function b(G) {
|
|
29080
29080
|
if (G.startsWith(".")) return G.slice(1).toUpperCase();
|
|
29081
29081
|
if (h.value[G]) return h.value[G];
|
|
29082
29082
|
const L = G.split("/")[1]?.replace(/^x-/, "").replace(/\+.*$/, "");
|
|
29083
29083
|
return L && /^[a-z0-9-]+$/.test(L) ? L.toUpperCase() : G;
|
|
29084
29084
|
}
|
|
29085
|
-
const
|
|
29086
|
-
const G = [...new Set(m.value.map(
|
|
29085
|
+
const w = g(() => {
|
|
29086
|
+
const G = [...new Set(m.value.map(b))];
|
|
29087
29087
|
return G.length ? Et(s.value.acceptedTypes, { types: G.join(", ") }) : "";
|
|
29088
29088
|
});
|
|
29089
29089
|
function x(G) {
|
|
@@ -29268,8 +29268,8 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29268
29268
|
"aria-live": "polite",
|
|
29269
29269
|
"data-file-paste-note": ""
|
|
29270
29270
|
}, V(H.value), 3)) : q("", !0),
|
|
29271
|
-
|
|
29272
|
-
|
|
29271
|
+
w.value || t.maxSize || t.maxFiles ? (c(), y("div", UB, [
|
|
29272
|
+
w.value ? (c(), y("div", jB, V(w.value), 1)) : q("", !0),
|
|
29273
29273
|
t.maxSize ? (c(), y("div", GB, V(i(Et)(s.value.maxSize, { size: i(Xa)(t.maxSize) })), 1)) : q("", !0),
|
|
29274
29274
|
t.maxFiles ? (c(), y("div", YB, V(i(Et)(s.value.maxFiles, { count: t.maxFiles })), 1)) : q("", !0)
|
|
29275
29275
|
])) : q("", !0),
|
|
@@ -29331,14 +29331,14 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29331
29331
|
const n = Ze(e, { copyLabel: "Copy", cutLabel: "Cut" }), o = a, { controlAttrs: r, wrapperAttrs: l, changed: s } = gt({ value: () => n.modelValue, disabled: () => n.disabled, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby }), u = Ke(), d = P(!1), f = P(), p = Me("field");
|
|
29332
29332
|
let v;
|
|
29333
29333
|
We(() => clearTimeout(v));
|
|
29334
|
-
const m = g(() => f.value === "copied" ? u("Copied") : n.type === "cut" ? n.cutLabel : n.copyLabel), h = g(() => f.value === "failed" ? u("Couldn't copy. Select the text and copy it manually.") : f.value === "copied" ? u("Copied") : ""),
|
|
29334
|
+
const m = g(() => f.value === "copied" ? u("Copied") : n.type === "cut" ? n.cutLabel : n.copyLabel), h = g(() => f.value === "failed" ? u("Couldn't copy. Select the text and copy it manually.") : f.value === "copied" ? u("Copied") : ""), b = g(() => n.disabled || n.modelValue === "" || d.value), w = g(() => {
|
|
29335
29335
|
if (n.inputType !== "textarea") return;
|
|
29336
29336
|
const E = typeof n.autosize == "object" ? n.autosize : {}, k = E.minRows ?? 2, T = E.maxRows ?? (n.autosize ? Number.POSITIVE_INFINITY : 2), I = n.modelValue.split(`
|
|
29337
29337
|
`).length;
|
|
29338
29338
|
return Math.max(k, Math.min(T, I));
|
|
29339
29339
|
});
|
|
29340
29340
|
async function x() {
|
|
29341
|
-
if (
|
|
29341
|
+
if (b.value) return;
|
|
29342
29342
|
if (n.type === "cut" && n.readonly) {
|
|
29343
29343
|
o("actionFailed");
|
|
29344
29344
|
return;
|
|
@@ -29367,7 +29367,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29367
29367
|
}, [
|
|
29368
29368
|
i(n).inputType === "textarea" ? (c(), $(fv, ae({ key: 0 }, i(r)(), {
|
|
29369
29369
|
"model-value": i(n).modelValue,
|
|
29370
|
-
rows:
|
|
29370
|
+
rows: w.value,
|
|
29371
29371
|
name: i(n).name,
|
|
29372
29372
|
placeholder: i(n).placeholder,
|
|
29373
29373
|
disabled: i(n).disabled,
|
|
@@ -29392,7 +29392,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29392
29392
|
D("button", {
|
|
29393
29393
|
type: "button",
|
|
29394
29394
|
class: "flex size-[var(--ui-control-md)] shrink-0 items-center justify-center rounded-[var(--ui-radius-control)] border border-[var(--ui-border)] bg-[var(--ui-surface)] text-[var(--ui-text-secondary)] outline-none transition-[background-color,border-color,box-shadow] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:border-[var(--ui-primary)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-40 disabled:hover:bg-[var(--ui-surface)] disabled:hover:text-[var(--ui-text-secondary)]",
|
|
29395
|
-
disabled:
|
|
29395
|
+
disabled: b.value,
|
|
29396
29396
|
"aria-label": m.value,
|
|
29397
29397
|
title: m.value,
|
|
29398
29398
|
"data-copy-state": f.value,
|
|
@@ -29530,21 +29530,21 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29530
29530
|
if (!(f || t.disabled)) {
|
|
29531
29531
|
f = !0;
|
|
29532
29532
|
try {
|
|
29533
|
-
const
|
|
29534
|
-
if (
|
|
29535
|
-
const
|
|
29533
|
+
const b = typeof t.text == "function" ? await t.text() : t.text;
|
|
29534
|
+
if (b === void 0 || p) return;
|
|
29535
|
+
const w = await Dl(b);
|
|
29536
29536
|
if (p) return;
|
|
29537
|
-
h(
|
|
29537
|
+
h(w ? "copied" : "failed"), n(w ? "copied" : "failed", b);
|
|
29538
29538
|
} finally {
|
|
29539
29539
|
f = !1;
|
|
29540
29540
|
}
|
|
29541
29541
|
}
|
|
29542
29542
|
}
|
|
29543
|
-
function h(
|
|
29544
|
-
clearTimeout(v), l.value =
|
|
29545
|
-
const
|
|
29543
|
+
function h(b) {
|
|
29544
|
+
clearTimeout(v), l.value = b, s.value = "";
|
|
29545
|
+
const w = b === "copied" ? t.words?.copied ?? o("Copied") : t.words?.failed ?? o("Couldn't copy");
|
|
29546
29546
|
De(() => {
|
|
29547
|
-
l.value ===
|
|
29547
|
+
l.value === b && (s.value = w);
|
|
29548
29548
|
}), v = setTimeout(() => {
|
|
29549
29549
|
l.value = "settling", s.value = "", v = setTimeout(() => {
|
|
29550
29550
|
l.value = void 0;
|
|
@@ -29553,14 +29553,14 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29553
29553
|
}
|
|
29554
29554
|
return We(() => {
|
|
29555
29555
|
p = !0, clearTimeout(v);
|
|
29556
|
-
}), (
|
|
29557
|
-
e.labelled ? (c(), $(at, ae({ key: 0 },
|
|
29556
|
+
}), (b, w) => (c(), y("span", s2, [
|
|
29557
|
+
e.labelled ? (c(), $(at, ae({ key: 0 }, b.$attrs, {
|
|
29558
29558
|
class: "ui-copy-button",
|
|
29559
29559
|
variant: e.variant,
|
|
29560
29560
|
size: e.size,
|
|
29561
29561
|
disabled: e.disabled,
|
|
29562
29562
|
"data-copy-state": l.value,
|
|
29563
|
-
onClick:
|
|
29563
|
+
onClick: w[0] || (w[0] = (x) => {
|
|
29564
29564
|
m();
|
|
29565
29565
|
})
|
|
29566
29566
|
}), {
|
|
@@ -29576,14 +29576,14 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29576
29576
|
ue(V(r.value), 1)
|
|
29577
29577
|
]),
|
|
29578
29578
|
_: 1
|
|
29579
|
-
}, 16, ["variant", "size", "disabled", "data-copy-state"])) : (c(), $(mt, ae({ key: 1 },
|
|
29579
|
+
}, 16, ["variant", "size", "disabled", "data-copy-state"])) : (c(), $(mt, ae({ key: 1 }, b.$attrs, {
|
|
29580
29580
|
class: "ui-copy-button",
|
|
29581
29581
|
label: r.value,
|
|
29582
29582
|
variant: e.variant,
|
|
29583
29583
|
size: e.size,
|
|
29584
29584
|
disabled: e.disabled,
|
|
29585
29585
|
"data-copy-state": l.value,
|
|
29586
|
-
onClick:
|
|
29586
|
+
onClick: w[1] || (w[1] = (x) => {
|
|
29587
29587
|
m();
|
|
29588
29588
|
})
|
|
29589
29589
|
}), {
|
|
@@ -29629,10 +29629,10 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29629
29629
|
const Z = v(L)[n.idProperty];
|
|
29630
29630
|
return typeof Z == "string" || typeof Z == "number" ? Z : Y;
|
|
29631
29631
|
}
|
|
29632
|
-
function
|
|
29632
|
+
function b(L, Y) {
|
|
29633
29633
|
return h(L, Y);
|
|
29634
29634
|
}
|
|
29635
|
-
function
|
|
29635
|
+
function w(L) {
|
|
29636
29636
|
return l.value.includes(L);
|
|
29637
29637
|
}
|
|
29638
29638
|
const x = g(() => l.value.map((L) => h(n.items[L], L)));
|
|
@@ -29789,11 +29789,11 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29789
29789
|
onKeydown: A
|
|
29790
29790
|
}, [
|
|
29791
29791
|
(c(!0), y(oe, null, ke(n.items, (Z, re) => (c(), y("div", {
|
|
29792
|
-
key:
|
|
29792
|
+
key: b(Z, re),
|
|
29793
29793
|
ref_for: !0,
|
|
29794
29794
|
ref: (ie) => p(re, ie),
|
|
29795
29795
|
"data-data-view-item": re,
|
|
29796
|
-
"data-selected":
|
|
29796
|
+
"data-selected": w(re) ? "true" : "false",
|
|
29797
29797
|
"data-disabled": m(Z) ? "true" : void 0,
|
|
29798
29798
|
"data-selectable": m(Z) ? "false" : "true",
|
|
29799
29799
|
tabindex: "-1",
|
|
@@ -29801,7 +29801,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29801
29801
|
"outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)]",
|
|
29802
29802
|
i(Re)(
|
|
29803
29803
|
m(Z) ? "cursor-default opacity-60" : "cursor-pointer hover:bg-[var(--ui-surface-hover)]",
|
|
29804
|
-
|
|
29804
|
+
w(re) && "bg-[var(--ui-surface-selected)]",
|
|
29805
29805
|
"focus-visible:shadow-[inset_0_0_0_1px_var(--ui-primary),inset_0_0_0_3px_var(--ui-focus-ring)]"
|
|
29806
29806
|
)
|
|
29807
29807
|
]),
|
|
@@ -29813,7 +29813,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29813
29813
|
item: Z,
|
|
29814
29814
|
index: re,
|
|
29815
29815
|
disabled: m(Z),
|
|
29816
|
-
selected:
|
|
29816
|
+
selected: w(re)
|
|
29817
29817
|
})
|
|
29818
29818
|
], 42, f2))), 128))
|
|
29819
29819
|
], 32),
|
|
@@ -29868,10 +29868,10 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29868
29868
|
virtualIndex: m.value.start + F
|
|
29869
29869
|
}))
|
|
29870
29870
|
);
|
|
29871
|
-
function
|
|
29871
|
+
function b(R, F) {
|
|
29872
29872
|
F instanceof HTMLElement ? s.set(R, F) : s.delete(R);
|
|
29873
29873
|
}
|
|
29874
|
-
function
|
|
29874
|
+
function w() {
|
|
29875
29875
|
r.value = n.value?.viewRect?.offsetHeight ?? 0;
|
|
29876
29876
|
}
|
|
29877
29877
|
function x() {
|
|
@@ -29902,7 +29902,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29902
29902
|
function T() {
|
|
29903
29903
|
const R = n.value?.getScrollEl();
|
|
29904
29904
|
typeof ResizeObserver > "u" || !R || (k ??= new ResizeObserver(() => {
|
|
29905
|
-
|
|
29905
|
+
w(), x();
|
|
29906
29906
|
}), k.disconnect(), k.observe(R));
|
|
29907
29907
|
}
|
|
29908
29908
|
function I() {
|
|
@@ -29922,7 +29922,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29922
29922
|
return K < 0 ? !1 : H(K, F);
|
|
29923
29923
|
}
|
|
29924
29924
|
async function N() {
|
|
29925
|
-
n.value?.refresh(), await De(),
|
|
29925
|
+
n.value?.refresh(), await De(), w(), x(), T(), E();
|
|
29926
29926
|
}
|
|
29927
29927
|
return qe(() => {
|
|
29928
29928
|
N();
|
|
@@ -29984,7 +29984,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
29984
29984
|
class: "absolute left-0 top-0 w-full",
|
|
29985
29985
|
style: Ce({ transform: `translateY(${f.value[K.virtualIndex]}px)`, minHeight: `${t.minSize}px` }),
|
|
29986
29986
|
ref_for: !0,
|
|
29987
|
-
ref: (U) =>
|
|
29987
|
+
ref: (U) => b(K.virtualIndex, U)
|
|
29988
29988
|
}, [
|
|
29989
29989
|
S(R.$slots, "default", {
|
|
29990
29990
|
item: K.item.data,
|
|
@@ -30028,16 +30028,16 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30028
30028
|
},
|
|
30029
30029
|
setup(e, { expose: a }) {
|
|
30030
30030
|
const t = e, n = Me("rootRef"), o = Me("startAnchorRef"), r = Me("endAnchorRef"), l = Me("probeRef"), s = P(t.items.length), u = P(0), d = P([]), f = P(0), p = P(0), v = P(0), m = P(0), h = /* @__PURE__ */ new Map();
|
|
30031
|
-
function
|
|
30031
|
+
function b(F, K) {
|
|
30032
30032
|
K instanceof HTMLElement ? h.set(F, K) : h.delete(F);
|
|
30033
30033
|
}
|
|
30034
|
-
const
|
|
30034
|
+
const w = g(() => {
|
|
30035
30035
|
const F = t.items.length - s.value;
|
|
30036
30036
|
return F <= 0 ? [] : t.collapseDirection === "start" ? t.items.slice(0, F) : t.items.slice(t.items.length - F);
|
|
30037
30037
|
}), x = g(() => {
|
|
30038
30038
|
const F = t.items.length - s.value;
|
|
30039
30039
|
return F <= 0 ? [...t.items] : t.collapseDirection === "start" ? t.items.slice(F) : t.items.slice(0, t.items.length - F);
|
|
30040
|
-
}), C = g(() =>
|
|
30040
|
+
}), C = g(() => w.value);
|
|
30041
30041
|
function E(F) {
|
|
30042
30042
|
return F > 0 ? Math.max(0, F - 1) * m.value : 0;
|
|
30043
30043
|
}
|
|
@@ -30069,7 +30069,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30069
30069
|
s.value = F;
|
|
30070
30070
|
return;
|
|
30071
30071
|
}
|
|
30072
|
-
const A =
|
|
30072
|
+
const A = w.value.length > 0 ? v.value + m.value : 0;
|
|
30073
30073
|
let W = k(Math.max(0, K - A));
|
|
30074
30074
|
W = Math.min(F, Math.max(W, t.minVisibleItemsNum)), W !== s.value && (s.value = W);
|
|
30075
30075
|
}
|
|
@@ -30081,7 +30081,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30081
30081
|
if (!F) return;
|
|
30082
30082
|
u.value = F.clientWidth;
|
|
30083
30083
|
const K = Number.parseFloat(window.getComputedStyle(F).columnGap);
|
|
30084
|
-
m.value = Number.isFinite(K) ? K : 0, f.value = I(o.value), p.value = I(r.value), v.value =
|
|
30084
|
+
m.value = Number.isFinite(K) ? K : 0, f.value = I(o.value), p.value = I(r.value), v.value = w.value.length > 0 ? I(l.value) : 0, d.value = t.items.map((U, A) => I(h.get(A)));
|
|
30085
30085
|
}
|
|
30086
30086
|
function H() {
|
|
30087
30087
|
const F = [];
|
|
@@ -30121,7 +30121,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30121
30121
|
), a({
|
|
30122
30122
|
refresh: R,
|
|
30123
30123
|
visibleCount: s,
|
|
30124
|
-
overflowItems:
|
|
30124
|
+
overflowItems: w,
|
|
30125
30125
|
visibleItems: x
|
|
30126
30126
|
}), (F, K) => (c(), y("div", {
|
|
30127
30127
|
ref_key: "rootRef",
|
|
@@ -30129,16 +30129,16 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30129
30129
|
"data-syno-pkg-land-ui": "",
|
|
30130
30130
|
"data-overflow-list": "",
|
|
30131
30131
|
"data-visible-count": s.value,
|
|
30132
|
-
"data-overflow-count":
|
|
30132
|
+
"data-overflow-count": w.value.length,
|
|
30133
30133
|
class: J(i(Re)("relative flex w-full flex-nowrap items-center whitespace-nowrap overflow-clip [overflow-clip-margin:4px]"))
|
|
30134
30134
|
}, [
|
|
30135
30135
|
F.$slots["overflow-start-anchor"] ? (c(), y("span", h2, [
|
|
30136
30136
|
S(F.$slots, "overflow-start-anchor")
|
|
30137
30137
|
])) : q("", !0),
|
|
30138
|
-
t.collapseDirection === "start" &&
|
|
30138
|
+
t.collapseDirection === "start" && w.value.length > 0 ? (c(), y("span", g2, [
|
|
30139
30139
|
S(F.$slots, "overflow-item", {
|
|
30140
30140
|
visibleItems: x.value,
|
|
30141
|
-
overflowItems:
|
|
30141
|
+
overflowItems: w.value
|
|
30142
30142
|
})
|
|
30143
30143
|
])) : q("", !0),
|
|
30144
30144
|
(c(!0), y(oe, null, ke(x.value, (U, A) => (c(), y("span", {
|
|
@@ -30150,13 +30150,13 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30150
30150
|
item: U,
|
|
30151
30151
|
visibleIndex: A,
|
|
30152
30152
|
visibleItems: x.value,
|
|
30153
|
-
overflowItems:
|
|
30153
|
+
overflowItems: w.value
|
|
30154
30154
|
})
|
|
30155
30155
|
]))), 128)),
|
|
30156
|
-
t.collapseDirection === "end" &&
|
|
30156
|
+
t.collapseDirection === "end" && w.value.length > 0 ? (c(), y("span", y2, [
|
|
30157
30157
|
S(F.$slots, "overflow-item", {
|
|
30158
30158
|
visibleItems: x.value,
|
|
30159
|
-
overflowItems:
|
|
30159
|
+
overflowItems: w.value
|
|
30160
30160
|
})
|
|
30161
30161
|
])) : q("", !0),
|
|
30162
30162
|
F.$slots["overflow-end-anchor"] ? (c(), y("span", b2, [
|
|
@@ -30175,7 +30175,7 @@ const RB = ["disabled", "aria-label", "aria-expanded", "onClick"], MB = {
|
|
|
30175
30175
|
(c(!0), y(oe, null, ke(t.items, (U, A) => (c(), y("span", {
|
|
30176
30176
|
key: `measure-${A}`,
|
|
30177
30177
|
ref_for: !0,
|
|
30178
|
-
ref: (W) =>
|
|
30178
|
+
ref: (W) => b(A, W),
|
|
30179
30179
|
"data-overflow-measure": "",
|
|
30180
30180
|
class: "shrink-0"
|
|
30181
30181
|
}, [
|
|
@@ -30296,12 +30296,12 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30296
30296
|
function s(fe, he) {
|
|
30297
30297
|
l.has(fe) || (l.add(fe), console.warn(`[ScheduleTable] ${he}`));
|
|
30298
30298
|
}
|
|
30299
|
-
const u = g(() => Ll(o.splitMinute)), d = g(() => Fl(o.splitMinute)), f = g(() => zl(o.splitMinute)), p = g(() => bn.length * d.value), v = g(() => o.modelValue.length === f.value), m = g(() => (o.options ?? []).slice(0, Hr)), h = g(() => _2(m.value)),
|
|
30299
|
+
const u = g(() => Ll(o.splitMinute)), d = g(() => Fl(o.splitMinute)), f = g(() => zl(o.splitMinute)), p = g(() => bn.length * d.value), v = g(() => o.modelValue.length === f.value), m = g(() => (o.options ?? []).slice(0, Hr)), h = g(() => _2(m.value)), b = g(() => m.value.length > 0 && !o.disabled), w = P(x(o.defaultSelected));
|
|
30300
30300
|
function x(fe) {
|
|
30301
30301
|
return !Number.isInteger(fe) || fe < 0 || fe >= m.value.length ? 0 : fe;
|
|
30302
30302
|
}
|
|
30303
30303
|
const C = g(
|
|
30304
|
-
() => Math.min(Math.max(
|
|
30304
|
+
() => Math.min(Math.max(w.value, 0), Math.max(m.value.length - 1, 0))
|
|
30305
30305
|
), E = g(() => m.value[C.value]), k = g(() => Array.from({ length: 24 }, (fe, he) => he)), T = g(() => v.value ? o.modelValue.split("") : []), I = g(
|
|
30306
30306
|
() => bn.map((fe, he) => ({
|
|
30307
30307
|
day: he,
|
|
@@ -30341,7 +30341,7 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30341
30341
|
return [z2, N(fe), _e(he) ? "ring-1 ring-inset ring-[var(--ui-primary)]" : ""].filter(Boolean).join(" ");
|
|
30342
30342
|
}
|
|
30343
30343
|
function K(fe) {
|
|
30344
|
-
return
|
|
30344
|
+
return b.value && Number(fe) === C.value && !H(fe)?.clear;
|
|
30345
30345
|
}
|
|
30346
30346
|
function U(fe, he) {
|
|
30347
30347
|
const $e = String(he.splitIndex * o.splitMinute).padStart(2, "0"), pe = H(he.digit);
|
|
@@ -30366,7 +30366,7 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30366
30366
|
pe && (Ge.changed(he.join("")), r("update:modelValue", he.join(""))), r("selected", { index: C.value, option: E.value, cells: fe });
|
|
30367
30367
|
}
|
|
30368
30368
|
function z(fe) {
|
|
30369
|
-
!v.value || !
|
|
30369
|
+
!v.value || !b.value || fe.length === 0 || W(fe);
|
|
30370
30370
|
}
|
|
30371
30371
|
function G(fe, he) {
|
|
30372
30372
|
const $e = Math.min(fe, he), pe = Math.max(fe, he);
|
|
@@ -30387,14 +30387,14 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30387
30387
|
z(G(0, p.value - 1));
|
|
30388
30388
|
}
|
|
30389
30389
|
function re(fe) {
|
|
30390
|
-
o.disabled || (
|
|
30390
|
+
o.disabled || (w.value = fe.index);
|
|
30391
30391
|
}
|
|
30392
30392
|
const ie = pt({ active: !1, start: -1, current: -1 });
|
|
30393
30393
|
function _e(fe) {
|
|
30394
30394
|
return ie.active ? fe >= Math.min(ie.start, ie.current) && fe <= Math.max(ie.start, ie.current) : !1;
|
|
30395
30395
|
}
|
|
30396
30396
|
function de(fe) {
|
|
30397
|
-
!v.value || !
|
|
30397
|
+
!v.value || !b.value || (ie.active = !0, ie.start = fe, ie.current = fe, ne.value = fe);
|
|
30398
30398
|
}
|
|
30399
30399
|
function Pe(fe) {
|
|
30400
30400
|
ie.active && (ie.current = fe);
|
|
@@ -30592,7 +30592,7 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30592
30592
|
])
|
|
30593
30593
|
], 16, T2)
|
|
30594
30594
|
])) : (c(), y("p", F2, [
|
|
30595
|
-
|
|
30595
|
+
b.value ? (c(), y(oe, { key: 1 }, [
|
|
30596
30596
|
ue(" ScheduleTable expects modelValue to be " + V(f.value) + " characters long (splitMinute = " + V(o.splitMinute) + "), got " + V(o.modelValue.length) + ". ", 1)
|
|
30597
30597
|
], 64)) : (c(), y(oe, { key: 0 }, [
|
|
30598
30598
|
ue("ScheduleTable needs at least one option to render its cells.")
|
|
@@ -30661,7 +30661,7 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30661
30661
|
typeof window > "u" || typeof window.matchMedia != "function" || (p.value = window.matchMedia("(hover: none)").matches);
|
|
30662
30662
|
}
|
|
30663
30663
|
v();
|
|
30664
|
-
const m = g(() => o.triggerAction === "adaptive" ? p.value ? "click" : "hover" : o.triggerAction), h = g(() => !o.disabled),
|
|
30664
|
+
const m = g(() => o.triggerAction === "adaptive" ? p.value ? "click" : "hover" : o.triggerAction), h = g(() => !o.disabled), b = g(() => !!l.default), w = g(() => b.value && !o.forceSimple), x = g(() => o.hasPadding ? w.value ? "px-5 py-5" : "px-2.5 py-1.5" : "p-0"), C = g(() => o.tipContainer?.() ?? void 0), E = qt(() => s.value ?? void 0, () => d.value);
|
|
30665
30665
|
let k, T, I, M = !1;
|
|
30666
30666
|
function H() {
|
|
30667
30667
|
clearTimeout(k), clearTimeout(T), clearTimeout(I);
|
|
@@ -30866,13 +30866,13 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30866
30866
|
},
|
|
30867
30867
|
emits: ["close", "confirm", "cancel"],
|
|
30868
30868
|
setup(e, { emit: a }) {
|
|
30869
|
-
const t = Ke(), o = Ze(e, { closeLabel: "Close" }), r = a, l = Tt(), s = et(o.id, "notify"), u = g(() => `${s}-title`), d = g(() => `${s}-content`), f = g(() => `${s}-footer`), p = g(() => ({ info: Ha, suggest: Ip, error: Ro })[o.tone]), v = g(() => typeof o.icon == "string" ? o.icon : o.tone), m = g(() => o.icon !== !1), h = g(() => typeof o.title == "string" ? o.title : ""),
|
|
30870
|
-
function
|
|
30869
|
+
const t = Ke(), o = Ze(e, { closeLabel: "Close" }), r = a, l = Tt(), s = et(o.id, "notify"), u = g(() => `${s}-title`), d = g(() => `${s}-content`), f = g(() => `${s}-footer`), p = g(() => ({ info: Ha, suggest: Ip, error: Ro })[o.tone]), v = g(() => typeof o.icon == "string" ? o.icon : o.tone), m = g(() => o.icon !== !1), h = g(() => typeof o.title == "string" ? o.title : ""), b = g(() => typeof o.content == "string" ? o.content : "");
|
|
30870
|
+
function w(U, A) {
|
|
30871
30871
|
return U === !1 ? null : U === !0 || U === void 0 ? { text: A, variant: A === t("Cancel") ? "secondary" : "primary" } : typeof U == "string" ? { text: U } : U;
|
|
30872
30872
|
}
|
|
30873
|
-
const x = g(() =>
|
|
30873
|
+
const x = g(() => w(o.cancel, t("Cancel"))), C = g(() => w(o.confirm, t("OK"))), E = g(() => !!x.value || !!C.value || !!l.actions), k = g(() => !l.title && h.value ? u.value : void 0), T = g(
|
|
30874
30874
|
() => [
|
|
30875
|
-
!l.content &&
|
|
30875
|
+
!l.content && b.value ? d.value : void 0,
|
|
30876
30876
|
E.value ? f.value : void 0
|
|
30877
30877
|
].filter(Boolean).join(" ") || void 0
|
|
30878
30878
|
), I = P(!1), M = P(!1), H = g(() => o.paused || I.value || M.value);
|
|
@@ -30928,13 +30928,13 @@ const k2 = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, C
|
|
|
30928
30928
|
ue(V(h.value), 1)
|
|
30929
30929
|
])
|
|
30930
30930
|
], 8, X2)) : q("", !0),
|
|
30931
|
-
l.content ||
|
|
30931
|
+
l.content || b.value ? (c(), y("div", {
|
|
30932
30932
|
key: 1,
|
|
30933
30933
|
id: d.value,
|
|
30934
30934
|
class: "mt-0.5 text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
30935
30935
|
}, [
|
|
30936
30936
|
S(U.$slots, "content", {}, () => [
|
|
30937
|
-
ue(V(
|
|
30937
|
+
ue(V(b.value), 1)
|
|
30938
30938
|
])
|
|
30939
30939
|
], 8, Z2)) : q("", !0),
|
|
30940
30940
|
E.value ? (c(), y("div", {
|
|
@@ -31017,13 +31017,13 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31017
31017
|
const n = Ze(e, { landmarkLabel: "Notifications", accessHint: "Press F6 to access notifications" }), o = P([]), r = P(!1), l = P(!1), s = P(""), u = P(null), d = P();
|
|
31018
31018
|
yt()?.branch(d);
|
|
31019
31019
|
let f = 1;
|
|
31020
|
-
const p = da({}), v = g(() => p.teleportTo?.value ?? "body"), m = g(() => [...o.value].reverse()), h = g(() => typeof n.stackSize == "number" ? n.stackSize : o.value.length),
|
|
31020
|
+
const p = da({}), v = g(() => p.teleportTo?.value ?? "body"), m = g(() => [...o.value].reverse()), h = g(() => typeof n.stackSize == "number" ? n.stackSize : o.value.length), b = g(() => typeof n.stackSize == "number" && m.value.length > n.stackSize), w = g(() => b.value && !r.value), x = g(() => w.value ? m.value.slice(0, h.value) : m.value), C = g(() => n.alignment.startsWith("bottom")), E = g(() => ({
|
|
31021
31021
|
"top-right": "top-[var(--ui-space-4)] right-[var(--ui-space-4)]",
|
|
31022
31022
|
"top-left": "top-[var(--ui-space-4)] left-[var(--ui-space-4)]",
|
|
31023
31023
|
"bottom-right": "right-[var(--ui-space-4)] bottom-[var(--ui-space-4)]",
|
|
31024
31024
|
"bottom-left": "bottom-[var(--ui-space-4)] left-[var(--ui-space-4)]"
|
|
31025
31025
|
})[n.alignment]);
|
|
31026
|
-
ve(
|
|
31026
|
+
ve(b, (Y) => {
|
|
31027
31027
|
Y || (r.value = !1);
|
|
31028
31028
|
});
|
|
31029
31029
|
function k() {
|
|
@@ -31074,7 +31074,7 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31074
31074
|
}
|
|
31075
31075
|
function U(Y) {
|
|
31076
31076
|
if (Y.key === "Escape") {
|
|
31077
|
-
Y.preventDefault(), r.value &&
|
|
31077
|
+
Y.preventDefault(), r.value && b.value ? (r.value = !1, T()) : I();
|
|
31078
31078
|
return;
|
|
31079
31079
|
}
|
|
31080
31080
|
if (!r.value || Y.key !== "ArrowDown" && Y.key !== "ArrowUp") return;
|
|
@@ -31085,21 +31085,21 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31085
31085
|
Z[Math.max(0, Math.min(Z.length - 1, ie))]?.focus();
|
|
31086
31086
|
}
|
|
31087
31087
|
function A(Y) {
|
|
31088
|
-
Y.target !== Y.currentTarget || !
|
|
31088
|
+
Y.target !== Y.currentTarget || !w.value || Y.key !== "Enter" && Y.key !== " " || (Y.preventDefault(), r.value = !0);
|
|
31089
31089
|
}
|
|
31090
31090
|
function W(Y) {
|
|
31091
31091
|
const Z = Y.relatedTarget;
|
|
31092
31092
|
l.value = !!Z && !!d.value?.contains(Z), l.value || (r.value = !1);
|
|
31093
31093
|
}
|
|
31094
31094
|
function z() {
|
|
31095
|
-
|
|
31095
|
+
b.value && (r.value = !0);
|
|
31096
31096
|
}
|
|
31097
31097
|
function G(Y) {
|
|
31098
31098
|
const Z = Y.relatedTarget;
|
|
31099
31099
|
Z && d.value?.contains(Z) || l.value || (r.value = !1);
|
|
31100
31100
|
}
|
|
31101
31101
|
function L(Y) {
|
|
31102
|
-
if (!
|
|
31102
|
+
if (!w.value || Y === 0) return { zIndex: String(x.value.length - Y) };
|
|
31103
31103
|
const Z = Y * n.stackGap, re = Math.max(0, 1 - Y * 0.04), ie = {
|
|
31104
31104
|
position: "absolute",
|
|
31105
31105
|
left: "0",
|
|
@@ -31118,7 +31118,7 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31118
31118
|
role: "list",
|
|
31119
31119
|
"aria-label": i(n).landmarkLabel,
|
|
31120
31120
|
class: J(["pointer-events-none fixed z-[1500] flex w-[360px] max-w-[calc(100vw-32px)] outline-none", [E.value, C.value ? "flex-col-reverse" : "flex-col"]]),
|
|
31121
|
-
style: Ce({ gap:
|
|
31121
|
+
style: Ce({ gap: w.value ? "0px" : `${e.gap}px` }),
|
|
31122
31122
|
onKeydown: U,
|
|
31123
31123
|
onFocusin: Z[0] || (Z[0] = (re) => l.value = !0),
|
|
31124
31124
|
onFocusout: W,
|
|
@@ -31129,8 +31129,8 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31129
31129
|
key: re.id,
|
|
31130
31130
|
"data-notification-id": re.id,
|
|
31131
31131
|
style: Ce(L(ie)),
|
|
31132
|
-
inert:
|
|
31133
|
-
"aria-hidden":
|
|
31132
|
+
inert: w.value && ie > 0 ? !0 : void 0,
|
|
31133
|
+
"aria-hidden": w.value && ie > 0 ? "true" : void 0,
|
|
31134
31134
|
onKeydown: A
|
|
31135
31135
|
}, [
|
|
31136
31136
|
O(tq, {
|
|
@@ -31171,8 +31171,8 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31171
31171
|
setup(e, { expose: a, emit: t }) {
|
|
31172
31172
|
const n = e, o = t, r = P(n.defaultOpen), l = P(!1), s = g({
|
|
31173
31173
|
get: () => n.disable ? !1 : n.open ?? r.value,
|
|
31174
|
-
set: (
|
|
31175
|
-
n.open === void 0 && (r.value =
|
|
31174
|
+
set: (b) => {
|
|
31175
|
+
n.open === void 0 && (r.value = b), o("update:open", b);
|
|
31176
31176
|
}
|
|
31177
31177
|
}), u = Me("trigger"), d = qt(() => u.value?.$el instanceof HTMLElement ? u.value.$el : void 0, () => s.value), f = g(() => n.tipContainer?.() ?? void 0);
|
|
31178
31178
|
function p() {
|
|
@@ -31185,15 +31185,15 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31185
31185
|
p();
|
|
31186
31186
|
}
|
|
31187
31187
|
a({ showPopup: v, hidePopup: m });
|
|
31188
|
-
function h(
|
|
31189
|
-
!
|
|
31188
|
+
function h(b) {
|
|
31189
|
+
!b && l.value || (b || (l.value = !1), s.value = b);
|
|
31190
31190
|
}
|
|
31191
31191
|
return ve(
|
|
31192
31192
|
() => n.disable,
|
|
31193
|
-
(
|
|
31194
|
-
|
|
31193
|
+
(b) => {
|
|
31194
|
+
b && (l.value = !1, r.value = !1);
|
|
31195
31195
|
}
|
|
31196
|
-
), (
|
|
31196
|
+
), (b, w) => (c(), $(i(nr), {
|
|
31197
31197
|
"delay-duration": 0,
|
|
31198
31198
|
"skip-delay-duration": 0,
|
|
31199
31199
|
"disable-hoverable-content": ""
|
|
@@ -31211,13 +31211,13 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31211
31211
|
"as-child": ""
|
|
31212
31212
|
}, {
|
|
31213
31213
|
default: _(() => [
|
|
31214
|
-
S(
|
|
31214
|
+
S(b.$slots, "default")
|
|
31215
31215
|
]),
|
|
31216
31216
|
_: 3
|
|
31217
31217
|
}, 512),
|
|
31218
31218
|
O(i(lr), { to: f.value }, {
|
|
31219
31219
|
default: _(() => [
|
|
31220
|
-
O(i(ir), ae(
|
|
31220
|
+
O(i(ir), ae(b.$attrs, {
|
|
31221
31221
|
side: e.side,
|
|
31222
31222
|
align: e.align,
|
|
31223
31223
|
"side-offset": e.offset,
|
|
@@ -31231,7 +31231,7 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31231
31231
|
onPointerDownOutside: p
|
|
31232
31232
|
}), {
|
|
31233
31233
|
default: _(() => [
|
|
31234
|
-
S(
|
|
31234
|
+
S(b.$slots, "content", {}, () => [
|
|
31235
31235
|
ue(V(e.content), 1)
|
|
31236
31236
|
]),
|
|
31237
31237
|
O(i(b1), {
|
|
@@ -31272,27 +31272,27 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31272
31272
|
const t = Ke(), n = e, o = { start: "justify-start", end: "justify-end", between: "justify-between" }, r = a, l = Tt(), s = dt(), u = dt(), { value: d, toggle: f } = cr(
|
|
31273
31273
|
() => n.expanded,
|
|
31274
31274
|
!0,
|
|
31275
|
-
(
|
|
31275
|
+
(w) => r("update:expanded", w)
|
|
31276
31276
|
), p = g(() => !!n.title || !!l.title), v = g(() => n.layoutType === "compact"), m = g(() => !n.expandable || d.value), h = g(
|
|
31277
31277
|
() => Re(
|
|
31278
31278
|
"flex items-center gap-2",
|
|
31279
31279
|
v.value ? "min-h-9 px-4 py-1.5" : "min-h-11 px-[var(--ui-card-padding,20px)] py-2"
|
|
31280
31280
|
)
|
|
31281
|
-
),
|
|
31281
|
+
), b = g(
|
|
31282
31282
|
() => Re(
|
|
31283
31283
|
"flex-1 text-[length:var(--ui-font-size)] leading-5 text-[var(--ui-text)]",
|
|
31284
31284
|
// --ui-card-padding sets a regular card's inset; the body keeps 4:5 block to inline (16px by 20px unset).
|
|
31285
31285
|
v.value ? "px-4 py-3" : "px-[var(--ui-card-padding,20px)] py-[calc(var(--ui-card-padding,20px)*0.8)]"
|
|
31286
31286
|
)
|
|
31287
31287
|
);
|
|
31288
|
-
return (
|
|
31288
|
+
return (w, x) => (c(), $(vC, {
|
|
31289
31289
|
padding: "none",
|
|
31290
31290
|
class: "flex flex-col overflow-hidden",
|
|
31291
31291
|
"data-layout": e.layoutType,
|
|
31292
31292
|
"aria-busy": e.loading || void 0
|
|
31293
31293
|
}, {
|
|
31294
31294
|
default: _(() => [
|
|
31295
|
-
e.hasHeader && (p.value ||
|
|
31295
|
+
e.hasHeader && (p.value || w.$slots["header-actions"] || e.expandable) ? (c(), y("header", {
|
|
31296
31296
|
key: 0,
|
|
31297
31297
|
class: J(h.value)
|
|
31298
31298
|
}, [
|
|
@@ -31301,12 +31301,12 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31301
31301
|
id: i(s),
|
|
31302
31302
|
class: "m-0 min-w-0 truncate text-[length:var(--ui-font-size-lg)] [font-weight:var(--ui-heading-weight,700)] text-[var(--ui-text)]"
|
|
31303
31303
|
}, [
|
|
31304
|
-
S(
|
|
31304
|
+
S(w.$slots, "title", {}, () => [
|
|
31305
31305
|
ue(V(e.title), 1)
|
|
31306
31306
|
])
|
|
31307
31307
|
], 8, iq)) : q("", !0),
|
|
31308
|
-
|
|
31309
|
-
S(
|
|
31308
|
+
w.$slots["header-actions"] || e.expandable ? (c(), y("div", lq, [
|
|
31309
|
+
S(w.$slots, "header-actions"),
|
|
31310
31310
|
e.expandable ? (c(), y("button", {
|
|
31311
31311
|
key: 0,
|
|
31312
31312
|
type: "button",
|
|
@@ -31328,21 +31328,21 @@ const wF = aq, nq = ["aria-label"], oq = ["data-notification-id", "inert", "aria
|
|
|
31328
31328
|
], 2)) : q("", !0),
|
|
31329
31329
|
xt(D("div", {
|
|
31330
31330
|
id: i(u),
|
|
31331
|
-
class: J(
|
|
31331
|
+
class: J(b.value),
|
|
31332
31332
|
role: e.expandable ? "region" : void 0,
|
|
31333
31333
|
"aria-labelledby": e.expandable && p.value ? i(s) : void 0
|
|
31334
31334
|
}, [
|
|
31335
|
-
e.loading ? (c(), $(Oc, { key: 0 })) : S(
|
|
31336
|
-
S(
|
|
31335
|
+
e.loading ? (c(), $(Oc, { key: 0 })) : S(w.$slots, "body", {}, () => [
|
|
31336
|
+
S(w.$slots, "default")
|
|
31337
31337
|
], void 0, 1)
|
|
31338
31338
|
], 10, uq), [
|
|
31339
31339
|
[Zt, m.value]
|
|
31340
31340
|
]),
|
|
31341
|
-
|
|
31341
|
+
w.$slots.footer && !e.loading ? (c(), y("footer", {
|
|
31342
31342
|
key: 1,
|
|
31343
31343
|
class: J(i(Re)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] py-2.5", v.value ? "px-5" : "px-[var(--ui-card-padding,20px)]", o[e.footerAlign]))
|
|
31344
31344
|
}, [
|
|
31345
|
-
S(
|
|
31345
|
+
S(w.$slots, "footer")
|
|
31346
31346
|
], 2)) : q("", !0)
|
|
31347
31347
|
]),
|
|
31348
31348
|
_: 3
|
|
@@ -31551,7 +31551,7 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31551
31551
|
if (G !== void 0)
|
|
31552
31552
|
return typeof G == "string" ? { text: G, html: !1 } : { text: G.text, html: G.format === "html", tip: G.tip };
|
|
31553
31553
|
}
|
|
31554
|
-
const
|
|
31554
|
+
const b = g(() => h(t.title)), w = g(() => h(t.summary)), x = g(() => !!o.detail), C = g(() => t.expandable ?? x.value), E = g(() => typeof t.disabled == "object" && t.disabled !== null ? t.disabled : void 0), k = g(() => t.disabled === !0 || E.value !== void 0), T = g(() => {
|
|
31555
31555
|
if (t.disabled === !0) return !0;
|
|
31556
31556
|
const G = E.value;
|
|
31557
31557
|
return G !== void 0 && G.allowExpand !== !0;
|
|
@@ -31648,15 +31648,15 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31648
31648
|
ref_key: "titleEl",
|
|
31649
31649
|
ref: f,
|
|
31650
31650
|
class: "min-w-0 truncate text-[length:var(--ui-font-size-lg)] font-semibold text-[var(--ui-text)]",
|
|
31651
|
-
title: R(
|
|
31652
|
-
"data-ui-tooltip-hint": F(
|
|
31651
|
+
title: R(b.value, i(v).overflowing.value),
|
|
31652
|
+
"data-ui-tooltip-hint": F(b.value)
|
|
31653
31653
|
}, [
|
|
31654
31654
|
S(G.$slots, "title", {}, () => [
|
|
31655
|
-
|
|
31655
|
+
b.value?.html ? (c(), y("span", {
|
|
31656
31656
|
key: 0,
|
|
31657
|
-
innerHTML:
|
|
31657
|
+
innerHTML: b.value.text
|
|
31658
31658
|
}, null, 8, $q)) : (c(), y(oe, { key: 1 }, [
|
|
31659
|
-
ue(V(
|
|
31659
|
+
ue(V(b.value?.text), 1)
|
|
31660
31660
|
], 64))
|
|
31661
31661
|
])
|
|
31662
31662
|
], 8, Sq),
|
|
@@ -31668,15 +31668,15 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31668
31668
|
ref_key: "labelEl",
|
|
31669
31669
|
ref: p,
|
|
31670
31670
|
class: "truncate text-[length:var(--ui-font-size)] text-[var(--ui-text-secondary)]",
|
|
31671
|
-
title: R(
|
|
31672
|
-
"data-ui-tooltip-hint": F(
|
|
31671
|
+
title: R(w.value, i(m).overflowing.value),
|
|
31672
|
+
"data-ui-tooltip-hint": F(w.value)
|
|
31673
31673
|
}, [
|
|
31674
31674
|
S(G.$slots, "label", {}, () => [
|
|
31675
|
-
|
|
31675
|
+
w.value?.html ? (c(), y("span", {
|
|
31676
31676
|
key: 0,
|
|
31677
|
-
innerHTML:
|
|
31677
|
+
innerHTML: w.value.text
|
|
31678
31678
|
}, null, 8, Aq)) : (c(), y(oe, { key: 1 }, [
|
|
31679
|
-
ue(V(
|
|
31679
|
+
ue(V(w.value?.text), 1)
|
|
31680
31680
|
], 64))
|
|
31681
31681
|
])
|
|
31682
31682
|
], 8, Tq),
|
|
@@ -31759,10 +31759,10 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31759
31759
|
function h() {
|
|
31760
31760
|
o("header-dblclick"), n.collapseTriggerEvent === "dblclick" && v();
|
|
31761
31761
|
}
|
|
31762
|
-
function
|
|
31762
|
+
function b(x) {
|
|
31763
31763
|
n.collapsible && (x.key !== "Enter" && x.key !== " " && x.key !== "Spacebar" || (x.preventDefault(), v()));
|
|
31764
31764
|
}
|
|
31765
|
-
function
|
|
31765
|
+
function w(x) {
|
|
31766
31766
|
x.target === l.value && (s.value === "leave" && o("afterbodyleave", l.value), s.value === "enter" && o("afterbodyenter", l.value), s.value = null);
|
|
31767
31767
|
}
|
|
31768
31768
|
return a({ isCollapsed: u }), (x, C) => (c(), y("fieldset", {
|
|
@@ -31782,7 +31782,7 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31782
31782
|
"aria-controls": i(r),
|
|
31783
31783
|
onClick: m,
|
|
31784
31784
|
onDblclick: h,
|
|
31785
|
-
onKeydown:
|
|
31785
|
+
onKeydown: b
|
|
31786
31786
|
}, [
|
|
31787
31787
|
S(x.$slots, "collapse-icon", {}, () => [
|
|
31788
31788
|
e.collapseIcon !== "none" ? (c(), $(i(Vi), {
|
|
@@ -31828,7 +31828,7 @@ const yq = ["draggable", "data-selected"], bq = {
|
|
|
31828
31828
|
i(u) ? "grid-rows-[0fr]" : "grid-rows-[1fr]"
|
|
31829
31829
|
)
|
|
31830
31830
|
),
|
|
31831
|
-
onTransitionend:
|
|
31831
|
+
onTransitionend: w
|
|
31832
31832
|
}, [
|
|
31833
31833
|
D("div", Vq, [
|
|
31834
31834
|
D("div", Nq, [
|
|
@@ -31889,11 +31889,11 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
31889
31889
|
const L = l.value, Y = L && L.columnIndex === z ? L.order === "ASC" ? "DESC" : "ASC" : G.sort?.defaultOrder ?? "ASC";
|
|
31890
31890
|
l.value = { columnIndex: z, order: Y }, o("update:sort", { columnIndex: z, order: Y });
|
|
31891
31891
|
}
|
|
31892
|
-
function
|
|
31892
|
+
function b(z) {
|
|
31893
31893
|
const G = l.value;
|
|
31894
31894
|
return !G || G.columnIndex !== z ? "none" : G.order === "ASC" ? "ascending" : "descending";
|
|
31895
31895
|
}
|
|
31896
|
-
function
|
|
31896
|
+
function w(z, G) {
|
|
31897
31897
|
return s.value.row === z && s.value.col === G;
|
|
31898
31898
|
}
|
|
31899
31899
|
function x(z) {
|
|
@@ -31999,9 +31999,9 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
31999
31999
|
key: L.field,
|
|
32000
32000
|
role: "columnheader",
|
|
32001
32001
|
scope: "col",
|
|
32002
|
-
"aria-sort":
|
|
32002
|
+
"aria-sort": b(Y),
|
|
32003
32003
|
"data-cell-key": `-1:${Y}`,
|
|
32004
|
-
tabindex:
|
|
32004
|
+
tabindex: w(-1, Y) ? 0 : -1,
|
|
32005
32005
|
class: J(["border-b border-[var(--ui-border)] bg-[var(--ui-surface-subtle)] px-1.5 py-1.5 text-left font-normal text-[var(--ui-text)] outline-none focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]", i(Re)(L.align === "right" && "text-right", L.align === "center" && "text-center")]),
|
|
32006
32006
|
onFocus: (Z) => s.value = { row: -1, col: Y },
|
|
32007
32007
|
onKeydown: [
|
|
@@ -32031,14 +32031,14 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32031
32031
|
tabindex: "-1",
|
|
32032
32032
|
class: "inline-flex size-5 shrink-0 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_2px_var(--ui-focus-ring)]",
|
|
32033
32033
|
"aria-label": n.sortLabel?.(L.title) ?? i(t)("Sort by {name}", { name: L.title }),
|
|
32034
|
-
"data-sort-state":
|
|
32034
|
+
"data-sort-state": b(Y),
|
|
32035
32035
|
onClick: (Z) => h(Y)
|
|
32036
32036
|
}, [
|
|
32037
|
-
|
|
32037
|
+
b(Y) === "ascending" ? (c(), $(i(Vi), {
|
|
32038
32038
|
key: 0,
|
|
32039
32039
|
class: "size-3.5",
|
|
32040
32040
|
"aria-hidden": "true"
|
|
32041
|
-
})) :
|
|
32041
|
+
})) : b(Y) === "descending" ? (c(), $(i(it), {
|
|
32042
32042
|
key: 1,
|
|
32043
32043
|
class: "size-3.5",
|
|
32044
32044
|
"aria-hidden": "true"
|
|
@@ -32100,7 +32100,7 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32100
32100
|
key: Z.field,
|
|
32101
32101
|
role: "gridcell",
|
|
32102
32102
|
"data-cell-key": `${Y}:${re}`,
|
|
32103
|
-
tabindex:
|
|
32103
|
+
tabindex: w(Y, re) ? 0 : -1,
|
|
32104
32104
|
class: J(["relative px-1.5 py-1 align-middle outline-none focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]", i(Re)(Z.align === "right" && "text-right", Z.align === "center" && "text-center")]),
|
|
32105
32105
|
onFocus: (ie) => s.value = { row: Y, col: re },
|
|
32106
32106
|
onKeydown: [
|
|
@@ -32223,7 +32223,7 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32223
32223
|
},
|
|
32224
32224
|
emits: ["settle"],
|
|
32225
32225
|
setup(e, { emit: a }) {
|
|
32226
|
-
const t = Ke(), n = e, o = a, r = P(""), l = P(!1), s = P(), u = P(), d = P(!1), f = P(), p = dt(), v = dt(), m = g(() => n.options.prompt), h = g(() => n.kind === "prompt" || n.kind === "password"),
|
|
32226
|
+
const t = Ke(), n = e, o = a, r = P(""), l = P(!1), s = P(), u = P(), d = P(!1), f = P(), p = dt(), v = dt(), m = g(() => n.options.prompt), h = g(() => n.kind === "prompt" || n.kind === "password"), b = g(() => n.kind === "progress" || n.kind === "wait"), w = g(() => m.value?.label ?? (n.kind === "password" ? t("Password:") : !1)), x = g(() => m.value?.type ?? (n.kind === "password" ? "password" : "text")), C = g(() => n.title ?? t("Confirm")), E = g(() => {
|
|
32227
32227
|
const U = n.options;
|
|
32228
32228
|
switch (n.kind) {
|
|
32229
32229
|
case "alert":
|
|
@@ -32249,7 +32249,7 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32249
32249
|
];
|
|
32250
32250
|
}
|
|
32251
32251
|
}), k = g(
|
|
32252
|
-
() => n.options.leftCustomLabel && !
|
|
32252
|
+
() => n.options.leftCustomLabel && !b.value && n.kind !== "confirmLostChange" ? { id: "leftCustom", label: n.options.leftCustomLabel, variant: "ghost" } : void 0
|
|
32253
32253
|
);
|
|
32254
32254
|
function T(U) {
|
|
32255
32255
|
return U === "cancel" ? n.options.doCancel : U === "leftCustom" || U === "dont_save" ? n.options.doLeftCustom : n.options.doConfirm;
|
|
@@ -32358,7 +32358,7 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32358
32358
|
]),
|
|
32359
32359
|
default: _(() => [
|
|
32360
32360
|
u.value ? (c(), y("p", lD, V(u.value), 1)) : q("", !0),
|
|
32361
|
-
|
|
32361
|
+
b.value ? (c(), y("div", sD, [
|
|
32362
32362
|
n.kind === "wait" ? (c(), y("div", uD, [
|
|
32363
32363
|
O(Jt, {
|
|
32364
32364
|
size: 18,
|
|
@@ -32372,11 +32372,11 @@ const Hq = ["aria-rowcount", "aria-colcount"], Uq = { role: "row" }, jq = ["aria
|
|
|
32372
32372
|
"value-label": n.progress.percentText
|
|
32373
32373
|
}, null, 8, ["value", "label", "value-label"]))
|
|
32374
32374
|
])) : h.value ? (c(), y("div", cD, [
|
|
32375
|
-
|
|
32375
|
+
w.value ? (c(), y("label", {
|
|
32376
32376
|
key: 0,
|
|
32377
32377
|
for: i(p),
|
|
32378
32378
|
class: "text-[12px] text-[var(--ui-text-secondary)]"
|
|
32379
|
-
}, V(
|
|
32379
|
+
}, V(w.value), 9, fD)) : q("", !0),
|
|
32380
32380
|
O(Gu, {
|
|
32381
32381
|
id: i(p),
|
|
32382
32382
|
"model-value": r.value,
|
|
@@ -32404,7 +32404,7 @@ function gD(e = (a, t) => Hi("en", a, t)) {
|
|
|
32404
32404
|
const a = P([]), t = /* @__PURE__ */ new Map();
|
|
32405
32405
|
let n = 1;
|
|
32406
32406
|
function o(f, p, v = {}) {
|
|
32407
|
-
const m = n++, h = new Promise((
|
|
32407
|
+
const m = n++, h = new Promise((b) => t.set(m, b));
|
|
32408
32408
|
return a.value.push({
|
|
32409
32409
|
id: m,
|
|
32410
32410
|
kind: f,
|
|
@@ -32427,7 +32427,7 @@ function gD(e = (a, t) => Hi("en", a, t)) {
|
|
|
32427
32427
|
f && r(f.id, "closed");
|
|
32428
32428
|
}
|
|
32429
32429
|
function u(f, p, v, m) {
|
|
32430
|
-
const h = l((
|
|
32430
|
+
const h = l((b) => b.kind === "progress" || b.kind === "wait");
|
|
32431
32431
|
h && (h.title = f, h.progress = { percent: p, info: v, percentText: m });
|
|
32432
32432
|
}
|
|
32433
32433
|
const d = {
|
|
@@ -32587,15 +32587,15 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
32587
32587
|
ve(() => r.activeStepKey, (ge) => {
|
|
32588
32588
|
ge !== void 0 && (d.value = ge);
|
|
32589
32589
|
}, { immediate: !0 });
|
|
32590
|
-
const m = g(() => s.value.find((ge) => ge.key === d.value) ?? s.value[0]), h = g(() => m.value?.key),
|
|
32590
|
+
const m = g(() => s.value.find((ge) => ge.key === d.value) ?? s.value[0]), h = g(() => m.value?.key), b = g(() => m.value ? s.value.indexOf(m.value) : -1), w = g(() => s.value.length), x = g(() => typeof r.footer == "object" ? r.footer : {}), C = g(() => m.value?.props.type === "done"), E = g(() => !!m.value && !me(m.value?.props.nextStepKey)), k = g(() => {
|
|
32591
32591
|
const ge = m.value;
|
|
32592
32592
|
return ge ? ge.props.nextLabel ? ge.props.nextLabel : C.value && E.value ? x.value.finishLabel ?? n("Finish") : E.value ? x.value.applyLabel ?? n("Apply") : ge.props.type === "welcome" ? x.value.startLabel ?? n("Start") : x.value.nextLabel ?? n("Next") : "";
|
|
32593
32593
|
}), T = g(() => x.value.previousLabel ?? n("Back")), I = g(() => x.value.cancelLabel ?? n("Cancel")), M = g(() => {
|
|
32594
32594
|
const ge = m.value;
|
|
32595
|
-
return
|
|
32595
|
+
return b.value > 0 && ge?.props.type !== "welcome" && ge?.props.type !== "done" && ge?.props.showBack !== !1;
|
|
32596
32596
|
}), H = g(() => m.value?.props.showNext !== !1), X = g(() => r.cancellable && !C.value), N = g(() => r.footer !== !1 && m.value?.props.footer !== !1), R = g(
|
|
32597
|
-
() =>
|
|
32598
|
-
), F = (ge) => ge <
|
|
32597
|
+
() => w.value > 1 && b.value >= 0 ? r.progressText?.(b.value + 1, w.value) ?? n("Step {step} of {total}", { step: b.value + 1, total: w.value }) : void 0
|
|
32598
|
+
), F = (ge) => ge < b.value || ge === b.value && C.value ? "done" : ge === b.value ? "current" : "upcoming", K = g(() => ({ done: n("Completed"), current: n("Current step"), upcoming: "" })), U = (ge) => ge.props.label || ge.props.headline || ge.key, A = g(() => m.value?.props.headline), W = Me("root"), z = jt(W), G = g(() => r.showSteps === !1 || r.stepper === "none" || w.value < 2 ? "none" : r.stepper === "rail" ? z.value && z.value < r.railMinWidth ? "bar" : "rail" : "bar"), L = g(() => !!(r.title || A.value || R.value)), { height: Y, measure: Z } = xD(W, () => r.fit, () => r.fitMinHeight);
|
|
32599
32599
|
ve(() => r.fit, () => Z());
|
|
32600
32600
|
const re = _D(W), ie = P(!1);
|
|
32601
32601
|
qe(() => {
|
|
@@ -32650,7 +32650,7 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
32650
32650
|
}
|
|
32651
32651
|
}
|
|
32652
32652
|
async function Se() {
|
|
32653
|
-
const ge =
|
|
32653
|
+
const ge = b.value;
|
|
32654
32654
|
if (u.value || ge <= 0) return;
|
|
32655
32655
|
const fe = s.value[ge];
|
|
32656
32656
|
u.value = !0;
|
|
@@ -32687,8 +32687,8 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
32687
32687
|
unregister: se
|
|
32688
32688
|
}), a({
|
|
32689
32689
|
activeStepKey: h,
|
|
32690
|
-
currentStepIndex:
|
|
32691
|
-
totalSteps:
|
|
32690
|
+
currentStepIndex: b,
|
|
32691
|
+
totalSteps: w,
|
|
32692
32692
|
canGoPrevious: M,
|
|
32693
32693
|
isLastStep: E,
|
|
32694
32694
|
busy: u,
|
|
@@ -33076,37 +33076,37 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33076
33076
|
setup(e, { expose: a, emit: t }) {
|
|
33077
33077
|
const n = Ke(), r = Ze(e, { closeLabel: "Close" }), l = t, s = P(r.defaultOpen), u = g({
|
|
33078
33078
|
get: () => r.open ?? s.value,
|
|
33079
|
-
set: (
|
|
33080
|
-
r.open === void 0 && (s.value =
|
|
33079
|
+
set: (b) => {
|
|
33080
|
+
r.open === void 0 && (s.value = b), l("update:open", b);
|
|
33081
33081
|
}
|
|
33082
33082
|
}), d = P("idle"), f = P(), p = g(() => r.copyrightYear ?? String((/* @__PURE__ */ new Date()).getFullYear())), v = g(() => r.iconSrc ? void 0 : Mp);
|
|
33083
33083
|
async function m() {
|
|
33084
|
-
const
|
|
33085
|
-
if (!
|
|
33084
|
+
const b = r.fetchVersion;
|
|
33085
|
+
if (!b || !r.checkUpdates)
|
|
33086
33086
|
return d.value = "idle", null;
|
|
33087
33087
|
d.value = "checking", l("check-start");
|
|
33088
33088
|
try {
|
|
33089
|
-
const
|
|
33090
|
-
return f.value =
|
|
33091
|
-
} catch (
|
|
33092
|
-
return f.value = void 0, d.value = "failed", l("check-error",
|
|
33089
|
+
const w = await b() ?? {};
|
|
33090
|
+
return f.value = w, d.value = w.newVersion ? "update-available" : w.betaVersion ? "beta-available" : w.upToDate ? "up-to-date" : "failed", l("check-result", w), w;
|
|
33091
|
+
} catch (w) {
|
|
33092
|
+
return f.value = void 0, d.value = "failed", l("check-error", w), l("check-result", null), null;
|
|
33093
33093
|
}
|
|
33094
33094
|
}
|
|
33095
|
-
ve(u, (
|
|
33096
|
-
|
|
33095
|
+
ve(u, (b) => {
|
|
33096
|
+
b && m();
|
|
33097
33097
|
}, { immediate: !0 }), a({ checkForUpdates: m, state: d, versionInfo: f });
|
|
33098
33098
|
const h = g(() => ({ beta: n("BETA"), version: n("Version {version}"), checking: n("Checking for updates…"), available: n("Version {version} is available."), betaAvailable: n("Beta version {version} is available."), upToDate: n("You have the latest version."), failed: n("Could not check for updates."), retry: n("Retry"), releaseNotes: n("Release notes"), terms: n("Terms of Service"), privacy: n("Privacy Policy"), legal: n("{title} legal"), ...r.text }));
|
|
33099
|
-
return (
|
|
33099
|
+
return (b, w) => (c(), $(Tl, {
|
|
33100
33100
|
open: u.value,
|
|
33101
33101
|
title: i(r).title,
|
|
33102
33102
|
width: i(r).width,
|
|
33103
33103
|
"close-label": i(r).closeLabel,
|
|
33104
|
-
"onUpdate:open":
|
|
33104
|
+
"onUpdate:open": w[1] || (w[1] = (x) => u.value = x)
|
|
33105
33105
|
}, wn({
|
|
33106
33106
|
footer: _(() => [
|
|
33107
33107
|
D("div", yO, [
|
|
33108
33108
|
D("span", bO, [
|
|
33109
|
-
S(
|
|
33109
|
+
S(b.$slots, "copyright", {}, () => [
|
|
33110
33110
|
ue("© " + V(p.value), 1)
|
|
33111
33111
|
])
|
|
33112
33112
|
]),
|
|
@@ -33132,7 +33132,7 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33132
33132
|
default: _(() => [
|
|
33133
33133
|
O(at, {
|
|
33134
33134
|
variant: "secondary",
|
|
33135
|
-
onClick:
|
|
33135
|
+
onClick: w[0] || (w[0] = (x) => u.value = !1)
|
|
33136
33136
|
}, {
|
|
33137
33137
|
default: _(() => [
|
|
33138
33138
|
ue(V(i(r).closeLabel), 1)
|
|
@@ -33148,7 +33148,7 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33148
33148
|
default: _(() => [
|
|
33149
33149
|
D("div", tO, [
|
|
33150
33150
|
D("div", aO, [
|
|
33151
|
-
S(
|
|
33151
|
+
S(b.$slots, "icon", {}, () => [
|
|
33152
33152
|
i(r).iconSrc ? (c(), y("img", {
|
|
33153
33153
|
key: 0,
|
|
33154
33154
|
src: i(r).iconSrc,
|
|
@@ -33170,7 +33170,7 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33170
33170
|
i(r).version ? (c(), y("p", uO, V(i(Et)(h.value.version, { version: i(r).version })), 1)) : q("", !0)
|
|
33171
33171
|
])
|
|
33172
33172
|
]),
|
|
33173
|
-
i(r).fetchVersion && i(r).checkUpdates ||
|
|
33173
|
+
i(r).fetchVersion && i(r).checkUpdates || b.$slots.default ? (c(), $(Xk, { key: 0 })) : q("", !0),
|
|
33174
33174
|
i(r).fetchVersion && i(r).checkUpdates ? (c(), y("div", dO, [
|
|
33175
33175
|
d.value === "checking" ? (c(), y("div", cO, [
|
|
33176
33176
|
O(Jt, {
|
|
@@ -33229,15 +33229,15 @@ const CD = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33229
33229
|
})
|
|
33230
33230
|
])) : q("", !0)
|
|
33231
33231
|
])) : q("", !0),
|
|
33232
|
-
S(
|
|
33232
|
+
S(b.$slots, "default")
|
|
33233
33233
|
])
|
|
33234
33234
|
]),
|
|
33235
33235
|
_: 2
|
|
33236
33236
|
}, [
|
|
33237
|
-
|
|
33237
|
+
b.$slots.trigger ? {
|
|
33238
33238
|
name: "trigger",
|
|
33239
33239
|
fn: _(() => [
|
|
33240
|
-
S(
|
|
33240
|
+
S(b.$slots, "trigger")
|
|
33241
33241
|
]),
|
|
33242
33242
|
key: "0"
|
|
33243
33243
|
} : void 0
|
|
@@ -33328,9 +33328,9 @@ const RO = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
33328
33328
|
...f === "app" ? m : {},
|
|
33329
33329
|
...t.accent ? IO(t.accent, { dark: t.colorScheme === "dark" }) : {}
|
|
33330
33330
|
}));
|
|
33331
|
-
return ve(() => t.modalScope, (
|
|
33332
|
-
if (
|
|
33333
|
-
}), (
|
|
33331
|
+
return ve(() => t.modalScope, (b) => {
|
|
33332
|
+
if (b !== f) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
|
|
33333
|
+
}), (b, w) => (c(), y("div", {
|
|
33334
33334
|
ref_key: "root",
|
|
33335
33335
|
ref: r,
|
|
33336
33336
|
"data-ui-app": "",
|
|
@@ -33354,14 +33354,14 @@ const RO = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
33354
33354
|
"data-ui-background": "",
|
|
33355
33355
|
style: { height: "100%", overflow: "auto", "overscroll-behavior": "contain" }
|
|
33356
33356
|
}, [
|
|
33357
|
-
S(
|
|
33357
|
+
S(b.$slots, "default")
|
|
33358
33358
|
], 512),
|
|
33359
33359
|
D("div", {
|
|
33360
33360
|
ref_key: "portal",
|
|
33361
33361
|
ref: d,
|
|
33362
33362
|
"data-ui-portals": ""
|
|
33363
33363
|
}, null, 512)
|
|
33364
|
-
], 64)) : S(
|
|
33364
|
+
], 64)) : S(b.$slots, "default", {}, void 0, void 0, 1)
|
|
33365
33365
|
]),
|
|
33366
33366
|
_: 3
|
|
33367
33367
|
}, 8, ["teleport-to"])
|
|
@@ -33464,13 +33464,13 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33464
33464
|
let v = null;
|
|
33465
33465
|
const m = jt(d), h = g(() => t.responsive === !1 ? "window" : Jc(m.value, t.wideLayout));
|
|
33466
33466
|
Xe(fr, h);
|
|
33467
|
-
const
|
|
33467
|
+
const b = g(() => h.value === "mobile"), w = P(!1), x = dt(), C = P(!1);
|
|
33468
33468
|
qe(() => {
|
|
33469
33469
|
typeof requestAnimationFrame == "function" && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
33470
33470
|
C.value = !0;
|
|
33471
33471
|
}));
|
|
33472
33472
|
});
|
|
33473
|
-
const E = g(() => h.value === "web"), k = g(() => t.navigation === "top" && !
|
|
33473
|
+
const E = g(() => h.value === "web"), k = g(() => t.navigation === "top" && !b.value);
|
|
33474
33474
|
Xe(ef, k);
|
|
33475
33475
|
const T = zO(t.sidebarStorageKey), I = g(() => E.value && !k.value && T.collapsed.value);
|
|
33476
33476
|
Xe(Ol, I);
|
|
@@ -33481,7 +33481,7 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33481
33481
|
icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
|
|
33482
33482
|
};
|
|
33483
33483
|
});
|
|
33484
|
-
const N = g(() => ({ name: t.brandName ?? X.value.name, icon: t.brandIcon ?? X.value.icon })), R = g(() => !!(s.brand || N.value.name || N.value.icon)), F = g(() => R.value && !
|
|
33484
|
+
const N = g(() => ({ name: t.brandName ?? X.value.name, icon: t.brandIcon ?? X.value.icon })), R = g(() => !!(s.brand || N.value.name || N.value.icon)), F = g(() => R.value && !b.value && t.wideLayout === "web"), K = g(() => k.value ? !!s["sidebar-footer"] : E.value || b.value && !!s["sidebar-footer"]);
|
|
33485
33485
|
function U() {
|
|
33486
33486
|
T.collapsed.value = !T.collapsed.value;
|
|
33487
33487
|
}
|
|
@@ -33507,18 +33507,18 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33507
33507
|
}
|
|
33508
33508
|
We(L);
|
|
33509
33509
|
function Z(me = !1) {
|
|
33510
|
-
if (!
|
|
33511
|
-
|
|
33510
|
+
if (!w.value) return;
|
|
33511
|
+
w.value = !1;
|
|
33512
33512
|
const ee = v?.isConnected ? v : p.value;
|
|
33513
33513
|
v = null, me && De(() => ee?.focus());
|
|
33514
33514
|
}
|
|
33515
33515
|
function re() {
|
|
33516
|
-
v = document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null,
|
|
33516
|
+
v = document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null, w.value = !0, De(() => f.value?.querySelector("[data-ui-close-navigation]")?.focus());
|
|
33517
33517
|
}
|
|
33518
|
-
const ie = P(0), _e = g(() =>
|
|
33518
|
+
const ie = P(0), _e = g(() => b.value && !!s.tabbar && ie.value > 0);
|
|
33519
33519
|
Xe(tf, {
|
|
33520
33520
|
available: g(() => !!s.sidebar),
|
|
33521
|
-
open: g(() =>
|
|
33521
|
+
open: g(() => w.value),
|
|
33522
33522
|
id: x,
|
|
33523
33523
|
show: re,
|
|
33524
33524
|
claim() {
|
|
@@ -33528,14 +33528,14 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33528
33528
|
me || (me = !0, ie.value--);
|
|
33529
33529
|
};
|
|
33530
33530
|
}
|
|
33531
|
-
}), ve(
|
|
33531
|
+
}), ve(b, (me) => {
|
|
33532
33532
|
me || Z();
|
|
33533
33533
|
});
|
|
33534
33534
|
function de(me) {
|
|
33535
|
-
!
|
|
33535
|
+
!b.value || !w.value || me.target instanceof Element && me.target.closest("[data-nav-item],a[href]") && Z();
|
|
33536
33536
|
}
|
|
33537
33537
|
function Pe(me) {
|
|
33538
|
-
if (!(!
|
|
33538
|
+
if (!(!b.value || !w.value)) {
|
|
33539
33539
|
if (me.key === "Escape")
|
|
33540
33540
|
me.preventDefault(), Z(!0);
|
|
33541
33541
|
else if (me.key === "Tab" && f.value) {
|
|
@@ -33551,21 +33551,21 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33551
33551
|
ref_key: "root",
|
|
33552
33552
|
ref: d,
|
|
33553
33553
|
class: J(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", [
|
|
33554
|
-
me.$slots.sidebar && !
|
|
33554
|
+
me.$slots.sidebar && !b.value && !k.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1",
|
|
33555
33555
|
t.height === "fill" && "h-full grid-rows-[minmax(0,1fr)]"
|
|
33556
33556
|
]]),
|
|
33557
33557
|
style: Ce({ "--ui-app-sidebar-width": H.value, minHeight: t.minHeight }),
|
|
33558
33558
|
"data-ui-layout-mode": h.value,
|
|
33559
33559
|
"data-ui-navigation": k.value ? "top" : void 0,
|
|
33560
33560
|
"data-ui-layout-height": t.height,
|
|
33561
|
-
"data-ui-mobile-open":
|
|
33561
|
+
"data-ui-mobile-open": b.value && w.value ? "true" : void 0,
|
|
33562
33562
|
"data-ui-motion-ready": C.value ? "true" : void 0,
|
|
33563
33563
|
"data-ui-sidebar-collapsed": I.value ? "true" : void 0,
|
|
33564
33564
|
"data-ui-sidebar-resizing": W.value ? "true" : void 0,
|
|
33565
33565
|
"data-syno-pkg-land-ui": "",
|
|
33566
33566
|
onKeydown: Pe
|
|
33567
33567
|
}, [
|
|
33568
|
-
|
|
33568
|
+
b.value && w.value && me.$slots.sidebar ? (c(), y("div", {
|
|
33569
33569
|
key: 0,
|
|
33570
33570
|
"data-ui-mobile-backdrop": "",
|
|
33571
33571
|
"aria-hidden": "true",
|
|
@@ -33578,14 +33578,14 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33578
33578
|
ref: f,
|
|
33579
33579
|
"data-ui-layout-sidebar": "",
|
|
33580
33580
|
class: "min-w-0 border-r border-[var(--ui-border)] bg-[var(--ui-surface)]",
|
|
33581
|
-
role:
|
|
33582
|
-
"aria-modal":
|
|
33583
|
-
"aria-label":
|
|
33584
|
-
"aria-hidden":
|
|
33585
|
-
inert:
|
|
33581
|
+
role: b.value ? "dialog" : void 0,
|
|
33582
|
+
"aria-modal": b.value && w.value ? "true" : void 0,
|
|
33583
|
+
"aria-label": b.value ? i(u)("Application navigation") : void 0,
|
|
33584
|
+
"aria-hidden": b.value && !w.value ? "true" : void 0,
|
|
33585
|
+
inert: b.value && !w.value,
|
|
33586
33586
|
onClick: de
|
|
33587
33587
|
}, [
|
|
33588
|
-
|
|
33588
|
+
b.value ? (c(), y("div", KO, [
|
|
33589
33589
|
R.value ? (c(), y("div", WO, [
|
|
33590
33590
|
S(me.$slots, "brand", {}, () => [
|
|
33591
33591
|
O(Xr, {
|
|
@@ -33658,9 +33658,9 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33658
33658
|
D("div", {
|
|
33659
33659
|
"data-ui-layout-main": "",
|
|
33660
33660
|
class: "flex min-h-0 min-w-0 flex-col bg-[var(--ui-surface)]",
|
|
33661
|
-
inert:
|
|
33661
|
+
inert: b.value && w.value
|
|
33662
33662
|
}, [
|
|
33663
|
-
|
|
33663
|
+
b.value && me.$slots.sidebar && !(_e.value && !R.value) ? (c(), y("div", JO, [
|
|
33664
33664
|
_e.value ? q("", !0) : (c(), y("button", {
|
|
33665
33665
|
key: 0,
|
|
33666
33666
|
ref_key: "menuTrigger",
|
|
@@ -33668,7 +33668,7 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33668
33668
|
"data-ui-mobile-menu": "",
|
|
33669
33669
|
type: "button",
|
|
33670
33670
|
"aria-label": i(u)("Application navigation"),
|
|
33671
|
-
"aria-expanded":
|
|
33671
|
+
"aria-expanded": w.value,
|
|
33672
33672
|
"aria-controls": i(x),
|
|
33673
33673
|
onClick: re
|
|
33674
33674
|
}, [
|
|
@@ -33695,7 +33695,7 @@ const VO = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33695
33695
|
S(me.$slots, "default")
|
|
33696
33696
|
], 2),
|
|
33697
33697
|
S(me.$slots, "footer"),
|
|
33698
|
-
|
|
33698
|
+
b.value ? S(me.$slots, "tabbar", {}, void 0, void 0, 1) : q("", !0)
|
|
33699
33699
|
], 8, QO)
|
|
33700
33700
|
], 46, VO));
|
|
33701
33701
|
}
|
|
@@ -33761,22 +33761,22 @@ const iI = ["aria-label", "data-hidden"], lI = ["disabled", "aria-current", "dat
|
|
|
33761
33761
|
setup(e, { emit: a }) {
|
|
33762
33762
|
const t = e, n = a, o = Ke(), r = Qe(tf, null), l = rI(), s = g(() => t.hidden || l.value), u = g(() => t.more ?? !!r?.available.value), d = g(() => u.value && !!r?.available.value);
|
|
33763
33763
|
let f;
|
|
33764
|
-
ve(d, (
|
|
33765
|
-
|
|
33764
|
+
ve(d, (b) => {
|
|
33765
|
+
b && !f ? f = r.claim() : !b && f && (f = void f());
|
|
33766
33766
|
}, { immediate: !0 }), We(() => f?.());
|
|
33767
|
-
function p(
|
|
33768
|
-
return typeof
|
|
33767
|
+
function p(b) {
|
|
33768
|
+
return typeof b != "number" || b <= 0 ? "" : b > 99 ? "99+" : String(b);
|
|
33769
33769
|
}
|
|
33770
|
-
function v(
|
|
33771
|
-
return
|
|
33770
|
+
function v(b) {
|
|
33771
|
+
return b === !0 ? o("Unread") : typeof b == "number" && b > 0 ? o("{count} unread", { count: b }) : "";
|
|
33772
33772
|
}
|
|
33773
|
-
function m(
|
|
33774
|
-
|
|
33773
|
+
function m(b) {
|
|
33774
|
+
b.disabled || n("update:modelValue", b.key);
|
|
33775
33775
|
}
|
|
33776
33776
|
function h() {
|
|
33777
33777
|
n("more"), d.value && r.show();
|
|
33778
33778
|
}
|
|
33779
|
-
return (
|
|
33779
|
+
return (b, w) => (c(), y("nav", {
|
|
33780
33780
|
"aria-label": e.ariaLabel ?? i(o)("Quick navigation"),
|
|
33781
33781
|
class: J([s.value ? "hidden" : "flex", "w-full shrink-0 items-stretch border-t border-[var(--ui-tab-bar-border,var(--ui-border-subtle))] bg-[var(--ui-tab-bar-bg,var(--ui-surface))] pb-[env(safe-area-inset-bottom)]"]),
|
|
33782
33782
|
"data-hidden": s.value ? "" : void 0,
|
|
@@ -33918,7 +33918,7 @@ const hI = /* @__PURE__ */ B({
|
|
|
33918
33918
|
"aria-expanded": o(h),
|
|
33919
33919
|
class: J(f(h)),
|
|
33920
33920
|
style: Ce(r(t.depth)),
|
|
33921
|
-
onClick: (
|
|
33921
|
+
onClick: (b) => {
|
|
33922
33922
|
n("toggle", h.key), h.selectable && n("select", h);
|
|
33923
33923
|
}
|
|
33924
33924
|
}, [
|
|
@@ -33945,7 +33945,7 @@ const hI = /* @__PURE__ */ B({
|
|
|
33945
33945
|
"aria-current": t.modelValue === h.key ? "page" : void 0,
|
|
33946
33946
|
class: J(f(h)),
|
|
33947
33947
|
style: Ce(r(t.depth)),
|
|
33948
|
-
onClick: (
|
|
33948
|
+
onClick: (b) => n("select", h)
|
|
33949
33949
|
}, [
|
|
33950
33950
|
d.value ? (c(), y("span", wI)) : q("", !0),
|
|
33951
33951
|
h.icon ? (c(), $(Le(h.icon), {
|
|
@@ -33975,8 +33975,8 @@ const hI = /* @__PURE__ */ B({
|
|
|
33975
33975
|
depth: t.depth + 1,
|
|
33976
33976
|
searching: t.searching,
|
|
33977
33977
|
collapsed: t.collapsed,
|
|
33978
|
-
onSelect: v[0] || (v[0] = (
|
|
33979
|
-
onToggle: v[1] || (v[1] = (
|
|
33978
|
+
onSelect: v[0] || (v[0] = (b) => n("select", b)),
|
|
33979
|
+
onToggle: v[1] || (v[1] = (b) => n("toggle", b))
|
|
33980
33980
|
}, null, 8, ["items", "model-value", "expanded-keys", "depth", "searching", "collapsed"])
|
|
33981
33981
|
], 8, _I)) : q("", !0)
|
|
33982
33982
|
], 64))), 128);
|
|
@@ -34098,17 +34098,17 @@ const hI = /* @__PURE__ */ B({
|
|
|
34098
34098
|
}).filter((E) => E.rows.length);
|
|
34099
34099
|
}), m = { position: "absolute", visibility: "hidden", pointerEvents: "none" };
|
|
34100
34100
|
let h;
|
|
34101
|
-
const
|
|
34102
|
-
function
|
|
34101
|
+
const b = (C) => Number.parseFloat(C) || 0;
|
|
34102
|
+
function w() {
|
|
34103
34103
|
const C = r.value;
|
|
34104
34104
|
if (!C || !l.value) return;
|
|
34105
|
-
const E = getComputedStyle(C), k = C.clientWidth -
|
|
34105
|
+
const E = getComputedStyle(C), k = C.clientWidth - b(E.paddingLeft) - b(E.paddingRight);
|
|
34106
34106
|
if (k <= 0) return;
|
|
34107
|
-
const T =
|
|
34107
|
+
const T = b(E.columnGap), I = [];
|
|
34108
34108
|
if (C.querySelectorAll("[data-nav-group]").forEach((R, F) => {
|
|
34109
34109
|
const K = getComputedStyle(R);
|
|
34110
34110
|
R.querySelectorAll("[data-ui-top-nav-item]").forEach((U, A) => {
|
|
34111
|
-
const W = A === 0 ?
|
|
34111
|
+
const W = A === 0 ? b(K.marginLeft) + b(K.marginRight) + b(K.paddingLeft) + b(K.paddingRight) + b(K.borderLeftWidth) + b(K.borderRightWidth) + (F ? T : 0) : b(K.columnGap);
|
|
34112
34112
|
I.push(U.getBoundingClientRect().width + W);
|
|
34113
34113
|
});
|
|
34114
34114
|
}), !I.length || I.every((R) => R === 0)) return;
|
|
@@ -34129,10 +34129,10 @@ const hI = /* @__PURE__ */ B({
|
|
|
34129
34129
|
});
|
|
34130
34130
|
}
|
|
34131
34131
|
async function x() {
|
|
34132
|
-
await De(), h?.disconnect(), r.value && (h?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((C) => h?.observe(C)),
|
|
34132
|
+
await De(), h?.disconnect(), r.value && (h?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((C) => h?.observe(C)), w());
|
|
34133
34133
|
}
|
|
34134
34134
|
return qe(() => {
|
|
34135
|
-
typeof ResizeObserver < "u" && (h = new ResizeObserver(
|
|
34135
|
+
typeof ResizeObserver < "u" && (h = new ResizeObserver(w)), x();
|
|
34136
34136
|
}), ve(() => t.groups, x, { deep: !0, flush: "post" }), We(() => h?.disconnect()), (C, E) => (c(), y("nav", {
|
|
34137
34137
|
ref_key: "root",
|
|
34138
34138
|
ref: r,
|
|
@@ -34225,26 +34225,26 @@ const hI = /* @__PURE__ */ B({
|
|
|
34225
34225
|
const T = new Set(u.value);
|
|
34226
34226
|
T.delete(k) || T.add(k), u.value = T;
|
|
34227
34227
|
}
|
|
34228
|
-
const m = (k) => !n.collapsible || p.value || r.value || !u.value.has(k), h = P([...n.defaultExpandedKeys]),
|
|
34229
|
-
function
|
|
34228
|
+
const m = (k) => !n.collapsible || p.value || r.value || !u.value.has(k), h = P([...n.defaultExpandedKeys]), b = g(() => n.expandedKeys ?? h.value);
|
|
34229
|
+
function w(k, T = n.groups.flatMap((M) => M.items), I = []) {
|
|
34230
34230
|
for (const M of T) {
|
|
34231
34231
|
if (M.key === k) return I;
|
|
34232
|
-
const H = M.children ?
|
|
34232
|
+
const H = M.children ? w(k, M.children, [...I, M.key]) : void 0;
|
|
34233
34233
|
if (H) return H;
|
|
34234
34234
|
}
|
|
34235
34235
|
return [];
|
|
34236
34236
|
}
|
|
34237
34237
|
function x(k) {
|
|
34238
|
-
const T =
|
|
34238
|
+
const T = w(k);
|
|
34239
34239
|
if (!T.length) return;
|
|
34240
|
-
const I = [.../* @__PURE__ */ new Set([...
|
|
34240
|
+
const I = [.../* @__PURE__ */ new Set([...b.value, ...T])];
|
|
34241
34241
|
h.value = I, o("update:expandedKeys", I);
|
|
34242
34242
|
}
|
|
34243
34243
|
ve(() => n.modelValue, (k) => {
|
|
34244
34244
|
k && x(k);
|
|
34245
34245
|
}, { immediate: !0 });
|
|
34246
34246
|
function C(k) {
|
|
34247
|
-
const T =
|
|
34247
|
+
const T = b.value.includes(k), I = T ? b.value.filter((M) => M !== k) : [...b.value, k];
|
|
34248
34248
|
h.value = I, o("update:expandedKeys", I), o("branchToggle", k, !T);
|
|
34249
34249
|
}
|
|
34250
34250
|
function E(k) {
|
|
@@ -34294,7 +34294,7 @@ const hI = /* @__PURE__ */ B({
|
|
|
34294
34294
|
key: 2,
|
|
34295
34295
|
items: H,
|
|
34296
34296
|
"model-value": i(n).modelValue,
|
|
34297
|
-
"expanded-keys":
|
|
34297
|
+
"expanded-keys": b.value,
|
|
34298
34298
|
depth: 0,
|
|
34299
34299
|
searching: p.value,
|
|
34300
34300
|
collapsed: i(r),
|
|
@@ -34495,11 +34495,11 @@ ${e.detail}` : e.name,
|
|
|
34495
34495
|
} catch {
|
|
34496
34496
|
}
|
|
34497
34497
|
}
|
|
34498
|
-
const
|
|
34498
|
+
const b = P(m() ?? n.defaultSize);
|
|
34499
34499
|
ve(v, () => {
|
|
34500
|
-
|
|
34500
|
+
b.value = m() ?? n.defaultSize;
|
|
34501
34501
|
});
|
|
34502
|
-
const
|
|
34502
|
+
const w = g(() => n.modelValue ?? b.value);
|
|
34503
34503
|
function x() {
|
|
34504
34504
|
const F = s.value?.getBoundingClientRect();
|
|
34505
34505
|
return d.value = F ? Math.max(0, (n.orientation === "horizontal" ? F.width : F.height) - n.gap) : 0, F;
|
|
@@ -34514,13 +34514,13 @@ ${e.detail}` : e.name,
|
|
|
34514
34514
|
}
|
|
34515
34515
|
function k(F, K) {
|
|
34516
34516
|
const U = E(F);
|
|
34517
|
-
|
|
34517
|
+
b.value = U, o("update:modelValue", U), K && h(U);
|
|
34518
34518
|
}
|
|
34519
34519
|
function T(F) {
|
|
34520
34520
|
x();
|
|
34521
34521
|
const K = n.orientation === "horizontal" ? "ArrowLeft" : "ArrowUp", U = n.orientation === "horizontal" ? "ArrowRight" : "ArrowDown", A = F.shiftKey ? aR : tR;
|
|
34522
34522
|
let W = null;
|
|
34523
|
-
F.key === K ? W =
|
|
34523
|
+
F.key === K ? W = w.value - A : F.key === U ? W = w.value + A : F.key === "Home" ? W = C.value[0] : F.key === "End" && (W = C.value[1]), W != null && (F.preventDefault(), k(W, !0));
|
|
34524
34524
|
}
|
|
34525
34525
|
let I = null;
|
|
34526
34526
|
function M(F) {
|
|
@@ -34531,7 +34531,7 @@ ${e.detail}` : e.name,
|
|
|
34531
34531
|
u.value = !0;
|
|
34532
34532
|
const U = document.body.style, A = { userSelect: U.userSelect, cursor: U.cursor };
|
|
34533
34533
|
U.userSelect = "none", U.cursor = n.orientation === "horizontal" ? "col-resize" : "row-resize";
|
|
34534
|
-
let W =
|
|
34534
|
+
let W = w.value;
|
|
34535
34535
|
const z = (L) => {
|
|
34536
34536
|
const Y = n.orientation === "horizontal" ? L.clientX - K.left : L.clientY - K.top;
|
|
34537
34537
|
d.value <= 0 || (W = E((Y - n.gap / 2) / d.value), k(W, !1));
|
|
@@ -34543,7 +34543,7 @@ ${e.detail}` : e.name,
|
|
|
34543
34543
|
}, window.addEventListener("pointermove", z), window.addEventListener("pointerup", G), window.addEventListener("pointercancel", G);
|
|
34544
34544
|
}
|
|
34545
34545
|
function H() {
|
|
34546
|
-
h(null),
|
|
34546
|
+
h(null), b.value = n.defaultSize, o("update:modelValue", n.defaultSize);
|
|
34547
34547
|
}
|
|
34548
34548
|
let X = null;
|
|
34549
34549
|
qe(() => {
|
|
@@ -34552,7 +34552,7 @@ ${e.detail}` : e.name,
|
|
|
34552
34552
|
I?.(), X?.disconnect(), window.removeEventListener("resize", x);
|
|
34553
34553
|
});
|
|
34554
34554
|
const N = g(() => ({
|
|
34555
|
-
flexBasis: `clamp(${n.minStart}px, calc((100% - ${n.gap}px) * ${
|
|
34555
|
+
flexBasis: `clamp(${n.minStart}px, calc((100% - ${n.gap}px) * ${w.value}), calc(100% - ${n.minEnd + n.gap}px))`
|
|
34556
34556
|
})), R = (F) => Math.round(F * 100);
|
|
34557
34557
|
return a({ reset: H }), (F, K) => (c(), y("div", {
|
|
34558
34558
|
ref_key: "root",
|
|
@@ -34583,7 +34583,7 @@ ${e.detail}` : e.name,
|
|
|
34583
34583
|
"aria-orientation": e.orientation === "horizontal" ? "vertical" : "horizontal",
|
|
34584
34584
|
"aria-controls": l,
|
|
34585
34585
|
"aria-label": e.label ?? i(r)("Resize panes"),
|
|
34586
|
-
"aria-valuenow": R(
|
|
34586
|
+
"aria-valuenow": R(w.value),
|
|
34587
34587
|
"aria-valuemin": R(C.value[0]),
|
|
34588
34588
|
"aria-valuemax": R(C.value[1]),
|
|
34589
34589
|
style: Ce({ flexBasis: `${e.gap}px` }),
|
|
@@ -34704,13 +34704,13 @@ ${e.detail}` : e.name,
|
|
|
34704
34704
|
value: r(h.value),
|
|
34705
34705
|
tone: h.tone ?? "primary",
|
|
34706
34706
|
color: h.color ?? o[h.tone ?? "primary"]
|
|
34707
|
-
}))), s = g(() => l.value.reduce((h,
|
|
34708
|
-
const h = l.value.map((
|
|
34707
|
+
}))), s = g(() => l.value.reduce((h, b) => h + b.value, 0)), u = g(() => Math.max(a.total != null ? r(a.total) : 0, s.value)), d = g(() => a.total != null ? u.value - s.value : 0), f = g(() => a.remainderLabel ?? t("Free")), p = g(() => a.total != null && f.value !== ""), v = (h) => u.value > 0 ? Math.round(h / u.value * 1e4) / 100 : 0, m = g(() => {
|
|
34708
|
+
const h = l.value.map((w) => `${w.label} ${a.format(w.value)}`);
|
|
34709
34709
|
p.value && h.push(`${f.value} ${a.format(d.value)}`), a.total != null && h.push(t("Total {size}", { size: a.format(u.value) }));
|
|
34710
|
-
const
|
|
34711
|
-
return a.label ? `${a.label}: ${
|
|
34710
|
+
const b = new Intl.ListFormat(n.value, { style: "short", type: "unit" }).format(h);
|
|
34711
|
+
return a.label ? `${a.label}: ${b}` : b;
|
|
34712
34712
|
});
|
|
34713
|
-
return (h,
|
|
34713
|
+
return (h, b) => (c(), y("div", {
|
|
34714
34714
|
class: "grid min-w-0 gap-[var(--ui-space-2)]",
|
|
34715
34715
|
role: "img",
|
|
34716
34716
|
"aria-label": m.value,
|
|
@@ -34718,34 +34718,34 @@ ${e.detail}` : e.name,
|
|
|
34718
34718
|
"data-syno-pkg-land-ui": ""
|
|
34719
34719
|
}, [
|
|
34720
34720
|
D("div", vR, [
|
|
34721
|
-
(c(!0), y(oe, null, ke(l.value, (
|
|
34722
|
-
key:
|
|
34721
|
+
(c(!0), y(oe, null, ke(l.value, (w) => (c(), y(oe, {
|
|
34722
|
+
key: w.key
|
|
34723
34723
|
}, [
|
|
34724
|
-
|
|
34724
|
+
w.value > 0 ? (c(), y("span", {
|
|
34725
34725
|
key: 0,
|
|
34726
34726
|
class: "block h-full shrink-0 border-[var(--ui-surface)] [&:not(:last-child)]:border-e",
|
|
34727
|
-
style: Ce({ width: `${v(
|
|
34728
|
-
"data-key":
|
|
34729
|
-
"data-tone":
|
|
34727
|
+
style: Ce({ width: `${v(w.value)}%`, minWidth: "2px", background: w.color }),
|
|
34728
|
+
"data-key": w.key,
|
|
34729
|
+
"data-tone": w.tone,
|
|
34730
34730
|
"data-ui-stacked-bar-segment": ""
|
|
34731
34731
|
}, null, 12, mR)) : q("", !0)
|
|
34732
34732
|
], 64))), 128))
|
|
34733
34733
|
]),
|
|
34734
34734
|
e.legend ? (c(), y("ul", hR, [
|
|
34735
|
-
(c(!0), y(oe, null, ke(l.value, (
|
|
34736
|
-
key:
|
|
34735
|
+
(c(!0), y(oe, null, ke(l.value, (w) => (c(), y("li", {
|
|
34736
|
+
key: w.key,
|
|
34737
34737
|
class: "inline-flex min-w-0 items-center gap-1.5",
|
|
34738
|
-
"data-key":
|
|
34738
|
+
"data-key": w.key
|
|
34739
34739
|
}, [
|
|
34740
34740
|
D("span", {
|
|
34741
34741
|
class: "size-2 shrink-0 rounded-full",
|
|
34742
|
-
style: Ce({ background:
|
|
34742
|
+
style: Ce({ background: w.color })
|
|
34743
34743
|
}, null, 4),
|
|
34744
|
-
D("span", yR, V(
|
|
34745
|
-
D("span", bR, V(e.format(
|
|
34744
|
+
D("span", yR, V(w.label), 1),
|
|
34745
|
+
D("span", bR, V(e.format(w.value)), 1)
|
|
34746
34746
|
], 8, gR))), 128)),
|
|
34747
34747
|
p.value ? (c(), y("li", wR, [
|
|
34748
|
-
|
|
34748
|
+
b[0] || (b[0] = D("span", { class: "size-2 shrink-0 rounded-full bg-[var(--ui-stacked-bar-track,var(--ui-gray-a3))]" }, null, -1)),
|
|
34749
34749
|
D("span", xR, V(f.value), 1),
|
|
34750
34750
|
D("span", _R, V(e.format(d.value)), 1)
|
|
34751
34751
|
])) : q("", !0)
|
|
@@ -34804,8 +34804,8 @@ ${e.detail}` : e.name,
|
|
|
34804
34804
|
End: (v, m) => m - 1
|
|
34805
34805
|
};
|
|
34806
34806
|
function p(v) {
|
|
34807
|
-
const m = f[v.key], h = Array.from(l.value?.querySelectorAll("[data-ui-tab-value]:not(:disabled)") ?? []),
|
|
34808
|
-
!m ||
|
|
34807
|
+
const m = f[v.key], h = Array.from(l.value?.querySelectorAll("[data-ui-tab-value]:not(:disabled)") ?? []), b = h.indexOf(v.target);
|
|
34808
|
+
!m || b < 0 || (v.preventDefault(), h[m(b, h.length)]?.focus());
|
|
34809
34809
|
}
|
|
34810
34810
|
return (v, m) => (c(), y(oe, null, [
|
|
34811
34811
|
(c(), $(Le(v.$slots.actions ? "div" : t), Oe(Ie(v.$slots.actions ? { class: "ui-section-tabs-row", "data-ui-section-tabs-row": "", "data-syno-pkg-land-ui": "" } : {})), {
|
|
@@ -34829,7 +34829,7 @@ ${e.detail}` : e.name,
|
|
|
34829
34829
|
"relative h-[30px] [@media(pointer:coarse)]:h-9 shrink-0 border-0 bg-transparent px-2 first:pl-0 text-[length:var(--ui-font-size)] font-bold outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
34830
34830
|
o.modelValue === h.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] enabled:hover:bg-[var(--ui-surface-hover)] enabled:hover:text-[var(--ui-text)]"
|
|
34831
34831
|
]),
|
|
34832
|
-
onClick: (
|
|
34832
|
+
onClick: (b) => r("update:modelValue", h.value)
|
|
34833
34833
|
}, V(h.label), 11, SR))), 128)),
|
|
34834
34834
|
D("span", {
|
|
34835
34835
|
class: "ui-tab-indicator",
|
|
@@ -34962,7 +34962,7 @@ const ez = /* @__PURE__ */ B({
|
|
|
34962
34962
|
function h(I) {
|
|
34963
34963
|
m.includes(I) || m.push(I);
|
|
34964
34964
|
}
|
|
34965
|
-
function
|
|
34965
|
+
function b(I) {
|
|
34966
34966
|
const M = m.indexOf(I);
|
|
34967
34967
|
M >= 0 && m.splice(M, 1);
|
|
34968
34968
|
}
|
|
@@ -34977,10 +34977,10 @@ const ez = /* @__PURE__ */ B({
|
|
|
34977
34977
|
fieldWidth: g(() => l.value.fieldWidth ?? xi),
|
|
34978
34978
|
validateMessageDisplayMode: g(() => l.value.validateMessageDisplayMode ?? "popup"),
|
|
34979
34979
|
registerField: h,
|
|
34980
|
-
unregisterField:
|
|
34980
|
+
unregisterField: b
|
|
34981
34981
|
})
|
|
34982
34982
|
);
|
|
34983
|
-
async function
|
|
34983
|
+
async function w(I = null, M = {}) {
|
|
34984
34984
|
const H = await Promise.all(
|
|
34985
34985
|
[...m].map(async (N) => ({ error: await N.validate(I) ?? void 0, field: N }))
|
|
34986
34986
|
), X = H.every((N) => !N.error);
|
|
@@ -35004,7 +35004,7 @@ const ez = /* @__PURE__ */ B({
|
|
|
35004
35004
|
function T(I) {
|
|
35005
35005
|
o("submit", I);
|
|
35006
35006
|
}
|
|
35007
|
-
return a({ fields: m, validate:
|
|
35007
|
+
return a({ fields: m, validate: w, validateField: x, resetFields: C, commit: E, isDirty: k }), (I, M) => (c(), y("form", {
|
|
35008
35008
|
ref_key: "root",
|
|
35009
35009
|
ref: s,
|
|
35010
35010
|
style: Ce(v.value),
|
|
@@ -35176,7 +35176,7 @@ const NR = ["data-direction", "data-status"], KR = ["id", "for"], WR = {
|
|
|
35176
35176
|
label: `form-item-${v}-label`,
|
|
35177
35177
|
description: `form-item-${v}-description`,
|
|
35178
35178
|
message: `form-item-${v}-message`
|
|
35179
|
-
}, h = P(m.control),
|
|
35179
|
+
}, h = P(m.control), b = P([]), w = g(() => o.modelValue !== void 0), x = P(o.initialValue), C = g(() => w.value ? o.modelValue : x.value);
|
|
35180
35180
|
function E(Ee, Ve) {
|
|
35181
35181
|
if (Object.is(Ee, Ve)) return !0;
|
|
35182
35182
|
if (Array.isArray(Ee) && Array.isArray(Ve))
|
|
@@ -35188,10 +35188,10 @@ const NR = ["data-direction", "data-status"], KR = ["id", "for"], WR = {
|
|
|
35188
35188
|
return !1;
|
|
35189
35189
|
}
|
|
35190
35190
|
const k = P(
|
|
35191
|
-
o.initialValue !== void 0 ? o.initialValue :
|
|
35191
|
+
o.initialValue !== void 0 ? o.initialValue : w.value ? o.modelValue : void 0
|
|
35192
35192
|
), T = g(() => !E(C.value, k.value));
|
|
35193
35193
|
function I(Ee) {
|
|
35194
|
-
|
|
35194
|
+
w.value || (x.value = Ee);
|
|
35195
35195
|
}
|
|
35196
35196
|
function M(Ee) {
|
|
35197
35197
|
k.value = Ee;
|
|
@@ -35269,7 +35269,7 @@ const NR = ["data-direction", "data-status"], KR = ["id", "for"], WR = {
|
|
|
35269
35269
|
K.value = Ee;
|
|
35270
35270
|
}
|
|
35271
35271
|
function le() {
|
|
35272
|
-
Se++, X.value = "", N.value = "", R.value = "", F.value = "", U.value = !1, o.initialValue !== void 0 && (
|
|
35272
|
+
Se++, X.value = "", N.value = "", R.value = "", F.value = "", U.value = !1, o.initialValue !== void 0 && (w.value ? r("update:modelValue", o.initialValue) : x.value = o.initialValue);
|
|
35273
35273
|
}
|
|
35274
35274
|
function Te() {
|
|
35275
35275
|
const Ee = p.value;
|
|
@@ -35289,10 +35289,10 @@ const NR = ["data-direction", "data-status"], KR = ["id", "for"], WR = {
|
|
|
35289
35289
|
const Ye = pt({
|
|
35290
35290
|
controlId: h,
|
|
35291
35291
|
defaultControlId: m.control,
|
|
35292
|
-
claimControl: (Ee) => (
|
|
35293
|
-
isPrimaryControl: (Ee) =>
|
|
35292
|
+
claimControl: (Ee) => (b.value.push(Ee), b.value[0] === Ee),
|
|
35293
|
+
isPrimaryControl: (Ee) => b.value[0] === Ee,
|
|
35294
35294
|
releaseControl: (Ee) => {
|
|
35295
|
-
|
|
35295
|
+
b.value[0] === Ee && (h.value = m.control), b.value = b.value.filter((Ve) => Ve !== Ee);
|
|
35296
35296
|
},
|
|
35297
35297
|
labelId: g(() => ie.value ? m.label : void 0),
|
|
35298
35298
|
setControlId: (Ee) => {
|
|
@@ -35746,26 +35746,26 @@ const dz = /* @__PURE__ */ B({
|
|
|
35746
35746
|
return m ? s(m.getBoundingClientRect()) : null;
|
|
35747
35747
|
}
|
|
35748
35748
|
function d() {
|
|
35749
|
-
const m = t.value, h = n.value,
|
|
35750
|
-
if (!m || !h || !
|
|
35749
|
+
const m = t.value, h = n.value, b = u();
|
|
35750
|
+
if (!m || !h || !b) {
|
|
35751
35751
|
o.value = { affixed: !1, top: 0, left: 0, width: 0, height: 0 };
|
|
35752
35752
|
return;
|
|
35753
35753
|
}
|
|
35754
|
-
const
|
|
35754
|
+
const w = m.getBoundingClientRect(), x = h.getBoundingClientRect().height;
|
|
35755
35755
|
o.value = pM(
|
|
35756
35756
|
{
|
|
35757
|
-
container:
|
|
35758
|
-
element: { top:
|
|
35757
|
+
container: b,
|
|
35758
|
+
element: { top: w.top, bottom: w.top + x, left: w.left, width: w.width }
|
|
35759
35759
|
},
|
|
35760
35760
|
{ fix: a.fix, offsetTop: a.offsetTop, offsetBottom: a.offsetBottom }
|
|
35761
35761
|
);
|
|
35762
35762
|
}
|
|
35763
35763
|
function f(m) {
|
|
35764
35764
|
const h = new Set(m ?? []);
|
|
35765
|
-
for (const
|
|
35766
|
-
for (const
|
|
35765
|
+
for (const b of l) h.has(b) || b.removeEventListener("scroll", d);
|
|
35766
|
+
for (const b of h) l.has(b) || b.addEventListener("scroll", d, { passive: !0 });
|
|
35767
35767
|
l.clear();
|
|
35768
|
-
for (const
|
|
35768
|
+
for (const b of h) l.add(b);
|
|
35769
35769
|
}
|
|
35770
35770
|
qe(() => {
|
|
35771
35771
|
window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), f(a.scrollContainers), typeof ResizeObserver < "u" && t.value && (r = new ResizeObserver(d), r.observe(t.value)), d();
|
|
@@ -35828,7 +35828,7 @@ const mM = {
|
|
|
35828
35828
|
},
|
|
35829
35829
|
emits: ["clickItem"],
|
|
35830
35830
|
setup(e, { emit: a }) {
|
|
35831
|
-
const t = Ke(), n = e, o = a, r = P(null), l = P(null), s = P(null), u = P(null), d = P(null), f = P(!1), p = qt(() => r.value ?? void 0, () => f.value), v = P(Number.POSITIVE_INFINITY), m = P(!1), h = P(0),
|
|
35831
|
+
const t = Ke(), n = e, o = a, r = P(null), l = P(null), s = P(null), u = P(null), d = P(null), f = P(!1), p = qt(() => r.value ?? void 0, () => f.value), v = P(Number.POSITIVE_INFINITY), m = P(!1), h = P(0), b = P(0), w = P(0), x = g(() => n.items.slice(0, v.value)), C = g(() => n.items.slice(v.value)), E = g(
|
|
35832
35832
|
() => n.getMoreButtonText ? n.getMoreButtonText({ visibleItems: x.value, overflowItems: C.value }) : t("More")
|
|
35833
35833
|
), k = g(
|
|
35834
35834
|
() => n.getMoreButtonText ? n.getMoreButtonText({ visibleItems: [], overflowItems: n.items }) : t("More")
|
|
@@ -35843,7 +35843,7 @@ const mM = {
|
|
|
35843
35843
|
function H() {
|
|
35844
35844
|
const K = l.value;
|
|
35845
35845
|
if (!K) return;
|
|
35846
|
-
if (h.value = s.value?.getBoundingClientRect().width ?? 0,
|
|
35846
|
+
if (h.value = s.value?.getBoundingClientRect().width ?? 0, b.value = u.value?.getBoundingClientRect().width ?? 0, w.value = d.value?.getBoundingClientRect().width ?? 0, !n.items.length) {
|
|
35847
35847
|
v.value = 0, m.value = !1;
|
|
35848
35848
|
return;
|
|
35849
35849
|
}
|
|
@@ -35882,7 +35882,7 @@ const mM = {
|
|
|
35882
35882
|
const A = K.menuItems?.find((W) => W.id === U);
|
|
35883
35883
|
A && o("clickItem", A);
|
|
35884
35884
|
}
|
|
35885
|
-
const F = g(() => ({ right: `${
|
|
35885
|
+
const F = g(() => ({ right: `${b.value + w.value}px` }));
|
|
35886
35886
|
return (K, U) => (c(), y("div", {
|
|
35887
35887
|
ref_key: "rootRef",
|
|
35888
35888
|
ref: r,
|