@synopackageland/ui 0.9.7 → 0.9.9
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/dist/components/composite/table-cell/CellText.vue.d.ts +3 -0
- package/dist/index.js +18 -14
- package/dist/json/catalog.d.ts +2 -0
- package/dist/json/registry.d.ts +34 -0
- package/dist/json-ai-prompt.md +1 -1
- package/dist/json-catalog.schema.json +11 -1
- package/dist/json-preview/preview.js +102 -97
- package/dist/json.js +3 -2
- 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 -0
- package/package.json +1 -63
|
@@ -60,13 +60,13 @@ function Zh(e) {
|
|
|
60
60
|
}
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ve(e) {
|
|
64
64
|
let t = "";
|
|
65
65
|
if (Le(e))
|
|
66
66
|
t = e;
|
|
67
67
|
else if (fe(e))
|
|
68
68
|
for (let n = 0; n < e.length; n++) {
|
|
69
|
-
const r =
|
|
69
|
+
const r = ve(e[n]);
|
|
70
70
|
r && (t += r + " ");
|
|
71
71
|
}
|
|
72
72
|
else if (Ie(e))
|
|
@@ -77,7 +77,7 @@ function ge(e) {
|
|
|
77
77
|
function Ui(e) {
|
|
78
78
|
if (!e) return null;
|
|
79
79
|
let { class: t, style: n } = e;
|
|
80
|
-
return t && !Le(t) && (e.class =
|
|
80
|
+
return t && !Le(t) && (e.class = ve(t)), n && (e.style = Me(n)), e;
|
|
81
81
|
}
|
|
82
82
|
const Wh = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Kh = /* @__PURE__ */ Ka(Wh);
|
|
83
83
|
function od(e) {
|
|
@@ -1548,7 +1548,7 @@ const zn = /* @__PURE__ */ new WeakMap(), Md = /* @__PURE__ */ Symbol("_vte"), Q
|
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
1550
|
t.targetStart = e.targetStart;
|
|
1551
|
-
const T = t.target = e.target, j = t.targetAnchor = e.targetAnchor, ee = ur(e.props), we = ee ? n : T,
|
|
1551
|
+
const T = t.target = e.target, j = t.targetAnchor = e.targetAnchor, ee = ur(e.props), we = ee ? n : T, ge = ee ? k : j;
|
|
1552
1552
|
if (s === "svg" || Yl(T) ? s = "svg" : (s === "mathml" || Xl(T)) && (s = "mathml"), x ? (f(
|
|
1553
1553
|
e.dynamicChildren,
|
|
1554
1554
|
x,
|
|
@@ -1561,7 +1561,7 @@ const zn = /* @__PURE__ */ new WeakMap(), Md = /* @__PURE__ */ Symbol("_vte"), Q
|
|
|
1561
1561
|
e,
|
|
1562
1562
|
t,
|
|
1563
1563
|
we,
|
|
1564
|
-
|
|
1564
|
+
ge,
|
|
1565
1565
|
o,
|
|
1566
1566
|
i,
|
|
1567
1567
|
s,
|
|
@@ -2141,7 +2141,7 @@ function Km(e) {
|
|
|
2141
2141
|
inheritAttrs: ee,
|
|
2142
2142
|
// assets
|
|
2143
2143
|
components: we,
|
|
2144
|
-
directives:
|
|
2144
|
+
directives: ge,
|
|
2145
2145
|
filters: de
|
|
2146
2146
|
} = t;
|
|
2147
2147
|
if (c && Hm(c, r, null), s)
|
|
@@ -2190,7 +2190,7 @@ function Km(e) {
|
|
|
2190
2190
|
});
|
|
2191
2191
|
});
|
|
2192
2192
|
} else e.exposed || (e.exposed = {});
|
|
2193
|
-
$ && e.render === sn && (e.render = $), ee != null && (e.inheritAttrs = ee), we && (e.components = we),
|
|
2193
|
+
$ && e.render === sn && (e.render = $), ee != null && (e.inheritAttrs = ee), we && (e.components = we), ge && (e.directives = ge), T && Vd(e);
|
|
2194
2194
|
}
|
|
2195
2195
|
function Hm(e, t, n = sn) {
|
|
2196
2196
|
fe(e) && (e = fa(e));
|
|
@@ -2856,7 +2856,7 @@ function hv(e, t) {
|
|
|
2856
2856
|
G,
|
|
2857
2857
|
H,
|
|
2858
2858
|
K
|
|
2859
|
-
) : X & 6 ?
|
|
2859
|
+
) : X & 6 ? ge(
|
|
2860
2860
|
b,
|
|
2861
2861
|
C,
|
|
2862
2862
|
I,
|
|
@@ -3137,7 +3137,7 @@ function hv(e, t) {
|
|
|
3137
3137
|
H,
|
|
3138
3138
|
K
|
|
3139
3139
|
);
|
|
3140
|
-
},
|
|
3140
|
+
}, ge = (b, C, I, U, M, L, G, H, K) => {
|
|
3141
3141
|
C.slotScopeIds = H, b == null ? C.shapeFlag & 512 ? M.ctx.activate(
|
|
3142
3142
|
C,
|
|
3143
3143
|
I,
|
|
@@ -3784,7 +3784,7 @@ function yv(e, t = null, n = null, r = 0, o = null, i = !1) {
|
|
|
3784
3784
|
if ($v(e) && (e = e.__vccOpts), t) {
|
|
3785
3785
|
t = Mo(t);
|
|
3786
3786
|
let { class: a, style: l } = t;
|
|
3787
|
-
a && !Le(a) && (t.class =
|
|
3787
|
+
a && !Le(a) && (t.class = ve(a)), Ie(l) && (/* @__PURE__ */ Gi(l) && !fe(l) && (l = nt({}, l)), t.style = Me(l));
|
|
3788
3788
|
}
|
|
3789
3789
|
const s = Le(e) ? 1 : df(e) ? 128 : Qi(e) ? 64 : Ie(e) ? 4 : he(e) ? 2 : 0;
|
|
3790
3790
|
return re(
|
|
@@ -3902,7 +3902,7 @@ function se(...e) {
|
|
|
3902
3902
|
const r = e[n];
|
|
3903
3903
|
for (const o in r)
|
|
3904
3904
|
if (o === "class")
|
|
3905
|
-
t.class !== r.class && (t.class =
|
|
3905
|
+
t.class !== r.class && (t.class = ve([t.class, r.class]));
|
|
3906
3906
|
else if (o === "style")
|
|
3907
3907
|
t.style = Me([t.style, r.style]);
|
|
3908
3908
|
else if (Fi(o)) {
|
|
@@ -6091,14 +6091,14 @@ const Rb = /* @__PURE__ */ R("$ZodObject", (e, t) => {
|
|
|
6091
6091
|
continue;
|
|
6092
6092
|
const O = x[$], k = typeof $ == "symbol" ? `syms[${g.indexOf($)}]` : fg($), E = `${k} in input`, T = p[$], j = T?._zod?.optin, ee = j !== void 0, we = T?._zod?.optout === "optional";
|
|
6093
6093
|
if (v.write(`const ${O} = ${y(k)};`), ee && we) {
|
|
6094
|
-
const
|
|
6094
|
+
const ge = j === "optional" ? `${O}_present` : `${O}.value !== undefined || ${O}_present`;
|
|
6095
6095
|
v.write(`
|
|
6096
6096
|
const ${O}_present = ${E};
|
|
6097
6097
|
if (!${O}.issues.length || ${O}_present) {
|
|
6098
6098
|
if (${O}.issues.length) {${S(O, k)}
|
|
6099
6099
|
}
|
|
6100
6100
|
|
|
6101
|
-
if (${
|
|
6101
|
+
if (${ge}) {
|
|
6102
6102
|
newResult[${k}] = ${O}.value;
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
@@ -9892,15 +9892,15 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
9892
9892
|
), s.push(
|
|
9893
9893
|
' Example: `"label": { "$template": "Items: ${/cart/count} | Total: ${/cart/total}" }` renders "Items: 3 | Total: 42.00" when /cart/count is 3 and /cart/total is 42.00. Inside a repeat, `{ "$template": "${name} - ${email}" }` reads name and email from each item.'
|
|
9894
9894
|
), s.push("");
|
|
9895
|
-
const
|
|
9896
|
-
if (
|
|
9895
|
+
const ge = e.data.functions;
|
|
9896
|
+
if (ge && Object.keys(ge).length > 0) {
|
|
9897
9897
|
s.push(
|
|
9898
9898
|
'5. Computed: `{ "$computed": "<functionName>", "args": { "key": <expression> } }` - calls a registered function with resolved args and returns the result.'
|
|
9899
9899
|
), s.push(
|
|
9900
9900
|
' Example: `"value": { "$computed": "fullName", "args": { "first": { "$state": "/form/firstName" }, "last": { "$state": "/form/lastName" } } }`'
|
|
9901
9901
|
), s.push(" Available functions:");
|
|
9902
9902
|
for (const me of Object.keys(
|
|
9903
|
-
|
|
9903
|
+
ge
|
|
9904
9904
|
))
|
|
9905
9905
|
s.push(` - ${me}`);
|
|
9906
9906
|
s.push("");
|
|
@@ -11065,8 +11065,8 @@ var $l = /* @__PURE__ */ D({
|
|
|
11065
11065
|
);
|
|
11066
11066
|
}
|
|
11067
11067
|
const $ = (j, ee) => j.map((we) => {
|
|
11068
|
-
const
|
|
11069
|
-
if (!
|
|
11068
|
+
const ge = e.spec.elements[we];
|
|
11069
|
+
if (!ge) {
|
|
11070
11070
|
if (!e.loading) {
|
|
11071
11071
|
const de = ee ? `in slot "${ee}" of "${S.type}"` : `as child of "${S.type}"`;
|
|
11072
11072
|
console.warn(
|
|
@@ -11077,7 +11077,7 @@ var $l = /* @__PURE__ */ D({
|
|
|
11077
11077
|
}
|
|
11078
11078
|
return Q($l, {
|
|
11079
11079
|
key: we,
|
|
11080
|
-
element:
|
|
11080
|
+
element: ge,
|
|
11081
11081
|
elementKey: we,
|
|
11082
11082
|
spec: e.spec,
|
|
11083
11083
|
registry: e.registry,
|
|
@@ -12812,7 +12812,7 @@ const Sx = ["type", "disabled", "data-disabled", "data-loading", "aria-busy"], x
|
|
|
12812
12812
|
);
|
|
12813
12813
|
return (s, a) => (w(), P("button", {
|
|
12814
12814
|
type: e.type,
|
|
12815
|
-
class:
|
|
12815
|
+
class: ve(i.value),
|
|
12816
12816
|
disabled: e.disabled || o.value,
|
|
12817
12817
|
"data-disabled": e.disabled || void 0,
|
|
12818
12818
|
"data-loading": o.value || void 0,
|
|
@@ -16017,12 +16017,12 @@ const d$ = 50, f$ = async (e, t, n) => {
|
|
|
16017
16017
|
}, p = Dl(o), h = Nl(p), g = await s.getDimensions(c), v = p === "y", y = v ? "top" : "left", S = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", _ = i.reference[h] + i.reference[p] - f[p] - i.floating[h], $ = f[p] - i.reference[p], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
16018
16018
|
let k = O ? O[x] : 0;
|
|
16019
16019
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(O))) && (k = a.floating[x] || i.floating[h]);
|
|
16020
|
-
const E = _ / 2 - $ / 2, T = k / 2 - g[h] / 2 - 1, j = Hn(d[y], T), ee = Hn(d[S], T), we = k - g[h] - ee,
|
|
16020
|
+
const E = _ / 2 - $ / 2, T = k / 2 - g[h] / 2 - 1, j = Hn(d[y], T), ee = Hn(d[S], T), we = k - g[h] - ee, ge = k / 2 - g[h] / 2 + E, de = ih(j, ge, we), Ne = !l.arrow && Qr(o) != null && ge !== de && i.reference[h] / 2 - (ge < j ? j : ee) - g[h] / 2 < 0, be = Ne ? ge < j ? ge - j : ge - we : 0;
|
|
16021
16021
|
return {
|
|
16022
16022
|
[p]: f[p] + be,
|
|
16023
16023
|
data: {
|
|
16024
16024
|
[p]: de,
|
|
16025
|
-
centerOffset:
|
|
16025
|
+
centerOffset: ge - de - be,
|
|
16026
16026
|
...Ne && {
|
|
16027
16027
|
alignmentOffset: be
|
|
16028
16028
|
}
|
|
@@ -16084,8 +16084,8 @@ const d$ = 50, f$ = async (e, t, n) => {
|
|
|
16084
16084
|
if (!be)
|
|
16085
16085
|
switch (p) {
|
|
16086
16086
|
case "bestFit": {
|
|
16087
|
-
var
|
|
16088
|
-
const Y = (
|
|
16087
|
+
var ge;
|
|
16088
|
+
const Y = (ge = j.filter((oe) => {
|
|
16089
16089
|
if (O) {
|
|
16090
16090
|
const Pe = on(oe.placement);
|
|
16091
16091
|
return Pe === S || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -16093,7 +16093,7 @@ const d$ = 50, f$ = async (e, t, n) => {
|
|
|
16093
16093
|
Pe === "y";
|
|
16094
16094
|
}
|
|
16095
16095
|
return !0;
|
|
16096
|
-
}).map((oe) => [oe.placement, oe.overflows.filter((Pe) => Pe > 0).reduce((Pe, me) => Pe + me, 0)]).sort((oe, Pe) => oe[1] - Pe[1])[0]) == null ? void 0 :
|
|
16096
|
+
}).map((oe) => [oe.placement, oe.overflows.filter((Pe) => Pe > 0).reduce((Pe, me) => Pe + me, 0)]).sort((oe, Pe) => oe[1] - Pe[1])[0]) == null ? void 0 : ge[0];
|
|
16097
16097
|
Y && (be = Y);
|
|
16098
16098
|
break;
|
|
16099
16099
|
}
|
|
@@ -17135,12 +17135,12 @@ var tA = /* @__PURE__ */ D({
|
|
|
17135
17135
|
Pt(() => {
|
|
17136
17136
|
a.value && (ee.value = window.getComputedStyle(a.value).zIndex);
|
|
17137
17137
|
});
|
|
17138
|
-
const we = A(() => k.value.arrow?.x ?? 0),
|
|
17138
|
+
const we = A(() => k.value.arrow?.x ?? 0), ge = A(() => k.value.arrow?.y ?? 0);
|
|
17139
17139
|
return eA({
|
|
17140
17140
|
placedSide: E,
|
|
17141
17141
|
onArrowChange: (de) => u.value = de,
|
|
17142
17142
|
arrowX: we,
|
|
17143
|
-
arrowY:
|
|
17143
|
+
arrowY: ge,
|
|
17144
17144
|
shouldHideArrow: j
|
|
17145
17145
|
}), (de, Ne) => (w(), P("div", {
|
|
17146
17146
|
ref_key: "floatingRef",
|
|
@@ -18561,11 +18561,11 @@ var UA = /* @__PURE__ */ D({
|
|
|
18561
18561
|
const et = _.right - O.right, ut = window.innerWidth - $.right - et, _t = window.innerWidth - x.right - ut, rt = x.width + _t, Dn = Math.max(rt, _.width), b = window.innerWidth - Vt, C = xc(ut, Vt, Math.max(Vt, b - Dn));
|
|
18562
18562
|
c.value.style.minWidth = `${rt}px`, c.value.style.right = `${C}px`;
|
|
18563
18563
|
}
|
|
18564
|
-
const k = o().map((et) => et.ref), E = window.innerHeight - Vt * 2, T = f.value.scrollHeight, j = window.getComputedStyle(d.value), ee = Number.parseInt(j.borderTopWidth, 10), we = Number.parseInt(j.paddingTop, 10),
|
|
18564
|
+
const k = o().map((et) => et.ref), E = window.innerHeight - Vt * 2, T = f.value.scrollHeight, j = window.getComputedStyle(d.value), ee = Number.parseInt(j.borderTopWidth, 10), we = Number.parseInt(j.paddingTop, 10), ge = Number.parseInt(j.borderBottomWidth, 10), de = Number.parseInt(j.paddingBottom, 10), Ne = ee + we + T + de + ge, be = Math.min(p.value.offsetHeight * 5, Ne), Y = window.getComputedStyle(f.value), oe = Number.parseInt(Y.paddingTop, 10), Pe = Number.parseInt(Y.paddingBottom, 10), me = x.top + x.height / 2 - Vt, xe = E - me, Ke = p.value.offsetHeight / 2, Tt = p.value.offsetTop + Ke, It = ee + we + Tt, nr = Ne - It;
|
|
18565
18565
|
if (It <= me) {
|
|
18566
18566
|
const et = p.value === k.at(-1);
|
|
18567
18567
|
c.value.style.bottom = "0px";
|
|
18568
|
-
const ut = d.value.clientHeight - f.value.offsetTop - f.value.offsetHeight, _t = Math.max(xe, Ke + (et ? Pe : 0) + ut +
|
|
18568
|
+
const ut = d.value.clientHeight - f.value.offsetTop - f.value.offsetHeight, _t = Math.max(xe, Ke + (et ? Pe : 0) + ut + ge), rt = It + _t;
|
|
18569
18569
|
c.value.style.height = `${rt}px`;
|
|
18570
18570
|
} else {
|
|
18571
18571
|
const et = p.value === k[0];
|
|
@@ -19975,7 +19975,7 @@ const qO = ["for"], jO = {
|
|
|
19975
19975
|
n.label || n.description ? (w(), P("label", {
|
|
19976
19976
|
key: 0,
|
|
19977
19977
|
for: l.value,
|
|
19978
|
-
class:
|
|
19978
|
+
class: ve(["ui-checkbox-text min-w-0 font-normal", n.disabled ? "cursor-default" : "cursor-pointer"])
|
|
19979
19979
|
}, [
|
|
19980
19980
|
n.label ? (w(), P("span", jO, ie(n.label), 1)) : W("", !0),
|
|
19981
19981
|
n.description ? (w(), P("span", BO, ie(n.description), 1)) : W("", !0)
|
|
@@ -20043,7 +20043,7 @@ const qO = ["for"], jO = {
|
|
|
20043
20043
|
default: F(() => [
|
|
20044
20044
|
(w(!0), P(Se, null, St(n.options, (c) => (w(), P("label", {
|
|
20045
20045
|
key: c.value,
|
|
20046
|
-
class:
|
|
20046
|
+
class: ve(["flex items-start gap-2 text-[13px] text-[var(--ui-text)]", n.disabled || c.disabled ? "cursor-default" : "cursor-pointer"])
|
|
20047
20047
|
}, [
|
|
20048
20048
|
J(m($A), {
|
|
20049
20049
|
value: c.value,
|
|
@@ -20285,7 +20285,7 @@ const tE = { key: 0 }, nE = { key: 1 }, rE = { key: 2 }, oE = {
|
|
|
20285
20285
|
value: j.value,
|
|
20286
20286
|
"text-value": j.label,
|
|
20287
20287
|
disabled: j.disabled,
|
|
20288
|
-
class:
|
|
20288
|
+
class: ve(["relative flex h-8 select-none items-center rounded-[4px] py-1 pr-8 text-[13px] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)] data-[highlighted]:text-[var(--ui-primary-active)] data-[disabled]:opacity-40", T.label && T.indent ? "pl-5" : "pl-2.5"])
|
|
20289
20289
|
}, {
|
|
20290
20290
|
default: F(() => [
|
|
20291
20291
|
J(m(uO), null, {
|
|
@@ -20336,7 +20336,7 @@ const tE = { key: 0 }, nE = { key: 1 }, rE = { key: 2 }, oE = {
|
|
|
20336
20336
|
},
|
|
20337
20337
|
setup(e) {
|
|
20338
20338
|
return (t, n) => (w(), P("span", {
|
|
20339
|
-
class:
|
|
20339
|
+
class: ve([
|
|
20340
20340
|
"inline-flex min-h-5 items-center gap-1.5 rounded-full px-2 py-0.5 text-[12px] font-normal leading-none tabular-nums",
|
|
20341
20341
|
e.tone === "neutral" && "bg-[var(--ui-neutral-soft)] text-[var(--ui-neutral-text)]",
|
|
20342
20342
|
e.tone === "info" && "bg-[var(--ui-info-soft)] text-[var(--ui-info-text)]",
|
|
@@ -20426,7 +20426,7 @@ const tE = { key: 0 }, nE = { key: 1 }, rE = { key: 2 }, oE = {
|
|
|
20426
20426
|
danger: "bg-[var(--ui-danger)]"
|
|
20427
20427
|
}, i = A(() => r.max <= 0 ? 0 : Math.min(100, Math.max(0, r.value / r.max * 100)));
|
|
20428
20428
|
return (s, a) => (w(), P("div", {
|
|
20429
|
-
class:
|
|
20429
|
+
class: ve(m(t).class),
|
|
20430
20430
|
style: Me(m(t).style),
|
|
20431
20431
|
"data-syno-pkg-land-ui": ""
|
|
20432
20432
|
}, [
|
|
@@ -20444,7 +20444,7 @@ const tE = { key: 0 }, nE = { key: 1 }, rE = { key: 2 }, oE = {
|
|
|
20444
20444
|
"data-tone": e.tone
|
|
20445
20445
|
}, n()), [
|
|
20446
20446
|
re("div", {
|
|
20447
|
-
class:
|
|
20447
|
+
class: ve(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", o[e.tone]]),
|
|
20448
20448
|
style: Me({ width: `${i.value}%` })
|
|
20449
20449
|
}, null, 6)
|
|
20450
20450
|
], 16, wE)
|
|
@@ -20493,7 +20493,7 @@ const tE = { key: 0 }, nE = { key: 1 }, rE = { key: 2 }, oE = {
|
|
|
20493
20493
|
},
|
|
20494
20494
|
setup(e) {
|
|
20495
20495
|
return (t, n) => (w(), P("section", {
|
|
20496
|
-
class:
|
|
20496
|
+
class: ve([
|
|
20497
20497
|
"rounded-[var(--ui-radius-md)] bg-[var(--ui-surface)]",
|
|
20498
20498
|
e.border && "border border-[var(--ui-border)]",
|
|
20499
20499
|
e.raised && "shadow-[var(--ui-shadow-menu)]",
|
|
@@ -20800,7 +20800,7 @@ const VE = /* @__PURE__ */ D({
|
|
|
20800
20800
|
default: F(() => [
|
|
20801
20801
|
re("header", {
|
|
20802
20802
|
ref: "handle",
|
|
20803
|
-
class:
|
|
20803
|
+
class: ve(["flex min-h-11 shrink-0 items-start justify-between gap-4 border-b border-[var(--ui-border-subtle)] px-4 py-3", m(l) && "cursor-move touch-none select-none"]),
|
|
20804
20804
|
"data-ui-drag-handle": m(l) ? "" : void 0,
|
|
20805
20805
|
onPointerdown: y[1] || (y[1] = //@ts-ignore
|
|
20806
20806
|
(...S) => m(c) && m(c)(...S))
|
|
@@ -20847,7 +20847,7 @@ const VE = /* @__PURE__ */ D({
|
|
|
20847
20847
|
])) : W("", !0),
|
|
20848
20848
|
v.$slots.footer ? (w(), P("footer", {
|
|
20849
20849
|
key: 1,
|
|
20850
|
-
class:
|
|
20850
|
+
class: ve(["flex shrink-0 flex-wrap min-h-12 items-center justify-end gap-2 px-4 py-2.5", p() && "border-t border-[var(--ui-border-subtle)]"])
|
|
20851
20851
|
}, [
|
|
20852
20852
|
N(v.$slots, "footer")
|
|
20853
20853
|
], 2)) : W("", !0)
|
|
@@ -20984,7 +20984,7 @@ const YE = ["data-direction"], XE = {
|
|
|
20984
20984
|
ref: o,
|
|
20985
20985
|
"data-direction": s.value ? "vertical" : "horizontal",
|
|
20986
20986
|
style: Me(a.value),
|
|
20987
|
-
class:
|
|
20987
|
+
class: ve([
|
|
20988
20988
|
"grid min-h-10 gap-y-1 py-1.5",
|
|
20989
20989
|
n.value === "start" ? "items-start" : "items-center"
|
|
20990
20990
|
]),
|
|
@@ -20992,7 +20992,7 @@ const YE = ["data-direction"], XE = {
|
|
|
20992
20992
|
}, [
|
|
20993
20993
|
re("div", {
|
|
20994
20994
|
"data-settings-label": "",
|
|
20995
|
-
class:
|
|
20995
|
+
class: ve(["min-w-0 break-words [word-break:keep-all] text-left text-[13px] text-[var(--ui-text)]", n.value === "start" && "pt-1"])
|
|
20996
20996
|
}, [
|
|
20997
20997
|
De(ie(e.label), 1),
|
|
20998
20998
|
e.required ? (w(), P("span", XE, "*")) : W("", !0)
|
|
@@ -21071,7 +21071,7 @@ const n1 = ["data-collapsible", "aria-busy"], r1 = {
|
|
|
21071
21071
|
(...f) => m(s) && m(s)(...f))
|
|
21072
21072
|
}, [
|
|
21073
21073
|
J(m(ls), {
|
|
21074
|
-
class:
|
|
21074
|
+
class: ve(["size-4 shrink-0 transition-transform", !m(i) && "-rotate-90"]),
|
|
21075
21075
|
"aria-hidden": "true"
|
|
21076
21076
|
}, null, 8, ["class"]),
|
|
21077
21077
|
re("span", i1, [
|
|
@@ -21095,7 +21095,7 @@ const n1 = ["data-collapsible", "aria-busy"], r1 = {
|
|
|
21095
21095
|
])) : W("", !0),
|
|
21096
21096
|
Mr(re("div", {
|
|
21097
21097
|
id: m(o),
|
|
21098
|
-
class:
|
|
21098
|
+
class: ve(["ui-settings-section-body", c.value && "pt-3"])
|
|
21099
21099
|
}, [
|
|
21100
21100
|
e.description || u.$slots.description ? (w(), P("p", d1, [
|
|
21101
21101
|
N(u.$slots, "description", {}, () => [
|
|
@@ -21151,7 +21151,7 @@ const n1 = ["data-collapsible", "aria-busy"], r1 = {
|
|
|
21151
21151
|
e.title ? (w(), P("div", v1, ie(e.title), 1)) : W("", !0),
|
|
21152
21152
|
s.$slots.default || e.code ? (w(), P("div", {
|
|
21153
21153
|
key: 1,
|
|
21154
|
-
class:
|
|
21154
|
+
class: ve(["flex flex-wrap items-baseline gap-x-2", e.title && "mt-0.5"])
|
|
21155
21155
|
}, [
|
|
21156
21156
|
s.$slots.default ? (w(), P("div", g1, [
|
|
21157
21157
|
N(s.$slots, "default")
|
|
@@ -21248,7 +21248,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21248
21248
|
ref_key: "viewport",
|
|
21249
21249
|
ref: t,
|
|
21250
21250
|
"data-ui-scroll-edges-viewport": "",
|
|
21251
|
-
class:
|
|
21251
|
+
class: ve(e.viewportClass),
|
|
21252
21252
|
style: Me(e.viewportStyle)
|
|
21253
21253
|
}, [
|
|
21254
21254
|
N(o.$slots, "default")
|
|
@@ -21323,7 +21323,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21323
21323
|
re("tr", null, [
|
|
21324
21324
|
(w(!0), P(Se, null, St(m(n).columns, (u) => (w(), P("th", {
|
|
21325
21325
|
key: u.key,
|
|
21326
|
-
class:
|
|
21326
|
+
class: ve(["border-b border-[var(--ui-border)] px-3 py-2 font-medium", u.align === "right" ? "text-right" : u.align === "center" ? "text-center" : "text-left"]),
|
|
21327
21327
|
style: Me(u.width ? { width: u.width } : void 0)
|
|
21328
21328
|
}, ie(u.label), 7))), 128))
|
|
21329
21329
|
])
|
|
@@ -21340,7 +21340,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21340
21340
|
}, [
|
|
21341
21341
|
(w(!0), P(Se, null, St(m(n).columns, (f) => (w(), P("td", {
|
|
21342
21342
|
key: f.key,
|
|
21343
|
-
class:
|
|
21343
|
+
class: ve([
|
|
21344
21344
|
// The padding only shows in a row a two-line cell makes taller.
|
|
21345
21345
|
"px-3 py-1.5 text-[var(--ui-text)]",
|
|
21346
21346
|
m(n).compact ? "h-9" : "h-11",
|
|
@@ -21363,7 +21363,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21363
21363
|
}))
|
|
21364
21364
|
], 8, R1));
|
|
21365
21365
|
}
|
|
21366
|
-
}), B1 = ["data-layout"], U1 = ["title", "disabled"], Z1 = ["title"], W1 = ["title"], K1 = /* @__PURE__ */ D({
|
|
21366
|
+
}), B1 = ["data-layout", "data-wrap"], U1 = ["title", "disabled"], Z1 = ["title"], W1 = ["title"], K1 = /* @__PURE__ */ D({
|
|
21367
21367
|
__name: "CellText",
|
|
21368
21368
|
props: {
|
|
21369
21369
|
text: {},
|
|
@@ -21371,13 +21371,16 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21371
21371
|
layout: { default: "stacked" },
|
|
21372
21372
|
icon: {},
|
|
21373
21373
|
openLabel: {},
|
|
21374
|
-
openDisabled: { type: Boolean, default: !1 }
|
|
21374
|
+
openDisabled: { type: Boolean, default: !1 },
|
|
21375
|
+
wrap: { type: Boolean, default: !1 }
|
|
21375
21376
|
},
|
|
21376
21377
|
emits: ["open"],
|
|
21377
21378
|
setup(e) {
|
|
21378
|
-
|
|
21379
|
+
const t = e, n = A(() => t.wrap ? "whitespace-normal [overflow-wrap:anywhere]" : "truncate");
|
|
21380
|
+
return (r, o) => (w(), P("div", {
|
|
21379
21381
|
class: "flex min-w-0 items-center gap-[var(--ui-space-2)]",
|
|
21380
21382
|
"data-layout": e.layout,
|
|
21383
|
+
"data-wrap": e.wrap ? "" : void 0,
|
|
21381
21384
|
"data-syno-pkg-land-ui": ""
|
|
21382
21385
|
}, [
|
|
21383
21386
|
e.icon ? (w(), Z($n(e.icon), {
|
|
@@ -21387,7 +21390,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21387
21390
|
})) : W("", !0),
|
|
21388
21391
|
re("div", {
|
|
21389
21392
|
"data-ui-cell-lines": "",
|
|
21390
|
-
class:
|
|
21393
|
+
class: ve([
|
|
21391
21394
|
"min-w-0 flex-1",
|
|
21392
21395
|
e.layout === "inline" ? "flex items-baseline gap-x-[var(--ui-space-2)]" : "flex flex-col gap-y-0.5"
|
|
21393
21396
|
])
|
|
@@ -21398,32 +21401,33 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21398
21401
|
"data-ui-cell-primary": "",
|
|
21399
21402
|
title: e.openLabel,
|
|
21400
21403
|
disabled: e.openDisabled,
|
|
21401
|
-
class: "m-0 min-w-0 max-w-full
|
|
21402
|
-
onClick:
|
|
21404
|
+
class: ve([n.value, "m-0 min-w-0 max-w-full rounded-[var(--ui-radius-sm)] border-0 bg-transparent p-0 text-left text-[length:inherit] leading-5 text-[var(--ui-primary)] outline-none hover:underline focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)] disabled:cursor-default disabled:opacity-50 disabled:hover:no-underline"]),
|
|
21405
|
+
onClick: o[0] || (o[0] = (i) => r.$emit("open"))
|
|
21403
21406
|
}, [
|
|
21404
|
-
N(
|
|
21407
|
+
N(r.$slots, "default", {}, () => [
|
|
21405
21408
|
De(ie(e.text), 1)
|
|
21406
21409
|
])
|
|
21407
|
-
],
|
|
21410
|
+
], 10, U1)) : (w(), P("span", {
|
|
21408
21411
|
key: 1,
|
|
21409
21412
|
"data-ui-cell-primary": "",
|
|
21410
21413
|
title: e.text,
|
|
21411
|
-
class: "min-w-0
|
|
21414
|
+
class: ve([n.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
|
|
21412
21415
|
}, [
|
|
21413
|
-
N(
|
|
21416
|
+
N(r.$slots, "default", {}, () => [
|
|
21414
21417
|
De(ie(e.text), 1)
|
|
21415
21418
|
])
|
|
21416
|
-
],
|
|
21417
|
-
e.secondary ||
|
|
21419
|
+
], 10, Z1)),
|
|
21420
|
+
e.secondary || r.$slots.secondary ? (w(), P("span", {
|
|
21418
21421
|
key: 2,
|
|
21419
21422
|
"data-ui-cell-secondary": "",
|
|
21420
21423
|
title: e.secondary,
|
|
21421
|
-
class:
|
|
21422
|
-
"min-w-0
|
|
21424
|
+
class: ve([
|
|
21425
|
+
"min-w-0 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-text-secondary)]",
|
|
21426
|
+
n.value,
|
|
21423
21427
|
e.layout === "inline" && "shrink-0"
|
|
21424
21428
|
])
|
|
21425
21429
|
}, [
|
|
21426
|
-
N(
|
|
21430
|
+
N(r.$slots, "secondary", {}, () => [
|
|
21427
21431
|
De(ie(e.secondary), 1)
|
|
21428
21432
|
])
|
|
21429
21433
|
], 10, W1)) : W("", !0)
|
|
@@ -21569,7 +21573,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21569
21573
|
default: F(() => [
|
|
21570
21574
|
e.hasHeader ? (w(), P("header", {
|
|
21571
21575
|
key: 0,
|
|
21572
|
-
class:
|
|
21576
|
+
class: ve(h.value)
|
|
21573
21577
|
}, [
|
|
21574
21578
|
d.value ? (w(), P("h3", {
|
|
21575
21579
|
key: 0,
|
|
@@ -21595,7 +21599,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21595
21599
|
(...S) => m(u) && m(u)(...S))
|
|
21596
21600
|
}, [
|
|
21597
21601
|
J(m(ls), {
|
|
21598
|
-
class:
|
|
21602
|
+
class: ve(m(bn)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !m(c) && "-rotate-90")),
|
|
21599
21603
|
"aria-hidden": "true"
|
|
21600
21604
|
}, null, 8, ["class"])
|
|
21601
21605
|
], 8, cP)) : W("", !0)
|
|
@@ -21603,7 +21607,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21603
21607
|
], 2)) : W("", !0),
|
|
21604
21608
|
Mr(re("div", {
|
|
21605
21609
|
id: m(l),
|
|
21606
|
-
class:
|
|
21610
|
+
class: ve(g.value),
|
|
21607
21611
|
role: e.expandable ? "region" : void 0,
|
|
21608
21612
|
"aria-labelledby": e.expandable && d.value ? m(a) : void 0
|
|
21609
21613
|
}, [
|
|
@@ -21615,7 +21619,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21615
21619
|
]),
|
|
21616
21620
|
v.$slots.footer && !e.loading ? (w(), P("footer", {
|
|
21617
21621
|
key: 1,
|
|
21618
|
-
class:
|
|
21622
|
+
class: ve(m(bn)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] px-5 py-2.5", o[e.footerAlign]))
|
|
21619
21623
|
}, [
|
|
21620
21624
|
N(v.$slots, "footer")
|
|
21621
21625
|
], 2)) : W("", !0)
|
|
@@ -21696,7 +21700,7 @@ const T1 = ["data-overflow-start", "data-overflow-end"], I1 = /* @__PURE__ */ D(
|
|
|
21696
21700
|
e.name ? (w(), P("span", {
|
|
21697
21701
|
key: 1,
|
|
21698
21702
|
"data-ui-brand-name": "",
|
|
21699
|
-
class:
|
|
21703
|
+
class: ve(e.collapsed ? "sr-only" : "min-w-0 truncate")
|
|
21700
21704
|
}, ie(e.name), 3)) : W("", !0)
|
|
21701
21705
|
], 64));
|
|
21702
21706
|
}
|
|
@@ -21790,22 +21794,22 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
21790
21794
|
Y.button === 0 && (Y.preventDefault(), T = { x: Y.clientX, width: h.width.value }, E.value = !0, document.addEventListener("pointermove", j), document.addEventListener("pointerup", ee), document.addEventListener("pointercancel", ee));
|
|
21791
21795
|
}
|
|
21792
21796
|
In(ee);
|
|
21793
|
-
function
|
|
21797
|
+
function ge(Y = !1) {
|
|
21794
21798
|
u.value && (u.value = !1, Y && Ue(() => s.value?.focus()));
|
|
21795
21799
|
}
|
|
21796
21800
|
function de() {
|
|
21797
21801
|
u.value = !0, Ue(() => i.value?.querySelector("[data-ui-close-navigation]")?.focus());
|
|
21798
21802
|
}
|
|
21799
21803
|
ue(c, (Y) => {
|
|
21800
|
-
Y ||
|
|
21804
|
+
Y || ge();
|
|
21801
21805
|
});
|
|
21802
21806
|
function Ne(Y) {
|
|
21803
|
-
!c.value || !u.value || Y.target instanceof Element && Y.target.closest("[data-nav-item],a[href]") &&
|
|
21807
|
+
!c.value || !u.value || Y.target instanceof Element && Y.target.closest("[data-nav-item],a[href]") && ge();
|
|
21804
21808
|
}
|
|
21805
21809
|
function be(Y) {
|
|
21806
21810
|
if (!(!c.value || !u.value)) {
|
|
21807
21811
|
if (Y.key === "Escape")
|
|
21808
|
-
Y.preventDefault(),
|
|
21812
|
+
Y.preventDefault(), ge(!0);
|
|
21809
21813
|
else if (Y.key === "Tab" && i.value) {
|
|
21810
21814
|
const oe = Array.from(i.value.querySelectorAll(
|
|
21811
21815
|
'button:not([disabled]),a[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])'
|
|
@@ -21818,7 +21822,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
21818
21822
|
return (Y, oe) => (w(), P("section", {
|
|
21819
21823
|
ref_key: "root",
|
|
21820
21824
|
ref: o,
|
|
21821
|
-
class:
|
|
21825
|
+
class: ve(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", Y.$slots.sidebar && !c.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1"]),
|
|
21822
21826
|
style: Me({ "--ui-app-sidebar-width": y.value, minHeight: t.minHeight }),
|
|
21823
21827
|
"data-ui-layout-mode": l.value,
|
|
21824
21828
|
"data-ui-mobile-open": c.value && u.value ? "true" : void 0,
|
|
@@ -21832,7 +21836,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
21832
21836
|
key: 0,
|
|
21833
21837
|
"data-ui-mobile-backdrop": "",
|
|
21834
21838
|
"aria-hidden": "true",
|
|
21835
|
-
onClick: oe[0] || (oe[0] = (Pe) =>
|
|
21839
|
+
onClick: oe[0] || (oe[0] = (Pe) => ge())
|
|
21836
21840
|
})) : W("", !0),
|
|
21837
21841
|
Y.$slots.sidebar ? (w(), P("aside", {
|
|
21838
21842
|
key: 1,
|
|
@@ -21861,7 +21865,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
21861
21865
|
"data-ui-close-navigation": "",
|
|
21862
21866
|
type: "button",
|
|
21863
21867
|
"aria-label": m(r)("Close"),
|
|
21864
|
-
onClick: oe[1] || (oe[1] = (Pe) =>
|
|
21868
|
+
onClick: oe[1] || (oe[1] = (Pe) => ge(!0))
|
|
21865
21869
|
}, [
|
|
21866
21870
|
J(m(us), {
|
|
21867
21871
|
size: 20,
|
|
@@ -22025,7 +22029,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22025
22029
|
disabled: u.disabled,
|
|
22026
22030
|
"aria-current": u.selectable && n.modelValue === u.key ? "page" : void 0,
|
|
22027
22031
|
"aria-expanded": o(u),
|
|
22028
|
-
class:
|
|
22032
|
+
class: ve(s(u)),
|
|
22029
22033
|
style: Me(i(n.depth)),
|
|
22030
22034
|
onClick: (d) => {
|
|
22031
22035
|
r("toggle", u.key), u.selectable && r("select", u);
|
|
@@ -22033,7 +22037,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22033
22037
|
}, [
|
|
22034
22038
|
J(m(zx), {
|
|
22035
22039
|
"data-nav-chevron": "",
|
|
22036
|
-
class:
|
|
22040
|
+
class: ve(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", o(u) && "rotate-90"]),
|
|
22037
22041
|
"aria-hidden": "true"
|
|
22038
22042
|
}, null, 8, ["class"]),
|
|
22039
22043
|
u.icon ? (w(), Z($n(u.icon), {
|
|
@@ -22043,7 +22047,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22043
22047
|
})) : W("", !0),
|
|
22044
22048
|
re("span", {
|
|
22045
22049
|
"data-nav-label": "",
|
|
22046
|
-
class:
|
|
22050
|
+
class: ve(n.collapsed ? "sr-only" : Gc)
|
|
22047
22051
|
}, ie(u.label), 3),
|
|
22048
22052
|
u.badge !== void 0 ? (w(), P("span", VP, ie(u.badge), 1)) : W("", !0)
|
|
22049
22053
|
], 14, FP)) : (w(), P("button", {
|
|
@@ -22052,7 +22056,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22052
22056
|
"data-nav-item": "",
|
|
22053
22057
|
disabled: u.disabled,
|
|
22054
22058
|
"aria-current": n.modelValue === u.key ? "page" : void 0,
|
|
22055
|
-
class:
|
|
22059
|
+
class: ve(s(u)),
|
|
22056
22060
|
style: Me(i(n.depth)),
|
|
22057
22061
|
onClick: (d) => r("select", u)
|
|
22058
22062
|
}, [
|
|
@@ -22063,7 +22067,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22063
22067
|
})) : W("", !0),
|
|
22064
22068
|
re("span", {
|
|
22065
22069
|
"data-nav-label": "",
|
|
22066
|
-
class:
|
|
22070
|
+
class: ve(n.collapsed ? "sr-only" : Gc)
|
|
22067
22071
|
}, ie(u.label), 3),
|
|
22068
22072
|
u.badge !== void 0 ? (w(), P("span", qP, ie(u.badge), 1)) : W("", !0)
|
|
22069
22073
|
], 14, LP))
|
|
@@ -22169,7 +22173,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22169
22173
|
}, null, 8, ["modelValue", "placeholder", "clear-label"])) : W("", !0),
|
|
22170
22174
|
(w(!0), P(Se, null, St(c.value, ({ group: $, id: O, items: k }, E) => (w(), P("section", {
|
|
22171
22175
|
key: O,
|
|
22172
|
-
class:
|
|
22176
|
+
class: ve(E > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
|
|
22173
22177
|
}, [
|
|
22174
22178
|
$.label && m(r).collapsible && !m(i) ? (w(), P("button", {
|
|
22175
22179
|
key: 0,
|
|
@@ -22181,7 +22185,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22181
22185
|
onClick: (T) => d(O)
|
|
22182
22186
|
}, [
|
|
22183
22187
|
J(m(ls), {
|
|
22184
|
-
class:
|
|
22188
|
+
class: ve(["size-3 shrink-0 transition-transform", !f(O) && "-rotate-90"]),
|
|
22185
22189
|
"aria-hidden": "true"
|
|
22186
22190
|
}, null, 8, ["class"]),
|
|
22187
22191
|
De(" " + ie($.label), 1)
|
|
@@ -22249,7 +22253,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22249
22253
|
setup(e) {
|
|
22250
22254
|
return (t, n) => (w(), P("div", {
|
|
22251
22255
|
"data-ui-page-header": "",
|
|
22252
|
-
class:
|
|
22256
|
+
class: ve([e.sticky && "sticky top-0 z-[2] bg-[var(--ui-surface)]", "flex items-start justify-between gap-[var(--ui-space-6)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]"]),
|
|
22253
22257
|
"data-syno-pkg-land-ui": ""
|
|
22254
22258
|
}, [
|
|
22255
22259
|
re("div", XP, [
|
|
@@ -22317,7 +22321,7 @@ const yP = ["data-ui-layout-mode", "data-ui-mobile-open", "data-ui-motion-ready"
|
|
|
22317
22321
|
disabled: c.disabled,
|
|
22318
22322
|
"data-ui-tab-value": c.value,
|
|
22319
22323
|
"aria-current": r.modelValue === c.value ? "page" : void 0,
|
|
22320
|
-
class:
|
|
22324
|
+
class: ve([
|
|
22321
22325
|
"relative h-[30px] shrink-0 border-0 bg-transparent px-2 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",
|
|
22322
22326
|
r.modelValue === c.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] hover:text-[var(--ui-primary)]"
|
|
22323
22327
|
]),
|
|
@@ -22634,7 +22638,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22634
22638
|
function k() {
|
|
22635
22639
|
x.value = y.value;
|
|
22636
22640
|
}
|
|
22637
|
-
const E = /* @__PURE__ */ V(""), T = /* @__PURE__ */ V(""), j = /* @__PURE__ */ V(""), ee = /* @__PURE__ */ V(""), we = /* @__PURE__ */ V(!1),
|
|
22641
|
+
const E = /* @__PURE__ */ V(""), T = /* @__PURE__ */ V(""), j = /* @__PURE__ */ V(""), ee = /* @__PURE__ */ V(""), we = /* @__PURE__ */ V(!1), ge = /* @__PURE__ */ V(!1), de = A(() => o.disabled === !0 || we.value), Ne = A(() => ee.value || a.value.validateStatus || E.value), be = A(() => Ne.value === "error"), Y = A(() => j.value || T.value || a.value.help), oe = A(() => j.value ? j.value : be.value && !a.value.hideValidateMessage && T.value || a.value.help), Pe = eo(u), me = A(() => {
|
|
22638
22642
|
const B = a.value.direction ?? l?.direction ?? "auto";
|
|
22639
22643
|
return B === "auto" ? Pe.value > 0 && Pe.value < 520 ? "vertical" : "horizontal" : B;
|
|
22640
22644
|
}), xe = A(() => {
|
|
@@ -22652,7 +22656,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22652
22656
|
const B = be.value ? "text-[var(--ui-danger)]" : Ne.value === "warning" ? "text-[var(--ui-warning)]" : Ne.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
|
|
22653
22657
|
return xe.value === "text" ? bn("mt-1 text-[12px] leading-4", B) : bn(
|
|
22654
22658
|
"absolute left-0 top-full z-[1100] mt-1 max-w-64 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip-bg)] px-2.5 py-1.5 text-[12px] leading-4 text-[var(--ui-tooltip-fg)] shadow-[var(--ui-shadow-menu)] transition-opacity duration-[var(--ui-motion-fast)]",
|
|
22655
|
-
|
|
22659
|
+
ge.value ? "opacity-100" : "pointer-events-none opacity-0"
|
|
22656
22660
|
);
|
|
22657
22661
|
}), _t = { afterItem: "shrink-0 self-center" };
|
|
22658
22662
|
function rt() {
|
|
@@ -22671,7 +22675,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22671
22675
|
defaultTrigger: a.value.defaultValidateTrigger,
|
|
22672
22676
|
text: r
|
|
22673
22677
|
});
|
|
22674
|
-
return ye !== Dn || (T.value = Ce ?? "", E.value = Ce ? "error" : "success", Ce && xe.value === "popup" && (
|
|
22678
|
+
return ye !== Dn || (T.value = Ce ?? "", E.value = Ce ? "error" : "success", Ce && xe.value === "popup" && (ge.value = !0), i("validated", { message: Ce ?? "", status: E.value })), Ce;
|
|
22675
22679
|
}
|
|
22676
22680
|
async function C(B = null) {
|
|
22677
22681
|
return !await b(B);
|
|
@@ -22683,22 +22687,22 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22683
22687
|
b("change");
|
|
22684
22688
|
}
|
|
22685
22689
|
function M(B) {
|
|
22686
|
-
B !== void 0 && (j.value = B),
|
|
22690
|
+
B !== void 0 && (j.value = B), ge.value = !0;
|
|
22687
22691
|
}
|
|
22688
22692
|
function L() {
|
|
22689
|
-
|
|
22693
|
+
ge.value = !1;
|
|
22690
22694
|
}
|
|
22691
22695
|
function G(B, ne = "error") {
|
|
22692
|
-
j.value = B, ee.value = ne, xe.value === "popup" && (
|
|
22696
|
+
j.value = B, ee.value = ne, xe.value === "popup" && (ge.value = !0);
|
|
22693
22697
|
}
|
|
22694
22698
|
function H() {
|
|
22695
|
-
j.value = "", ee.value = "",
|
|
22699
|
+
j.value = "", ee.value = "", ge.value = !1;
|
|
22696
22700
|
}
|
|
22697
22701
|
function K(B) {
|
|
22698
22702
|
we.value = B;
|
|
22699
22703
|
}
|
|
22700
22704
|
function q() {
|
|
22701
|
-
Dn++, E.value = "", T.value = "", j.value = "", ee.value = "",
|
|
22705
|
+
Dn++, E.value = "", T.value = "", j.value = "", ee.value = "", ge.value = !1, o.initialValue !== void 0 && (g.value ? i("update:modelValue", o.initialValue) : v.value = o.initialValue);
|
|
22702
22706
|
}
|
|
22703
22707
|
function ce() {
|
|
22704
22708
|
const B = u.value;
|
|
@@ -22778,7 +22782,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22778
22782
|
"data-form-item": "",
|
|
22779
22783
|
"data-direction": me.value,
|
|
22780
22784
|
style: Me(nr.value),
|
|
22781
|
-
class:
|
|
22785
|
+
class: ve(m(bn)("min-w-0", be.value && !m(a).hideValidateStatusCls && "has-error")),
|
|
22782
22786
|
"data-status": Ne.value || void 0,
|
|
22783
22787
|
"data-syno-pkg-land-ui": "",
|
|
22784
22788
|
onMouseenter: ne[1] || (ne[1] = (ye) => xe.value === "popup" && M()),
|
|
@@ -22790,7 +22794,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22790
22794
|
key: 0,
|
|
22791
22795
|
"data-form-label": "",
|
|
22792
22796
|
style: Me(et.value),
|
|
22793
|
-
class:
|
|
22797
|
+
class: ve([
|
|
22794
22798
|
"min-w-0 shrink-0 break-words [word-break:keep-all] text-[13px] leading-5 text-[var(--ui-text)]",
|
|
22795
22799
|
me.value === "horizontal" ? "pt-[5px] text-left" : void 0,
|
|
22796
22800
|
m(a).disableLabel || de.value ? "opacity-40" : void 0
|
|
@@ -22809,7 +22813,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22809
22813
|
], 8, $T)
|
|
22810
22814
|
], 6)) : W("", !0),
|
|
22811
22815
|
re("div", {
|
|
22812
|
-
class:
|
|
22816
|
+
class: ve(["relative min-w-0 flex-1", m(a).disableControl ? "opacity-40" : void 0])
|
|
22813
22817
|
}, [
|
|
22814
22818
|
re("div", OT, [
|
|
22815
22819
|
N(B.$slots, "before"),
|
|
@@ -22825,7 +22829,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22825
22829
|
Tt.value ? (w(), P("div", {
|
|
22826
22830
|
key: 0,
|
|
22827
22831
|
id: f.description,
|
|
22828
|
-
class:
|
|
22832
|
+
class: ve([
|
|
22829
22833
|
"mt-1 text-[12px] leading-4 text-[var(--ui-text-secondary)]",
|
|
22830
22834
|
m(a).disableDescription || de.value ? "opacity-40" : void 0
|
|
22831
22835
|
])
|
|
@@ -22838,7 +22842,7 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
22838
22842
|
key: 1,
|
|
22839
22843
|
id: f.message,
|
|
22840
22844
|
role: "alert",
|
|
22841
|
-
class:
|
|
22845
|
+
class: ve(ut.value)
|
|
22842
22846
|
}, [
|
|
22843
22847
|
N(B.$slots, "status", { field: le }, () => [
|
|
22844
22848
|
De(ie(oe.value), 1)
|
|
@@ -23158,10 +23162,11 @@ const kT = ["data-direction", "data-status"], $T = ["id", "for"], AT = {
|
|
|
23158
23162
|
secondary: z().optional(),
|
|
23159
23163
|
layout: Oe(["stacked", "inline"]).optional(),
|
|
23160
23164
|
openLabel: z().optional(),
|
|
23161
|
-
openDisabled: _e().optional()
|
|
23165
|
+
openDisabled: _e().optional(),
|
|
23166
|
+
wrap: _e().optional()
|
|
23162
23167
|
}),
|
|
23163
23168
|
events: ["open"],
|
|
23164
|
-
description: 'Main text with secondary information (size, time, path), truncated with a tooltip. With openLabel the main text is a link-styled button that emits open, e.g. "Open in File Station".'
|
|
23169
|
+
description: 'Main text with secondary information (size, time, path), truncated with a tooltip; wrap: true wraps both lines instead. With openLabel the main text is a link-styled button that emits open, e.g. "Open in File Station".'
|
|
23165
23170
|
},
|
|
23166
23171
|
CellStatus: {
|
|
23167
23172
|
props: te({
|