@synopackageland/ui 0.17.2 → 0.17.4
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 +13 -0
- package/README.md +52 -0
- package/dist/components/composite/list-item/ListItem.vue.d.ts +8 -6
- package/dist/components/primitives/refresh-bar/RefreshBar.vue.d.ts +24 -0
- package/dist/i18n/text.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1943 -1865
- package/dist/json-preview/preview.js +413 -395
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/layout-rules.md +1 -1
- package/docs/theme-hooks.md +1 -1
- package/package.json +1 -1
|
@@ -60,13 +60,13 @@ function ov(e) {
|
|
|
60
60
|
}
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function oe(e) {
|
|
64
64
|
let t = "";
|
|
65
65
|
if (Ue(e))
|
|
66
66
|
t = e;
|
|
67
67
|
else if (be(e))
|
|
68
68
|
for (let n = 0; n < e.length; n++) {
|
|
69
|
-
const o =
|
|
69
|
+
const o = oe(e[n]);
|
|
70
70
|
o && (t += o + " ");
|
|
71
71
|
}
|
|
72
72
|
else if (Me(e))
|
|
@@ -77,7 +77,7 @@ function ne(e) {
|
|
|
77
77
|
function dt(e) {
|
|
78
78
|
if (!e) return null;
|
|
79
79
|
let { class: t, style: n } = e;
|
|
80
|
-
return t && !Ue(t) && (e.class =
|
|
80
|
+
return t && !Ue(t) && (e.class = oe(t)), n && (e.style = ze(n)), e;
|
|
81
81
|
}
|
|
82
82
|
const rv = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", iv = /* @__PURE__ */ yl(rv);
|
|
83
83
|
function Hd(e) {
|
|
@@ -2186,10 +2186,10 @@ function og(e) {
|
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
2188
|
u && zu(u, e, "c");
|
|
2189
|
-
function
|
|
2189
|
+
function re(ce, pe) {
|
|
2190
2190
|
be(pe) ? pe.forEach((Fe) => ce(Fe.bind(n))) : pe && ce(pe.bind(n));
|
|
2191
2191
|
}
|
|
2192
|
-
if (
|
|
2192
|
+
if (re(Yv, d), re(Ge, f), re(If, h), re(Pl, m), re(Hv, v), re(Gv, g), re(Rf, T), re(eg, A), re(Qv, x), re(Kt, _), re(rn, b), re(Xv, I), be(F))
|
|
2193
2193
|
if (F.length) {
|
|
2194
2194
|
const ce = e.exposed || (e.exposed = {});
|
|
2195
2195
|
F.forEach((pe) => {
|
|
@@ -3205,12 +3205,12 @@ function kg(e, t) {
|
|
|
3205
3205
|
B
|
|
3206
3206
|
);
|
|
3207
3207
|
if (El(S) && (Y.ctx.renderer = ht), Ig(Y, !1, Q), Y.asyncDep) {
|
|
3208
|
-
if (B && B.registerDep(Y,
|
|
3208
|
+
if (B && B.registerDep(Y, re, Q), !S.el) {
|
|
3209
3209
|
const J = Y.subTree = Z(Wt);
|
|
3210
3210
|
w(null, J, $, z), S.placeholder = J.el;
|
|
3211
3211
|
}
|
|
3212
3212
|
} else
|
|
3213
|
-
|
|
3213
|
+
re(
|
|
3214
3214
|
Y,
|
|
3215
3215
|
S,
|
|
3216
3216
|
$,
|
|
@@ -3229,7 +3229,7 @@ function kg(e, t) {
|
|
|
3229
3229
|
G.next = $, G.update();
|
|
3230
3230
|
else
|
|
3231
3231
|
$.el = S.el, G.vnode = $;
|
|
3232
|
-
},
|
|
3232
|
+
}, re = (S, $, z, G, B, j, Q) => {
|
|
3233
3233
|
const Y = () => {
|
|
3234
3234
|
if (S.isMounted) {
|
|
3235
3235
|
let { next: ae, bu: me, u: _e, parent: H, vnode: ue } = S;
|
|
@@ -3741,7 +3741,7 @@ function rp(e) {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
function E(e, t, n, o, r, i) {
|
|
3743
3743
|
return rp(
|
|
3744
|
-
|
|
3744
|
+
ne(
|
|
3745
3745
|
e,
|
|
3746
3746
|
t,
|
|
3747
3747
|
n,
|
|
@@ -3775,7 +3775,7 @@ const ip = ({ key: e }) => e ?? null, Si = ({
|
|
|
3775
3775
|
ref_key: t,
|
|
3776
3776
|
ref_for: n
|
|
3777
3777
|
}) => (typeof e == "number" && (e = "" + e), e != null ? Ue(e) || /* @__PURE__ */ Ke(e) || Se(e) ? { i: gt, r: e, k: t, f: !!n } : e : null);
|
|
3778
|
-
function
|
|
3778
|
+
function ne(e, t = null, n = null, o = 0, r = null, i = e === xe ? 0 : 1, a = !1, s = !1) {
|
|
3779
3779
|
const l = {
|
|
3780
3780
|
__v_isVNode: !0,
|
|
3781
3781
|
__v_skip: !0,
|
|
@@ -3829,10 +3829,10 @@ function $g(e, t = null, n = null, o = 0, r = null, i = !1) {
|
|
|
3829
3829
|
if (Mg(e) && (e = e.__vccOpts), t) {
|
|
3830
3830
|
t = wt(t);
|
|
3831
3831
|
let { class: s, style: l } = t;
|
|
3832
|
-
s && !Ue(s) && (t.class =
|
|
3832
|
+
s && !Ue(s) && (t.class = oe(s)), Me(l) && (/* @__PURE__ */ fa(l) && !be(l) && (l = st({}, l)), t.style = ze(l));
|
|
3833
3833
|
}
|
|
3834
3834
|
const a = Ue(e) ? 1 : op(e) ? 128 : ha(e) ? 64 : Me(e) ? 4 : Se(e) ? 2 : 0;
|
|
3835
|
-
return
|
|
3835
|
+
return ne(
|
|
3836
3836
|
e,
|
|
3837
3837
|
t,
|
|
3838
3838
|
n,
|
|
@@ -3947,7 +3947,7 @@ function ie(...e) {
|
|
|
3947
3947
|
const o = e[n];
|
|
3948
3948
|
for (const r in o)
|
|
3949
3949
|
if (r === "class")
|
|
3950
|
-
t.class !== o.class && (t.class =
|
|
3950
|
+
t.class !== o.class && (t.class = oe([t.class, o.class]));
|
|
3951
3951
|
else if (r === "style")
|
|
3952
3952
|
t.style = ze([t.style, o.style]);
|
|
3953
3953
|
else if (ea(r)) {
|
|
@@ -9994,8 +9994,8 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
9994
9994
|
), a.push(
|
|
9995
9995
|
"IMPORTANT: `watch` is a top-level field on the element (sibling of type/props/children), NOT inside props. Watchers only fire when the value changes, not on initial render."
|
|
9996
9996
|
), a.push(""));
|
|
9997
|
-
const
|
|
9998
|
-
|
|
9997
|
+
const re = t.editModes;
|
|
9998
|
+
re && re.length > 0 && a.push(Wx({ modes: re })), a.push("RULES:");
|
|
9999
9999
|
const ce = i === "inline" ? [
|
|
10000
10000
|
"When generating UI, wrap all JSONL patches in a ```spec code fence - one JSON object per line inside the fence",
|
|
10001
10001
|
"Write a brief conversational response before any JSONL output",
|
|
@@ -11529,6 +11529,7 @@ const Ok = {
|
|
|
11529
11529
|
"Beta version {version} is available.": "Beta version {version} is available.",
|
|
11530
11530
|
"Could not check for updates.": "Could not check for updates.",
|
|
11531
11531
|
"You have the latest version.": "You have the latest version.",
|
|
11532
|
+
"Could not refresh. Showing previous data": "Could not refresh. Showing previous data",
|
|
11532
11533
|
Retry: "Retry",
|
|
11533
11534
|
"Release notes": "Release notes",
|
|
11534
11535
|
"Terms of Service": "Terms of Service",
|
|
@@ -11697,6 +11698,7 @@ const Ok = {
|
|
|
11697
11698
|
"Beta version {version} is available.": "測試版 {version} 已推出。",
|
|
11698
11699
|
"Could not check for updates.": "無法檢查更新。",
|
|
11699
11700
|
"You have the latest version.": "您已使用最新版本。",
|
|
11701
|
+
"Could not refresh. Showing previous data": "無法更新,顯示的是先前的資料",
|
|
11700
11702
|
Retry: "重試",
|
|
11701
11703
|
"Release notes": "版本說明",
|
|
11702
11704
|
"Terms of Service": "服務條款",
|
|
@@ -11864,6 +11866,7 @@ const Ok = {
|
|
|
11864
11866
|
"Beta version {version} is available.": "测试版 {version} 已推出。",
|
|
11865
11867
|
"Could not check for updates.": "无法检查更新。",
|
|
11866
11868
|
"You have the latest version.": "您已使用最新版本。",
|
|
11869
|
+
"Could not refresh. Showing previous data": "无法更新,显示的是先前的数据",
|
|
11867
11870
|
Retry: "重试",
|
|
11868
11871
|
"Release notes": "发行说明",
|
|
11869
11872
|
"Terms of Service": "服务条款",
|
|
@@ -12031,6 +12034,7 @@ const Ok = {
|
|
|
12031
12034
|
"Beta version {version} is available.": "ベータ版 {version} が利用可能です。",
|
|
12032
12035
|
"Could not check for updates.": "更新を確認できませんでした。",
|
|
12033
12036
|
"You have the latest version.": "最新バージョンをお使いです。",
|
|
12037
|
+
"Could not refresh. Showing previous data": "更新できませんでした。以前のデータを表示しています",
|
|
12034
12038
|
Retry: "再試行",
|
|
12035
12039
|
"Release notes": "リリースノート",
|
|
12036
12040
|
"Terms of Service": "利用規約",
|
|
@@ -12198,6 +12202,7 @@ const Ok = {
|
|
|
12198
12202
|
"Beta version {version} is available.": "베타 버전 {version}을 사용할 수 있습니다.",
|
|
12199
12203
|
"Could not check for updates.": "업데이트를 확인할 수 없습니다.",
|
|
12200
12204
|
"You have the latest version.": "최신 버전을 사용 중입니다.",
|
|
12205
|
+
"Could not refresh. Showing previous data": "새로 고칠 수 없습니다. 이전 데이터를 표시합니다",
|
|
12201
12206
|
Retry: "다시 시도",
|
|
12202
12207
|
"Release notes": "릴리스 노트",
|
|
12203
12208
|
"Terms of Service": "서비스 약관",
|
|
@@ -12365,6 +12370,7 @@ const Ok = {
|
|
|
12365
12370
|
"Beta version {version} is available.": "Beta-Version {version} ist verfügbar.",
|
|
12366
12371
|
"Could not check for updates.": "Updates konnten nicht geprüft werden.",
|
|
12367
12372
|
"You have the latest version.": "Sie verwenden die neueste Version.",
|
|
12373
|
+
"Could not refresh. Showing previous data": "Aktualisierung fehlgeschlagen. Bisherige Daten werden angezeigt",
|
|
12368
12374
|
Retry: "Erneut versuchen",
|
|
12369
12375
|
"Release notes": "Versionshinweise",
|
|
12370
12376
|
"Terms of Service": "Nutzungsbedingungen",
|
|
@@ -12532,6 +12538,7 @@ const Ok = {
|
|
|
12532
12538
|
"Beta version {version} is available.": "La version bêta {version} est disponible.",
|
|
12533
12539
|
"Could not check for updates.": "Impossible de rechercher les mises à jour.",
|
|
12534
12540
|
"You have the latest version.": "Vous utilisez la dernière version.",
|
|
12541
|
+
"Could not refresh. Showing previous data": "Actualisation impossible. Les données précédentes sont affichées",
|
|
12535
12542
|
Retry: "Réessayer",
|
|
12536
12543
|
"Release notes": "Notes de version",
|
|
12537
12544
|
"Terms of Service": "Conditions d’utilisation",
|
|
@@ -12699,6 +12706,7 @@ const Ok = {
|
|
|
12699
12706
|
"Beta version {version} is available.": "La versión beta {version} está disponible.",
|
|
12700
12707
|
"Could not check for updates.": "No se pudieron buscar actualizaciones.",
|
|
12701
12708
|
"You have the latest version.": "Está usando la última versión.",
|
|
12709
|
+
"Could not refresh. Showing previous data": "No se pudo actualizar. Se muestran los datos anteriores",
|
|
12702
12710
|
Retry: "Reintentar",
|
|
12703
12711
|
"Release notes": "Notas de la versión",
|
|
12704
12712
|
"Terms of Service": "Términos del servicio",
|
|
@@ -12866,6 +12874,7 @@ const Ok = {
|
|
|
12866
12874
|
"Beta version {version} is available.": "È disponibile la versione beta {version}.",
|
|
12867
12875
|
"Could not check for updates.": "Impossibile verificare gli aggiornamenti.",
|
|
12868
12876
|
"You have the latest version.": "Stai usando la versione più recente.",
|
|
12877
|
+
"Could not refresh. Showing previous data": "Impossibile aggiornare. Vengono mostrati i dati precedenti",
|
|
12869
12878
|
Retry: "Riprova",
|
|
12870
12879
|
"Release notes": "Note di rilascio",
|
|
12871
12880
|
"Terms of Service": "Termini di servizio",
|
|
@@ -12958,19 +12967,19 @@ const Ek = ["aria-label"], $h = /* @__PURE__ */ D({
|
|
|
12958
12967
|
"--ui-spin-stroke": n.inline ? Math.max(2, 32 / Math.max(1, n.size)) : Math.max(2, 36 / Math.max(1, n.size))
|
|
12959
12968
|
}));
|
|
12960
12969
|
return (r, i) => (y(), E("span", {
|
|
12961
|
-
class:
|
|
12970
|
+
class: oe(["ui-spin", { "ui-spin-inline": p(n).inline }]),
|
|
12962
12971
|
role: "status",
|
|
12963
12972
|
"aria-label": p(n).label,
|
|
12964
12973
|
style: ze(o.value),
|
|
12965
12974
|
"data-syno-pkg-land-ui": ""
|
|
12966
12975
|
}, [...i[0] || (i[0] = [
|
|
12967
|
-
|
|
12976
|
+
ne("svg", {
|
|
12968
12977
|
class: "ui-spin-ring",
|
|
12969
12978
|
viewBox: "0 0 16 16",
|
|
12970
12979
|
"aria-hidden": "true",
|
|
12971
12980
|
focusable: "false"
|
|
12972
12981
|
}, [
|
|
12973
|
-
|
|
12982
|
+
ne("circle", {
|
|
12974
12983
|
class: "ui-spin-arc",
|
|
12975
12984
|
cx: "8",
|
|
12976
12985
|
cy: "8",
|
|
@@ -13047,7 +13056,7 @@ const Dk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13047
13056
|
ref_key: "buttonEl",
|
|
13048
13057
|
ref: s,
|
|
13049
13058
|
type: e.type,
|
|
13050
|
-
class:
|
|
13059
|
+
class: oe(f.value),
|
|
13051
13060
|
disabled: e.disabled || r.value,
|
|
13052
13061
|
"data-disabled": e.disabled || void 0,
|
|
13053
13062
|
"data-loading": r.value || void 0,
|
|
@@ -13061,10 +13070,10 @@ const Dk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13061
13070
|
r.value ? (y(), E("span", Nk, [
|
|
13062
13071
|
Z($h, { size: 16 })
|
|
13063
13072
|
])) : V("", !0),
|
|
13064
|
-
|
|
13073
|
+
ne("span", {
|
|
13065
13074
|
ref_key: "labelEl",
|
|
13066
13075
|
ref: a,
|
|
13067
|
-
class:
|
|
13076
|
+
class: oe(["min-w-0 truncate [&>svg]:inline-block [&>svg]:shrink-0 [&>svg]:align-middle", !l.value && "[&>svg:first-child]:mr-2 [&>svg:not(:first-child)]:ml-2"]),
|
|
13068
13077
|
"data-icon-only": l.value || void 0
|
|
13069
13078
|
}, [
|
|
13070
13079
|
R(h.$slots, "default")
|
|
@@ -13432,7 +13441,7 @@ const SC = {
|
|
|
13432
13441
|
class: "relative inline-flex w-full min-w-0 items-center",
|
|
13433
13442
|
"data-syno-pkg-land-ui": ""
|
|
13434
13443
|
}), [
|
|
13435
|
-
|
|
13444
|
+
ne("input", ie(p(c)(), {
|
|
13436
13445
|
value: e.modelValue,
|
|
13437
13446
|
type: s.value,
|
|
13438
13447
|
name: n.name,
|
|
@@ -13444,7 +13453,7 @@ const SC = {
|
|
|
13444
13453
|
p(d)(v.target.value), o("update:modelValue", v.target.value);
|
|
13445
13454
|
})
|
|
13446
13455
|
}), null, 16, xC),
|
|
13447
|
-
|
|
13456
|
+
ne("button", {
|
|
13448
13457
|
type: "button",
|
|
13449
13458
|
"data-ui-password-toggle": "",
|
|
13450
13459
|
disabled: e.disabled,
|
|
@@ -16381,14 +16390,14 @@ const NA = 50, MA = async (e, t, n) => {
|
|
|
16381
16390
|
}, h = fu(r), m = du(h), v = await a.getDimensions(c), g = h === "y", w = g ? "top" : "left", _ = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", b = i.reference[m] + i.reference[h] - f[h] - i.floating[m], k = f[h] - i.reference[h], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
16382
16391
|
let x = A ? A[C] : 0;
|
|
16383
16392
|
(!x || !await (a.isElement == null ? void 0 : a.isElement(A))) && (x = s.floating[C] || i.floating[m]);
|
|
16384
|
-
const T = b / 2 - k / 2, I = x / 2 - v[m] / 2 - 1, F = oo(d[w], I), W = oo(d[_], I), X = x - v[m] - W, te = x / 2 - v[m] / 2 + T, fe = Gh(F, te, X), K = !l.arrow && dr(r) != null && te !== fe && i.reference[m] / 2 - (te < F ? F : W) - v[m] / 2 < 0,
|
|
16393
|
+
const T = b / 2 - k / 2, I = x / 2 - v[m] / 2 - 1, F = oo(d[w], I), W = oo(d[_], I), X = x - v[m] - W, te = x / 2 - v[m] / 2 + T, fe = Gh(F, te, X), K = !l.arrow && dr(r) != null && te !== fe && i.reference[m] / 2 - (te < F ? F : W) - v[m] / 2 < 0, re = K ? te < F ? te - F : te - X : 0;
|
|
16385
16394
|
return {
|
|
16386
|
-
[h]: f[h] +
|
|
16395
|
+
[h]: f[h] + re,
|
|
16387
16396
|
data: {
|
|
16388
16397
|
[h]: fe,
|
|
16389
|
-
centerOffset: te - fe -
|
|
16398
|
+
centerOffset: te - fe - re,
|
|
16390
16399
|
...K && {
|
|
16391
|
-
alignmentOffset:
|
|
16400
|
+
alignmentOffset: re
|
|
16392
16401
|
}
|
|
16393
16402
|
},
|
|
16394
16403
|
reset: K
|
|
@@ -16444,8 +16453,8 @@ const NA = 50, MA = async (e, t, n) => {
|
|
|
16444
16453
|
placement: K
|
|
16445
16454
|
}
|
|
16446
16455
|
};
|
|
16447
|
-
let
|
|
16448
|
-
if (!
|
|
16456
|
+
let re = (X = F.filter((ce) => ce.overflows[0] <= 0).sort((ce, pe) => ce.overflows[1] - pe.overflows[1])[0]) == null ? void 0 : X.placement;
|
|
16457
|
+
if (!re)
|
|
16449
16458
|
switch (h) {
|
|
16450
16459
|
case "bestFit": {
|
|
16451
16460
|
var te;
|
|
@@ -16458,17 +16467,17 @@ const NA = 50, MA = async (e, t, n) => {
|
|
|
16458
16467
|
}
|
|
16459
16468
|
return !0;
|
|
16460
16469
|
}).map((pe) => [pe.placement, pe.overflows.filter((Fe) => Fe > 0).reduce((Fe, ye) => Fe + ye, 0)]).sort((pe, Fe) => pe[1] - Fe[1])[0]) == null ? void 0 : te[0];
|
|
16461
|
-
ce && (
|
|
16470
|
+
ce && (re = ce);
|
|
16462
16471
|
break;
|
|
16463
16472
|
}
|
|
16464
16473
|
case "initialPlacement":
|
|
16465
|
-
|
|
16474
|
+
re = s;
|
|
16466
16475
|
break;
|
|
16467
16476
|
}
|
|
16468
|
-
if (r !==
|
|
16477
|
+
if (r !== re)
|
|
16469
16478
|
return {
|
|
16470
16479
|
reset: {
|
|
16471
|
-
placement:
|
|
16480
|
+
placement: re
|
|
16472
16481
|
}
|
|
16473
16482
|
};
|
|
16474
16483
|
}
|
|
@@ -17332,7 +17341,7 @@ const SO = ["dir"], im = {
|
|
|
17332
17341
|
positionStrategy: "fixed",
|
|
17333
17342
|
updatePositionStrategy: "optimized",
|
|
17334
17343
|
prioritizePosition: !1
|
|
17335
|
-
}, [
|
|
17344
|
+
}, [AN, xO] = /* @__PURE__ */ We("PopperContent");
|
|
17336
17345
|
var kO = /* @__PURE__ */ D({
|
|
17337
17346
|
inheritAttrs: !1,
|
|
17338
17347
|
__name: "PopperContent",
|
|
@@ -17462,9 +17471,9 @@ var kO = /* @__PURE__ */ D({
|
|
|
17462
17471
|
}),
|
|
17463
17472
|
hO({
|
|
17464
17473
|
...g.value,
|
|
17465
|
-
apply: ({ elements: fe, rects: K, availableWidth:
|
|
17474
|
+
apply: ({ elements: fe, rects: K, availableWidth: re, availableHeight: ce }) => {
|
|
17466
17475
|
const { width: pe, height: Fe } = K.reference, ye = fe.floating.style;
|
|
17467
|
-
ye.setProperty("--reka-popper-available-width", `${
|
|
17476
|
+
ye.setProperty("--reka-popper-available-width", `${re}px`), ye.setProperty("--reka-popper-available-height", `${ce}px`), ye.setProperty("--reka-popper-anchor-width", `${pe}px`), ye.setProperty("--reka-popper-anchor-height", `${Fe}px`);
|
|
17468
17477
|
}
|
|
17469
17478
|
}),
|
|
17470
17479
|
u.value && wO({
|
|
@@ -18156,14 +18165,14 @@ var UO = /* @__PURE__ */ D({
|
|
|
18156
18165
|
Vh(), nu(s.value);
|
|
18157
18166
|
const c = /* @__PURE__ */ M(""), u = /* @__PURE__ */ M(0), d = /* @__PURE__ */ M(0), f = /* @__PURE__ */ M(null), h = /* @__PURE__ */ M("right"), m = /* @__PURE__ */ M(0), v = /* @__PURE__ */ M(null), g = /* @__PURE__ */ M(), { forwardRef: w, currentElement: _ } = we(), { handleTypeaheadSearch: C } = ru(), b = /* @__PURE__ */ M();
|
|
18158
18167
|
function k(K) {
|
|
18159
|
-
const
|
|
18168
|
+
const re = sd(K, b.value || ot(), _.value, {
|
|
18160
18169
|
loop: l.value,
|
|
18161
18170
|
arrowKeyOptions: "vertical",
|
|
18162
18171
|
dir: i?.dir.value,
|
|
18163
18172
|
focus: !1,
|
|
18164
18173
|
attributeName: "[data-reka-collection-item]:not([data-disabled])"
|
|
18165
18174
|
});
|
|
18166
|
-
|
|
18175
|
+
re && (b.value = re, re.scrollIntoView({ block: "nearest" }));
|
|
18167
18176
|
}
|
|
18168
18177
|
function A() {
|
|
18169
18178
|
b.value && b.value.click();
|
|
@@ -18187,7 +18196,7 @@ var UO = /* @__PURE__ */ D({
|
|
|
18187
18196
|
}
|
|
18188
18197
|
function W(K) {
|
|
18189
18198
|
if (K.defaultPrevented) return;
|
|
18190
|
-
const
|
|
18199
|
+
const re = K.target, ce = re.closest("[data-reka-menu-content]") === K.currentTarget, pe = ["input", "textarea"].includes(re.tagName.toLowerCase()), Fe = K.ctrlKey || K.altKey || K.metaKey, ye = K.key.length === 1, Ae = sd(K, ot(), _.value, {
|
|
18191
18200
|
loop: l.value,
|
|
18192
18201
|
arrowKeyOptions: "vertical",
|
|
18193
18202
|
dir: i?.dir.value,
|
|
@@ -18207,8 +18216,8 @@ var UO = /* @__PURE__ */ D({
|
|
|
18207
18216
|
}
|
|
18208
18217
|
function te(K) {
|
|
18209
18218
|
if (!nr(K)) return;
|
|
18210
|
-
const
|
|
18211
|
-
if (K?.currentTarget?.contains(
|
|
18219
|
+
const re = K.target, ce = m.value !== K.clientX;
|
|
18220
|
+
if (K?.currentTarget?.contains(re) && ce) {
|
|
18212
18221
|
const pe = K.clientX > m.value ? "right" : "left";
|
|
18213
18222
|
h.value = pe, m.value = K.clientX;
|
|
18214
18223
|
}
|
|
@@ -18233,31 +18242,31 @@ var UO = /* @__PURE__ */ D({
|
|
|
18233
18242
|
onPointerGraceIntentChange: (K) => {
|
|
18234
18243
|
f.value = K;
|
|
18235
18244
|
}
|
|
18236
|
-
}), (K,
|
|
18245
|
+
}), (K, re) => (y(), N(p(iu), {
|
|
18237
18246
|
"as-child": "",
|
|
18238
18247
|
trapped: p(a),
|
|
18239
18248
|
onMountAutoFocus: F,
|
|
18240
|
-
onUnmountAutoFocus:
|
|
18249
|
+
onUnmountAutoFocus: re[7] || (re[7] = (ce) => o("closeAutoFocus", ce))
|
|
18241
18250
|
}, {
|
|
18242
18251
|
default: P(() => [Z(p($a), {
|
|
18243
18252
|
"as-child": "",
|
|
18244
18253
|
"disable-outside-pointer-events": p(s),
|
|
18245
|
-
onEscapeKeyDown:
|
|
18246
|
-
onPointerDownOutside:
|
|
18247
|
-
onFocusOutside:
|
|
18248
|
-
onInteractOutside:
|
|
18249
|
-
onDismiss:
|
|
18254
|
+
onEscapeKeyDown: re[2] || (re[2] = (ce) => o("escapeKeyDown", ce)),
|
|
18255
|
+
onPointerDownOutside: re[3] || (re[3] = (ce) => o("pointerDownOutside", ce)),
|
|
18256
|
+
onFocusOutside: re[4] || (re[4] = (ce) => o("focusOutside", ce)),
|
|
18257
|
+
onInteractOutside: re[5] || (re[5] = (ce) => o("interactOutside", ce)),
|
|
18258
|
+
onDismiss: re[6] || (re[6] = (ce) => o("dismiss"))
|
|
18250
18259
|
}, {
|
|
18251
18260
|
default: P(() => [Z(p(am), {
|
|
18252
18261
|
ref_key: "rovingFocusGroupRef",
|
|
18253
18262
|
ref: g,
|
|
18254
18263
|
"current-tab-stop-id": v.value,
|
|
18255
|
-
"onUpdate:currentTabStopId":
|
|
18264
|
+
"onUpdate:currentTabStopId": re[0] || (re[0] = (ce) => v.value = ce),
|
|
18256
18265
|
"as-child": "",
|
|
18257
18266
|
orientation: "vertical",
|
|
18258
18267
|
dir: p(i).dir.value,
|
|
18259
18268
|
loop: p(l),
|
|
18260
|
-
onEntryFocus:
|
|
18269
|
+
onEntryFocus: re[1] || (re[1] = (ce) => {
|
|
18261
18270
|
o("entryFocus", ce), p(i).isUsingKeyboardRef.value || ce.preventDefault();
|
|
18262
18271
|
})
|
|
18263
18272
|
}, {
|
|
@@ -18871,7 +18880,7 @@ var HO = /* @__PURE__ */ D({
|
|
|
18871
18880
|
}, 8, ["present"]));
|
|
18872
18881
|
}
|
|
18873
18882
|
}), o$ = n$;
|
|
18874
|
-
const [
|
|
18883
|
+
const [ON, r$] = /* @__PURE__ */ We("MenuGroup");
|
|
18875
18884
|
var i$ = /* @__PURE__ */ D({
|
|
18876
18885
|
__name: "MenuGroup",
|
|
18877
18886
|
props: {
|
|
@@ -20480,7 +20489,7 @@ var pE = /* @__PURE__ */ D({
|
|
|
20480
20489
|
o.onValueChange(i.target.value);
|
|
20481
20490
|
}
|
|
20482
20491
|
return (i, a) => (y(), N(p(lu), { "as-child": "" }, {
|
|
20483
|
-
default: P(() => [
|
|
20492
|
+
default: P(() => [ne("select", ie({
|
|
20484
20493
|
ref_key: "selectElement",
|
|
20485
20494
|
ref: n
|
|
20486
20495
|
}, t, { onInput: r }), [R(i.$slots, "default")], 16)]),
|
|
@@ -20883,7 +20892,7 @@ var kE = /* @__PURE__ */ D({
|
|
|
20883
20892
|
const Ye = b.right - A.right, _t = window.innerWidth - k.right - Ye, It = window.innerWidth - C.right - _t, ht = C.width + It, Wn = Math.max(ht, b.width), S = window.innerWidth - Gt, $ = rd(_t, Gt, Math.max(Gt, S - Wn));
|
|
20884
20893
|
c.value.style.minWidth = `${ht}px`, c.value.style.right = `${$}px`;
|
|
20885
20894
|
}
|
|
20886
|
-
const x = r().map((Ye) => Ye.ref), T = window.innerHeight - Gt * 2, I = f.value.scrollHeight, F = window.getComputedStyle(d.value), W = Number.parseInt(F.borderTopWidth, 10), X = Number.parseInt(F.paddingTop, 10), te = Number.parseInt(F.borderBottomWidth, 10), fe = Number.parseInt(F.paddingBottom, 10), K = W + X + I + fe + te,
|
|
20895
|
+
const x = r().map((Ye) => Ye.ref), T = window.innerHeight - Gt * 2, I = f.value.scrollHeight, F = window.getComputedStyle(d.value), W = Number.parseInt(F.borderTopWidth, 10), X = Number.parseInt(F.paddingTop, 10), te = Number.parseInt(F.borderBottomWidth, 10), fe = Number.parseInt(F.paddingBottom, 10), K = W + X + I + fe + te, re = Math.min(h.value.offsetHeight * 5, K), ce = window.getComputedStyle(f.value), pe = Number.parseInt(ce.paddingTop, 10), Fe = Number.parseInt(ce.paddingBottom, 10), ye = C.top + C.height / 2 - Gt, Ae = T - ye, je = h.value.offsetHeight / 2, ft = h.value.offsetTop + je, ve = W + X + ft, rt = K - ve;
|
|
20887
20896
|
if (ve <= ye) {
|
|
20888
20897
|
const Ye = h.value === x.at(-1);
|
|
20889
20898
|
c.value.style.bottom = "0px";
|
|
@@ -20895,7 +20904,7 @@ var kE = /* @__PURE__ */ D({
|
|
|
20895
20904
|
const It = Math.max(ye, W + f.value.offsetTop + (Ye ? pe : 0) + je) + rt;
|
|
20896
20905
|
c.value.style.height = `${It}px`, f.value.scrollTop = ve - ye + f.value.offsetTop;
|
|
20897
20906
|
}
|
|
20898
|
-
c.value.style.margin = `${Gt}px 0`, c.value.style.minHeight = `${
|
|
20907
|
+
c.value.style.margin = `${Gt}px 0`, c.value.style.minHeight = `${re}px`, c.value.style.maxHeight = `${T}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
|
|
20899
20908
|
}
|
|
20900
20909
|
}
|
|
20901
20910
|
const w = /* @__PURE__ */ M("");
|
|
@@ -22308,12 +22317,12 @@ const vP = ["for"], gP = {
|
|
|
22308
22317
|
c.value ? (y(), E("label", {
|
|
22309
22318
|
key: 0,
|
|
22310
22319
|
for: l.value,
|
|
22311
|
-
class:
|
|
22320
|
+
class: oe(["ui-checkbox-text min-w-0 break-words font-normal [overflow-wrap:anywhere]", n.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
|
|
22312
22321
|
}, [
|
|
22313
22322
|
n.label ? (y(), E("span", gP, ee(n.label), 1)) : V("", !0),
|
|
22314
22323
|
n.description ? (y(), E("span", {
|
|
22315
22324
|
key: 1,
|
|
22316
|
-
class:
|
|
22325
|
+
class: oe(["mt-0.5 block text-[12px] leading-4", n.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
22317
22326
|
}, ee(n.description), 3)) : V("", !0)
|
|
22318
22327
|
], 10, vP)) : V("", !0)
|
|
22319
22328
|
], 16));
|
|
@@ -22379,7 +22388,7 @@ const vP = ["for"], gP = {
|
|
|
22379
22388
|
default: P(() => [
|
|
22380
22389
|
(y(!0), E(xe, null, nt(n.options, (c) => (y(), E("label", {
|
|
22381
22390
|
key: c.value,
|
|
22382
|
-
class:
|
|
22391
|
+
class: oe(["flex min-w-0 items-start gap-[var(--ui-choice-box-gap)] text-[13px] [@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center text-[var(--ui-text)]", n.disabled || c.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
|
|
22383
22392
|
}, [
|
|
22384
22393
|
Z(p(aE), {
|
|
22385
22394
|
value: c.value,
|
|
@@ -22391,11 +22400,11 @@ const vP = ["for"], gP = {
|
|
|
22391
22400
|
]),
|
|
22392
22401
|
_: 1
|
|
22393
22402
|
}, 8, ["value", "disabled"]),
|
|
22394
|
-
|
|
22395
|
-
|
|
22403
|
+
ne("span", _P, [
|
|
22404
|
+
ne("span", SP, ee(c.label), 1),
|
|
22396
22405
|
c.description ? (y(), E("span", {
|
|
22397
22406
|
key: 0,
|
|
22398
|
-
class:
|
|
22407
|
+
class: oe(["mt-0.5 block text-[12px] leading-4", n.disabled || c.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
22399
22408
|
}, ee(c.description), 3)) : V("", !0)
|
|
22400
22409
|
])
|
|
22401
22410
|
], 2))), 128))
|
|
@@ -22580,7 +22589,7 @@ const $P = { key: 0 }, EP = { key: 1 }, PP = { key: 2 }, TP = {
|
|
|
22580
22589
|
}, {
|
|
22581
22590
|
default: P(() => [
|
|
22582
22591
|
u.value ? (y(), E("div", TP, [
|
|
22583
|
-
xo(
|
|
22592
|
+
xo(ne("input", {
|
|
22584
22593
|
ref_key: "searchInput",
|
|
22585
22594
|
ref: s,
|
|
22586
22595
|
"onUpdate:modelValue": T[0] || (T[0] = (I) => i.value = I),
|
|
@@ -22618,10 +22627,10 @@ const $P = { key: 0 }, EP = { key: 1 }, PP = { key: 2 }, TP = {
|
|
|
22618
22627
|
value: F.value,
|
|
22619
22628
|
"text-value": F.label,
|
|
22620
22629
|
disabled: F.disabled,
|
|
22621
|
-
class:
|
|
22630
|
+
class: oe(["relative flex h-8 select-none items-center rounded-[var(--ui-radius-sm)] py-1 pr-8 text-[13px] 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", I.label && I.indent ? "pl-5" : "pl-2.5"])
|
|
22622
22631
|
}, {
|
|
22623
22632
|
default: P(() => [
|
|
22624
|
-
|
|
22633
|
+
ne("span", DP, [
|
|
22625
22634
|
Z(p(jE), null, {
|
|
22626
22635
|
default: P(() => [
|
|
22627
22636
|
Ne(ee(F.label), 1)
|
|
@@ -22824,7 +22833,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
22824
22833
|
align: e.align,
|
|
22825
22834
|
"side-offset": 4,
|
|
22826
22835
|
"collision-padding": 8,
|
|
22827
|
-
class:
|
|
22836
|
+
class: oe(p(Tm)),
|
|
22828
22837
|
"data-ui-tooltip": "",
|
|
22829
22838
|
"data-ui-overflow-tooltip": "",
|
|
22830
22839
|
"data-syno-pkg-land-ui": ""
|
|
@@ -22857,7 +22866,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
22857
22866
|
},
|
|
22858
22867
|
setup(e) {
|
|
22859
22868
|
return (t, n) => (y(), E("span", {
|
|
22860
|
-
class:
|
|
22869
|
+
class: oe([
|
|
22861
22870
|
"inline-flex min-h-5 items-center gap-1.5 rounded-full px-2 py-0.5 text-[12px] font-normal leading-4 tabular-nums",
|
|
22862
22871
|
e.tone === "neutral" && "bg-[var(--ui-neutral-soft)] text-[var(--ui-neutral-text)]",
|
|
22863
22872
|
e.tone === "info" && "bg-[var(--ui-info-soft)] text-[var(--ui-info-text)]",
|
|
@@ -22948,15 +22957,15 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
22948
22957
|
danger: "bg-[var(--ui-danger)]"
|
|
22949
22958
|
}, i = O(() => o.max <= 0 ? 0 : Math.min(100, Math.max(0, o.value / o.max * 100)));
|
|
22950
22959
|
return (a, s) => (y(), E("div", {
|
|
22951
|
-
class:
|
|
22960
|
+
class: oe(p(t).class),
|
|
22952
22961
|
style: ze(p(t).style),
|
|
22953
22962
|
"data-syno-pkg-land-ui": ""
|
|
22954
22963
|
}, [
|
|
22955
22964
|
e.label || e.valueLabel ? (y(), E("div", tT, [
|
|
22956
|
-
|
|
22957
|
-
|
|
22965
|
+
ne("span", null, ee(e.label), 1),
|
|
22966
|
+
ne("span", nT, ee(e.valueLabel ?? `${Math.round(i.value)}%`), 1)
|
|
22958
22967
|
])) : V("", !0),
|
|
22959
|
-
|
|
22968
|
+
ne("div", ie({
|
|
22960
22969
|
class: ["overflow-hidden rounded-full bg-[var(--ui-border-subtle)]", e.size === "sm" ? "h-1" : "h-1.5"],
|
|
22961
22970
|
role: "progressbar",
|
|
22962
22971
|
"aria-valuenow": o.value,
|
|
@@ -22965,8 +22974,8 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
22965
22974
|
"aria-label": e.label,
|
|
22966
22975
|
"data-tone": e.tone
|
|
22967
22976
|
}, n()), [
|
|
22968
|
-
|
|
22969
|
-
class:
|
|
22977
|
+
ne("div", {
|
|
22978
|
+
class: oe(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", r[e.tone]]),
|
|
22970
22979
|
style: ze({ width: `${i.value}%` })
|
|
22971
22980
|
}, null, 6)
|
|
22972
22981
|
], 16, oT)
|
|
@@ -22998,7 +23007,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
22998
23007
|
setup(e) {
|
|
22999
23008
|
const t = Vn();
|
|
23000
23009
|
return (n, o) => (y(), E("div", iT, [
|
|
23001
|
-
|
|
23010
|
+
ne("span", aT, ee(p(t)("Loading…")), 1),
|
|
23002
23011
|
(y(!0), E(xe, null, nt(e.lines, (r) => (y(), N(rT, {
|
|
23003
23012
|
key: r,
|
|
23004
23013
|
"data-ui-skeleton-line": "",
|
|
@@ -23017,7 +23026,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23017
23026
|
setup(e) {
|
|
23018
23027
|
const t = e, n = { none: "", sm: "p-3", md: "p-4", lg: "p-6" }, o = O(() => t.variant === "inset"), r = O(() => t.padding ? n[t.padding] : o.value ? "px-4 py-3" : n.md);
|
|
23019
23028
|
return (i, a) => (y(), E("section", {
|
|
23020
|
-
class:
|
|
23029
|
+
class: oe([
|
|
23021
23030
|
"rounded-[var(--ui-radius-md)]",
|
|
23022
23031
|
o.value ? "bg-[var(--ui-surface-inset)]" : "bg-[var(--ui-surface)]",
|
|
23023
23032
|
e.border && !o.value && "border border-[var(--ui-border-subtle)]",
|
|
@@ -23076,7 +23085,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23076
23085
|
Z(p(xm), {
|
|
23077
23086
|
side: e.side,
|
|
23078
23087
|
"side-offset": 4,
|
|
23079
|
-
class:
|
|
23088
|
+
class: oe(p(Tm)),
|
|
23080
23089
|
"data-ui-tooltip": "",
|
|
23081
23090
|
"data-syno-pkg-land-ui": ""
|
|
23082
23091
|
}, {
|
|
@@ -23151,7 +23160,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23151
23160
|
default: P(() => [
|
|
23152
23161
|
Z(p(K$), {
|
|
23153
23162
|
disabled: u.item.disabled,
|
|
23154
|
-
class:
|
|
23163
|
+
class: oe([
|
|
23155
23164
|
yi,
|
|
23156
23165
|
"data-[state=open]:bg-[var(--ui-primary-soft)]",
|
|
23157
23166
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
@@ -23160,7 +23169,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23160
23169
|
default: P(() => [
|
|
23161
23170
|
i.value ? (y(), E("span", {
|
|
23162
23171
|
key: 0,
|
|
23163
|
-
class:
|
|
23172
|
+
class: oe(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
|
|
23164
23173
|
}, [
|
|
23165
23174
|
u.item.checked ? (y(), N(p(Vo), {
|
|
23166
23175
|
key: 0,
|
|
@@ -23172,7 +23181,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23172
23181
|
"aria-hidden": "true"
|
|
23173
23182
|
})) : V("", !0)
|
|
23174
23183
|
], 2)) : V("", !0),
|
|
23175
|
-
|
|
23184
|
+
ne("span", lT, ee(u.item.label), 1),
|
|
23176
23185
|
u.item.shortcut ? (y(), E("span", uT, ee(u.item.shortcut), 1)) : V("", !0),
|
|
23177
23186
|
Z(p(Ks), {
|
|
23178
23187
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
@@ -23214,7 +23223,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23214
23223
|
key: 2,
|
|
23215
23224
|
"model-value": e.checkedKeys.includes(u.item.key),
|
|
23216
23225
|
disabled: u.item.disabled,
|
|
23217
|
-
class:
|
|
23226
|
+
class: oe([
|
|
23218
23227
|
yi,
|
|
23219
23228
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23220
23229
|
]),
|
|
@@ -23222,7 +23231,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23222
23231
|
onSelect: kt((d) => o("select", u.item.key), ["prevent"])
|
|
23223
23232
|
}, {
|
|
23224
23233
|
default: P(() => [
|
|
23225
|
-
|
|
23234
|
+
ne("span", cT, [
|
|
23226
23235
|
Z(p(Od), null, {
|
|
23227
23236
|
default: P(() => [
|
|
23228
23237
|
Z(p(Vo), {
|
|
@@ -23233,7 +23242,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23233
23242
|
_: 1
|
|
23234
23243
|
})
|
|
23235
23244
|
]),
|
|
23236
|
-
|
|
23245
|
+
ne("span", dT, ee(u.item.label), 1),
|
|
23237
23246
|
u.item.hint ? (y(), E("span", fT, ee(u.item.hint), 1)) : V("", !0),
|
|
23238
23247
|
u.item.shortcut ? (y(), E("span", pT, ee(u.item.shortcut), 1)) : V("", !0)
|
|
23239
23248
|
]),
|
|
@@ -23247,14 +23256,14 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23247
23256
|
key: d.key,
|
|
23248
23257
|
value: d.value,
|
|
23249
23258
|
disabled: d.disabled,
|
|
23250
|
-
class:
|
|
23259
|
+
class: oe([
|
|
23251
23260
|
yi,
|
|
23252
23261
|
d.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23253
23262
|
]),
|
|
23254
23263
|
onSelect: (f) => o("radio", d.value, d.key, u.group)
|
|
23255
23264
|
}, {
|
|
23256
23265
|
default: P(() => [
|
|
23257
|
-
|
|
23266
|
+
ne("span", hT, [
|
|
23258
23267
|
Z(p(Od), null, {
|
|
23259
23268
|
default: P(() => [
|
|
23260
23269
|
e.radioIndicator === "check" ? (y(), N(p(Vo), {
|
|
@@ -23266,7 +23275,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23266
23275
|
_: 1
|
|
23267
23276
|
})
|
|
23268
23277
|
]),
|
|
23269
|
-
|
|
23278
|
+
ne("span", vT, ee(d.label), 1),
|
|
23270
23279
|
d.shortcut ? (y(), E("span", gT, ee(d.shortcut), 1)) : V("", !0)
|
|
23271
23280
|
]),
|
|
23272
23281
|
_: 2
|
|
@@ -23276,7 +23285,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23276
23285
|
}, 1032, ["model-value"])) : (y(), N(p(I$), {
|
|
23277
23286
|
key: 4,
|
|
23278
23287
|
disabled: u.item.disabled,
|
|
23279
|
-
class:
|
|
23288
|
+
class: oe([
|
|
23280
23289
|
yi,
|
|
23281
23290
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23282
23291
|
]),
|
|
@@ -23285,7 +23294,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23285
23294
|
default: P(() => [
|
|
23286
23295
|
i.value ? (y(), E("span", {
|
|
23287
23296
|
key: 0,
|
|
23288
|
-
class:
|
|
23297
|
+
class: oe(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
|
|
23289
23298
|
}, [
|
|
23290
23299
|
u.item.checked ? (y(), N(p(Vo), {
|
|
23291
23300
|
key: 0,
|
|
@@ -23297,7 +23306,7 @@ const Tm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23297
23306
|
"aria-hidden": "true"
|
|
23298
23307
|
})) : V("", !0)
|
|
23299
23308
|
], 2)) : V("", !0),
|
|
23300
|
-
|
|
23309
|
+
ne("span", yT, ee(u.item.label), 1),
|
|
23301
23310
|
u.item.shortcut ? (y(), E("span", bT, ee(u.item.shortcut), 1)) : V("", !0),
|
|
23302
23311
|
u.item.submenu ? (y(), N(p(Ks), {
|
|
23303
23312
|
key: 2,
|
|
@@ -23661,7 +23670,7 @@ const zT = /* @__PURE__ */ D({
|
|
|
23661
23670
|
default: P(() => [
|
|
23662
23671
|
Z(p(oA), {
|
|
23663
23672
|
"data-ui-overlay": "",
|
|
23664
|
-
class:
|
|
23673
|
+
class: oe(["fixed inset-0 z-[1200]", c[p(o).scrim]]),
|
|
23665
23674
|
"data-ui-scrim": p(o).scrim
|
|
23666
23675
|
}, null, 8, ["class", "data-ui-scrim"]),
|
|
23667
23676
|
Z(zT, { host: d.value }, {
|
|
@@ -23694,13 +23703,13 @@ const zT = /* @__PURE__ */ D({
|
|
|
23694
23703
|
T.value ? (y(), E("header", {
|
|
23695
23704
|
key: 0,
|
|
23696
23705
|
ref: "handle",
|
|
23697
|
-
class:
|
|
23706
|
+
class: oe(["flex min-h-10 shrink-0 items-start justify-between gap-4 pr-3", [p(o).headerDivider ? "border-b border-[var(--ui-border-subtle)] py-2.5 pl-5" : "pt-3.5 pb-0 pl-6", p(h) && "cursor-move touch-none select-none"]]),
|
|
23698
23707
|
"data-ui-dialog-header-divider": p(o).headerDivider ? void 0 : "none",
|
|
23699
23708
|
"data-ui-drag-handle": p(h) ? "" : void 0,
|
|
23700
23709
|
onPointerdown: X[1] || (X[1] = //@ts-ignore
|
|
23701
23710
|
(...te) => p(m) && p(m)(...te))
|
|
23702
23711
|
}, [
|
|
23703
|
-
|
|
23712
|
+
ne("div", LT, [
|
|
23704
23713
|
p(o).title ? (y(), N(p(lA), ie({
|
|
23705
23714
|
key: 0,
|
|
23706
23715
|
class: "text-[length:var(--ui-font-size)] leading-5 font-bold text-[var(--ui-text)] [overflow-wrap:anywhere] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]"
|
|
@@ -23741,14 +23750,14 @@ const zT = /* @__PURE__ */ D({
|
|
|
23741
23750
|
x() ? (y(), E("div", {
|
|
23742
23751
|
key: 1,
|
|
23743
23752
|
"data-ui-dialog-body": "",
|
|
23744
|
-
class:
|
|
23753
|
+
class: oe(["min-h-0 flex-1", p(o).flush ? "flex flex-col overflow-hidden" : ["overflow-auto", T.value ? "px-5 py-4" : "px-[30px] pt-6"]]),
|
|
23745
23754
|
"data-ui-dialog-flush": p(o).flush ? "" : void 0
|
|
23746
23755
|
}, [
|
|
23747
23756
|
R(W.$slots, "default")
|
|
23748
23757
|
], 10, VT)) : V("", !0),
|
|
23749
23758
|
W.$slots.footer ? (y(), E("footer", {
|
|
23750
23759
|
key: 2,
|
|
23751
|
-
class:
|
|
23760
|
+
class: oe(["flex shrink-0 flex-wrap items-center justify-end gap-2", T.value ? ["min-h-12 px-5 py-2.5", x() && "border-t border-[var(--ui-border-subtle)]"] : "px-[30px] pt-7 pb-5"])
|
|
23752
23761
|
}, [
|
|
23753
23762
|
Z(qT, { kind: "action" }, {
|
|
23754
23763
|
default: P(() => [
|
|
@@ -23851,7 +23860,7 @@ const HT = ["disabled", "aria-label", "value", "placeholder"], GT = ["disabled",
|
|
|
23851
23860
|
class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text-muted)]",
|
|
23852
23861
|
"aria-hidden": "true"
|
|
23853
23862
|
})),
|
|
23854
|
-
|
|
23863
|
+
ne("input", ie(p(i)(), {
|
|
23855
23864
|
disabled: p(o).disabled,
|
|
23856
23865
|
"aria-label": p(i)()["aria-label"] || (p(i)()["aria-labelledby"] ? void 0 : p(o).placeholder),
|
|
23857
23866
|
value: p(o).modelValue,
|
|
@@ -23924,21 +23933,21 @@ const XT = ["data-direction"], QT = {
|
|
|
23924
23933
|
ref: r,
|
|
23925
23934
|
"data-direction": a.value ? "vertical" : "horizontal",
|
|
23926
23935
|
style: ze(s.value),
|
|
23927
|
-
class:
|
|
23936
|
+
class: oe([
|
|
23928
23937
|
"grid min-h-10 gap-y-1 py-1.5",
|
|
23929
23938
|
n.value === "start" ? "items-start" : "items-center"
|
|
23930
23939
|
]),
|
|
23931
23940
|
"data-syno-pkg-land-ui": ""
|
|
23932
23941
|
}, [
|
|
23933
|
-
|
|
23942
|
+
ne("div", {
|
|
23934
23943
|
"data-settings-label": "",
|
|
23935
|
-
class:
|
|
23944
|
+
class: oe(["min-w-0 break-words [word-break:keep-all] text-left text-[13px] text-[var(--ui-text)]", n.value === "start" && "pt-1"])
|
|
23936
23945
|
}, [
|
|
23937
23946
|
Ne(ee(e.label), 1),
|
|
23938
23947
|
e.required ? (y(), E("span", QT, "*")) : V("", !0)
|
|
23939
23948
|
], 2),
|
|
23940
|
-
|
|
23941
|
-
|
|
23949
|
+
ne("div", eI, [
|
|
23950
|
+
ne("div", {
|
|
23942
23951
|
"data-field-control": "",
|
|
23943
23952
|
style: ze(o.value)
|
|
23944
23953
|
}, [
|
|
@@ -24002,7 +24011,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24002
24011
|
"aria-busy": e.loading || void 0
|
|
24003
24012
|
}, [
|
|
24004
24013
|
e.collapsible ? (y(), E("div", rI, [
|
|
24005
|
-
|
|
24014
|
+
ne("button", {
|
|
24006
24015
|
type: "button",
|
|
24007
24016
|
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)]",
|
|
24008
24017
|
"aria-expanded": p(i),
|
|
@@ -24011,10 +24020,10 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24011
24020
|
(...f) => p(a) && p(a)(...f))
|
|
24012
24021
|
}, [
|
|
24013
24022
|
Z(p(sr), {
|
|
24014
|
-
class:
|
|
24023
|
+
class: oe(["size-4 shrink-0 transition-transform", !p(i) && "-rotate-90"]),
|
|
24015
24024
|
"aria-hidden": "true"
|
|
24016
24025
|
}, null, 8, ["class"]),
|
|
24017
|
-
|
|
24026
|
+
ne("span", aI, [
|
|
24018
24027
|
R(u.$slots, "title", {}, () => [
|
|
24019
24028
|
Ne(ee(e.title), 1)
|
|
24020
24029
|
])
|
|
@@ -24024,7 +24033,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24024
24033
|
R(u.$slots, "actions")
|
|
24025
24034
|
])) : V("", !0)
|
|
24026
24035
|
])) : c.value ? (y(), E("div", lI, [
|
|
24027
|
-
|
|
24036
|
+
ne("span", uI, [
|
|
24028
24037
|
R(u.$slots, "title", {}, () => [
|
|
24029
24038
|
Ne(ee(e.title), 1)
|
|
24030
24039
|
])
|
|
@@ -24033,9 +24042,9 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24033
24042
|
R(u.$slots, "actions")
|
|
24034
24043
|
])) : V("", !0)
|
|
24035
24044
|
])) : V("", !0),
|
|
24036
|
-
xo(
|
|
24045
|
+
xo(ne("div", {
|
|
24037
24046
|
id: p(r),
|
|
24038
|
-
class:
|
|
24047
|
+
class: oe(["ui-settings-section-body", c.value && "pt-3"])
|
|
24039
24048
|
}, [
|
|
24040
24049
|
e.description || u.$slots.description ? (y(), E("p", fI, [
|
|
24041
24050
|
R(u.$slots, "description", {}, () => [
|
|
@@ -24097,8 +24106,8 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24097
24106
|
class: "ui-callout-icon",
|
|
24098
24107
|
"aria-hidden": "true"
|
|
24099
24108
|
})),
|
|
24100
|
-
|
|
24101
|
-
|
|
24109
|
+
ne("div", vI, [
|
|
24110
|
+
ne("div", gI, [
|
|
24102
24111
|
e.title ? (y(), E("div", yI, ee(e.title), 1)) : V("", !0),
|
|
24103
24112
|
l.$slots.default ? (y(), E("div", bI, [
|
|
24104
24113
|
R(l.$slots, "default")
|
|
@@ -24115,7 +24124,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24115
24124
|
}, [
|
|
24116
24125
|
Ne(ee(i.value ? p(o).lessLabel : p(o).moreLabel) + " ", 1),
|
|
24117
24126
|
Z(p(sr), {
|
|
24118
|
-
class:
|
|
24127
|
+
class: oe(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", i.value && "rotate-180"]),
|
|
24119
24128
|
"aria-hidden": "true"
|
|
24120
24129
|
}, null, 8, ["class"])
|
|
24121
24130
|
], 8, _I)) : V("", !0),
|
|
@@ -24175,7 +24184,7 @@ const oI = ["data-collapsible", "aria-busy"], rI = {
|
|
|
24175
24184
|
"aria-hidden": "true"
|
|
24176
24185
|
}))
|
|
24177
24186
|
])) : V("", !0),
|
|
24178
|
-
|
|
24187
|
+
ne("h3", $I, ee(e.title), 1),
|
|
24179
24188
|
e.description ? (y(), E("p", EI, ee(e.description), 1)) : V("", !0),
|
|
24180
24189
|
t.$slots.actions ? (y(), E("div", PI, [
|
|
24181
24190
|
R(t.$slots, "actions")
|
|
@@ -24222,11 +24231,11 @@ const NI = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
|
|
|
24222
24231
|
"data-edge-top": p(a) ? "" : void 0,
|
|
24223
24232
|
"data-edge-bottom": p(s) ? "" : void 0
|
|
24224
24233
|
}, [
|
|
24225
|
-
|
|
24234
|
+
ne("div", {
|
|
24226
24235
|
ref_key: "viewport",
|
|
24227
24236
|
ref: o,
|
|
24228
24237
|
"data-ui-scroll-edges-viewport": "",
|
|
24229
|
-
class:
|
|
24238
|
+
class: oe(e.viewportClass),
|
|
24230
24239
|
style: ze(e.viewportStyle)
|
|
24231
24240
|
}, [
|
|
24232
24241
|
R(l.$slots, "default")
|
|
@@ -24281,13 +24290,13 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24281
24290
|
class: "min-w-0 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
|
|
24282
24291
|
role: "listitem"
|
|
24283
24292
|
}, [
|
|
24284
|
-
|
|
24293
|
+
ne("dl", BI, [
|
|
24285
24294
|
(y(!0), E(xe, null, nt(p(n).columns, (h) => (y(), E("div", {
|
|
24286
24295
|
key: h.key,
|
|
24287
24296
|
class: "grid min-w-0 grid-cols-[minmax(100px,35%)_minmax(0,1fr)] items-start gap-2"
|
|
24288
24297
|
}, [
|
|
24289
|
-
|
|
24290
|
-
|
|
24298
|
+
ne("dt", jI, ee(h.label), 1),
|
|
24299
|
+
ne("dd", UI, [
|
|
24291
24300
|
R(c.$slots, `cell-${h.key}`, {
|
|
24292
24301
|
row: d,
|
|
24293
24302
|
value: d[h.key],
|
|
@@ -24304,8 +24313,8 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24304
24313
|
"viewport-class": "overflow-auto border-y border-[var(--ui-border)]"
|
|
24305
24314
|
}, {
|
|
24306
24315
|
default: P(() => [
|
|
24307
|
-
|
|
24308
|
-
class:
|
|
24316
|
+
ne("table", {
|
|
24317
|
+
class: oe(["w-full border-collapse text-[13px]", a.value && "table-fixed"])
|
|
24309
24318
|
}, [
|
|
24310
24319
|
a.value ? (y(), E("colgroup", WI, [
|
|
24311
24320
|
(y(!0), E(xe, null, nt(p(n).columns, (d) => (y(), E("col", {
|
|
@@ -24313,18 +24322,18 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24313
24322
|
style: ze(d.width ? { width: d.width } : void 0)
|
|
24314
24323
|
}, null, 4))), 128))
|
|
24315
24324
|
])) : V("", !0),
|
|
24316
|
-
|
|
24317
|
-
|
|
24325
|
+
ne("thead", KI, [
|
|
24326
|
+
ne("tr", null, [
|
|
24318
24327
|
(y(!0), E(xe, null, nt(p(n).columns, (d) => (y(), E("th", {
|
|
24319
24328
|
key: d.key,
|
|
24320
|
-
class:
|
|
24329
|
+
class: oe(["border-b border-[var(--ui-border)] px-3 py-2 font-normal", [p(Rd)(d), a.value ? "[overflow-wrap:anywhere]" : "whitespace-nowrap"]]),
|
|
24321
24330
|
"data-column-type": d.type ?? "text"
|
|
24322
24331
|
}, ee(d.label), 11, ZI))), 128))
|
|
24323
24332
|
])
|
|
24324
24333
|
]),
|
|
24325
|
-
|
|
24334
|
+
ne("tbody", null, [
|
|
24326
24335
|
p(n).rows.length === 0 ? (y(), E("tr", HI, [
|
|
24327
|
-
|
|
24336
|
+
ne("td", {
|
|
24328
24337
|
colspan: p(n).columns.length,
|
|
24329
24338
|
class: "px-3 py-10 text-center text-[var(--ui-text-secondary)]"
|
|
24330
24339
|
}, ee(p(n).emptyText), 9, GI)
|
|
@@ -24334,7 +24343,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24334
24343
|
}, [
|
|
24335
24344
|
(y(!0), E(xe, null, nt(p(n).columns, (h) => (y(), E("td", {
|
|
24336
24345
|
key: h.key,
|
|
24337
|
-
class:
|
|
24346
|
+
class: oe([
|
|
24338
24347
|
// The padding only shows in a row a two-line cell makes taller.
|
|
24339
24348
|
"px-3 py-1.5 text-[var(--ui-text)]",
|
|
24340
24349
|
a.value && "[overflow-wrap:anywhere]",
|
|
@@ -24347,7 +24356,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24347
24356
|
h.type === "actions" ? (y(), E("div", {
|
|
24348
24357
|
key: 0,
|
|
24349
24358
|
"data-grid-actions": "",
|
|
24350
|
-
class:
|
|
24359
|
+
class: oe(p(qI))
|
|
24351
24360
|
}, [
|
|
24352
24361
|
R(c.$slots, `cell-${h.key}`, {
|
|
24353
24362
|
row: d,
|
|
@@ -24389,19 +24398,19 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24389
24398
|
return (i, a) => (y(), E("div", {
|
|
24390
24399
|
ref_key: "root",
|
|
24391
24400
|
ref: o,
|
|
24392
|
-
class:
|
|
24401
|
+
class: oe(["flex min-w-0 gap-[var(--ui-space-2)]", e.wrap ? "items-start" : "items-center"]),
|
|
24393
24402
|
"data-layout": e.layout,
|
|
24394
24403
|
"data-wrap": e.wrap ? "" : void 0,
|
|
24395
24404
|
"data-syno-pkg-land-ui": ""
|
|
24396
24405
|
}, [
|
|
24397
24406
|
e.icon ? (y(), N(Nt(e.icon), {
|
|
24398
24407
|
key: 0,
|
|
24399
|
-
class:
|
|
24408
|
+
class: oe(["size-4 shrink-0 text-[var(--ui-text-secondary)]", e.wrap && "mt-0.5"]),
|
|
24400
24409
|
"aria-hidden": "true"
|
|
24401
24410
|
}, null, 8, ["class"])) : V("", !0),
|
|
24402
|
-
|
|
24411
|
+
ne("div", {
|
|
24403
24412
|
"data-ui-cell-lines": "",
|
|
24404
|
-
class:
|
|
24413
|
+
class: oe([
|
|
24405
24414
|
"min-w-0 flex-1",
|
|
24406
24415
|
e.layout === "inline" ? "flex items-baseline gap-x-[var(--ui-space-2)]" : "flex flex-col gap-y-0.5"
|
|
24407
24416
|
])
|
|
@@ -24412,7 +24421,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24412
24421
|
"data-ui-cell-primary": "",
|
|
24413
24422
|
"data-ui-tooltip-hint": e.openLabel,
|
|
24414
24423
|
disabled: e.openDisabled,
|
|
24415
|
-
class:
|
|
24424
|
+
class: oe([r.value, "m-0 -mx-0.5 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-0.5 py-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
|
|
24416
24425
|
onClick: a[0] || (a[0] = (s) => i.$emit("open"))
|
|
24417
24426
|
}, [
|
|
24418
24427
|
R(i.$slots, "default", {}, () => [
|
|
@@ -24421,7 +24430,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24421
24430
|
], 10, XI)) : (y(), E("span", {
|
|
24422
24431
|
key: 1,
|
|
24423
24432
|
"data-ui-cell-primary": "",
|
|
24424
|
-
class:
|
|
24433
|
+
class: oe([r.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
|
|
24425
24434
|
}, [
|
|
24426
24435
|
R(i.$slots, "default", {}, () => [
|
|
24427
24436
|
Ne(ee(e.text), 1)
|
|
@@ -24430,7 +24439,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24430
24439
|
e.secondary || i.$slots.secondary ? (y(), E("span", {
|
|
24431
24440
|
key: 2,
|
|
24432
24441
|
"data-ui-cell-secondary": "",
|
|
24433
|
-
class:
|
|
24442
|
+
class: oe([
|
|
24434
24443
|
"min-w-0 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-text-secondary)]",
|
|
24435
24444
|
r.value,
|
|
24436
24445
|
e.layout === "inline" && "shrink-0"
|
|
@@ -24478,17 +24487,17 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24478
24487
|
return (i, a) => (y(), E("div", {
|
|
24479
24488
|
ref_key: "root",
|
|
24480
24489
|
ref: o,
|
|
24481
|
-
class:
|
|
24490
|
+
class: oe(["flex min-w-0 flex-col gap-0.5", r.value && !(e.detail || i.$slots.detail) && "relative"]),
|
|
24482
24491
|
"data-syno-pkg-land-ui": ""
|
|
24483
24492
|
}, [
|
|
24484
|
-
|
|
24493
|
+
ne("span", eR, [
|
|
24485
24494
|
Z(GP, { tone: e.tone }, null, 8, ["tone"]),
|
|
24486
24495
|
e.description ? (y(), N(Mm, {
|
|
24487
24496
|
key: 0,
|
|
24488
24497
|
content: e.description
|
|
24489
24498
|
}, {
|
|
24490
24499
|
default: P(() => [
|
|
24491
|
-
|
|
24500
|
+
ne("span", tR, ee(e.label), 1)
|
|
24492
24501
|
]),
|
|
24493
24502
|
_: 1
|
|
24494
24503
|
}, 8, ["content"])) : (y(), E("span", nR, ee(e.label), 1))
|
|
@@ -24498,7 +24507,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24498
24507
|
value: e.progress,
|
|
24499
24508
|
"aria-label": e.label,
|
|
24500
24509
|
size: "sm",
|
|
24501
|
-
class:
|
|
24510
|
+
class: oe(["max-w-40", !(e.detail || i.$slots.detail) && "absolute inset-x-0 top-full mt-0.5"])
|
|
24502
24511
|
}, null, 8, ["value", "aria-label", "class"])) : V("", !0),
|
|
24503
24512
|
e.detail || i.$slots.detail ? (y(), E("span", oR, [
|
|
24504
24513
|
R(i.$slots, "detail", {}, () => [
|
|
@@ -24515,25 +24524,29 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24515
24524
|
role: "listitem",
|
|
24516
24525
|
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)]",
|
|
24517
24526
|
"data-syno-pkg-land-ui": ""
|
|
24518
|
-
}, aR = { class: "min-w-60 flex-1
|
|
24527
|
+
}, aR = { class: "flex min-w-60 flex-1 items-start gap-[var(--ui-space-3)]" }, sR = {
|
|
24528
|
+
key: 0,
|
|
24529
|
+
"data-ui-list-item-leading": "",
|
|
24530
|
+
class: "flex shrink-0 items-center"
|
|
24531
|
+
}, lR = { class: "min-w-0 flex-1" }, uR = { class: "flex flex-wrap items-center gap-x-[var(--ui-space-2)] gap-y-1" }, cR = {
|
|
24519
24532
|
"data-ui-list-item-title": "",
|
|
24520
24533
|
class: "font-semibold leading-5 text-[var(--ui-text)]"
|
|
24521
|
-
},
|
|
24534
|
+
}, dR = {
|
|
24522
24535
|
key: 0,
|
|
24523
24536
|
"data-ui-list-item-meta": "",
|
|
24524
24537
|
class: "flex flex-wrap items-center gap-[var(--ui-space-1)]"
|
|
24525
|
-
},
|
|
24538
|
+
}, fR = {
|
|
24526
24539
|
key: 0,
|
|
24527
24540
|
"data-ui-list-item-description": "",
|
|
24528
24541
|
class: "mt-1 leading-5 text-[var(--ui-text-secondary)]"
|
|
24529
|
-
},
|
|
24542
|
+
}, pR = {
|
|
24530
24543
|
key: 1,
|
|
24531
24544
|
class: "mt-1 leading-5"
|
|
24532
|
-
},
|
|
24545
|
+
}, hR = {
|
|
24533
24546
|
key: 0,
|
|
24534
24547
|
"data-ui-list-item-actions": "",
|
|
24535
24548
|
class: "flex shrink-0 flex-wrap items-center gap-[var(--ui-space-2)]"
|
|
24536
|
-
},
|
|
24549
|
+
}, mR = /* @__PURE__ */ D({
|
|
24537
24550
|
__name: "ListItem",
|
|
24538
24551
|
props: {
|
|
24539
24552
|
title: {},
|
|
@@ -24541,35 +24554,40 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24541
24554
|
},
|
|
24542
24555
|
setup(e) {
|
|
24543
24556
|
return (t, n) => (y(), E("div", iR, [
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24557
|
+
ne("div", aR, [
|
|
24558
|
+
t.$slots.leading ? (y(), E("div", sR, [
|
|
24559
|
+
R(t.$slots, "leading")
|
|
24560
|
+
])) : V("", !0),
|
|
24561
|
+
ne("div", lR, [
|
|
24562
|
+
ne("div", uR, [
|
|
24563
|
+
ne("span", cR, [
|
|
24564
|
+
R(t.$slots, "title", {}, () => [
|
|
24565
|
+
Ne(ee(e.title), 1)
|
|
24566
|
+
])
|
|
24567
|
+
]),
|
|
24568
|
+
t.$slots.meta ? (y(), E("span", dR, [
|
|
24569
|
+
R(t.$slots, "meta")
|
|
24570
|
+
])) : V("", !0)
|
|
24550
24571
|
]),
|
|
24551
|
-
t.$slots.
|
|
24552
|
-
R(t.$slots, "
|
|
24572
|
+
e.description || t.$slots.description ? (y(), E("div", fR, [
|
|
24573
|
+
R(t.$slots, "description", {}, () => [
|
|
24574
|
+
Ne(ee(e.description), 1)
|
|
24575
|
+
])
|
|
24576
|
+
])) : V("", !0),
|
|
24577
|
+
t.$slots.default ? (y(), E("div", pR, [
|
|
24578
|
+
R(t.$slots, "default")
|
|
24553
24579
|
])) : V("", !0)
|
|
24554
|
-
])
|
|
24555
|
-
e.description || t.$slots.description ? (y(), E("div", cR, [
|
|
24556
|
-
R(t.$slots, "description", {}, () => [
|
|
24557
|
-
Ne(ee(e.description), 1)
|
|
24558
|
-
])
|
|
24559
|
-
])) : V("", !0),
|
|
24560
|
-
t.$slots.default ? (y(), E("div", dR, [
|
|
24561
|
-
R(t.$slots, "default")
|
|
24562
|
-
])) : V("", !0)
|
|
24580
|
+
])
|
|
24563
24581
|
]),
|
|
24564
|
-
t.$slots.actions ? (y(), E("div",
|
|
24582
|
+
t.$slots.actions ? (y(), E("div", hR, [
|
|
24565
24583
|
R(t.$slots, "actions")
|
|
24566
24584
|
])) : V("", !0)
|
|
24567
24585
|
]));
|
|
24568
24586
|
}
|
|
24569
|
-
}),
|
|
24587
|
+
}), vR = ["id"], gR = {
|
|
24570
24588
|
key: 1,
|
|
24571
24589
|
class: "ml-auto flex shrink-0 items-center gap-1.5"
|
|
24572
|
-
},
|
|
24590
|
+
}, yR = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-label"], bR = ["id", "role", "aria-labelledby"], wR = /* @__PURE__ */ D({
|
|
24573
24591
|
__name: "Card",
|
|
24574
24592
|
props: {
|
|
24575
24593
|
title: {},
|
|
@@ -24608,7 +24626,7 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24608
24626
|
default: P(() => [
|
|
24609
24627
|
e.hasHeader && (d.value || g.$slots["header-actions"] || e.expandable) ? (y(), E("header", {
|
|
24610
24628
|
key: 0,
|
|
24611
|
-
class:
|
|
24629
|
+
class: oe(m.value)
|
|
24612
24630
|
}, [
|
|
24613
24631
|
d.value ? (y(), E("h3", {
|
|
24614
24632
|
key: 0,
|
|
@@ -24618,8 +24636,8 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24618
24636
|
R(g.$slots, "title", {}, () => [
|
|
24619
24637
|
Ne(ee(e.title), 1)
|
|
24620
24638
|
])
|
|
24621
|
-
], 8,
|
|
24622
|
-
g.$slots["header-actions"] || e.expandable ? (y(), E("div",
|
|
24639
|
+
], 8, vR)) : V("", !0),
|
|
24640
|
+
g.$slots["header-actions"] || e.expandable ? (y(), E("div", gR, [
|
|
24623
24641
|
R(g.$slots, "header-actions"),
|
|
24624
24642
|
e.expandable ? (y(), E("button", {
|
|
24625
24643
|
key: 0,
|
|
@@ -24634,27 +24652,27 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24634
24652
|
(..._) => p(u) && p(u)(..._))
|
|
24635
24653
|
}, [
|
|
24636
24654
|
Z(p(sr), {
|
|
24637
|
-
class:
|
|
24655
|
+
class: oe(p(En)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !p(c) && "-rotate-90")),
|
|
24638
24656
|
"aria-hidden": "true"
|
|
24639
24657
|
}, null, 8, ["class"])
|
|
24640
|
-
], 8,
|
|
24658
|
+
], 8, yR)) : V("", !0)
|
|
24641
24659
|
])) : V("", !0)
|
|
24642
24660
|
], 2)) : V("", !0),
|
|
24643
|
-
xo(
|
|
24661
|
+
xo(ne("div", {
|
|
24644
24662
|
id: p(l),
|
|
24645
|
-
class:
|
|
24663
|
+
class: oe(v.value),
|
|
24646
24664
|
role: e.expandable ? "region" : void 0,
|
|
24647
24665
|
"aria-labelledby": e.expandable && d.value ? p(s) : void 0
|
|
24648
24666
|
}, [
|
|
24649
24667
|
e.loading ? (y(), N(Dm, { key: 0 })) : R(g.$slots, "body", {}, () => [
|
|
24650
24668
|
R(g.$slots, "default")
|
|
24651
24669
|
], void 0, 1)
|
|
24652
|
-
], 10,
|
|
24670
|
+
], 10, bR), [
|
|
24653
24671
|
[Ho, h.value]
|
|
24654
24672
|
]),
|
|
24655
24673
|
g.$slots.footer && !e.loading ? (y(), E("footer", {
|
|
24656
24674
|
key: 1,
|
|
24657
|
-
class:
|
|
24675
|
+
class: oe(p(En)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] py-2.5", f.value ? "px-5" : "px-[var(--ui-card-padding,20px)]", r[e.footerAlign]))
|
|
24658
24676
|
}, [
|
|
24659
24677
|
R(g.$slots, "footer")
|
|
24660
24678
|
], 2)) : V("", !0)
|
|
@@ -24662,16 +24680,16 @@ const qI = "-ml-1 flex items-center justify-start gap-1", FI = ["data-ui-data-vi
|
|
|
24662
24680
|
_: 3
|
|
24663
24681
|
}, 8, ["data-layout", "aria-busy"]));
|
|
24664
24682
|
}
|
|
24665
|
-
}),
|
|
24683
|
+
}), _R = /^#([\da-f]{3}|[\da-f]{6})$/i, SR = /^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:\s*[,/]\s*([\d.]+)(%?))?\s*\)$/i;
|
|
24666
24684
|
function ul(e) {
|
|
24667
24685
|
const t = e.trim();
|
|
24668
24686
|
if (t === "transparent") return [0, 0, 0, 0];
|
|
24669
|
-
const n =
|
|
24687
|
+
const n = _R.exec(t)?.[1];
|
|
24670
24688
|
if (n) {
|
|
24671
24689
|
const r = n.length === 3 ? [...n].map((i) => i + i).join("") : n;
|
|
24672
24690
|
return [0, 2, 4].map((i) => parseInt(r.slice(i, i + 2), 16)).concat(1);
|
|
24673
24691
|
}
|
|
24674
|
-
const o =
|
|
24692
|
+
const o = SR.exec(t);
|
|
24675
24693
|
if (o) {
|
|
24676
24694
|
const r = o[4] === void 0 ? 1 : Number(o[4]) / (o[5] ? 100 : 1);
|
|
24677
24695
|
return [Number(o[1]), Number(o[2]), Number(o[3]), r];
|
|
@@ -24688,43 +24706,43 @@ function cl(e, t) {
|
|
|
24688
24706
|
function ys([e, t, n, o], r) {
|
|
24689
24707
|
return [e * (1 - r), t * (1 - r), n * (1 - r), o];
|
|
24690
24708
|
}
|
|
24691
|
-
function
|
|
24709
|
+
function xR([e, t, n, o], r) {
|
|
24692
24710
|
return [e + (255 - e) * r, t + (255 - t) * r, n + (255 - n) * r, o];
|
|
24693
24711
|
}
|
|
24694
|
-
function
|
|
24712
|
+
function kR([e, t, n]) {
|
|
24695
24713
|
const o = (r) => {
|
|
24696
24714
|
const i = r / 255;
|
|
24697
24715
|
return i <= 0.04045 ? i / 12.92 : ((i + 0.055) / 1.055) ** 2.4;
|
|
24698
24716
|
};
|
|
24699
24717
|
return 0.2126 * o(e) + 0.7152 * o(t) + 0.0722 * o(n);
|
|
24700
24718
|
}
|
|
24701
|
-
function
|
|
24702
|
-
const n = cl(t, [255, 255, 255, 1]), [o, r] = [cl(e, n), n].map(
|
|
24719
|
+
function CR(e, t) {
|
|
24720
|
+
const n = cl(t, [255, 255, 255, 1]), [o, r] = [cl(e, n), n].map(kR).sort((i, a) => a - i);
|
|
24703
24721
|
return (o + 0.05) / (r + 0.05);
|
|
24704
24722
|
}
|
|
24705
|
-
const bs = [255, 255, 255, 1],
|
|
24723
|
+
const bs = [255, 255, 255, 1], AR = "#1b1f1c", OR = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], $R = [0.04, 0.08, 0.16, 0.22, 0.28, 0.36, 0.5, 0.7], ER = 0.075, PR = 0.22, TR = 0.55, dl = (e) => ul(Oi(e));
|
|
24706
24724
|
function Nd(e, t, n, o, r) {
|
|
24707
24725
|
for (let i = n; i < 1; i += 0.01) {
|
|
24708
24726
|
const a = dl(t(e, i));
|
|
24709
|
-
if (
|
|
24727
|
+
if (CR(...r(a)) >= o) return a;
|
|
24710
24728
|
}
|
|
24711
24729
|
return t(e, 1);
|
|
24712
24730
|
}
|
|
24713
|
-
function
|
|
24731
|
+
function IR(e, { dark: t = !1 } = {}) {
|
|
24714
24732
|
const n = ul(e);
|
|
24715
24733
|
if (n[3] !== 1) throw new Error(`An accent must be opaque: "${e}"`);
|
|
24716
|
-
const o = Nd(n, ys, 0, 4.5, (u) => [bs, u]), r = t ? ul(
|
|
24717
|
-
return { steps: [...a, o, dl(ys(o,
|
|
24734
|
+
const o = Nd(n, ys, 0, 4.5, (u) => [bs, u]), r = t ? ul(AR) : bs, i = (t ? $R : OR).map((u) => [o[0], o[1], o[2], u]), a = i.map((u) => dl(cl(u, r))), s = (u, d) => Nd(o, t ? xR : ys, d, u, (f) => [f, a[2]]), l = t ? [s(4.5, 0), s(7, 0)] : [s(4.5, PR), s(7, TR)];
|
|
24735
|
+
return { steps: [...a, o, dl(ys(o, ER)), ...l].map(Oi), alpha: i.map(Oi), contrast: Oi(bs) };
|
|
24718
24736
|
}
|
|
24719
|
-
function
|
|
24720
|
-
const { steps: n, alpha: o, contrast: r } =
|
|
24737
|
+
function RR(e, t = {}) {
|
|
24738
|
+
const { steps: n, alpha: o, contrast: r } = IR(e, t);
|
|
24721
24739
|
return Object.fromEntries([
|
|
24722
24740
|
...n.map((i, a) => [`--ui-accent-${a + 1}`, i]),
|
|
24723
24741
|
...o.map((i, a) => [`--ui-accent-a${a + 1}`, i]),
|
|
24724
24742
|
["--ui-accent-contrast", r]
|
|
24725
24743
|
]);
|
|
24726
24744
|
}
|
|
24727
|
-
const
|
|
24745
|
+
const DR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "data-ui-color-scheme", "tabindex"], NR = /* @__PURE__ */ D({
|
|
24728
24746
|
__name: "AppRoot",
|
|
24729
24747
|
props: {
|
|
24730
24748
|
modalScope: { default: "app" },
|
|
@@ -24745,7 +24763,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
24745
24763
|
f && d?.region(f.element), He(qm, f);
|
|
24746
24764
|
const h = { position: "relative", isolation: "isolate", overflow: "hidden" }, m = O(() => ({
|
|
24747
24765
|
...u === "app" ? h : {},
|
|
24748
|
-
...n.accent ?
|
|
24766
|
+
...n.accent ? RR(n.accent, { dark: n.colorScheme === "dark" }) : {}
|
|
24749
24767
|
}));
|
|
24750
24768
|
return de(() => n.modalScope, (v) => {
|
|
24751
24769
|
if (v !== u) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
|
|
@@ -24767,7 +24785,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
24767
24785
|
}, {
|
|
24768
24786
|
default: P(() => [
|
|
24769
24787
|
p(u) === "app" ? (y(), E(xe, { key: 0 }, [
|
|
24770
|
-
|
|
24788
|
+
ne("div", {
|
|
24771
24789
|
ref_key: "background",
|
|
24772
24790
|
ref: l,
|
|
24773
24791
|
"data-ui-background": "",
|
|
@@ -24775,7 +24793,7 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
24775
24793
|
}, [
|
|
24776
24794
|
R(v.$slots, "default")
|
|
24777
24795
|
], 512),
|
|
24778
|
-
|
|
24796
|
+
ne("div", {
|
|
24779
24797
|
ref_key: "portal",
|
|
24780
24798
|
ref: c,
|
|
24781
24799
|
"data-ui-portals": ""
|
|
@@ -24784,9 +24802,9 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
24784
24802
|
]),
|
|
24785
24803
|
_: 3
|
|
24786
24804
|
}, 8, ["teleport-to"])
|
|
24787
|
-
], 12,
|
|
24805
|
+
], 12, DR));
|
|
24788
24806
|
}
|
|
24789
|
-
}),
|
|
24807
|
+
}), MR = ["src"], ws = /* @__PURE__ */ D({
|
|
24790
24808
|
__name: "AppBrand",
|
|
24791
24809
|
props: {
|
|
24792
24810
|
name: {},
|
|
@@ -24811,18 +24829,18 @@ const IR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
24811
24829
|
alt: "",
|
|
24812
24830
|
width: "28",
|
|
24813
24831
|
height: "28"
|
|
24814
|
-
}, null, 8,
|
|
24832
|
+
}, null, 8, MR)) : V("", !0),
|
|
24815
24833
|
e.name ? (y(), E("span", {
|
|
24816
24834
|
key: 1,
|
|
24817
24835
|
"data-ui-brand-name": "",
|
|
24818
|
-
class:
|
|
24836
|
+
class: oe(e.collapsed ? "sr-only" : "min-w-0 truncate")
|
|
24819
24837
|
}, ee(e.name), 3)) : V("", !0)
|
|
24820
24838
|
]),
|
|
24821
24839
|
_: 1
|
|
24822
24840
|
}, 16));
|
|
24823
24841
|
}
|
|
24824
24842
|
}), fl = (e) => Math.round(Math.min(ll, Math.max(sl, e)));
|
|
24825
|
-
function
|
|
24843
|
+
function zR(e) {
|
|
24826
24844
|
try {
|
|
24827
24845
|
const t = JSON.parse(localStorage.getItem(e) ?? "null");
|
|
24828
24846
|
return t && typeof t == "object" ? t : {};
|
|
@@ -24830,8 +24848,8 @@ function NR(e) {
|
|
|
24830
24848
|
return {};
|
|
24831
24849
|
}
|
|
24832
24850
|
}
|
|
24833
|
-
function
|
|
24834
|
-
const t = e ? `${e}:app-sidebar` : void 0, n = t ?
|
|
24851
|
+
function qR(e) {
|
|
24852
|
+
const t = e ? `${e}:app-sidebar` : void 0, n = t ? zR(t) : {}, o = /* @__PURE__ */ M(typeof n.width == "number" && Number.isFinite(n.width) ? fl(n.width) : RI), r = /* @__PURE__ */ M(n.collapsed === !0);
|
|
24835
24853
|
return t && de([o, r], () => {
|
|
24836
24854
|
try {
|
|
24837
24855
|
localStorage.setItem(t, JSON.stringify({ width: o.value, collapsed: r.value }));
|
|
@@ -24839,25 +24857,25 @@ function MR(e) {
|
|
|
24839
24857
|
}
|
|
24840
24858
|
}), { width: o, collapsed: r };
|
|
24841
24859
|
}
|
|
24842
|
-
const
|
|
24860
|
+
const FR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height", "data-ui-mobile-open", "data-ui-motion-ready", "data-ui-sidebar-collapsed", "data-ui-sidebar-resizing"], LR = ["id", "role", "aria-modal", "aria-label", "aria-hidden", "inert"], VR = {
|
|
24843
24861
|
key: 0,
|
|
24844
24862
|
"data-ui-mobile-sidebar-header": ""
|
|
24845
|
-
},
|
|
24863
|
+
}, BR = {
|
|
24846
24864
|
key: 0,
|
|
24847
24865
|
"data-ui-sidebar-brand": ""
|
|
24848
|
-
},
|
|
24866
|
+
}, jR = { key: 1 }, UR = ["aria-label"], WR = {
|
|
24849
24867
|
key: 1,
|
|
24850
24868
|
"data-ui-sidebar-brand": ""
|
|
24851
|
-
},
|
|
24869
|
+
}, KR = { "data-ui-sidebar-body": "" }, ZR = {
|
|
24852
24870
|
key: 2,
|
|
24853
24871
|
"data-ui-sidebar-footer": ""
|
|
24854
|
-
},
|
|
24872
|
+
}, HR = ["aria-label", "title", "aria-expanded", "aria-controls"], GR = ["aria-label", "aria-controls", "aria-valuemin", "aria-valuemax", "aria-valuenow"], JR = ["inert"], YR = {
|
|
24855
24873
|
key: 0,
|
|
24856
24874
|
"data-ui-mobile-navigation": ""
|
|
24857
|
-
},
|
|
24875
|
+
}, XR = ["aria-label", "aria-expanded", "aria-controls"], QR = {
|
|
24858
24876
|
key: 0,
|
|
24859
24877
|
"data-ui-sidebar-brand": ""
|
|
24860
|
-
},
|
|
24878
|
+
}, eD = { key: 1 }, Md = 16, tD = /* @__PURE__ */ D({
|
|
24861
24879
|
__name: "AppLayout",
|
|
24862
24880
|
props: {
|
|
24863
24881
|
sidebarWidth: { default: void 0 },
|
|
@@ -24889,7 +24907,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
24889
24907
|
});
|
|
24890
24908
|
const _ = O(() => h.value === "web"), C = O(() => n.navigation === "top" && !m.value);
|
|
24891
24909
|
He(Wm, C);
|
|
24892
|
-
const b =
|
|
24910
|
+
const b = qR(n.sidebarStorageKey), k = O(() => _.value && !C.value && b.collapsed.value);
|
|
24893
24911
|
He(Um, k);
|
|
24894
24912
|
const A = O(() => _.value && !C.value && !k.value && n.sidebarWidth === void 0), x = O(() => k.value ? "var(--ui-web-sidebar-collapsed-width, 64px)" : n.sidebarWidth !== void 0 ? n.sidebarWidth : _.value ? `${b.width.value}px` : "var(--ui-sidebar-width)"), T = /* @__PURE__ */ M({});
|
|
24895
24913
|
Ge(() => {
|
|
@@ -24912,15 +24930,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
24912
24930
|
rt !== void 0 && (ve.preventDefault(), b.width.value = fl(rt));
|
|
24913
24931
|
}
|
|
24914
24932
|
const K = /* @__PURE__ */ M(!1);
|
|
24915
|
-
let
|
|
24933
|
+
let re = { x: 0, width: 0 };
|
|
24916
24934
|
function ce(ve) {
|
|
24917
|
-
b.width.value = fl(
|
|
24935
|
+
b.width.value = fl(re.width + ve.clientX - re.x);
|
|
24918
24936
|
}
|
|
24919
24937
|
function pe() {
|
|
24920
24938
|
K.value = !1, document.removeEventListener("pointermove", ce), document.removeEventListener("pointerup", pe), document.removeEventListener("pointercancel", pe);
|
|
24921
24939
|
}
|
|
24922
24940
|
function Fe(ve) {
|
|
24923
|
-
ve.button === 0 && (ve.preventDefault(),
|
|
24941
|
+
ve.button === 0 && (ve.preventDefault(), re = { x: ve.clientX, width: b.width.value }, K.value = !0, document.addEventListener("pointermove", ce), document.addEventListener("pointerup", pe), document.addEventListener("pointercancel", pe));
|
|
24924
24942
|
}
|
|
24925
24943
|
Kt(pe);
|
|
24926
24944
|
function ye(ve = !1) {
|
|
@@ -24951,7 +24969,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
24951
24969
|
return (ve, rt) => (y(), E("section", {
|
|
24952
24970
|
ref_key: "root",
|
|
24953
24971
|
ref: c,
|
|
24954
|
-
class:
|
|
24972
|
+
class: oe(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", [
|
|
24955
24973
|
ve.$slots.sidebar && !m.value && !C.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1",
|
|
24956
24974
|
n.height === "fill" && "h-full grid-rows-[minmax(0,1fr)]"
|
|
24957
24975
|
]]),
|
|
@@ -24986,8 +25004,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
24986
25004
|
inert: m.value && !v.value,
|
|
24987
25005
|
onClick: je
|
|
24988
25006
|
}, [
|
|
24989
|
-
m.value ? (y(), E("div",
|
|
24990
|
-
F.value ? (y(), E("div",
|
|
25007
|
+
m.value ? (y(), E("div", VR, [
|
|
25008
|
+
F.value ? (y(), E("div", BR, [
|
|
24991
25009
|
R(ve.$slots, "brand", {}, () => [
|
|
24992
25010
|
Z(ws, {
|
|
24993
25011
|
interactive: i(),
|
|
@@ -24996,8 +25014,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
24996
25014
|
icon: I.value.icon
|
|
24997
25015
|
}, null, 8, ["interactive", "name", "icon"])
|
|
24998
25016
|
])
|
|
24999
|
-
])) : (y(), E("span",
|
|
25000
|
-
|
|
25017
|
+
])) : (y(), E("span", jR, ee(p(l)("Application navigation")), 1)),
|
|
25018
|
+
ne("button", {
|
|
25001
25019
|
"data-ui-close-navigation": "",
|
|
25002
25020
|
type: "button",
|
|
25003
25021
|
"aria-label": p(l)("Close"),
|
|
@@ -25007,9 +25025,9 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25007
25025
|
size: 20,
|
|
25008
25026
|
"aria-hidden": "true"
|
|
25009
25027
|
})
|
|
25010
|
-
], 8,
|
|
25028
|
+
], 8, UR)
|
|
25011
25029
|
])) : V("", !0),
|
|
25012
|
-
W.value ? (y(), E("div",
|
|
25030
|
+
W.value ? (y(), E("div", WR, [
|
|
25013
25031
|
R(ve.$slots, "brand", {}, () => [
|
|
25014
25032
|
Z(ws, {
|
|
25015
25033
|
interactive: i(),
|
|
@@ -25020,10 +25038,10 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25020
25038
|
}, null, 8, ["interactive", "name", "icon", "collapsed"])
|
|
25021
25039
|
])
|
|
25022
25040
|
])) : V("", !0),
|
|
25023
|
-
|
|
25041
|
+
ne("div", KR, [
|
|
25024
25042
|
R(ve.$slots, "sidebar")
|
|
25025
25043
|
]),
|
|
25026
|
-
X.value ? (y(), E("div",
|
|
25044
|
+
X.value ? (y(), E("div", ZR, [
|
|
25027
25045
|
R(ve.$slots, "sidebar-footer"),
|
|
25028
25046
|
_.value && !C.value ? (y(), E("button", {
|
|
25029
25047
|
key: 0,
|
|
@@ -25039,7 +25057,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25039
25057
|
size: 18,
|
|
25040
25058
|
"aria-hidden": "true"
|
|
25041
25059
|
}))
|
|
25042
|
-
], 8,
|
|
25060
|
+
], 8, HR)) : V("", !0)
|
|
25043
25061
|
])) : V("", !0),
|
|
25044
25062
|
A.value ? (y(), E("div", {
|
|
25045
25063
|
key: 3,
|
|
@@ -25054,15 +25072,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25054
25072
|
"aria-valuenow": p(b).width.value,
|
|
25055
25073
|
onKeydown: fe,
|
|
25056
25074
|
onPointerdown: Fe
|
|
25057
|
-
}, null, 40,
|
|
25058
|
-
], 8,
|
|
25059
|
-
|
|
25075
|
+
}, null, 40, GR)) : V("", !0)
|
|
25076
|
+
], 8, LR)) : V("", !0),
|
|
25077
|
+
ne("div", {
|
|
25060
25078
|
"data-ui-layout-main": "",
|
|
25061
25079
|
class: "flex min-h-0 min-w-0 flex-col bg-[var(--ui-surface)]",
|
|
25062
25080
|
inert: m.value && v.value
|
|
25063
25081
|
}, [
|
|
25064
|
-
m.value && ve.$slots.sidebar ? (y(), E("div",
|
|
25065
|
-
|
|
25082
|
+
m.value && ve.$slots.sidebar ? (y(), E("div", YR, [
|
|
25083
|
+
ne("button", {
|
|
25066
25084
|
ref_key: "menuTrigger",
|
|
25067
25085
|
ref: d,
|
|
25068
25086
|
"data-ui-mobile-menu": "",
|
|
@@ -25076,8 +25094,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25076
25094
|
size: 20,
|
|
25077
25095
|
"aria-hidden": "true"
|
|
25078
25096
|
})
|
|
25079
|
-
], 8,
|
|
25080
|
-
F.value ? (y(), E("div",
|
|
25097
|
+
], 8, XR),
|
|
25098
|
+
F.value ? (y(), E("div", QR, [
|
|
25081
25099
|
R(ve.$slots, "brand", {}, () => [
|
|
25082
25100
|
Z(ws, {
|
|
25083
25101
|
interactive: i(),
|
|
@@ -25086,19 +25104,19 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25086
25104
|
icon: I.value.icon
|
|
25087
25105
|
}, null, 8, ["interactive", "name", "icon"])
|
|
25088
25106
|
])
|
|
25089
|
-
])) : (y(), E("span",
|
|
25107
|
+
])) : (y(), E("span", eD, ee(p(l)("Application navigation")), 1))
|
|
25090
25108
|
])) : V("", !0),
|
|
25091
25109
|
R(ve.$slots, "toolbar"),
|
|
25092
|
-
|
|
25093
|
-
class:
|
|
25110
|
+
ne("main", {
|
|
25111
|
+
class: oe(["min-h-0 flex-1", n.height === "fill" && "flex flex-col overflow-y-auto"])
|
|
25094
25112
|
}, [
|
|
25095
25113
|
R(ve.$slots, "default")
|
|
25096
25114
|
], 2),
|
|
25097
25115
|
R(ve.$slots, "footer")
|
|
25098
|
-
], 8,
|
|
25099
|
-
], 46,
|
|
25116
|
+
], 8, JR)
|
|
25117
|
+
], 46, FR));
|
|
25100
25118
|
}
|
|
25101
|
-
}),
|
|
25119
|
+
}), nD = /* @__PURE__ */ D({
|
|
25102
25120
|
__name: "ResponsiveView",
|
|
25103
25121
|
props: {
|
|
25104
25122
|
mode: { default: "auto" }
|
|
@@ -25110,7 +25128,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25110
25128
|
});
|
|
25111
25129
|
return (i, a) => R(i.$slots, r.value);
|
|
25112
25130
|
}
|
|
25113
|
-
}),
|
|
25131
|
+
}), oD = /* @__PURE__ */ D({
|
|
25114
25132
|
__name: "AppSidebarTip",
|
|
25115
25133
|
props: {
|
|
25116
25134
|
label: {},
|
|
@@ -25128,20 +25146,20 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25128
25146
|
_: 3
|
|
25129
25147
|
}, 8, ["content"])) : R(t.$slots, "default", {}, void 0, void 0, 1);
|
|
25130
25148
|
}
|
|
25131
|
-
}),
|
|
25149
|
+
}), rD = ["data-nav-toggle", "data-nav-item", "disabled", "aria-current", "aria-expanded", "onClick"], iD = {
|
|
25132
25150
|
key: 1,
|
|
25133
25151
|
"data-nav-badge": "",
|
|
25134
25152
|
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)]"
|
|
25135
|
-
},
|
|
25153
|
+
}, aD = ["disabled", "aria-current", "onClick"], sD = {
|
|
25136
25154
|
key: 0,
|
|
25137
25155
|
"data-nav-chevron-spacer": "",
|
|
25138
25156
|
class: "size-3.5 shrink-0",
|
|
25139
25157
|
"aria-hidden": "true"
|
|
25140
|
-
},
|
|
25158
|
+
}, lD = {
|
|
25141
25159
|
key: 2,
|
|
25142
25160
|
"data-nav-badge": "",
|
|
25143
25161
|
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)]"
|
|
25144
|
-
},
|
|
25162
|
+
}, uD = ["aria-label"], zd = "min-w-0 flex-1 [overflow-wrap:anywhere] [text-wrap:pretty]", cD = /* @__PURE__ */ D({
|
|
25145
25163
|
name: "AppSidebarItems",
|
|
25146
25164
|
__name: "AppSidebarItems",
|
|
25147
25165
|
props: {
|
|
@@ -25163,7 +25181,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25163
25181
|
return y(!0), E(xe, null, nt(e.items, (m) => (y(), E(xe, {
|
|
25164
25182
|
key: m.key
|
|
25165
25183
|
}, [
|
|
25166
|
-
a(m) ? V("", !0) : (y(), N(
|
|
25184
|
+
a(m) ? V("", !0) : (y(), N(oD, {
|
|
25167
25185
|
key: 0,
|
|
25168
25186
|
label: m.label,
|
|
25169
25187
|
enabled: !!n.collapsed
|
|
@@ -25178,7 +25196,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25178
25196
|
disabled: m.disabled,
|
|
25179
25197
|
"aria-current": m.selectable && n.modelValue === m.key ? "page" : void 0,
|
|
25180
25198
|
"aria-expanded": r(m),
|
|
25181
|
-
class:
|
|
25199
|
+
class: oe(u(m)),
|
|
25182
25200
|
style: ze(i(n.depth)),
|
|
25183
25201
|
onClick: (v) => {
|
|
25184
25202
|
o("toggle", m.key), m.selectable && o("select", m);
|
|
@@ -25186,7 +25204,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25186
25204
|
}, [
|
|
25187
25205
|
Z(p(Ks), {
|
|
25188
25206
|
"data-nav-chevron": "",
|
|
25189
|
-
class:
|
|
25207
|
+
class: oe(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", r(m) && "rotate-90"]),
|
|
25190
25208
|
"aria-hidden": "true"
|
|
25191
25209
|
}, null, 8, ["class"]),
|
|
25192
25210
|
m.icon ? (y(), N(Nt(m.icon), {
|
|
@@ -25194,33 +25212,33 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25194
25212
|
class: "size-[var(--ui-icon-size,22px)] shrink-0",
|
|
25195
25213
|
"aria-hidden": "true"
|
|
25196
25214
|
})) : V("", !0),
|
|
25197
|
-
|
|
25215
|
+
ne("span", {
|
|
25198
25216
|
"data-nav-label": "",
|
|
25199
|
-
class:
|
|
25217
|
+
class: oe(n.collapsed ? "sr-only" : zd)
|
|
25200
25218
|
}, ee(m.label), 3),
|
|
25201
|
-
m.badge !== void 0 ? (y(), E("span",
|
|
25202
|
-
], 14,
|
|
25219
|
+
m.badge !== void 0 ? (y(), E("span", iD, ee(m.badge), 1)) : V("", !0)
|
|
25220
|
+
], 14, rD)) : (y(), E("button", {
|
|
25203
25221
|
key: 1,
|
|
25204
25222
|
type: "button",
|
|
25205
25223
|
"data-nav-item": "",
|
|
25206
25224
|
disabled: m.disabled,
|
|
25207
25225
|
"aria-current": n.modelValue === m.key ? "page" : void 0,
|
|
25208
|
-
class:
|
|
25226
|
+
class: oe(u(m)),
|
|
25209
25227
|
style: ze(i(n.depth)),
|
|
25210
25228
|
onClick: (v) => o("select", m)
|
|
25211
25229
|
}, [
|
|
25212
|
-
c.value ? (y(), E("span",
|
|
25230
|
+
c.value ? (y(), E("span", sD)) : V("", !0),
|
|
25213
25231
|
m.icon ? (y(), N(Nt(m.icon), {
|
|
25214
25232
|
key: 1,
|
|
25215
25233
|
class: "size-[var(--ui-icon-size,22px)] shrink-0",
|
|
25216
25234
|
"aria-hidden": "true"
|
|
25217
25235
|
})) : V("", !0),
|
|
25218
|
-
|
|
25236
|
+
ne("span", {
|
|
25219
25237
|
"data-nav-label": "",
|
|
25220
|
-
class:
|
|
25238
|
+
class: oe(n.collapsed ? "sr-only" : zd)
|
|
25221
25239
|
}, ee(m.label), 3),
|
|
25222
|
-
m.badge !== void 0 ? (y(), E("span",
|
|
25223
|
-
], 14,
|
|
25240
|
+
m.badge !== void 0 ? (y(), E("span", lD, ee(m.badge), 1)) : V("", !0)
|
|
25241
|
+
], 14, aD))
|
|
25224
25242
|
]),
|
|
25225
25243
|
_: 2
|
|
25226
25244
|
}, 1032, ["label", "enabled"])),
|
|
@@ -25240,11 +25258,11 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25240
25258
|
onSelect: f[0] || (f[0] = (v) => o("select", v)),
|
|
25241
25259
|
onToggle: f[1] || (f[1] = (v) => o("toggle", v))
|
|
25242
25260
|
}, null, 8, ["items", "model-value", "expanded-keys", "depth", "searching", "collapsed"])
|
|
25243
|
-
], 8,
|
|
25261
|
+
], 8, uD)) : V("", !0)
|
|
25244
25262
|
], 64))), 128);
|
|
25245
25263
|
};
|
|
25246
25264
|
}
|
|
25247
|
-
}),
|
|
25265
|
+
}), dD = ["data-ui-top-nav-more", "data-ui-selected", "data-nav-toggle", "data-nav-item", "data-nav-contains-current", "disabled", "aria-current"], fD = { "data-nav-label": "" }, pD = ["disabled", "aria-current", "onClick"], hD = { "data-nav-label": "" }, qd = "size-[var(--ui-icon-size,18px)] shrink-0", Fd = "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)]", Ld = /* @__PURE__ */ D({
|
|
25248
25266
|
__name: "AppTopNavItems",
|
|
25249
25267
|
props: {
|
|
25250
25268
|
items: {},
|
|
@@ -25289,7 +25307,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25289
25307
|
onSelect: (f) => s(d, f)
|
|
25290
25308
|
}, {
|
|
25291
25309
|
trigger: P(() => [
|
|
25292
|
-
|
|
25310
|
+
ne("button", {
|
|
25293
25311
|
type: "button",
|
|
25294
25312
|
"data-ui-top-nav-more": n.overflow ? "" : void 0,
|
|
25295
25313
|
"data-ui-selected": n.overflow && r(d, n.modelValue) ? "true" : void 0,
|
|
@@ -25299,25 +25317,25 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25299
25317
|
"data-nav-contains-current": r(d, n.modelValue) || void 0,
|
|
25300
25318
|
disabled: d.disabled,
|
|
25301
25319
|
"aria-current": !n.overflow && d.selectable && n.modelValue === d.key ? "page" : void 0,
|
|
25302
|
-
class:
|
|
25320
|
+
class: oe(l(!n.overflow && n.modelValue === d.key || r(d, n.modelValue)))
|
|
25303
25321
|
}, [
|
|
25304
25322
|
d.icon ? (y(), N(Nt(d.icon), {
|
|
25305
25323
|
key: 0,
|
|
25306
|
-
class:
|
|
25324
|
+
class: oe(qd),
|
|
25307
25325
|
"aria-hidden": "true"
|
|
25308
25326
|
})) : V("", !0),
|
|
25309
|
-
|
|
25327
|
+
ne("span", fD, ee(d.label), 1),
|
|
25310
25328
|
d.badge !== void 0 ? (y(), E("span", {
|
|
25311
25329
|
key: 1,
|
|
25312
25330
|
"data-nav-badge": "",
|
|
25313
|
-
class:
|
|
25331
|
+
class: oe(Fd)
|
|
25314
25332
|
}, ee(d.badge), 1)) : V("", !0),
|
|
25315
25333
|
Z(p(sr), {
|
|
25316
25334
|
"data-nav-chevron": "",
|
|
25317
25335
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
25318
25336
|
"aria-hidden": "true"
|
|
25319
25337
|
})
|
|
25320
|
-
], 10,
|
|
25338
|
+
], 10, dD)
|
|
25321
25339
|
]),
|
|
25322
25340
|
_: 2
|
|
25323
25341
|
}, 1032, ["items", "data-ui-top-nav-overflow-menu", "onSelect"])) : (y(), E("button", {
|
|
@@ -25326,24 +25344,24 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25326
25344
|
"data-nav-item": "",
|
|
25327
25345
|
disabled: d.disabled,
|
|
25328
25346
|
"aria-current": n.modelValue === d.key ? "page" : void 0,
|
|
25329
|
-
class:
|
|
25347
|
+
class: oe(l(n.modelValue === d.key)),
|
|
25330
25348
|
onClick: (f) => o("select", d)
|
|
25331
25349
|
}, [
|
|
25332
25350
|
d.icon ? (y(), N(Nt(d.icon), {
|
|
25333
25351
|
key: 0,
|
|
25334
|
-
class:
|
|
25352
|
+
class: oe(qd),
|
|
25335
25353
|
"aria-hidden": "true"
|
|
25336
25354
|
})) : V("", !0),
|
|
25337
|
-
|
|
25355
|
+
ne("span", hD, ee(d.label), 1),
|
|
25338
25356
|
d.badge !== void 0 ? (y(), E("span", {
|
|
25339
25357
|
key: 1,
|
|
25340
25358
|
"data-nav-badge": "",
|
|
25341
|
-
class:
|
|
25359
|
+
class: oe(Fd)
|
|
25342
25360
|
}, ee(d.badge), 1)) : V("", !0)
|
|
25343
|
-
], 10,
|
|
25361
|
+
], 10, pD))
|
|
25344
25362
|
], 64))), 128));
|
|
25345
25363
|
}
|
|
25346
|
-
}),
|
|
25364
|
+
}), mD = ["aria-label"], vD = ["aria-label", "aria-hidden", "inert"], gD = ["data-ui-overflowed", "aria-hidden", "inert"], yD = ["aria-hidden", "inert"], bD = /* @__PURE__ */ D({
|
|
25347
25365
|
__name: "AppTopNav",
|
|
25348
25366
|
props: {
|
|
25349
25367
|
groups: {},
|
|
@@ -25370,8 +25388,8 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25370
25388
|
if (_.querySelectorAll("[data-nav-group]").forEach((W, X) => {
|
|
25371
25389
|
const te = getComputedStyle(W);
|
|
25372
25390
|
W.querySelectorAll("[data-ui-top-nav-item]").forEach((fe, K) => {
|
|
25373
|
-
const
|
|
25374
|
-
A.push(fe.getBoundingClientRect().width +
|
|
25391
|
+
const re = K === 0 ? v(te.marginLeft) + v(te.marginRight) + v(te.paddingLeft) + v(te.paddingRight) + v(te.borderLeftWidth) + v(te.borderRightWidth) + (X ? k : 0) : v(te.columnGap);
|
|
25392
|
+
A.push(fe.getBoundingClientRect().width + re);
|
|
25375
25393
|
});
|
|
25376
25394
|
}), !A.length || A.every((W) => W === 0)) return;
|
|
25377
25395
|
let x = A.length;
|
|
@@ -25411,7 +25429,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25411
25429
|
inert: k[0].index >= l.value,
|
|
25412
25430
|
style: ze(k[0].index >= l.value ? h : void 0),
|
|
25413
25431
|
"data-nav-group": "",
|
|
25414
|
-
class:
|
|
25432
|
+
class: oe(["flex shrink-0 items-center gap-[var(--ui-space-1)]", A > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
|
|
25415
25433
|
}, [
|
|
25416
25434
|
(y(!0), E(xe, null, nt(k, ({ item: x, index: T }) => (y(), E("div", {
|
|
25417
25435
|
key: x.key,
|
|
@@ -25428,9 +25446,9 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25428
25446
|
"model-value": n.modelValue,
|
|
25429
25447
|
onSelect: C[0] || (C[0] = (I) => o("select", I))
|
|
25430
25448
|
}, null, 8, ["items", "model-value"]))
|
|
25431
|
-
], 12,
|
|
25432
|
-
], 14,
|
|
25433
|
-
|
|
25449
|
+
], 12, gD))), 128))
|
|
25450
|
+
], 14, vD))), 128)),
|
|
25451
|
+
ne("div", {
|
|
25434
25452
|
ref_key: "more",
|
|
25435
25453
|
ref: a,
|
|
25436
25454
|
"data-ui-top-nav-more-wrapper": "",
|
|
@@ -25446,14 +25464,14 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25446
25464
|
overflow: "",
|
|
25447
25465
|
onSelect: C[1] || (C[1] = (b) => o("select", b))
|
|
25448
25466
|
}, null, 8, ["items", "model-value"]))
|
|
25449
|
-
], 12,
|
|
25450
|
-
], 8,
|
|
25467
|
+
], 12, yD)
|
|
25468
|
+
], 8, mD));
|
|
25451
25469
|
}
|
|
25452
|
-
}),
|
|
25470
|
+
}), wD = ["aria-label", "data-ui-sidebar-collapsed"], _D = ["aria-expanded", "onClick"], SD = {
|
|
25453
25471
|
key: 1,
|
|
25454
25472
|
"data-nav-group-label": "",
|
|
25455
25473
|
class: "flex h-6 items-center px-[11px] text-[12px] font-bold text-[var(--ui-text-secondary)]"
|
|
25456
|
-
},
|
|
25474
|
+
}, xD = /* @__PURE__ */ D({
|
|
25457
25475
|
__name: "AppSidebar",
|
|
25458
25476
|
props: {
|
|
25459
25477
|
modelValue: {},
|
|
@@ -25512,7 +25530,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25512
25530
|
function C(b) {
|
|
25513
25531
|
b.disabled || (r("update:modelValue", b.key), r("select", b), w(b.key));
|
|
25514
25532
|
}
|
|
25515
|
-
return (b, k) => p(a) ? (y(), N(
|
|
25533
|
+
return (b, k) => p(a) ? (y(), N(bD, {
|
|
25516
25534
|
key: 0,
|
|
25517
25535
|
groups: p(o).groups,
|
|
25518
25536
|
"model-value": p(o).modelValue,
|
|
@@ -25535,7 +25553,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25535
25553
|
}, null, 8, ["modelValue", "placeholder", "clear-label"])) : V("", !0),
|
|
25536
25554
|
(y(!0), E(xe, null, nt(u.value, ({ group: A, id: x, items: T }, I) => (y(), E("section", {
|
|
25537
25555
|
key: x,
|
|
25538
|
-
class:
|
|
25556
|
+
class: oe(I > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
|
|
25539
25557
|
}, [
|
|
25540
25558
|
A.label && p(o).collapsible && !p(i) ? (y(), E("button", {
|
|
25541
25559
|
key: 0,
|
|
@@ -25547,12 +25565,12 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25547
25565
|
onClick: (F) => f(x)
|
|
25548
25566
|
}, [
|
|
25549
25567
|
Z(p(sr), {
|
|
25550
|
-
class:
|
|
25568
|
+
class: oe(["size-3 shrink-0 transition-transform", !h(x) && "-rotate-90"]),
|
|
25551
25569
|
"aria-hidden": "true"
|
|
25552
25570
|
}, null, 8, ["class"]),
|
|
25553
25571
|
Ne(" " + ee(A.label), 1)
|
|
25554
|
-
], 8,
|
|
25555
|
-
h(x) ? (y(), N(
|
|
25572
|
+
], 8, _D)) : A.label && !p(i) ? (y(), E("div", SD, ee(A.label), 1)) : V("", !0),
|
|
25573
|
+
h(x) ? (y(), N(cD, {
|
|
25556
25574
|
key: 2,
|
|
25557
25575
|
items: T,
|
|
25558
25576
|
"model-value": p(o).modelValue,
|
|
@@ -25564,15 +25582,15 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25564
25582
|
onToggle: _
|
|
25565
25583
|
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : V("", !0)
|
|
25566
25584
|
], 2))), 128))
|
|
25567
|
-
], 8,
|
|
25585
|
+
], 8, wD));
|
|
25568
25586
|
}
|
|
25569
|
-
}),
|
|
25587
|
+
}), kD = {
|
|
25570
25588
|
key: 0,
|
|
25571
25589
|
class: "flex shrink-0 items-center gap-1.5"
|
|
25572
|
-
},
|
|
25590
|
+
}, CD = { class: "min-w-0 flex-1" }, AD = {
|
|
25573
25591
|
key: 1,
|
|
25574
25592
|
class: "ml-auto flex shrink-0 items-center gap-2"
|
|
25575
|
-
},
|
|
25593
|
+
}, OD = /* @__PURE__ */ D({
|
|
25576
25594
|
__name: "AppToolbar",
|
|
25577
25595
|
props: {
|
|
25578
25596
|
height: { default: "var(--ui-toolbar-height)" }
|
|
@@ -25584,29 +25602,29 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25584
25602
|
style: ze({ minHeight: e.height }),
|
|
25585
25603
|
"data-syno-pkg-land-ui": ""
|
|
25586
25604
|
}, [
|
|
25587
|
-
t.$slots.leading ? (y(), E("div",
|
|
25605
|
+
t.$slots.leading ? (y(), E("div", kD, [
|
|
25588
25606
|
R(t.$slots, "leading")
|
|
25589
25607
|
])) : V("", !0),
|
|
25590
|
-
|
|
25608
|
+
ne("div", CD, [
|
|
25591
25609
|
R(t.$slots, "default")
|
|
25592
25610
|
]),
|
|
25593
|
-
t.$slots.actions ? (y(), E("div",
|
|
25611
|
+
t.$slots.actions ? (y(), E("div", AD, [
|
|
25594
25612
|
R(t.$slots, "actions")
|
|
25595
25613
|
])) : V("", !0)
|
|
25596
25614
|
], 4));
|
|
25597
25615
|
}
|
|
25598
|
-
}),
|
|
25616
|
+
}), $D = { class: "min-w-0 flex-auto" }, ED = { class: "flex min-w-0 items-center gap-x-[var(--ui-space-3)]" }, PD = ["title"], TD = {
|
|
25599
25617
|
key: 0,
|
|
25600
25618
|
"data-ui-page-header-meta": "",
|
|
25601
25619
|
class: "flex shrink-0 items-center gap-2 whitespace-nowrap"
|
|
25602
|
-
},
|
|
25620
|
+
}, ID = {
|
|
25603
25621
|
key: 0,
|
|
25604
25622
|
class: "mt-1 max-w-3xl [contain:inline-size] text-[13px] leading-5 text-[var(--ui-text-secondary)]"
|
|
25605
|
-
},
|
|
25623
|
+
}, RD = {
|
|
25606
25624
|
key: 0,
|
|
25607
25625
|
"data-ui-page-header-actions": "",
|
|
25608
25626
|
class: "ml-auto flex max-w-full shrink-0 flex-wrap items-center justify-end gap-2 [&>*]:w-auto [&>*]:shrink-0"
|
|
25609
|
-
},
|
|
25627
|
+
}, DD = /* @__PURE__ */ D({
|
|
25610
25628
|
__name: "PageHeader",
|
|
25611
25629
|
props: {
|
|
25612
25630
|
title: {},
|
|
@@ -25616,27 +25634,27 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25616
25634
|
setup(e) {
|
|
25617
25635
|
return (t, n) => (y(), E("div", {
|
|
25618
25636
|
"data-ui-page-header": "",
|
|
25619
|
-
class:
|
|
25637
|
+
class: oe([e.sticky && "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)]"]),
|
|
25620
25638
|
"data-syno-pkg-land-ui": ""
|
|
25621
25639
|
}, [
|
|
25622
|
-
|
|
25623
|
-
|
|
25624
|
-
|
|
25640
|
+
ne("div", $D, [
|
|
25641
|
+
ne("div", ED, [
|
|
25642
|
+
ne("h1", {
|
|
25625
25643
|
class: "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)]",
|
|
25626
25644
|
title: e.title
|
|
25627
|
-
}, ee(e.title), 9,
|
|
25628
|
-
t.$slots.meta ? (y(), E("div",
|
|
25645
|
+
}, ee(e.title), 9, PD),
|
|
25646
|
+
t.$slots.meta ? (y(), E("div", TD, [
|
|
25629
25647
|
R(t.$slots, "meta")
|
|
25630
25648
|
])) : V("", !0)
|
|
25631
25649
|
]),
|
|
25632
|
-
e.description ? (y(), E("p",
|
|
25650
|
+
e.description ? (y(), E("p", ID, ee(e.description), 1)) : V("", !0)
|
|
25633
25651
|
]),
|
|
25634
|
-
t.$slots.actions ? (y(), E("div",
|
|
25652
|
+
t.$slots.actions ? (y(), E("div", RD, [
|
|
25635
25653
|
R(t.$slots, "actions")
|
|
25636
25654
|
])) : V("", !0)
|
|
25637
25655
|
], 2));
|
|
25638
25656
|
}
|
|
25639
|
-
}),
|
|
25657
|
+
}), ND = ["data-width", "data-height", "data-page-surface"], MD = /* @__PURE__ */ D({
|
|
25640
25658
|
__name: "PageContent",
|
|
25641
25659
|
props: {
|
|
25642
25660
|
width: { default: "fill" },
|
|
@@ -25649,7 +25667,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25649
25667
|
return t.width === "readable" ? "var(--ui-page-readable-width)" : t.width;
|
|
25650
25668
|
});
|
|
25651
25669
|
return (r, i) => (y(), E("div", {
|
|
25652
|
-
class:
|
|
25670
|
+
class: oe(["box-border w-full min-w-0", [
|
|
25653
25671
|
e.surface !== "none" && "px-[var(--ui-page-padding-x)]",
|
|
25654
25672
|
n.value && "flex h-full min-h-0 flex-col overflow-hidden"
|
|
25655
25673
|
]]),
|
|
@@ -25658,16 +25676,16 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25658
25676
|
"data-page-surface": e.surface,
|
|
25659
25677
|
"data-syno-pkg-land-ui": ""
|
|
25660
25678
|
}, [
|
|
25661
|
-
|
|
25679
|
+
ne("div", {
|
|
25662
25680
|
"data-page-content-body": "",
|
|
25663
|
-
class:
|
|
25681
|
+
class: oe(["flex min-w-0 flex-col gap-[var(--ui-section-gap)] [&>[data-ui-page-header]]:mb-[calc(var(--ui-section-gap)*-1)]", n.value && "min-h-0 flex-1 [&>:last-child]:min-h-0 [&>:last-child]:flex-1"]),
|
|
25664
25682
|
style: ze({ "--ui-page-padding-x": "0px", maxWidth: o.value })
|
|
25665
25683
|
}, [
|
|
25666
25684
|
R(r.$slots, "default")
|
|
25667
25685
|
], 6)
|
|
25668
|
-
], 10,
|
|
25686
|
+
], 10, ND));
|
|
25669
25687
|
}
|
|
25670
|
-
}),
|
|
25688
|
+
}), zD = ["aria-label", "data-overflow-start", "data-overflow-end"], qD = ["disabled", "data-ui-tab-value", "aria-current", "onClick"], FD = /* @__PURE__ */ D({
|
|
25671
25689
|
inheritAttrs: !1,
|
|
25672
25690
|
__name: "SectionTabs",
|
|
25673
25691
|
props: {
|
|
@@ -25688,7 +25706,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25688
25706
|
!f || m < 0 || (d.preventDefault(), h[f(m, h.length)]?.focus());
|
|
25689
25707
|
}
|
|
25690
25708
|
return (d, f) => (y(), E(xe, null, [
|
|
25691
|
-
|
|
25709
|
+
ne("nav", ie({
|
|
25692
25710
|
ref_key: "bar",
|
|
25693
25711
|
ref: i,
|
|
25694
25712
|
class: "ui-tab-strip relative flex w-full min-w-0 h-[30px] [@media(pointer:coarse)]:h-9 items-end",
|
|
@@ -25703,18 +25721,18 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25703
25721
|
disabled: h.disabled,
|
|
25704
25722
|
"data-ui-tab-value": h.value,
|
|
25705
25723
|
"aria-current": o.modelValue === h.value ? "page" : void 0,
|
|
25706
|
-
class:
|
|
25724
|
+
class: oe([
|
|
25707
25725
|
"relative h-[30px] [@media(pointer:coarse)]:h-9 shrink-0 border-0 bg-transparent px-2 first:pl-0 text-[length:var(--ui-font-size)] font-bold outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
25708
25726
|
o.modelValue === h.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] enabled:hover:bg-[var(--ui-surface-hover)] enabled:hover:text-[var(--ui-text)]"
|
|
25709
25727
|
]),
|
|
25710
25728
|
onClick: (m) => r("update:modelValue", h.value)
|
|
25711
|
-
}, ee(h.label), 11,
|
|
25712
|
-
|
|
25729
|
+
}, ee(h.label), 11, qD))), 128)),
|
|
25730
|
+
ne("span", {
|
|
25713
25731
|
class: "ui-tab-indicator",
|
|
25714
25732
|
style: ze(p(a)),
|
|
25715
25733
|
"aria-hidden": "true"
|
|
25716
25734
|
}, null, 4)
|
|
25717
|
-
], 16,
|
|
25735
|
+
], 16, zD),
|
|
25718
25736
|
d.$slots[`panel-${o.modelValue}`] ? (y(), E("div", {
|
|
25719
25737
|
key: o.modelValue,
|
|
25720
25738
|
class: "ui-tab-panel",
|
|
@@ -25724,7 +25742,7 @@ const zR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25724
25742
|
])) : V("", !0)
|
|
25725
25743
|
], 64));
|
|
25726
25744
|
}
|
|
25727
|
-
}),
|
|
25745
|
+
}), LD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), VD = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
|
|
25728
25746
|
function Xi(e) {
|
|
25729
25747
|
if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
|
|
25730
25748
|
const t = Object.getPrototypeOf(e);
|
|
@@ -25736,18 +25754,18 @@ function Qi(e, t) {
|
|
|
25736
25754
|
function pl(e, t, n) {
|
|
25737
25755
|
e[t] = n;
|
|
25738
25756
|
}
|
|
25739
|
-
function
|
|
25757
|
+
function BD(e) {
|
|
25740
25758
|
return Reflect.ownKeys(e).filter((t) => Qi(e, t) !== void 0);
|
|
25741
25759
|
}
|
|
25742
25760
|
function hl(e, t) {
|
|
25743
25761
|
const n = { ...e };
|
|
25744
|
-
for (const o of
|
|
25762
|
+
for (const o of BD(t)) {
|
|
25745
25763
|
const r = Qi(t, o), i = Qi(n, o);
|
|
25746
25764
|
Xi(i) && Xi(r) ? pl(n, o, hl(i, r)) : pl(n, o, r);
|
|
25747
25765
|
}
|
|
25748
25766
|
return n;
|
|
25749
25767
|
}
|
|
25750
|
-
function
|
|
25768
|
+
function jD(e) {
|
|
25751
25769
|
const t = {};
|
|
25752
25770
|
for (const n of Reflect.ownKeys(e)) {
|
|
25753
25771
|
const o = Qi(e, n);
|
|
@@ -25756,15 +25774,15 @@ function VD(e) {
|
|
|
25756
25774
|
return t;
|
|
25757
25775
|
}
|
|
25758
25776
|
function Km(e, t, n = {}) {
|
|
25759
|
-
const o = qe(
|
|
25777
|
+
const o = qe(VD, null), r = qe(LD, null);
|
|
25760
25778
|
return O(() => {
|
|
25761
25779
|
const i = [n, r?.value?.[e], o?.value?.[e]];
|
|
25762
25780
|
let a = {};
|
|
25763
25781
|
for (const s of i) s && (a = hl(a, s));
|
|
25764
|
-
return hl(a,
|
|
25782
|
+
return hl(a, jD(t));
|
|
25765
25783
|
});
|
|
25766
25784
|
}
|
|
25767
|
-
const
|
|
25785
|
+
const UD = ["data-layout-direction"], WD = /* @__PURE__ */ D({
|
|
25768
25786
|
__name: "Form",
|
|
25769
25787
|
props: {
|
|
25770
25788
|
rules: {},
|
|
@@ -25840,9 +25858,9 @@ const BD = ["data-layout-direction"], jD = /* @__PURE__ */ D({
|
|
|
25840
25858
|
onSubmit: kt(k, ["prevent"])
|
|
25841
25859
|
}, [
|
|
25842
25860
|
R(A.$slots, "default")
|
|
25843
|
-
], 44,
|
|
25861
|
+
], 44, UD));
|
|
25844
25862
|
}
|
|
25845
|
-
}),
|
|
25863
|
+
}), KD = "blur", ZD = {
|
|
25846
25864
|
string: "Value must be a string",
|
|
25847
25865
|
number: "Value must be a number",
|
|
25848
25866
|
integer: "Value must be an integer",
|
|
@@ -25855,15 +25873,15 @@ const BD = ["data-layout-direction"], jD = /* @__PURE__ */ D({
|
|
|
25855
25873
|
function ml(e) {
|
|
25856
25874
|
return e ? Array.isArray(e) ? [...e] : [e] : [];
|
|
25857
25875
|
}
|
|
25858
|
-
function
|
|
25876
|
+
function HD(e, t) {
|
|
25859
25877
|
return e == null ? !0 : t === "array" || Array.isArray(e) ? Array.isArray(e) && e.length === 0 : typeof e == "string" ? e.trim() === "" : !1;
|
|
25860
25878
|
}
|
|
25861
|
-
function
|
|
25879
|
+
function GD(e) {
|
|
25862
25880
|
if (typeof e == "string" || Array.isArray(e)) return e.length;
|
|
25863
25881
|
if (typeof e == "number") return e;
|
|
25864
25882
|
if (e instanceof Date) return e.getTime();
|
|
25865
25883
|
}
|
|
25866
|
-
function
|
|
25884
|
+
function JD(e, t) {
|
|
25867
25885
|
switch (t) {
|
|
25868
25886
|
case "string":
|
|
25869
25887
|
return typeof e == "string";
|
|
@@ -25888,13 +25906,13 @@ function HD(e, t) {
|
|
|
25888
25906
|
return e instanceof Date && !Number.isNaN(e.getTime());
|
|
25889
25907
|
}
|
|
25890
25908
|
}
|
|
25891
|
-
function
|
|
25909
|
+
function YD(e) {
|
|
25892
25910
|
return typeof e == "object" && e !== null && typeof e.then == "function";
|
|
25893
25911
|
}
|
|
25894
25912
|
function yr(e, t) {
|
|
25895
25913
|
return e instanceof Error ? e.message : typeof e == "string" ? e : t("Value does not match the expected format");
|
|
25896
25914
|
}
|
|
25897
|
-
async function
|
|
25915
|
+
async function XD(e, t, n) {
|
|
25898
25916
|
const o = e.validator ?? e.asyncValidator;
|
|
25899
25917
|
if (!o) return null;
|
|
25900
25918
|
let r = null, i = !1;
|
|
@@ -25907,7 +25925,7 @@ async function JD(e, t, n) {
|
|
|
25907
25925
|
} catch (l) {
|
|
25908
25926
|
return i ? r : yr(l, n);
|
|
25909
25927
|
}
|
|
25910
|
-
if (
|
|
25928
|
+
if (YD(s))
|
|
25911
25929
|
try {
|
|
25912
25930
|
const l = await s;
|
|
25913
25931
|
i || (r = l === !0 || l === void 0 || l === null ? null : yr(l, n));
|
|
@@ -25917,35 +25935,35 @@ async function JD(e, t, n) {
|
|
|
25917
25935
|
else !i && s !== void 0 && s !== !0 && (r = s === !1 ? e.message ?? n("Value does not match the expected format") : yr(s, n));
|
|
25918
25936
|
return r;
|
|
25919
25937
|
}
|
|
25920
|
-
async function
|
|
25938
|
+
async function QD(e, t, n) {
|
|
25921
25939
|
const o = e.transform ? e.transform(t) : t;
|
|
25922
|
-
if (
|
|
25940
|
+
if (HD(o, e.type))
|
|
25923
25941
|
return e.required ? e.message ?? n("Value is required") : null;
|
|
25924
|
-
if (e.type && !
|
|
25925
|
-
const r =
|
|
25926
|
-
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") :
|
|
25942
|
+
if (e.type && !JD(o, e.type)) return e.message ?? n(ZD[e.type]);
|
|
25943
|
+
const r = GD(o);
|
|
25944
|
+
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") : XD(e, o, n);
|
|
25927
25945
|
}
|
|
25928
|
-
function
|
|
25946
|
+
function eN(e, t) {
|
|
25929
25947
|
return e.trigger ? Array.isArray(e.trigger) ? e.trigger : [e.trigger] : [t];
|
|
25930
25948
|
}
|
|
25931
|
-
async function
|
|
25932
|
-
const o = n.defaultTrigger ??
|
|
25949
|
+
async function tN(e, t, n = {}) {
|
|
25950
|
+
const o = n.defaultTrigger ?? KD, r = n.trigger ?? null, i = n.text ?? ((a, s) => Oh("en", a, s));
|
|
25933
25951
|
for (const a of ml(t)) {
|
|
25934
|
-
if (r !== null && !
|
|
25935
|
-
const s = await
|
|
25952
|
+
if (r !== null && !eN(a, o).includes(r)) continue;
|
|
25953
|
+
const s = await QD(a, e, i);
|
|
25936
25954
|
if (s) return s;
|
|
25937
25955
|
}
|
|
25938
25956
|
return null;
|
|
25939
25957
|
}
|
|
25940
|
-
const
|
|
25958
|
+
const nN = ["data-direction", "data-status"], oN = ["id", "for"], rN = {
|
|
25941
25959
|
key: 0,
|
|
25942
25960
|
class: "ml-0.5 text-[var(--ui-danger)]",
|
|
25943
25961
|
"aria-hidden": "true"
|
|
25944
|
-
},
|
|
25962
|
+
}, iN = { class: "flex items-start gap-2" }, aN = {
|
|
25945
25963
|
key: 0,
|
|
25946
25964
|
class: "flex min-h-[var(--ui-control-md)] shrink-0 items-center",
|
|
25947
25965
|
"data-field-after": ""
|
|
25948
|
-
},
|
|
25966
|
+
}, sN = ["id"], lN = ["id"], uN = /* @__PURE__ */ D({
|
|
25949
25967
|
__name: "FormItem",
|
|
25950
25968
|
props: {
|
|
25951
25969
|
modelValue: {},
|
|
@@ -26025,7 +26043,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26025
26043
|
function x() {
|
|
26026
26044
|
C.value = w.value;
|
|
26027
26045
|
}
|
|
26028
|
-
const T = /* @__PURE__ */ M(""), I = /* @__PURE__ */ M(""), F = /* @__PURE__ */ M(""), W = /* @__PURE__ */ M(""), X = /* @__PURE__ */ M(!1), te = /* @__PURE__ */ M(!1), fe = O(() => r.disabled === !0 || X.value), K = O(() => W.value || s.value.validateStatus || T.value),
|
|
26046
|
+
const T = /* @__PURE__ */ M(""), I = /* @__PURE__ */ M(""), F = /* @__PURE__ */ M(""), W = /* @__PURE__ */ M(""), X = /* @__PURE__ */ M(!1), te = /* @__PURE__ */ M(!1), fe = O(() => r.disabled === !0 || X.value), K = O(() => W.value || s.value.validateStatus || T.value), re = O(() => K.value === "error"), ce = O(() => F.value || I.value || s.value.help), pe = O(() => F.value ? F.value : re.value && !s.value.hideValidateMessage && I.value || s.value.help), Fe = fr(u), ye = O(() => {
|
|
26029
26047
|
const H = s.value.direction ?? l?.direction ?? "auto";
|
|
26030
26048
|
return H === "auto" ? Fe.value > 0 && Fe.value < 520 ? "vertical" : "horizontal" : H;
|
|
26031
26049
|
}), Ae = O(() => {
|
|
@@ -26040,10 +26058,10 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26040
26058
|
}), pt = O(() => ({
|
|
26041
26059
|
maxWidth: Lm(r.fieldWidth ?? l?.fieldWidth)
|
|
26042
26060
|
})), Ye = O(() => ye.value === "vertical" ? void 0 : { width: s.value.labelWidth ?? "var(--ui-label-column)" }), _t = O(() => {
|
|
26043
|
-
const H =
|
|
26061
|
+
const H = re.value ? "text-[var(--ui-danger)]" : K.value === "warning" ? "text-[var(--ui-warning)]" : K.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
|
|
26044
26062
|
return Ae.value === "text" ? En("mt-1 text-[12px] leading-4", H) : En(
|
|
26045
26063
|
"absolute left-0 top-full z-[1100] mt-1 max-w-[min(100%,20rem)] rounded-[var(--ui-radius-md)] px-2.5 py-1.5 text-[12px] leading-4 shadow-[var(--ui-shadow-menu)]",
|
|
26046
|
-
|
|
26064
|
+
re.value ? "bg-[var(--ui-danger-hover)] text-[var(--ui-danger-foreground)]" : "bg-[var(--ui-tooltip-bg)] text-[var(--ui-tooltip-fg)]",
|
|
26047
26065
|
"transition-opacity duration-[var(--ui-motion-fast)]",
|
|
26048
26066
|
te.value ? "opacity-100" : "pointer-events-none opacity-0"
|
|
26049
26067
|
);
|
|
@@ -26059,7 +26077,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26059
26077
|
if (!ue.length) return null;
|
|
26060
26078
|
const ke = ++Wn;
|
|
26061
26079
|
T.value = "validating", i("validating");
|
|
26062
|
-
const Ee = await
|
|
26080
|
+
const Ee = await tN(w.value, ue, {
|
|
26063
26081
|
trigger: H,
|
|
26064
26082
|
defaultTrigger: s.value.defaultValidateTrigger,
|
|
26065
26083
|
text: o
|
|
@@ -26125,7 +26143,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26125
26143
|
describedBy: ve,
|
|
26126
26144
|
required: O(() => s.value.requiredMark === !0),
|
|
26127
26145
|
disabled: fe,
|
|
26128
|
-
invalid:
|
|
26146
|
+
invalid: re,
|
|
26129
26147
|
status: K,
|
|
26130
26148
|
message: ce,
|
|
26131
26149
|
validate: $,
|
|
@@ -26138,7 +26156,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26138
26156
|
controlProps: O(() => ({
|
|
26139
26157
|
id: h.value,
|
|
26140
26158
|
"aria-describedby": ve.value,
|
|
26141
|
-
"aria-invalid":
|
|
26159
|
+
"aria-invalid": re.value || void 0,
|
|
26142
26160
|
"aria-required": s.value.requiredMark || void 0,
|
|
26143
26161
|
onBlur: z,
|
|
26144
26162
|
onInput: G
|
|
@@ -26171,7 +26189,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26171
26189
|
"data-form-item": "",
|
|
26172
26190
|
"data-direction": ye.value,
|
|
26173
26191
|
style: ze(rt.value),
|
|
26174
|
-
class:
|
|
26192
|
+
class: oe(p(En)("min-w-0", re.value && !p(s).hideValidateStatusCls && "has-error")),
|
|
26175
26193
|
"data-status": K.value || void 0,
|
|
26176
26194
|
"data-syno-pkg-land-ui": "",
|
|
26177
26195
|
onMouseenter: ue[1] || (ue[1] = (ke) => Ae.value === "popup" && B()),
|
|
@@ -26183,14 +26201,14 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26183
26201
|
key: 0,
|
|
26184
26202
|
"data-form-label": "",
|
|
26185
26203
|
style: ze(Ye.value),
|
|
26186
|
-
class:
|
|
26204
|
+
class: oe([
|
|
26187
26205
|
"min-w-0 shrink-0 break-words [word-break:keep-all] text-[13px] leading-5 text-[var(--ui-text)]",
|
|
26188
26206
|
ye.value === "horizontal" ? "pt-[5px] text-left" : void 0,
|
|
26189
26207
|
p(s).disableLabel || fe.value ? "opacity-40" : void 0
|
|
26190
26208
|
]),
|
|
26191
|
-
onClick: ue[0] || (ue[0] = (ke) => Ae.value === "popup" &&
|
|
26209
|
+
onClick: ue[0] || (ue[0] = (ke) => Ae.value === "popup" && re.value && B())
|
|
26192
26210
|
}, [
|
|
26193
|
-
|
|
26211
|
+
ne("label", {
|
|
26194
26212
|
id: f.label,
|
|
26195
26213
|
for: p(s).textOnly ? void 0 : h.value,
|
|
26196
26214
|
onClick: _e
|
|
@@ -26198,29 +26216,29 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26198
26216
|
R(H.$slots, "label", {}, () => [
|
|
26199
26217
|
Ne(ee(p(s).label), 1)
|
|
26200
26218
|
]),
|
|
26201
|
-
p(s).requiredMark ? (y(), E("span",
|
|
26202
|
-
], 8,
|
|
26219
|
+
p(s).requiredMark ? (y(), E("span", rN, "*")) : V("", !0)
|
|
26220
|
+
], 8, oN)
|
|
26203
26221
|
], 6)) : V("", !0),
|
|
26204
|
-
|
|
26205
|
-
class:
|
|
26222
|
+
ne("div", {
|
|
26223
|
+
class: oe(["relative min-w-0 flex-1", p(s).disableControl ? "opacity-40" : void 0])
|
|
26206
26224
|
}, [
|
|
26207
|
-
|
|
26225
|
+
ne("div", iN, [
|
|
26208
26226
|
R(H.$slots, "before"),
|
|
26209
|
-
|
|
26227
|
+
ne("div", {
|
|
26210
26228
|
class: "min-w-0 flex-1",
|
|
26211
26229
|
"data-field-control": "",
|
|
26212
26230
|
style: ze(pt.value)
|
|
26213
26231
|
}, [
|
|
26214
26232
|
R(H.$slots, "default", { field: me })
|
|
26215
26233
|
], 4),
|
|
26216
|
-
H.$slots.after ? (y(), E("div",
|
|
26234
|
+
H.$slots.after ? (y(), E("div", aN, [
|
|
26217
26235
|
R(H.$slots, "after", { classes: It })
|
|
26218
26236
|
])) : V("", !0)
|
|
26219
26237
|
]),
|
|
26220
26238
|
ft.value ? (y(), E("div", {
|
|
26221
26239
|
key: 0,
|
|
26222
26240
|
id: f.description,
|
|
26223
|
-
class:
|
|
26241
|
+
class: oe([
|
|
26224
26242
|
"mt-1 text-[12px] leading-4 text-[var(--ui-text-secondary)]",
|
|
26225
26243
|
p(s).disableDescription || fe.value ? "opacity-40" : void 0
|
|
26226
26244
|
])
|
|
@@ -26228,19 +26246,19 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26228
26246
|
R(H.$slots, "description", {}, () => [
|
|
26229
26247
|
Ne(ee(p(s).description), 1)
|
|
26230
26248
|
])
|
|
26231
|
-
], 10,
|
|
26249
|
+
], 10, sN)) : V("", !0),
|
|
26232
26250
|
pe.value ? (y(), E("div", {
|
|
26233
26251
|
key: 1,
|
|
26234
26252
|
id: f.message,
|
|
26235
26253
|
role: "alert",
|
|
26236
|
-
class:
|
|
26254
|
+
class: oe(_t.value)
|
|
26237
26255
|
}, [
|
|
26238
26256
|
R(H.$slots, "status", { field: me }, () => [
|
|
26239
26257
|
Ne(ee(pe.value), 1)
|
|
26240
26258
|
])
|
|
26241
|
-
], 10,
|
|
26259
|
+
], 10, lN)) : V("", !0)
|
|
26242
26260
|
], 2)
|
|
26243
|
-
], 46,
|
|
26261
|
+
], 46, nN));
|
|
26244
26262
|
}
|
|
26245
26263
|
}), Zm = Gl(() => le({
|
|
26246
26264
|
key: L(),
|
|
@@ -26254,7 +26272,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26254
26272
|
label: L(),
|
|
26255
26273
|
value: L(),
|
|
26256
26274
|
disabled: Ce().optional()
|
|
26257
|
-
}),
|
|
26275
|
+
}), cN = vl.extend({
|
|
26258
26276
|
description: L().optional()
|
|
26259
26277
|
}), Vd = le({
|
|
26260
26278
|
key: L(),
|
|
@@ -26263,7 +26281,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26263
26281
|
/** Sets the alignment: DSM keeps every column left; number and date digits get one width. */
|
|
26264
26282
|
type: $e(["text", "number", "date", "actions"]).optional(),
|
|
26265
26283
|
align: $e(["left", "center", "right"]).optional()
|
|
26266
|
-
}),
|
|
26284
|
+
}), dN = {
|
|
26267
26285
|
AppRoot: {
|
|
26268
26286
|
props: le({
|
|
26269
26287
|
modalScope: $e(["document", "app"]).optional()
|
|
@@ -26408,7 +26426,7 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26408
26426
|
RadioGroup: {
|
|
26409
26427
|
props: le({
|
|
26410
26428
|
value: L().optional(),
|
|
26411
|
-
options: Qe(
|
|
26429
|
+
options: Qe(cN),
|
|
26412
26430
|
orientation: $e(["vertical", "horizontal"]).optional(),
|
|
26413
26431
|
disabled: Ce().optional()
|
|
26414
26432
|
}),
|
|
@@ -26592,17 +26610,17 @@ const eN = ["data-direction", "data-status"], tN = ["id", "for"], nN = {
|
|
|
26592
26610
|
props: le({ text: L().optional() }),
|
|
26593
26611
|
description: "Centered loading state for a page or bounded region."
|
|
26594
26612
|
}
|
|
26595
|
-
},
|
|
26596
|
-
components:
|
|
26613
|
+
}, fN = ek(nk, {
|
|
26614
|
+
components: dN,
|
|
26597
26615
|
actions: {}
|
|
26598
|
-
}),
|
|
26616
|
+
}), pN = {
|
|
26599
26617
|
none: "0",
|
|
26600
26618
|
xs: "var(--ui-space-1)",
|
|
26601
26619
|
sm: "var(--ui-space-2)",
|
|
26602
26620
|
md: "var(--ui-space-3)",
|
|
26603
26621
|
lg: "var(--ui-space-4)"
|
|
26604
|
-
},
|
|
26605
|
-
function
|
|
26622
|
+
}, hN = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch" }, mN = { start: "flex-start", center: "center", end: "flex-end", between: "space-between" };
|
|
26623
|
+
function vN(e) {
|
|
26606
26624
|
return { default: () => e };
|
|
26607
26625
|
}
|
|
26608
26626
|
function gl(e) {
|
|
@@ -26615,27 +26633,27 @@ function Hm(e) {
|
|
|
26615
26633
|
children: e.children?.map(Hm)
|
|
26616
26634
|
};
|
|
26617
26635
|
}
|
|
26618
|
-
function
|
|
26636
|
+
function gN(e) {
|
|
26619
26637
|
return e.map((t) => ({ ...t, items: t.items.map(Hm) }));
|
|
26620
26638
|
}
|
|
26621
|
-
const
|
|
26622
|
-
AppRoot: ({ props: e, slots: t }) => se(
|
|
26623
|
-
AppShell: ({ props: e, slots: t }) => se(
|
|
26639
|
+
const yN = {
|
|
26640
|
+
AppRoot: ({ props: e, slots: t }) => se(NR, { modalScope: e.modalScope }, t),
|
|
26641
|
+
AppShell: ({ props: e, slots: t }) => se(tD, {
|
|
26624
26642
|
sidebarWidth: e.sidebarWidth,
|
|
26625
26643
|
minHeight: e.minHeight,
|
|
26626
26644
|
responsive: e.responsive,
|
|
26627
26645
|
wideLayout: e.wideLayout,
|
|
26628
26646
|
navigation: e.navigation
|
|
26629
26647
|
}, t),
|
|
26630
|
-
ResponsiveView: ({ props: e, slots: t }) => se(
|
|
26631
|
-
Page: ({ props: e, slots: t }) => se(
|
|
26632
|
-
PageHeader: ({ props: e, slots: t }) => se(
|
|
26633
|
-
Toolbar: ({ props: e, slots: t }) => se(
|
|
26648
|
+
ResponsiveView: ({ props: e, slots: t }) => se(nD, { mode: e.mode }, t),
|
|
26649
|
+
Page: ({ props: e, slots: t }) => se(MD, { width: e.width ?? "fill", surface: e.surface }, t),
|
|
26650
|
+
PageHeader: ({ props: e, slots: t }) => se(DD, e, t),
|
|
26651
|
+
Toolbar: ({ props: e, slots: t }) => se(OD, e, t),
|
|
26634
26652
|
SidebarNav: ({ props: e, bindings: t, emit: n }) => {
|
|
26635
26653
|
const [o, r] = cn(e.value, t?.value);
|
|
26636
|
-
return se(
|
|
26654
|
+
return se(xD, {
|
|
26637
26655
|
modelValue: o,
|
|
26638
|
-
groups:
|
|
26656
|
+
groups: gN(e.groups),
|
|
26639
26657
|
searchable: e.searchable,
|
|
26640
26658
|
collapsible: e.collapsible,
|
|
26641
26659
|
searchPlaceholder: e.searchPlaceholder,
|
|
@@ -26646,7 +26664,7 @@ const vN = {
|
|
|
26646
26664
|
},
|
|
26647
26665
|
Tabs: ({ props: e, bindings: t, emit: n }) => {
|
|
26648
26666
|
const [o, r] = cn(e.value, t?.value);
|
|
26649
|
-
return se(
|
|
26667
|
+
return se(FD, {
|
|
26650
26668
|
modelValue: o ?? "",
|
|
26651
26669
|
items: e.items,
|
|
26652
26670
|
ariaLabel: e.ariaLabel,
|
|
@@ -26660,9 +26678,9 @@ const vN = {
|
|
|
26660
26678
|
style: {
|
|
26661
26679
|
display: "flex",
|
|
26662
26680
|
flexDirection: e.direction ?? "column",
|
|
26663
|
-
gap:
|
|
26664
|
-
alignItems:
|
|
26665
|
-
justifyContent:
|
|
26681
|
+
gap: pN[e.gap ?? "md"],
|
|
26682
|
+
alignItems: hN[e.align ?? "stretch"],
|
|
26683
|
+
justifyContent: mN[e.justify ?? "start"],
|
|
26666
26684
|
flexWrap: e.wrap ? "wrap" : "nowrap"
|
|
26667
26685
|
}
|
|
26668
26686
|
}, t),
|
|
@@ -26746,12 +26764,12 @@ const vN = {
|
|
|
26746
26764
|
}
|
|
26747
26765
|
});
|
|
26748
26766
|
},
|
|
26749
|
-
Form: ({ props: e, slots: t, emit: n }) => se(
|
|
26767
|
+
Form: ({ props: e, slots: t, emit: n }) => se(WD, {
|
|
26750
26768
|
direction: e.direction,
|
|
26751
26769
|
fieldWidth: e.fieldWidth,
|
|
26752
26770
|
onSubmit: () => n("submit")
|
|
26753
26771
|
}, t),
|
|
26754
|
-
Field: ({ props: e, slots: t }) => se(
|
|
26772
|
+
Field: ({ props: e, slots: t }) => se(uN, {
|
|
26755
26773
|
label: e.label,
|
|
26756
26774
|
description: e.description,
|
|
26757
26775
|
help: e.help,
|
|
@@ -26780,7 +26798,7 @@ const vN = {
|
|
|
26780
26798
|
Surface: ({ props: e, slots: t }) => se(Nm, e, t),
|
|
26781
26799
|
Card: ({ props: e, bindings: t, slots: n, emit: o }) => {
|
|
26782
26800
|
const [r, i] = cn(e.expanded, t?.expanded);
|
|
26783
|
-
return se(
|
|
26801
|
+
return se(wR, {
|
|
26784
26802
|
title: e.title,
|
|
26785
26803
|
layoutType: e.layoutType,
|
|
26786
26804
|
expandable: e.expandable,
|
|
@@ -26806,7 +26824,7 @@ const vN = {
|
|
|
26806
26824
|
icon: gl(e.icon)
|
|
26807
26825
|
}, t),
|
|
26808
26826
|
Progress: ({ props: e }) => se(Rm, e),
|
|
26809
|
-
Badge: ({ props: e }) => se(ZP, { tone: e.tone },
|
|
26827
|
+
Badge: ({ props: e }) => se(ZP, { tone: e.tone }, vN(e.text)),
|
|
26810
26828
|
Dialog: ({ props: e, bindings: t, slots: n, emit: o }) => {
|
|
26811
26829
|
const [r, i] = cn(e.open, t?.open);
|
|
26812
26830
|
return se(jT, {
|
|
@@ -26828,12 +26846,12 @@ const vN = {
|
|
|
26828
26846
|
]),
|
|
26829
26847
|
CellText: ({ props: e, emit: t }) => se(QI, { ...e, onOpen: () => t("open") }),
|
|
26830
26848
|
CellStatus: ({ props: e }) => se(rR, e),
|
|
26831
|
-
ListItem: ({ props: e, slots: t }) => se(
|
|
26849
|
+
ListItem: ({ props: e, slots: t }) => se(mR, e, t),
|
|
26832
26850
|
InputGroup: ({ slots: e }) => se($C, null, e),
|
|
26833
26851
|
Loading: ({ props: e }) => se(eT, { text: e.text })
|
|
26834
|
-
}, { registry: Bd } = xk(
|
|
26835
|
-
components:
|
|
26836
|
-
}),
|
|
26852
|
+
}, { registry: Bd } = xk(fN, {
|
|
26853
|
+
components: yN
|
|
26854
|
+
}), bN = /* @__PURE__ */ D({
|
|
26837
26855
|
__name: "SynoJsonRenderer",
|
|
26838
26856
|
props: {
|
|
26839
26857
|
spec: {},
|
|
@@ -26877,18 +26895,18 @@ function $i(e) {
|
|
|
26877
26895
|
return t.overflowX && t.overflowX !== "visible" ? t.overflowX : t.overflow.split(" ")[0] || "visible";
|
|
26878
26896
|
}
|
|
26879
26897
|
const Gm = (e) => e.closest("[data-jr-key]")?.getAttribute("data-jr-key") ?? void 0;
|
|
26880
|
-
function
|
|
26898
|
+
function wN(e, t) {
|
|
26881
26899
|
for (let n = e.parentElement; n && t.contains(n); n = n.parentElement)
|
|
26882
26900
|
if ($i(n) !== "visible") return n;
|
|
26883
26901
|
}
|
|
26884
|
-
function
|
|
26902
|
+
function _N(e, t, n) {
|
|
26885
26903
|
if (e.closest("[inert]")) return;
|
|
26886
26904
|
const o = e.getBoundingClientRect();
|
|
26887
26905
|
if (o.width <= 1) return;
|
|
26888
26906
|
const r = $i(e);
|
|
26889
26907
|
if ((r === "hidden" || r === "clip") && e.scrollWidth > e.clientWidth + 1 && getComputedStyle(e).textOverflow !== "ellipsis")
|
|
26890
26908
|
return { kind: "clipped_content", detail: `content is ${e.scrollWidth - e.clientWidth}px wider than its box and is cut off` };
|
|
26891
|
-
const i =
|
|
26909
|
+
const i = wN(e, t);
|
|
26892
26910
|
if (i) {
|
|
26893
26911
|
if ($i(i) === "auto" || $i(i) === "scroll") return;
|
|
26894
26912
|
const s = i.getBoundingClientRect(), l = Math.max(o.right - s.right, s.left - o.left), c = Gm(i);
|
|
@@ -26897,25 +26915,25 @@ function bN(e, t, n) {
|
|
|
26897
26915
|
const a = Math.max(o.right - n, -o.left);
|
|
26898
26916
|
return a > 1 ? { kind: "outside_viewport", detail: `extends ${Math.round(a)}px past the ${n}px viewport` } : void 0;
|
|
26899
26917
|
}
|
|
26900
|
-
function
|
|
26901
|
-
const n = [...e.querySelectorAll("*")].map((i) => ({ element: i, finding:
|
|
26918
|
+
function SN(e, t) {
|
|
26919
|
+
const n = [...e.querySelectorAll("*")].map((i) => ({ element: i, finding: _N(i, e, t) })).filter((i) => !!i.finding), o = n.filter((i) => !n.some((a) => a !== i && a.finding.kind === i.finding.kind && i.element.contains(a.element))), r = /* @__PURE__ */ new Map();
|
|
26902
26920
|
for (const { element: i, finding: a } of o) {
|
|
26903
26921
|
const s = Gm(i), l = `${a.kind}:${s ?? ""}`;
|
|
26904
26922
|
r.has(l) || r.set(l, { ...a, key: s });
|
|
26905
26923
|
}
|
|
26906
26924
|
return [...r.values()];
|
|
26907
26925
|
}
|
|
26908
|
-
function
|
|
26926
|
+
function xN(e, t) {
|
|
26909
26927
|
const n = Object.hasOwn(e, t) ? e[t] : t.split(".").reduce((o, r) => o?.[r], e);
|
|
26910
26928
|
return typeof n == "string" ? n : t;
|
|
26911
26929
|
}
|
|
26912
|
-
const
|
|
26913
|
-
async function
|
|
26930
|
+
const kN = () => new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(e)));
|
|
26931
|
+
async function CN() {
|
|
26914
26932
|
const e = await (await fetch("/config.json")).json();
|
|
26915
26933
|
$x();
|
|
26916
|
-
const t = document.getElementById("app"), n = ({ key: o }) =>
|
|
26934
|
+
const t = document.getElementById("app"), n = ({ key: o }) => xN(e.messages ?? {}, String(o));
|
|
26917
26935
|
return hy({
|
|
26918
|
-
render: () => se(
|
|
26919
|
-
}).mount(t), await Re(), await document.fonts.ready, await
|
|
26936
|
+
render: () => se(bN, { spec: e.spec, state: { ...e.spec.state, ...e.state }, functions: { t: n } })
|
|
26937
|
+
}).mount(t), await Re(), await document.fonts.ready, await kN(), { issues: () => SN(t, innerWidth) };
|
|
26920
26938
|
}
|
|
26921
|
-
window.synoPreview =
|
|
26939
|
+
window.synoPreview = CN();
|