@synopackageland/ui 0.20.15 → 0.20.16
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 +5 -0
- package/dist/composables/openerFocus.d.ts +13 -3
- package/dist/index.js +2038 -2024
- package/dist/json-preview/preview.js +750 -736
- package/dist/reka-runtime.json +1 -1
- package/docs/release-checks.md +1 -1
- package/package.json +91 -1
|
@@ -1291,7 +1291,7 @@ const kr = [];
|
|
|
1291
1291
|
let xo = null, br = 0;
|
|
1292
1292
|
const ym = /* @__PURE__ */ Promise.resolve();
|
|
1293
1293
|
let Wi = null;
|
|
1294
|
-
function
|
|
1294
|
+
function Le(e) {
|
|
1295
1295
|
const t = Wi || ym;
|
|
1296
1296
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1297
1297
|
}
|
|
@@ -2246,7 +2246,7 @@ const mu = (e) => e ? uv(e) ? zs(e) : mu(e.parent) : null, ma = (
|
|
|
2246
2246
|
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
2247
2247
|
yc(e.update);
|
|
2248
2248
|
}),
|
|
2249
|
-
$nextTick: (e) => e.n || (e.n =
|
|
2249
|
+
$nextTick: (e) => e.n || (e.n = Le.bind(e.proxy)),
|
|
2250
2250
|
$watch: (e) => r_.bind(e)
|
|
2251
2251
|
})
|
|
2252
2252
|
), xl = (e, t) => e !== Je && !e.__isScriptSetup && rt(e, t), b_ = {
|
|
@@ -3821,7 +3821,7 @@ function B_(e, t) {
|
|
|
3821
3821
|
}, $e = (S) => {
|
|
3822
3822
|
const { type: O, el: N, anchor: Z, transition: H } = S;
|
|
3823
3823
|
if (O === ye) {
|
|
3824
|
-
|
|
3824
|
+
Fe(N, Z);
|
|
3825
3825
|
return;
|
|
3826
3826
|
}
|
|
3827
3827
|
if (O === kl) {
|
|
@@ -3836,7 +3836,7 @@ function B_(e, t) {
|
|
|
3836
3836
|
fe ? fe(S.el, J, de) : de();
|
|
3837
3837
|
} else
|
|
3838
3838
|
J();
|
|
3839
|
-
},
|
|
3839
|
+
}, Fe = (S, O) => {
|
|
3840
3840
|
let N;
|
|
3841
3841
|
for (; S !== O; )
|
|
3842
3842
|
N = p(S), r(S), S = N;
|
|
@@ -10241,9 +10241,9 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
10241
10241
|
if ($) {
|
|
10242
10242
|
i.push(`AVAILABLE COMPONENTS (${e.componentNames.length}):`), i.push("");
|
|
10243
10243
|
for (const [re, pe] of Object.entries($)) {
|
|
10244
|
-
const _e = pe.props ? bn(pe.props) : "{}", $e = pe.slots ?? [],
|
|
10244
|
+
const _e = pe.props ? bn(pe.props) : "{}", $e = pe.slots ?? [], Fe = $e.filter((ot) => ot !== "default"), tt = $e.includes("default"), nt = h ? [
|
|
10245
10245
|
tt ? "accepts children" : "",
|
|
10246
|
-
|
|
10246
|
+
Fe.length > 0 ? `slots: ${Fe.join(", ")}` : ""
|
|
10247
10247
|
].filter(Boolean).join("; ") : $e.length > 0 ? "accepts children" : "", Ke = nt ? ` [${nt}]` : "", at = pe.events && pe.events.length > 0 ? ` [events: ${pe.events.join(", ")}]` : "", Ze = pe.description ? ` - ${pe.description}` : "";
|
|
10248
10248
|
i.push(`- ${re}: ${_e}${Ze}${Ke}${at}`);
|
|
10249
10249
|
}
|
|
@@ -14585,7 +14585,7 @@ function Ft(e, t, n, o = {}) {
|
|
|
14585
14585
|
const x = /* @__PURE__ */ F(y());
|
|
14586
14586
|
let E = !1;
|
|
14587
14587
|
return ie(() => e[t], (b) => {
|
|
14588
|
-
E || (E = !0, x.value = v(b),
|
|
14588
|
+
E || (E = !0, x.value = v(b), Le(() => E = !1));
|
|
14589
14589
|
}), ie(x, (b) => {
|
|
14590
14590
|
!E && (b !== e[t] || c) && w(b);
|
|
14591
14591
|
}, { deep: c }), x;
|
|
@@ -15568,7 +15568,7 @@ class RO {
|
|
|
15568
15568
|
restoreFocus(t) {
|
|
15569
15569
|
if (!this.canFocus()) return;
|
|
15570
15570
|
const n = this.closingFocusTarget ?? t;
|
|
15571
|
-
|
|
15571
|
+
Le(() => {
|
|
15572
15572
|
this.canFocus() && (n?.isConnected && this.belongs(n) && !n.closest("[inert]") ? gr(n) : gr(this.top?.element ?? this.root.value));
|
|
15573
15573
|
});
|
|
15574
15574
|
}
|
|
@@ -15648,7 +15648,7 @@ class RO {
|
|
|
15648
15648
|
const a = this.top;
|
|
15649
15649
|
if (!a || a.element.contains(n) || [...this.branches].some((s) => s.contains(n))) return;
|
|
15650
15650
|
const i = new CustomEvent("dismissableLayer.pointerDownOutside", { cancelable: !0, detail: { originalEvent: t } });
|
|
15651
|
-
Object.defineProperty(i, "target", { value: n }), a.emits("pointerDownOutside", i), a.emits("interactOutside", i),
|
|
15651
|
+
Object.defineProperty(i, "target", { value: n }), a.emits("pointerDownOutside", i), a.emits("interactOutside", i), Le(() => {
|
|
15652
15652
|
!i.defaultPrevented && this.top === a && a.emits("dismiss");
|
|
15653
15653
|
});
|
|
15654
15654
|
};
|
|
@@ -15669,7 +15669,7 @@ class RO {
|
|
|
15669
15669
|
ie([t, n], ([a, i], s, l) => {
|
|
15670
15670
|
if (!a || !i || this.disposed) return;
|
|
15671
15671
|
const c = a.ownerDocument.activeElement, u = this.belongs(c) || this.pointerIntent, f = { element: a, trapped: o(), requestedEpoch: u ? this.focusEpoch : void 0 };
|
|
15672
|
-
this.scopes.push(f),
|
|
15672
|
+
this.scopes.push(f), Le(() => {
|
|
15673
15673
|
if (this.disposed || !this.scopes.includes(f)) return;
|
|
15674
15674
|
const p = new Event("focusScope.autoFocusOnMount", { cancelable: !0 });
|
|
15675
15675
|
u || p.preventDefault(), r("mountAutoFocus", p);
|
|
@@ -15679,7 +15679,7 @@ class RO {
|
|
|
15679
15679
|
const p = this.canFocus();
|
|
15680
15680
|
this.scopes = this.scopes.filter((m) => m !== f);
|
|
15681
15681
|
const h = new Event("focusScope.autoFocusOnUnmount", { cancelable: !0 });
|
|
15682
|
-
(!p || this.disposed) && h.preventDefault(), this.closingFocusTarget = c, r("unmountAutoFocus", h), this.closingFocusTarget = void 0,
|
|
15682
|
+
(!p || this.disposed) && h.preventDefault(), this.closingFocusTarget = c, r("unmountAutoFocus", h), this.closingFocusTarget = void 0, Le(() => {
|
|
15683
15683
|
!h.defaultPrevented && p && !this.disposed && this.restoreFocus(c);
|
|
15684
15684
|
});
|
|
15685
15685
|
});
|
|
@@ -15754,7 +15754,7 @@ const ay = MO(), Ep = /* @__PURE__ */ Symbol("useBodyScrollLock"), NO = /* @__PU
|
|
|
15754
15754
|
padding: 0,
|
|
15755
15755
|
margin: 0
|
|
15756
15756
|
};
|
|
15757
|
-
m > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${m}px`), document.body.style.overflow = "hidden"), vp && (a = it(document, "touchmove", (w) => LO(w), { passive: !1 })),
|
|
15757
|
+
m > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${m}px`), document.body.style.overflow = "hidden"), vp && (a = it(document, "touchmove", (w) => LO(w), { passive: !1 })), Le(() => {
|
|
15758
15758
|
o.value && (ny(document, Ep), document.body.style.overflow = "hidden");
|
|
15759
15759
|
});
|
|
15760
15760
|
}, {
|
|
@@ -15802,7 +15802,7 @@ function qO(e) {
|
|
|
15802
15802
|
l.data && (FO.test(l.data) ? (n.value = !0, o.value = !0) : BO() && !o.value && (n.value = !1));
|
|
15803
15803
|
}
|
|
15804
15804
|
function s(l) {
|
|
15805
|
-
|
|
15805
|
+
Le(() => {
|
|
15806
15806
|
t.value = !1, e?.(l);
|
|
15807
15807
|
});
|
|
15808
15808
|
}
|
|
@@ -16269,7 +16269,7 @@ function oT(e, t) {
|
|
|
16269
16269
|
};
|
|
16270
16270
|
ie(e, async (y, w) => {
|
|
16271
16271
|
const x = w !== y;
|
|
16272
|
-
if (await
|
|
16272
|
+
if (await Le(), x) {
|
|
16273
16273
|
const E = o.value, b = _i(t.value);
|
|
16274
16274
|
y ? (c("MOUNT"), u("enter"), b === "none" && u("after-enter")) : b === "none" || b === "undefined" || n.value?.display === "none" ? (c("UNMOUNT"), u("leave"), u("after-leave")) : w && E !== b ? (c("ANIMATION_OUT"), u("leave")) : (c("UNMOUNT"), u("after-leave"));
|
|
16275
16275
|
}
|
|
@@ -16510,7 +16510,7 @@ function hT(e, t, n = !0) {
|
|
|
16510
16510
|
if (!pn || !Pe(n)) return;
|
|
16511
16511
|
const a = t?.value?.ownerDocument ?? globalThis.document, i = async (s) => {
|
|
16512
16512
|
if (!t?.value) return;
|
|
16513
|
-
await
|
|
16513
|
+
await Le(), await Le();
|
|
16514
16514
|
const l = s.target;
|
|
16515
16515
|
!t.value || !l || cy(t.value, l) || s.target && !o.value && Xa(dT, e, { originalEvent: s });
|
|
16516
16516
|
};
|
|
@@ -16568,7 +16568,7 @@ var mT = /* @__PURE__ */ V({
|
|
|
16568
16568
|
return c.value >= y;
|
|
16569
16569
|
}), p = pT(async (m) => {
|
|
16570
16570
|
const v = [...yo.branches].some((y) => y?.contains(m.target));
|
|
16571
|
-
!n.present || !f.value || v || (o("pointerDownOutside", m), o("interactOutside", m), await
|
|
16571
|
+
!n.present || !f.value || v || (o("pointerDownOutside", m), o("interactOutside", m), await Le(), m.defaultPrevented || o("dismiss"));
|
|
16572
16572
|
}, a, () => n.present), h = hT((m) => {
|
|
16573
16573
|
const v = [...yo.branches].some((y) => y?.contains(m.target));
|
|
16574
16574
|
!n.present || v || (o("focusOutside", m), o("interactOutside", m), m.defaultPrevented || o("dismiss"));
|
|
@@ -16766,7 +16766,7 @@ var ST = /* @__PURE__ */ V({
|
|
|
16766
16766
|
}
|
|
16767
16767
|
qt(async (p) => {
|
|
16768
16768
|
const h = a.value;
|
|
16769
|
-
if (await
|
|
16769
|
+
if (await Le(), !h) return;
|
|
16770
16770
|
n.present !== !1 && l.add(c);
|
|
16771
16771
|
const m = dt();
|
|
16772
16772
|
!h.contains(m) && n.present !== !1 && u(h, m), p(() => {
|
|
@@ -16784,7 +16784,7 @@ var ST = /* @__PURE__ */ V({
|
|
|
16784
16784
|
return;
|
|
16785
16785
|
}
|
|
16786
16786
|
if (p !== !0 || h !== !1) return;
|
|
16787
|
-
l.add(c), await
|
|
16787
|
+
l.add(c), await Le();
|
|
16788
16788
|
const m = a.value;
|
|
16789
16789
|
if (!m) return;
|
|
16790
16790
|
const v = dt();
|
|
@@ -17756,12 +17756,12 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17756
17756
|
q.value = !0;
|
|
17757
17757
|
}
|
|
17758
17758
|
function $e() {
|
|
17759
|
-
|
|
17759
|
+
Le(() => {
|
|
17760
17760
|
q.value = !1;
|
|
17761
17761
|
});
|
|
17762
17762
|
}
|
|
17763
|
-
function
|
|
17764
|
-
|
|
17763
|
+
function Fe() {
|
|
17764
|
+
Le(() => {
|
|
17765
17765
|
const S = new KeyboardEvent("keydown", { key: "PageUp" });
|
|
17766
17766
|
at(S);
|
|
17767
17767
|
});
|
|
@@ -17827,7 +17827,7 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17827
17827
|
}
|
|
17828
17828
|
async function ot(S, O = !0) {
|
|
17829
17829
|
if (pn)
|
|
17830
|
-
if (await
|
|
17830
|
+
if (await Le(), M.value) U.trigger({
|
|
17831
17831
|
event: S,
|
|
17832
17832
|
scroll: O
|
|
17833
17833
|
});
|
|
@@ -17840,7 +17840,7 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17840
17840
|
return ie($, () => {
|
|
17841
17841
|
if (!P.value) {
|
|
17842
17842
|
const S = yt;
|
|
17843
|
-
yt = !0,
|
|
17843
|
+
yt = !0, Le(() => {
|
|
17844
17844
|
ot(void 0, S);
|
|
17845
17845
|
});
|
|
17846
17846
|
}
|
|
@@ -17850,7 +17850,7 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17850
17850
|
}), t({
|
|
17851
17851
|
highlightedElement: A,
|
|
17852
17852
|
highlightItem: he,
|
|
17853
|
-
highlightFirstItem:
|
|
17853
|
+
highlightFirstItem: Fe,
|
|
17854
17854
|
highlightSelected: ot,
|
|
17855
17855
|
getItems: p
|
|
17856
17856
|
}), s$({
|
|
@@ -17879,7 +17879,7 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17879
17879
|
onKeydownTypeAhead: pe,
|
|
17880
17880
|
onCompositionStart: _e,
|
|
17881
17881
|
onCompositionEnd: $e,
|
|
17882
|
-
highlightFirstItem:
|
|
17882
|
+
highlightFirstItem: Fe
|
|
17883
17883
|
}), (S, O) => (g(), L(d(Te), {
|
|
17884
17884
|
ref_key: "primitiveElement",
|
|
17885
17885
|
ref: v,
|
|
@@ -17890,7 +17890,7 @@ var c$ = /* @__PURE__ */ V({
|
|
|
17890
17890
|
onPointerleave: tt,
|
|
17891
17891
|
onFocusout: O[0] || (O[0] = async (N) => {
|
|
17892
17892
|
const Z = N.relatedTarget || N.target;
|
|
17893
|
-
await
|
|
17893
|
+
await Le(), A.value && d(y) && !d(y).contains(Z) && tt(N);
|
|
17894
17894
|
})
|
|
17895
17895
|
}, {
|
|
17896
17896
|
default: R(() => [z(S.$slots, "default", { modelValue: d($) }), d(b) && e.name ? (g(), L(d(ti), {
|
|
@@ -19511,7 +19511,7 @@ const TI = ["dir"], Ay = {
|
|
|
19511
19511
|
positionStrategy: "fixed",
|
|
19512
19512
|
updatePositionStrategy: "optimized",
|
|
19513
19513
|
prioritizePosition: !1
|
|
19514
|
-
}, [
|
|
19514
|
+
}, [Aj, $I] = /* @__PURE__ */ Qe("PopperContent");
|
|
19515
19515
|
var II = /* @__PURE__ */ V({
|
|
19516
19516
|
inheritAttrs: !1,
|
|
19517
19517
|
__name: "PopperContent",
|
|
@@ -19920,7 +19920,7 @@ var NI = /* @__PURE__ */ V({
|
|
|
19920
19920
|
const y = v.indexOf(h.currentTarget);
|
|
19921
19921
|
v = n.loop.value ? i$(v, y + 1) : v.slice(y + 1);
|
|
19922
19922
|
}
|
|
19923
|
-
|
|
19923
|
+
Le(() => my(v));
|
|
19924
19924
|
}
|
|
19925
19925
|
}
|
|
19926
19926
|
const { forwardRef: c, currentElement: u } = Se(), f = /* @__PURE__ */ Ot();
|
|
@@ -20433,7 +20433,7 @@ var XI = /* @__PURE__ */ V({
|
|
|
20433
20433
|
const _e = y.value?.getItems() ?? [];
|
|
20434
20434
|
if (W && (B.key === "Tab" && a.modal.value && B.preventDefault(), !he && re && !oe && E(B.key, _e)), B.target !== x.value || !ET.includes(B.key)) return;
|
|
20435
20435
|
B.preventDefault();
|
|
20436
|
-
const $e = [..._e.map((
|
|
20436
|
+
const $e = [..._e.map((Fe) => Fe.ref)];
|
|
20437
20437
|
fy.includes(B.key) && $e.reverse(), qu($e);
|
|
20438
20438
|
}
|
|
20439
20439
|
function M(B) {
|
|
@@ -20589,7 +20589,7 @@ var XI = /* @__PURE__ */ V({
|
|
|
20589
20589
|
}
|
|
20590
20590
|
}
|
|
20591
20591
|
async function c(u) {
|
|
20592
|
-
if (await
|
|
20592
|
+
if (await Le(), u.defaultPrevented || !zr(u) || n.highlightedElement.value !== r.value) return;
|
|
20593
20593
|
!n.onItemLeave(u) && n.highlightedElement.value === r.value && (n.highlightedElement.value = void 0);
|
|
20594
20594
|
}
|
|
20595
20595
|
return (u, f) => (g(), L(d(a), { value: { textValue: e.textValue } }, {
|
|
@@ -20607,10 +20607,10 @@ var XI = /* @__PURE__ */ V({
|
|
|
20607
20607
|
onPointerleave: c,
|
|
20608
20608
|
onFocus: f[0] || (f[0] = async (p) => {
|
|
20609
20609
|
const h = p.currentTarget;
|
|
20610
|
-
await
|
|
20610
|
+
await Le(), !(p.defaultPrevented || e.disabled) && (i.value = !0, d(n).highlightedElement.value = h);
|
|
20611
20611
|
}),
|
|
20612
20612
|
onBlur: f[1] || (f[1] = async (p) => {
|
|
20613
|
-
await
|
|
20613
|
+
await Le(), !p.defaultPrevented && (i.value = !1);
|
|
20614
20614
|
})
|
|
20615
20615
|
}), {
|
|
20616
20616
|
default: R(() => [z(u.$slots, "default")]),
|
|
@@ -20655,7 +20655,7 @@ var XI = /* @__PURE__ */ V({
|
|
|
20655
20655
|
bubbles: !0,
|
|
20656
20656
|
cancelable: !0
|
|
20657
20657
|
});
|
|
20658
|
-
o("select", f), await
|
|
20658
|
+
o("select", f), await Le(), f.defaultPrevented ? l.value = !1 : i.onClose();
|
|
20659
20659
|
}
|
|
20660
20660
|
}
|
|
20661
20661
|
return (u, f) => (g(), L($y, le(n, {
|
|
@@ -20665,7 +20665,7 @@ var XI = /* @__PURE__ */ V({
|
|
|
20665
20665
|
l.value = !0;
|
|
20666
20666
|
}),
|
|
20667
20667
|
onPointerup: f[1] || (f[1] = async (p) => {
|
|
20668
|
-
await
|
|
20668
|
+
await Le(), !p.defaultPrevented && (l.value || p.currentTarget?.click());
|
|
20669
20669
|
}),
|
|
20670
20670
|
onKeydown: f[2] || (f[2] = async (p) => {
|
|
20671
20671
|
const h = d(s).searchRef.value !== "";
|
|
@@ -21108,7 +21108,7 @@ var nD = /* @__PURE__ */ V({
|
|
|
21108
21108
|
}, 8, ["present"]));
|
|
21109
21109
|
}
|
|
21110
21110
|
}), dD = cD;
|
|
21111
|
-
const [
|
|
21111
|
+
const [Pj, fD] = /* @__PURE__ */ Qe("MenuGroup");
|
|
21112
21112
|
var pD = /* @__PURE__ */ V({
|
|
21113
21113
|
__name: "MenuGroup",
|
|
21114
21114
|
props: {
|
|
@@ -21507,7 +21507,7 @@ var ED = /* @__PURE__ */ V({
|
|
|
21507
21507
|
}
|
|
21508
21508
|
async function f(p) {
|
|
21509
21509
|
const h = i.searchRef.value !== "";
|
|
21510
|
-
t.disabled || h && p.key === " " || AT[r.dir.value].includes(p.key) && (o.onOpenChange(!0), await
|
|
21510
|
+
t.disabled || h && p.key === " " || AT[r.dir.value].includes(p.key) && (o.onOpenChange(!0), await Le(), o.content.value?.focus(), p.preventDefault());
|
|
21511
21511
|
}
|
|
21512
21512
|
return (p, h) => (g(), L(Oy, { "as-child": "" }, {
|
|
21513
21513
|
default: R(() => [K($y, le(d(n), {
|
|
@@ -21929,7 +21929,7 @@ function eR(e) {
|
|
|
21929
21929
|
}, re = 0, pe = null, _e = {
|
|
21930
21930
|
x: 0,
|
|
21931
21931
|
y: 0
|
|
21932
|
-
}, $e = null,
|
|
21932
|
+
}, $e = null, Fe = null, tt = !1;
|
|
21933
21933
|
function nt(ne, G) {
|
|
21934
21934
|
return typeof r == "function" ? Math.max(0, r({
|
|
21935
21935
|
element: ne,
|
|
@@ -21975,7 +21975,7 @@ function eR(e) {
|
|
|
21975
21975
|
}, $e = null;
|
|
21976
21976
|
}
|
|
21977
21977
|
function S() {
|
|
21978
|
-
yt(), U = !1, B = null, Y = null, W = !1, oe = !1,
|
|
21978
|
+
yt(), U = !1, B = null, Y = null, W = !1, oe = !1, Fe = null, tt = !1;
|
|
21979
21979
|
}
|
|
21980
21980
|
function O(ne, G) {
|
|
21981
21981
|
yt(), LD(ne), k = G, q = G, he = {
|
|
@@ -22058,7 +22058,7 @@ function eR(e) {
|
|
|
22058
22058
|
O(ue, {
|
|
22059
22059
|
x: ne.clientX,
|
|
22060
22060
|
y: ne.clientY
|
|
22061
|
-
}),
|
|
22061
|
+
}), Fe = ne.pointerId, tt = !0;
|
|
22062
22062
|
try {
|
|
22063
22063
|
ue.setPointerCapture(ne.pointerId);
|
|
22064
22064
|
} catch {
|
|
@@ -22066,7 +22066,7 @@ function eR(e) {
|
|
|
22066
22066
|
}
|
|
22067
22067
|
}
|
|
22068
22068
|
function fe(ne) {
|
|
22069
|
-
if (!tt || ne.pointerId !==
|
|
22069
|
+
if (!tt || ne.pointerId !== Fe) return;
|
|
22070
22070
|
const G = t.value;
|
|
22071
22071
|
if (G) {
|
|
22072
22072
|
if ((ne.buttons & 1) === 0) {
|
|
@@ -22080,7 +22080,7 @@ function eR(e) {
|
|
|
22080
22080
|
}
|
|
22081
22081
|
}
|
|
22082
22082
|
function de(ne) {
|
|
22083
|
-
if (!tt || ne.pointerId !==
|
|
22083
|
+
if (!tt || ne.pointerId !== Fe) return;
|
|
22084
22084
|
const G = t.value;
|
|
22085
22085
|
if (!G) {
|
|
22086
22086
|
S();
|
|
@@ -22262,7 +22262,7 @@ var tR = /* @__PURE__ */ V({
|
|
|
22262
22262
|
onDismiss() {
|
|
22263
22263
|
if (!u.value) {
|
|
22264
22264
|
if (!r.onOpenChange(!1, "swipe")) return !1;
|
|
22265
|
-
|
|
22265
|
+
Le(() => {
|
|
22266
22266
|
r.open.value && m();
|
|
22267
22267
|
});
|
|
22268
22268
|
}
|
|
@@ -22969,7 +22969,7 @@ function SR(e) {
|
|
|
22969
22969
|
function $e(O) {
|
|
22970
22970
|
q && a && a === O.target && a.focus({ preventScroll: !0 });
|
|
22971
22971
|
}
|
|
22972
|
-
function
|
|
22972
|
+
function Fe(O) {
|
|
22973
22973
|
if (c = !1, B(), !he(O.target)) {
|
|
22974
22974
|
oe();
|
|
22975
22975
|
return;
|
|
@@ -23045,8 +23045,8 @@ function SR(e) {
|
|
|
23045
23045
|
}
|
|
23046
23046
|
wR(H.clickTarget, N), H.clickTarget !== H.focusTarget && dt() === H.focusTarget && H.focusTarget.focus({ preventScroll: !0 }), Ze();
|
|
23047
23047
|
}
|
|
23048
|
-
x.addEventListener("focus", $e, !0), x.addEventListener("focusin",
|
|
23049
|
-
x.removeEventListener("focus", $e, !0), x.removeEventListener("focusin",
|
|
23048
|
+
x.addEventListener("focus", $e, !0), x.addEventListener("focusin", Fe, !0), x.addEventListener("focusout", tt, !0), x.addEventListener("pointerdown", at, !0), E.addEventListener("scroll", Ke), E.visualViewport?.addEventListener("resize", nt), E.visualViewport?.addEventListener("scroll", nt), E.visualViewport && E.addEventListener("resize", nt), w.addEventListener("touchstart", ot, { passive: !0 }), w.addEventListener("touchmove", yt, { passive: !0 }), w.addEventListener("touchend", S), w.addEventListener("touchcancel", Ze), he(dt()) && pe(), y(() => {
|
|
23049
|
+
x.removeEventListener("focus", $e, !0), x.removeEventListener("focusin", Fe, !0), x.removeEventListener("focusout", tt, !0), x.removeEventListener("pointerdown", at, !0), E.removeEventListener("scroll", Ke), E.visualViewport?.removeEventListener("resize", nt), E.visualViewport?.removeEventListener("scroll", nt), E.removeEventListener("resize", nt), w.removeEventListener("touchstart", ot), w.removeEventListener("touchmove", yt), w.removeEventListener("touchend", S), w.removeEventListener("touchcancel", Ze), B(), Ze(), oe(), T?.remove(), w.style.removeProperty(_t.keyboardInset);
|
|
23050
23050
|
});
|
|
23051
23051
|
});
|
|
23052
23052
|
}
|
|
@@ -23656,7 +23656,7 @@ var OR = /* @__PURE__ */ V({
|
|
|
23656
23656
|
disabled: e.disabled,
|
|
23657
23657
|
"data-state": d(n).open.value ? "open" : "closed",
|
|
23658
23658
|
onClick: i[0] || (i[0] = async (s) => {
|
|
23659
|
-
s.defaultPrevented || !e.disabled && s.button === 0 && s.ctrlKey === !1 && (d(n)?.onOpenToggle(), await
|
|
23659
|
+
s.defaultPrevented || !e.disabled && s.button === 0 && s.ctrlKey === !1 && (d(n)?.onOpenToggle(), await Le(), d(n).open.value && s.preventDefault());
|
|
23660
23660
|
}),
|
|
23661
23661
|
onKeydown: i[1] || (i[1] = Bn((s) => {
|
|
23662
23662
|
e.disabled || s.defaultPrevented || (["Enter", " "].includes(s.key) && d(n).onOpenToggle(), s.key === "ArrowDown" && d(n).onOpenChange(!0), [
|
|
@@ -24667,24 +24667,24 @@ var EM = /* @__PURE__ */ V({
|
|
|
24667
24667
|
const Ke = b.right - P.right, at = window.innerWidth - _.right - Ke, Ze = window.innerWidth - E.right - at, ot = E.width + Ze, yt = Math.max(ot, b.width), S = window.innerWidth - yn, O = _p(at, yn, Math.max(yn, S - yt));
|
|
24668
24668
|
c.value.style.minWidth = `${ot}px`, c.value.style.right = `${O}px`;
|
|
24669
24669
|
}
|
|
24670
|
-
const k = r().map((Ke) => Ke.ref), $ = window.innerHeight - yn * 2, T = p.value.scrollHeight, A = window.getComputedStyle(f.value), D = Number.parseInt(A.borderTopWidth, 10), M = Number.parseInt(A.paddingTop, 10), q = Number.parseInt(A.borderBottomWidth, 10), U = Number.parseInt(A.paddingBottom, 10), B = D + M + T + U + q, Y = Math.min(h.value.offsetHeight * 5, B), W = window.getComputedStyle(p.value), oe = Number.parseInt(W.paddingTop, 10), he = Number.parseInt(W.paddingBottom, 10), re = E.top + E.height / 2 - yn, pe = $ - re, _e = h.value.offsetHeight / 2, $e = h.value.offsetTop + _e,
|
|
24671
|
-
if (
|
|
24670
|
+
const k = r().map((Ke) => Ke.ref), $ = window.innerHeight - yn * 2, T = p.value.scrollHeight, A = window.getComputedStyle(f.value), D = Number.parseInt(A.borderTopWidth, 10), M = Number.parseInt(A.paddingTop, 10), q = Number.parseInt(A.borderBottomWidth, 10), U = Number.parseInt(A.paddingBottom, 10), B = D + M + T + U + q, Y = Math.min(h.value.offsetHeight * 5, B), W = window.getComputedStyle(p.value), oe = Number.parseInt(W.paddingTop, 10), he = Number.parseInt(W.paddingBottom, 10), re = E.top + E.height / 2 - yn, pe = $ - re, _e = h.value.offsetHeight / 2, $e = h.value.offsetTop + _e, Fe = D + M + $e, tt = B - Fe;
|
|
24671
|
+
if (Fe <= re) {
|
|
24672
24672
|
const Ke = h.value === k.at(-1);
|
|
24673
24673
|
c.value.style.bottom = "0px";
|
|
24674
|
-
const at = f.value.clientHeight - p.value.offsetTop - p.value.offsetHeight, Ze = Math.max(pe, _e + (Ke ? he : 0) + at + q), ot =
|
|
24674
|
+
const at = f.value.clientHeight - p.value.offsetTop - p.value.offsetHeight, Ze = Math.max(pe, _e + (Ke ? he : 0) + at + q), ot = Fe + Ze;
|
|
24675
24675
|
c.value.style.height = `${ot}px`;
|
|
24676
24676
|
} else {
|
|
24677
24677
|
const Ke = h.value === k[0];
|
|
24678
24678
|
c.value.style.top = "0px";
|
|
24679
24679
|
const Ze = Math.max(re, D + p.value.offsetTop + (Ke ? oe : 0) + _e) + tt;
|
|
24680
|
-
c.value.style.height = `${Ze}px`, p.value.scrollTop =
|
|
24680
|
+
c.value.style.height = `${Ze}px`, p.value.scrollTop = Fe - re + p.value.offsetTop;
|
|
24681
24681
|
}
|
|
24682
24682
|
c.value.style.margin = `${yn}px 0`, c.value.style.minHeight = `${Y}px`, c.value.style.maxHeight = `${$}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
|
|
24683
24683
|
}
|
|
24684
24684
|
}
|
|
24685
24685
|
const w = /* @__PURE__ */ F("");
|
|
24686
24686
|
je(async () => {
|
|
24687
|
-
await
|
|
24687
|
+
await Le(), y(), f.value && (w.value = window.getComputedStyle(f.value).zIndex);
|
|
24688
24688
|
});
|
|
24689
24689
|
function x(E) {
|
|
24690
24690
|
E && l.value === !0 && (y(), v?.(), l.value = !1);
|
|
@@ -24963,16 +24963,16 @@ var BM = /* @__PURE__ */ V({
|
|
|
24963
24963
|
Xa(m, y, _);
|
|
24964
24964
|
}
|
|
24965
24965
|
async function y(b) {
|
|
24966
|
-
await
|
|
24966
|
+
await Le(), o("select", b), !b.defaultPrevented && (r.value || (a.onValueChange(n.value), a.multiple.value || a.onOpenChange(!1)));
|
|
24967
24967
|
}
|
|
24968
24968
|
async function w(b) {
|
|
24969
|
-
await
|
|
24969
|
+
await Le(), !b.defaultPrevented && (r.value ? i.onItemLeave?.() : b.currentTarget?.focus({ preventScroll: !0 }));
|
|
24970
24970
|
}
|
|
24971
24971
|
async function x(b) {
|
|
24972
|
-
await
|
|
24972
|
+
await Le(), !b.defaultPrevented && b.currentTarget === dt() && i.onItemLeave?.();
|
|
24973
24973
|
}
|
|
24974
24974
|
async function E(b) {
|
|
24975
|
-
await
|
|
24975
|
+
await Le(), !(b.defaultPrevented || i.searchRef?.value !== "" && b.key === " ") && (fM.includes(b.key) && v(b), b.key === " " && b.preventDefault());
|
|
24976
24976
|
}
|
|
24977
24977
|
if (n.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.");
|
|
24978
24978
|
return je(() => {
|
|
@@ -26254,26 +26254,40 @@ typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
|
26254
26254
|
function ys(e) {
|
|
26255
26255
|
e.focus({ preventScroll: !0, focusVisible: Ju });
|
|
26256
26256
|
}
|
|
26257
|
-
const MN = 'button, a[href], input, select, textarea, summary, [tabindex]:not([tabindex="-1"]), [role="menuitem"]';
|
|
26257
|
+
const MN = 'button, a[href], input, select, textarea, summary, [tabindex]:not([tabindex="-1"]), [role="menuitem"]', NN = 120;
|
|
26258
26258
|
let la = null, dh = !1;
|
|
26259
|
-
function
|
|
26259
|
+
function LN() {
|
|
26260
26260
|
dh || typeof document > "u" || (dh = !0, document.addEventListener("pointerdown", (e) => {
|
|
26261
26261
|
const t = e.target instanceof Element ? e.target.closest(MN) : null;
|
|
26262
26262
|
la = t ? { element: t, at: Date.now() } : null;
|
|
26263
26263
|
}, { capture: !0, passive: !0 }));
|
|
26264
26264
|
}
|
|
26265
|
-
function
|
|
26265
|
+
function FN() {
|
|
26266
26266
|
const e = document.activeElement;
|
|
26267
26267
|
return e instanceof HTMLElement && e !== document.body ? e : la && Date.now() - la.at < 1e3 && la.element.isConnected ? la.element : null;
|
|
26268
26268
|
}
|
|
26269
|
+
const zN = (e) => {
|
|
26270
|
+
typeof requestAnimationFrame == "function" ? requestAnimationFrame(e) : setTimeout(e, 16);
|
|
26271
|
+
};
|
|
26269
26272
|
function sb(e) {
|
|
26270
|
-
|
|
26271
|
-
let t = null;
|
|
26272
|
-
return ie(e, (
|
|
26273
|
-
|
|
26274
|
-
}, { flush: "sync", immediate: !0 }), (
|
|
26275
|
-
const
|
|
26276
|
-
t = null
|
|
26273
|
+
LN();
|
|
26274
|
+
let t = null, n = 0;
|
|
26275
|
+
return ie(e, (o) => {
|
|
26276
|
+
!o || typeof document > "u" || (n++, t = FN());
|
|
26277
|
+
}, { flush: "sync", immediate: !0 }), (o) => {
|
|
26278
|
+
const r = t;
|
|
26279
|
+
t = null;
|
|
26280
|
+
const a = ++n;
|
|
26281
|
+
if (o.defaultPrevented || !r?.isConnected) return;
|
|
26282
|
+
o.preventDefault();
|
|
26283
|
+
const i = document.activeElement, s = o.target instanceof Element ? o.target : i instanceof HTMLElement && i !== document.body ? i.closest("[role=dialog]") ?? i : null;
|
|
26284
|
+
let l = 0;
|
|
26285
|
+
const c = () => {
|
|
26286
|
+
if (a !== n || !r.isConnected) return;
|
|
26287
|
+
const u = document.activeElement;
|
|
26288
|
+
u !== r && (u instanceof HTMLElement && u !== document.body && u.isConnected && !s?.contains(u) || (!s?.isConnected && !r.closest("[inert]") && r.focus({ preventScroll: !0 }), !(document.activeElement === r || l++ >= NN) && zN(c)));
|
|
26289
|
+
};
|
|
26290
|
+
Le(c);
|
|
26277
26291
|
};
|
|
26278
26292
|
}
|
|
26279
26293
|
function lb(e) {
|
|
@@ -26290,8 +26304,8 @@ const cb = /* @__PURE__ */ V({
|
|
|
26290
26304
|
setup(e) {
|
|
26291
26305
|
return XA(e.kind), (n, o) => z(n.$slots, "default");
|
|
26292
26306
|
}
|
|
26293
|
-
}),
|
|
26294
|
-
function
|
|
26307
|
+
}), BN = /* @__PURE__ */ new Set(["Enter", "Escape", "Tab"]), qN = 50;
|
|
26308
|
+
function VN(e) {
|
|
26295
26309
|
return e.isComposing || e.keyCode === 229;
|
|
26296
26310
|
}
|
|
26297
26311
|
function db(e, t = {}) {
|
|
@@ -26306,11 +26320,11 @@ function db(e, t = {}) {
|
|
|
26306
26320
|
return n;
|
|
26307
26321
|
},
|
|
26308
26322
|
ownsKey(l) {
|
|
26309
|
-
if (n ||
|
|
26310
|
-
if (!
|
|
26323
|
+
if (n || VN(l)) return !0;
|
|
26324
|
+
if (!BN.has(l.key)) return !1;
|
|
26311
26325
|
const c = a.get(l);
|
|
26312
26326
|
if (c !== void 0) return c;
|
|
26313
|
-
const u = l.timeStamp - o <=
|
|
26327
|
+
const u = l.timeStamp - o <= qN;
|
|
26314
26328
|
return o = -1 / 0, a.set(l, u), u;
|
|
26315
26329
|
},
|
|
26316
26330
|
dispose() {
|
|
@@ -26318,24 +26332,24 @@ function db(e, t = {}) {
|
|
|
26318
26332
|
}
|
|
26319
26333
|
};
|
|
26320
26334
|
}
|
|
26321
|
-
const
|
|
26335
|
+
const jN = '[role="dialog"],[role="alertdialog"],[aria-modal="true"]';
|
|
26322
26336
|
function fh(e, t) {
|
|
26323
|
-
return e.some((n) => n instanceof Element && n.matches(
|
|
26337
|
+
return e.some((n) => n instanceof Element && n.matches(jN) && !t.some((o) => n.contains(o) || o.contains(n)));
|
|
26324
26338
|
}
|
|
26325
|
-
const ul = "data-ui-ignore-outside",
|
|
26339
|
+
const ul = "data-ui-ignore-outside", UN = `[${ul}]`, ou = /* @__PURE__ */ new WeakMap(), ph = /* @__PURE__ */ new WeakSet();
|
|
26326
26340
|
function hh(e) {
|
|
26327
26341
|
return [...e.options.elements()].filter((t) => !!t);
|
|
26328
26342
|
}
|
|
26329
26343
|
function mh(e, t) {
|
|
26330
26344
|
return e.some((n) => n instanceof Node && t.some((o) => o === n || o.contains(n)));
|
|
26331
26345
|
}
|
|
26332
|
-
function
|
|
26346
|
+
function WN(e) {
|
|
26333
26347
|
return e.some((t) => t instanceof Element && t.hasAttribute(ul));
|
|
26334
26348
|
}
|
|
26335
|
-
function
|
|
26349
|
+
function KN(e, t) {
|
|
26336
26350
|
return e.length > 0 && !e.includes(t);
|
|
26337
26351
|
}
|
|
26338
|
-
function
|
|
26352
|
+
function HN(e, t = 400) {
|
|
26339
26353
|
let n = 0;
|
|
26340
26354
|
const o = () => {
|
|
26341
26355
|
e.clearTimeout(n), e.removeEventListener("click", r, !0), e.removeEventListener("pointerdown", o, !0), e.removeEventListener("keydown", o, !0);
|
|
@@ -26344,19 +26358,19 @@ function WN(e, t = 400) {
|
|
|
26344
26358
|
};
|
|
26345
26359
|
return e.addEventListener("click", r, !0), e.addEventListener("pointerdown", o, !0), e.addEventListener("keydown", o, !0), n = e.setTimeout(o, t), o;
|
|
26346
26360
|
}
|
|
26347
|
-
function
|
|
26361
|
+
function ZN(e) {
|
|
26348
26362
|
const t = e.document, n = { layers: [], guard: db(e), teardown: () => {
|
|
26349
26363
|
} }, o = (a) => {
|
|
26350
26364
|
if (ph.has(a)) return;
|
|
26351
26365
|
ph.add(a);
|
|
26352
26366
|
const i = a.composedPath();
|
|
26353
|
-
if (!(
|
|
26367
|
+
if (!(WN(i) || KN(i, t)))
|
|
26354
26368
|
for (const s of [...n.layers].reverse()) {
|
|
26355
26369
|
if (s.disposed) continue;
|
|
26356
26370
|
const l = hh(s);
|
|
26357
26371
|
if (mh(i, l) || fh(i, l)) return;
|
|
26358
26372
|
if (s.options.onOutside?.(a) === "veto") {
|
|
26359
|
-
a.preventDefault(), a.stopImmediatePropagation(),
|
|
26373
|
+
a.preventDefault(), a.stopImmediatePropagation(), HN(e);
|
|
26360
26374
|
return;
|
|
26361
26375
|
}
|
|
26362
26376
|
}
|
|
@@ -26373,8 +26387,8 @@ function KN(e) {
|
|
|
26373
26387
|
e.removeEventListener("pointerdown", o, !0), e.removeEventListener("keydown", r, !0), n.guard.dispose();
|
|
26374
26388
|
}, n;
|
|
26375
26389
|
}
|
|
26376
|
-
function
|
|
26377
|
-
const n = ou.get(e) ??
|
|
26390
|
+
function GN(e, t) {
|
|
26391
|
+
const n = ou.get(e) ?? ZN(e);
|
|
26378
26392
|
ou.set(e, n);
|
|
26379
26393
|
const o = { options: t, disposed: !1 };
|
|
26380
26394
|
return n.layers.push(o), {
|
|
@@ -26390,10 +26404,10 @@ function vh(e) {
|
|
|
26390
26404
|
const t = Pe(e);
|
|
26391
26405
|
return Array.isArray(t) ? [...t] : [t];
|
|
26392
26406
|
}
|
|
26393
|
-
function
|
|
26407
|
+
function YN(e, t, n) {
|
|
26394
26408
|
const o = ie(() => Pe(t), (r, a, i) => {
|
|
26395
26409
|
if (!r || typeof window > "u") return;
|
|
26396
|
-
const s = vh(e).find(Boolean)?.ownerDocument?.defaultView ?? window, l =
|
|
26410
|
+
const s = vh(e).find(Boolean)?.ownerDocument?.defaultView ?? window, l = GN(s, {
|
|
26397
26411
|
elements: () => vh(e),
|
|
26398
26412
|
onOutside: (c) => n.onOutside?.(c),
|
|
26399
26413
|
onEscape: (c) => n.onEscape?.(c)
|
|
@@ -26402,9 +26416,9 @@ function ZN(e, t, n) {
|
|
|
26402
26416
|
}, { immediate: !0, flush: "sync" });
|
|
26403
26417
|
return sr() && Io(o), o;
|
|
26404
26418
|
}
|
|
26405
|
-
const
|
|
26419
|
+
const JN = /* @__PURE__ */ Symbol("syno-overlay-motion");
|
|
26406
26420
|
function fb(e) {
|
|
26407
|
-
const t = Re(
|
|
26421
|
+
const t = Re(JN, "auto");
|
|
26408
26422
|
return () => e() ?? Pe(t);
|
|
26409
26423
|
}
|
|
26410
26424
|
const gh = /* @__PURE__ */ new WeakMap();
|
|
@@ -26419,7 +26433,7 @@ function cl(e) {
|
|
|
26419
26433
|
}
|
|
26420
26434
|
function hb(e, t) {
|
|
26421
26435
|
const n = zn(), o = `[data-ui-layer="${n}"]`;
|
|
26422
|
-
return
|
|
26436
|
+
return YN(
|
|
26423
26437
|
() => typeof document > "u" ? null : document.querySelector(o),
|
|
26424
26438
|
e,
|
|
26425
26439
|
{
|
|
@@ -26429,13 +26443,13 @@ function hb(e, t) {
|
|
|
26429
26443
|
}
|
|
26430
26444
|
function mb(e) {
|
|
26431
26445
|
const t = e.target;
|
|
26432
|
-
t instanceof Element && t.closest(
|
|
26446
|
+
t instanceof Element && t.closest(UN) && e.preventDefault();
|
|
26433
26447
|
}
|
|
26434
|
-
function
|
|
26448
|
+
function XN(e) {
|
|
26435
26449
|
typeof matchMedia == "function" && matchMedia("(pointer: coarse)").matches && e.preventDefault();
|
|
26436
26450
|
}
|
|
26437
26451
|
const Oi = 12;
|
|
26438
|
-
function
|
|
26452
|
+
function QN(e, t) {
|
|
26439
26453
|
return {
|
|
26440
26454
|
left: Oi,
|
|
26441
26455
|
top: t + Oi,
|
|
@@ -26443,41 +26457,41 @@ function JN(e, t) {
|
|
|
26443
26457
|
height: Math.max(e.height - t - 2 * Oi, 0)
|
|
26444
26458
|
};
|
|
26445
26459
|
}
|
|
26446
|
-
const
|
|
26460
|
+
const eL = 600;
|
|
26447
26461
|
function vb(e, t, n) {
|
|
26448
26462
|
return {
|
|
26449
26463
|
x: Math.min(Math.max(e.x, n.left), n.left + Math.max(n.width - t.width, 0)),
|
|
26450
26464
|
y: Math.min(Math.max(e.y, n.top), n.top + Math.max(n.height - t.height, 0))
|
|
26451
26465
|
};
|
|
26452
26466
|
}
|
|
26453
|
-
function
|
|
26467
|
+
function tL(e, t, n) {
|
|
26454
26468
|
return vb({
|
|
26455
26469
|
x: e.left + (e.width - t.width) / 2,
|
|
26456
26470
|
y: e.top + (e.height - t.height) / 2
|
|
26457
26471
|
}, t, n);
|
|
26458
26472
|
}
|
|
26459
|
-
function
|
|
26460
|
-
return e.width >=
|
|
26473
|
+
function nL(e) {
|
|
26474
|
+
return e.width >= eL && !e.coarse;
|
|
26461
26475
|
}
|
|
26462
|
-
const gb = "@synopkgland/floating-host",
|
|
26476
|
+
const gb = "@synopkgland/floating-host", oL = "data-ui-floating", yh = ["lang", "dir", "data-ui-theme", "data-ui-density", "data-ui-accent", "data-ui-color-scheme", "data-ui-motion"], rL = "--ui-accent-";
|
|
26463
26477
|
function bh(e) {
|
|
26464
26478
|
const t = [];
|
|
26465
26479
|
for (let n = 0; n < e.length; n++) {
|
|
26466
26480
|
const o = e.item(n);
|
|
26467
|
-
o.startsWith(
|
|
26481
|
+
o.startsWith(rL) && t.push(o);
|
|
26468
26482
|
}
|
|
26469
26483
|
return t;
|
|
26470
26484
|
}
|
|
26471
26485
|
function bd() {
|
|
26472
26486
|
return Re(gb, null);
|
|
26473
26487
|
}
|
|
26474
|
-
function
|
|
26488
|
+
function aL(e) {
|
|
26475
26489
|
const t = e.ownerDocument.defaultView;
|
|
26476
26490
|
for (let n = e.parentElement; n && n !== e.ownerDocument.body; n = n.parentElement)
|
|
26477
26491
|
if (!["auto", ""].includes(t.getComputedStyle(n).zIndex)) return n;
|
|
26478
26492
|
return null;
|
|
26479
26493
|
}
|
|
26480
|
-
function
|
|
26494
|
+
function iL(e, t) {
|
|
26481
26495
|
const n = e.ownerDocument.defaultView;
|
|
26482
26496
|
for (let r = e; r; r = r === t ? null : r.parentElement) {
|
|
26483
26497
|
const a = n.getComputedStyle(r);
|
|
@@ -26486,14 +26500,14 @@ function rL(e, t) {
|
|
|
26486
26500
|
const o = e.getBoundingClientRect();
|
|
26487
26501
|
return o.width > 0 && (o.right <= 0 || o.bottom <= 0 || o.left >= n.innerWidth || o.top >= n.innerHeight);
|
|
26488
26502
|
}
|
|
26489
|
-
function
|
|
26503
|
+
function sL(e, t, n) {
|
|
26490
26504
|
if (!t) return null;
|
|
26491
26505
|
const o = /* @__PURE__ */ Ot(null), r = /* @__PURE__ */ Ot(null), a = /* @__PURE__ */ Ot({ left: 0, top: 0, width: 0, height: 0 }), i = /* @__PURE__ */ F(!1);
|
|
26492
26506
|
let s;
|
|
26493
26507
|
return ie(e, (c, u, f) => {
|
|
26494
26508
|
if (!c) return;
|
|
26495
26509
|
const p = c.ownerDocument.defaultView, h = c.ownerDocument.createElement("div");
|
|
26496
|
-
h.setAttribute("data-ui-app", ""), h.setAttribute("data-syno-pkg-land-ui", ""), h.setAttribute("data-ui-modal-scope", "app"), h.setAttribute(
|
|
26510
|
+
h.setAttribute("data-ui-app", ""), h.setAttribute("data-syno-pkg-land-ui", ""), h.setAttribute("data-ui-modal-scope", "app"), h.setAttribute(oL, ""), Object.assign(h.style, { position: "fixed", inset: "0", pointerEvents: "none" });
|
|
26497
26511
|
const m = () => {
|
|
26498
26512
|
for (const T of yh) {
|
|
26499
26513
|
const A = c.getAttribute(T);
|
|
@@ -26505,8 +26519,8 @@ function aL(e, t, n) {
|
|
|
26505
26519
|
m();
|
|
26506
26520
|
const v = new MutationObserver(m);
|
|
26507
26521
|
v.observe(c, { attributes: !0, attributeFilter: [...yh, "style"] });
|
|
26508
|
-
const y =
|
|
26509
|
-
const T = !!y &&
|
|
26522
|
+
const y = aL(c), w = () => {
|
|
26523
|
+
const T = !!y && iL(c, y);
|
|
26510
26524
|
y && (h.style.zIndex = p.getComputedStyle(y).zIndex, h.style.visibility = T ? "hidden" : "");
|
|
26511
26525
|
const { left: A, top: D, width: M, height: q } = c.getBoundingClientRect();
|
|
26512
26526
|
if (r.value = T ? null : { left: A, top: D, width: M, height: q }, !T) {
|
|
@@ -26518,7 +26532,7 @@ function aL(e, t, n) {
|
|
|
26518
26532
|
const T = c.ownerDocument.getElementById("sds-taskbar")?.getBoundingClientRect();
|
|
26519
26533
|
return T && T.height > 0 && T.top <= 0 ? Math.max(T.bottom, 0) : 0;
|
|
26520
26534
|
}, E = () => {
|
|
26521
|
-
a.value =
|
|
26535
|
+
a.value = QN({ width: p.innerWidth, height: p.innerHeight }, x()), h.style.setProperty("--ui-floating-max-height", `${a.value.height}px`), i.value = nL({ width: p.innerWidth, coarse: !!p.matchMedia?.("(pointer: coarse)").matches }), i.value ? h.removeAttribute("data-ui-presentation") : h.setAttribute("data-ui-presentation", "mobile"), w();
|
|
26522
26536
|
}, b = typeof ResizeObserver > "u" ? null : new ResizeObserver(E);
|
|
26523
26537
|
b?.observe(c), s = E;
|
|
26524
26538
|
const _ = new MutationObserver(w);
|
|
@@ -26563,13 +26577,13 @@ const wd = /* @__PURE__ */ V({
|
|
|
26563
26577
|
}, 8, ["teleport-to", "dir", "locale", "scroll-body", "nonce", "use-id"])) : z(n.$slots, "default", {}, void 0, void 0, 1)
|
|
26564
26578
|
], 8, ["to", "disabled"]));
|
|
26565
26579
|
}
|
|
26566
|
-
}),
|
|
26580
|
+
}), lL = {
|
|
26567
26581
|
key: 0,
|
|
26568
26582
|
"data-ui-bottom-sheet-header": ""
|
|
26569
|
-
},
|
|
26583
|
+
}, uL = { class: "min-w-0 flex-1" }, cL = ["data-ui-sheet-flush"], dL = {
|
|
26570
26584
|
key: 3,
|
|
26571
26585
|
"data-ui-bottom-sheet-footer": ""
|
|
26572
|
-
},
|
|
26586
|
+
}, fL = 'a[href],button,input,select,textarea,[tabindex]:not([tabindex="-1"])', _d = /* @__PURE__ */ V({
|
|
26573
26587
|
inheritAttrs: !1,
|
|
26574
26588
|
__name: "BottomSheet",
|
|
26575
26589
|
props: {
|
|
@@ -26622,7 +26636,7 @@ const wd = /* @__PURE__ */ V({
|
|
|
26622
26636
|
const M = k.value?.closest("[data-ui-bottom-sheet]");
|
|
26623
26637
|
if (!M) return;
|
|
26624
26638
|
D.preventDefault();
|
|
26625
|
-
const q = ll() ? void 0 : Array.from(M.querySelectorAll(
|
|
26639
|
+
const q = ll() ? void 0 : Array.from(M.querySelectorAll(fL)).find((U) => !U.matches("[data-ui-bottom-sheet-close], :disabled") && U.getClientRects().length > 0);
|
|
26626
26640
|
q && ys(q), (!q || document.activeElement !== q) && (M.tabIndex = -1, ys(M));
|
|
26627
26641
|
}
|
|
26628
26642
|
function T(D) {
|
|
@@ -26687,8 +26701,8 @@ const wd = /* @__PURE__ */ V({
|
|
|
26687
26701
|
"data-ui-bottom-sheet-grabber": "",
|
|
26688
26702
|
"aria-hidden": "true"
|
|
26689
26703
|
}, null, 512),
|
|
26690
|
-
_.value ? (g(), I("header",
|
|
26691
|
-
ae("div",
|
|
26704
|
+
_.value ? (g(), I("header", lL, [
|
|
26705
|
+
ae("div", uL, [
|
|
26692
26706
|
d(o).title ? (g(), L(d(Hu), {
|
|
26693
26707
|
key: 0,
|
|
26694
26708
|
class: ce(D.$slots.header && "sr-only"),
|
|
@@ -26738,8 +26752,8 @@ const wd = /* @__PURE__ */ V({
|
|
|
26738
26752
|
"data-ui-sheet-flush": d(o).flush ? "" : void 0
|
|
26739
26753
|
}, [
|
|
26740
26754
|
z(D.$slots, "default")
|
|
26741
|
-
], 8,
|
|
26742
|
-
D.$slots.footer ? (g(), I("footer",
|
|
26755
|
+
], 8, cL)) : j("", !0),
|
|
26756
|
+
D.$slots.footer ? (g(), I("footer", dL, [
|
|
26743
26757
|
K(cb, { kind: "action" }, {
|
|
26744
26758
|
default: R(() => [
|
|
26745
26759
|
z(D.$slots, "footer")
|
|
@@ -26799,10 +26813,10 @@ const wd = /* @__PURE__ */ V({
|
|
|
26799
26813
|
}, 8, ["open", "modal", "snap-points"]);
|
|
26800
26814
|
};
|
|
26801
26815
|
}
|
|
26802
|
-
}),
|
|
26816
|
+
}), pL = ["for"], hL = {
|
|
26803
26817
|
key: 0,
|
|
26804
26818
|
class: "block leading-[var(--ui-line-height)]"
|
|
26805
|
-
},
|
|
26819
|
+
}, mL = /* @__PURE__ */ V({
|
|
26806
26820
|
inheritAttrs: !1,
|
|
26807
26821
|
__name: "Checkbox",
|
|
26808
26822
|
props: {
|
|
@@ -26855,22 +26869,22 @@ const wd = /* @__PURE__ */ V({
|
|
|
26855
26869
|
for: c.value,
|
|
26856
26870
|
class: ce(["ui-checkbox-text min-w-0 break-words font-normal [overflow-wrap:anywhere]", d(o) ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
|
|
26857
26871
|
}, [
|
|
26858
|
-
n.label ? (g(), I("span",
|
|
26872
|
+
n.label ? (g(), I("span", hL, Q(n.label), 1)) : j("", !0),
|
|
26859
26873
|
n.description ? (g(), I("span", {
|
|
26860
26874
|
key: 1,
|
|
26861
26875
|
"data-ui-checkbox-description": "",
|
|
26862
26876
|
class: ce(["mt-0.5 block text-[12px] leading-4", d(o) ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
26863
26877
|
}, Q(n.description), 3)) : j("", !0)
|
|
26864
|
-
], 10,
|
|
26878
|
+
], 10, pL)) : j("", !0)
|
|
26865
26879
|
], 16));
|
|
26866
26880
|
}
|
|
26867
|
-
}),
|
|
26881
|
+
}), vL = {
|
|
26868
26882
|
key: 0,
|
|
26869
26883
|
class: "min-w-0 break-words [overflow-wrap:anywhere]"
|
|
26870
|
-
},
|
|
26884
|
+
}, gL = {
|
|
26871
26885
|
key: 0,
|
|
26872
26886
|
class: "block leading-[var(--ui-line-height)]"
|
|
26873
|
-
},
|
|
26887
|
+
}, yL = /* @__PURE__ */ V({
|
|
26874
26888
|
inheritAttrs: !1,
|
|
26875
26889
|
__name: "Switch",
|
|
26876
26890
|
props: {
|
|
@@ -26899,8 +26913,8 @@ const wd = /* @__PURE__ */ V({
|
|
|
26899
26913
|
]),
|
|
26900
26914
|
_: 1
|
|
26901
26915
|
}, 16, ["model-value", "disabled"]),
|
|
26902
|
-
n.label || n.description || l.$slots.description ? (g(), I("span",
|
|
26903
|
-
n.label ? (g(), I("span",
|
|
26916
|
+
n.label || n.description || l.$slots.description ? (g(), I("span", vL, [
|
|
26917
|
+
n.label ? (g(), I("span", gL, Q(n.label), 1)) : j("", !0),
|
|
26904
26918
|
n.description || l.$slots.description ? (g(), I("span", {
|
|
26905
26919
|
key: 1,
|
|
26906
26920
|
"data-ui-switch-description": "",
|
|
@@ -26913,12 +26927,12 @@ const wd = /* @__PURE__ */ V({
|
|
|
26913
26927
|
])) : j("", !0)
|
|
26914
26928
|
], 16));
|
|
26915
26929
|
}
|
|
26916
|
-
}),
|
|
26930
|
+
}), bL = ["data-ui-choice-card", "data-state", "data-disabled"], wL = { class: "min-w-0 flex-1 break-words" }, _L = {
|
|
26917
26931
|
key: 0,
|
|
26918
26932
|
class: "ui-choice-card-icon mb-[var(--ui-space-2)] flex size-8 items-center justify-center rounded-[var(--ui-radius-md)]",
|
|
26919
26933
|
"data-ui-choice-card-icon": "",
|
|
26920
26934
|
"aria-hidden": "true"
|
|
26921
|
-
},
|
|
26935
|
+
}, xL = /* @__PURE__ */ V({
|
|
26922
26936
|
inheritAttrs: !1,
|
|
26923
26937
|
__name: "RadioGroup",
|
|
26924
26938
|
props: {
|
|
@@ -26965,8 +26979,8 @@ const wd = /* @__PURE__ */ V({
|
|
|
26965
26979
|
]),
|
|
26966
26980
|
_: 1
|
|
26967
26981
|
}, 8, ["value", "disabled"]),
|
|
26968
|
-
ae("span",
|
|
26969
|
-
n.variant === "card" && u.icon ? (g(), I("span",
|
|
26982
|
+
ae("span", wL, [
|
|
26983
|
+
n.variant === "card" && u.icon ? (g(), I("span", _L, [
|
|
26970
26984
|
(g(), L(ft(u.icon), { class: "size-[18px]" }))
|
|
26971
26985
|
])) : j("", !0),
|
|
26972
26986
|
ae("span", {
|
|
@@ -26977,25 +26991,25 @@ const wd = /* @__PURE__ */ V({
|
|
|
26977
26991
|
class: ce(["mt-0.5 block text-[12px] leading-4", d(o) || u.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
26978
26992
|
}, Q(u.description), 3)) : j("", !0)
|
|
26979
26993
|
])
|
|
26980
|
-
], 10,
|
|
26994
|
+
], 10, bL))), 128))
|
|
26981
26995
|
]),
|
|
26982
26996
|
_: 1
|
|
26983
26997
|
}, 16, ["required", "model-value", "disabled", "orientation", "class", "data-variant"]));
|
|
26984
26998
|
}
|
|
26985
26999
|
});
|
|
26986
|
-
function
|
|
27000
|
+
function SL(e) {
|
|
26987
27001
|
return typeof e == "object" && e !== null && Array.isArray(e.options);
|
|
26988
27002
|
}
|
|
26989
|
-
function
|
|
27003
|
+
function kL(e) {
|
|
26990
27004
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
26991
27005
|
}
|
|
26992
27006
|
function Xu(e) {
|
|
26993
|
-
return e ? Array.isArray(e) ? e.length === 0 ? [] :
|
|
27007
|
+
return e ? Array.isArray(e) ? e.length === 0 ? [] : SL(e[0]) ? e.map((t, n) => ({
|
|
26994
27008
|
key: t.label ?? `group-${n}`,
|
|
26995
27009
|
label: t.label,
|
|
26996
27010
|
indent: t.indent !== !1,
|
|
26997
27011
|
options: t.options
|
|
26998
|
-
})) : [{ key: "options", label: void 0, indent: !0, options: e }] :
|
|
27012
|
+
})) : [{ key: "options", label: void 0, indent: !0, options: e }] : kL(e) ? Object.entries(e).map(([t, n]) => ({
|
|
26999
27013
|
key: t,
|
|
27000
27014
|
label: n.label,
|
|
27001
27015
|
indent: n.indent !== !1,
|
|
@@ -27005,7 +27019,7 @@ function Xu(e) {
|
|
|
27005
27019
|
function wh(e) {
|
|
27006
27020
|
return e.flatMap((t) => t.options);
|
|
27007
27021
|
}
|
|
27008
|
-
function
|
|
27022
|
+
function CL(e, t, n) {
|
|
27009
27023
|
const o = t.trim();
|
|
27010
27024
|
if (!o) return e;
|
|
27011
27025
|
const r = n ? o : o.toLowerCase();
|
|
@@ -27014,10 +27028,10 @@ function SL(e, t, n) {
|
|
|
27014
27028
|
options: a.options.filter((i) => (n ? i.label : i.label.toLowerCase()).includes(r))
|
|
27015
27029
|
})).filter((a) => a.options.length > 0);
|
|
27016
27030
|
}
|
|
27017
|
-
function
|
|
27031
|
+
function EL(e) {
|
|
27018
27032
|
const t = C(() => Xu(e.options())), n = /* @__PURE__ */ F(null), o = /* @__PURE__ */ F(!1);
|
|
27019
27033
|
let r = 0;
|
|
27020
|
-
const a = C(() => typeof e.search() == "function"), i = C(() => e.query.value.trim()), s = C(() => i.value.length >= Math.max(1, e.minSearchChar())), l = C(() => a.value ? s.value ? n.value ?? [] : t.value : e.search() === !0 && s.value ?
|
|
27034
|
+
const a = C(() => typeof e.search() == "function"), i = C(() => e.query.value.trim()), s = C(() => i.value.length >= Math.max(1, e.minSearchChar())), l = C(() => a.value ? s.value ? n.value ?? [] : t.value : e.search() === !0 && s.value ? CL(t.value, i.value, e.caseSensitive()) : t.value);
|
|
27021
27035
|
return ie([i, a], async () => {
|
|
27022
27036
|
const c = e.search();
|
|
27023
27037
|
if (typeof c != "function" || !s.value) {
|
|
@@ -27038,23 +27052,23 @@ function kL(e) {
|
|
|
27038
27052
|
}
|
|
27039
27053
|
}), { baseGroups: t, groups: l, searching: o };
|
|
27040
27054
|
}
|
|
27041
|
-
const
|
|
27055
|
+
const AL = {
|
|
27042
27056
|
key: 0,
|
|
27043
27057
|
class: "shrink-0 px-4 pb-2"
|
|
27044
|
-
},
|
|
27058
|
+
}, PL = {
|
|
27045
27059
|
key: 0,
|
|
27046
27060
|
class: "px-3 py-3 text-[length:var(--ui-font-size)] text-[var(--ui-text-muted)]",
|
|
27047
27061
|
"aria-live": "polite"
|
|
27048
|
-
},
|
|
27062
|
+
}, OL = {
|
|
27049
27063
|
key: 0,
|
|
27050
27064
|
"data-ui-option-check": "",
|
|
27051
27065
|
"aria-hidden": "true",
|
|
27052
27066
|
class: "flex size-5 shrink-0 items-center justify-center rounded-[var(--ui-radius-sm)] border border-[var(--ui-border-strong)] bg-[var(--ui-surface)] text-[var(--ui-primary-foreground)] group-data-[state=checked]:border-[var(--ui-primary)] group-data-[state=checked]:bg-[var(--ui-primary)]"
|
|
27053
|
-
},
|
|
27067
|
+
}, TL = { class: "min-w-0 flex-1 truncate" }, $L = {
|
|
27054
27068
|
key: 0,
|
|
27055
27069
|
class: "px-3 py-3 text-[length:var(--ui-font-size)] text-[var(--ui-text-muted)]",
|
|
27056
27070
|
"aria-live": "polite"
|
|
27057
|
-
},
|
|
27071
|
+
}, IL = { class: "min-w-0 flex-1 truncate" }, _h = "relative flex min-h-12 select-none items-center gap-3 rounded-[var(--ui-radius-md)] px-3 text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[disabled]:opacity-40", DL = /* @__PURE__ */ V({
|
|
27058
27072
|
__name: "SelectSheet",
|
|
27059
27073
|
props: {
|
|
27060
27074
|
open: { type: Boolean },
|
|
@@ -27102,7 +27116,7 @@ const CL = {
|
|
|
27102
27116
|
"data-ui-select-sheet-list": ""
|
|
27103
27117
|
}, {
|
|
27104
27118
|
default: R(() => [
|
|
27105
|
-
n.search ? (g(), I("div",
|
|
27119
|
+
n.search ? (g(), I("div", AL, [
|
|
27106
27120
|
K(d(m$), {
|
|
27107
27121
|
"model-value": n.query,
|
|
27108
27122
|
enterkeyhint: "search",
|
|
@@ -27117,7 +27131,7 @@ const CL = {
|
|
|
27117
27131
|
])) : j("", !0),
|
|
27118
27132
|
K(d(p$), { class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-2" }, {
|
|
27119
27133
|
default: R(() => [
|
|
27120
|
-
n.loading ? (g(), I("div",
|
|
27134
|
+
n.loading ? (g(), I("div", PL, Q(n.loadingText), 1)) : (g(), I(ye, { key: 1 }, [
|
|
27121
27135
|
(g(!0), I(ye, null, Be(n.groups, (m) => (g(), L(d(b$), {
|
|
27122
27136
|
key: m.key
|
|
27123
27137
|
}, {
|
|
@@ -27140,7 +27154,7 @@ const CL = {
|
|
|
27140
27154
|
onSelect: (y) => c(y, v.value)
|
|
27141
27155
|
}, {
|
|
27142
27156
|
default: R(() => [
|
|
27143
|
-
n.multiple ? (g(), I("span",
|
|
27157
|
+
n.multiple ? (g(), I("span", OL, [
|
|
27144
27158
|
K(d(Dp), null, {
|
|
27145
27159
|
default: R(() => [
|
|
27146
27160
|
K(d(to), { class: "size-4 stroke-[2.5]" })
|
|
@@ -27148,7 +27162,7 @@ const CL = {
|
|
|
27148
27162
|
_: 1
|
|
27149
27163
|
})
|
|
27150
27164
|
])) : j("", !0),
|
|
27151
|
-
ae("span",
|
|
27165
|
+
ae("span", TL, Q(v.label), 1),
|
|
27152
27166
|
n.multiple ? j("", !0) : (g(), L(d(Dp), {
|
|
27153
27167
|
key: 1,
|
|
27154
27168
|
class: "inline-flex shrink-0 items-center text-[var(--ui-primary)]"
|
|
@@ -27167,7 +27181,7 @@ const CL = {
|
|
|
27167
27181
|
]),
|
|
27168
27182
|
_: 2
|
|
27169
27183
|
}, 1024))), 128)),
|
|
27170
|
-
l.value && !n.createText ? (g(), I("div",
|
|
27184
|
+
l.value && !n.createText ? (g(), I("div", $L, Q(n.notFoundText), 1)) : j("", !0)
|
|
27171
27185
|
], 64)),
|
|
27172
27186
|
n.createText && !n.loading ? (g(), I("button", {
|
|
27173
27187
|
key: 2,
|
|
@@ -27176,7 +27190,7 @@ const CL = {
|
|
|
27176
27190
|
"data-ui-select-sheet-create": "",
|
|
27177
27191
|
onClick: h[0] || (h[0] = (m) => o("create"))
|
|
27178
27192
|
}, [
|
|
27179
|
-
ae("span",
|
|
27193
|
+
ae("span", IL, Q(n.createText), 1)
|
|
27180
27194
|
], 2)) : j("", !0)
|
|
27181
27195
|
]),
|
|
27182
27196
|
_: 1
|
|
@@ -27205,27 +27219,27 @@ const CL = {
|
|
|
27205
27219
|
} : void 0
|
|
27206
27220
|
]), 1032, ["open", "title", "height"]));
|
|
27207
27221
|
}
|
|
27208
|
-
}),
|
|
27222
|
+
}), RL = {
|
|
27209
27223
|
key: 0,
|
|
27210
27224
|
class: "block max-w-full truncate"
|
|
27211
|
-
},
|
|
27225
|
+
}, ML = {
|
|
27212
27226
|
key: 1,
|
|
27213
27227
|
class: "block max-w-full truncate"
|
|
27214
|
-
},
|
|
27228
|
+
}, NL = {
|
|
27215
27229
|
key: 2,
|
|
27216
27230
|
class: "block max-w-full truncate"
|
|
27217
|
-
},
|
|
27231
|
+
}, LL = {
|
|
27218
27232
|
key: 0,
|
|
27219
27233
|
class: "mb-1 border-b border-[var(--ui-border-subtle)] pb-1"
|
|
27220
|
-
},
|
|
27234
|
+
}, FL = ["placeholder", "aria-label"], zL = {
|
|
27221
27235
|
key: 1,
|
|
27222
27236
|
class: "px-2.5 py-2 text-[length:var(--ui-font-size-control)] text-[var(--ui-text-muted)]",
|
|
27223
27237
|
"aria-live": "polite"
|
|
27224
|
-
},
|
|
27238
|
+
}, BL = { class: "min-w-0 truncate" }, qL = {
|
|
27225
27239
|
key: 0,
|
|
27226
27240
|
class: "px-2.5 py-2 text-[length:var(--ui-font-size-control)] text-[var(--ui-text-muted)]",
|
|
27227
27241
|
"aria-live": "polite"
|
|
27228
|
-
},
|
|
27242
|
+
}, VL = /* @__PURE__ */ V({
|
|
27229
27243
|
inheritAttrs: !1,
|
|
27230
27244
|
__name: "Select",
|
|
27231
27245
|
props: {
|
|
@@ -27243,7 +27257,7 @@ const CL = {
|
|
|
27243
27257
|
},
|
|
27244
27258
|
emits: ["update:modelValue"],
|
|
27245
27259
|
setup(e, { emit: t }) {
|
|
27246
|
-
const n = e, o = lr(() => r.disabled), r = Wn(n, { placeholder: "Select…", searchPlaceholder: "Search…", notFoundText: "No results", loadingText: "Loading…" }), a = t, i = /* @__PURE__ */ F(""), s = /* @__PURE__ */ F(!1), l = qe("searchInput"), c = qe("trigger"), u = qe("viewport"), f = C(() => r.search !== !1), p = /* @__PURE__ */ F(!1), { groups: h, searching: m } =
|
|
27260
|
+
const n = e, o = lr(() => r.disabled), r = Wn(n, { placeholder: "Select…", searchPlaceholder: "Search…", notFoundText: "No results", loadingText: "Loading…" }), a = t, i = /* @__PURE__ */ F(""), s = /* @__PURE__ */ F(!1), l = qe("searchInput"), c = qe("trigger"), u = qe("viewport"), f = C(() => r.search !== !1), p = /* @__PURE__ */ F(!1), { groups: h, searching: m } = EL({
|
|
27247
27261
|
options: () => r.options,
|
|
27248
27262
|
search: () => r.search,
|
|
27249
27263
|
query: i,
|
|
@@ -27325,7 +27339,7 @@ const CL = {
|
|
|
27325
27339
|
placeholder: d(r).placeholder
|
|
27326
27340
|
}, {
|
|
27327
27341
|
default: R(({ selectedLabel: he }) => [
|
|
27328
|
-
y.value ? (g(), I("span",
|
|
27342
|
+
y.value ? (g(), I("span", RL, Q(y.value), 1)) : he.length ? (g(), I("span", ML, Q(he.join(", ")), 1)) : (g(), I("span", NL, Q(d(r).placeholder), 1))
|
|
27329
27343
|
]),
|
|
27330
27344
|
_: 1
|
|
27331
27345
|
}, 8, ["placeholder"]),
|
|
@@ -27354,7 +27368,7 @@ const CL = {
|
|
|
27354
27368
|
onPointerdown: oe[1] || (oe[1] = (he) => p.value = !0)
|
|
27355
27369
|
}), {
|
|
27356
27370
|
default: R(() => [
|
|
27357
|
-
f.value ? (g(), I("div",
|
|
27371
|
+
f.value ? (g(), I("div", LL, [
|
|
27358
27372
|
nr(ae("input", {
|
|
27359
27373
|
ref_key: "searchInput",
|
|
27360
27374
|
ref: l,
|
|
@@ -27365,11 +27379,11 @@ const CL = {
|
|
|
27365
27379
|
class: "h-7 w-full rounded-[var(--ui-radius-control)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-2 text-[length:var(--ui-font-size-control)] text-[var(--ui-text)] outline-none props.placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)]",
|
|
27366
27380
|
"data-syno-pkg-land-ui-select-search": "",
|
|
27367
27381
|
onKeydown: x
|
|
27368
|
-
}, null, 40,
|
|
27382
|
+
}, null, 40, FL), [
|
|
27369
27383
|
[O0, i.value]
|
|
27370
27384
|
])
|
|
27371
27385
|
])) : j("", !0),
|
|
27372
|
-
d(m) ? (g(), I("div",
|
|
27386
|
+
d(m) ? (g(), I("div", zL, Q(d(r).loadingText), 1)) : (g(), L(d(tN), {
|
|
27373
27387
|
key: 2,
|
|
27374
27388
|
ref_key: "viewport",
|
|
27375
27389
|
ref: u
|
|
@@ -27396,7 +27410,7 @@ const CL = {
|
|
|
27396
27410
|
class: ce(["relative flex h-[var(--ui-menu-row-height)] select-none items-center rounded-[var(--ui-radius-sm)] py-1 pr-8 text-[length:var(--ui-font-size-control)] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-neutral-soft)] data-[state=checked]:bg-[var(--ui-surface-selected)] data-[disabled]:opacity-40", he.label && he.indent ? "pl-5" : "pl-2.5"])
|
|
27397
27411
|
}, {
|
|
27398
27412
|
default: R(() => [
|
|
27399
|
-
ae("span",
|
|
27413
|
+
ae("span", BL, [
|
|
27400
27414
|
K(d(WM), null, {
|
|
27401
27415
|
default: R(() => [
|
|
27402
27416
|
Oe(Q(re.label), 1)
|
|
@@ -27419,7 +27433,7 @@ const CL = {
|
|
|
27419
27433
|
]),
|
|
27420
27434
|
_: 2
|
|
27421
27435
|
}, 1024))), 128)),
|
|
27422
|
-
d(h).length ? j("", !0) : (g(), I("div",
|
|
27436
|
+
d(h).length ? j("", !0) : (g(), I("div", qL, Q(d(r).notFoundText), 1))
|
|
27423
27437
|
]),
|
|
27424
27438
|
_: 1
|
|
27425
27439
|
}, 512))
|
|
@@ -27432,7 +27446,7 @@ const CL = {
|
|
|
27432
27446
|
]),
|
|
27433
27447
|
_: 1
|
|
27434
27448
|
}, 8, ["required", "open", "model-value", "disabled"]),
|
|
27435
|
-
d(b) === "sheet" ? (g(), L(
|
|
27449
|
+
d(b) === "sheet" ? (g(), L(DL, {
|
|
27436
27450
|
key: 0,
|
|
27437
27451
|
open: s.value,
|
|
27438
27452
|
"onUpdate:open": oe[4] || (oe[4] = (he) => s.value = he),
|
|
@@ -27450,24 +27464,24 @@ const CL = {
|
|
|
27450
27464
|
}, null, 8, ["open", "query", "title", "groups", "value", "search", "search-placeholder", "loading", "loading-text", "not-found-text"])) : j("", !0)
|
|
27451
27465
|
], 16));
|
|
27452
27466
|
}
|
|
27453
|
-
}),
|
|
27454
|
-
function
|
|
27467
|
+
}), jL = "data-ui-tooltip-text", UL = "data-ui-tooltip-hint", WL = "data-ui-tooltip-off", KL = "data-ui-tooltip-trigger", yb = "data-ui-tooltip-scope";
|
|
27468
|
+
function HL(e) {
|
|
27455
27469
|
return e.classList.contains("truncate") || e.classList.contains("text-ellipsis") || getComputedStyle(e).textOverflow === "ellipsis";
|
|
27456
27470
|
}
|
|
27457
|
-
function
|
|
27471
|
+
function ZL(e) {
|
|
27458
27472
|
return e.scrollWidth > e.clientWidth + 1;
|
|
27459
27473
|
}
|
|
27460
27474
|
function bb(e, t) {
|
|
27461
27475
|
for (let n = e; n; n = n.parentElement) {
|
|
27462
|
-
if (n.hasAttribute("title") || n.hasAttribute(
|
|
27476
|
+
if (n.hasAttribute("title") || n.hasAttribute(WL) || n.hasAttribute(KL)) return !0;
|
|
27463
27477
|
if (n === t) return !1;
|
|
27464
27478
|
}
|
|
27465
27479
|
return !1;
|
|
27466
27480
|
}
|
|
27467
27481
|
function Qu(e, t) {
|
|
27468
|
-
const n = e.getAttribute(
|
|
27482
|
+
const n = e.getAttribute(UL) || void 0, o = HL(e) && ZL(e);
|
|
27469
27483
|
if (!o && !n || bb(e, t)) return null;
|
|
27470
|
-
const r = e.getAttribute(
|
|
27484
|
+
const r = e.getAttribute(jL) ?? (e.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
27471
27485
|
return { element: e, scope: t, cut: o, text: r, hint: n };
|
|
27472
27486
|
}
|
|
27473
27487
|
function xh(e, t) {
|
|
@@ -27488,7 +27502,7 @@ function xh(e, t) {
|
|
|
27488
27502
|
}
|
|
27489
27503
|
return null;
|
|
27490
27504
|
}
|
|
27491
|
-
function
|
|
27505
|
+
function GL(e, t) {
|
|
27492
27506
|
if (!(e instanceof HTMLElement) || !t.contains(e)) return null;
|
|
27493
27507
|
const n = e.closest(`td, th, [${yb}]`), o = n && t.contains(n) ? n : t;
|
|
27494
27508
|
for (const r of [e, ...e.querySelectorAll("*")]) {
|
|
@@ -27499,13 +27513,13 @@ function HL(e, t) {
|
|
|
27499
27513
|
return null;
|
|
27500
27514
|
}
|
|
27501
27515
|
const wb = /* @__PURE__ */ Symbol("overflow-tooltip-region");
|
|
27502
|
-
function
|
|
27516
|
+
function YL() {
|
|
27503
27517
|
We(wb, !0);
|
|
27504
27518
|
}
|
|
27505
27519
|
function _b() {
|
|
27506
27520
|
return Re(wb, !1);
|
|
27507
27521
|
}
|
|
27508
|
-
const xb = "z-[1450] max-w-[min(18rem,var(--reka-popper-available-width,18rem))] rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip-bg)] px-3 py-1.5 text-[12px] leading-4 text-[var(--ui-tooltip-fg)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]", Sb = 6, kb = 350,
|
|
27522
|
+
const xb = "z-[1450] max-w-[min(18rem,var(--reka-popper-available-width,18rem))] rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip-bg)] px-3 py-1.5 text-[12px] leading-4 text-[var(--ui-tooltip-fg)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]", Sb = 6, kb = 350, JL = 300;
|
|
27509
27523
|
let ua = 0, ec;
|
|
27510
27524
|
const dl = /* @__PURE__ */ F(!1);
|
|
27511
27525
|
function Cb() {
|
|
@@ -27514,7 +27528,7 @@ function Cb() {
|
|
|
27514
27528
|
function bs() {
|
|
27515
27529
|
ua = Math.max(0, ua - 1), !(ua > 0) && (clearTimeout(ec), ec = setTimeout(() => {
|
|
27516
27530
|
ua === 0 && (dl.value = !1);
|
|
27517
|
-
},
|
|
27531
|
+
}, JL));
|
|
27518
27532
|
}
|
|
27519
27533
|
const Eb = /* @__PURE__ */ V({
|
|
27520
27534
|
__name: "OverflowTooltip",
|
|
@@ -27528,7 +27542,7 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27528
27542
|
},
|
|
27529
27543
|
setup(e) {
|
|
27530
27544
|
const t = e;
|
|
27531
|
-
|
|
27545
|
+
YL();
|
|
27532
27546
|
const n = qe("wrapper"), o = C(() => t.target ?? n.value ?? null), r = /* @__PURE__ */ Ot(null), a = /* @__PURE__ */ F(""), i = /* @__PURE__ */ F(!1), s = oi(r, () => i.value);
|
|
27533
27547
|
let l;
|
|
27534
27548
|
ie(i, (b) => {
|
|
@@ -27580,7 +27594,7 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27580
27594
|
}
|
|
27581
27595
|
function w(b) {
|
|
27582
27596
|
const _ = o.value, P = b.target;
|
|
27583
|
-
_ && y(P) && f(
|
|
27597
|
+
_ && y(P) && f(GL(P, _), 0);
|
|
27584
27598
|
}
|
|
27585
27599
|
function x() {
|
|
27586
27600
|
r.value && u();
|
|
@@ -27652,12 +27666,12 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27652
27666
|
})) : j("", !0)
|
|
27653
27667
|
], 64));
|
|
27654
27668
|
}
|
|
27655
|
-
}),
|
|
27669
|
+
}), XL = {
|
|
27656
27670
|
key: 0,
|
|
27657
27671
|
"data-ui-badge-dot": "",
|
|
27658
27672
|
class: "size-1.5 shrink-0 rounded-full bg-current",
|
|
27659
27673
|
"aria-hidden": "true"
|
|
27660
|
-
},
|
|
27674
|
+
}, QL = /* @__PURE__ */ V({
|
|
27661
27675
|
__name: "Badge",
|
|
27662
27676
|
props: {
|
|
27663
27677
|
tone: { default: "neutral" },
|
|
@@ -27676,11 +27690,11 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27676
27690
|
]),
|
|
27677
27691
|
"data-syno-pkg-land-ui": ""
|
|
27678
27692
|
}, [
|
|
27679
|
-
n.value ? (g(), I("span",
|
|
27693
|
+
n.value ? (g(), I("span", XL)) : j("", !0),
|
|
27680
27694
|
z(o.$slots, "default")
|
|
27681
27695
|
], 2));
|
|
27682
27696
|
}
|
|
27683
|
-
}),
|
|
27697
|
+
}), eF = ["data-tone", "data-pulse", "role", "aria-label", "aria-hidden"], tF = /* @__PURE__ */ V({
|
|
27684
27698
|
__name: "StatusDot",
|
|
27685
27699
|
props: {
|
|
27686
27700
|
tone: { default: "neutral" },
|
|
@@ -27697,9 +27711,9 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27697
27711
|
"aria-hidden": e.label ? void 0 : "true",
|
|
27698
27712
|
"data-icon": "",
|
|
27699
27713
|
"data-syno-pkg-land-ui": ""
|
|
27700
|
-
}, null, 8,
|
|
27714
|
+
}, null, 8, eF));
|
|
27701
27715
|
}
|
|
27702
|
-
}),
|
|
27716
|
+
}), nF = ["aria-label"], oF = { key: 0 }, rF = /* @__PURE__ */ V({
|
|
27703
27717
|
__name: "LoadingIndicator",
|
|
27704
27718
|
props: {
|
|
27705
27719
|
text: { default: "" },
|
|
@@ -27717,30 +27731,30 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27717
27731
|
label: e.text || d(n).label,
|
|
27718
27732
|
size: 24
|
|
27719
27733
|
}, null, 8, ["label"]),
|
|
27720
|
-
e.text ? (g(), I("span",
|
|
27721
|
-
], 8,
|
|
27734
|
+
e.text ? (g(), I("span", oF, Q(e.text), 1)) : j("", !0)
|
|
27735
|
+
], 8, nF));
|
|
27722
27736
|
}
|
|
27723
|
-
}),
|
|
27737
|
+
}), aF = {
|
|
27724
27738
|
class: "flex h-full min-h-12 w-full items-center justify-center",
|
|
27725
27739
|
"data-syno-pkg-land-ui": ""
|
|
27726
|
-
},
|
|
27740
|
+
}, iF = /* @__PURE__ */ V({
|
|
27727
27741
|
__name: "LoadingArea",
|
|
27728
27742
|
props: {
|
|
27729
27743
|
text: { default: "" }
|
|
27730
27744
|
},
|
|
27731
27745
|
setup(e) {
|
|
27732
|
-
return (t, n) => (g(), I("div",
|
|
27733
|
-
K(
|
|
27746
|
+
return (t, n) => (g(), I("div", aF, [
|
|
27747
|
+
K(rF, { text: e.text }, null, 8, ["text"])
|
|
27734
27748
|
]));
|
|
27735
27749
|
}
|
|
27736
|
-
}),
|
|
27750
|
+
}), sF = {
|
|
27737
27751
|
key: 0,
|
|
27738
27752
|
class: "mb-1.5 flex justify-between gap-3 text-[12px] text-[var(--ui-text-secondary)]"
|
|
27739
|
-
},
|
|
27753
|
+
}, lF = {
|
|
27740
27754
|
key: 0,
|
|
27741
27755
|
"data-ui-progress-value": "",
|
|
27742
27756
|
class: "tabular-nums"
|
|
27743
|
-
},
|
|
27757
|
+
}, uF = ["aria-valuenow", "aria-valuemax", "aria-label", "data-tone", "data-indeterminate"], Ab = /* @__PURE__ */ V({
|
|
27744
27758
|
inheritAttrs: !1,
|
|
27745
27759
|
__name: "Progress",
|
|
27746
27760
|
props: {
|
|
@@ -27769,9 +27783,9 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27769
27783
|
style: Ve(d(t).style),
|
|
27770
27784
|
"data-syno-pkg-land-ui": ""
|
|
27771
27785
|
}, [
|
|
27772
|
-
e.label || e.valueLabel ? (g(), I("div",
|
|
27786
|
+
e.label || e.valueLabel ? (g(), I("div", sF, [
|
|
27773
27787
|
ae("span", null, Q(e.label), 1),
|
|
27774
|
-
e.valueLabel !== void 0 || !e.indeterminate ? (g(), I("span",
|
|
27788
|
+
e.valueLabel !== void 0 || !e.indeterminate ? (g(), I("span", lF, Q(e.valueLabel ?? `${Math.round(i.value)}%`), 1)) : j("", !0)
|
|
27775
27789
|
])) : j("", !0),
|
|
27776
27790
|
ae("div", le({
|
|
27777
27791
|
class: ["overflow-hidden rounded-full", a[e.tone], e.size === "sm" ? "h-1" : "h-1.5"],
|
|
@@ -27791,10 +27805,10 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27791
27805
|
class: ce(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", r[e.tone]]),
|
|
27792
27806
|
style: Ve({ width: `${i.value}%` })
|
|
27793
27807
|
}, null, 6))
|
|
27794
|
-
], 16,
|
|
27808
|
+
], 16, uF)
|
|
27795
27809
|
], 6));
|
|
27796
27810
|
}
|
|
27797
|
-
}),
|
|
27811
|
+
}), cF = ["data-static"], Ht = /* @__PURE__ */ V({
|
|
27798
27812
|
__name: "Skeleton",
|
|
27799
27813
|
props: {
|
|
27800
27814
|
width: { default: "100%" },
|
|
@@ -27808,7 +27822,7 @@ const Eb = /* @__PURE__ */ V({
|
|
|
27808
27822
|
"data-static": e.pulse ? void 0 : "",
|
|
27809
27823
|
style: Ve({ width: e.width, height: e.height, borderRadius: e.radius }),
|
|
27810
27824
|
"aria-hidden": "true"
|
|
27811
|
-
}, null, 12,
|
|
27825
|
+
}, null, 12, cF));
|
|
27812
27826
|
}
|
|
27813
27827
|
});
|
|
27814
27828
|
function $o(e, t = {}) {
|
|
@@ -27817,7 +27831,7 @@ function $o(e, t = {}) {
|
|
|
27817
27831
|
function l() {
|
|
27818
27832
|
if (!i) {
|
|
27819
27833
|
if (!e.value) return t.onMeasured?.();
|
|
27820
|
-
n.value = e.value.getBoundingClientRect().width, a = n.value,
|
|
27834
|
+
n.value = e.value.getBoundingClientRect().width, a = n.value, Le(() => {
|
|
27821
27835
|
i || t.onMeasured?.();
|
|
27822
27836
|
}), !(typeof ResizeObserver > "u") && (o = new ResizeObserver((c) => {
|
|
27823
27837
|
const u = c[0]?.contentRect.width;
|
|
@@ -27837,13 +27851,13 @@ function $o(e, t = {}) {
|
|
|
27837
27851
|
i = !0, s?.(), o?.disconnect(), r && cancelAnimationFrame(r);
|
|
27838
27852
|
}), n;
|
|
27839
27853
|
}
|
|
27840
|
-
const
|
|
27841
|
-
function
|
|
27854
|
+
const dF = 0.9;
|
|
27855
|
+
function fF({ width: e, count: t, minItemWidth: n, gap: o }) {
|
|
27842
27856
|
if (e <= 0 || t <= 0 || n <= 0) return;
|
|
27843
|
-
const r = (l) => Math.max(1, Math.floor((e + o) / (l + o))), a = r(n), i = r(n *
|
|
27857
|
+
const r = (l) => Math.max(1, Math.floor((e + o) / (l + o))), a = r(n), i = r(n * dF), s = Math.min(t, i > a ? a + 1 : a);
|
|
27844
27858
|
return Math.ceil(t / Math.ceil(t / s));
|
|
27845
27859
|
}
|
|
27846
|
-
const
|
|
27860
|
+
const pF = /* @__PURE__ */ V({
|
|
27847
27861
|
__name: "CardGrid",
|
|
27848
27862
|
props: {
|
|
27849
27863
|
minItemWidth: { default: "280px" },
|
|
@@ -27868,7 +27882,7 @@ const dF = /* @__PURE__ */ V({
|
|
|
27868
27882
|
const l = C(() => {
|
|
27869
27883
|
if (t.fit !== "stretch") return;
|
|
27870
27884
|
const u = s(t.minItemWidth);
|
|
27871
|
-
return u === void 0 ? void 0 :
|
|
27885
|
+
return u === void 0 ? void 0 : fF({ width: o.value, count: r.value, minItemWidth: u, gap: a.value });
|
|
27872
27886
|
}), c = C(() => ({
|
|
27873
27887
|
display: "grid",
|
|
27874
27888
|
gridTemplateColumns: l.value ? `repeat(${l.value}, minmax(0, 1fr))` : `repeat(${t.fit === "fill" ? "auto-fill" : "auto-fit"}, minmax(min(100%, ${t.minItemWidth}), 1fr))`,
|
|
@@ -27886,7 +27900,7 @@ const dF = /* @__PURE__ */ V({
|
|
|
27886
27900
|
], 4));
|
|
27887
27901
|
}
|
|
27888
27902
|
}), Pb = 300;
|
|
27889
|
-
function
|
|
27903
|
+
function hF(e, t = {}) {
|
|
27890
27904
|
const n = Math.max(0, t.delay ?? Pb), o = Math.max(0, t.minVisible ?? 0), r = /* @__PURE__ */ F(n === 0 && e());
|
|
27891
27905
|
let a, i = r.value ? Date.now() : 0;
|
|
27892
27906
|
const s = () => {
|
|
@@ -27900,12 +27914,12 @@ function fF(e, t = {}) {
|
|
|
27900
27914
|
u <= 0 ? c() : a = setTimeout(c, u);
|
|
27901
27915
|
}, { immediate: !0, flush: "sync" }), ze(s), r;
|
|
27902
27916
|
}
|
|
27903
|
-
const
|
|
27917
|
+
const mF = ["data-ui-skeleton", "data-pending"], vF = { class: "sr-only" }, gF = { class: "flex min-w-0 flex-1 flex-col gap-1.5" }, yF = {
|
|
27904
27918
|
key: 0,
|
|
27905
27919
|
"data-ui-skeleton-header": "",
|
|
27906
27920
|
class: "box-border flex border-b border-[var(--ui-border-subtle)]",
|
|
27907
27921
|
style: { height: "var(--ui-grid-header-height)" }
|
|
27908
|
-
},
|
|
27922
|
+
}, bF = { class: "flex w-36 flex-none items-center gap-1 self-start pt-1" }, wF = { class: "min-w-0 flex-1 p-0.5" }, Ob = /* @__PURE__ */ V({
|
|
27909
27923
|
__name: "SectionSkeleton",
|
|
27910
27924
|
props: {
|
|
27911
27925
|
variant: { default: "lines" },
|
|
@@ -27921,7 +27935,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
27921
27935
|
delay: { default: Pb }
|
|
27922
27936
|
},
|
|
27923
27937
|
setup(e) {
|
|
27924
|
-
const t = e, n = Kt(), o =
|
|
27938
|
+
const t = e, n = Kt(), o = hF(() => !0, { delay: t.delay }), r = C(() => t.rowHeight ?? (t.variant === "grid" ? "var(--ui-grid-row-height)" : "48px")), a = C(() => typeof t.columns == "number" ? Array.from({ length: Math.max(1, t.columns) }, () => "auto") : t.columns), i = (u) => u === "auto" ? { flex: "1 1 0" } : { flex: `0 0 ${u}`, width: u }, s = ["62%", "45%", "70%", "38%", "55%"], l = (u, f) => s[(u + f) % s.length], c = ["72px", "56px", "88px", "64px"];
|
|
27925
27939
|
return (u, f) => (g(), I("div", {
|
|
27926
27940
|
role: "status",
|
|
27927
27941
|
"aria-busy": "true",
|
|
@@ -27934,7 +27948,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
27934
27948
|
"flex flex-col gap-2.5 py-1": e.variant === "lines"
|
|
27935
27949
|
})
|
|
27936
27950
|
}, [
|
|
27937
|
-
ae("span",
|
|
27951
|
+
ae("span", vF, Q(d(n)("Loading…")), 1),
|
|
27938
27952
|
e.variant === "figures" ? (g(!0), I(ye, { key: 0 }, Be(e.count, (p) => (g(), I("span", {
|
|
27939
27953
|
key: p,
|
|
27940
27954
|
"data-ui-skeleton-figure": "",
|
|
@@ -27959,7 +27973,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
27959
27973
|
height: "28px",
|
|
27960
27974
|
radius: "var(--ui-radius-pill)"
|
|
27961
27975
|
}),
|
|
27962
|
-
ae("span",
|
|
27976
|
+
ae("span", gF, [
|
|
27963
27977
|
K(Ht, {
|
|
27964
27978
|
width: p % 2 ? "60%" : "45%",
|
|
27965
27979
|
height: "12px"
|
|
@@ -27979,7 +27993,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
27979
27993
|
height: "10px"
|
|
27980
27994
|
})
|
|
27981
27995
|
], 4))), 128)) : e.variant === "grid" ? (g(), I(ye, { key: 2 }, [
|
|
27982
|
-
e.header ? (g(), I("span",
|
|
27996
|
+
e.header ? (g(), I("span", yF, [
|
|
27983
27997
|
(g(!0), I(ye, null, Be(a.value, (p, h) => (g(), I("span", {
|
|
27984
27998
|
key: h,
|
|
27985
27999
|
class: "flex min-w-0 items-center px-2",
|
|
@@ -28011,7 +28025,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28011
28025
|
}, null, 8, ["width"])
|
|
28012
28026
|
], 4))), 128))
|
|
28013
28027
|
], 4))), 128))
|
|
28014
|
-
], 64)) : e.variant === "cards" ? (g(), L(
|
|
28028
|
+
], 64)) : e.variant === "cards" ? (g(), L(pF, {
|
|
28015
28029
|
key: 3,
|
|
28016
28030
|
"min-item-width": e.cardMinWidth,
|
|
28017
28031
|
gap: e.gap,
|
|
@@ -28041,7 +28055,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28041
28055
|
"data-ui-skeleton-field": "",
|
|
28042
28056
|
class: "flex gap-4"
|
|
28043
28057
|
}, [
|
|
28044
|
-
ae("span",
|
|
28058
|
+
ae("span", bF, [
|
|
28045
28059
|
K(Ht, {
|
|
28046
28060
|
width: "16px",
|
|
28047
28061
|
height: "16px"
|
|
@@ -28051,7 +28065,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28051
28065
|
height: "16px"
|
|
28052
28066
|
}, null, 8, ["width"])
|
|
28053
28067
|
]),
|
|
28054
|
-
ae("span",
|
|
28068
|
+
ae("span", wF, [
|
|
28055
28069
|
K(Ht, { height: "var(--ui-control-md)" })
|
|
28056
28070
|
])
|
|
28057
28071
|
]))), 128)) : (g(!0), I(ye, { key: 5 }, Be(e.lines, (p) => (g(), L(Ht, {
|
|
@@ -28059,9 +28073,9 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28059
28073
|
"data-ui-skeleton-line": "",
|
|
28060
28074
|
width: p === e.lines && e.lines > 1 ? "60%" : "100%"
|
|
28061
28075
|
}, null, 8, ["width"]))), 128))
|
|
28062
|
-
], 10,
|
|
28076
|
+
], 10, mF));
|
|
28063
28077
|
}
|
|
28064
|
-
}),
|
|
28078
|
+
}), _F = ["data-variant"], Tb = /* @__PURE__ */ V({
|
|
28065
28079
|
__name: "Surface",
|
|
28066
28080
|
props: {
|
|
28067
28081
|
variant: { default: "default" },
|
|
@@ -28084,7 +28098,7 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28084
28098
|
"data-syno-pkg-land-ui": ""
|
|
28085
28099
|
}, [
|
|
28086
28100
|
z(a.$slots, "default")
|
|
28087
|
-
], 10,
|
|
28101
|
+
], 10, _F));
|
|
28088
28102
|
}
|
|
28089
28103
|
}), xd = /* @__PURE__ */ V({
|
|
28090
28104
|
inheritAttrs: !1,
|
|
@@ -28161,9 +28175,9 @@ const pF = ["data-ui-skeleton", "data-pending"], hF = { class: "sr-only" }, mF =
|
|
|
28161
28175
|
_: 3
|
|
28162
28176
|
}, 8, ["delay-duration"]));
|
|
28163
28177
|
}
|
|
28164
|
-
}),
|
|
28178
|
+
}), xF = '[data-ui-motion="off"]';
|
|
28165
28179
|
function fl(e) {
|
|
28166
|
-
return e?.closest(
|
|
28180
|
+
return e?.closest(xF) ? !0 : typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
28167
28181
|
}
|
|
28168
28182
|
function $b(e) {
|
|
28169
28183
|
const t = /^\s*(-?\d*\.?\d+)(ms|s)\s*$/i.exec(e);
|
|
@@ -28171,7 +28185,7 @@ function $b(e) {
|
|
|
28171
28185
|
const n = Number.parseFloat(t[1]);
|
|
28172
28186
|
return Math.max(0, t[2].toLowerCase() === "s" ? n * 1e3 : n);
|
|
28173
28187
|
}
|
|
28174
|
-
function
|
|
28188
|
+
function SF(e, t) {
|
|
28175
28189
|
if (typeof document > "u" || typeof getComputedStyle != "function") return 0;
|
|
28176
28190
|
const n = t ?? document.documentElement;
|
|
28177
28191
|
return fl(n) ? 0 : $b(getComputedStyle(n).getPropertyValue(e)) ?? 0;
|
|
@@ -28183,7 +28197,7 @@ function za(e) {
|
|
|
28183
28197
|
}), o = n(t.transitionDuration || "0s"), r = n(t.transitionDelay || "0s");
|
|
28184
28198
|
return Math.max(0, ...o.map((a, i) => a + (r[i % r.length] ?? 0)));
|
|
28185
28199
|
}
|
|
28186
|
-
function
|
|
28200
|
+
function kF(e, t = {}) {
|
|
28187
28201
|
const { busy: n, max: o = 3, holdMs: r = 600 } = t, a = /* @__PURE__ */ Ot(/* @__PURE__ */ new Set());
|
|
28188
28202
|
let i = null, s = !1, l;
|
|
28189
28203
|
return n && ie(n, () => {
|
|
@@ -28200,27 +28214,27 @@ function xF(e, t = {}) {
|
|
|
28200
28214
|
}, r));
|
|
28201
28215
|
}, { immediate: !0 }), ze(() => clearTimeout(l)), a;
|
|
28202
28216
|
}
|
|
28203
|
-
function
|
|
28217
|
+
function CF(e) {
|
|
28204
28218
|
const t = /* @__PURE__ */ F(!1), n = ie(e, () => {
|
|
28205
28219
|
t.value = !0, n();
|
|
28206
28220
|
});
|
|
28207
28221
|
return t;
|
|
28208
28222
|
}
|
|
28209
28223
|
const Sh = "data-ui-swapped";
|
|
28210
|
-
function
|
|
28224
|
+
function EF(e, t) {
|
|
28211
28225
|
ie(t, (n, o) => {
|
|
28212
28226
|
const r = e.value;
|
|
28213
28227
|
!r || Object.is(n, o) || (r.removeAttribute(Sh), r.offsetWidth, r.setAttribute(Sh, ""));
|
|
28214
28228
|
}, { flush: "post" });
|
|
28215
28229
|
}
|
|
28216
|
-
const
|
|
28230
|
+
const AF = {
|
|
28217
28231
|
key: 0,
|
|
28218
28232
|
class: "ui-push-header",
|
|
28219
28233
|
"data-ui-push-header": ""
|
|
28220
|
-
},
|
|
28234
|
+
}, PF = {
|
|
28221
28235
|
class: "ui-push-title",
|
|
28222
28236
|
"data-ui-push-title": ""
|
|
28223
|
-
},
|
|
28237
|
+
}, OF = { class: "ui-push-header-actions" }, TF = 20, $F = 0.35, IF = 0.5, kh = 6, DF = /* @__PURE__ */ V({
|
|
28224
28238
|
inheritAttrs: !1,
|
|
28225
28239
|
__name: "PushTransition",
|
|
28226
28240
|
props: {
|
|
@@ -28264,7 +28278,7 @@ const CF = {
|
|
|
28264
28278
|
function y(b) {
|
|
28265
28279
|
if (!s() || b.touches.length !== 1 || !i.value) return;
|
|
28266
28280
|
const _ = b.touches[0], P = i.value.getBoundingClientRect();
|
|
28267
|
-
_.clientX - P.left >
|
|
28281
|
+
_.clientX - P.left > TF || (clearTimeout(f), c = { id: _.identifier, x: _.clientX, y: _.clientY, width: P.width || 1, horizontal: null, progress: 0, lastX: _.clientX, lastT: b.timeStamp, speed: 0 });
|
|
28268
28282
|
}
|
|
28269
28283
|
function w(b) {
|
|
28270
28284
|
if (!c) return;
|
|
@@ -28288,7 +28302,7 @@ const CF = {
|
|
|
28288
28302
|
const P = c;
|
|
28289
28303
|
if (c = null, !P.horizontal) return;
|
|
28290
28304
|
u.value = !1;
|
|
28291
|
-
const k = b.timeStamp - P.lastT > 100 ? 0 : P.speed, $ = b.type === "touchend" && (P.progress >
|
|
28305
|
+
const k = b.timeStamp - P.lastT > 100 ? 0 : P.speed, $ = b.type === "touchend" && (P.progress > $F || k > IF), T = "var(--ui-motion-sheet-ease)";
|
|
28292
28306
|
if ($) {
|
|
28293
28307
|
h(1, `transform var(--ui-motion-pop) ${T}`), o("pop");
|
|
28294
28308
|
return;
|
|
@@ -28321,7 +28335,7 @@ const CF = {
|
|
|
28321
28335
|
onTouchcancel: x
|
|
28322
28336
|
}), {
|
|
28323
28337
|
default: R(() => [
|
|
28324
|
-
n.enabled && (n.title !== void 0 || r.title) ? (g(), I("header",
|
|
28338
|
+
n.enabled && (n.title !== void 0 || r.title) ? (g(), I("header", AF, [
|
|
28325
28339
|
K(Ia, {
|
|
28326
28340
|
class: "ui-push-back",
|
|
28327
28341
|
variant: "ghost",
|
|
@@ -28335,12 +28349,12 @@ const CF = {
|
|
|
28335
28349
|
]),
|
|
28336
28350
|
_: 1
|
|
28337
28351
|
}),
|
|
28338
|
-
ae("h2",
|
|
28352
|
+
ae("h2", PF, [
|
|
28339
28353
|
z(b.$slots, "title", {}, () => [
|
|
28340
28354
|
Oe(Q(n.title), 1)
|
|
28341
28355
|
])
|
|
28342
28356
|
]),
|
|
28343
|
-
ae("div",
|
|
28357
|
+
ae("div", OF, [
|
|
28344
28358
|
z(b.$slots, "header-actions")
|
|
28345
28359
|
])
|
|
28346
28360
|
])) : j("", !0),
|
|
@@ -28354,44 +28368,44 @@ const CF = {
|
|
|
28354
28368
|
_: 3
|
|
28355
28369
|
}, 8, ["css"]));
|
|
28356
28370
|
}
|
|
28357
|
-
}),
|
|
28371
|
+
}), RF = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, MF = {
|
|
28358
28372
|
key: 0,
|
|
28359
28373
|
"data-menu-description": "",
|
|
28360
28374
|
class: "block text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
28361
|
-
},
|
|
28375
|
+
}, NF = {
|
|
28362
28376
|
key: 1,
|
|
28363
28377
|
class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
|
|
28364
|
-
},
|
|
28378
|
+
}, LF = { class: "flex size-4 shrink-0 items-center justify-center text-[var(--ui-primary)]" }, FF = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, zF = {
|
|
28365
28379
|
key: 0,
|
|
28366
28380
|
"data-menu-description": "",
|
|
28367
28381
|
class: "block text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
28368
|
-
},
|
|
28382
|
+
}, BF = {
|
|
28369
28383
|
key: 0,
|
|
28370
28384
|
"data-menu-hint": "",
|
|
28371
28385
|
class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
|
|
28372
|
-
},
|
|
28386
|
+
}, qF = {
|
|
28373
28387
|
key: 1,
|
|
28374
28388
|
class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
|
|
28375
|
-
},
|
|
28389
|
+
}, VF = { class: "flex size-4 shrink-0 items-center justify-center text-[var(--ui-primary)]" }, jF = {
|
|
28376
28390
|
key: 1,
|
|
28377
28391
|
"data-radio-dot": "",
|
|
28378
28392
|
class: "block size-1.5 rounded-full bg-current",
|
|
28379
28393
|
"aria-hidden": "true"
|
|
28380
|
-
},
|
|
28394
|
+
}, UF = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, WF = {
|
|
28381
28395
|
key: 0,
|
|
28382
28396
|
"data-menu-description": "",
|
|
28383
28397
|
class: "block text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
28384
|
-
},
|
|
28398
|
+
}, KF = {
|
|
28385
28399
|
key: 0,
|
|
28386
28400
|
class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
|
|
28387
|
-
},
|
|
28401
|
+
}, HF = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, ZF = {
|
|
28388
28402
|
key: 0,
|
|
28389
28403
|
"data-menu-description": "",
|
|
28390
28404
|
class: "block text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
28391
|
-
},
|
|
28405
|
+
}, GF = {
|
|
28392
28406
|
key: 1,
|
|
28393
28407
|
class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
|
|
28394
|
-
}, Ti = "flex min-h-[var(--ui-menu-row-height)] select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2 py-1 text-left text-[length:var(--ui-font-size)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40",
|
|
28408
|
+
}, Ti = "flex min-h-[var(--ui-menu-row-height)] select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2 py-1 text-left text-[length:var(--ui-font-size)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40", YF = /* @__PURE__ */ V({
|
|
28395
28409
|
name: "DropdownMenuItems",
|
|
28396
28410
|
__name: "DropdownMenuItems",
|
|
28397
28411
|
props: {
|
|
@@ -28448,11 +28462,11 @@ const CF = {
|
|
|
28448
28462
|
"aria-hidden": "true"
|
|
28449
28463
|
})) : j("", !0)
|
|
28450
28464
|
], 2)) : j("", !0),
|
|
28451
|
-
ae("span",
|
|
28465
|
+
ae("span", RF, [
|
|
28452
28466
|
Oe(Q(u.item.label), 1),
|
|
28453
|
-
u.item.description ? (g(), I("span",
|
|
28467
|
+
u.item.description ? (g(), I("span", MF, Q(u.item.description), 1)) : j("", !0)
|
|
28454
28468
|
]),
|
|
28455
|
-
u.item.shortcut ? (g(), I("span",
|
|
28469
|
+
u.item.shortcut ? (g(), I("span", NF, Q(u.item.shortcut), 1)) : j("", !0),
|
|
28456
28470
|
K(d(Da), {
|
|
28457
28471
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
28458
28472
|
"aria-hidden": "true"
|
|
@@ -28504,7 +28518,7 @@ const CF = {
|
|
|
28504
28518
|
onSelect: Et((f) => o("select", u.item.key), ["prevent"])
|
|
28505
28519
|
}, {
|
|
28506
28520
|
default: R(() => [
|
|
28507
|
-
ae("span",
|
|
28521
|
+
ae("span", LF, [
|
|
28508
28522
|
K(d(sh), null, {
|
|
28509
28523
|
default: R(() => [
|
|
28510
28524
|
K(d(to), {
|
|
@@ -28515,12 +28529,12 @@ const CF = {
|
|
|
28515
28529
|
_: 1
|
|
28516
28530
|
})
|
|
28517
28531
|
]),
|
|
28518
|
-
ae("span",
|
|
28532
|
+
ae("span", FF, [
|
|
28519
28533
|
Oe(Q(u.item.label), 1),
|
|
28520
|
-
u.item.description ? (g(), I("span",
|
|
28534
|
+
u.item.description ? (g(), I("span", zF, Q(u.item.description), 1)) : j("", !0)
|
|
28521
28535
|
]),
|
|
28522
|
-
u.item.hint ? (g(), I("span",
|
|
28523
|
-
u.item.shortcut ? (g(), I("span",
|
|
28536
|
+
u.item.hint ? (g(), I("span", BF, Q(u.item.hint), 1)) : j("", !0),
|
|
28537
|
+
u.item.shortcut ? (g(), I("span", qF, Q(u.item.shortcut), 1)) : j("", !0)
|
|
28524
28538
|
]),
|
|
28525
28539
|
_: 2
|
|
28526
28540
|
}, 1032, ["model-value", "disabled", "class", "onUpdate:modelValue", "onSelect"])) : u.kind === "radio" ? (g(), L(d(FR), {
|
|
@@ -28539,23 +28553,23 @@ const CF = {
|
|
|
28539
28553
|
onSelect: (p) => o("radio", f.value, f.key, u.group)
|
|
28540
28554
|
}, {
|
|
28541
28555
|
default: R(() => [
|
|
28542
|
-
ae("span",
|
|
28556
|
+
ae("span", VF, [
|
|
28543
28557
|
K(d(sh), null, {
|
|
28544
28558
|
default: R(() => [
|
|
28545
28559
|
e.radioIndicator === "check" ? (g(), L(d(to), {
|
|
28546
28560
|
key: 0,
|
|
28547
28561
|
class: "size-3.5",
|
|
28548
28562
|
"aria-hidden": "true"
|
|
28549
|
-
})) : (g(), I("span",
|
|
28563
|
+
})) : (g(), I("span", jF))
|
|
28550
28564
|
]),
|
|
28551
28565
|
_: 1
|
|
28552
28566
|
})
|
|
28553
28567
|
]),
|
|
28554
|
-
ae("span",
|
|
28568
|
+
ae("span", UF, [
|
|
28555
28569
|
Oe(Q(f.label), 1),
|
|
28556
|
-
f.description ? (g(), I("span",
|
|
28570
|
+
f.description ? (g(), I("span", WF, Q(f.description), 1)) : j("", !0)
|
|
28557
28571
|
]),
|
|
28558
|
-
f.shortcut ? (g(), I("span",
|
|
28572
|
+
f.shortcut ? (g(), I("span", KF, Q(f.shortcut), 1)) : j("", !0)
|
|
28559
28573
|
]),
|
|
28560
28574
|
_: 2
|
|
28561
28575
|
}, 1032, ["value", "disabled", "class", "onSelect"]))), 128))
|
|
@@ -28585,11 +28599,11 @@ const CF = {
|
|
|
28585
28599
|
"aria-hidden": "true"
|
|
28586
28600
|
})) : j("", !0)
|
|
28587
28601
|
], 2)) : j("", !0),
|
|
28588
|
-
ae("span",
|
|
28602
|
+
ae("span", HF, [
|
|
28589
28603
|
Oe(Q(u.item.label), 1),
|
|
28590
|
-
u.item.description ? (g(), I("span",
|
|
28604
|
+
u.item.description ? (g(), I("span", ZF, Q(u.item.description), 1)) : j("", !0)
|
|
28591
28605
|
]),
|
|
28592
|
-
u.item.shortcut ? (g(), I("span",
|
|
28606
|
+
u.item.shortcut ? (g(), I("span", GF, Q(u.item.shortcut), 1)) : j("", !0),
|
|
28593
28607
|
u.item.submenu ? (g(), L(d(Da), {
|
|
28594
28608
|
key: 2,
|
|
28595
28609
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
@@ -28601,24 +28615,24 @@ const CF = {
|
|
|
28601
28615
|
], 64))), 128);
|
|
28602
28616
|
};
|
|
28603
28617
|
}
|
|
28604
|
-
}),
|
|
28618
|
+
}), JF = ["aria-label"], XF = { class: "min-w-0 flex-1 truncate" }, QF = {
|
|
28605
28619
|
key: 0,
|
|
28606
28620
|
role: "separator",
|
|
28607
28621
|
class: "mx-3 my-1 h-[var(--ui-hairline)] bg-[var(--ui-border-subtle)]"
|
|
28608
|
-
},
|
|
28622
|
+
}, ez = ["role", "aria-checked", "aria-haspopup", "disabled", "data-key", "onClick"], tz = {
|
|
28609
28623
|
key: 0,
|
|
28610
28624
|
"data-radio-dot": "",
|
|
28611
28625
|
class: "block size-2 rounded-full bg-current",
|
|
28612
28626
|
"aria-hidden": "true"
|
|
28613
|
-
},
|
|
28627
|
+
}, nz = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, oz = {
|
|
28614
28628
|
key: 0,
|
|
28615
28629
|
"data-menu-description": "",
|
|
28616
28630
|
class: "block text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]"
|
|
28617
|
-
},
|
|
28631
|
+
}, rz = {
|
|
28618
28632
|
key: 1,
|
|
28619
28633
|
"data-menu-hint": "",
|
|
28620
28634
|
class: "shrink-0 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-muted)]"
|
|
28621
|
-
}, ru = "flex min-h-12 w-full select-none items-center gap-3 rounded-[var(--ui-radius-md)] px-3 py-1.5 text-left text-[length:var(--ui-font-size)] outline-none hover:bg-[var(--ui-neutral-soft)] focus-visible:bg-[var(--ui-neutral-soft)] disabled:opacity-40",
|
|
28635
|
+
}, ru = "flex min-h-12 w-full select-none items-center gap-3 rounded-[var(--ui-radius-md)] px-3 py-1.5 text-left text-[length:var(--ui-font-size)] outline-none hover:bg-[var(--ui-neutral-soft)] focus-visible:bg-[var(--ui-neutral-soft)] disabled:opacity-40", az = /* @__PURE__ */ V({
|
|
28622
28636
|
inheritAttrs: !1,
|
|
28623
28637
|
__name: "DropdownMenuSheet",
|
|
28624
28638
|
props: {
|
|
@@ -28697,15 +28711,15 @@ const CF = {
|
|
|
28697
28711
|
class: "size-5 shrink-0",
|
|
28698
28712
|
"aria-hidden": "true"
|
|
28699
28713
|
}),
|
|
28700
|
-
ae("span",
|
|
28701
|
-
], 10,
|
|
28714
|
+
ae("span", XF, Q(a.value.at(-2)?.label ?? n.title ?? d(r)("Back")), 1)
|
|
28715
|
+
], 10, JF)
|
|
28702
28716
|
]),
|
|
28703
28717
|
_: 1
|
|
28704
28718
|
})) : j("", !0),
|
|
28705
28719
|
(g(!0), I(ye, null, Be(s.value, (v) => (g(), I(ye, {
|
|
28706
28720
|
key: v.key
|
|
28707
28721
|
}, [
|
|
28708
|
-
v.type === "separator" ? (g(), I("div",
|
|
28722
|
+
v.type === "separator" ? (g(), I("div", QF)) : (g(), L(d(wa), {
|
|
28709
28723
|
key: 1,
|
|
28710
28724
|
"as-child": "",
|
|
28711
28725
|
focusable: !v.disabled
|
|
@@ -28727,7 +28741,7 @@ const CF = {
|
|
|
28727
28741
|
class: ce(["flex size-5 shrink-0 items-center justify-center", f(v) ? "text-[var(--ui-primary)]" : v.danger ? "" : "text-[var(--ui-text-secondary)]"])
|
|
28728
28742
|
}, [
|
|
28729
28743
|
f(v) ? (g(), I(ye, { key: 0 }, [
|
|
28730
|
-
v.type === "radio" && n.radioIndicator === "dot" ? (g(), I("span",
|
|
28744
|
+
v.type === "radio" && n.radioIndicator === "dot" ? (g(), I("span", tz)) : (g(), L(d(to), {
|
|
28731
28745
|
key: 1,
|
|
28732
28746
|
class: "size-4",
|
|
28733
28747
|
"aria-hidden": "true"
|
|
@@ -28738,17 +28752,17 @@ const CF = {
|
|
|
28738
28752
|
"aria-hidden": "true"
|
|
28739
28753
|
})) : j("", !0)
|
|
28740
28754
|
], 2)) : j("", !0),
|
|
28741
|
-
ae("span",
|
|
28755
|
+
ae("span", nz, [
|
|
28742
28756
|
Oe(Q(v.label) + " ", 1),
|
|
28743
|
-
v.description ? (g(), I("span",
|
|
28757
|
+
v.description ? (g(), I("span", oz, Q(v.description), 1)) : j("", !0)
|
|
28744
28758
|
]),
|
|
28745
|
-
v.type === "checkbox" && v.hint ? (g(), I("span",
|
|
28759
|
+
v.type === "checkbox" && v.hint ? (g(), I("span", rz, Q(v.hint), 1)) : j("", !0),
|
|
28746
28760
|
v.type !== "checkbox" && v.type !== "radio" && v.children?.length ? (g(), L(d(Da), {
|
|
28747
28761
|
key: 2,
|
|
28748
28762
|
class: "size-5 shrink-0 text-[var(--ui-text-muted)]",
|
|
28749
28763
|
"aria-hidden": "true"
|
|
28750
28764
|
})) : j("", !0)
|
|
28751
|
-
], 10,
|
|
28765
|
+
], 10, ez)
|
|
28752
28766
|
]),
|
|
28753
28767
|
_: 2
|
|
28754
28768
|
}, 1032, ["focusable"]))
|
|
@@ -28833,7 +28847,7 @@ const CF = {
|
|
|
28833
28847
|
default: R(() => [
|
|
28834
28848
|
n.items.length > 0 ? (g(), L(d(IR), le({
|
|
28835
28849
|
key: 0,
|
|
28836
|
-
onOpenAutoFocus: d(
|
|
28850
|
+
onOpenAutoFocus: d(XN),
|
|
28837
28851
|
"data-ui-popup": ""
|
|
28838
28852
|
}, { ...d(p), ...d(m), ...E.$attrs }, {
|
|
28839
28853
|
"data-ui-popup-motion": d(h)() === "none" ? "none" : void 0,
|
|
@@ -28844,7 +28858,7 @@ const CF = {
|
|
|
28844
28858
|
onEscapeKeyDown: d(cl)
|
|
28845
28859
|
}), {
|
|
28846
28860
|
default: R(() => [
|
|
28847
|
-
K(
|
|
28861
|
+
K(YF, {
|
|
28848
28862
|
items: n.items,
|
|
28849
28863
|
"checked-keys": v.value,
|
|
28850
28864
|
"radio-values": y.value,
|
|
@@ -28864,7 +28878,7 @@ const CF = {
|
|
|
28864
28878
|
]),
|
|
28865
28879
|
_: 3
|
|
28866
28880
|
}, 8, ["open"]),
|
|
28867
|
-
d(c) === "sheet" && n.items.length > 0 ? (g(), L(
|
|
28881
|
+
d(c) === "sheet" && n.items.length > 0 ? (g(), L(az, le({ key: 0 }, E.$attrs, {
|
|
28868
28882
|
open: s.value,
|
|
28869
28883
|
"onUpdate:open": b[2] || (b[2] = (_) => s.value = _),
|
|
28870
28884
|
items: n.items,
|
|
@@ -28878,13 +28892,13 @@ const CF = {
|
|
|
28878
28892
|
}), null, 16, ["open", "items", "title", "checked-keys", "radio-values", "radio-indicator"])) : j("", !0)
|
|
28879
28893
|
], 64));
|
|
28880
28894
|
}
|
|
28881
|
-
}),
|
|
28895
|
+
}), iz = 10, sz = 50, lz = {
|
|
28882
28896
|
ArrowLeft: { x: -1, y: 0 },
|
|
28883
28897
|
ArrowRight: { x: 1, y: 0 },
|
|
28884
28898
|
ArrowUp: { x: 0, y: -1 },
|
|
28885
28899
|
ArrowDown: { x: 0, y: 1 }
|
|
28886
28900
|
};
|
|
28887
|
-
function
|
|
28901
|
+
function uz(e, t) {
|
|
28888
28902
|
const n = /* @__PURE__ */ Ot(null), o = C(() => !!t?.draggable.value), r = () => e.value?.parentElement ?? null;
|
|
28889
28903
|
function a(f) {
|
|
28890
28904
|
const p = r()?.getBoundingClientRect();
|
|
@@ -28898,7 +28912,7 @@ function sz(e, t) {
|
|
|
28898
28912
|
let f = t.owner.value;
|
|
28899
28913
|
const p = (h) => {
|
|
28900
28914
|
const m = h.getBoundingClientRect(), v = t.locate();
|
|
28901
|
-
v && (f = v), n.value =
|
|
28915
|
+
v && (f = v), n.value = tL(v ?? t.area.value, m, t.area.value);
|
|
28902
28916
|
};
|
|
28903
28917
|
ie([e, o], ([h, m]) => {
|
|
28904
28918
|
if (!h || !m) {
|
|
@@ -28932,15 +28946,15 @@ function sz(e, t) {
|
|
|
28932
28946
|
m.addEventListener("pointermove", v), m.addEventListener("pointerup", y), m.addEventListener("pointercancel", y);
|
|
28933
28947
|
}
|
|
28934
28948
|
function u(f) {
|
|
28935
|
-
const p =
|
|
28949
|
+
const p = lz[f.key];
|
|
28936
28950
|
if (!o.value || !p || f.altKey || f.ctrlKey || f.metaKey) return;
|
|
28937
28951
|
f.preventDefault();
|
|
28938
|
-
const h = f.shiftKey ?
|
|
28952
|
+
const h = f.shiftKey ? sz : iz;
|
|
28939
28953
|
s = !0, i(p.x * h, p.y * h);
|
|
28940
28954
|
}
|
|
28941
28955
|
return Io(() => l?.()), { position: n, draggable: o, onPointerdown: c, onKeydown: u };
|
|
28942
28956
|
}
|
|
28943
|
-
const
|
|
28957
|
+
const cz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], dz = ["data-ui-dialog-flush"], fz = 'a[href],button,input,select,textarea,[tabindex]:not([tabindex="-1"])', pz = "inset-0! m-0! h-full! max-h-none! w-full! max-w-none! translate-y-0! rounded-none! border-0!", hz = 'input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea,[role="combobox"]', mz = /* @__PURE__ */ V({
|
|
28944
28958
|
inheritAttrs: !1,
|
|
28945
28959
|
__name: "Dialog",
|
|
28946
28960
|
props: {
|
|
@@ -28972,7 +28986,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
28972
28986
|
const _e = pe instanceof HTMLElement ? pe : null;
|
|
28973
28987
|
if (!_e) return;
|
|
28974
28988
|
re.preventDefault();
|
|
28975
|
-
const $e = Array.from(_e.querySelectorAll(
|
|
28989
|
+
const $e = Array.from(_e.querySelectorAll(fz)).find((Fe) => !Fe.matches("[data-dialog-close], [data-ui-keyboard-focus], :disabled") && a(Fe));
|
|
28976
28990
|
$e && ys($e), (!$e || document.activeElement !== $e) && (_e.tabIndex = -1, ys(_e));
|
|
28977
28991
|
}
|
|
28978
28992
|
function l(re) {
|
|
@@ -28981,7 +28995,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
28981
28995
|
function c(re, pe) {
|
|
28982
28996
|
mb(pe), r(re === "pointerDownOutside" ? "pointerDownOutside" : "interactOutside", pe), o.closeOnOutside || pe.preventDefault();
|
|
28983
28997
|
}
|
|
28984
|
-
const u = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = bd(), p = C(() => f?.element.value ?? null), { position: h, draggable: m, onPointerdown: v, onKeydown: y } =
|
|
28998
|
+
const u = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = bd(), p = C(() => f?.element.value ?? null), { position: h, draggable: m, onPointerdown: v, onKeydown: y } = uz(qe("handle"), f), w = C(() => o.width ? void 0 : o.size), x = C(() => o.width ?? (w.value && `var(--ui-dialog-width-${w.value})`)), E = C(() => !!x.value), b = IP(), _ = C(() => E.value ? void 0 : b.value), P = C(() => ({
|
|
28985
28999
|
left: h.value && `${h.value.x}px`,
|
|
28986
29000
|
top: h.value && `${h.value.y}px`,
|
|
28987
29001
|
maxWidth: x.value,
|
|
@@ -28993,7 +29007,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
28993
29007
|
maxHeight: o.maxHeight && `min(${o.maxHeight}, 100%)`
|
|
28994
29008
|
})), k = vd(), $ = C(() => f ? !f.draggable.value : k.value), T = /* @__PURE__ */ F(!1), A = C(() => o.fullscreen || T.value ? "full" : "auto"), D = qe("sheetFields");
|
|
28995
29009
|
function M(re) {
|
|
28996
|
-
T.value = (D.value?.querySelectorAll(
|
|
29010
|
+
T.value = (D.value?.querySelectorAll(hz).length ?? 0) > 3, r("openAutoFocus", re);
|
|
28997
29011
|
}
|
|
28998
29012
|
const q = Cn(), U = () => ub(q.default), B = C(() => !!(o.title || o.description) || o.showClose || !!q.header), Y = /* @__PURE__ */ F(o.defaultOpen), W = C({
|
|
28999
29013
|
get: () => o.open ?? Y.value,
|
|
@@ -29087,7 +29101,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
29087
29101
|
d(h) ? void 0 : "inset-x-0 mx-auto top-1/2 -translate-y-1/2",
|
|
29088
29102
|
// DSM rounds a modal window 3px and only a message box 8px.
|
|
29089
29103
|
B.value ? "rounded-[var(--ui-radius-window)]" : "rounded-[var(--ui-radius-dialog)]",
|
|
29090
|
-
d(o).fullscreen === !0 &&
|
|
29104
|
+
d(o).fullscreen === !0 && pz
|
|
29091
29105
|
]],
|
|
29092
29106
|
style: P.value,
|
|
29093
29107
|
"data-ui-dialog-sizing": E.value ? "fixed" : "content",
|
|
@@ -29153,7 +29167,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
29153
29167
|
]),
|
|
29154
29168
|
_: 1
|
|
29155
29169
|
}, 8, ["aria-label"])) : j("", !0)
|
|
29156
|
-
], 42,
|
|
29170
|
+
], 42, cz)) : j("", !0),
|
|
29157
29171
|
U() ? (g(), I("div", {
|
|
29158
29172
|
key: 1,
|
|
29159
29173
|
"data-ui-dialog-body": "",
|
|
@@ -29161,7 +29175,7 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
29161
29175
|
"data-ui-dialog-flush": d(o).flush ? "" : void 0
|
|
29162
29176
|
}, [
|
|
29163
29177
|
z(re.$slots, "default")
|
|
29164
|
-
], 10,
|
|
29178
|
+
], 10, dz)) : j("", !0),
|
|
29165
29179
|
re.$slots.footer ? (g(), I("footer", {
|
|
29166
29180
|
key: 2,
|
|
29167
29181
|
class: ce(["flex shrink-0 flex-wrap items-center justify-end gap-2", B.value ? ["min-h-12 px-5 py-2.5", U() && "border-t border-[var(--ui-border-subtle)]"] : "px-[30px] pt-7 pb-5"])
|
|
@@ -29187,11 +29201,11 @@ const lz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], uz = ["data
|
|
|
29187
29201
|
}, 8, ["open"]));
|
|
29188
29202
|
}
|
|
29189
29203
|
});
|
|
29190
|
-
function
|
|
29204
|
+
function vz() {
|
|
29191
29205
|
const e = Re(pr, null), t = wP("(pointer: coarse)");
|
|
29192
29206
|
return C(() => e?.value === "mobile" && t.value);
|
|
29193
29207
|
}
|
|
29194
|
-
function
|
|
29208
|
+
function gz(e, t, n, o = 0) {
|
|
29195
29209
|
const r = /* @__PURE__ */ F({ width: "0px", transform: "translateX(0px)", opacity: 0 });
|
|
29196
29210
|
return ie([e, () => t().map((a) => [a.value, a.label]), n], ([a, i, s], l, c) => {
|
|
29197
29211
|
if (!a) return;
|
|
@@ -29241,15 +29255,15 @@ function Db(e, t) {
|
|
|
29241
29255
|
e.value?.removeEventListener("scroll", r), e.value?.removeEventListener("wheel", i), s?.disconnect();
|
|
29242
29256
|
}), { overflowStart: n, overflowEnd: o };
|
|
29243
29257
|
}
|
|
29244
|
-
const
|
|
29245
|
-
function
|
|
29246
|
-
return
|
|
29258
|
+
const yz = /* @__PURE__ */ Sn(/* @__PURE__ */ new Map());
|
|
29259
|
+
function bz(e) {
|
|
29260
|
+
return yz.get(e);
|
|
29247
29261
|
}
|
|
29248
29262
|
const Rb = /* @__PURE__ */ Symbol("syno-segment-control");
|
|
29249
|
-
function
|
|
29263
|
+
function wz() {
|
|
29250
29264
|
return Re(Rb, void 0);
|
|
29251
29265
|
}
|
|
29252
|
-
const
|
|
29266
|
+
const _z = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-overflow-start", "data-overflow-end", "data-ui-segment-size"], xz = /* @__PURE__ */ V({
|
|
29253
29267
|
__name: "SegmentControl",
|
|
29254
29268
|
props: {
|
|
29255
29269
|
modelValue: { default: "" },
|
|
@@ -29362,15 +29376,15 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29362
29376
|
"aria-hidden": "true",
|
|
29363
29377
|
onTransitionend: _
|
|
29364
29378
|
}, null, 36)
|
|
29365
|
-
], 10,
|
|
29379
|
+
], 10, _z));
|
|
29366
29380
|
}
|
|
29367
|
-
}),
|
|
29381
|
+
}), Sz = ["data-ui-tab-value", "aria-selected", "aria-label", "aria-disabled", "tabindex", "data-state", "title"], kz = {
|
|
29368
29382
|
key: 0,
|
|
29369
29383
|
class: "flex shrink-0 items-center"
|
|
29370
|
-
},
|
|
29384
|
+
}, Cz = ["data-icon-only"], Ez = {
|
|
29371
29385
|
key: 3,
|
|
29372
29386
|
class: "flex shrink-0 items-center"
|
|
29373
|
-
},
|
|
29387
|
+
}, Az = ["role", "aria-label", "aria-hidden"], Pz = /* @__PURE__ */ V({
|
|
29374
29388
|
inheritAttrs: !1,
|
|
29375
29389
|
__name: "SegmentItem",
|
|
29376
29390
|
props: {
|
|
@@ -29382,7 +29396,7 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29382
29396
|
count: {}
|
|
29383
29397
|
},
|
|
29384
29398
|
setup(e) {
|
|
29385
|
-
const t = e, n =
|
|
29399
|
+
const t = e, n = wz(), o = /* @__PURE__ */ F(), r = /* @__PURE__ */ F(null), a = /* @__PURE__ */ F(!1);
|
|
29386
29400
|
function i() {
|
|
29387
29401
|
const T = r.value, A = !!T && !T.textContent?.trim() && !!T.querySelector(":scope > svg");
|
|
29388
29402
|
A !== a.value && (a.value = A);
|
|
@@ -29471,7 +29485,7 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29471
29485
|
onKeydown: $,
|
|
29472
29486
|
onFocus: x
|
|
29473
29487
|
}), [
|
|
29474
|
-
T.$slots.icon ? (g(), I("span",
|
|
29488
|
+
T.$slots.icon ? (g(), I("span", kz, [
|
|
29475
29489
|
z(T.$slots, "icon")
|
|
29476
29490
|
])) : j("", !0),
|
|
29477
29491
|
T.$slots.default ? (g(), I("span", {
|
|
@@ -29483,13 +29497,13 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29483
29497
|
"data-icon-only": a.value || void 0
|
|
29484
29498
|
}, [
|
|
29485
29499
|
z(T.$slots, "default")
|
|
29486
|
-
], 10,
|
|
29500
|
+
], 10, Cz)) : j("", !0),
|
|
29487
29501
|
y.value ? (g(), I("span", {
|
|
29488
29502
|
key: 2,
|
|
29489
29503
|
"data-ui-segment-count": "",
|
|
29490
29504
|
class: ce(w.value)
|
|
29491
29505
|
}, Q(t.count), 3)) : j("", !0),
|
|
29492
|
-
T.$slots.suffix ? (g(), I("span",
|
|
29506
|
+
T.$slots.suffix ? (g(), I("span", Ez, [
|
|
29493
29507
|
z(T.$slots, "suffix")
|
|
29494
29508
|
])) : j("", !0),
|
|
29495
29509
|
u.value ? (g(), I("span", {
|
|
@@ -29499,13 +29513,13 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29499
29513
|
"aria-label": f.value,
|
|
29500
29514
|
"aria-hidden": f.value ? void 0 : "true",
|
|
29501
29515
|
class: "size-1.5 shrink-0 rounded-full bg-[var(--ui-danger)]"
|
|
29502
|
-
}, null, 8,
|
|
29503
|
-
], 16,
|
|
29516
|
+
}, null, 8, Az)) : j("", !0)
|
|
29517
|
+
], 16, Sz)
|
|
29504
29518
|
]),
|
|
29505
29519
|
_: 3
|
|
29506
29520
|
}, 8, ["content", "disabled"]));
|
|
29507
29521
|
}
|
|
29508
|
-
}),
|
|
29522
|
+
}), Oz = ["disabled", "aria-label", "value", "placeholder"], Tz = ["disabled", "aria-label"], $z = /* @__PURE__ */ V({
|
|
29509
29523
|
inheritAttrs: !1,
|
|
29510
29524
|
__name: "SearchField",
|
|
29511
29525
|
props: {
|
|
@@ -29541,7 +29555,7 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29541
29555
|
onInput: f[0] || (f[0] = (p) => {
|
|
29542
29556
|
d(l)(p.target.value), a("update:modelValue", p.target.value);
|
|
29543
29557
|
})
|
|
29544
|
-
}), null, 16,
|
|
29558
|
+
}), null, 16, Oz),
|
|
29545
29559
|
d(r).modelValue ? (g(), I("button", {
|
|
29546
29560
|
key: 2,
|
|
29547
29561
|
"data-ui-hit": "",
|
|
@@ -29557,22 +29571,22 @@ const bz = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29557
29571
|
class: "size-3.5",
|
|
29558
29572
|
"aria-hidden": "true"
|
|
29559
29573
|
})
|
|
29560
|
-
], 8,
|
|
29574
|
+
], 8, Tz)) : j("", !0)
|
|
29561
29575
|
], 16));
|
|
29562
29576
|
}
|
|
29563
|
-
}),
|
|
29577
|
+
}), Iz = { xs: "96px", sm: "160px", md: "320px", lg: "480px" }, tc = "md", Dz = /* @__PURE__ */ new Set(["md", "lg"]);
|
|
29564
29578
|
function Mb(e, t = !1) {
|
|
29565
29579
|
const n = e ?? tc;
|
|
29566
|
-
if (!(n === "full" || t &&
|
|
29567
|
-
return
|
|
29580
|
+
if (!(n === "full" || t && Dz.has(n)))
|
|
29581
|
+
return Iz[n] ?? n;
|
|
29568
29582
|
}
|
|
29569
|
-
const
|
|
29583
|
+
const Rz = ["data-direction"], Mz = {
|
|
29570
29584
|
key: 0,
|
|
29571
29585
|
class: "ml-0.5 text-[var(--ui-danger)]"
|
|
29572
|
-
},
|
|
29586
|
+
}, Nz = { class: "min-w-0" }, Lz = {
|
|
29573
29587
|
key: 0,
|
|
29574
29588
|
class: "mt-1 text-[12px] leading-4 text-[var(--ui-text-secondary)]"
|
|
29575
|
-
},
|
|
29589
|
+
}, Fz = /* @__PURE__ */ V({
|
|
29576
29590
|
__name: "SettingsRow",
|
|
29577
29591
|
props: {
|
|
29578
29592
|
label: {},
|
|
@@ -29602,20 +29616,20 @@ const Iz = ["data-direction"], Dz = {
|
|
|
29602
29616
|
class: ce(["min-w-0 break-words [word-break:keep-all] text-left text-[length:var(--ui-font-size-control)] text-[var(--ui-text)]", n.value === "start" && "pt-[var(--ui-label-offset)]"])
|
|
29603
29617
|
}, [
|
|
29604
29618
|
Oe(Q(e.label), 1),
|
|
29605
|
-
e.required ? (g(), I("span",
|
|
29619
|
+
e.required ? (g(), I("span", Mz, "*")) : j("", !0)
|
|
29606
29620
|
], 2),
|
|
29607
|
-
ae("div",
|
|
29621
|
+
ae("div", Nz, [
|
|
29608
29622
|
ae("div", {
|
|
29609
29623
|
"data-field-control": "",
|
|
29610
29624
|
style: Ve(i.value)
|
|
29611
29625
|
}, [
|
|
29612
29626
|
z(l.$slots, "default")
|
|
29613
29627
|
], 4),
|
|
29614
|
-
e.description ? (g(), I("p",
|
|
29628
|
+
e.description ? (g(), I("p", Lz, Q(e.description), 1)) : j("", !0)
|
|
29615
29629
|
])
|
|
29616
|
-
], 14,
|
|
29630
|
+
], 14, Rz));
|
|
29617
29631
|
}
|
|
29618
|
-
}),
|
|
29632
|
+
}), zz = ["data-open", "data-moving", "inert"], Bz = { class: "ui-collapse-inner" }, Sd = /* @__PURE__ */ V({
|
|
29619
29633
|
__name: "MotionCollapse",
|
|
29620
29634
|
props: {
|
|
29621
29635
|
open: { type: Boolean }
|
|
@@ -29635,11 +29649,11 @@ const Iz = ["data-direction"], Dz = {
|
|
|
29635
29649
|
return;
|
|
29636
29650
|
}
|
|
29637
29651
|
if (u) {
|
|
29638
|
-
if (o.value = !0, await
|
|
29652
|
+
if (o.value = !0, await Le(), f !== s) return;
|
|
29639
29653
|
p.offsetHeight, r.value = !0;
|
|
29640
29654
|
} else
|
|
29641
29655
|
r.value = !1;
|
|
29642
|
-
a.value = !0, await
|
|
29656
|
+
a.value = !0, await Le(), f === s && (i = setTimeout(() => l(f), za(p) + 50));
|
|
29643
29657
|
});
|
|
29644
29658
|
function c(u) {
|
|
29645
29659
|
u.target === n.value && u.propertyName === "grid-template-rows" && l(s);
|
|
@@ -29653,10 +29667,10 @@ const Iz = ["data-direction"], Dz = {
|
|
|
29653
29667
|
inert: !t.open || void 0,
|
|
29654
29668
|
onTransitionend: c
|
|
29655
29669
|
}, [
|
|
29656
|
-
ae("div",
|
|
29670
|
+
ae("div", Bz, [
|
|
29657
29671
|
z(u.$slots, "default")
|
|
29658
29672
|
])
|
|
29659
|
-
], 40,
|
|
29673
|
+
], 40, zz)), [
|
|
29660
29674
|
[Dr, o.value]
|
|
29661
29675
|
]);
|
|
29662
29676
|
}
|
|
@@ -29671,26 +29685,26 @@ function Nb(e, t, n) {
|
|
|
29671
29685
|
}
|
|
29672
29686
|
return { value: a, isControlled: r, set: i, toggle: () => i(!a.value) };
|
|
29673
29687
|
}
|
|
29674
|
-
const
|
|
29688
|
+
const qz = ["data-collapsible", "aria-busy"], Vz = {
|
|
29675
29689
|
key: 0,
|
|
29676
29690
|
class: "ui-settings-section-header flex h-9 items-center gap-2 border-0 border-b border-solid border-[var(--ui-border)] text-[14px]"
|
|
29677
|
-
},
|
|
29691
|
+
}, jz = ["aria-expanded", "aria-controls"], Uz = { class: "min-w-0 truncate" }, Wz = {
|
|
29678
29692
|
key: 0,
|
|
29679
29693
|
class: "flex shrink-0 items-center gap-1.5"
|
|
29680
|
-
},
|
|
29694
|
+
}, Kz = {
|
|
29681
29695
|
key: 1,
|
|
29682
29696
|
class: "ui-settings-section-header flex h-9 items-center gap-2 border-0 border-b border-solid border-[var(--ui-border)] text-[14px] font-semibold text-[var(--ui-text)]"
|
|
29683
|
-
},
|
|
29697
|
+
}, Hz = { class: "min-w-0 flex-1 truncate" }, Zz = {
|
|
29684
29698
|
key: 0,
|
|
29685
29699
|
class: "flex shrink-0 items-center gap-1.5"
|
|
29686
|
-
},
|
|
29700
|
+
}, Gz = ["id"], Yz = {
|
|
29687
29701
|
key: 0,
|
|
29688
29702
|
class: "m-0 mb-4 max-w-[72ch] text-[length:var(--ui-font-size-control)] leading-5 text-[var(--ui-text-secondary)]"
|
|
29689
|
-
},
|
|
29703
|
+
}, Jz = {
|
|
29690
29704
|
key: 3,
|
|
29691
29705
|
"data-ui-settings-footer": "",
|
|
29692
29706
|
class: "mt-4 flex flex-wrap items-center gap-2"
|
|
29693
|
-
},
|
|
29707
|
+
}, Xz = /* @__PURE__ */ V({
|
|
29694
29708
|
__name: "SettingsSection",
|
|
29695
29709
|
props: {
|
|
29696
29710
|
title: {},
|
|
@@ -29713,7 +29727,7 @@ const zz = ["data-collapsible", "aria-busy"], Bz = {
|
|
|
29713
29727
|
"data-syno-pkg-land-ui": "",
|
|
29714
29728
|
"aria-busy": e.loading || void 0
|
|
29715
29729
|
}, [
|
|
29716
|
-
e.collapsible ? (g(), I("div",
|
|
29730
|
+
e.collapsible ? (g(), I("div", Vz, [
|
|
29717
29731
|
ae("button", {
|
|
29718
29732
|
type: "button",
|
|
29719
29733
|
class: "group m-0 flex h-full min-w-0 flex-1 border-0 bg-transparent p-0 items-center gap-2 text-left text-[length:inherit] font-semibold text-[var(--ui-text)] outline-none enabled:hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]",
|
|
@@ -29726,22 +29740,22 @@ const zz = ["data-collapsible", "aria-busy"], Bz = {
|
|
|
29726
29740
|
class: ce(["size-4 shrink-0 transition-transform", !d(a) && "-rotate-90"]),
|
|
29727
29741
|
"aria-hidden": "true"
|
|
29728
29742
|
}, null, 8, ["class"]),
|
|
29729
|
-
ae("span",
|
|
29743
|
+
ae("span", Uz, [
|
|
29730
29744
|
z(u.$slots, "title", {}, () => [
|
|
29731
29745
|
Oe(Q(e.title), 1)
|
|
29732
29746
|
])
|
|
29733
29747
|
])
|
|
29734
|
-
], 8,
|
|
29735
|
-
u.$slots.actions ? (g(), I("span",
|
|
29748
|
+
], 8, jz),
|
|
29749
|
+
u.$slots.actions ? (g(), I("span", Wz, [
|
|
29736
29750
|
z(u.$slots, "actions")
|
|
29737
29751
|
])) : j("", !0)
|
|
29738
|
-
])) : c.value ? (g(), I("div",
|
|
29739
|
-
ae("span",
|
|
29752
|
+
])) : c.value ? (g(), I("div", Kz, [
|
|
29753
|
+
ae("span", Hz, [
|
|
29740
29754
|
z(u.$slots, "title", {}, () => [
|
|
29741
29755
|
Oe(Q(e.title), 1)
|
|
29742
29756
|
])
|
|
29743
29757
|
]),
|
|
29744
|
-
u.$slots.actions ? (g(), I("span",
|
|
29758
|
+
u.$slots.actions ? (g(), I("span", Zz, [
|
|
29745
29759
|
z(u.$slots, "actions")
|
|
29746
29760
|
])) : j("", !0)
|
|
29747
29761
|
])) : j("", !0),
|
|
@@ -29751,22 +29765,22 @@ const zz = ["data-collapsible", "aria-busy"], Bz = {
|
|
|
29751
29765
|
id: d(r),
|
|
29752
29766
|
class: ce(["ui-settings-section-body", c.value && "pt-3"])
|
|
29753
29767
|
}, [
|
|
29754
|
-
e.description || u.$slots.description ? (g(), I("p",
|
|
29768
|
+
e.description || u.$slots.description ? (g(), I("p", Yz, [
|
|
29755
29769
|
z(u.$slots, "description", {}, () => [
|
|
29756
29770
|
Oe(Q(e.description), 1)
|
|
29757
29771
|
])
|
|
29758
29772
|
])) : j("", !0),
|
|
29759
29773
|
e.loading ? (g(), L(Ob, { key: 1 })) : z(u.$slots, "default", {}, void 0, void 0, 2),
|
|
29760
|
-
u.$slots.footer && !e.loading ? (g(), I("div",
|
|
29774
|
+
u.$slots.footer && !e.loading ? (g(), I("div", Jz, [
|
|
29761
29775
|
z(u.$slots, "footer")
|
|
29762
29776
|
])) : j("", !0)
|
|
29763
|
-
], 10,
|
|
29777
|
+
], 10, Gz)
|
|
29764
29778
|
]),
|
|
29765
29779
|
_: 3
|
|
29766
29780
|
}, 8, ["open"])
|
|
29767
|
-
], 8,
|
|
29781
|
+
], 8, qz));
|
|
29768
29782
|
}
|
|
29769
|
-
}),
|
|
29783
|
+
}), Qz = "syno-pkg-land-ui:callout:";
|
|
29770
29784
|
function Lb(e) {
|
|
29771
29785
|
let t = 2166136261;
|
|
29772
29786
|
for (let n = 0; n < e.length; n++)
|
|
@@ -29784,12 +29798,12 @@ function zb() {
|
|
|
29784
29798
|
const { host: e, pathname: t } = Fb(), n = /\/webman\/3rdparty\/([^/]+)/.exec(t);
|
|
29785
29799
|
return n ? n[1] : `${e}${t.replace(/\/[^/]*$/, "")}`;
|
|
29786
29800
|
}
|
|
29787
|
-
function
|
|
29801
|
+
function eB(e, t, n) {
|
|
29788
29802
|
const { pathname: o, hash: r } = Fb(), a = e ?? `auto-${Lb([o + r, t, n].join("\0"))}`;
|
|
29789
|
-
return `${
|
|
29803
|
+
return `${Qz}${zb()}:${a}`;
|
|
29790
29804
|
}
|
|
29791
29805
|
const kd = /* @__PURE__ */ new Map(), Cd = /* @__PURE__ */ F(0);
|
|
29792
|
-
function
|
|
29806
|
+
function tB(e, t) {
|
|
29793
29807
|
if (Cd.value, kd.get(e) === t) return !0;
|
|
29794
29808
|
try {
|
|
29795
29809
|
return globalThis.localStorage?.getItem(e) === t;
|
|
@@ -29797,7 +29811,7 @@ function Qz(e, t) {
|
|
|
29797
29811
|
return !1;
|
|
29798
29812
|
}
|
|
29799
29813
|
}
|
|
29800
|
-
function
|
|
29814
|
+
function nB(e, t, n) {
|
|
29801
29815
|
if (kd.set(e, t), n)
|
|
29802
29816
|
try {
|
|
29803
29817
|
globalThis.localStorage?.setItem(e, t);
|
|
@@ -29805,7 +29819,7 @@ function eB(e, t, n) {
|
|
|
29805
29819
|
}
|
|
29806
29820
|
Cd.value++;
|
|
29807
29821
|
}
|
|
29808
|
-
function
|
|
29822
|
+
function oB(e) {
|
|
29809
29823
|
kd.delete(e);
|
|
29810
29824
|
try {
|
|
29811
29825
|
globalThis.localStorage?.removeItem(e);
|
|
@@ -29813,10 +29827,10 @@ function tB(e) {
|
|
|
29813
29827
|
}
|
|
29814
29828
|
Cd.value++;
|
|
29815
29829
|
}
|
|
29816
|
-
let
|
|
29830
|
+
let rB = 0;
|
|
29817
29831
|
const Ba = /* @__PURE__ */ tr(/* @__PURE__ */ new Map());
|
|
29818
|
-
function
|
|
29819
|
-
const t =
|
|
29832
|
+
function aB(e) {
|
|
29833
|
+
const t = rB++;
|
|
29820
29834
|
return Ba.set(t, e), () => Ba.delete(t);
|
|
29821
29835
|
}
|
|
29822
29836
|
const _a = /* @__PURE__ */ tr([]);
|
|
@@ -29835,17 +29849,17 @@ function Vb() {
|
|
|
29835
29849
|
const e = Bb("chrome");
|
|
29836
29850
|
return ze(e.unregister), C(() => qb.value === e.id && Ba.size > 0);
|
|
29837
29851
|
}
|
|
29838
|
-
const
|
|
29852
|
+
const iB = {
|
|
29839
29853
|
key: 0,
|
|
29840
29854
|
"data-ui-callout-recall": "",
|
|
29841
29855
|
class: "ui-callout-recall"
|
|
29842
|
-
},
|
|
29856
|
+
}, sB = { class: "ui-callout-recall-title" }, lB = { class: "ui-callout-recall-list" }, uB = ["data-tone"], cB = { class: "ui-callout-recall-label" }, dB = ["onClick"], jb = /* @__PURE__ */ V({
|
|
29843
29857
|
__name: "CalloutRecallList",
|
|
29844
29858
|
setup(e) {
|
|
29845
29859
|
const t = Kt(), n = C(() => [...Ba.entries()]);
|
|
29846
|
-
return (o, r) => n.value.length ? (g(), I("div",
|
|
29847
|
-
ae("div",
|
|
29848
|
-
ae("ul",
|
|
29860
|
+
return (o, r) => n.value.length ? (g(), I("div", iB, [
|
|
29861
|
+
ae("div", sB, Q(d(t)("Hidden notices")), 1),
|
|
29862
|
+
ae("ul", lB, [
|
|
29849
29863
|
(g(!0), I(ye, null, Be(n.value, ([a, i]) => (g(), I("li", {
|
|
29850
29864
|
key: a,
|
|
29851
29865
|
"data-tone": i.tone,
|
|
@@ -29855,18 +29869,18 @@ const rB = {
|
|
|
29855
29869
|
class: "ui-callout-recall-icon",
|
|
29856
29870
|
"aria-hidden": "true"
|
|
29857
29871
|
})),
|
|
29858
|
-
ae("span",
|
|
29872
|
+
ae("span", cB, Q(i.label), 1),
|
|
29859
29873
|
ae("button", {
|
|
29860
29874
|
type: "button",
|
|
29861
29875
|
"data-ui-callout-restore": "",
|
|
29862
29876
|
class: "ui-callout-recall-restore",
|
|
29863
29877
|
onClick: (s) => i.restore()
|
|
29864
|
-
}, Q(d(t)("Show again")), 9,
|
|
29865
|
-
], 8,
|
|
29878
|
+
}, Q(d(t)("Show again")), 9, dB)
|
|
29879
|
+
], 8, uB))), 128))
|
|
29866
29880
|
])
|
|
29867
29881
|
])) : j("", !0);
|
|
29868
29882
|
}
|
|
29869
|
-
}),
|
|
29883
|
+
}), fB = ["aria-label", "aria-expanded", "data-disabled", "data-ui-infotip-wrap", "data-ui-hit"], Ub = /* @__PURE__ */ V({
|
|
29870
29884
|
inheritAttrs: !1,
|
|
29871
29885
|
__name: "InfoTip",
|
|
29872
29886
|
props: {
|
|
@@ -29960,7 +29974,7 @@ const rB = {
|
|
|
29960
29974
|
clearTimeout(T), !(u.value || h.value === "click") && (oe(S.relatedTarget) || U());
|
|
29961
29975
|
}
|
|
29962
29976
|
let $e = !1;
|
|
29963
|
-
function
|
|
29977
|
+
function Fe() {
|
|
29964
29978
|
if (h.value !== "click") return;
|
|
29965
29979
|
$e = !0;
|
|
29966
29980
|
const S = () => setTimeout(() => {
|
|
@@ -30032,7 +30046,7 @@ const rB = {
|
|
|
30032
30046
|
]],
|
|
30033
30047
|
onPointerenter: he,
|
|
30034
30048
|
onPointerleave: re,
|
|
30035
|
-
onPointerdown:
|
|
30049
|
+
onPointerdown: Fe,
|
|
30036
30050
|
onFocus: pe,
|
|
30037
30051
|
onBlur: _e,
|
|
30038
30052
|
onClick: nt,
|
|
@@ -30044,7 +30058,7 @@ const rB = {
|
|
|
30044
30058
|
"aria-hidden": "true"
|
|
30045
30059
|
}, null, 8, ["class"]))
|
|
30046
30060
|
])
|
|
30047
|
-
], 16,
|
|
30061
|
+
], 16, fB)
|
|
30048
30062
|
]),
|
|
30049
30063
|
_: 3
|
|
30050
30064
|
}),
|
|
@@ -30088,37 +30102,37 @@ const rB = {
|
|
|
30088
30102
|
_: 3
|
|
30089
30103
|
}, 8, ["delay-duration"]));
|
|
30090
30104
|
}
|
|
30091
|
-
}),
|
|
30105
|
+
}), pB = ["data-tone"], hB = {
|
|
30092
30106
|
key: 0,
|
|
30093
30107
|
"data-ui-callout-title": "",
|
|
30094
30108
|
class: "ui-callout-title"
|
|
30095
|
-
},
|
|
30109
|
+
}, mB = {
|
|
30096
30110
|
key: 1,
|
|
30097
30111
|
"data-ui-callout-body": ""
|
|
30098
|
-
},
|
|
30112
|
+
}, vB = ["id"], gB = {
|
|
30099
30113
|
key: 0,
|
|
30100
30114
|
"data-ui-callout-title": "",
|
|
30101
30115
|
class: "ui-callout-title"
|
|
30102
|
-
},
|
|
30116
|
+
}, yB = {
|
|
30103
30117
|
key: 1,
|
|
30104
30118
|
"data-ui-callout-body": ""
|
|
30105
|
-
},
|
|
30119
|
+
}, bB = ["data-tone", "data-variant", "data-fill", "data-dismissible", "hidden"], wB = { class: "ui-callout-main" }, _B = {
|
|
30106
30120
|
key: 0,
|
|
30107
30121
|
"data-ui-callout-title": "",
|
|
30108
30122
|
class: "ui-callout-title"
|
|
30109
|
-
},
|
|
30123
|
+
}, xB = {
|
|
30110
30124
|
key: 1,
|
|
30111
30125
|
"data-ui-callout-body": "",
|
|
30112
30126
|
class: "ui-callout-body"
|
|
30113
|
-
},
|
|
30127
|
+
}, SB = {
|
|
30114
30128
|
key: 2,
|
|
30115
30129
|
"data-ui-callout-code": "",
|
|
30116
30130
|
class: "font-[family-name:var(--ui-font-mono)] text-[12px] text-[var(--ui-text-secondary)]"
|
|
30117
|
-
},
|
|
30131
|
+
}, kB = ["aria-expanded", "aria-controls"], CB = ["id"], EB = {
|
|
30118
30132
|
key: 0,
|
|
30119
30133
|
"data-ui-callout-actions": "",
|
|
30120
30134
|
class: "ui-callout-actions"
|
|
30121
|
-
},
|
|
30135
|
+
}, AB = ["aria-label"], PB = /* @__PURE__ */ V({
|
|
30122
30136
|
__name: "Callout",
|
|
30123
30137
|
props: /* @__PURE__ */ Gi({
|
|
30124
30138
|
tone: { default: "info" },
|
|
@@ -30137,7 +30151,7 @@ const rB = {
|
|
|
30137
30151
|
}),
|
|
30138
30152
|
emits: /* @__PURE__ */ Gi(["close"], ["update:expanded"]),
|
|
30139
30153
|
setup(e, { emit: t }) {
|
|
30140
|
-
const o = Wn(e, { closeLabel: "Close", moreLabel: "Learn more", lessLabel: "Show less" }), r = t, a = yu(e, "expanded"), i = C(() => ({ info: Xg, success: HP, warning: vO, danger: WP })[o.tone]), s = zn(), l = qe("content"), c = /* @__PURE__ */ F(""), u = /* @__PURE__ */ F(!1), f = C(() => Lb([o.tone, o.title, o.code, c.value].join("\0"))), p = C(() =>
|
|
30154
|
+
const o = Wn(e, { closeLabel: "Close", moreLabel: "Learn more", lessLabel: "Show less" }), r = t, a = yu(e, "expanded"), i = C(() => ({ info: Xg, success: HP, warning: vO, danger: WP })[o.tone]), s = zn(), l = qe("content"), c = /* @__PURE__ */ F(""), u = /* @__PURE__ */ F(!1), f = C(() => Lb([o.tone, o.title, o.code, c.value].join("\0"))), p = C(() => eB(o.dismissKey, o.tone, [o.title, o.code, c.value].join("\0"))), h = C(() => o.variant === "hint"), m = C(() => u.value && !h.value && o.dismissible && tB(p.value, f.value));
|
|
30141
30155
|
let v;
|
|
30142
30156
|
function y() {
|
|
30143
30157
|
c.value = l.value?.textContent?.replace(/\s+/g, " ").trim() ?? "";
|
|
@@ -30149,17 +30163,17 @@ const rB = {
|
|
|
30149
30163
|
ie(m, (E) => {
|
|
30150
30164
|
if (w?.(), w = void 0, !E) return;
|
|
30151
30165
|
const b = p.value, _ = o.title || c.value;
|
|
30152
|
-
w =
|
|
30166
|
+
w = aB({
|
|
30153
30167
|
tone: o.tone,
|
|
30154
30168
|
icon: i.value,
|
|
30155
30169
|
label: _.length > 120 ? `${_.slice(0, 119)}…` : _,
|
|
30156
|
-
restore: () =>
|
|
30170
|
+
restore: () => oB(b)
|
|
30157
30171
|
});
|
|
30158
30172
|
}, { immediate: !0 }), ze(() => {
|
|
30159
30173
|
v?.disconnect(), w?.();
|
|
30160
30174
|
});
|
|
30161
30175
|
function x() {
|
|
30162
|
-
y(),
|
|
30176
|
+
y(), nB(p.value, f.value, o.tone !== "danger"), r("close");
|
|
30163
30177
|
}
|
|
30164
30178
|
return (E, b) => h.value ? (g(), I("div", {
|
|
30165
30179
|
key: 0,
|
|
@@ -30189,8 +30203,8 @@ const rB = {
|
|
|
30189
30203
|
ref: l,
|
|
30190
30204
|
class: "ui-callout-hint-text"
|
|
30191
30205
|
}, [
|
|
30192
|
-
e.title ? (g(), I("span",
|
|
30193
|
-
E.$slots.default ? (g(), I("span",
|
|
30206
|
+
e.title ? (g(), I("span", hB, Q(e.title), 1)) : j("", !0),
|
|
30207
|
+
E.$slots.default ? (g(), I("span", mB, [
|
|
30194
30208
|
z(E.$slots, "default")
|
|
30195
30209
|
])) : j("", !0)
|
|
30196
30210
|
], 512)
|
|
@@ -30206,7 +30220,7 @@ const rB = {
|
|
|
30206
30220
|
hidden: ""
|
|
30207
30221
|
}, [
|
|
30208
30222
|
z(E.$slots, "details")
|
|
30209
|
-
], 8,
|
|
30223
|
+
], 8, vB)) : (g(), I(ye, { key: 2 }, [
|
|
30210
30224
|
(g(), L(ft(i.value), {
|
|
30211
30225
|
class: "ui-callout-icon",
|
|
30212
30226
|
"aria-hidden": "true"
|
|
@@ -30216,13 +30230,13 @@ const rB = {
|
|
|
30216
30230
|
ref: l,
|
|
30217
30231
|
class: "ui-callout-hint-text"
|
|
30218
30232
|
}, [
|
|
30219
|
-
e.title ? (g(), I("span",
|
|
30220
|
-
E.$slots.default ? (g(), I("span",
|
|
30233
|
+
e.title ? (g(), I("span", gB, Q(e.title), 1)) : j("", !0),
|
|
30234
|
+
E.$slots.default ? (g(), I("span", yB, [
|
|
30221
30235
|
z(E.$slots, "default")
|
|
30222
30236
|
])) : j("", !0)
|
|
30223
30237
|
], 512)
|
|
30224
30238
|
], 64))
|
|
30225
|
-
], 8,
|
|
30239
|
+
], 8, pB)) : (g(), I("div", {
|
|
30226
30240
|
key: 1,
|
|
30227
30241
|
class: "ui-callout",
|
|
30228
30242
|
"data-tone": e.tone,
|
|
@@ -30236,17 +30250,17 @@ const rB = {
|
|
|
30236
30250
|
class: "ui-callout-icon",
|
|
30237
30251
|
"aria-hidden": "true"
|
|
30238
30252
|
})),
|
|
30239
|
-
ae("div",
|
|
30253
|
+
ae("div", wB, [
|
|
30240
30254
|
ae("div", {
|
|
30241
30255
|
ref_key: "content",
|
|
30242
30256
|
ref: l,
|
|
30243
30257
|
class: "ui-callout-content [overflow-wrap:anywhere]"
|
|
30244
30258
|
}, [
|
|
30245
|
-
e.title ? (g(), I("div",
|
|
30246
|
-
E.$slots.default ? (g(), I("div",
|
|
30259
|
+
e.title ? (g(), I("div", _B, Q(e.title), 1)) : j("", !0),
|
|
30260
|
+
E.$slots.default ? (g(), I("div", xB, [
|
|
30247
30261
|
z(E.$slots, "default")
|
|
30248
30262
|
])) : j("", !0),
|
|
30249
|
-
e.code ? (g(), I("code",
|
|
30263
|
+
e.code ? (g(), I("code", SB, Q(e.code), 1)) : j("", !0),
|
|
30250
30264
|
E.$slots.details ? (g(), I("button", {
|
|
30251
30265
|
key: 3,
|
|
30252
30266
|
type: "button",
|
|
@@ -30261,7 +30275,7 @@ const rB = {
|
|
|
30261
30275
|
class: ce(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", a.value && "rotate-180"]),
|
|
30262
30276
|
"aria-hidden": "true"
|
|
30263
30277
|
}, null, 8, ["class"])
|
|
30264
|
-
], 8,
|
|
30278
|
+
], 8, kB)) : j("", !0),
|
|
30265
30279
|
E.$slots.details ? (g(), L(Sd, {
|
|
30266
30280
|
key: 4,
|
|
30267
30281
|
open: a.value,
|
|
@@ -30274,12 +30288,12 @@ const rB = {
|
|
|
30274
30288
|
class: "ui-callout-details"
|
|
30275
30289
|
}, [
|
|
30276
30290
|
z(E.$slots, "details")
|
|
30277
|
-
], 8,
|
|
30291
|
+
], 8, CB)
|
|
30278
30292
|
]),
|
|
30279
30293
|
_: 3
|
|
30280
30294
|
}, 8, ["open"])) : j("", !0)
|
|
30281
30295
|
], 512),
|
|
30282
|
-
E.$slots.actions ? (g(), I("div",
|
|
30296
|
+
E.$slots.actions ? (g(), I("div", EB, [
|
|
30283
30297
|
z(E.$slots, "actions")
|
|
30284
30298
|
])) : j("", !0)
|
|
30285
30299
|
]),
|
|
@@ -30296,22 +30310,22 @@ const rB = {
|
|
|
30296
30310
|
class: "size-3.5",
|
|
30297
30311
|
"aria-hidden": "true"
|
|
30298
30312
|
})
|
|
30299
|
-
], 8,
|
|
30300
|
-
], 8,
|
|
30313
|
+
], 8, AB)) : j("", !0)
|
|
30314
|
+
], 8, bB));
|
|
30301
30315
|
}
|
|
30302
|
-
}),
|
|
30316
|
+
}), OB = {
|
|
30303
30317
|
class: "flex min-h-28 flex-1 flex-col items-center justify-center px-6 py-5 text-center",
|
|
30304
30318
|
"data-syno-pkg-land-ui": ""
|
|
30305
|
-
},
|
|
30319
|
+
}, TB = {
|
|
30306
30320
|
key: 0,
|
|
30307
30321
|
class: "mb-3 flex size-12 items-center justify-center rounded-full bg-[var(--ui-surface-subtle)] text-[var(--ui-text-muted)]"
|
|
30308
|
-
},
|
|
30322
|
+
}, $B = { class: "m-0 text-[14px] font-semibold text-[var(--ui-text)]" }, IB = {
|
|
30309
30323
|
key: 1,
|
|
30310
30324
|
class: "mt-1 max-w-md text-[length:var(--ui-font-size-control)] leading-5 text-[var(--ui-text-secondary)]"
|
|
30311
|
-
},
|
|
30325
|
+
}, DB = {
|
|
30312
30326
|
key: 2,
|
|
30313
30327
|
class: "mt-4 flex items-center gap-2"
|
|
30314
|
-
},
|
|
30328
|
+
}, RB = /* @__PURE__ */ V({
|
|
30315
30329
|
__name: "EmptyState",
|
|
30316
30330
|
props: {
|
|
30317
30331
|
title: {},
|
|
@@ -30319,22 +30333,22 @@ const rB = {
|
|
|
30319
30333
|
icon: {}
|
|
30320
30334
|
},
|
|
30321
30335
|
setup(e) {
|
|
30322
|
-
return (t, n) => (g(), I("div",
|
|
30323
|
-
e.icon ? (g(), I("div",
|
|
30336
|
+
return (t, n) => (g(), I("div", OB, [
|
|
30337
|
+
e.icon ? (g(), I("div", TB, [
|
|
30324
30338
|
(g(), L(ft(e.icon), {
|
|
30325
30339
|
class: "size-6",
|
|
30326
30340
|
"aria-hidden": "true"
|
|
30327
30341
|
}))
|
|
30328
30342
|
])) : j("", !0),
|
|
30329
|
-
ae("h3",
|
|
30330
|
-
e.description ? (g(), I("p",
|
|
30331
|
-
t.$slots.actions ? (g(), I("div",
|
|
30343
|
+
ae("h3", $B, Q(e.title), 1),
|
|
30344
|
+
e.description ? (g(), I("p", IB, Q(e.description), 1)) : j("", !0),
|
|
30345
|
+
t.$slots.actions ? (g(), I("div", DB, [
|
|
30332
30346
|
z(t.$slots, "actions")
|
|
30333
30347
|
])) : j("", !0)
|
|
30334
30348
|
]));
|
|
30335
30349
|
}
|
|
30336
30350
|
});
|
|
30337
|
-
function
|
|
30351
|
+
function MB(e, t = () => "x") {
|
|
30338
30352
|
const n = /* @__PURE__ */ F(!1), o = /* @__PURE__ */ F(!1), r = /* @__PURE__ */ F(!1), a = /* @__PURE__ */ F(!1);
|
|
30339
30353
|
let i;
|
|
30340
30354
|
const s = () => {
|
|
@@ -30352,7 +30366,7 @@ function DB(e, t = () => "x") {
|
|
|
30352
30366
|
e.value?.removeEventListener("scroll", s), i?.disconnect();
|
|
30353
30367
|
}), { start: n, end: o, top: r, bottom: a };
|
|
30354
30368
|
}
|
|
30355
|
-
const
|
|
30369
|
+
const NB = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-top", "data-edge-bottom"], LB = /* @__PURE__ */ V({
|
|
30356
30370
|
__name: "ScrollEdges",
|
|
30357
30371
|
props: {
|
|
30358
30372
|
viewportClass: { default: void 0 },
|
|
@@ -30360,7 +30374,7 @@ const RB = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
|
|
|
30360
30374
|
axis: { default: "x" }
|
|
30361
30375
|
},
|
|
30362
30376
|
setup(e, { expose: t }) {
|
|
30363
|
-
const n = e, o = qe("viewport"), { start: r, end: a, top: i, bottom: s } =
|
|
30377
|
+
const n = e, o = qe("viewport"), { start: r, end: a, top: i, bottom: s } = MB(o, () => n.axis);
|
|
30364
30378
|
return t({ viewport: o }), (l, c) => (g(), I("div", {
|
|
30365
30379
|
"data-ui-scroll-edges": "",
|
|
30366
30380
|
"data-axis": n.axis === "x" ? void 0 : n.axis,
|
|
@@ -30378,7 +30392,7 @@ const RB = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
|
|
|
30378
30392
|
}, [
|
|
30379
30393
|
z(l.$slots, "default")
|
|
30380
30394
|
], 6)
|
|
30381
|
-
], 8,
|
|
30395
|
+
], 8, NB));
|
|
30382
30396
|
}
|
|
30383
30397
|
});
|
|
30384
30398
|
function Ch(e) {
|
|
@@ -30387,7 +30401,7 @@ function Ch(e) {
|
|
|
30387
30401
|
function Eh(e) {
|
|
30388
30402
|
return e.type === "number" || e.type === "date" || e.align === "right";
|
|
30389
30403
|
}
|
|
30390
|
-
const
|
|
30404
|
+
const FB = "-ml-1 flex items-center justify-start gap-1", zB = 40, BB = 80, Ah = 10;
|
|
30391
30405
|
function Ph(e) {
|
|
30392
30406
|
if (typeof e == "number") return e;
|
|
30393
30407
|
if (!(e === void 0 || !/^\s*\d+(\.\d+)?(px)?\s*$/.test(e)))
|
|
@@ -30396,33 +30410,33 @@ function Ph(e) {
|
|
|
30396
30410
|
function Oh(e, t) {
|
|
30397
30411
|
return Math.max(t, Math.round(e));
|
|
30398
30412
|
}
|
|
30399
|
-
const Wb = "syno-pkg-land-ui:data-grid:", Kb = (e) => `${Wb}${zb()}:${e}`,
|
|
30400
|
-
function
|
|
30413
|
+
const Wb = "syno-pkg-land-ui:data-grid:", Kb = (e) => `${Wb}${zb()}:${e}`, qB = (e) => `${Wb}${e}`;
|
|
30414
|
+
function VB(e) {
|
|
30401
30415
|
try {
|
|
30402
|
-
return localStorage.getItem(Kb(e)) ?? localStorage.getItem(
|
|
30416
|
+
return localStorage.getItem(Kb(e)) ?? localStorage.getItem(qB(e));
|
|
30403
30417
|
} catch {
|
|
30404
30418
|
return null;
|
|
30405
30419
|
}
|
|
30406
30420
|
}
|
|
30407
|
-
const Th = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"),
|
|
30421
|
+
const Th = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), jB = (e) => !!e && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((t) => typeof t == "number" && t > 0), UB = (e) => e === null || !!e && typeof e == "object" && typeof e.key == "string" && ["asc", "desc"].includes(e.direction);
|
|
30408
30422
|
function $h(e) {
|
|
30409
30423
|
let t;
|
|
30410
30424
|
try {
|
|
30411
|
-
t = JSON.parse(
|
|
30425
|
+
t = JSON.parse(VB(e) ?? "{}");
|
|
30412
30426
|
} catch {
|
|
30413
30427
|
return {};
|
|
30414
30428
|
}
|
|
30415
30429
|
if (!t || typeof t != "object") return {};
|
|
30416
30430
|
const n = {};
|
|
30417
|
-
return Th(t.columnOrder) && (n.columnOrder = t.columnOrder), Th(t.hiddenColumns) && (n.hiddenColumns = t.hiddenColumns),
|
|
30431
|
+
return Th(t.columnOrder) && (n.columnOrder = t.columnOrder), Th(t.hiddenColumns) && (n.hiddenColumns = t.hiddenColumns), jB(t.columnWidths) && (n.columnWidths = t.columnWidths), "sort" in t && UB(t.sort) && (n.sort = t.sort), typeof t.pageSize == "number" && Number.isInteger(t.pageSize) && t.pageSize > 0 && (n.pageSize = t.pageSize), n;
|
|
30418
30432
|
}
|
|
30419
|
-
function
|
|
30433
|
+
function WB(e, t) {
|
|
30420
30434
|
try {
|
|
30421
30435
|
localStorage.setItem(Kb(e), JSON.stringify(t));
|
|
30422
30436
|
} catch {
|
|
30423
30437
|
}
|
|
30424
30438
|
}
|
|
30425
|
-
function
|
|
30439
|
+
function KB(e) {
|
|
30426
30440
|
return {
|
|
30427
30441
|
empty: e("No data"),
|
|
30428
30442
|
items: (t) => e(t === 1 ? "{count} item" : "{count} items", { count: t }),
|
|
@@ -30450,41 +30464,41 @@ function UB(e) {
|
|
|
30450
30464
|
descending: e("Descending")
|
|
30451
30465
|
};
|
|
30452
30466
|
}
|
|
30453
|
-
const
|
|
30454
|
-
function
|
|
30455
|
-
const t = e.filter((s) => s.list !== "none"), n = t.filter((s) => s.list === "trailing" || s.list === void 0 && s.type === "actions"), o = t.filter((s) => !n.includes(s)), r = o.find((s) => s.list === "title") ?? o.find((s) => s.list === void 0) ?? o[0], a = o.filter((s) => s !== r && s.list === "subtitle"), i = (a.length ? a : o.filter((s) => s !== r && s.list === void 0)).slice(0,
|
|
30467
|
+
const HB = 2;
|
|
30468
|
+
function ZB(e) {
|
|
30469
|
+
const t = e.filter((s) => s.list !== "none"), n = t.filter((s) => s.list === "trailing" || s.list === void 0 && s.type === "actions"), o = t.filter((s) => !n.includes(s)), r = o.find((s) => s.list === "title") ?? o.find((s) => s.list === void 0) ?? o[0], a = o.filter((s) => s !== r && s.list === "subtitle"), i = (a.length ? a : o.filter((s) => s !== r && s.list === void 0)).slice(0, HB);
|
|
30456
30470
|
return { title: r, subtitle: i, trailing: n };
|
|
30457
30471
|
}
|
|
30458
|
-
const
|
|
30472
|
+
const GB = ["data-ui-data-view", "data-fill"], YB = {
|
|
30459
30473
|
key: 0,
|
|
30460
30474
|
"data-ui-mobile-list": "",
|
|
30461
30475
|
class: "m-0 px-3 py-10 text-center text-[var(--ui-text-secondary)]"
|
|
30462
|
-
},
|
|
30476
|
+
}, JB = ["data-ui-row-new"], XB = { class: "min-w-0 flex-1" }, QB = {
|
|
30463
30477
|
key: 0,
|
|
30464
30478
|
"data-ui-list-title": "",
|
|
30465
30479
|
class: "min-w-0 truncate text-[length:var(--ui-font-size)] text-[var(--ui-text)]"
|
|
30466
|
-
},
|
|
30480
|
+
}, eq = {
|
|
30467
30481
|
key: 1,
|
|
30468
30482
|
"data-ui-list-subtitle": "",
|
|
30469
30483
|
class: "flex min-w-0 items-center gap-1 text-[length:var(--ui-font-size-sm)] text-[var(--ui-text-secondary)]"
|
|
30470
|
-
},
|
|
30484
|
+
}, tq = {
|
|
30471
30485
|
key: 1,
|
|
30472
30486
|
"data-ui-mobile-cards": "",
|
|
30473
30487
|
class: "px-3 py-10 text-center text-[var(--ui-text-secondary)]"
|
|
30474
|
-
},
|
|
30488
|
+
}, nq = {
|
|
30475
30489
|
key: 2,
|
|
30476
30490
|
"data-ui-mobile-cards": "",
|
|
30477
30491
|
class: "grid gap-3",
|
|
30478
30492
|
role: "list"
|
|
30479
|
-
},
|
|
30493
|
+
}, oq = ["data-ui-row-new"], rq = { class: "m-0 grid gap-2" }, aq = { class: "flex min-h-[var(--ui-control-md)] items-center break-words text-[12px] leading-5 text-[var(--ui-text-secondary)]" }, iq = { class: "m-0 flex min-h-[var(--ui-control-md)] min-w-0 flex-wrap items-center gap-1 break-words text-[length:var(--ui-font-size-control)] leading-5 text-[var(--ui-text)]" }, sq = { key: 0 }, lq = {
|
|
30480
30494
|
key: 0,
|
|
30481
30495
|
"data-table-filler": ""
|
|
30482
|
-
},
|
|
30496
|
+
}, uq = { class: "sticky top-0 z-[1] bg-[var(--ui-surface-subtle)] text-[var(--ui-text-secondary)]" }, cq = ["data-column-type"], dq = ["aria-label", "onPointerdown", "onKeydown"], fq = {
|
|
30483
30497
|
key: 0,
|
|
30484
30498
|
"data-table-filler": "",
|
|
30485
30499
|
"aria-hidden": "true",
|
|
30486
30500
|
class: "border-b border-[var(--ui-border)] p-0"
|
|
30487
|
-
},
|
|
30501
|
+
}, pq = { key: 0 }, hq = ["colspan"], mq = ["data-ui-row-new"], vq = ["data-column-type"], gq = {
|
|
30488
30502
|
key: 0,
|
|
30489
30503
|
"data-table-filler": "",
|
|
30490
30504
|
"aria-hidden": "true",
|
|
@@ -30506,14 +30520,14 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30506
30520
|
},
|
|
30507
30521
|
emits: ["update:columnWidths"],
|
|
30508
30522
|
setup(e, { emit: t }) {
|
|
30509
|
-
const n = e, o = t, r = Wn(n, { emptyText: "No data" }), a = qe("root"), i = $o(a), s = Re(pr, void 0), l = Kt(), c = (q) =>
|
|
30523
|
+
const n = e, o = t, r = Wn(n, { emptyText: "No data" }), a = qe("root"), i = $o(a), s = Re(pr, void 0), l = Kt(), c = (q) => KB(l).resizeColumn(q), u = /* @__PURE__ */ F(r.stateKey ? $h(r.stateKey).columnWidths ?? {} : {});
|
|
30510
30524
|
ie(() => r.columnWidths, () => {
|
|
30511
30525
|
u.value = {};
|
|
30512
30526
|
});
|
|
30513
30527
|
const f = C(() => {
|
|
30514
30528
|
const q = { ...r.columnWidths, ...u.value };
|
|
30515
30529
|
return r.columns.every((U) => q[U.key] !== void 0) ? q : void 0;
|
|
30516
|
-
}), p = C(() => f.value ? r.columns.reduce((q, U) => q + f.value[U.key], 0) : 0), h = C(() => !!f.value || r.columns.some((q) => !!q.width)), m = (q) => f.value ? `${f.value[q.key]}px` : q.width, v = (q) => q.resizable ?? r.resizable, y = (q) => Ph(q.minWidth) ?? (q.width ?
|
|
30530
|
+
}), p = C(() => f.value ? r.columns.reduce((q, U) => q + f.value[U.key], 0) : 0), h = C(() => !!f.value || r.columns.some((q) => !!q.width)), m = (q) => f.value ? `${f.value[q.key]}px` : q.width, v = (q) => q.resizable ?? r.resizable, y = (q) => Ph(q.minWidth) ?? (q.width ? zB : BB), w = {};
|
|
30517
30531
|
function x() {
|
|
30518
30532
|
return Object.fromEntries(r.columns.map((q) => {
|
|
30519
30533
|
const U = Math.round(w[q.key]?.getBoundingClientRect().width ?? 0);
|
|
@@ -30521,7 +30535,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30521
30535
|
}));
|
|
30522
30536
|
}
|
|
30523
30537
|
function E(q) {
|
|
30524
|
-
u.value = q, o("update:columnWidths", q), r.stateKey &&
|
|
30538
|
+
u.value = q, o("update:columnWidths", q), r.stateKey && WB(r.stateKey, { ...$h(r.stateKey), columnWidths: q });
|
|
30525
30539
|
}
|
|
30526
30540
|
let b;
|
|
30527
30541
|
function _(q, U) {
|
|
@@ -30544,11 +30558,11 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30544
30558
|
ze(() => b?.());
|
|
30545
30559
|
const k = C(() => s ? s.value === "mobile" : i.value > 0 && i.value <= md), $ = C(
|
|
30546
30560
|
() => r.mobileView === "cards" || r.mobileView === "container" && i.value > 0 && i.value < r.containerBreakpoint
|
|
30547
|
-
), T = C(() => r.mobileView === "list" || r.mobileView === "auto" && k.value), A = C(() =>
|
|
30561
|
+
), T = C(() => r.mobileView === "list" || r.mobileView === "auto" && k.value), A = C(() => ZB(r.columns));
|
|
30548
30562
|
function D(q, U) {
|
|
30549
30563
|
return String(q[r.rowKey] ?? U);
|
|
30550
30564
|
}
|
|
30551
|
-
const M =
|
|
30565
|
+
const M = kF(() => r.rows.flatMap((q) => q[r.rowKey] == null ? [] : [String(q[r.rowKey])]));
|
|
30552
30566
|
return We(Ws, null), (q, U) => (g(), I("div", {
|
|
30553
30567
|
ref_key: "root",
|
|
30554
30568
|
ref: a,
|
|
@@ -30570,8 +30584,8 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30570
30584
|
"data-ui-row-new": d(M).has(D(B, Y)) ? "" : void 0,
|
|
30571
30585
|
class: "flex min-h-[var(--ui-list-row-height)] min-w-0 items-center gap-3 border-b border-[var(--ui-border-subtle)] px-3 py-1.5 last:border-b-0"
|
|
30572
30586
|
}, [
|
|
30573
|
-
ae("div",
|
|
30574
|
-
A.value.title ? (g(), I("div",
|
|
30587
|
+
ae("div", XB, [
|
|
30588
|
+
A.value.title ? (g(), I("div", QB, [
|
|
30575
30589
|
z(q.$slots, `cell-${A.value.title.key}`, {
|
|
30576
30590
|
row: B,
|
|
30577
30591
|
value: B[A.value.title.key],
|
|
@@ -30580,7 +30594,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30580
30594
|
Oe(Q(B[A.value.title.key]), 1)
|
|
30581
30595
|
])
|
|
30582
30596
|
])) : j("", !0),
|
|
30583
|
-
A.value.subtitle.length ? (g(), I("div",
|
|
30597
|
+
A.value.subtitle.length ? (g(), I("div", eq, [
|
|
30584
30598
|
(g(!0), I(ye, null, Be(A.value.subtitle, (W, oe) => (g(), I("span", {
|
|
30585
30599
|
key: W.key,
|
|
30586
30600
|
class: ce(["min-w-0 truncate", d(Eh)(W) && "tabular-nums", oe === 0 ? "shrink" : "shrink-[2]"])
|
|
@@ -30608,22 +30622,22 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30608
30622
|
Oe(Q(B[W.key]), 1)
|
|
30609
30623
|
])
|
|
30610
30624
|
], 2))), 128))
|
|
30611
|
-
], 8,
|
|
30612
|
-
], 2)) : (g(), I("p",
|
|
30613
|
-
], 64)) : $.value && !d(r).rows.length ? (g(), I("p",
|
|
30625
|
+
], 8, JB))), 128))
|
|
30626
|
+
], 2)) : (g(), I("p", YB, Q(d(r).emptyText), 1))
|
|
30627
|
+
], 64)) : $.value && !d(r).rows.length ? (g(), I("p", tq, Q(d(r).emptyText), 1)) : $.value ? (g(), I("div", nq, [
|
|
30614
30628
|
(g(!0), I(ye, null, Be(d(r).rows, (B, Y) => (g(), I("article", {
|
|
30615
30629
|
key: D(B, Y),
|
|
30616
30630
|
"data-ui-row-new": d(M).has(D(B, Y)) ? "" : void 0,
|
|
30617
30631
|
class: "min-w-0 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
|
|
30618
30632
|
role: "listitem"
|
|
30619
30633
|
}, [
|
|
30620
|
-
ae("dl",
|
|
30634
|
+
ae("dl", rq, [
|
|
30621
30635
|
(g(!0), I(ye, null, Be(d(r).columns, (W) => (g(), I("div", {
|
|
30622
30636
|
key: W.key,
|
|
30623
30637
|
class: "grid min-w-0 grid-cols-[minmax(100px,35%)_minmax(0,1fr)] items-start gap-2"
|
|
30624
30638
|
}, [
|
|
30625
|
-
ae("dt",
|
|
30626
|
-
ae("dd",
|
|
30639
|
+
ae("dt", aq, Q(W.label), 1),
|
|
30640
|
+
ae("dd", iq, [
|
|
30627
30641
|
z(q.$slots, `cell-${W.key}`, {
|
|
30628
30642
|
row: B,
|
|
30629
30643
|
value: B[W.key],
|
|
@@ -30634,8 +30648,8 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30634
30648
|
])
|
|
30635
30649
|
]))), 128))
|
|
30636
30650
|
])
|
|
30637
|
-
], 8,
|
|
30638
|
-
])) : (g(), L(
|
|
30651
|
+
], 8, oq))), 128))
|
|
30652
|
+
])) : (g(), L(LB, {
|
|
30639
30653
|
key: 3,
|
|
30640
30654
|
class: ce(d(r).fill && "min-h-0 flex-1"),
|
|
30641
30655
|
"viewport-class": d(r).fill ? "h-full overflow-auto border-y border-[var(--ui-border)]" : "overflow-auto border-y border-[var(--ui-border)]"
|
|
@@ -30645,14 +30659,14 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30645
30659
|
class: ce(["w-full border-collapse text-[length:var(--ui-font-size-control)]", h.value && "table-fixed"]),
|
|
30646
30660
|
style: Ve(f.value ? { minWidth: `${p.value}px` } : void 0)
|
|
30647
30661
|
}, [
|
|
30648
|
-
h.value ? (g(), I("colgroup",
|
|
30662
|
+
h.value ? (g(), I("colgroup", sq, [
|
|
30649
30663
|
(g(!0), I(ye, null, Be(d(r).columns, (B) => (g(), I("col", {
|
|
30650
30664
|
key: B.key,
|
|
30651
30665
|
style: Ve(m(B) ? { width: m(B) } : void 0)
|
|
30652
30666
|
}, null, 4))), 128)),
|
|
30653
|
-
f.value ? (g(), I("col",
|
|
30667
|
+
f.value ? (g(), I("col", lq)) : j("", !0)
|
|
30654
30668
|
])) : j("", !0),
|
|
30655
|
-
ae("thead",
|
|
30669
|
+
ae("thead", uq, [
|
|
30656
30670
|
ae("tr", null, [
|
|
30657
30671
|
(g(!0), I(ye, null, Be(d(r).columns, (B) => (g(), I("th", {
|
|
30658
30672
|
key: B.key,
|
|
@@ -30676,17 +30690,17 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30676
30690
|
onClick: U[0] || (U[0] = Et(() => {
|
|
30677
30691
|
}, ["stop"])),
|
|
30678
30692
|
onKeydown: Et((Y) => P(Y, B), ["stop"])
|
|
30679
|
-
}, null, 40,
|
|
30680
|
-
], 10,
|
|
30681
|
-
f.value ? (g(), I("th",
|
|
30693
|
+
}, null, 40, dq)) : j("", !0)
|
|
30694
|
+
], 10, cq))), 128)),
|
|
30695
|
+
f.value ? (g(), I("th", fq)) : j("", !0)
|
|
30682
30696
|
])
|
|
30683
30697
|
]),
|
|
30684
30698
|
ae("tbody", null, [
|
|
30685
|
-
d(r).rows.length === 0 ? (g(), I("tr",
|
|
30699
|
+
d(r).rows.length === 0 ? (g(), I("tr", pq, [
|
|
30686
30700
|
ae("td", {
|
|
30687
30701
|
colspan: d(r).columns.length + (f.value ? 1 : 0),
|
|
30688
30702
|
class: "px-3 py-10 text-center text-[var(--ui-text-secondary)]"
|
|
30689
|
-
}, Q(d(r).emptyText), 9,
|
|
30703
|
+
}, Q(d(r).emptyText), 9, hq)
|
|
30690
30704
|
])) : (g(!0), I(ye, { key: 1 }, Be(d(r).rows, (B, Y) => (g(), I("tr", {
|
|
30691
30705
|
key: D(B, Y),
|
|
30692
30706
|
"data-ui-row-new": d(M).has(D(B, Y)) ? "" : void 0,
|
|
@@ -30707,7 +30721,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30707
30721
|
W.type === "actions" ? (g(), I("div", {
|
|
30708
30722
|
key: 0,
|
|
30709
30723
|
"data-grid-actions": "",
|
|
30710
|
-
class: ce(d(
|
|
30724
|
+
class: ce(d(FB))
|
|
30711
30725
|
}, [
|
|
30712
30726
|
z(q.$slots, `cell-${W.key}`, {
|
|
30713
30727
|
row: B,
|
|
@@ -30723,17 +30737,17 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30723
30737
|
}, () => [
|
|
30724
30738
|
Oe(Q(B[W.key]), 1)
|
|
30725
30739
|
], void 0, 1)
|
|
30726
|
-
], 10,
|
|
30727
|
-
f.value ? (g(), I("td",
|
|
30728
|
-
], 8,
|
|
30740
|
+
], 10, vq))), 128)),
|
|
30741
|
+
f.value ? (g(), I("td", gq)) : j("", !0)
|
|
30742
|
+
], 8, mq))), 128))
|
|
30729
30743
|
])
|
|
30730
30744
|
], 6)
|
|
30731
30745
|
]),
|
|
30732
30746
|
_: 3
|
|
30733
30747
|
}, 8, ["class", "viewport-class"]))
|
|
30734
|
-
], 10,
|
|
30748
|
+
], 10, GB));
|
|
30735
30749
|
}
|
|
30736
|
-
}),
|
|
30750
|
+
}), yq = ["data-layout", "data-wrap"], bq = ["data-ui-tooltip-hint", "disabled"], wq = /* @__PURE__ */ V({
|
|
30737
30751
|
__name: "CellText",
|
|
30738
30752
|
props: {
|
|
30739
30753
|
text: {},
|
|
@@ -30779,7 +30793,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30779
30793
|
z(a.$slots, "default", {}, () => [
|
|
30780
30794
|
Oe(Q(e.text), 1)
|
|
30781
30795
|
])
|
|
30782
|
-
], 10,
|
|
30796
|
+
], 10, bq)) : (g(), I("span", {
|
|
30783
30797
|
key: 1,
|
|
30784
30798
|
"data-ui-cell-primary": "",
|
|
30785
30799
|
class: ce([r.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
|
|
@@ -30806,24 +30820,24 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30806
30820
|
key: 1,
|
|
30807
30821
|
target: o.value
|
|
30808
30822
|
}, null, 8, ["target"])) : j("", !0)
|
|
30809
|
-
], 10,
|
|
30823
|
+
], 10, yq));
|
|
30810
30824
|
}
|
|
30811
|
-
}),
|
|
30825
|
+
}), _q = {
|
|
30812
30826
|
"data-ui-cell-status": "",
|
|
30813
30827
|
class: "flex min-w-0 items-center gap-[var(--ui-space-2)] leading-4 text-[var(--ui-text)]"
|
|
30814
|
-
},
|
|
30828
|
+
}, xq = {
|
|
30815
30829
|
"data-ui-cell-status-label": "",
|
|
30816
30830
|
tabindex: "0",
|
|
30817
30831
|
class: "-mx-0.5 min-w-0 truncate rounded-[var(--ui-radius-sm)] px-0.5 outline-none focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]"
|
|
30818
|
-
},
|
|
30832
|
+
}, Sq = {
|
|
30819
30833
|
key: 1,
|
|
30820
30834
|
"data-ui-cell-status-label": "",
|
|
30821
30835
|
class: "min-w-0 truncate"
|
|
30822
|
-
},
|
|
30836
|
+
}, kq = {
|
|
30823
30837
|
key: 1,
|
|
30824
30838
|
"data-ui-cell-secondary": "",
|
|
30825
30839
|
class: "min-w-0 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-text-secondary)] tabular-nums [overflow-wrap:anywhere]"
|
|
30826
|
-
},
|
|
30840
|
+
}, Cq = /* @__PURE__ */ V({
|
|
30827
30841
|
__name: "CellStatus",
|
|
30828
30842
|
props: {
|
|
30829
30843
|
label: {},
|
|
@@ -30842,17 +30856,17 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30842
30856
|
class: ce(["flex min-w-0 flex-col gap-0.5", r.value && !(e.detail || a.$slots.detail) && "relative"]),
|
|
30843
30857
|
"data-syno-pkg-land-ui": ""
|
|
30844
30858
|
}, [
|
|
30845
|
-
ae("span",
|
|
30846
|
-
K(
|
|
30859
|
+
ae("span", _q, [
|
|
30860
|
+
K(tF, { tone: e.tone }, null, 8, ["tone"]),
|
|
30847
30861
|
e.description ? (g(), L(xd, {
|
|
30848
30862
|
key: 0,
|
|
30849
30863
|
content: e.description
|
|
30850
30864
|
}, {
|
|
30851
30865
|
default: R(() => [
|
|
30852
|
-
ae("span",
|
|
30866
|
+
ae("span", xq, Q(e.label), 1)
|
|
30853
30867
|
]),
|
|
30854
30868
|
_: 1
|
|
30855
|
-
}, 8, ["content"])) : (g(), I("span",
|
|
30869
|
+
}, 8, ["content"])) : (g(), I("span", Sq, Q(e.label), 1))
|
|
30856
30870
|
]),
|
|
30857
30871
|
r.value ? (g(), L(Ab, {
|
|
30858
30872
|
key: 0,
|
|
@@ -30861,7 +30875,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30861
30875
|
size: "sm",
|
|
30862
30876
|
class: ce(["max-w-40", !(e.detail || a.$slots.detail) && "absolute inset-x-0 top-full mt-0.5"])
|
|
30863
30877
|
}, null, 8, ["value", "aria-label", "class"])) : j("", !0),
|
|
30864
|
-
e.detail || a.$slots.detail ? (g(), I("span",
|
|
30878
|
+
e.detail || a.$slots.detail ? (g(), I("span", kq, [
|
|
30865
30879
|
z(a.$slots, "detail", {}, () => [
|
|
30866
30880
|
Oe(Q(e.detail), 1)
|
|
30867
30881
|
])
|
|
@@ -30872,74 +30886,74 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30872
30886
|
}, null, 8, ["target"])) : j("", !0)
|
|
30873
30887
|
], 2));
|
|
30874
30888
|
}
|
|
30875
|
-
}),
|
|
30889
|
+
}), Eq = {
|
|
30876
30890
|
role: "listitem",
|
|
30877
30891
|
class: "ui-list-item flex flex-wrap items-start gap-x-[var(--ui-space-4)] gap-y-[var(--ui-space-2)] py-[var(--ui-space-3)]",
|
|
30878
30892
|
"data-syno-pkg-land-ui": ""
|
|
30879
|
-
},
|
|
30893
|
+
}, Aq = { class: "flex min-w-60 flex-1 items-start gap-[var(--ui-space-3)]" }, Pq = {
|
|
30880
30894
|
key: 0,
|
|
30881
30895
|
"data-ui-list-item-leading": "",
|
|
30882
30896
|
class: "flex shrink-0 items-center"
|
|
30883
|
-
},
|
|
30897
|
+
}, Oq = { class: "min-w-0 flex-1" }, Tq = { class: "flex flex-wrap items-center gap-x-[var(--ui-space-2)] gap-y-1" }, $q = {
|
|
30884
30898
|
"data-ui-list-item-title": "",
|
|
30885
30899
|
class: "font-semibold leading-5 text-[var(--ui-text)]"
|
|
30886
|
-
},
|
|
30900
|
+
}, Iq = {
|
|
30887
30901
|
key: 0,
|
|
30888
30902
|
"data-ui-list-item-meta": "",
|
|
30889
30903
|
class: "flex flex-wrap items-center gap-[var(--ui-space-1)]"
|
|
30890
|
-
},
|
|
30904
|
+
}, Dq = {
|
|
30891
30905
|
key: 0,
|
|
30892
30906
|
"data-ui-list-item-description": "",
|
|
30893
30907
|
class: "mt-1 leading-5 text-[var(--ui-text-secondary)]"
|
|
30894
|
-
},
|
|
30908
|
+
}, Rq = {
|
|
30895
30909
|
key: 1,
|
|
30896
30910
|
class: "mt-1 leading-5"
|
|
30897
|
-
},
|
|
30911
|
+
}, Mq = {
|
|
30898
30912
|
key: 0,
|
|
30899
30913
|
"data-ui-list-item-actions": "",
|
|
30900
30914
|
class: "flex shrink-0 flex-wrap items-center gap-[var(--ui-space-2)]"
|
|
30901
|
-
},
|
|
30915
|
+
}, Nq = /* @__PURE__ */ V({
|
|
30902
30916
|
__name: "ListItem",
|
|
30903
30917
|
props: {
|
|
30904
30918
|
title: {},
|
|
30905
30919
|
description: {}
|
|
30906
30920
|
},
|
|
30907
30921
|
setup(e) {
|
|
30908
|
-
return (t, n) => (g(), I("div",
|
|
30909
|
-
ae("div",
|
|
30910
|
-
t.$slots.leading ? (g(), I("div",
|
|
30922
|
+
return (t, n) => (g(), I("div", Eq, [
|
|
30923
|
+
ae("div", Aq, [
|
|
30924
|
+
t.$slots.leading ? (g(), I("div", Pq, [
|
|
30911
30925
|
z(t.$slots, "leading")
|
|
30912
30926
|
])) : j("", !0),
|
|
30913
|
-
ae("div",
|
|
30914
|
-
ae("div",
|
|
30915
|
-
ae("span",
|
|
30927
|
+
ae("div", Oq, [
|
|
30928
|
+
ae("div", Tq, [
|
|
30929
|
+
ae("span", $q, [
|
|
30916
30930
|
z(t.$slots, "title", {}, () => [
|
|
30917
30931
|
Oe(Q(e.title), 1)
|
|
30918
30932
|
])
|
|
30919
30933
|
]),
|
|
30920
|
-
t.$slots.meta ? (g(), I("span",
|
|
30934
|
+
t.$slots.meta ? (g(), I("span", Iq, [
|
|
30921
30935
|
z(t.$slots, "meta")
|
|
30922
30936
|
])) : j("", !0)
|
|
30923
30937
|
]),
|
|
30924
|
-
e.description || t.$slots.description ? (g(), I("div",
|
|
30938
|
+
e.description || t.$slots.description ? (g(), I("div", Dq, [
|
|
30925
30939
|
z(t.$slots, "description", {}, () => [
|
|
30926
30940
|
Oe(Q(e.description), 1)
|
|
30927
30941
|
])
|
|
30928
30942
|
])) : j("", !0),
|
|
30929
|
-
t.$slots.default ? (g(), I("div",
|
|
30943
|
+
t.$slots.default ? (g(), I("div", Rq, [
|
|
30930
30944
|
z(t.$slots, "default")
|
|
30931
30945
|
])) : j("", !0)
|
|
30932
30946
|
])
|
|
30933
30947
|
]),
|
|
30934
|
-
t.$slots.actions ? (g(), I("div",
|
|
30948
|
+
t.$slots.actions ? (g(), I("div", Mq, [
|
|
30935
30949
|
z(t.$slots, "actions")
|
|
30936
30950
|
])) : j("", !0)
|
|
30937
30951
|
]));
|
|
30938
30952
|
}
|
|
30939
|
-
}),
|
|
30953
|
+
}), Lq = ["id"], Fq = {
|
|
30940
30954
|
key: 1,
|
|
30941
30955
|
class: "ml-auto flex shrink-0 items-center gap-1.5"
|
|
30942
|
-
},
|
|
30956
|
+
}, zq = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-label"], Bq = ["id", "role", "aria-labelledby"], qq = /* @__PURE__ */ V({
|
|
30943
30957
|
__name: "Card",
|
|
30944
30958
|
props: {
|
|
30945
30959
|
title: {},
|
|
@@ -30988,8 +31002,8 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
30988
31002
|
z(y.$slots, "title", {}, () => [
|
|
30989
31003
|
Oe(Q(e.title), 1)
|
|
30990
31004
|
])
|
|
30991
|
-
], 8,
|
|
30992
|
-
y.$slots["header-actions"] || e.expandable ? (g(), I("div",
|
|
31005
|
+
], 8, Lq)) : j("", !0),
|
|
31006
|
+
y.$slots["header-actions"] || e.expandable ? (g(), I("div", Fq, [
|
|
30993
31007
|
z(y.$slots, "header-actions"),
|
|
30994
31008
|
e.expandable ? (g(), I("button", {
|
|
30995
31009
|
key: 0,
|
|
@@ -31008,7 +31022,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
31008
31022
|
class: ce(d(on)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !d(c) && "-rotate-90")),
|
|
31009
31023
|
"aria-hidden": "true"
|
|
31010
31024
|
}, null, 8, ["class"])
|
|
31011
|
-
], 8,
|
|
31025
|
+
], 8, zq)) : j("", !0)
|
|
31012
31026
|
])) : j("", !0)
|
|
31013
31027
|
], 2)) : j("", !0),
|
|
31014
31028
|
K(Sd, {
|
|
@@ -31025,7 +31039,7 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
31025
31039
|
e.loading ? (g(), L(Ob, { key: 0 })) : z(y.$slots, "body", {}, () => [
|
|
31026
31040
|
z(y.$slots, "default")
|
|
31027
31041
|
], void 0, 1)
|
|
31028
|
-
], 10,
|
|
31042
|
+
], 10, Bq)
|
|
31029
31043
|
]),
|
|
31030
31044
|
_: 3
|
|
31031
31045
|
}, 8, ["open"]),
|
|
@@ -31039,8 +31053,8 @@ const HB = ["data-ui-data-view", "data-fill"], ZB = {
|
|
|
31039
31053
|
_: 3
|
|
31040
31054
|
}, 8, ["data-layout", "aria-busy"]));
|
|
31041
31055
|
}
|
|
31042
|
-
}), Dh = 100,
|
|
31043
|
-
function
|
|
31056
|
+
}), Dh = 100, Vq = 100;
|
|
31057
|
+
function jq() {
|
|
31044
31058
|
const e = /* @__PURE__ */ F(0), t = /* @__PURE__ */ F(!1), n = /* @__PURE__ */ new WeakMap();
|
|
31045
31059
|
function o(a) {
|
|
31046
31060
|
if (fl(a)) return () => {
|
|
@@ -31067,7 +31081,7 @@ function qq() {
|
|
|
31067
31081
|
}, h = (x) => x.target === a, m = (x) => {
|
|
31068
31082
|
h(x) && f();
|
|
31069
31083
|
}, v = () => (typeof a.getAnimations == "function" ? a.getAnimations() : []).some((x) => x.playState === "running" && "transitionProperty" in x), y = (x) => {
|
|
31070
|
-
h(x) && (clearTimeout(u), u = setTimeout(() => v() ? p() : f(),
|
|
31084
|
+
h(x) && (clearTimeout(u), u = setTimeout(() => v() ? p() : f(), Vq));
|
|
31071
31085
|
}, w = (x) => {
|
|
31072
31086
|
h(x) && p();
|
|
31073
31087
|
};
|
|
@@ -31075,21 +31089,21 @@ function qq() {
|
|
|
31075
31089
|
}
|
|
31076
31090
|
return { active: /* @__PURE__ */ $r(t), begin: o, track: r };
|
|
31077
31091
|
}
|
|
31078
|
-
const
|
|
31079
|
-
let
|
|
31080
|
-
function
|
|
31081
|
-
return Re(
|
|
31092
|
+
const Uq = /* @__PURE__ */ Symbol("layout-motion");
|
|
31093
|
+
let Wq;
|
|
31094
|
+
function Kq() {
|
|
31095
|
+
return Re(Uq, null) ?? (Wq ??= jq());
|
|
31082
31096
|
}
|
|
31083
|
-
const
|
|
31097
|
+
const Hq = /^#([\da-f]{3}|[\da-f]{6})$/i, Zq = /^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:\s*[,/]\s*([\d.]+)(%?))?\s*\)$/i;
|
|
31084
31098
|
function nc(e) {
|
|
31085
31099
|
const t = e.trim();
|
|
31086
31100
|
if (t === "transparent") return [0, 0, 0, 0];
|
|
31087
|
-
const n =
|
|
31101
|
+
const n = Hq.exec(t)?.[1];
|
|
31088
31102
|
if (n) {
|
|
31089
31103
|
const r = n.length === 3 ? [...n].map((a) => a + a).join("") : n;
|
|
31090
31104
|
return [0, 2, 4].map((a) => parseInt(r.slice(a, a + 2), 16)).concat(1);
|
|
31091
31105
|
}
|
|
31092
|
-
const o =
|
|
31106
|
+
const o = Zq.exec(t);
|
|
31093
31107
|
if (o) {
|
|
31094
31108
|
const r = o[4] === void 0 ? 1 : Number(o[4]) / (o[5] ? 100 : 1);
|
|
31095
31109
|
return [Number(o[1]), Number(o[2]), Number(o[3]), r];
|
|
@@ -31106,47 +31120,47 @@ function oc(e, t) {
|
|
|
31106
31120
|
function au([e, t, n, o], r) {
|
|
31107
31121
|
return [e * (1 - r), t * (1 - r), n * (1 - r), o];
|
|
31108
31122
|
}
|
|
31109
|
-
function
|
|
31123
|
+
function Gq([e, t, n, o], r) {
|
|
31110
31124
|
return [e + (255 - e) * r, t + (255 - t) * r, n + (255 - n) * r, o];
|
|
31111
31125
|
}
|
|
31112
|
-
function
|
|
31126
|
+
function Yq([e, t, n]) {
|
|
31113
31127
|
const o = (r) => {
|
|
31114
31128
|
const a = r / 255;
|
|
31115
31129
|
return a <= 0.04045 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
|
|
31116
31130
|
};
|
|
31117
31131
|
return 0.2126 * o(e) + 0.7152 * o(t) + 0.0722 * o(n);
|
|
31118
31132
|
}
|
|
31119
|
-
function
|
|
31120
|
-
const n = oc(t, [255, 255, 255, 1]), [o, r] = [oc(e, n), n].map(
|
|
31133
|
+
function Jq(e, t) {
|
|
31134
|
+
const n = oc(t, [255, 255, 255, 1]), [o, r] = [oc(e, n), n].map(Yq).sort((a, i) => i - a);
|
|
31121
31135
|
return (o + 0.05) / (r + 0.05);
|
|
31122
31136
|
}
|
|
31123
|
-
const iu = [255, 255, 255, 1],
|
|
31137
|
+
const iu = [255, 255, 255, 1], Xq = "#1b1f1c", Qq = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], eV = [0.04, 0.08, 0.16, 0.22, 0.28, 0.36, 0.5, 0.7], tV = 0.075, nV = 0.22, oV = 0.55, rc = (e) => nc(Bi(e));
|
|
31124
31138
|
function Rh(e, t, n, o, r) {
|
|
31125
31139
|
for (let a = n; a < 1; a += 0.01) {
|
|
31126
31140
|
const i = rc(t(e, a));
|
|
31127
|
-
if (
|
|
31141
|
+
if (Jq(...r(i)) >= o) return i;
|
|
31128
31142
|
}
|
|
31129
31143
|
return t(e, 1);
|
|
31130
31144
|
}
|
|
31131
|
-
function
|
|
31145
|
+
function rV(e, { dark: t = !1 } = {}) {
|
|
31132
31146
|
const n = nc(e);
|
|
31133
31147
|
if (n[3] !== 1) throw new Error(`An accent must be opaque: "${e}"`);
|
|
31134
|
-
const o = Rh(n, au, 0, 4.5, (u) => [iu, u]), r = t ? nc(
|
|
31135
|
-
return { steps: [...i, o, rc(au(o,
|
|
31148
|
+
const o = Rh(n, au, 0, 4.5, (u) => [iu, u]), r = t ? nc(Xq) : iu, a = (t ? eV : Qq).map((u) => [o[0], o[1], o[2], u]), i = a.map((u) => rc(oc(u, r))), s = (u, f) => Rh(o, t ? Gq : au, f, u, (p) => [p, i[2]]), l = t ? [s(4.5, 0), s(7, 0)] : [s(4.5, nV), s(7, oV)];
|
|
31149
|
+
return { steps: [...i, o, rc(au(o, tV)), ...l].map(Bi), alpha: a.map(Bi), contrast: Bi(iu) };
|
|
31136
31150
|
}
|
|
31137
|
-
function
|
|
31138
|
-
const { steps: n, alpha: o, contrast: r } =
|
|
31151
|
+
function aV(e, t = {}) {
|
|
31152
|
+
const { steps: n, alpha: o, contrast: r } = rV(e, t);
|
|
31139
31153
|
return Object.fromEntries([
|
|
31140
31154
|
...n.map((a, i) => [`--ui-accent-${i + 1}`, a]),
|
|
31141
31155
|
...o.map((a, i) => [`--ui-accent-a${i + 1}`, a]),
|
|
31142
31156
|
["--ui-accent-contrast", r]
|
|
31143
31157
|
]);
|
|
31144
31158
|
}
|
|
31145
|
-
const Mh = "width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content",
|
|
31146
|
-
function
|
|
31159
|
+
const Mh = "width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content", iV = ["viewport-fit=cover", "interactive-widget=resizes-content"];
|
|
31160
|
+
function sV(e = document) {
|
|
31147
31161
|
const t = e.head.querySelector('meta[name="viewport"]');
|
|
31148
31162
|
if (t?.content.replace(/\s/g, "").includes("width=device-width")) {
|
|
31149
|
-
const i = t.content, s = i.split(",").map((u) => u.trim().split("=")[0]).filter(Boolean), l =
|
|
31163
|
+
const i = t.content, s = i.split(",").map((u) => u.trim().split("=")[0]).filter(Boolean), l = iV.filter((u) => !s.includes(u.split("=")[0]));
|
|
31150
31164
|
l.length && (t.content = [i.trim().replace(/,\s*$/, ""), ...l].filter(Boolean).join(", "));
|
|
31151
31165
|
const c = su(e);
|
|
31152
31166
|
return () => {
|
|
@@ -31169,7 +31183,7 @@ function su(e) {
|
|
|
31169
31183
|
});
|
|
31170
31184
|
return () => n ? !1 : (t.cancelAnimationFrame(o), !0);
|
|
31171
31185
|
}
|
|
31172
|
-
const
|
|
31186
|
+
const lV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "data-ui-color-scheme", "data-ui-full-page", "tabindex"], uV = /* @__PURE__ */ V({
|
|
31173
31187
|
__name: "AppRoot",
|
|
31174
31188
|
props: {
|
|
31175
31189
|
modalScope: { default: "app" },
|
|
@@ -31194,11 +31208,11 @@ const iV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31194
31208
|
We(pr, u);
|
|
31195
31209
|
const f = qe("background"), p = qe("portal"), h = n.modalScope, m = h === "app" ? new RO(i, f) : null;
|
|
31196
31210
|
We(ry, m);
|
|
31197
|
-
const v =
|
|
31211
|
+
const v = sL(i, h === "app" && n.dialogBounds === "viewport", () => o("activate"));
|
|
31198
31212
|
v && m?.region(v.element), We(gb, v);
|
|
31199
31213
|
const y = { position: "relative", isolation: "isolate", overflow: "hidden" }, w = C(() => ({
|
|
31200
31214
|
...h === "app" ? y : {},
|
|
31201
|
-
...n.accent ?
|
|
31215
|
+
...n.accent ? aV(n.accent, { dark: n.colorScheme === "dark" }) : {}
|
|
31202
31216
|
})), x = Zg();
|
|
31203
31217
|
qt(() => {
|
|
31204
31218
|
const _ = i.value;
|
|
@@ -31209,7 +31223,7 @@ const iV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31209
31223
|
const E = n.fullPage;
|
|
31210
31224
|
let b;
|
|
31211
31225
|
return je(() => {
|
|
31212
|
-
E && (b =
|
|
31226
|
+
E && (b = sV(), document.documentElement.setAttribute("data-ui-page-shell", ""));
|
|
31213
31227
|
}), ze(() => {
|
|
31214
31228
|
E && (b?.(), document.documentElement.removeAttribute("data-ui-page-shell"));
|
|
31215
31229
|
}), ie(() => n.fullPage, (_) => {
|
|
@@ -31252,9 +31266,9 @@ const iV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31252
31266
|
]),
|
|
31253
31267
|
_: 3
|
|
31254
31268
|
}, 8, ["teleport-to"])
|
|
31255
|
-
], 12,
|
|
31269
|
+
], 12, lV));
|
|
31256
31270
|
}
|
|
31257
|
-
}),
|
|
31271
|
+
}), cV = ["src"], lu = /* @__PURE__ */ V({
|
|
31258
31272
|
__name: "AppBrand",
|
|
31259
31273
|
props: {
|
|
31260
31274
|
name: {},
|
|
@@ -31279,7 +31293,7 @@ const iV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31279
31293
|
alt: "",
|
|
31280
31294
|
width: "28",
|
|
31281
31295
|
height: "28"
|
|
31282
|
-
}, null, 8,
|
|
31296
|
+
}, null, 8, cV)) : j("", !0),
|
|
31283
31297
|
e.name ? (g(), I("span", {
|
|
31284
31298
|
key: 1,
|
|
31285
31299
|
"data-ui-brand-name": "",
|
|
@@ -31290,7 +31304,7 @@ const iV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31290
31304
|
}, 16));
|
|
31291
31305
|
}
|
|
31292
31306
|
}), Hb = /* @__PURE__ */ Symbol("syno-pkg-land-ui-app-page-title");
|
|
31293
|
-
function
|
|
31307
|
+
function dV(e, t) {
|
|
31294
31308
|
const n = /* @__PURE__ */ Ot([]);
|
|
31295
31309
|
return {
|
|
31296
31310
|
main: e,
|
|
@@ -31298,7 +31312,7 @@ function uV(e, t) {
|
|
|
31298
31312
|
shows: (o) => n.value[n.value.length - 1] === o && t(o.title())
|
|
31299
31313
|
};
|
|
31300
31314
|
}
|
|
31301
|
-
function
|
|
31315
|
+
function fV(e, t) {
|
|
31302
31316
|
const n = Re(Hb, null), o = { title: t }, r = /* @__PURE__ */ Ot(!1);
|
|
31303
31317
|
return je(() => {
|
|
31304
31318
|
!n || !e.value || !n.main.value?.contains(e.value) || (n.entries.value = [...n.entries.value, o], r.value = !0);
|
|
@@ -31307,7 +31321,7 @@ function cV(e, t) {
|
|
|
31307
31321
|
}), C(() => r.value && !!n?.shows(o));
|
|
31308
31322
|
}
|
|
31309
31323
|
const ac = (e) => Math.round(Math.min(Yu, Math.max(Gu, e)));
|
|
31310
|
-
function
|
|
31324
|
+
function pV(e) {
|
|
31311
31325
|
try {
|
|
31312
31326
|
const t = JSON.parse(localStorage.getItem(e) ?? "null");
|
|
31313
31327
|
return t && typeof t == "object" ? t : {};
|
|
@@ -31315,8 +31329,8 @@ function dV(e) {
|
|
|
31315
31329
|
return {};
|
|
31316
31330
|
}
|
|
31317
31331
|
}
|
|
31318
|
-
function
|
|
31319
|
-
const t = e ? `${e}:app-sidebar` : void 0, n = t ?
|
|
31332
|
+
function hV(e) {
|
|
31333
|
+
const t = e ? `${e}:app-sidebar` : void 0, n = t ? pV(t) : {}, o = /* @__PURE__ */ F(typeof n.width == "number" && Number.isFinite(n.width) ? ac(n.width) : SN), r = /* @__PURE__ */ F(n.collapsed === !0);
|
|
31320
31334
|
return t && ie([o, r], () => {
|
|
31321
31335
|
try {
|
|
31322
31336
|
localStorage.setItem(t, JSON.stringify({ width: o.value, collapsed: r.value }));
|
|
@@ -31324,31 +31338,31 @@ function fV(e) {
|
|
|
31324
31338
|
}
|
|
31325
31339
|
}), { width: o, collapsed: r };
|
|
31326
31340
|
}
|
|
31327
|
-
const
|
|
31341
|
+
const mV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height", "data-ui-layout-short", "data-ui-mobile-open", "data-ui-motion-ready", "data-ui-sidebar-collapsed", "data-ui-sidebar-resizing", "data-ui-aside", "data-ui-aside-overlay", "data-ui-aside-resizing", "data-ui-side-moving"], vV = { "data-ui-mobile-sidebar-header": "" }, gV = {
|
|
31328
31342
|
key: 0,
|
|
31329
31343
|
"data-ui-sidebar-brand": ""
|
|
31330
|
-
},
|
|
31344
|
+
}, yV = { key: 1 }, bV = ["aria-label"], wV = { "data-ui-sidebar-body": "" }, _V = {
|
|
31331
31345
|
key: 0,
|
|
31332
31346
|
"data-ui-sidebar-footer": ""
|
|
31333
|
-
},
|
|
31347
|
+
}, xV = ["id"], SV = {
|
|
31334
31348
|
key: 0,
|
|
31335
31349
|
"data-ui-sidebar-brand": ""
|
|
31336
|
-
},
|
|
31350
|
+
}, kV = ["aria-label", "title", "aria-expanded", "aria-controls"], CV = { "data-ui-sidebar-body": "" }, EV = {
|
|
31337
31351
|
key: 1,
|
|
31338
31352
|
"data-ui-sidebar-footer": ""
|
|
31339
|
-
},
|
|
31353
|
+
}, AV = ["aria-label", "aria-controls", "aria-valuemin", "aria-valuemax", "aria-valuenow"], PV = ["inert", "aria-hidden"], OV = ["data-ui-mobile-title-align"], TV = ["aria-label"], $V = ["aria-label", "aria-expanded", "aria-controls"], IV = ["aria-hidden", "title"], DV = {
|
|
31340
31354
|
key: 3,
|
|
31341
31355
|
"data-ui-sidebar-brand": ""
|
|
31342
|
-
},
|
|
31356
|
+
}, RV = {
|
|
31343
31357
|
key: 4,
|
|
31344
31358
|
"data-ui-mobile-title": ""
|
|
31345
|
-
},
|
|
31359
|
+
}, MV = {
|
|
31346
31360
|
key: 5,
|
|
31347
31361
|
"data-ui-mobile-actions": ""
|
|
31348
|
-
},
|
|
31362
|
+
}, NV = ["disabled", "aria-label", "title"], LV = {
|
|
31349
31363
|
key: 1,
|
|
31350
31364
|
"data-ui-mobile-action-label": ""
|
|
31351
|
-
},
|
|
31365
|
+
}, FV = ["aria-label"], zV = ["data-ui-layout-bar-short"], BV = ["aria-hidden", "title"], qV = ["data-ui-aside-state"], VV = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ii = 16, jV = /* @__PURE__ */ V({
|
|
31352
31366
|
__name: "AppLayout",
|
|
31353
31367
|
props: /* @__PURE__ */ Gi({
|
|
31354
31368
|
sidebarWidth: { default: void 0 },
|
|
@@ -31407,7 +31421,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31407
31421
|
});
|
|
31408
31422
|
const A = C(() => x.value === "web"), D = C(() => n.navigation === "top" && !b.value);
|
|
31409
31423
|
We(eb, D);
|
|
31410
|
-
const M =
|
|
31424
|
+
const M = hV(n.sidebarStorageKey), q = C(() => kN(w.value)), U = /* @__PURE__ */ F(!1);
|
|
31411
31425
|
ie(q, () => {
|
|
31412
31426
|
U.value = !1;
|
|
31413
31427
|
});
|
|
@@ -31416,8 +31430,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31416
31430
|
const Y = qe("main"), W = /* @__PURE__ */ F(0);
|
|
31417
31431
|
We(tb, () => {
|
|
31418
31432
|
W.value++;
|
|
31419
|
-
}),
|
|
31420
|
-
const oe = C(() => A.value && !D.value && !B.value && n.sidebarWidth === void 0), he = C(() => n.sidebarWidth !== void 0 ? n.sidebarWidth : A.value ? `${M.width.value}px` : "var(--ui-sidebar-width)"), re = C(() => B.value ? `var(--ui-web-sidebar-collapsed-width, ${nu}px)` : he.value), pe = C(() => !!c.sidebar && !b.value && !D.value), _e = C(() => pe.value ? B.value ? nu : Number.parseFloat(he.value) || 0 : 0), $e = C(() => !!c.aside),
|
|
31433
|
+
}), EF(Y, () => W.value);
|
|
31434
|
+
const oe = C(() => A.value && !D.value && !B.value && n.sidebarWidth === void 0), he = C(() => n.sidebarWidth !== void 0 ? n.sidebarWidth : A.value ? `${M.width.value}px` : "var(--ui-sidebar-width)"), re = C(() => B.value ? `var(--ui-web-sidebar-collapsed-width, ${nu}px)` : he.value), pe = C(() => !!c.sidebar && !b.value && !D.value), _e = C(() => pe.value ? B.value ? nu : Number.parseFloat(he.value) || 0 : 0), $e = C(() => !!c.aside), Fe = C(() => Math.round(Math.min(Pi, Math.max(Ai, a.value)))), tt = C(() => r.value === "open" && !b.value && (!A.value || w.value - _e.value - Fe.value < EN)), nt = C(() => $e.value && !b.value && r.value === "expanded"), Ke = C(() => b.value ? "0px" : nt.value ? pe.value ? `calc(${w.value}px - var(--ui-app-sidebar-width))` : `${w.value}px` : r.value === "open" && !tt.value ? `${Fe.value}px` : `${nu}px`);
|
|
31421
31435
|
We(AN, { state: r, overlay: tt, presentation: x, regionWidth: Ke });
|
|
31422
31436
|
const at = C(() => $e.value && b.value && r.value !== "collapsed"), Ze = C(() => $e.value && A.value && r.value === "open" && !tt.value), ot = C(() => b.value ? "minmax(0, 1fr)" : [pe.value && "auto", "minmax(0, 1fr)", $e.value && "auto"].filter(Boolean).join(" ")), yt = /* @__PURE__ */ F(!1);
|
|
31423
31437
|
We(PN, yt);
|
|
@@ -31427,7 +31441,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31427
31441
|
}
|
|
31428
31442
|
ie([re, Ke], (ve, ht) => {
|
|
31429
31443
|
if (!T.value || vo.value || Hn.value || ve.every((uw, cw) => uw === ht[cw])) return;
|
|
31430
|
-
const gn =
|
|
31444
|
+
const gn = SF("--ui-motion-panel", f.value);
|
|
31431
31445
|
if (gn < 1) return O();
|
|
31432
31446
|
yt.value = !0, clearTimeout(S), S = setTimeout(O, gn + 50);
|
|
31433
31447
|
});
|
|
@@ -31435,7 +31449,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31435
31449
|
ve.propertyName === "width" && ve.target === ve.currentTarget && O();
|
|
31436
31450
|
}
|
|
31437
31451
|
ze(() => clearTimeout(S));
|
|
31438
|
-
const Z =
|
|
31452
|
+
const Z = Kq();
|
|
31439
31453
|
let H;
|
|
31440
31454
|
ie(yt, (ve) => {
|
|
31441
31455
|
ve ? H ??= Z.begin(f.value) : (H?.(), H = void 0);
|
|
@@ -31447,7 +31461,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31447
31461
|
icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
|
|
31448
31462
|
};
|
|
31449
31463
|
});
|
|
31450
|
-
const se = C(() => ({ name: n.brandName ?? J.value.name, icon: n.brandIcon ?? J.value.icon })), fe = C(() => !!(c.brand || se.value.name || se.value.icon)), de = C(() => fe.value && !b.value && n.wideLayout === "web"), te = C(() => de.value || A.value && !D.value), ke = C(() => !!c["sidebar-footer"] && (D.value || A.value)), me =
|
|
31464
|
+
const se = C(() => ({ name: n.brandName ?? J.value.name, icon: n.brandIcon ?? J.value.icon })), fe = C(() => !!(c.brand || se.value.name || se.value.icon)), de = C(() => fe.value && !b.value && n.wideLayout === "web"), te = C(() => de.value || A.value && !D.value), ke = C(() => !!c["sidebar-footer"] && (D.value || A.value)), me = dV(p, (ve) => n.title === void 0 ? b.value || P.value : P.value && n.title === ve);
|
|
31451
31465
|
We(Hb, me);
|
|
31452
31466
|
const be = C(() => me.entries.value.at(-1)?.title()), xe = C(() => n.title ?? be.value), De = C(() => P.value ? xe.value : void 0), ne = C(() => {
|
|
31453
31467
|
const ve = me.entries.value.at(-1);
|
|
@@ -31497,8 +31511,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31497
31511
|
const Ad = (ve) => Math.round(Math.min(Pi, Math.max(Ai, ve)));
|
|
31498
31512
|
function tw(ve) {
|
|
31499
31513
|
const ht = {
|
|
31500
|
-
ArrowLeft:
|
|
31501
|
-
ArrowRight:
|
|
31514
|
+
ArrowLeft: Fe.value + Ii,
|
|
31515
|
+
ArrowRight: Fe.value - Ii,
|
|
31502
31516
|
Home: Ai,
|
|
31503
31517
|
End: Pi
|
|
31504
31518
|
}[ve.key];
|
|
@@ -31510,12 +31524,12 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31510
31524
|
Fo.value = Ad(hl.width - (ve.clientX - hl.x));
|
|
31511
31525
|
}
|
|
31512
31526
|
function Yr() {
|
|
31513
|
-
document.removeEventListener("pointermove", Pd), document.removeEventListener("pointerup", Yr), document.removeEventListener("pointercancel", Yr), Hn.value && (a.value = Fo.value,
|
|
31527
|
+
document.removeEventListener("pointermove", Pd), document.removeEventListener("pointerup", Yr), document.removeEventListener("pointercancel", Yr), Hn.value && (a.value = Fo.value, Le(() => {
|
|
31514
31528
|
Hn.value = !1;
|
|
31515
31529
|
}));
|
|
31516
31530
|
}
|
|
31517
31531
|
function nw(ve) {
|
|
31518
|
-
ve.button === 0 && (ve.preventDefault(), hl = { x: ve.clientX, width:
|
|
31532
|
+
ve.button === 0 && (ve.preventDefault(), hl = { x: ve.clientX, width: Fe.value }, Fo.value = Fe.value, Hn.value = !0, document.addEventListener("pointermove", Pd), document.addEventListener("pointerup", Yr), document.addEventListener("pointercancel", Yr));
|
|
31519
31533
|
}
|
|
31520
31534
|
ze(Yr);
|
|
31521
31535
|
const ow = C(() => Hn.value ? `${Fo.value}px` : Ke.value);
|
|
@@ -31523,7 +31537,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31523
31537
|
if (!k.value) return;
|
|
31524
31538
|
k.value = !1;
|
|
31525
31539
|
const ht = v?.isConnected ? v : m.value;
|
|
31526
|
-
v = null, ve &&
|
|
31540
|
+
v = null, ve && Le(() => ht?.focus());
|
|
31527
31541
|
}
|
|
31528
31542
|
function Od() {
|
|
31529
31543
|
v = document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null, k.value = !0;
|
|
@@ -31613,8 +31627,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31613
31627
|
]),
|
|
31614
31628
|
_: 1
|
|
31615
31629
|
}),
|
|
31616
|
-
ae("div",
|
|
31617
|
-
fe.value ? (g(), I("div",
|
|
31630
|
+
ae("div", vV, [
|
|
31631
|
+
fe.value ? (g(), I("div", gV, [
|
|
31618
31632
|
z(ve.$slots, "brand", {}, () => [
|
|
31619
31633
|
K(lu, {
|
|
31620
31634
|
interactive: s(),
|
|
@@ -31623,7 +31637,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31623
31637
|
icon: se.value.icon
|
|
31624
31638
|
}, null, 8, ["interactive", "name", "icon"])
|
|
31625
31639
|
])
|
|
31626
|
-
])) : (g(), I("span",
|
|
31640
|
+
])) : (g(), I("span", yV, Q(d(u)("Application navigation")), 1)),
|
|
31627
31641
|
ae("button", {
|
|
31628
31642
|
ref_key: "closeButton",
|
|
31629
31643
|
ref: h,
|
|
@@ -31636,12 +31650,12 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31636
31650
|
size: 20,
|
|
31637
31651
|
"aria-hidden": "true"
|
|
31638
31652
|
})
|
|
31639
|
-
], 8,
|
|
31653
|
+
], 8, bV)
|
|
31640
31654
|
]),
|
|
31641
|
-
ae("div",
|
|
31655
|
+
ae("div", wV, [
|
|
31642
31656
|
z(ve.$slots, "sidebar")
|
|
31643
31657
|
]),
|
|
31644
|
-
ve.$slots["sidebar-footer"] ? (g(), I("div",
|
|
31658
|
+
ve.$slots["sidebar-footer"] ? (g(), I("div", _V, [
|
|
31645
31659
|
z(ve.$slots, "sidebar-footer")
|
|
31646
31660
|
])) : j("", !0)
|
|
31647
31661
|
]),
|
|
@@ -31665,7 +31679,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31665
31679
|
class: "min-w-0 border-r border-[var(--ui-border)] bg-[var(--ui-surface)]",
|
|
31666
31680
|
onTransitionend: N
|
|
31667
31681
|
}, [
|
|
31668
|
-
te.value ? (g(), I("div",
|
|
31682
|
+
te.value ? (g(), I("div", SV, [
|
|
31669
31683
|
de.value && !B.value ? z(ve.$slots, "brand", {}, () => [
|
|
31670
31684
|
K(lu, {
|
|
31671
31685
|
interactive: s(),
|
|
@@ -31688,12 +31702,12 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31688
31702
|
size: 16,
|
|
31689
31703
|
"aria-hidden": "true"
|
|
31690
31704
|
}))
|
|
31691
|
-
], 8,
|
|
31705
|
+
], 8, kV)) : j("", !0)
|
|
31692
31706
|
])) : j("", !0),
|
|
31693
|
-
ae("div",
|
|
31707
|
+
ae("div", CV, [
|
|
31694
31708
|
z(ve.$slots, "sidebar")
|
|
31695
31709
|
]),
|
|
31696
|
-
ke.value ? (g(), I("div",
|
|
31710
|
+
ke.value ? (g(), I("div", EV, [
|
|
31697
31711
|
z(ve.$slots, "sidebar-footer")
|
|
31698
31712
|
])) : j("", !0),
|
|
31699
31713
|
oe.value ? (g(), I("div", {
|
|
@@ -31709,8 +31723,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31709
31723
|
"aria-valuenow": d(M).width.value,
|
|
31710
31724
|
onKeydown: Zr,
|
|
31711
31725
|
onPointerdown: ew
|
|
31712
|
-
}, null, 40,
|
|
31713
|
-
], 40,
|
|
31726
|
+
}, null, 40, AV)) : j("", !0)
|
|
31727
|
+
], 40, xV)) : j("", !0),
|
|
31714
31728
|
ae("div", {
|
|
31715
31729
|
ref_key: "column",
|
|
31716
31730
|
ref: p,
|
|
@@ -31735,7 +31749,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31735
31749
|
size: 24,
|
|
31736
31750
|
"aria-hidden": "true"
|
|
31737
31751
|
})
|
|
31738
|
-
], 8,
|
|
31752
|
+
], 8, TV)) : Me.value ? (g(), I("button", {
|
|
31739
31753
|
key: 1,
|
|
31740
31754
|
ref_key: "menuTrigger",
|
|
31741
31755
|
ref: m,
|
|
@@ -31750,7 +31764,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31750
31764
|
size: 20,
|
|
31751
31765
|
"aria-hidden": "true"
|
|
31752
31766
|
})
|
|
31753
|
-
], 8,
|
|
31767
|
+
], 8, $V)) : j("", !0),
|
|
31754
31768
|
xe.value !== void 0 ? (g(), I("div", {
|
|
31755
31769
|
key: 2,
|
|
31756
31770
|
ref_key: "phoneTitle",
|
|
@@ -31763,7 +31777,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31763
31777
|
ref_key: "phoneTitleText",
|
|
31764
31778
|
ref: It
|
|
31765
31779
|
}, Q(xe.value), 513)
|
|
31766
|
-
], 8,
|
|
31780
|
+
], 8, IV)) : fe.value ? (g(), I("div", DV, [
|
|
31767
31781
|
z(ve.$slots, "brand", {}, () => [
|
|
31768
31782
|
K(lu, {
|
|
31769
31783
|
interactive: s(),
|
|
@@ -31772,8 +31786,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31772
31786
|
icon: se.value.icon
|
|
31773
31787
|
}, null, 8, ["interactive", "name", "icon"])
|
|
31774
31788
|
])
|
|
31775
|
-
])) : ve.$slots.sidebar ? (g(), I("span",
|
|
31776
|
-
ue.value || Ce.value.length ? (g(), I("div",
|
|
31789
|
+
])) : ve.$slots.sidebar ? (g(), I("span", RV, Q(d(u)("Application navigation")), 1)) : j("", !0),
|
|
31790
|
+
ue.value || Ce.value.length ? (g(), I("div", MV, [
|
|
31777
31791
|
ue.value ? (g(), I("button", {
|
|
31778
31792
|
key: 0,
|
|
31779
31793
|
"data-ui-mobile-action": "",
|
|
@@ -31787,8 +31801,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31787
31801
|
key: 0,
|
|
31788
31802
|
size: 20,
|
|
31789
31803
|
"aria-hidden": "true"
|
|
31790
|
-
})) : (g(), I("span",
|
|
31791
|
-
], 8,
|
|
31804
|
+
})) : (g(), I("span", LV, Q(ue.value.label), 1))
|
|
31805
|
+
], 8, NV)) : j("", !0),
|
|
31792
31806
|
Ce.value.length ? (g(), L(Ib, {
|
|
31793
31807
|
key: 1,
|
|
31794
31808
|
items: Ce.value,
|
|
@@ -31805,12 +31819,12 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31805
31819
|
size: 20,
|
|
31806
31820
|
"aria-hidden": "true"
|
|
31807
31821
|
})
|
|
31808
|
-
], 8,
|
|
31822
|
+
], 8, FV)
|
|
31809
31823
|
]),
|
|
31810
31824
|
_: 1
|
|
31811
31825
|
}, 8, ["items"])) : j("", !0)
|
|
31812
31826
|
])) : j("", !0)
|
|
31813
|
-
], 8,
|
|
31827
|
+
], 8, OV)) : j("", !0),
|
|
31814
31828
|
ve.$slots.toolbar || De.value !== void 0 ? (g(), I("div", {
|
|
31815
31829
|
key: 1,
|
|
31816
31830
|
"data-ui-layout-bar": "",
|
|
@@ -31821,9 +31835,9 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31821
31835
|
"data-ui-layout-title": "",
|
|
31822
31836
|
"aria-hidden": ne.value ? "true" : void 0,
|
|
31823
31837
|
title: De.value
|
|
31824
|
-
}, Q(De.value), 9,
|
|
31838
|
+
}, Q(De.value), 9, BV)) : j("", !0),
|
|
31825
31839
|
z(ve.$slots, "toolbar")
|
|
31826
|
-
], 8,
|
|
31840
|
+
], 8, zV)) : j("", !0),
|
|
31827
31841
|
ae("main", {
|
|
31828
31842
|
ref_key: "main",
|
|
31829
31843
|
ref: Y,
|
|
@@ -31834,18 +31848,18 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31834
31848
|
], 2),
|
|
31835
31849
|
z(ve.$slots, "footer"),
|
|
31836
31850
|
b.value ? z(ve.$slots, "tabbar", {}, void 0, void 0, 2) : j("", !0)
|
|
31837
|
-
], 8,
|
|
31851
|
+
], 8, PV),
|
|
31838
31852
|
$e.value ? (g(), I("div", {
|
|
31839
31853
|
key: 2,
|
|
31840
31854
|
"data-ui-layout-aside": "",
|
|
31841
31855
|
"data-ui-aside-state": r.value,
|
|
31842
|
-
style: Ve({ width: ow.value, "--ui-aside-open-width": `${Hn.value ? Fo.value :
|
|
31856
|
+
style: Ve({ width: ow.value, "--ui-aside-open-width": `${Hn.value ? Fo.value : Fe.value}px` }),
|
|
31843
31857
|
onTransitionend: N
|
|
31844
31858
|
}, [
|
|
31845
31859
|
z(ve.$slots, "aside", {
|
|
31846
31860
|
state: r.value,
|
|
31847
31861
|
overlay: tt.value,
|
|
31848
|
-
width: Hn.value ? Fo.value :
|
|
31862
|
+
width: Hn.value ? Fo.value : Fe.value,
|
|
31849
31863
|
presentation: x.value
|
|
31850
31864
|
}),
|
|
31851
31865
|
Ze.value ? (g(), I("div", {
|
|
@@ -31857,14 +31871,14 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31857
31871
|
"aria-label": d(u)("Resize panes"),
|
|
31858
31872
|
"aria-valuemin": d(Ai),
|
|
31859
31873
|
"aria-valuemax": d(Pi),
|
|
31860
|
-
"aria-valuenow": Hn.value ? Fo.value :
|
|
31874
|
+
"aria-valuenow": Hn.value ? Fo.value : Fe.value,
|
|
31861
31875
|
onKeydown: tw,
|
|
31862
31876
|
onPointerdown: nw
|
|
31863
|
-
}, null, 40,
|
|
31864
|
-
], 44,
|
|
31865
|
-
], 14,
|
|
31877
|
+
}, null, 40, VV)) : j("", !0)
|
|
31878
|
+
], 44, qV)) : j("", !0)
|
|
31879
|
+
], 14, mV));
|
|
31866
31880
|
}
|
|
31867
|
-
}),
|
|
31881
|
+
}), UV = /* @__PURE__ */ V({
|
|
31868
31882
|
__name: "ResponsiveView",
|
|
31869
31883
|
props: {
|
|
31870
31884
|
mode: { default: "auto" }
|
|
@@ -31876,7 +31890,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31876
31890
|
});
|
|
31877
31891
|
return (a, i) => z(a.$slots, r.value);
|
|
31878
31892
|
}
|
|
31879
|
-
}),
|
|
31893
|
+
}), WV = /* @__PURE__ */ V({
|
|
31880
31894
|
__name: "AppSidebarTip",
|
|
31881
31895
|
props: {
|
|
31882
31896
|
label: {},
|
|
@@ -31894,20 +31908,20 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31894
31908
|
_: 3
|
|
31895
31909
|
}, 8, ["content"])) : z(t.$slots, "default", {}, void 0, void 0, 1);
|
|
31896
31910
|
}
|
|
31897
|
-
}),
|
|
31911
|
+
}), KV = ["data-nav-toggle", "data-nav-item", "disabled", "aria-current", "aria-expanded", "onClick"], HV = {
|
|
31898
31912
|
key: 1,
|
|
31899
31913
|
"data-nav-badge": "",
|
|
31900
31914
|
class: "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]"
|
|
31901
|
-
},
|
|
31915
|
+
}, ZV = ["disabled", "aria-current", "onClick"], GV = {
|
|
31902
31916
|
key: 0,
|
|
31903
31917
|
"data-nav-chevron-spacer": "",
|
|
31904
31918
|
class: "size-3.5 shrink-0",
|
|
31905
31919
|
"aria-hidden": "true"
|
|
31906
|
-
},
|
|
31920
|
+
}, YV = {
|
|
31907
31921
|
key: 2,
|
|
31908
31922
|
"data-nav-badge": "",
|
|
31909
31923
|
class: "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]"
|
|
31910
|
-
},
|
|
31924
|
+
}, JV = ["aria-label"], Nh = "min-w-0 flex-1 [overflow-wrap:anywhere] [text-wrap:pretty]", XV = /* @__PURE__ */ V({
|
|
31911
31925
|
name: "AppSidebarItems",
|
|
31912
31926
|
__name: "AppSidebarItems",
|
|
31913
31927
|
props: {
|
|
@@ -31929,7 +31943,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31929
31943
|
return g(!0), I(ye, null, Be(e.items, (m) => (g(), I(ye, {
|
|
31930
31944
|
key: m.key
|
|
31931
31945
|
}, [
|
|
31932
|
-
i(m) ? j("", !0) : (g(), L(
|
|
31946
|
+
i(m) ? j("", !0) : (g(), L(WV, {
|
|
31933
31947
|
key: 0,
|
|
31934
31948
|
label: m.label,
|
|
31935
31949
|
enabled: !!n.collapsed
|
|
@@ -31965,8 +31979,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31965
31979
|
"data-nav-label": "",
|
|
31966
31980
|
class: ce(n.collapsed ? "sr-only" : Nh)
|
|
31967
31981
|
}, Q(m.label), 3),
|
|
31968
|
-
m.badge !== void 0 ? (g(), I("span",
|
|
31969
|
-
], 14,
|
|
31982
|
+
m.badge !== void 0 ? (g(), I("span", HV, Q(m.badge), 1)) : j("", !0)
|
|
31983
|
+
], 14, KV)) : (g(), I("button", {
|
|
31970
31984
|
key: 1,
|
|
31971
31985
|
type: "button",
|
|
31972
31986
|
"data-nav-item": "",
|
|
@@ -31977,7 +31991,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31977
31991
|
style: Ve(a(n.depth)),
|
|
31978
31992
|
onClick: (v) => o("select", m)
|
|
31979
31993
|
}, [
|
|
31980
|
-
c.value ? (g(), I("span",
|
|
31994
|
+
c.value ? (g(), I("span", GV)) : j("", !0),
|
|
31981
31995
|
m.icon ? (g(), L(ft(m.icon), {
|
|
31982
31996
|
key: 1,
|
|
31983
31997
|
class: "size-[var(--ui-icon-size,22px)] shrink-0",
|
|
@@ -31987,8 +32001,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31987
32001
|
"data-nav-label": "",
|
|
31988
32002
|
class: ce(n.collapsed ? "sr-only" : Nh)
|
|
31989
32003
|
}, Q(m.label), 3),
|
|
31990
|
-
m.badge !== void 0 ? (g(), I("span",
|
|
31991
|
-
], 14,
|
|
32004
|
+
m.badge !== void 0 ? (g(), I("span", YV, Q(m.badge), 1)) : j("", !0)
|
|
32005
|
+
], 14, ZV))
|
|
31992
32006
|
]),
|
|
31993
32007
|
_: 2
|
|
31994
32008
|
}, 1032, ["label", "enabled"])),
|
|
@@ -32008,11 +32022,11 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32008
32022
|
onSelect: p[0] || (p[0] = (v) => o("select", v)),
|
|
32009
32023
|
onToggle: p[1] || (p[1] = (v) => o("toggle", v))
|
|
32010
32024
|
}, null, 8, ["items", "model-value", "expanded-keys", "depth", "searching", "collapsed"])
|
|
32011
|
-
], 8,
|
|
32025
|
+
], 8, JV)) : j("", !0)
|
|
32012
32026
|
], 64))), 128);
|
|
32013
32027
|
};
|
|
32014
32028
|
}
|
|
32015
|
-
}),
|
|
32029
|
+
}), QV = ["data-ui-top-nav-more", "data-ui-selected", "data-nav-toggle", "data-nav-item", "data-nav-contains-current", "disabled", "aria-current"], e2 = { "data-nav-label": "" }, t2 = ["disabled", "aria-current", "onClick"], n2 = { "data-nav-label": "" }, Lh = "size-[var(--ui-icon-size,18px)] shrink-0", Fh = "inline-flex min-w-5 items-center justify-center rounded-full bg-[var(--ui-primary)] px-1.5 py-0.5 text-[length:var(--ui-font-size-sm)] font-semibold leading-none text-[var(--ui-primary-foreground)]", zh = /* @__PURE__ */ V({
|
|
32016
32030
|
__name: "AppTopNavItems",
|
|
32017
32031
|
props: {
|
|
32018
32032
|
items: {},
|
|
@@ -32075,7 +32089,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32075
32089
|
class: ce(Lh),
|
|
32076
32090
|
"aria-hidden": "true"
|
|
32077
32091
|
})) : j("", !0),
|
|
32078
|
-
ae("span",
|
|
32092
|
+
ae("span", e2, Q(f.label), 1),
|
|
32079
32093
|
f.badge !== void 0 ? (g(), I("span", {
|
|
32080
32094
|
key: 1,
|
|
32081
32095
|
"data-nav-badge": "",
|
|
@@ -32086,7 +32100,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32086
32100
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
32087
32101
|
"aria-hidden": "true"
|
|
32088
32102
|
})
|
|
32089
|
-
], 10,
|
|
32103
|
+
], 10, QV)
|
|
32090
32104
|
]),
|
|
32091
32105
|
_: 2
|
|
32092
32106
|
}, 1032, ["items", "data-ui-top-nav-overflow-menu", "onSelect"])) : (g(), I("button", {
|
|
@@ -32104,16 +32118,16 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32104
32118
|
class: ce(Lh),
|
|
32105
32119
|
"aria-hidden": "true"
|
|
32106
32120
|
})) : j("", !0),
|
|
32107
|
-
ae("span",
|
|
32121
|
+
ae("span", n2, Q(f.label), 1),
|
|
32108
32122
|
f.badge !== void 0 ? (g(), I("span", {
|
|
32109
32123
|
key: 1,
|
|
32110
32124
|
"data-nav-badge": "",
|
|
32111
32125
|
class: ce(Fh)
|
|
32112
32126
|
}, Q(f.badge), 1)) : j("", !0)
|
|
32113
|
-
], 10,
|
|
32127
|
+
], 10, t2))
|
|
32114
32128
|
], 64))), 128));
|
|
32115
32129
|
}
|
|
32116
|
-
}),
|
|
32130
|
+
}), o2 = ["aria-label"], r2 = ["aria-label", "aria-hidden", "inert"], a2 = ["data-ui-overflowed", "aria-hidden", "inert"], i2 = ["aria-hidden", "inert"], s2 = /* @__PURE__ */ V({
|
|
32117
32131
|
__name: "AppTopNav",
|
|
32118
32132
|
props: {
|
|
32119
32133
|
groups: {},
|
|
@@ -32156,12 +32170,12 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32156
32170
|
}
|
|
32157
32171
|
if (l.value === k) return;
|
|
32158
32172
|
const $ = document.activeElement, T = $ instanceof Element && [...x.querySelectorAll("[data-ui-top-nav-item]")].some((D, M) => M >= k && D.contains($)), A = i.value.contains($);
|
|
32159
|
-
l.value = k,
|
|
32173
|
+
l.value = k, Le(() => {
|
|
32160
32174
|
T ? i.value?.querySelector("button")?.focus() : A && !u.value.length && x.querySelector("[data-ui-top-nav-item] button")?.focus();
|
|
32161
32175
|
});
|
|
32162
32176
|
}
|
|
32163
32177
|
async function w() {
|
|
32164
|
-
await
|
|
32178
|
+
await Le(), m?.disconnect(), a.value && (m?.observe(a.value), a.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((x) => m?.observe(x)), y());
|
|
32165
32179
|
}
|
|
32166
32180
|
return je(() => {
|
|
32167
32181
|
typeof ResizeObserver < "u" && (m = new ResizeObserver(y)), w();
|
|
@@ -32198,8 +32212,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32198
32212
|
"model-value": n.modelValue,
|
|
32199
32213
|
onSelect: E[0] || (E[0] = (T) => o("select", T))
|
|
32200
32214
|
}, null, 8, ["items", "model-value"]))
|
|
32201
|
-
], 12,
|
|
32202
|
-
], 14,
|
|
32215
|
+
], 12, a2))), 128))
|
|
32216
|
+
], 14, r2))), 128)),
|
|
32203
32217
|
ae("div", {
|
|
32204
32218
|
ref_key: "more",
|
|
32205
32219
|
ref: i,
|
|
@@ -32216,14 +32230,14 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32216
32230
|
overflow: "",
|
|
32217
32231
|
onSelect: E[1] || (E[1] = (b) => o("select", b))
|
|
32218
32232
|
}, null, 8, ["items", "model-value"]))
|
|
32219
|
-
], 12,
|
|
32220
|
-
], 8,
|
|
32233
|
+
], 12, i2)
|
|
32234
|
+
], 8, o2));
|
|
32221
32235
|
}
|
|
32222
|
-
}),
|
|
32236
|
+
}), l2 = ["aria-label", "data-ui-sidebar-collapsed"], u2 = ["aria-expanded", "onClick"], c2 = {
|
|
32223
32237
|
key: 1,
|
|
32224
32238
|
"data-nav-group-label": "",
|
|
32225
32239
|
class: "flex h-6 items-center px-[11px] text-[12px] font-bold text-[var(--ui-text-secondary)]"
|
|
32226
|
-
},
|
|
32240
|
+
}, d2 = /* @__PURE__ */ V({
|
|
32227
32241
|
__name: "AppSidebar",
|
|
32228
32242
|
props: {
|
|
32229
32243
|
modelValue: {},
|
|
@@ -32286,7 +32300,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32286
32300
|
function b(_) {
|
|
32287
32301
|
_.disabled || (r("update:modelValue", _.key), r("select", _), w(_.key));
|
|
32288
32302
|
}
|
|
32289
|
-
return (_, P) => d(i) ? (g(), L(
|
|
32303
|
+
return (_, P) => d(i) ? (g(), L(s2, {
|
|
32290
32304
|
key: 0,
|
|
32291
32305
|
groups: d(o).groups,
|
|
32292
32306
|
"model-value": d(o).modelValue,
|
|
@@ -32299,7 +32313,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32299
32313
|
"data-ui-sidebar-collapsed": d(a) ? "true" : void 0,
|
|
32300
32314
|
"data-syno-pkg-land-ui": ""
|
|
32301
32315
|
}, [
|
|
32302
|
-
d(o).searchable && !d(a) ? (g(), L(
|
|
32316
|
+
d(o).searchable && !d(a) ? (g(), L($z, {
|
|
32303
32317
|
key: 0,
|
|
32304
32318
|
modelValue: s.value,
|
|
32305
32319
|
"onUpdate:modelValue": P[0] || (P[0] = (k) => s.value = k),
|
|
@@ -32326,8 +32340,8 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32326
32340
|
"aria-hidden": "true"
|
|
32327
32341
|
}, null, 8, ["class"]),
|
|
32328
32342
|
Oe(" " + Q(k.label), 1)
|
|
32329
|
-
], 8,
|
|
32330
|
-
h($) ? (g(), L(
|
|
32343
|
+
], 8, u2)) : k.label && !d(a) ? (g(), I("div", c2, Q(k.label), 1)) : j("", !0),
|
|
32344
|
+
h($) ? (g(), L(XV, {
|
|
32331
32345
|
key: 2,
|
|
32332
32346
|
items: T,
|
|
32333
32347
|
"model-value": d(o).modelValue,
|
|
@@ -32339,7 +32353,7 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32339
32353
|
onToggle: E
|
|
32340
32354
|
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : j("", !0)
|
|
32341
32355
|
], 2))), 128))
|
|
32342
|
-
], 8,
|
|
32356
|
+
], 8, l2));
|
|
32343
32357
|
}
|
|
32344
32358
|
}), Zb = /* @__PURE__ */ V({
|
|
32345
32359
|
__name: "CalloutRecall",
|
|
@@ -32359,13 +32373,13 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32359
32373
|
_: 1
|
|
32360
32374
|
}, 8, ["aria-label"]));
|
|
32361
32375
|
}
|
|
32362
|
-
}),
|
|
32376
|
+
}), f2 = {
|
|
32363
32377
|
key: 0,
|
|
32364
32378
|
class: "flex shrink-0 items-center gap-1.5"
|
|
32365
|
-
},
|
|
32379
|
+
}, p2 = { class: "min-w-0 flex-1" }, h2 = {
|
|
32366
32380
|
key: 1,
|
|
32367
32381
|
class: "ml-auto flex shrink-0 items-center gap-2"
|
|
32368
|
-
},
|
|
32382
|
+
}, m2 = /* @__PURE__ */ V({
|
|
32369
32383
|
__name: "AppToolbar",
|
|
32370
32384
|
props: {
|
|
32371
32385
|
height: { default: "var(--ui-toolbar-height)" }
|
|
@@ -32378,20 +32392,20 @@ const pV = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32378
32392
|
style: Ve({ minHeight: e.height }),
|
|
32379
32393
|
"data-syno-pkg-land-ui": ""
|
|
32380
32394
|
}, [
|
|
32381
|
-
n.$slots.leading || d(t) ? (g(), I("div",
|
|
32395
|
+
n.$slots.leading || d(t) ? (g(), I("div", f2, [
|
|
32382
32396
|
z(n.$slots, "leading"),
|
|
32383
32397
|
d(t) ? (g(), L(Zb, { key: 0 })) : j("", !0)
|
|
32384
32398
|
])) : j("", !0),
|
|
32385
|
-
ae("div",
|
|
32399
|
+
ae("div", p2, [
|
|
32386
32400
|
z(n.$slots, "default")
|
|
32387
32401
|
]),
|
|
32388
|
-
n.$slots.actions ? (g(), I("div",
|
|
32402
|
+
n.$slots.actions ? (g(), I("div", h2, [
|
|
32389
32403
|
z(n.$slots, "actions")
|
|
32390
32404
|
])) : j("", !0)
|
|
32391
32405
|
], 4));
|
|
32392
32406
|
}
|
|
32393
32407
|
}), Gb = /* @__PURE__ */ Symbol("syno-pkg-land-ui-page-sticky");
|
|
32394
|
-
function
|
|
32408
|
+
function v2() {
|
|
32395
32409
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ F(0);
|
|
32396
32410
|
return We(Gb, {
|
|
32397
32411
|
report(n, o) {
|
|
@@ -32399,7 +32413,7 @@ function h2() {
|
|
|
32399
32413
|
}
|
|
32400
32414
|
}), t;
|
|
32401
32415
|
}
|
|
32402
|
-
function
|
|
32416
|
+
function g2(e, t) {
|
|
32403
32417
|
const n = Re(Gb, null);
|
|
32404
32418
|
if (!n) return;
|
|
32405
32419
|
const o = {};
|
|
@@ -32413,15 +32427,15 @@ function m2(e, t) {
|
|
|
32413
32427
|
l(), typeof ResizeObserver == "function" && (r = new ResizeObserver(l), r.observe(i));
|
|
32414
32428
|
}, { flush: "post", immediate: !0 }), ze(a);
|
|
32415
32429
|
}
|
|
32416
|
-
const
|
|
32430
|
+
const y2 = ["data-ui-title-in-bar"], b2 = { class: "min-w-0 flex-auto" }, w2 = { class: "flex min-w-0 items-center gap-x-[var(--ui-space-3)]" }, _2 = ["title"], x2 = {
|
|
32417
32431
|
key: 0,
|
|
32418
32432
|
"data-ui-page-header-meta": "",
|
|
32419
32433
|
class: "flex shrink-0 items-center gap-2 whitespace-nowrap [@media(pointer:coarse)]:min-h-[var(--ui-hit-min)]"
|
|
32420
|
-
},
|
|
32434
|
+
}, S2 = ["title"], k2 = {
|
|
32421
32435
|
key: 0,
|
|
32422
32436
|
"data-ui-page-header-actions": "",
|
|
32423
32437
|
class: "ml-auto flex max-w-full shrink-0 flex-wrap items-center justify-end gap-2 [&>*]:w-auto [&>*]:shrink-0"
|
|
32424
|
-
},
|
|
32438
|
+
}, C2 = /* @__PURE__ */ V({
|
|
32425
32439
|
__name: "PageHeader",
|
|
32426
32440
|
props: {
|
|
32427
32441
|
title: {},
|
|
@@ -32429,8 +32443,8 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32429
32443
|
sticky: { type: Boolean, default: !0 }
|
|
32430
32444
|
},
|
|
32431
32445
|
setup(e) {
|
|
32432
|
-
const t = e, n = Vb(), o = Cn(), r = qe("root"), a =
|
|
32433
|
-
|
|
32446
|
+
const t = e, n = Vb(), o = Cn(), r = qe("root"), a = fV(r, () => t.title), i = Re(nb, void 0), s = C(() => t.sticky && !i?.value);
|
|
32447
|
+
g2(r, () => s.value);
|
|
32434
32448
|
const l = C(() => a.value && !t.description && !o.meta && !n.value && !o.actions);
|
|
32435
32449
|
return (c, u) => (g(), I("div", {
|
|
32436
32450
|
ref_key: "root",
|
|
@@ -32440,13 +32454,13 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32440
32454
|
class: ce([s.value && "sticky top-0 z-[2] bg-[var(--ui-page-header-bg,var(--ui-surface))]", "flex flex-wrap items-start gap-x-[var(--ui-space-6)] gap-y-[var(--ui-space-2)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]"]),
|
|
32441
32455
|
"data-syno-pkg-land-ui": ""
|
|
32442
32456
|
}, [
|
|
32443
|
-
ae("div",
|
|
32444
|
-
ae("div",
|
|
32457
|
+
ae("div", b2, [
|
|
32458
|
+
ae("div", w2, [
|
|
32445
32459
|
ae("h1", {
|
|
32446
32460
|
class: ce([d(a) && "sr-only", "m-0 min-w-0 truncate text-[length:var(--ui-font-size-title)] [font-weight:var(--ui-heading-weight,600)] tracking-[-0.01em] text-[var(--ui-text)]"]),
|
|
32447
32461
|
title: e.title
|
|
32448
|
-
}, Q(e.title), 11,
|
|
32449
|
-
c.$slots.meta || d(n) ? (g(), I("div",
|
|
32462
|
+
}, Q(e.title), 11, _2),
|
|
32463
|
+
c.$slots.meta || d(n) ? (g(), I("div", x2, [
|
|
32450
32464
|
d(n) ? (g(), L(Zb, { key: 0 })) : j("", !0),
|
|
32451
32465
|
z(c.$slots, "meta")
|
|
32452
32466
|
])) : j("", !0)
|
|
@@ -32456,14 +32470,14 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32456
32470
|
"data-ui-page-header-description": "",
|
|
32457
32471
|
class: "mt-1 max-w-3xl [contain:inline-size] text-[length:var(--ui-font-size-control)] leading-5 text-[var(--ui-text-secondary)]",
|
|
32458
32472
|
title: e.description
|
|
32459
|
-
}, Q(e.description), 9,
|
|
32473
|
+
}, Q(e.description), 9, S2)) : j("", !0)
|
|
32460
32474
|
]),
|
|
32461
|
-
c.$slots.actions ? (g(), I("div",
|
|
32475
|
+
c.$slots.actions ? (g(), I("div", k2, [
|
|
32462
32476
|
z(c.$slots, "actions")
|
|
32463
32477
|
])) : j("", !0)
|
|
32464
|
-
], 10,
|
|
32478
|
+
], 10, y2));
|
|
32465
32479
|
}
|
|
32466
|
-
}),
|
|
32480
|
+
}), E2 = ["data-width", "data-height", "data-page-surface"], A2 = /* @__PURE__ */ V({
|
|
32467
32481
|
__name: "PageContent",
|
|
32468
32482
|
props: {
|
|
32469
32483
|
width: { default: "fill" },
|
|
@@ -32471,7 +32485,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32471
32485
|
height: { default: "auto" }
|
|
32472
32486
|
},
|
|
32473
32487
|
setup(e) {
|
|
32474
|
-
const t = e, n = C(() => t.height === "fill"), o =
|
|
32488
|
+
const t = e, n = C(() => t.height === "fill"), o = v2(), r = C(() => {
|
|
32475
32489
|
const i = {};
|
|
32476
32490
|
return t.surface !== "none" && (i["--ui-page-gutter-x"] = "var(--ui-page-padding-x)"), o.value && (i["--ui-page-sticky-top"] = `${o.value}px`), Object.keys(i).length ? i : void 0;
|
|
32477
32491
|
}), a = C(() => {
|
|
@@ -32496,20 +32510,20 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32496
32510
|
}, [
|
|
32497
32511
|
z(i.$slots, "default")
|
|
32498
32512
|
], 6)
|
|
32499
|
-
], 14,
|
|
32513
|
+
], 14, E2));
|
|
32500
32514
|
}
|
|
32501
|
-
}),
|
|
32515
|
+
}), P2 = {
|
|
32502
32516
|
key: 0,
|
|
32503
32517
|
class: "ui-section-tabs-actions",
|
|
32504
32518
|
"data-ui-section-tabs-actions": ""
|
|
32505
|
-
},
|
|
32519
|
+
}, O2 = ["aria-label"], T2 = {
|
|
32506
32520
|
key: 0,
|
|
32507
32521
|
class: "ui-section-list-heading"
|
|
32508
|
-
},
|
|
32522
|
+
}, $2 = { class: "ui-section-list-rows" }, I2 = ["disabled", "data-ui-tab-value", "aria-current", "onClick"], D2 = { class: "ui-section-list-label" }, R2 = ["aria-label", "data-overflow-start", "data-overflow-end"], M2 = ["disabled", "data-ui-tab-value", "aria-current", "onClick"], N2 = {
|
|
32509
32523
|
key: 2,
|
|
32510
32524
|
class: "ui-section-tabs-actions",
|
|
32511
32525
|
"data-ui-section-tabs-actions": ""
|
|
32512
|
-
},
|
|
32526
|
+
}, L2 = ["data-state", "data-ui-swapped"], F2 = ["data-ui-swapped"], z2 = /* @__PURE__ */ V({
|
|
32513
32527
|
inheritAttrs: !1,
|
|
32514
32528
|
__name: "SectionTabs",
|
|
32515
32529
|
props: {
|
|
@@ -32558,7 +32572,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32558
32572
|
T && T.label === $.group ? T.items.push($) : k.push({ label: $.group, items: [$] });
|
|
32559
32573
|
}
|
|
32560
32574
|
return k;
|
|
32561
|
-
}), y = /* @__PURE__ */ F(null), w =
|
|
32575
|
+
}), y = /* @__PURE__ */ F(null), w = gz(y, () => r.items, () => r.modelValue), { overflowStart: x, overflowEnd: E } = Db(y, () => r.modelValue), b = CF(() => r.modelValue), _ = {
|
|
32562
32576
|
ArrowRight: (k, $) => (k + 1) % $,
|
|
32563
32577
|
ArrowLeft: (k, $) => (k - 1 + $) % $,
|
|
32564
32578
|
Home: () => 0,
|
|
@@ -32577,7 +32591,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32577
32591
|
class: "ui-section-list",
|
|
32578
32592
|
"data-ui-section-list": ""
|
|
32579
32593
|
}, [
|
|
32580
|
-
k.$slots.actions ? (g(), I("div",
|
|
32594
|
+
k.$slots.actions ? (g(), I("div", P2, [
|
|
32581
32595
|
z(k.$slots, "actions")
|
|
32582
32596
|
])) : j("", !0),
|
|
32583
32597
|
ae("nav", le({
|
|
@@ -32588,8 +32602,8 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32588
32602
|
key: A,
|
|
32589
32603
|
class: "ui-section-list-group"
|
|
32590
32604
|
}, [
|
|
32591
|
-
T.label ? (g(), I("h3",
|
|
32592
|
-
ae("ul",
|
|
32605
|
+
T.label ? (g(), I("h3", T2, Q(T.label), 1)) : j("", !0),
|
|
32606
|
+
ae("ul", $2, [
|
|
32593
32607
|
(g(!0), I(ye, null, Be(T.items, (D) => (g(), I("li", {
|
|
32594
32608
|
key: D.value
|
|
32595
32609
|
}, [
|
|
@@ -32601,19 +32615,19 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32601
32615
|
"aria-current": r.modelValue === D.value ? "page" : void 0,
|
|
32602
32616
|
onClick: (M) => u(D.value)
|
|
32603
32617
|
}, [
|
|
32604
|
-
ae("span",
|
|
32618
|
+
ae("span", D2, Q(D.label), 1),
|
|
32605
32619
|
K(d(Da), {
|
|
32606
32620
|
class: "ui-section-list-chevron",
|
|
32607
32621
|
"aria-hidden": "true"
|
|
32608
32622
|
})
|
|
32609
|
-
], 8,
|
|
32623
|
+
], 8, I2)
|
|
32610
32624
|
]))), 128))
|
|
32611
32625
|
])
|
|
32612
32626
|
]))), 128))
|
|
32613
|
-
], 16,
|
|
32627
|
+
], 16, O2)
|
|
32614
32628
|
], 512)) : (g(), L(ft(k.$slots.actions ? "div" : n), mt(le({ key: 1 }, k.$slots.actions ? { class: "ui-section-tabs-row", "data-ui-section-tabs-row": "", "data-syno-pkg-land-ui": "" } : {})), {
|
|
32615
32629
|
default: R(() => [
|
|
32616
|
-
s.value === "segment" ? (g(), L(
|
|
32630
|
+
s.value === "segment" ? (g(), L(xz, le({
|
|
32617
32631
|
key: 0,
|
|
32618
32632
|
class: "ui-section-tabs-segment",
|
|
32619
32633
|
"model-value": r.modelValue,
|
|
@@ -32623,7 +32637,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32623
32637
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => a("update:modelValue", T))
|
|
32624
32638
|
}), {
|
|
32625
32639
|
default: R(() => [
|
|
32626
|
-
(g(!0), I(ye, null, Be(r.items, (T) => (g(), L(
|
|
32640
|
+
(g(!0), I(ye, null, Be(r.items, (T) => (g(), L(Pz, {
|
|
32627
32641
|
key: T.value,
|
|
32628
32642
|
class: "ui-section-tabs-segment-item",
|
|
32629
32643
|
value: T.value,
|
|
@@ -32659,20 +32673,20 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32659
32673
|
r.modelValue === T.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] enabled:hover:bg-[var(--ui-surface-hover)] enabled:hover:text-[var(--ui-text)]"
|
|
32660
32674
|
]),
|
|
32661
32675
|
onClick: (A) => a("update:modelValue", T.value)
|
|
32662
|
-
}, Q(T.label), 11,
|
|
32676
|
+
}, Q(T.label), 11, M2))), 128)),
|
|
32663
32677
|
ae("span", {
|
|
32664
32678
|
class: "ui-tab-indicator",
|
|
32665
32679
|
style: Ve(d(w)),
|
|
32666
32680
|
"aria-hidden": "true"
|
|
32667
32681
|
}, null, 4)
|
|
32668
|
-
], 16,
|
|
32669
|
-
k.$slots.actions ? (g(), I("div",
|
|
32682
|
+
], 16, R2)),
|
|
32683
|
+
k.$slots.actions ? (g(), I("div", N2, [
|
|
32670
32684
|
z(k.$slots, "actions")
|
|
32671
32685
|
])) : j("", !0)
|
|
32672
32686
|
]),
|
|
32673
32687
|
_: 3
|
|
32674
32688
|
}, 16)),
|
|
32675
|
-
(g(), L(ft(s.value === "list" ?
|
|
32689
|
+
(g(), L(ft(s.value === "list" ? DF : n), mt(xt(h.value)), {
|
|
32676
32690
|
default: R(() => [
|
|
32677
32691
|
r.keepMounted ? (g(!0), I(ye, { key: 0 }, Be(r.items, (T) => (g(), I(ye, {
|
|
32678
32692
|
key: T.value
|
|
@@ -32685,7 +32699,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32685
32699
|
"data-syno-pkg-land-ui": ""
|
|
32686
32700
|
}, [
|
|
32687
32701
|
z(k.$slots, `panel-${T.value}`)
|
|
32688
|
-
], 8,
|
|
32702
|
+
], 8, L2)), [
|
|
32689
32703
|
[Dr, r.modelValue === T.value]
|
|
32690
32704
|
]) : j("", !0)
|
|
32691
32705
|
], 64))), 128)) : k.$slots[`panel-${r.modelValue}`] ? (g(), I("div", {
|
|
@@ -32695,7 +32709,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32695
32709
|
"data-syno-pkg-land-ui": ""
|
|
32696
32710
|
}, [
|
|
32697
32711
|
z(k.$slots, `panel-${r.modelValue}`)
|
|
32698
|
-
], 8,
|
|
32712
|
+
], 8, F2)) : j("", !0)
|
|
32699
32713
|
]),
|
|
32700
32714
|
_: 3
|
|
32701
32715
|
}, 16))
|
|
@@ -32703,7 +32717,7 @@ const v2 = ["data-ui-title-in-bar"], g2 = { class: "min-w-0 flex-auto" }, y2 = {
|
|
|
32703
32717
|
_: 3
|
|
32704
32718
|
}, 16));
|
|
32705
32719
|
}
|
|
32706
|
-
}),
|
|
32720
|
+
}), B2 = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), q2 = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
|
|
32707
32721
|
function ws(e) {
|
|
32708
32722
|
if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
|
|
32709
32723
|
const t = Object.getPrototypeOf(e);
|
|
@@ -32715,18 +32729,18 @@ function _s(e, t) {
|
|
|
32715
32729
|
function ic(e, t, n) {
|
|
32716
32730
|
e[t] = n;
|
|
32717
32731
|
}
|
|
32718
|
-
function
|
|
32732
|
+
function V2(e) {
|
|
32719
32733
|
return Reflect.ownKeys(e).filter((t) => _s(e, t) !== void 0);
|
|
32720
32734
|
}
|
|
32721
32735
|
function sc(e, t) {
|
|
32722
32736
|
const n = { ...e };
|
|
32723
|
-
for (const o of
|
|
32737
|
+
for (const o of V2(t)) {
|
|
32724
32738
|
const r = _s(t, o), a = _s(n, o);
|
|
32725
32739
|
ws(a) && ws(r) ? ic(n, o, sc(a, r)) : ic(n, o, r);
|
|
32726
32740
|
}
|
|
32727
32741
|
return n;
|
|
32728
32742
|
}
|
|
32729
|
-
function
|
|
32743
|
+
function j2(e) {
|
|
32730
32744
|
const t = {};
|
|
32731
32745
|
for (const n of Reflect.ownKeys(e)) {
|
|
32732
32746
|
const o = _s(e, n);
|
|
@@ -32735,15 +32749,15 @@ function q2(e) {
|
|
|
32735
32749
|
return t;
|
|
32736
32750
|
}
|
|
32737
32751
|
function Yb(e, t, n = {}) {
|
|
32738
|
-
const o = Re(
|
|
32752
|
+
const o = Re(q2, null), r = Re(B2, null);
|
|
32739
32753
|
return C(() => {
|
|
32740
32754
|
const a = [n, r?.value?.[e], o?.value?.[e]];
|
|
32741
32755
|
let i = {};
|
|
32742
32756
|
for (const s of a) s && (i = sc(i, s));
|
|
32743
|
-
return sc(i,
|
|
32757
|
+
return sc(i, j2(t));
|
|
32744
32758
|
});
|
|
32745
32759
|
}
|
|
32746
|
-
const
|
|
32760
|
+
const U2 = ["data-layout-direction"], W2 = "16px", K2 = /* @__PURE__ */ V({
|
|
32747
32761
|
__name: "Form",
|
|
32748
32762
|
props: {
|
|
32749
32763
|
rules: {},
|
|
@@ -32761,9 +32775,9 @@ const V2 = ["data-layout-direction"], j2 = "16px", U2 = /* @__PURE__ */ V({
|
|
|
32761
32775
|
spacing: "auto",
|
|
32762
32776
|
fieldWidth: tc,
|
|
32763
32777
|
validateMessageDisplayMode: "popup"
|
|
32764
|
-
}), s = qe("root"), l = $o(s), c = C(() => i.value.direction === "vertical" || i.value.direction === "auto" && l.value > 0 && l.value < qc ? "vertical" : "horizontal"), u = { none: 0, dense: 4, compact: 6, regular: 8, relaxed: 12 }, f =
|
|
32778
|
+
}), s = qe("root"), l = $o(s), c = C(() => i.value.direction === "vertical" || i.value.direction === "auto" && l.value > 0 && l.value < qc ? "vertical" : "horizontal"), u = { none: 0, dense: 4, compact: 6, regular: 8, relaxed: 12 }, f = vz(), p = C(() => {
|
|
32765
32779
|
const U = i.value.spacing ?? "auto";
|
|
32766
|
-
return typeof U == "number" ? `${U}px` : U === "auto" && f.value ?
|
|
32780
|
+
return typeof U == "number" ? `${U}px` : U === "auto" && f.value ? W2 : U === "auto" ? c.value === "horizontal" ? "var(--ui-field-gap)" : "calc(var(--ui-field-gap) + 2px)" : `${u[U]}px`;
|
|
32767
32781
|
}), h = C(() => ({
|
|
32768
32782
|
display: "flex",
|
|
32769
32783
|
flexDirection: "column",
|
|
@@ -32852,9 +32866,9 @@ const V2 = ["data-layout-direction"], j2 = "16px", U2 = /* @__PURE__ */ V({
|
|
|
32852
32866
|
onSubmit: Et(q, ["prevent"])
|
|
32853
32867
|
}, [
|
|
32854
32868
|
z(U.$slots, "default")
|
|
32855
|
-
], 44,
|
|
32869
|
+
], 44, U2));
|
|
32856
32870
|
}
|
|
32857
|
-
}),
|
|
32871
|
+
}), H2 = "blur", Z2 = {
|
|
32858
32872
|
string: "Value must be a string",
|
|
32859
32873
|
number: "Value must be a number",
|
|
32860
32874
|
integer: "Value must be an integer",
|
|
@@ -32867,15 +32881,15 @@ const V2 = ["data-layout-direction"], j2 = "16px", U2 = /* @__PURE__ */ V({
|
|
|
32867
32881
|
function lc(e) {
|
|
32868
32882
|
return e ? Array.isArray(e) ? [...e] : [e] : [];
|
|
32869
32883
|
}
|
|
32870
|
-
function
|
|
32884
|
+
function G2(e, t) {
|
|
32871
32885
|
return e == null ? !0 : t === "array" || Array.isArray(e) ? Array.isArray(e) && e.length === 0 : typeof e == "string" ? e.trim() === "" : !1;
|
|
32872
32886
|
}
|
|
32873
|
-
function
|
|
32887
|
+
function Y2(e) {
|
|
32874
32888
|
if (typeof e == "string" || Array.isArray(e)) return e.length;
|
|
32875
32889
|
if (typeof e == "number") return e;
|
|
32876
32890
|
if (e instanceof Date) return e.getTime();
|
|
32877
32891
|
}
|
|
32878
|
-
function
|
|
32892
|
+
function J2(e, t) {
|
|
32879
32893
|
switch (t) {
|
|
32880
32894
|
case "string":
|
|
32881
32895
|
return typeof e == "string";
|
|
@@ -32900,13 +32914,13 @@ function G2(e, t) {
|
|
|
32900
32914
|
return e instanceof Date && !Number.isNaN(e.getTime());
|
|
32901
32915
|
}
|
|
32902
32916
|
}
|
|
32903
|
-
function
|
|
32917
|
+
function X2(e) {
|
|
32904
32918
|
return typeof e == "object" && e !== null && typeof e.then == "function";
|
|
32905
32919
|
}
|
|
32906
32920
|
function na(e, t) {
|
|
32907
32921
|
return e instanceof Error ? e.message : typeof e == "string" ? e : t("Value does not match the expected format");
|
|
32908
32922
|
}
|
|
32909
|
-
async function
|
|
32923
|
+
async function Q2(e, t, n) {
|
|
32910
32924
|
const o = e.validator ?? e.asyncValidator;
|
|
32911
32925
|
if (!o) return null;
|
|
32912
32926
|
let r = null, a = !1;
|
|
@@ -32919,7 +32933,7 @@ async function J2(e, t, n) {
|
|
|
32919
32933
|
} catch (l) {
|
|
32920
32934
|
return a ? r : na(l, n);
|
|
32921
32935
|
}
|
|
32922
|
-
if (
|
|
32936
|
+
if (X2(s))
|
|
32923
32937
|
try {
|
|
32924
32938
|
const l = await s;
|
|
32925
32939
|
a || (r = l === !0 || l === void 0 || l === null ? null : na(l, n));
|
|
@@ -32929,35 +32943,35 @@ async function J2(e, t, n) {
|
|
|
32929
32943
|
else !a && s !== void 0 && s !== !0 && (r = s === !1 ? e.message ?? n("Value does not match the expected format") : na(s, n));
|
|
32930
32944
|
return r;
|
|
32931
32945
|
}
|
|
32932
|
-
async function
|
|
32946
|
+
async function ej(e, t, n) {
|
|
32933
32947
|
const o = e.transform ? e.transform(t) : t;
|
|
32934
|
-
if (
|
|
32948
|
+
if (G2(o, e.type))
|
|
32935
32949
|
return e.required ? e.message ?? n("Value is required") : null;
|
|
32936
|
-
if (e.type && !
|
|
32937
|
-
const r =
|
|
32938
|
-
return e.len !== void 0 && r !== e.len ? e.message ?? n("Value must be exactly {len} characters", { len: e.len }) : e.min !== void 0 && r !== void 0 && r < e.min ? e.message ?? n("Value must be at least {min}", { min: e.min }) : e.max !== void 0 && r !== void 0 && r > e.max ? e.message ?? n("Value must be at most {max}", { max: e.max }) : e.pattern && (e.pattern.lastIndex = 0, !e.pattern.test(String(o))) ? e.message ?? n("Value does not match the expected format") : e.enum && !e.enum.includes(o) ? e.message ?? n("Value is not one of the allowed options") :
|
|
32950
|
+
if (e.type && !J2(o, e.type)) return e.message ?? n(Z2[e.type]);
|
|
32951
|
+
const r = Y2(o);
|
|
32952
|
+
return e.len !== void 0 && r !== e.len ? e.message ?? n("Value must be exactly {len} characters", { len: e.len }) : e.min !== void 0 && r !== void 0 && r < e.min ? e.message ?? n("Value must be at least {min}", { min: e.min }) : e.max !== void 0 && r !== void 0 && r > e.max ? e.message ?? n("Value must be at most {max}", { max: e.max }) : e.pattern && (e.pattern.lastIndex = 0, !e.pattern.test(String(o))) ? e.message ?? n("Value does not match the expected format") : e.enum && !e.enum.includes(o) ? e.message ?? n("Value is not one of the allowed options") : Q2(e, o, n);
|
|
32939
32953
|
}
|
|
32940
|
-
function
|
|
32954
|
+
function tj(e, t) {
|
|
32941
32955
|
return e.trigger ? Array.isArray(e.trigger) ? e.trigger : [e.trigger] : [t];
|
|
32942
32956
|
}
|
|
32943
|
-
async function
|
|
32944
|
-
const o = n.defaultTrigger ??
|
|
32957
|
+
async function nj(e, t, n = {}) {
|
|
32958
|
+
const o = n.defaultTrigger ?? H2, r = n.trigger ?? null, a = n.text ?? ((i, s) => Rg("en", i, s));
|
|
32945
32959
|
for (const i of lc(t)) {
|
|
32946
|
-
if (r !== null && !
|
|
32947
|
-
const s = await
|
|
32960
|
+
if (r !== null && !tj(i, o).includes(r)) continue;
|
|
32961
|
+
const s = await ej(i, e, a);
|
|
32948
32962
|
if (s) return s;
|
|
32949
32963
|
}
|
|
32950
32964
|
return null;
|
|
32951
32965
|
}
|
|
32952
|
-
const
|
|
32966
|
+
const oj = ["data-direction", "data-inset", "data-status"], rj = ["id", "for"], aj = {
|
|
32953
32967
|
key: 0,
|
|
32954
32968
|
class: "ml-0.5 text-[var(--ui-danger)]",
|
|
32955
32969
|
"aria-hidden": "true"
|
|
32956
|
-
},
|
|
32970
|
+
}, ij = { class: "flex items-start gap-2" }, sj = {
|
|
32957
32971
|
key: 0,
|
|
32958
32972
|
class: "flex min-h-[var(--ui-control-md)] shrink-0 items-center",
|
|
32959
32973
|
"data-field-after": ""
|
|
32960
|
-
},
|
|
32974
|
+
}, lj = ["id"], uj = ["id"], cj = /* @__PURE__ */ V({
|
|
32961
32975
|
__name: "FormItem",
|
|
32962
32976
|
props: {
|
|
32963
32977
|
modelValue: {},
|
|
@@ -33045,12 +33059,12 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33045
33059
|
}), $e = C(() => {
|
|
33046
33060
|
const G = s.value.validateMessageDisplayMode ?? "form";
|
|
33047
33061
|
return G === "form" ? l?.validateMessageDisplayMode ?? "popup" : G;
|
|
33048
|
-
}),
|
|
33062
|
+
}), Fe = C(() => s.value.label !== !1 && (!!s.value.label || !!u.label)), tt = C(() => !!s.value.description || !!u.description), nt = C(() => {
|
|
33049
33063
|
const G = [];
|
|
33050
33064
|
return tt.value && G.push(h.description), he.value && G.push(h.message), G.length ? G.join(" ") : void 0;
|
|
33051
33065
|
}), Ke = C(() => {
|
|
33052
33066
|
const G = _e.value === "vertical" ? { display: "flex", flexDirection: "column", gap: "var(--ui-space-1)" } : { display: "flex", alignItems: "flex-start", columnGap: "var(--ui-label-gap)" }, ue = s.value.indent ?? 0;
|
|
33053
|
-
if (ue && (G.paddingLeft = typeof ue == "number" ? `${ue * 28}px` : ue), s.value.inset && !
|
|
33067
|
+
if (ue && (G.paddingLeft = typeof ue == "number" ? `${ue * 28}px` : ue), s.value.inset && !Fe.value && _e.value === "horizontal") {
|
|
33054
33068
|
const Ce = `calc(${s.value.labelWidth ?? "var(--ui-label-column)"} + var(--ui-label-gap))`;
|
|
33055
33069
|
G.paddingLeft = c ? `max(0px, calc(${Ce} - ${c.indent}))` : Ce;
|
|
33056
33070
|
}
|
|
@@ -33081,7 +33095,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33081
33095
|
if (!ue.length) return null;
|
|
33082
33096
|
const Ce = ++O;
|
|
33083
33097
|
T.value = "validating", a("validating");
|
|
33084
|
-
const Me = await
|
|
33098
|
+
const Me = await nj(x.value, ue, {
|
|
33085
33099
|
trigger: G,
|
|
33086
33100
|
defaultTrigger: s.value.defaultValidateTrigger,
|
|
33087
33101
|
text: o
|
|
@@ -33138,7 +33152,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33138
33152
|
releaseControl: (G) => {
|
|
33139
33153
|
v.value[0] === G && (m.value = h.control), v.value = v.value.filter((ue) => ue !== G);
|
|
33140
33154
|
},
|
|
33141
|
-
labelId: C(() =>
|
|
33155
|
+
labelId: C(() => Fe.value ? h.label : void 0),
|
|
33142
33156
|
setControlId: (G) => {
|
|
33143
33157
|
m.value = G;
|
|
33144
33158
|
},
|
|
@@ -33202,7 +33216,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33202
33216
|
onFocusin: ue[3] || (ue[3] = (Ce) => $e.value === "popup" && se()),
|
|
33203
33217
|
onFocusout: ue[4] || (ue[4] = (Ce) => $e.value === "popup" && fe())
|
|
33204
33218
|
}, [
|
|
33205
|
-
|
|
33219
|
+
Fe.value ? (g(), I("div", {
|
|
33206
33220
|
key: 0,
|
|
33207
33221
|
"data-form-label": "",
|
|
33208
33222
|
style: Ve(Ze.value),
|
|
@@ -33221,13 +33235,13 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33221
33235
|
z(G.$slots, "label", {}, () => [
|
|
33222
33236
|
Oe(Q(d(s).label), 1)
|
|
33223
33237
|
]),
|
|
33224
|
-
d(s).requiredMark ? (g(), I("span",
|
|
33225
|
-
], 8,
|
|
33238
|
+
d(s).requiredMark ? (g(), I("span", aj, "*")) : j("", !0)
|
|
33239
|
+
], 8, rj)
|
|
33226
33240
|
], 6)) : j("", !0),
|
|
33227
33241
|
ae("div", {
|
|
33228
33242
|
class: ce(["relative min-w-0 flex-1", d(s).disableControl ? "opacity-40" : void 0])
|
|
33229
33243
|
}, [
|
|
33230
|
-
ae("div",
|
|
33244
|
+
ae("div", ij, [
|
|
33231
33245
|
z(G.$slots, "before"),
|
|
33232
33246
|
ae("div", {
|
|
33233
33247
|
class: ce(["min-w-0 flex-1", d(s).textOnly && "py-1 break-words text-[length:var(--ui-font-size-control)] leading-5 text-[var(--ui-text)]"]),
|
|
@@ -33236,7 +33250,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33236
33250
|
}, [
|
|
33237
33251
|
z(G.$slots, "default", { field: De })
|
|
33238
33252
|
], 6),
|
|
33239
|
-
G.$slots.after ? (g(), I("div",
|
|
33253
|
+
G.$slots.after ? (g(), I("div", sj, [
|
|
33240
33254
|
z(G.$slots, "after", { classes: yt })
|
|
33241
33255
|
])) : j("", !0)
|
|
33242
33256
|
]),
|
|
@@ -33251,7 +33265,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33251
33265
|
z(G.$slots, "description", {}, () => [
|
|
33252
33266
|
Oe(Q(d(s).description), 1)
|
|
33253
33267
|
])
|
|
33254
|
-
], 10,
|
|
33268
|
+
], 10, lj)) : j("", !0),
|
|
33255
33269
|
he.value ? (g(), I("div", {
|
|
33256
33270
|
key: 1,
|
|
33257
33271
|
id: h.message,
|
|
@@ -33261,9 +33275,9 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33261
33275
|
z(G.$slots, "status", { field: De }, () => [
|
|
33262
33276
|
Oe(Q(he.value), 1)
|
|
33263
33277
|
])
|
|
33264
|
-
], 10,
|
|
33278
|
+
], 10, uj)) : j("", !0)
|
|
33265
33279
|
], 2)
|
|
33266
|
-
], 46,
|
|
33280
|
+
], 46, oj));
|
|
33267
33281
|
}
|
|
33268
33282
|
}), Jb = Fc(() => we({
|
|
33269
33283
|
key: ee(),
|
|
@@ -33277,7 +33291,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33277
33291
|
label: ee(),
|
|
33278
33292
|
value: ee(),
|
|
33279
33293
|
disabled: Ne().optional()
|
|
33280
|
-
}),
|
|
33294
|
+
}), dj = uc.extend({
|
|
33281
33295
|
description: ee().optional()
|
|
33282
33296
|
}), Bh = we({
|
|
33283
33297
|
key: ee(),
|
|
@@ -33286,7 +33300,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33286
33300
|
/** Sets the alignment: DSM keeps every column left; number and date digits get one width. */
|
|
33287
33301
|
type: Ue(["text", "number", "date", "actions"]).optional(),
|
|
33288
33302
|
align: Ue(["left", "center", "right"]).optional()
|
|
33289
|
-
}),
|
|
33303
|
+
}), fj = {
|
|
33290
33304
|
AppRoot: {
|
|
33291
33305
|
props: we({
|
|
33292
33306
|
modalScope: Ue(["document", "app"]).optional()
|
|
@@ -33431,7 +33445,7 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33431
33445
|
RadioGroup: {
|
|
33432
33446
|
props: we({
|
|
33433
33447
|
value: ee().optional(),
|
|
33434
|
-
options: St(
|
|
33448
|
+
options: St(dj),
|
|
33435
33449
|
orientation: Ue(["vertical", "horizontal"]).optional(),
|
|
33436
33450
|
disabled: Ne().optional()
|
|
33437
33451
|
}),
|
|
@@ -33617,21 +33631,21 @@ const tj = ["data-direction", "data-inset", "data-status"], nj = ["id", "for"],
|
|
|
33617
33631
|
props: we({ text: ee().optional() }),
|
|
33618
33632
|
description: "Centered loading state for a page or bounded region."
|
|
33619
33633
|
}
|
|
33620
|
-
},
|
|
33621
|
-
components:
|
|
33634
|
+
}, pj = _A(SA, {
|
|
33635
|
+
components: fj,
|
|
33622
33636
|
actions: {}
|
|
33623
|
-
}),
|
|
33637
|
+
}), hj = {
|
|
33624
33638
|
none: "0",
|
|
33625
33639
|
xs: "var(--ui-space-1)",
|
|
33626
33640
|
sm: "var(--ui-space-2)",
|
|
33627
33641
|
md: "var(--ui-space-3)",
|
|
33628
33642
|
lg: "var(--ui-space-4)"
|
|
33629
|
-
},
|
|
33630
|
-
function
|
|
33643
|
+
}, mj = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch" }, vj = { start: "flex-start", center: "center", end: "flex-end", between: "space-between" };
|
|
33644
|
+
function gj(e) {
|
|
33631
33645
|
return { default: () => e };
|
|
33632
33646
|
}
|
|
33633
33647
|
function cc(e) {
|
|
33634
|
-
return e ?
|
|
33648
|
+
return e ? bz(e) : void 0;
|
|
33635
33649
|
}
|
|
33636
33650
|
function Xb(e) {
|
|
33637
33651
|
return {
|
|
@@ -33640,27 +33654,27 @@ function Xb(e) {
|
|
|
33640
33654
|
children: e.children?.map(Xb)
|
|
33641
33655
|
};
|
|
33642
33656
|
}
|
|
33643
|
-
function
|
|
33657
|
+
function yj(e) {
|
|
33644
33658
|
return e.map((t) => ({ ...t, items: t.items.map(Xb) }));
|
|
33645
33659
|
}
|
|
33646
|
-
const
|
|
33647
|
-
AppRoot: ({ props: e, slots: t }) => ge(
|
|
33648
|
-
AppShell: ({ props: e, slots: t }) => ge(
|
|
33660
|
+
const bj = {
|
|
33661
|
+
AppRoot: ({ props: e, slots: t }) => ge(uV, { modalScope: e.modalScope }, t),
|
|
33662
|
+
AppShell: ({ props: e, slots: t }) => ge(jV, {
|
|
33649
33663
|
sidebarWidth: e.sidebarWidth,
|
|
33650
33664
|
minHeight: e.minHeight,
|
|
33651
33665
|
responsive: e.responsive,
|
|
33652
33666
|
wideLayout: e.wideLayout,
|
|
33653
33667
|
navigation: e.navigation
|
|
33654
33668
|
}, t),
|
|
33655
|
-
ResponsiveView: ({ props: e, slots: t }) => ge(
|
|
33656
|
-
Page: ({ props: e, slots: t }) => ge(
|
|
33657
|
-
PageHeader: ({ props: e, slots: t }) => ge(
|
|
33658
|
-
Toolbar: ({ props: e, slots: t }) => ge(
|
|
33669
|
+
ResponsiveView: ({ props: e, slots: t }) => ge(UV, { mode: e.mode }, t),
|
|
33670
|
+
Page: ({ props: e, slots: t }) => ge(A2, { width: e.width ?? "fill", surface: e.surface }, t),
|
|
33671
|
+
PageHeader: ({ props: e, slots: t }) => ge(C2, e, t),
|
|
33672
|
+
Toolbar: ({ props: e, slots: t }) => ge(m2, e, t),
|
|
33659
33673
|
SidebarNav: ({ props: e, bindings: t, emit: n }) => {
|
|
33660
33674
|
const [o, r] = $n(e.value, t?.value);
|
|
33661
|
-
return ge(
|
|
33675
|
+
return ge(d2, {
|
|
33662
33676
|
modelValue: o,
|
|
33663
|
-
groups:
|
|
33677
|
+
groups: yj(e.groups),
|
|
33664
33678
|
searchable: e.searchable,
|
|
33665
33679
|
collapsible: e.collapsible,
|
|
33666
33680
|
searchPlaceholder: e.searchPlaceholder,
|
|
@@ -33671,7 +33685,7 @@ const gj = {
|
|
|
33671
33685
|
},
|
|
33672
33686
|
Tabs: ({ props: e, bindings: t, emit: n }) => {
|
|
33673
33687
|
const [o, r] = $n(e.value, t?.value);
|
|
33674
|
-
return ge(
|
|
33688
|
+
return ge(z2, {
|
|
33675
33689
|
modelValue: o ?? "",
|
|
33676
33690
|
items: e.items,
|
|
33677
33691
|
ariaLabel: e.ariaLabel,
|
|
@@ -33685,9 +33699,9 @@ const gj = {
|
|
|
33685
33699
|
style: {
|
|
33686
33700
|
display: "flex",
|
|
33687
33701
|
flexDirection: e.direction ?? "column",
|
|
33688
|
-
gap:
|
|
33689
|
-
alignItems:
|
|
33690
|
-
justifyContent:
|
|
33702
|
+
gap: hj[e.gap ?? "md"],
|
|
33703
|
+
alignItems: mj[e.align ?? "stretch"],
|
|
33704
|
+
justifyContent: vj[e.justify ?? "start"],
|
|
33691
33705
|
flexWrap: e.wrap ? "wrap" : "nowrap"
|
|
33692
33706
|
}
|
|
33693
33707
|
}, t),
|
|
@@ -33725,7 +33739,7 @@ const gj = {
|
|
|
33725
33739
|
},
|
|
33726
33740
|
Select: ({ props: e, bindings: t, emit: n }) => {
|
|
33727
33741
|
const [o, r] = $n(e.value, t?.value);
|
|
33728
|
-
return ge(
|
|
33742
|
+
return ge(VL, {
|
|
33729
33743
|
modelValue: o,
|
|
33730
33744
|
options: e.options,
|
|
33731
33745
|
placeholder: e.placeholder,
|
|
@@ -33738,7 +33752,7 @@ const gj = {
|
|
|
33738
33752
|
},
|
|
33739
33753
|
Checkbox: ({ props: e, bindings: t, emit: n }) => {
|
|
33740
33754
|
const [o, r] = $n(e.checked, t?.checked);
|
|
33741
|
-
return ge(
|
|
33755
|
+
return ge(mL, {
|
|
33742
33756
|
modelValue: o ?? !1,
|
|
33743
33757
|
label: e.label,
|
|
33744
33758
|
description: e.description,
|
|
@@ -33750,7 +33764,7 @@ const gj = {
|
|
|
33750
33764
|
},
|
|
33751
33765
|
Switch: ({ props: e, bindings: t, emit: n }) => {
|
|
33752
33766
|
const [o, r] = $n(e.checked, t?.checked);
|
|
33753
|
-
return ge(
|
|
33767
|
+
return ge(yL, {
|
|
33754
33768
|
modelValue: o ?? !1,
|
|
33755
33769
|
label: e.label,
|
|
33756
33770
|
disabled: e.disabled,
|
|
@@ -33761,7 +33775,7 @@ const gj = {
|
|
|
33761
33775
|
},
|
|
33762
33776
|
RadioGroup: ({ props: e, bindings: t, emit: n }) => {
|
|
33763
33777
|
const [o, r] = $n(e.value, t?.value);
|
|
33764
|
-
return ge(
|
|
33778
|
+
return ge(xL, {
|
|
33765
33779
|
modelValue: o,
|
|
33766
33780
|
options: e.options,
|
|
33767
33781
|
orientation: e.orientation,
|
|
@@ -33771,12 +33785,12 @@ const gj = {
|
|
|
33771
33785
|
}
|
|
33772
33786
|
});
|
|
33773
33787
|
},
|
|
33774
|
-
Form: ({ props: e, slots: t, emit: n }) => ge(
|
|
33788
|
+
Form: ({ props: e, slots: t, emit: n }) => ge(K2, {
|
|
33775
33789
|
direction: e.direction,
|
|
33776
33790
|
fieldWidth: e.fieldWidth,
|
|
33777
33791
|
onSubmit: () => n("submit")
|
|
33778
33792
|
}, t),
|
|
33779
|
-
Field: ({ props: e, slots: t }) => ge(
|
|
33793
|
+
Field: ({ props: e, slots: t }) => ge(cj, {
|
|
33780
33794
|
label: e.label,
|
|
33781
33795
|
description: e.description,
|
|
33782
33796
|
help: e.help,
|
|
@@ -33786,7 +33800,7 @@ const gj = {
|
|
|
33786
33800
|
}, t),
|
|
33787
33801
|
SettingsSection: ({ props: e, bindings: t, slots: n, emit: o }) => {
|
|
33788
33802
|
const [r, a] = $n(e.open, t?.open);
|
|
33789
|
-
return ge(
|
|
33803
|
+
return ge(Xz, {
|
|
33790
33804
|
title: e.title,
|
|
33791
33805
|
collapsible: e.collapsible,
|
|
33792
33806
|
open: r,
|
|
@@ -33795,7 +33809,7 @@ const gj = {
|
|
|
33795
33809
|
}
|
|
33796
33810
|
}, n);
|
|
33797
33811
|
},
|
|
33798
|
-
SettingsField: ({ props: e, slots: t }) => ge(
|
|
33812
|
+
SettingsField: ({ props: e, slots: t }) => ge(Fz, {
|
|
33799
33813
|
label: e.label,
|
|
33800
33814
|
description: e.description,
|
|
33801
33815
|
required: e.required,
|
|
@@ -33805,7 +33819,7 @@ const gj = {
|
|
|
33805
33819
|
Surface: ({ props: e, slots: t }) => ge(Tb, e, t),
|
|
33806
33820
|
Card: ({ props: e, bindings: t, slots: n, emit: o }) => {
|
|
33807
33821
|
const [r, a] = $n(e.expanded, t?.expanded);
|
|
33808
|
-
return ge(
|
|
33822
|
+
return ge(qq, {
|
|
33809
33823
|
title: e.title,
|
|
33810
33824
|
layoutType: e.layoutType,
|
|
33811
33825
|
expandable: e.expandable,
|
|
@@ -33816,7 +33830,7 @@ const gj = {
|
|
|
33816
33830
|
}
|
|
33817
33831
|
}, n);
|
|
33818
33832
|
},
|
|
33819
|
-
Callout: ({ props: e, slots: t, emit: n }) => ge(
|
|
33833
|
+
Callout: ({ props: e, slots: t, emit: n }) => ge(PB, {
|
|
33820
33834
|
tone: e.tone,
|
|
33821
33835
|
variant: e.variant,
|
|
33822
33836
|
title: e.title,
|
|
@@ -33826,16 +33840,16 @@ const gj = {
|
|
|
33826
33840
|
fill: e.fill,
|
|
33827
33841
|
onClose: () => n("close")
|
|
33828
33842
|
}, t),
|
|
33829
|
-
EmptyState: ({ props: e, slots: t }) => ge(
|
|
33843
|
+
EmptyState: ({ props: e, slots: t }) => ge(RB, {
|
|
33830
33844
|
title: e.title,
|
|
33831
33845
|
description: e.description,
|
|
33832
33846
|
icon: cc(e.icon)
|
|
33833
33847
|
}, t),
|
|
33834
33848
|
Progress: ({ props: e }) => ge(Ab, e),
|
|
33835
|
-
Badge: ({ props: e }) => ge(
|
|
33849
|
+
Badge: ({ props: e }) => ge(QL, { tone: e.tone }, gj(e.text)),
|
|
33836
33850
|
Dialog: ({ props: e, bindings: t, slots: n, emit: o }) => {
|
|
33837
33851
|
const [r, a] = $n(e.open, t?.open);
|
|
33838
|
-
return ge(
|
|
33852
|
+
return ge(mz, {
|
|
33839
33853
|
open: r ?? !1,
|
|
33840
33854
|
title: e.title,
|
|
33841
33855
|
description: e.description,
|
|
@@ -33852,14 +33866,14 @@ const gj = {
|
|
|
33852
33866
|
t.toolbar ? ge("div", { class: "mb-3 flex flex-wrap items-center gap-2" }, t.toolbar()) : null,
|
|
33853
33867
|
ge(Ih, e)
|
|
33854
33868
|
]),
|
|
33855
|
-
CellText: ({ props: e, emit: t }) => ge(
|
|
33856
|
-
CellStatus: ({ props: e }) => ge(
|
|
33857
|
-
ListItem: ({ props: e, slots: t }) => ge(
|
|
33869
|
+
CellText: ({ props: e, emit: t }) => ge(wq, { ...e, onOpen: () => t("open") }),
|
|
33870
|
+
CellStatus: ({ props: e }) => ge(Cq, e),
|
|
33871
|
+
ListItem: ({ props: e, slots: t }) => ge(Nq, e, t),
|
|
33858
33872
|
InputGroup: ({ slots: e }) => ge(SO, null, e),
|
|
33859
|
-
Loading: ({ props: e }) => ge(
|
|
33860
|
-
}, { registry: qh } = UA(
|
|
33861
|
-
components:
|
|
33862
|
-
}),
|
|
33873
|
+
Loading: ({ props: e }) => ge(iF, { text: e.text })
|
|
33874
|
+
}, { registry: qh } = UA(pj, {
|
|
33875
|
+
components: bj
|
|
33876
|
+
}), wj = /* @__PURE__ */ V({
|
|
33863
33877
|
__name: "SynoJsonRenderer",
|
|
33864
33878
|
props: {
|
|
33865
33879
|
spec: {},
|
|
@@ -33903,18 +33917,18 @@ function qi(e) {
|
|
|
33903
33917
|
return t.overflowX && t.overflowX !== "visible" ? t.overflowX : t.overflow.split(" ")[0] || "visible";
|
|
33904
33918
|
}
|
|
33905
33919
|
const Qb = (e) => e.closest("[data-jr-key]")?.getAttribute("data-jr-key") ?? void 0;
|
|
33906
|
-
function
|
|
33920
|
+
function _j(e, t) {
|
|
33907
33921
|
for (let n = e.parentElement; n && t.contains(n); n = n.parentElement)
|
|
33908
33922
|
if (qi(n) !== "visible") return n;
|
|
33909
33923
|
}
|
|
33910
|
-
function
|
|
33924
|
+
function xj(e, t, n) {
|
|
33911
33925
|
if (e.closest("[inert]")) return;
|
|
33912
33926
|
const o = e.getBoundingClientRect();
|
|
33913
33927
|
if (o.width <= 1) return;
|
|
33914
33928
|
const r = qi(e);
|
|
33915
33929
|
if ((r === "hidden" || r === "clip") && e.scrollWidth > e.clientWidth + 1 && getComputedStyle(e).textOverflow !== "ellipsis")
|
|
33916
33930
|
return { kind: "clipped_content", detail: `content is ${e.scrollWidth - e.clientWidth}px wider than its box and is cut off` };
|
|
33917
|
-
const a =
|
|
33931
|
+
const a = _j(e, t);
|
|
33918
33932
|
if (a) {
|
|
33919
33933
|
if (qi(a) === "auto" || qi(a) === "scroll") return;
|
|
33920
33934
|
const s = a.getBoundingClientRect(), l = Math.max(o.right - s.right, s.left - o.left), c = Qb(a);
|
|
@@ -33923,25 +33937,25 @@ function wj(e, t, n) {
|
|
|
33923
33937
|
const i = Math.max(o.right - n, -o.left);
|
|
33924
33938
|
return i > 1 ? { kind: "outside_viewport", detail: `extends ${Math.round(i)}px past the ${n}px viewport` } : void 0;
|
|
33925
33939
|
}
|
|
33926
|
-
function
|
|
33927
|
-
const n = [...e.querySelectorAll("*")].map((a) => ({ element: a, finding:
|
|
33940
|
+
function Sj(e, t) {
|
|
33941
|
+
const n = [...e.querySelectorAll("*")].map((a) => ({ element: a, finding: xj(a, e, t) })).filter((a) => !!a.finding), o = n.filter((a) => !n.some((i) => i !== a && i.finding.kind === a.finding.kind && a.element.contains(i.element))), r = /* @__PURE__ */ new Map();
|
|
33928
33942
|
for (const { element: a, finding: i } of o) {
|
|
33929
33943
|
const s = Qb(a), l = `${i.kind}:${s ?? ""}`;
|
|
33930
33944
|
r.has(l) || r.set(l, { ...i, key: s });
|
|
33931
33945
|
}
|
|
33932
33946
|
return [...r.values()];
|
|
33933
33947
|
}
|
|
33934
|
-
function
|
|
33948
|
+
function kj(e, t) {
|
|
33935
33949
|
const n = Object.hasOwn(e, t) ? e[t] : t.split(".").reduce((o, r) => o?.[r], e);
|
|
33936
33950
|
return typeof n == "string" ? n : t;
|
|
33937
33951
|
}
|
|
33938
|
-
const
|
|
33939
|
-
async function
|
|
33952
|
+
const Cj = () => new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(e)));
|
|
33953
|
+
async function Ej() {
|
|
33940
33954
|
const e = await (await fetch("/config.json")).json();
|
|
33941
33955
|
GE();
|
|
33942
|
-
const t = document.getElementById("app"), n = ({ key: o }) =>
|
|
33956
|
+
const t = document.getElementById("app"), n = ({ key: o }) => kj(e.messages ?? {}, String(o));
|
|
33943
33957
|
return M0({
|
|
33944
|
-
render: () => ge(
|
|
33945
|
-
}).mount(t), await
|
|
33958
|
+
render: () => ge(wj, { spec: e.spec, state: { ...e.spec.state, ...e.state }, functions: { t: n } })
|
|
33959
|
+
}).mount(t), await Le(), await document.fonts.ready, await Cj(), { issues: () => Sj(t, innerWidth) };
|
|
33946
33960
|
}
|
|
33947
|
-
window.synoPreview =
|
|
33961
|
+
window.synoPreview = Ej();
|