@synopackageland/ui 0.17.10 → 0.17.11
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 +10 -0
- package/dist/components/composite/form/FormItem.vue.d.ts +1 -1
- package/dist/components/composite/form-note/FormNote.vue.d.ts +6 -2
- package/dist/components/composite/stat-tile/StatTile.vue.d.ts +1 -1
- package/dist/components/containers/fieldset/Fieldset.vue.d.ts +6 -2
- package/dist/components/primitives/input/Input.vue.d.ts +13 -1
- package/dist/index.js +2259 -2215
- package/dist/json-preview/preview.js +768 -753
- 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 +7 -3
- package/docs/theme-hooks.md +3 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ const Ie = {}, yo = [], mn = () => {
|
|
|
9
9
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), na = (e) => e.startsWith("onUpdate:"), ut = Object.assign, _l = (e, t) => {
|
|
10
10
|
const n = e.indexOf(t);
|
|
11
11
|
n > -1 && e.splice(n, 1);
|
|
12
|
-
}, Xm = Object.prototype.hasOwnProperty,
|
|
12
|
+
}, Xm = Object.prototype.hasOwnProperty, qe = (e, t) => Xm.call(e, t), ye = Array.isArray, Jn = (e) => Kr(e) === "[object Map]", $i = (e) => Kr(e) === "[object Set]", Cu = (e) => Kr(e) === "[object Date]", _e = (e) => typeof e == "function", Ze = (e) => typeof e == "string", Bt = (e) => typeof e == "symbol", Be = (e) => e !== null && typeof e == "object", Wd = (e) => (Be(e) || _e(e)) && _e(e.then) && _e(e.catch), Kd = Object.prototype.toString, Kr = (e) => Kd.call(e), Qm = (e) => Kr(e).slice(8, -1), Zd = (e) => Kr(e) === "[object Object]", oa = (e) => Ze(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Cr = /* @__PURE__ */ wl(
|
|
13
13
|
// the leading comma is intentional so empty string "" is also included
|
|
14
14
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
15
15
|
), ra = (e) => {
|
|
@@ -60,13 +60,13 @@ function iv(e) {
|
|
|
60
60
|
}
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ee(e) {
|
|
64
64
|
let t = "";
|
|
65
65
|
if (Ze(e))
|
|
66
66
|
t = e;
|
|
67
67
|
else if (ye(e))
|
|
68
68
|
for (let n = 0; n < e.length; n++) {
|
|
69
|
-
const o =
|
|
69
|
+
const o = ee(e[n]);
|
|
70
70
|
o && (t += o + " ");
|
|
71
71
|
}
|
|
72
72
|
else if (Be(e))
|
|
@@ -77,7 +77,7 @@ function te(e) {
|
|
|
77
77
|
function ct(e) {
|
|
78
78
|
if (!e) return null;
|
|
79
79
|
let { class: t, style: n } = e;
|
|
80
|
-
return t && !Ze(t) && (e.class =
|
|
80
|
+
return t && !Ze(t) && (e.class = ee(t)), n && (e.style = Ve(n)), e;
|
|
81
81
|
}
|
|
82
82
|
const av = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", sv = /* @__PURE__ */ wl(av);
|
|
83
83
|
function Gd(e) {
|
|
@@ -133,7 +133,7 @@ function sa(e, t, n) {
|
|
|
133
133
|
let o = Cu(e), r = Cu(t);
|
|
134
134
|
return o || r ? o && r ? e.getTime() === t.getTime() : !1 : (o = Bt(e), r = Bt(t), o || r ? e === t : (o = ye(e), r = ye(t), o || r ? o && r ? Eu(e, t, n, lv) : !1 : (o = Be(e), r = Be(t), o || r ? !o || !r ? !1 : Eu(e, t, n, uv) : String(e) === String(t))));
|
|
135
135
|
}
|
|
136
|
-
const Jd = (e) => !!(e && e.__v_isRef === !0),
|
|
136
|
+
const Jd = (e) => !!(e && e.__v_isRef === !0), te = (e) => Ze(e) ? e : e == null ? "" : ye(e) || Be(e) && (e.toString === Kd || !_e(e.toString)) ? Jd(e) ? te(e.value) : JSON.stringify(e, Yd, 2) : String(e), Yd = (e, t) => Jd(t) ? Yd(e, t.value) : Jn(t) ? {
|
|
137
137
|
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
138
138
|
(n, [o, r], i) => (n[Ua(o, i) + " =>"] = r, n),
|
|
139
139
|
{}
|
|
@@ -513,7 +513,7 @@ function fv(e, t) {
|
|
|
513
513
|
const n = Ti.get(e);
|
|
514
514
|
return n && n.get(t);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Do(e) {
|
|
517
517
|
const t = /* @__PURE__ */ De(e);
|
|
518
518
|
return t === e || (_t(t, "iterate", Dr), /* @__PURE__ */ Lt(e)) ? t : /* @__PURE__ */ gn(e) ? /* @__PURE__ */ Yn(e) ? t.map((n) => Xn(jt(n))) : t.map(Xn) : t.map(jt);
|
|
519
519
|
}
|
|
@@ -529,8 +529,8 @@ const pv = {
|
|
|
529
529
|
return Ka(this, Symbol.iterator, (e) => fn(this, e));
|
|
530
530
|
},
|
|
531
531
|
concat(...e) {
|
|
532
|
-
return
|
|
533
|
-
...e.map((t) => ye(t) ?
|
|
532
|
+
return Do(this).concat(
|
|
533
|
+
...e.map((t) => ye(t) ? Do(t) : t)
|
|
534
534
|
);
|
|
535
535
|
},
|
|
536
536
|
entries() {
|
|
@@ -586,7 +586,7 @@ const pv = {
|
|
|
586
586
|
return Za(this, "indexOf", e);
|
|
587
587
|
},
|
|
588
588
|
join(e) {
|
|
589
|
-
return
|
|
589
|
+
return Do(this).join(e);
|
|
590
590
|
},
|
|
591
591
|
// keys() iterator only reads `length`, no optimization required
|
|
592
592
|
lastIndexOf(...e) {
|
|
@@ -618,13 +618,13 @@ const pv = {
|
|
|
618
618
|
return mr(this, "splice", e);
|
|
619
619
|
},
|
|
620
620
|
toReversed() {
|
|
621
|
-
return
|
|
621
|
+
return Do(this).toReversed();
|
|
622
622
|
},
|
|
623
623
|
toSorted(e) {
|
|
624
|
-
return
|
|
624
|
+
return Do(this).toSorted(e);
|
|
625
625
|
},
|
|
626
626
|
toSpliced(...e) {
|
|
627
|
-
return
|
|
627
|
+
return Do(this).toSpliced(...e);
|
|
628
628
|
},
|
|
629
629
|
unshift(...e) {
|
|
630
630
|
return mr(this, "unshift", e);
|
|
@@ -740,7 +740,7 @@ class df extends cf {
|
|
|
740
740
|
if (!/* @__PURE__ */ Lt(o) && !/* @__PURE__ */ gn(o) && (i = /* @__PURE__ */ De(i), o = /* @__PURE__ */ De(o)), !a && /* @__PURE__ */ Ge(i) && !/* @__PURE__ */ Ge(o))
|
|
741
741
|
return c || (i.value = o), !0;
|
|
742
742
|
}
|
|
743
|
-
const s = a ? Number(n) < t.length :
|
|
743
|
+
const s = a ? Number(n) < t.length : qe(t, n), l = Reflect.set(
|
|
744
744
|
t,
|
|
745
745
|
n,
|
|
746
746
|
o,
|
|
@@ -749,7 +749,7 @@ class df extends cf {
|
|
|
749
749
|
return t === /* @__PURE__ */ De(r) && l && (s ? pt(o, i) && Pn(t, "set", n, o) : Pn(t, "add", n, o)), l;
|
|
750
750
|
}
|
|
751
751
|
deleteProperty(t, n) {
|
|
752
|
-
const o =
|
|
752
|
+
const o = qe(t, n);
|
|
753
753
|
t[n];
|
|
754
754
|
const r = Reflect.deleteProperty(t, n);
|
|
755
755
|
return r && o && Pn(t, "delete", n, void 0), r;
|
|
@@ -880,7 +880,7 @@ function Sv(e, t) {
|
|
|
880
880
|
function da(e, t) {
|
|
881
881
|
const n = Sv(e, t);
|
|
882
882
|
return (o, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
|
|
883
|
-
|
|
883
|
+
qe(n, r) && r in o ? n : o,
|
|
884
884
|
r,
|
|
885
885
|
i
|
|
886
886
|
);
|
|
@@ -985,7 +985,7 @@ function De(e) {
|
|
|
985
985
|
return t ? /* @__PURE__ */ De(t) : e;
|
|
986
986
|
}
|
|
987
987
|
function gf(e) {
|
|
988
|
-
return !
|
|
988
|
+
return !qe(e, "__v_skip") && Object.isExtensible(e) && Hd(e, "__v_skip", !0), e;
|
|
989
989
|
}
|
|
990
990
|
const jt = (e) => Be(e) ? /* @__PURE__ */ Qt(e) : e, Xn = (e) => Be(e) ? /* @__PURE__ */ Ps(e) : e;
|
|
991
991
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1284,8 +1284,8 @@ function qv(e, t, n, o = !0, r = !1) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
const Et = [];
|
|
1286
1286
|
let dn = -1;
|
|
1287
|
-
const
|
|
1288
|
-
let Gn = null,
|
|
1287
|
+
const Uo = [];
|
|
1288
|
+
let Gn = null, qo = 0;
|
|
1289
1289
|
const Sf = /* @__PURE__ */ Promise.resolve();
|
|
1290
1290
|
let Ri = null;
|
|
1291
1291
|
function Me(e) {
|
|
@@ -1312,10 +1312,10 @@ function xf() {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
function Bv(e) {
|
|
1314
1314
|
if (!ye(e))
|
|
1315
|
-
Gn && e.id === -1 ? Gn.splice(
|
|
1315
|
+
Gn && e.id === -1 ? Gn.splice(qo + 1, 0, e) : e.flags & 1 || (Uo.push(e), e.flags |= 1);
|
|
1316
1316
|
else
|
|
1317
1317
|
for (let t = 0; t < e.length; t++)
|
|
1318
|
-
|
|
1318
|
+
Uo.push(e[t]);
|
|
1319
1319
|
xf();
|
|
1320
1320
|
}
|
|
1321
1321
|
function Tu(e, t, n = dn + 1) {
|
|
@@ -1329,20 +1329,20 @@ function Tu(e, t, n = dn + 1) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
function kf(e) {
|
|
1332
|
-
if (
|
|
1333
|
-
const t = [...new Set(
|
|
1332
|
+
if (Uo.length) {
|
|
1333
|
+
const t = [...new Set(Uo)].sort(
|
|
1334
1334
|
(n, o) => Mr(n) - Mr(o)
|
|
1335
1335
|
);
|
|
1336
|
-
if (
|
|
1336
|
+
if (Uo.length = 0, Gn) {
|
|
1337
1337
|
for (let n = 0; n < t.length; n++)
|
|
1338
1338
|
Gn.push(t[n]);
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
|
-
for (Gn = t,
|
|
1342
|
-
const n = Gn[
|
|
1341
|
+
for (Gn = t, qo = 0; qo < Gn.length; qo++) {
|
|
1342
|
+
const n = Gn[qo];
|
|
1343
1343
|
n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2;
|
|
1344
1344
|
}
|
|
1345
|
-
Gn = null,
|
|
1345
|
+
Gn = null, qo = 0;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
const Mr = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
@@ -1361,7 +1361,7 @@ function Cf(e) {
|
|
|
1361
1361
|
const t = Et[dn];
|
|
1362
1362
|
t && (t.flags &= -2);
|
|
1363
1363
|
}
|
|
1364
|
-
dn = -1, Et.length = 0, kf(), Ri = null, (Et.length ||
|
|
1364
|
+
dn = -1, Et.length = 0, kf(), Ri = null, (Et.length || Uo.length) && Cf();
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
let yt = null, Pf = null;
|
|
@@ -1427,17 +1427,17 @@ function Ke(e, t) {
|
|
|
1427
1427
|
o === n && (n = St.provides = Object.create(o)), n[e] = t;
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Le(e, t, n = !1) {
|
|
1431
1431
|
const o = Nt();
|
|
1432
|
-
if (o ||
|
|
1433
|
-
let r =
|
|
1432
|
+
if (o || Ko) {
|
|
1433
|
+
let r = Ko ? Ko._context.provides : o ? o.parent == null || o.ce ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : void 0;
|
|
1434
1434
|
if (r && e in r)
|
|
1435
1435
|
return r[e];
|
|
1436
1436
|
if (arguments.length > 1)
|
|
1437
1437
|
return n && _e(t) ? t.call(o && o.proxy) : t;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
const Vv = /* @__PURE__ */ Symbol.for("v-scx"), jv = () =>
|
|
1440
|
+
const Vv = /* @__PURE__ */ Symbol.for("v-scx"), jv = () => Le(Vv);
|
|
1441
1441
|
function Rt(e, t) {
|
|
1442
1442
|
return Hr(e, null, t);
|
|
1443
1443
|
}
|
|
@@ -1555,7 +1555,7 @@ const Wn = /* @__PURE__ */ new WeakMap(), Of = /* @__PURE__ */ Symbol("_vte"), m
|
|
|
1555
1555
|
return;
|
|
1556
1556
|
}
|
|
1557
1557
|
t.targetStart = e.targetStart;
|
|
1558
|
-
const D = t.target = e.target, z = t.targetAnchor = e.targetAnchor,
|
|
1558
|
+
const D = t.target = e.target, z = t.targetAnchor = e.targetAnchor, B = go(e.props), Y = B ? n : D, se = B ? A : z;
|
|
1559
1559
|
if (a === "svg" || Iu(D) ? a = "svg" : (a === "mathml" || Ru(D)) && (a = "mathml"), P ? (f(
|
|
1560
1560
|
e.dynamicChildren,
|
|
1561
1561
|
P,
|
|
@@ -1575,7 +1575,7 @@ const Wn = /* @__PURE__ */ new WeakMap(), Of = /* @__PURE__ */ Symbol("_vte"), m
|
|
|
1575
1575
|
s,
|
|
1576
1576
|
!1
|
|
1577
1577
|
), _)
|
|
1578
|
-
|
|
1578
|
+
B ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : oi(
|
|
1579
1579
|
t,
|
|
1580
1580
|
n,
|
|
1581
1581
|
A,
|
|
@@ -1591,7 +1591,7 @@ const Wn = /* @__PURE__ */ new WeakMap(), Of = /* @__PURE__ */ Symbol("_vte"), m
|
|
|
1591
1591
|
c,
|
|
1592
1592
|
0
|
|
1593
1593
|
));
|
|
1594
|
-
} else
|
|
1594
|
+
} else B && oi(
|
|
1595
1595
|
t,
|
|
1596
1596
|
D,
|
|
1597
1597
|
z,
|
|
@@ -1787,11 +1787,11 @@ function Or(e, t, n, o, r = !1) {
|
|
|
1787
1787
|
);
|
|
1788
1788
|
return;
|
|
1789
1789
|
}
|
|
1790
|
-
if (
|
|
1790
|
+
if (Wo(o) && !r) {
|
|
1791
1791
|
o.shapeFlag & 512 && o.type.__asyncResolved && o.component.subTree.component && Or(e, t, n, o.component.subTree);
|
|
1792
1792
|
return;
|
|
1793
1793
|
}
|
|
1794
|
-
const i = o.shapeFlag & 4 ? ya(o.component) : o.el, a = r ? null : i, { i: s, r: l } = e, c = t && t.r, u = s.refs === Ie ? s.refs = {} : s.refs, d = s.setupState, f = /* @__PURE__ */ De(d), h = d === Ie ? Ud : (v) => Nu(u, v) ? !1 :
|
|
1794
|
+
const i = o.shapeFlag & 4 ? ya(o.component) : o.el, a = r ? null : i, { i: s, r: l } = e, c = t && t.r, u = s.refs === Ie ? s.refs = {} : s.refs, d = s.setupState, f = /* @__PURE__ */ De(d), h = d === Ie ? Ud : (v) => Nu(u, v) ? !1 : qe(f, v), m = (v, g) => !(g && Nu(u, g));
|
|
1795
1795
|
if (c != null && c !== l) {
|
|
1796
1796
|
if (Du(t), Ze(c))
|
|
1797
1797
|
u[c] = null, h(c) && (d[c] = null);
|
|
@@ -1836,7 +1836,7 @@ function Du(e) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
aa().requestIdleCallback;
|
|
1838
1838
|
aa().cancelIdleCallback;
|
|
1839
|
-
const
|
|
1839
|
+
const Wo = (e) => !!e.type.__asyncLoader, Tl = (e) => e.type.__isKeepAlive;
|
|
1840
1840
|
function Jv(e, t) {
|
|
1841
1841
|
If(e, "a", t);
|
|
1842
1842
|
}
|
|
@@ -1962,7 +1962,7 @@ function it(e, t, n, o) {
|
|
|
1962
1962
|
return r;
|
|
1963
1963
|
}
|
|
1964
1964
|
function I(e, t, n, o, r, i) {
|
|
1965
|
-
if (n == null && (n = {}), yt.ce || yt.parent &&
|
|
1965
|
+
if (n == null && (n = {}), yt.ce || yt.parent && Wo(yt.parent) && yt.parent.ce) {
|
|
1966
1966
|
const c = i != null && n.key == null ? ut({}, n, { key: i }) : n, u = Object.keys(c).length > 0;
|
|
1967
1967
|
return t !== "default" && (c.name = t), y(), R(
|
|
1968
1968
|
Se,
|
|
@@ -2028,7 +2028,7 @@ const Os = (e) => e ? sp(e) ? ya(e) : Os(e.parent) : null, $r = (
|
|
|
2028
2028
|
$nextTick: (e) => e.n || (e.n = Me.bind(e.proxy)),
|
|
2029
2029
|
$watch: (e) => Wv.bind(e)
|
|
2030
2030
|
})
|
|
2031
|
-
), Ga = (e, t) => e !== Ie && !e.__isScriptSetup &&
|
|
2031
|
+
), Ga = (e, t) => e !== Ie && !e.__isScriptSetup && qe(e, t), rg = {
|
|
2032
2032
|
get({ _: e }, t) {
|
|
2033
2033
|
if (t === "__v_skip")
|
|
2034
2034
|
return !0;
|
|
@@ -2049,11 +2049,11 @@ const Os = (e) => e ? sp(e) ? ya(e) : Os(e.parent) : null, $r = (
|
|
|
2049
2049
|
else {
|
|
2050
2050
|
if (Ga(o, t))
|
|
2051
2051
|
return a[t] = 1, o[t];
|
|
2052
|
-
if (r !== Ie &&
|
|
2052
|
+
if (r !== Ie && qe(r, t))
|
|
2053
2053
|
return a[t] = 2, r[t];
|
|
2054
|
-
if (
|
|
2054
|
+
if (qe(i, t))
|
|
2055
2055
|
return a[t] = 3, i[t];
|
|
2056
|
-
if (n !== Ie &&
|
|
2056
|
+
if (n !== Ie && qe(n, t))
|
|
2057
2057
|
return a[t] = 4, n[t];
|
|
2058
2058
|
$s && (a[t] = 0);
|
|
2059
2059
|
}
|
|
@@ -2067,29 +2067,29 @@ const Os = (e) => e ? sp(e) ? ya(e) : Os(e.parent) : null, $r = (
|
|
|
2067
2067
|
(u = s.__cssModules) && (u = u[t])
|
|
2068
2068
|
)
|
|
2069
2069
|
return u;
|
|
2070
|
-
if (n !== Ie &&
|
|
2070
|
+
if (n !== Ie && qe(n, t))
|
|
2071
2071
|
return a[t] = 4, n[t];
|
|
2072
2072
|
if (
|
|
2073
2073
|
// global properties
|
|
2074
|
-
d = l.config.globalProperties,
|
|
2074
|
+
d = l.config.globalProperties, qe(d, t)
|
|
2075
2075
|
)
|
|
2076
2076
|
return d[t];
|
|
2077
2077
|
},
|
|
2078
2078
|
set({ _: e }, t, n) {
|
|
2079
2079
|
const { data: o, setupState: r, ctx: i } = e;
|
|
2080
|
-
return Ga(r, t) ? (r[t] = n, !0) : o !== Ie &&
|
|
2080
|
+
return Ga(r, t) ? (r[t] = n, !0) : o !== Ie && qe(o, t) ? (o[t] = n, !0) : qe(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0);
|
|
2081
2081
|
},
|
|
2082
2082
|
has({
|
|
2083
2083
|
_: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, props: i, type: a }
|
|
2084
2084
|
}, s) {
|
|
2085
2085
|
let l;
|
|
2086
|
-
return !!(n[s] || e !== Ie && s[0] !== "$" &&
|
|
2086
|
+
return !!(n[s] || e !== Ie && s[0] !== "$" && qe(e, s) || Ga(t, s) || qe(i, s) || qe(o, s) || qe($r, s) || qe(r.config.globalProperties, s) || (l = a.__cssModules) && l[s]);
|
|
2087
2087
|
},
|
|
2088
2088
|
defineProperty(e, t, n) {
|
|
2089
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
2089
|
+
return n.get != null ? e._.accessCache[t] = 0 : qe(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
2090
2090
|
}
|
|
2091
2091
|
};
|
|
2092
|
-
function
|
|
2092
|
+
function Eo() {
|
|
2093
2093
|
return Lf().slots;
|
|
2094
2094
|
}
|
|
2095
2095
|
function Rl() {
|
|
@@ -2148,7 +2148,7 @@ function ig(e) {
|
|
|
2148
2148
|
serverPrefetch: D,
|
|
2149
2149
|
// public API
|
|
2150
2150
|
expose: z,
|
|
2151
|
-
inheritAttrs:
|
|
2151
|
+
inheritAttrs: B,
|
|
2152
2152
|
// assets
|
|
2153
2153
|
components: Y,
|
|
2154
2154
|
directives: se,
|
|
@@ -2200,18 +2200,18 @@ function ig(e) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
});
|
|
2202
2202
|
} else e.exposed || (e.exposed = {});
|
|
2203
|
-
x && e.render === mn && (e.render = x),
|
|
2203
|
+
x && e.render === mn && (e.render = x), B != null && (e.inheritAttrs = B), Y && (e.components = Y), se && (e.directives = se), D && Tf(e);
|
|
2204
2204
|
}
|
|
2205
2205
|
function ag(e, t, n = mn) {
|
|
2206
2206
|
ye(e) && (e = Ts(e));
|
|
2207
2207
|
for (const o in e) {
|
|
2208
2208
|
const r = e[o];
|
|
2209
2209
|
let i;
|
|
2210
|
-
Be(r) ? "default" in r ? i =
|
|
2210
|
+
Be(r) ? "default" in r ? i = Le(
|
|
2211
2211
|
r.from || o,
|
|
2212
2212
|
r.default,
|
|
2213
2213
|
!0
|
|
2214
|
-
) : i =
|
|
2214
|
+
) : i = Le(r.from || o) : i = Le(r), /* @__PURE__ */ Ge(i) ? Object.defineProperty(t, o, {
|
|
2215
2215
|
enumerable: !0,
|
|
2216
2216
|
configurable: !0,
|
|
2217
2217
|
get: () => i.value,
|
|
@@ -2408,19 +2408,19 @@ function dg(e, t) {
|
|
|
2408
2408
|
return i.provides[u] = d, c;
|
|
2409
2409
|
},
|
|
2410
2410
|
runWithContext(u) {
|
|
2411
|
-
const d =
|
|
2412
|
-
|
|
2411
|
+
const d = Ko;
|
|
2412
|
+
Ko = c;
|
|
2413
2413
|
try {
|
|
2414
2414
|
return u();
|
|
2415
2415
|
} finally {
|
|
2416
|
-
|
|
2416
|
+
Ko = d;
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
2419
|
};
|
|
2420
2420
|
return c;
|
|
2421
2421
|
};
|
|
2422
2422
|
}
|
|
2423
|
-
let
|
|
2423
|
+
let Ko = null;
|
|
2424
2424
|
function fg(e, t, n = Ie) {
|
|
2425
2425
|
const o = Nt(), r = mt(t), i = qn(t), a = Wf(e, r), s = wf((l, c) => {
|
|
2426
2426
|
let u, d = Ie, f;
|
|
@@ -2502,7 +2502,7 @@ function Kf(e, t, n = !1) {
|
|
|
2502
2502
|
return !i && !s ? (Be(e) && o.set(e, null), null) : (ye(i) ? i.forEach((l) => a[l] = null) : ut(a, i), Be(e) && o.set(e, a), a);
|
|
2503
2503
|
}
|
|
2504
2504
|
function ga(e, t) {
|
|
2505
|
-
return !e || !ta(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""),
|
|
2505
|
+
return !e || !ta(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), qe(e, t[0].toLowerCase() + t.slice(1)) || qe(e, qn(t)) || qe(e, t));
|
|
2506
2506
|
}
|
|
2507
2507
|
function Bu(e) {
|
|
2508
2508
|
const {
|
|
@@ -2652,7 +2652,7 @@ function wg(e, t, n, o) {
|
|
|
2652
2652
|
continue;
|
|
2653
2653
|
const h = t[f];
|
|
2654
2654
|
if (l)
|
|
2655
|
-
if (
|
|
2655
|
+
if (qe(i, f))
|
|
2656
2656
|
h !== i[f] && (i[f] = h, c = !0);
|
|
2657
2657
|
else {
|
|
2658
2658
|
const m = mt(f);
|
|
@@ -2674,9 +2674,9 @@ function wg(e, t, n, o) {
|
|
|
2674
2674
|
let u;
|
|
2675
2675
|
for (const d in s)
|
|
2676
2676
|
(!t || // for camelCase
|
|
2677
|
-
!
|
|
2677
|
+
!qe(t, d) && // it's possible the original props was passed in as kebab-case
|
|
2678
2678
|
// and converted to camelCase (#955)
|
|
2679
|
-
((u = qn(d)) === d || !
|
|
2679
|
+
((u = qn(d)) === d || !qe(t, u))) && (l ? n && // for camelCase
|
|
2680
2680
|
(n[d] !== void 0 || // for kebab-case
|
|
2681
2681
|
n[u] !== void 0) && (r[d] = Is(
|
|
2682
2682
|
l,
|
|
@@ -2688,7 +2688,7 @@ function wg(e, t, n, o) {
|
|
|
2688
2688
|
)) : delete r[d]);
|
|
2689
2689
|
if (i !== s)
|
|
2690
2690
|
for (const d in i)
|
|
2691
|
-
(!t || !
|
|
2691
|
+
(!t || !qe(t, d)) && (delete i[d], c = !0);
|
|
2692
2692
|
}
|
|
2693
2693
|
c && Pn(e.attrs, "set", "");
|
|
2694
2694
|
}
|
|
@@ -2701,7 +2701,7 @@ function Yf(e, t, n, o) {
|
|
|
2701
2701
|
continue;
|
|
2702
2702
|
const c = t[l];
|
|
2703
2703
|
let u;
|
|
2704
|
-
r &&
|
|
2704
|
+
r && qe(r, u = mt(l)) ? !i || !i.includes(u) ? n[u] = c : (s || (s = {}))[u] = c : ga(e.emitsOptions, l) || (!(l in o) || c !== o[l]) && (o[l] = c, a = !0);
|
|
2705
2705
|
}
|
|
2706
2706
|
if (i) {
|
|
2707
2707
|
const l = /* @__PURE__ */ De(n), c = s || Ie;
|
|
@@ -2713,7 +2713,7 @@ function Yf(e, t, n, o) {
|
|
|
2713
2713
|
d,
|
|
2714
2714
|
c[d],
|
|
2715
2715
|
e,
|
|
2716
|
-
!
|
|
2716
|
+
!qe(c, d)
|
|
2717
2717
|
);
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
@@ -2722,7 +2722,7 @@ function Yf(e, t, n, o) {
|
|
|
2722
2722
|
function Is(e, t, n, o, r, i) {
|
|
2723
2723
|
const a = e[n];
|
|
2724
2724
|
if (a != null) {
|
|
2725
|
-
const s =
|
|
2725
|
+
const s = qe(a, "default");
|
|
2726
2726
|
if (s && o === void 0) {
|
|
2727
2727
|
const l = a.default;
|
|
2728
2728
|
if (a.type !== Function && !a.skipFactory && _e(l)) {
|
|
@@ -2794,7 +2794,7 @@ function Xf(e, t, n = !1) {
|
|
|
2794
2794
|
] = v, h[
|
|
2795
2795
|
1
|
|
2796
2796
|
/* shouldCastTrue */
|
|
2797
|
-
] = g, (v ||
|
|
2797
|
+
] = g, (v || qe(h, "default")) && s.push(d);
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
2800
|
const c = [a, s];
|
|
@@ -3076,7 +3076,7 @@ function Pg(e, t) {
|
|
|
3076
3076
|
!1
|
|
3077
3077
|
), J > 0) {
|
|
3078
3078
|
if (J & 16)
|
|
3079
|
-
|
|
3079
|
+
B(Q, ie, me, F, U);
|
|
3080
3080
|
else if (J & 2 && ie.class !== me.class && i(Q, "class", null, me.class, U), J & 4 && i(Q, "style", ie.style, me.style, U), J & 8) {
|
|
3081
3081
|
const Ae = E.dynamicProps;
|
|
3082
3082
|
for (let H = 0; H < Ae.length; H++) {
|
|
@@ -3085,7 +3085,7 @@ function Pg(e, t) {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
J & 1 && S.children !== E.children && u(Q, E.children);
|
|
3088
|
-
} else !X && W == null &&
|
|
3088
|
+
} else !X && W == null && B(Q, ie, me, F, U);
|
|
3089
3089
|
((we = me.onVnodeUpdated) || ge) && At(() => {
|
|
3090
3090
|
we && un(we, F, E, S), ge && co(E, S, F, "updated");
|
|
3091
3091
|
}, G);
|
|
@@ -3117,7 +3117,7 @@ function Pg(e, t) {
|
|
|
3117
3117
|
!0
|
|
3118
3118
|
);
|
|
3119
3119
|
}
|
|
3120
|
-
},
|
|
3120
|
+
}, B = (S, E, F, G, U) => {
|
|
3121
3121
|
if (E !== F) {
|
|
3122
3122
|
if (E !== Ie)
|
|
3123
3123
|
for (const j in E)
|
|
@@ -3263,7 +3263,7 @@ function Pg(e, t) {
|
|
|
3263
3263
|
);
|
|
3264
3264
|
} else {
|
|
3265
3265
|
let ie;
|
|
3266
|
-
const { el: me, props: we } = E, { bm: Ae, m: H, parent: ue, root: Ee, type: Ne } = S, an =
|
|
3266
|
+
const { el: me, props: we } = E, { bm: Ae, m: H, parent: ue, root: Ee, type: Ne } = S, an = Wo(E);
|
|
3267
3267
|
fo(S, !1), Ae && Si(Ae), !an && (ie = we && we.onVnodeBeforeMount) && un(ie, ue, E), fo(S, !0);
|
|
3268
3268
|
{
|
|
3269
3269
|
Ee.ce && Ee.ce._hasShadowRoot() && Ee.ce._injectChildStyle(
|
|
@@ -3288,7 +3288,7 @@ function Pg(e, t) {
|
|
|
3288
3288
|
U
|
|
3289
3289
|
);
|
|
3290
3290
|
}
|
|
3291
|
-
(E.shapeFlag & 256 || ue &&
|
|
3291
|
+
(E.shapeFlag & 256 || ue && Wo(ue.vnode) && ue.vnode.shapeFlag & 256) && S.a && At(S.a, U), S.isMounted = !0, E = F = G = null;
|
|
3292
3292
|
}
|
|
3293
3293
|
};
|
|
3294
3294
|
S.scope.on();
|
|
@@ -3564,7 +3564,7 @@ function Pg(e, t) {
|
|
|
3564
3564
|
E.ctx.deactivate(S);
|
|
3565
3565
|
return;
|
|
3566
3566
|
}
|
|
3567
|
-
const H = ge & 1 && me, ue = !
|
|
3567
|
+
const H = ge & 1 && me, ue = !Wo(S);
|
|
3568
3568
|
let Ee;
|
|
3569
3569
|
if (ue && (Ee = X && X.onVnodeBeforeUnmount) && un(Ee, E, S), ge & 6)
|
|
3570
3570
|
rn(S.component, F, G);
|
|
@@ -3636,7 +3636,7 @@ function Pg(e, t) {
|
|
|
3636
3636
|
const E = f(S.anchor || S.el), F = E && E[Of];
|
|
3637
3637
|
return F ? f(F) : E;
|
|
3638
3638
|
};
|
|
3639
|
-
let
|
|
3639
|
+
let Fe = !1;
|
|
3640
3640
|
const ot = (S, E, F) => {
|
|
3641
3641
|
let G;
|
|
3642
3642
|
S == null ? E._vnode && (Re(E._vnode, null, null, !0), G = E._vnode.component) : v(
|
|
@@ -3647,7 +3647,7 @@ function Pg(e, t) {
|
|
|
3647
3647
|
null,
|
|
3648
3648
|
null,
|
|
3649
3649
|
F
|
|
3650
|
-
), E._vnode = S,
|
|
3650
|
+
), E._vnode = S, Fe || (Fe = !0, Tu(G), kf(), Fe = !1);
|
|
3651
3651
|
}, et = {
|
|
3652
3652
|
p: v,
|
|
3653
3653
|
um: Re,
|
|
@@ -3732,12 +3732,12 @@ function y(e = !1) {
|
|
|
3732
3732
|
function zl() {
|
|
3733
3733
|
$n.pop(), Ot = $n[$n.length - 1] || null;
|
|
3734
3734
|
}
|
|
3735
|
-
let
|
|
3735
|
+
let Go = 1;
|
|
3736
3736
|
function zi(e, t = !1) {
|
|
3737
|
-
|
|
3737
|
+
Go += e, e < 0 && Ot && t && (Ot.hasOnce = !0);
|
|
3738
3738
|
}
|
|
3739
3739
|
function ip(e) {
|
|
3740
|
-
return e.dynamicChildren =
|
|
3740
|
+
return e.dynamicChildren = Go > 0 ? Ot || yo : null, zl(), Go > 0 && Ot && Ot.push(e), e;
|
|
3741
3741
|
}
|
|
3742
3742
|
function O(e, t, n, o, r, i) {
|
|
3743
3743
|
return ip(
|
|
@@ -3805,7 +3805,7 @@ function ne(e, t = null, n = null, o = 0, r = null, i = e === Se ? 0 : 1, a = !1
|
|
|
3805
3805
|
appContext: null,
|
|
3806
3806
|
ctx: yt
|
|
3807
3807
|
};
|
|
3808
|
-
return s ? (Fi(l, n), i & 128 && e.normalize(l)) : n && (l.shapeFlag |= Ze(n) ? 8 : 16),
|
|
3808
|
+
return s ? (Fi(l, n), i & 128 && e.normalize(l)) : n && (l.shapeFlag |= Ze(n) ? 8 : 16), Go > 0 && // avoid a block node from tracking itself
|
|
3809
3809
|
!a && // has current parent block
|
|
3810
3810
|
Ot && // presence of a patch flag indicates this node needs patching on updates.
|
|
3811
3811
|
// component nodes also should always be patched, because even if the
|
|
@@ -3824,12 +3824,12 @@ function $g(e, t = null, n = null, o = 0, r = null, i = !1) {
|
|
|
3824
3824
|
!0
|
|
3825
3825
|
/* mergeRef: true */
|
|
3826
3826
|
);
|
|
3827
|
-
return n && Fi(s, n),
|
|
3827
|
+
return n && Fi(s, n), Go > 0 && !i && Ot && (s.shapeFlag & 6 ? Ot[Ot.indexOf(e)] = s : Ot.push(s)), s.patchFlag = -2, s;
|
|
3828
3828
|
}
|
|
3829
3829
|
if (Fg(e) && (e = e.__vccOpts), t) {
|
|
3830
3830
|
t = vt(t);
|
|
3831
3831
|
let { class: s, style: l } = t;
|
|
3832
|
-
s && !Ze(s) && (t.class =
|
|
3832
|
+
s && !Ze(s) && (t.class = ee(s)), Be(l) && (/* @__PURE__ */ pa(l) && !ye(l) && (l = ut({}, l)), t.style = Ve(l));
|
|
3833
3833
|
}
|
|
3834
3834
|
const a = Ze(e) ? 1 : rp(e) ? 128 : ma(e) ? 64 : Be(e) ? 4 : _e(e) ? 2 : 0;
|
|
3835
3835
|
return ne(
|
|
@@ -3897,10 +3897,10 @@ function xo(e, t, n = !1, o = !1) {
|
|
|
3897
3897
|
l.clone(u)
|
|
3898
3898
|
), u;
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function ze(e = " ", t = 0) {
|
|
3901
3901
|
return K(Gr, null, e, t);
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function L(e = "", t = !1) {
|
|
3904
3904
|
return t ? (y(), R(Ut, null, e)) : K(Ut, null, e);
|
|
3905
3905
|
}
|
|
3906
3906
|
function pn(e) {
|
|
@@ -3938,7 +3938,7 @@ function Fi(e, t) {
|
|
|
3938
3938
|
}
|
|
3939
3939
|
t = { default: t, _ctx: yt }, n = 32;
|
|
3940
3940
|
} else
|
|
3941
|
-
t = String(t), o & 64 ? (n = 16, t = [
|
|
3941
|
+
t = String(t), o & 64 ? (n = 16, t = [ze(t)]) : n = 8;
|
|
3942
3942
|
e.children = t, e.shapeFlag |= n;
|
|
3943
3943
|
}
|
|
3944
3944
|
function oe(...e) {
|
|
@@ -3947,7 +3947,7 @@ function oe(...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 = ee([t.class, o.class]));
|
|
3951
3951
|
else if (r === "style")
|
|
3952
3952
|
t.style = Ve([t.style, o.style]);
|
|
3953
3953
|
else if (ta(r)) {
|
|
@@ -4098,7 +4098,7 @@ function Dg(e, t) {
|
|
|
4098
4098
|
r
|
|
4099
4099
|
]
|
|
4100
4100
|
), s = Wd(a);
|
|
4101
|
-
if (Nn(), i(), (s || e.sp) && !
|
|
4101
|
+
if (Nn(), i(), (s || e.sp) && !Wo(e) && Tf(e), s) {
|
|
4102
4102
|
if (a.then(Wu, Wu), t)
|
|
4103
4103
|
return a.then((l) => {
|
|
4104
4104
|
qr(!0);
|
|
@@ -4191,7 +4191,7 @@ function Lg(e, t) {
|
|
|
4191
4191
|
for (let o = 0; o < n.length; o++)
|
|
4192
4192
|
if (pt(n[o], t[o]))
|
|
4193
4193
|
return !1;
|
|
4194
|
-
return
|
|
4194
|
+
return Go > 0 && Ot && Ot.push(e), !0;
|
|
4195
4195
|
}
|
|
4196
4196
|
const Bg = "3.5.43";
|
|
4197
4197
|
let Rs;
|
|
@@ -4263,7 +4263,7 @@ function Kg(e, t, n) {
|
|
|
4263
4263
|
const o = e[Wg];
|
|
4264
4264
|
o && (t = (t ? [t, ...o] : [...o]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
|
|
4265
4265
|
}
|
|
4266
|
-
const Li = /* @__PURE__ */ Symbol("_vod"), dp = /* @__PURE__ */ Symbol("_vsh"),
|
|
4266
|
+
const Li = /* @__PURE__ */ Symbol("_vod"), dp = /* @__PURE__ */ Symbol("_vsh"), Jo = {
|
|
4267
4267
|
// used for prop mismatch check during hydration
|
|
4268
4268
|
name: "show",
|
|
4269
4269
|
beforeMount(e, { value: t }, { transition: n }) {
|
|
@@ -4384,7 +4384,7 @@ function Xu(e, t, n, o, r) {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
a && e.removeAttribute(r || t);
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function Lo(e, t, n, o) {
|
|
4388
4388
|
e.addEventListener(t, n, o);
|
|
4389
4389
|
}
|
|
4390
4390
|
function Xg(e, t, n, o) {
|
|
@@ -4402,7 +4402,7 @@ function Qg(e, t, n, o, r = null) {
|
|
|
4402
4402
|
o,
|
|
4403
4403
|
r
|
|
4404
4404
|
);
|
|
4405
|
-
|
|
4405
|
+
Lo(e, s, c, l);
|
|
4406
4406
|
} else a && (Xg(e, s, a, l), i[t] = void 0);
|
|
4407
4407
|
}
|
|
4408
4408
|
}
|
|
@@ -4496,11 +4496,11 @@ const cy = {
|
|
|
4496
4496
|
e.parentNode && (e.type === "text" ? e[ai] = e.defaultValue.replace(/[\r\n]/g, "") : e.type === "textarea" && (e[ai] = e.defaultValue.replace(/\r\n?/g, `
|
|
4497
4497
|
`))), e[ii] = tc(r);
|
|
4498
4498
|
const i = o || r.props && r.props.type === "number";
|
|
4499
|
-
|
|
4499
|
+
Lo(e, t ? "change" : "input", (a) => {
|
|
4500
4500
|
a.target.composing || e[ii](es(e.value, n, i));
|
|
4501
|
-
}), (n || i) &&
|
|
4501
|
+
}), (n || i) && Lo(e, "change", () => {
|
|
4502
4502
|
e.value = es(e.value, n, i);
|
|
4503
|
-
}), t || (
|
|
4503
|
+
}), t || (Lo(e, "compositionstart", uy), Lo(e, "compositionend", nc), Lo(e, "change", nc));
|
|
4504
4504
|
},
|
|
4505
4505
|
// set value on mounted so it's after min/max for type="range"
|
|
4506
4506
|
mounted(e, { value: t, modifiers: { trim: n, number: o } }) {
|
|
@@ -4704,7 +4704,7 @@ const Py = /* @__PURE__ */ Fl(() => {
|
|
|
4704
4704
|
return !1;
|
|
4705
4705
|
}
|
|
4706
4706
|
});
|
|
4707
|
-
function
|
|
4707
|
+
function Yo(e) {
|
|
4708
4708
|
if (Bi(e) === !1)
|
|
4709
4709
|
return !1;
|
|
4710
4710
|
const t = e.constructor;
|
|
@@ -4714,10 +4714,10 @@ function Jo(e) {
|
|
|
4714
4714
|
return !(Bi(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
4715
4715
|
}
|
|
4716
4716
|
function vp(e) {
|
|
4717
|
-
return
|
|
4717
|
+
return Yo(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
4718
4718
|
}
|
|
4719
4719
|
const Ay = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
4720
|
-
function
|
|
4720
|
+
function Xo(e) {
|
|
4721
4721
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4722
4722
|
}
|
|
4723
4723
|
function io(e, t, n) {
|
|
@@ -4777,7 +4777,7 @@ function Ty(e, t) {
|
|
|
4777
4777
|
return ko(a, e, Reflect.ownKeys(Mn(e)).filter((s) => !i.has(s))), io(e, qt(n, { shape: a, checks: [] }));
|
|
4778
4778
|
}
|
|
4779
4779
|
function Iy(e, t) {
|
|
4780
|
-
if (!
|
|
4780
|
+
if (!Yo(t))
|
|
4781
4781
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
4782
4782
|
const n = e._zod.def.checks;
|
|
4783
4783
|
if (n && n.length > 0) {
|
|
@@ -4793,7 +4793,7 @@ function bp(e, t) {
|
|
|
4793
4793
|
return ko(n, e, Reflect.ownKeys(Mn(e))), xy(n, t), n;
|
|
4794
4794
|
}
|
|
4795
4795
|
function Ry(e, t) {
|
|
4796
|
-
if (!
|
|
4796
|
+
if (!Yo(t))
|
|
4797
4797
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
4798
4798
|
return io(e, qt(e._zod.def, { shape: bp(e, t) }));
|
|
4799
4799
|
}
|
|
@@ -4843,7 +4843,7 @@ function My(e, t = 0) {
|
|
|
4843
4843
|
return !0;
|
|
4844
4844
|
return !1;
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4846
|
+
function Vo(e, t) {
|
|
4847
4847
|
return t.map((n) => {
|
|
4848
4848
|
var o;
|
|
4849
4849
|
return (o = n).path ?? (o.path = []), n.path.unshift(e), n;
|
|
@@ -5470,7 +5470,7 @@ const Fb = /^[\s\S]{0,}$/, qb = /^-?\d+$/, Kl = /^-?\d+(?:\.\d+)?$/, Lb = /^(?:t
|
|
|
5470
5470
|
t.pattern ?? (t.pattern = jb), Sa.init(e, t);
|
|
5471
5471
|
}), Xb = /* @__PURE__ */ q("$ZodCheckIncludes", (e, t) => {
|
|
5472
5472
|
Dt.init(e, t);
|
|
5473
|
-
const n =
|
|
5473
|
+
const n = Xo(t.includes), o = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
|
|
5474
5474
|
t.pattern = o, e._zod.check = (r) => {
|
|
5475
5475
|
r.value.includes(t.includes, t.position) || r.issues.push({
|
|
5476
5476
|
origin: "string",
|
|
@@ -5484,7 +5484,7 @@ const Fb = /^[\s\S]{0,}$/, qb = /^-?\d+$/, Kl = /^-?\d+(?:\.\d+)?$/, Lb = /^(?:t
|
|
|
5484
5484
|
};
|
|
5485
5485
|
}), Qb = /* @__PURE__ */ q("$ZodCheckStartsWith", (e, t) => {
|
|
5486
5486
|
Dt.init(e, t);
|
|
5487
|
-
const n = new RegExp(`^${
|
|
5487
|
+
const n = new RegExp(`^${Xo(t.prefix)}.*`);
|
|
5488
5488
|
t.pattern ?? (t.pattern = n), e._zod.check = (o) => {
|
|
5489
5489
|
o.value.startsWith(t.prefix) || o.issues.push({
|
|
5490
5490
|
origin: "string",
|
|
@@ -5498,7 +5498,7 @@ const Fb = /^[\s\S]{0,}$/, qb = /^-?\d+$/, Kl = /^-?\d+(?:\.\d+)?$/, Lb = /^(?:t
|
|
|
5498
5498
|
};
|
|
5499
5499
|
}), ew = /* @__PURE__ */ q("$ZodCheckEndsWith", (e, t) => {
|
|
5500
5500
|
Dt.init(e, t);
|
|
5501
|
-
const n = new RegExp(`.*${
|
|
5501
|
+
const n = new RegExp(`.*${Xo(t.suffix)}$`);
|
|
5502
5502
|
t.pattern ?? (t.pattern = n), e._zod.check = (o) => {
|
|
5503
5503
|
o.value.endsWith(t.suffix) || o.issues.push({
|
|
5504
5504
|
origin: "string",
|
|
@@ -5960,7 +5960,7 @@ const Mw = /* @__PURE__ */ q("$ZodJWT", (e, t) => {
|
|
|
5960
5960
|
}), n);
|
|
5961
5961
|
});
|
|
5962
5962
|
function pc(e, t, n) {
|
|
5963
|
-
e.issues.length && t.issues.push(...
|
|
5963
|
+
e.issues.length && t.issues.push(...Vo(n, e.issues)), t.value[n] = e.value;
|
|
5964
5964
|
}
|
|
5965
5965
|
const jw = /* @__PURE__ */ q("$ZodArray", (e, t) => {
|
|
5966
5966
|
Ue.init(e, t);
|
|
@@ -5995,7 +5995,7 @@ function Ui(e, t, n, o, r, i) {
|
|
|
5995
5995
|
if (e.issues.length) {
|
|
5996
5996
|
if (r !== void 0 && s && !a)
|
|
5997
5997
|
return;
|
|
5998
|
-
t.issues.push(...
|
|
5998
|
+
t.issues.push(...Vo(n, e.issues));
|
|
5999
5999
|
}
|
|
6000
6000
|
if (!a && r === void 0) {
|
|
6001
6001
|
e.issues.length || t.issues.push({
|
|
@@ -6134,8 +6134,8 @@ const Ww = /* @__PURE__ */ q("$ZodObject", (e, t) => {
|
|
|
6134
6134
|
for (const x of m.allKeys) {
|
|
6135
6135
|
if (x === "__proto__")
|
|
6136
6136
|
continue;
|
|
6137
|
-
const k = P[x], A = typeof x == "symbol" ? `syms[${v.indexOf(x)}]` : ky(x), T = `${A} in input`, D = h[x], z = D?._zod?.optin,
|
|
6138
|
-
if (g.write(`const ${k} = ${w(A)};`),
|
|
6137
|
+
const k = P[x], A = typeof x == "symbol" ? `syms[${v.indexOf(x)}]` : ky(x), T = `${A} in input`, D = h[x], z = D?._zod?.optin, B = z !== void 0, Y = D?._zod?.optout === "optional";
|
|
6138
|
+
if (g.write(`const ${k} = ${w(A)};`), B && Y) {
|
|
6139
6139
|
const se = z === "optional" ? `${k}_present` : `${k}.value !== undefined || ${k}_present`;
|
|
6140
6140
|
g.write(`
|
|
6141
6141
|
const ${k}_present = ${T};
|
|
@@ -6149,7 +6149,7 @@ const Ww = /* @__PURE__ */ q("$ZodObject", (e, t) => {
|
|
|
6149
6149
|
}
|
|
6150
6150
|
|
|
6151
6151
|
`);
|
|
6152
|
-
} else
|
|
6152
|
+
} else B ? (g.write(`
|
|
6153
6153
|
if (${k}.issues.length) {${_(k, A)}
|
|
6154
6154
|
}
|
|
6155
6155
|
`), z === "defaulted" ? g.write(`newResult[${A}] = ${k}.value;`) : g.write(`
|
|
@@ -6249,7 +6249,7 @@ function zs(e, t) {
|
|
|
6249
6249
|
return { valid: !0, data: e };
|
|
6250
6250
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
6251
6251
|
return { valid: !0, data: e };
|
|
6252
|
-
if (
|
|
6252
|
+
if (Yo(e) && Yo(t)) {
|
|
6253
6253
|
const n = Object.keys(t), o = Object.keys(e).filter((i) => n.indexOf(i) !== -1), r = { ...e, ...t };
|
|
6254
6254
|
Object.prototype.hasOwnProperty.call(r, "__proto__") && delete r.__proto__;
|
|
6255
6255
|
for (const i of o) {
|
|
@@ -6322,7 +6322,7 @@ const Gw = /* @__PURE__ */ q("$ZodRecord", (e, t) => {
|
|
|
6322
6322
|
const n = tn.memoizer;
|
|
6323
6323
|
n?.attach(e), e._zod.parse = (o, r) => {
|
|
6324
6324
|
const i = o.value;
|
|
6325
|
-
if (!
|
|
6325
|
+
if (!Yo(i))
|
|
6326
6326
|
return o.issues.push({
|
|
6327
6327
|
expected: "record",
|
|
6328
6328
|
code: "invalid_type",
|
|
@@ -6356,8 +6356,8 @@ const Gw = /* @__PURE__ */ q("$ZodRecord", (e, t) => {
|
|
|
6356
6356
|
continue;
|
|
6357
6357
|
const h = t.valueType._zod.run({ value: i[u], issues: [] }, r);
|
|
6358
6358
|
h instanceof Promise ? a.push(h.then((m) => {
|
|
6359
|
-
m.issues.length && o.issues.push(...
|
|
6360
|
-
})) : (h.issues.length && o.issues.push(...
|
|
6359
|
+
m.issues.length && o.issues.push(...Vo(u, m.issues)), o.value[f] = m.value;
|
|
6360
|
+
})) : (h.issues.length && o.issues.push(...Vo(u, h.issues)), o.value[f] = h.value);
|
|
6361
6361
|
}
|
|
6362
6362
|
let c;
|
|
6363
6363
|
for (const u in i)
|
|
@@ -6406,8 +6406,8 @@ const Gw = /* @__PURE__ */ q("$ZodRecord", (e, t) => {
|
|
|
6406
6406
|
continue;
|
|
6407
6407
|
const h = t.valueType._zod.run({ value: i[c], issues: [] }, r);
|
|
6408
6408
|
h instanceof Promise ? a.push(h.then((m) => {
|
|
6409
|
-
m.issues.length && o.issues.push(...
|
|
6410
|
-
})) : (h.issues.length && o.issues.push(...
|
|
6409
|
+
m.issues.length && o.issues.push(...Vo(c, m.issues)), o.value[f] = m.value;
|
|
6410
|
+
})) : (h.issues.length && o.issues.push(...Vo(c, h.issues)), o.value[f] = h.value);
|
|
6411
6411
|
}
|
|
6412
6412
|
l && l.length > 0 && o.issues.push({
|
|
6413
6413
|
code: "unrecognized_keys",
|
|
@@ -6424,7 +6424,7 @@ const Gw = /* @__PURE__ */ q("$ZodRecord", (e, t) => {
|
|
|
6424
6424
|
const n = Ns(t.entries), o = new Set(n);
|
|
6425
6425
|
e._zod.values = o, Te(e, "pattern", (r) => {
|
|
6426
6426
|
const i = Ns(r.def.entries).filter((a) => Ay.has(typeof a));
|
|
6427
|
-
return new RegExp(i.length ? `^(${i.map((a) =>
|
|
6427
|
+
return new RegExp(i.length ? `^(${i.map((a) => Xo(a.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
6428
6428
|
}), e._zod.parse = (r, i) => {
|
|
6429
6429
|
const a = r.value;
|
|
6430
6430
|
return o.has(a) || r.issues.push({
|
|
@@ -6439,7 +6439,7 @@ const Gw = /* @__PURE__ */ q("$ZodRecord", (e, t) => {
|
|
|
6439
6439
|
const n = new Set(t.values);
|
|
6440
6440
|
e._zod.values = n, Te(e, "pattern", (o) => {
|
|
6441
6441
|
const r = o.def.values;
|
|
6442
|
-
return new RegExp(r.length ? `^(${r.map((i) => typeof i == "string" ?
|
|
6442
|
+
return new RegExp(r.length ? `^(${r.map((i) => typeof i == "string" ? Xo(i) : i ? Xo(i.toString()) : String(i)).join("|")})$` : "^[^\\s\\S]$");
|
|
6443
6443
|
}), e._zod.parse = (o, r) => {
|
|
6444
6444
|
const i = o.value;
|
|
6445
6445
|
return n.has(i) || o.issues.push({
|
|
@@ -7781,12 +7781,12 @@ const m0 = (e, t = {}) => (n) => {
|
|
|
7781
7781
|
}, Ki = (e, t, n = {}) => (o) => {
|
|
7782
7782
|
const { libraryOptions: r, target: i } = o ?? {}, a = jp({ ...r ?? {}, target: i, io: t, processors: n });
|
|
7783
7783
|
return nt(e, a), Up(a, e), Zp(a, e);
|
|
7784
|
-
}, Xo = (e, t, n) => {
|
|
7785
|
-
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
7786
7784
|
}, Qo = (e, t, n) => {
|
|
7785
|
+
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
7786
|
+
}, er = (e, t, n) => {
|
|
7787
7787
|
(e[t] === void 0 || n < e[t]) && (e[t] = n);
|
|
7788
7788
|
}, $c = (e, t) => {
|
|
7789
|
-
|
|
7789
|
+
Qo(e, "minimum", t), er(e, "maximum", t);
|
|
7790
7790
|
}, Hp = (e, t) => {
|
|
7791
7791
|
e.multipleOf ?? (e.multipleOf = []), e.multipleOf.includes(t) || e.multipleOf.push(t);
|
|
7792
7792
|
}, Gp = (e, t) => {
|
|
@@ -7795,13 +7795,13 @@ const m0 = (e, t = {}) => (n) => {
|
|
|
7795
7795
|
e.mime = e.mime ? e.mime.filter((n) => t.includes(n)) : [...t];
|
|
7796
7796
|
}, Yp = (e, t) => {
|
|
7797
7797
|
e.format = t, t.includes("int") && (e.isInt = !0);
|
|
7798
|
-
}, Tc = (e, t) =>
|
|
7798
|
+
}, Tc = (e, t) => Qo(e, "minimum", t.minimum), Ic = (e, t) => er(e, "maximum", t.maximum), Rc = (e) => (t, n) => {
|
|
7799
7799
|
Yp(t, n.format);
|
|
7800
7800
|
const [o, r] = e[n.format];
|
|
7801
|
-
|
|
7801
|
+
Qo(t, "minimum", o), er(t, "maximum", r);
|
|
7802
7802
|
}, v0 = {
|
|
7803
|
-
greater_than: (e, t) =>
|
|
7804
|
-
less_than: (e, t) =>
|
|
7803
|
+
greater_than: (e, t) => Qo(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
|
|
7804
|
+
less_than: (e, t) => er(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
|
|
7805
7805
|
multiple_of: (e, t) => Hp(e, t.value),
|
|
7806
7806
|
number_format: Rc(yp),
|
|
7807
7807
|
bigint_format: Rc(Oy),
|
|
@@ -7821,7 +7821,7 @@ function Jt(e) {
|
|
|
7821
7821
|
for (const i of o)
|
|
7822
7822
|
v0[i._zod.def.check]?.(t, i._zod.def);
|
|
7823
7823
|
const r = e._zod.bag;
|
|
7824
|
-
r.minimum !== void 0 &&
|
|
7824
|
+
r.minimum !== void 0 && Qo(t, "minimum", r.minimum), r.exclusiveMinimum !== void 0 && Qo(t, "exclusiveMinimum", r.exclusiveMinimum), r.maximum !== void 0 && er(t, "maximum", r.maximum), r.exclusiveMaximum !== void 0 && er(t, "exclusiveMaximum", r.exclusiveMaximum), r.multipleOf !== void 0 && Hp(t, r.multipleOf), r.format !== void 0 && (t.format ?? (t.format = r.format), r.format.includes("int") && (t.isInt = !0)), r.mime && Jp(t, r.mime);
|
|
7825
7825
|
for (const i of r.patterns ?? [])
|
|
7826
7826
|
Gp(t, i);
|
|
7827
7827
|
return t;
|
|
@@ -8427,7 +8427,7 @@ const We = /* @__PURE__ */ q("ZodType", (e, t) => (oS(), Ue.init(e, t), e.def =
|
|
|
8427
8427
|
return this.check(/* @__PURE__ */ W_(lS, e));
|
|
8428
8428
|
}
|
|
8429
8429
|
});
|
|
8430
|
-
function
|
|
8430
|
+
function V(e) {
|
|
8431
8431
|
return /* @__PURE__ */ b_(rS, e);
|
|
8432
8432
|
}
|
|
8433
8433
|
const Xe = /* @__PURE__ */ q("ZodStringFormat", (e, t) => {
|
|
@@ -8694,7 +8694,7 @@ const Mc = /* @__PURE__ */ q("ZodRecord", (e, t) => {
|
|
|
8694
8694
|
function lt(e, t, n) {
|
|
8695
8695
|
return !t || !t._zod ? new Mc({
|
|
8696
8696
|
type: "record",
|
|
8697
|
-
keyType:
|
|
8697
|
+
keyType: V(),
|
|
8698
8698
|
valueType: e,
|
|
8699
8699
|
...he(t)
|
|
8700
8700
|
}) : new Mc({
|
|
@@ -8891,23 +8891,23 @@ function ox(e, t) {
|
|
|
8891
8891
|
return /* @__PURE__ */ f0(e, t);
|
|
8892
8892
|
}
|
|
8893
8893
|
var ka = Mt([
|
|
8894
|
-
|
|
8894
|
+
V(),
|
|
8895
8895
|
Yt(),
|
|
8896
8896
|
Ce(),
|
|
8897
8897
|
$S(),
|
|
8898
|
-
ce({ $state:
|
|
8898
|
+
ce({ $state: V() })
|
|
8899
8899
|
]);
|
|
8900
8900
|
Mt([
|
|
8901
|
-
|
|
8902
|
-
ce({ $state:
|
|
8901
|
+
V(),
|
|
8902
|
+
ce({ $state: V() })
|
|
8903
8903
|
]);
|
|
8904
8904
|
Mt([
|
|
8905
8905
|
Yt(),
|
|
8906
|
-
ce({ $state:
|
|
8906
|
+
ce({ $state: V() })
|
|
8907
8907
|
]);
|
|
8908
8908
|
Mt([
|
|
8909
8909
|
Ce(),
|
|
8910
|
-
ce({ $state:
|
|
8910
|
+
ce({ $state: V() })
|
|
8911
8911
|
]);
|
|
8912
8912
|
function lh(e, t) {
|
|
8913
8913
|
if (e != null)
|
|
@@ -9022,8 +9022,8 @@ function js(e, t = "", n = 0, o, r) {
|
|
|
9022
9022
|
}
|
|
9023
9023
|
var fi = Mt([
|
|
9024
9024
|
Yt(),
|
|
9025
|
-
ce({ $state:
|
|
9026
|
-
]),
|
|
9025
|
+
ce({ $state: V() })
|
|
9026
|
+
]), Zo = {
|
|
9027
9027
|
eq: ht().optional(),
|
|
9028
9028
|
neq: ht().optional(),
|
|
9029
9029
|
gt: fi.optional(),
|
|
@@ -9032,14 +9032,14 @@ var fi = Mt([
|
|
|
9032
9032
|
lte: fi.optional(),
|
|
9033
9033
|
not: Yr(!0).optional()
|
|
9034
9034
|
}, ux = ce({
|
|
9035
|
-
$state:
|
|
9036
|
-
...
|
|
9035
|
+
$state: V(),
|
|
9036
|
+
...Zo
|
|
9037
9037
|
}), cx = ce({
|
|
9038
|
-
$item:
|
|
9039
|
-
...
|
|
9038
|
+
$item: V(),
|
|
9039
|
+
...Zo
|
|
9040
9040
|
}), dx = ce({
|
|
9041
9041
|
$index: Yr(!0),
|
|
9042
|
-
...
|
|
9042
|
+
...Zo
|
|
9043
9043
|
}), Bc = Mt([
|
|
9044
9044
|
ux,
|
|
9045
9045
|
cx,
|
|
@@ -9053,9 +9053,9 @@ var fi = Mt([
|
|
|
9053
9053
|
ce({ $or: tt(Us) })
|
|
9054
9054
|
])
|
|
9055
9055
|
), Vc = Mt([
|
|
9056
|
-
Rr({ $state:
|
|
9057
|
-
Rr({ $item:
|
|
9058
|
-
Rr({ $index: Yr(!0), ...
|
|
9056
|
+
Rr({ $state: V(), ...Zo }),
|
|
9057
|
+
Rr({ $item: V(), ...Zo }),
|
|
9058
|
+
Rr({ $index: Yr(!0), ...Zo })
|
|
9059
9059
|
]), jc = Yl(
|
|
9060
9060
|
() => Mt([
|
|
9061
9061
|
Ce(),
|
|
@@ -9065,7 +9065,7 @@ var fi = Mt([
|
|
|
9065
9065
|
Rr({ $or: tt(jc) })
|
|
9066
9066
|
])
|
|
9067
9067
|
);
|
|
9068
|
-
function
|
|
9068
|
+
function Mo(e, t) {
|
|
9069
9069
|
return typeof e == "object" && e !== null && "$state" in e && typeof e.$state == "string" ? gt(t.stateModel, e.$state) : e;
|
|
9070
9070
|
}
|
|
9071
9071
|
function fx(e) {
|
|
@@ -9081,22 +9081,22 @@ function Uc(e, t) {
|
|
|
9081
9081
|
const n = hx(e, t);
|
|
9082
9082
|
let o;
|
|
9083
9083
|
if (e.eq !== void 0) {
|
|
9084
|
-
const r =
|
|
9084
|
+
const r = Mo(e.eq, t);
|
|
9085
9085
|
o = n === r;
|
|
9086
9086
|
} else if (e.neq !== void 0) {
|
|
9087
|
-
const r =
|
|
9087
|
+
const r = Mo(e.neq, t);
|
|
9088
9088
|
o = n !== r;
|
|
9089
9089
|
} else if (e.gt !== void 0) {
|
|
9090
|
-
const r =
|
|
9090
|
+
const r = Mo(e.gt, t);
|
|
9091
9091
|
o = typeof n == "number" && typeof r == "number" ? n > r : !1;
|
|
9092
9092
|
} else if (e.gte !== void 0) {
|
|
9093
|
-
const r =
|
|
9093
|
+
const r = Mo(e.gte, t);
|
|
9094
9094
|
o = typeof n == "number" && typeof r == "number" ? n >= r : !1;
|
|
9095
9095
|
} else if (e.lt !== void 0) {
|
|
9096
|
-
const r =
|
|
9096
|
+
const r = Mo(e.lt, t);
|
|
9097
9097
|
o = typeof n == "number" && typeof r == "number" ? n < r : !1;
|
|
9098
9098
|
} else if (e.lte !== void 0) {
|
|
9099
|
-
const r =
|
|
9099
|
+
const r = Mo(e.lte, t);
|
|
9100
9100
|
o = typeof n == "number" && typeof r == "number" ? n <= r : !1;
|
|
9101
9101
|
} else
|
|
9102
9102
|
o = !!n;
|
|
@@ -9108,8 +9108,8 @@ function mx(e) {
|
|
|
9108
9108
|
function vx(e) {
|
|
9109
9109
|
return typeof e == "object" && e !== null && !Array.isArray(e) && "$or" in e;
|
|
9110
9110
|
}
|
|
9111
|
-
function
|
|
9112
|
-
return e === void 0 ? !0 : typeof e == "boolean" ? e : Array.isArray(e) ? e.every((n) => Uc(n, t)) : mx(e) ? e.$and.every((n) =>
|
|
9111
|
+
function tr(e, t) {
|
|
9112
|
+
return e === void 0 ? !0 : typeof e == "boolean" ? e : Array.isArray(e) ? e.every((n) => Uc(n, t)) : mx(e) ? e.$and.every((n) => tr(n, t)) : vx(e) ? e.$or.some((n) => tr(n, t)) : Uc(e, t);
|
|
9113
9113
|
}
|
|
9114
9114
|
function gx(e) {
|
|
9115
9115
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -9178,7 +9178,7 @@ function bo(e, t) {
|
|
|
9178
9178
|
return n === void 0 ? void 0 : gt(t.stateModel, n);
|
|
9179
9179
|
}
|
|
9180
9180
|
if (wx(e)) {
|
|
9181
|
-
const n =
|
|
9181
|
+
const n = tr(e.$cond, t);
|
|
9182
9182
|
return bo(n ? e.$then : e.$else, t);
|
|
9183
9183
|
}
|
|
9184
9184
|
if (_x(e)) {
|
|
@@ -9294,27 +9294,27 @@ function Zc() {
|
|
|
9294
9294
|
}
|
|
9295
9295
|
}
|
|
9296
9296
|
var Ix = ce({
|
|
9297
|
-
title:
|
|
9298
|
-
message:
|
|
9299
|
-
confirmLabel:
|
|
9300
|
-
cancelLabel:
|
|
9297
|
+
title: V(),
|
|
9298
|
+
message: V(),
|
|
9299
|
+
confirmLabel: V().optional(),
|
|
9300
|
+
cancelLabel: V().optional(),
|
|
9301
9301
|
variant: Oe(["default", "danger"]).optional()
|
|
9302
9302
|
}), Rx = Mt([
|
|
9303
|
-
ce({ navigate:
|
|
9304
|
-
ce({ set: lt(
|
|
9303
|
+
ce({ navigate: V() }),
|
|
9304
|
+
ce({ set: lt(V(), ht()) }),
|
|
9305
9305
|
ce({
|
|
9306
|
-
action:
|
|
9307
|
-
params: lt(
|
|
9306
|
+
action: V(),
|
|
9307
|
+
params: lt(V(), ka).optional()
|
|
9308
9308
|
})
|
|
9309
9309
|
]), Nx = Mt([
|
|
9310
|
-
ce({ set: lt(
|
|
9310
|
+
ce({ set: lt(V(), ht()) }),
|
|
9311
9311
|
ce({
|
|
9312
|
-
action:
|
|
9313
|
-
params: lt(
|
|
9312
|
+
action: V(),
|
|
9313
|
+
params: lt(V(), ka).optional()
|
|
9314
9314
|
})
|
|
9315
9315
|
]), Dx = ce({
|
|
9316
|
-
action:
|
|
9317
|
-
params: lt(
|
|
9316
|
+
action: V(),
|
|
9317
|
+
params: lt(V(), ka).optional(),
|
|
9318
9318
|
confirm: Ix.optional(),
|
|
9319
9319
|
onSuccess: Rx.optional(),
|
|
9320
9320
|
onError: Nx.optional(),
|
|
@@ -9367,9 +9367,9 @@ async function Gc(e) {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
}
|
|
9369
9369
|
var zx = ce({
|
|
9370
|
-
type:
|
|
9371
|
-
args: lt(
|
|
9372
|
-
message:
|
|
9370
|
+
type: V(),
|
|
9371
|
+
args: lt(V(), ka).optional(),
|
|
9372
|
+
message: V()
|
|
9373
9373
|
});
|
|
9374
9374
|
ce({
|
|
9375
9375
|
checks: tt(zx).optional(),
|
|
@@ -9514,7 +9514,7 @@ function qx(e, t) {
|
|
|
9514
9514
|
}
|
|
9515
9515
|
function Lx(e, t) {
|
|
9516
9516
|
const n = [], o = [];
|
|
9517
|
-
if (e.enabled && !
|
|
9517
|
+
if (e.enabled && !tr(e.enabled, {
|
|
9518
9518
|
stateModel: t.stateModel
|
|
9519
9519
|
}))
|
|
9520
9520
|
return { valid: !0, errors: [], checks: [] };
|
|
@@ -9673,7 +9673,7 @@ function Yx(e, t) {
|
|
|
9673
9673
|
function Ai(e, t) {
|
|
9674
9674
|
switch (e.kind) {
|
|
9675
9675
|
case "string":
|
|
9676
|
-
return
|
|
9676
|
+
return V();
|
|
9677
9677
|
case "number":
|
|
9678
9678
|
return Yt();
|
|
9679
9679
|
case "boolean":
|
|
@@ -9694,15 +9694,15 @@ function Ai(e, t) {
|
|
|
9694
9694
|
}
|
|
9695
9695
|
case "record": {
|
|
9696
9696
|
const n = Ai(e.inner, t);
|
|
9697
|
-
return lt(
|
|
9697
|
+
return lt(V(), n);
|
|
9698
9698
|
}
|
|
9699
9699
|
case "ref": {
|
|
9700
9700
|
const n = e.inner, o = Xx(n, t);
|
|
9701
|
-
return o.length === 0 ?
|
|
9701
|
+
return o.length === 0 ? V() : o.length === 1 ? Yr(o[0]) : Oe(o);
|
|
9702
9702
|
}
|
|
9703
9703
|
case "propsOf": {
|
|
9704
9704
|
const n = e.inner, o = Qx(n, t);
|
|
9705
|
-
return o.length === 0 ? lt(
|
|
9705
|
+
return o.length === 0 ? lt(V(), ht()) : o.length === 1 ? o[0] : lt(V(), ht());
|
|
9706
9706
|
}
|
|
9707
9707
|
default:
|
|
9708
9708
|
return ht();
|
|
@@ -9861,17 +9861,17 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
9861
9861
|
const Re = ke.props ? Gt(ke.props) : "{}", dt = ke.slots ?? [], ft = dt.filter((et) => et !== "default"), rn = dt.includes("default"), zt = h ? [
|
|
9862
9862
|
rn ? "accepts children" : "",
|
|
9863
9863
|
ft.length > 0 ? `slots: ${ft.join(", ")}` : ""
|
|
9864
|
-
].filter(Boolean).join("; ") : dt.length > 0 ? "accepts children" : "", pe = zt ? ` [${zt}]` : "",
|
|
9865
|
-
a.push(`- ${xe}: ${Re}${ot}${pe}${
|
|
9864
|
+
].filter(Boolean).join("; ") : dt.length > 0 ? "accepts children" : "", pe = zt ? ` [${zt}]` : "", Fe = ke.events && ke.events.length > 0 ? ` [events: ${ke.events.join(", ")}]` : "", ot = ke.description ? ` - ${ke.description}` : "";
|
|
9865
|
+
a.push(`- ${xe}: ${Re}${ot}${pe}${Fe}`);
|
|
9866
9866
|
}
|
|
9867
9867
|
a.push("");
|
|
9868
9868
|
}
|
|
9869
|
-
const D = e.data.actions, z = e.schema.builtInActions ?? [],
|
|
9870
|
-
if (
|
|
9869
|
+
const D = e.data.actions, z = e.schema.builtInActions ?? [], B = D && e.actionNames.length > 0, Y = z.length > 0;
|
|
9870
|
+
if (B || Y) {
|
|
9871
9871
|
a.push("AVAILABLE ACTIONS:"), a.push("");
|
|
9872
9872
|
for (const xe of z)
|
|
9873
9873
|
a.push(`- ${xe.name}: ${xe.description} [built-in]`);
|
|
9874
|
-
if (
|
|
9874
|
+
if (B)
|
|
9875
9875
|
for (const [xe, ke] of Object.entries(D))
|
|
9876
9876
|
a.push(`- ${xe}${ke.description ? `: ${ke.description}` : ""}`);
|
|
9877
9877
|
a.push("");
|
|
@@ -9981,7 +9981,7 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
9981
9981
|
"IMPORTANT: When using checks, the component must also have a { $bindState } or { $bindItem } on its value/checked prop for two-way binding."
|
|
9982
9982
|
), a.push(
|
|
9983
9983
|
"Always include validation checks on form inputs for a good user experience (e.g. required, email, minLength)."
|
|
9984
|
-
), a.push("")), (
|
|
9984
|
+
), a.push("")), (B || Y) && (a.push("STATE WATCHERS:"), a.push(
|
|
9985
9985
|
"Elements can have an optional `watch` field to react to state changes and trigger actions. The `watch` field is a top-level field on the element (sibling of type/props/children), NOT inside props."
|
|
9986
9986
|
), a.push(
|
|
9987
9987
|
"Maps state paths (JSON Pointers) to action bindings. When the value at a watched path changes, the bound actions fire automatically."
|
|
@@ -10266,33 +10266,33 @@ function nk(e, t) {
|
|
|
10266
10266
|
return e.createCatalog(t);
|
|
10267
10267
|
}
|
|
10268
10268
|
ce({
|
|
10269
|
-
root:
|
|
10269
|
+
root: V().min(1),
|
|
10270
10270
|
elements: lt(
|
|
10271
|
-
|
|
10271
|
+
V(),
|
|
10272
10272
|
ce({
|
|
10273
|
-
type:
|
|
10274
|
-
props: lt(
|
|
10275
|
-
children: tt(
|
|
10276
|
-
slots: lt(
|
|
10277
|
-
on: lt(
|
|
10273
|
+
type: V(),
|
|
10274
|
+
props: lt(V(), ht()),
|
|
10275
|
+
children: tt(V()).optional(),
|
|
10276
|
+
slots: lt(V(), tt(V())).optional(),
|
|
10277
|
+
on: lt(V(), ht()).optional(),
|
|
10278
10278
|
visible: ht().optional()
|
|
10279
10279
|
}).strict()
|
|
10280
10280
|
),
|
|
10281
|
-
state: lt(
|
|
10281
|
+
state: lt(V(), ht()).optional()
|
|
10282
10282
|
}).strict();
|
|
10283
10283
|
Dx.extend({
|
|
10284
|
-
params: lt(
|
|
10284
|
+
params: lt(V(), ht()).optional(),
|
|
10285
10285
|
onSuccess: ht().optional(),
|
|
10286
10286
|
onError: ht().optional()
|
|
10287
10287
|
}).strict();
|
|
10288
10288
|
var ok = Yt().min(0).max(1);
|
|
10289
10289
|
ce({
|
|
10290
10290
|
answers: lt(
|
|
10291
|
-
|
|
10292
|
-
ce({ type: Yr("choice"), choice:
|
|
10291
|
+
V(),
|
|
10292
|
+
ce({ type: Yr("choice"), choice: V() })
|
|
10293
10293
|
),
|
|
10294
10294
|
providerMetadata: ce({
|
|
10295
|
-
typesafe: ce({ confidence: lt(
|
|
10295
|
+
typesafe: ce({ confidence: lt(V(), ok) }).optional()
|
|
10296
10296
|
}).optional(),
|
|
10297
10297
|
usage: ce({ inputTokens: Yt().int().nonnegative().optional() }).optional()
|
|
10298
10298
|
});
|
|
@@ -10442,7 +10442,7 @@ var rk = Gx(
|
|
|
10442
10442
|
}
|
|
10443
10443
|
});
|
|
10444
10444
|
function ar() {
|
|
10445
|
-
const e =
|
|
10445
|
+
const e = Le(gh);
|
|
10446
10446
|
if (!e)
|
|
10447
10447
|
throw new Error("useStateStore must be used within a StateProvider");
|
|
10448
10448
|
return e;
|
|
@@ -10453,11 +10453,11 @@ var yh = /* @__PURE__ */ Symbol("json-render:visibility"), ak = /* @__PURE__ */
|
|
|
10453
10453
|
const { state: n } = ar(), o = C(() => ({
|
|
10454
10454
|
stateModel: n.value
|
|
10455
10455
|
}));
|
|
10456
|
-
return Ke(yh, { isVisible: (i) =>
|
|
10456
|
+
return Ke(yh, { isVisible: (i) => tr(i, o.value), ctx: o }), () => t.default?.();
|
|
10457
10457
|
}
|
|
10458
10458
|
});
|
|
10459
10459
|
function sk() {
|
|
10460
|
-
const e =
|
|
10460
|
+
const e = Le(yh);
|
|
10461
10461
|
if (!e)
|
|
10462
10462
|
throw new Error("useVisibility must be used within a VisibilityProvider");
|
|
10463
10463
|
return e;
|
|
@@ -10561,7 +10561,7 @@ var ck = /* @__PURE__ */ N({
|
|
|
10561
10561
|
}
|
|
10562
10562
|
});
|
|
10563
10563
|
function dk() {
|
|
10564
|
-
return
|
|
10564
|
+
return Le(
|
|
10565
10565
|
bh,
|
|
10566
10566
|
null
|
|
10567
10567
|
) ?? null;
|
|
@@ -10764,7 +10764,7 @@ var wh = /* @__PURE__ */ Symbol("json-render:actions"), fk = /* @__PURE__ */ N({
|
|
|
10764
10764
|
}
|
|
10765
10765
|
});
|
|
10766
10766
|
function _h() {
|
|
10767
|
-
const e =
|
|
10767
|
+
const e = Le(wh);
|
|
10768
10768
|
if (!e)
|
|
10769
10769
|
throw new Error("useActions must be used within an ActionProvider");
|
|
10770
10770
|
return e;
|
|
@@ -10902,7 +10902,7 @@ var pk = /* @__PURE__ */ N({
|
|
|
10902
10902
|
}
|
|
10903
10903
|
});
|
|
10904
10904
|
function xh() {
|
|
10905
|
-
return
|
|
10905
|
+
return Le(
|
|
10906
10906
|
Sh,
|
|
10907
10907
|
null
|
|
10908
10908
|
) ?? null;
|
|
@@ -10930,7 +10930,7 @@ var kh = /* @__PURE__ */ new WeakMap(), Ch = {}, Ph = /* @__PURE__ */ Symbol("js
|
|
|
10930
10930
|
}
|
|
10931
10931
|
});
|
|
10932
10932
|
function vk() {
|
|
10933
|
-
return
|
|
10933
|
+
return Le(
|
|
10934
10934
|
Ph,
|
|
10935
10935
|
C(() => Ch)
|
|
10936
10936
|
);
|
|
@@ -10951,7 +10951,7 @@ var Ah = /* @__PURE__ */ Symbol("json-render:directives"), gk = /* @__PURE__ */
|
|
|
10951
10951
|
}
|
|
10952
10952
|
});
|
|
10953
10953
|
function yk() {
|
|
10954
|
-
return
|
|
10954
|
+
return Le(
|
|
10955
10955
|
Ah,
|
|
10956
10956
|
C(() => {
|
|
10957
10957
|
})
|
|
@@ -11093,7 +11093,7 @@ var Ql = /* @__PURE__ */ N({
|
|
|
11093
11093
|
{ deep: !0 }
|
|
11094
11094
|
), () => {
|
|
11095
11095
|
const h = c.value;
|
|
11096
|
-
if (!(e.element.visible === void 0 ? !0 :
|
|
11096
|
+
if (!(e.element.visible === void 0 ? !0 : tr(e.element.visible, h))) return null;
|
|
11097
11097
|
const v = e.element.props, g = Cx(v, h), w = kx(v, h), _ = w !== e.element.props ? { ...e.element, props: w } : e.element, P = e.registry[_.type] ?? e.fallback;
|
|
11098
11098
|
if (!P)
|
|
11099
11099
|
return console.warn(
|
|
@@ -11102,18 +11102,18 @@ var Ql = /* @__PURE__ */ N({
|
|
|
11102
11102
|
const b = kh.get(e.registry)?.[_.type];
|
|
11103
11103
|
if (_.slots && b?.slots) {
|
|
11104
11104
|
const z = new Set(b.slots);
|
|
11105
|
-
for (const
|
|
11106
|
-
|
|
11105
|
+
for (const B of Object.keys(_.slots))
|
|
11106
|
+
B === "default" ? console.warn(
|
|
11107
11107
|
`[json-render] Component "${_.type}" uses slots.default. Use "children" for default slot content.`
|
|
11108
|
-
) : z.has(
|
|
11109
|
-
`[json-render] Unknown slot "${
|
|
11108
|
+
) : z.has(B) || console.warn(
|
|
11109
|
+
`[json-render] Unknown slot "${B}" on component "${_.type}". Available slots: ${b.slots.join(", ")}`
|
|
11110
11110
|
);
|
|
11111
11111
|
}
|
|
11112
|
-
const x = (z,
|
|
11112
|
+
const x = (z, B) => z.map((Y) => {
|
|
11113
11113
|
const se = e.spec.elements[Y];
|
|
11114
11114
|
if (!se) {
|
|
11115
11115
|
if (!e.loading) {
|
|
11116
|
-
const de =
|
|
11116
|
+
const de = B ? `in slot "${B}" of "${_.type}"` : `as child of "${_.type}"`;
|
|
11117
11117
|
console.warn(
|
|
11118
11118
|
`[json-render] Missing element "${Y}" referenced ${de}. This element will not render.`
|
|
11119
11119
|
);
|
|
@@ -11136,9 +11136,9 @@ var Ql = /* @__PURE__ */ N({
|
|
|
11136
11136
|
loading: e.loading,
|
|
11137
11137
|
fallback: e.fallback
|
|
11138
11138
|
}) : _.children ? x(_.children) : void 0, A = _.slots ? Object.fromEntries(
|
|
11139
|
-
Object.entries(_.slots).filter(([z]) => z !== "default").map(([z,
|
|
11139
|
+
Object.entries(_.slots).filter(([z]) => z !== "default").map(([z, B]) => [
|
|
11140
11140
|
z,
|
|
11141
|
-
() => x(
|
|
11141
|
+
() => x(B, z)
|
|
11142
11142
|
])
|
|
11143
11143
|
) : {}, T = ae(
|
|
11144
11144
|
P,
|
|
@@ -11417,7 +11417,7 @@ function Ck(e, t) {
|
|
|
11417
11417
|
}
|
|
11418
11418
|
const Pk = /* @__PURE__ */ Symbol("syno-pkg-land-ui:locale");
|
|
11419
11419
|
function Ak(e) {
|
|
11420
|
-
const t =
|
|
11420
|
+
const t = Le(Pk, null);
|
|
11421
11421
|
return C(() => e() ?? t?.value ?? "en");
|
|
11422
11422
|
}
|
|
11423
11423
|
function Ek(e, t) {
|
|
@@ -13516,7 +13516,7 @@ const Tk = ["aria-label"], Oh = /* @__PURE__ */ N({
|
|
|
13516
13516
|
"--ui-spin-stroke": n.inline ? Math.max(2, 32 / Math.max(1, n.size)) : Math.max(2, 36 / Math.max(1, n.size))
|
|
13517
13517
|
}));
|
|
13518
13518
|
return (r, i) => (y(), O("span", {
|
|
13519
|
-
class:
|
|
13519
|
+
class: ee(["ui-spin", { "ui-spin-inline": p(n).inline }]),
|
|
13520
13520
|
role: "status",
|
|
13521
13521
|
"aria-label": p(n).label,
|
|
13522
13522
|
style: Ve(o.value),
|
|
@@ -13564,14 +13564,14 @@ function Nk(e) {
|
|
|
13564
13564
|
Ke($h, e === "action" ? { kind: e, buttons: /* @__PURE__ */ new Set(), warned: /* @__PURE__ */ new Set() } : { kind: e });
|
|
13565
13565
|
}
|
|
13566
13566
|
function Dk(e, t, n) {
|
|
13567
|
-
const o =
|
|
13567
|
+
const o = Le($h, { kind: "tool" });
|
|
13568
13568
|
return C(() => e() ?? o.kind);
|
|
13569
13569
|
}
|
|
13570
13570
|
const Mk = /* @__PURE__ */ Symbol("form-group");
|
|
13571
13571
|
function Th() {
|
|
13572
|
-
return
|
|
13572
|
+
return Le(Mk, null);
|
|
13573
13573
|
}
|
|
13574
|
-
function
|
|
13574
|
+
function Oo(e) {
|
|
13575
13575
|
const t = Th();
|
|
13576
13576
|
return C(() => e() === !0 || t?.disabled === !0);
|
|
13577
13577
|
}
|
|
@@ -13590,7 +13590,7 @@ const zk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13590
13590
|
onClick: {}
|
|
13591
13591
|
},
|
|
13592
13592
|
setup(e) {
|
|
13593
|
-
const t = e, n =
|
|
13593
|
+
const t = e, n = Oo(() => t.disabled), { pending: o, onClick: r } = Rk(() => t.onClick), i = C(() => t.loading || o.value), a = { sm: "h-[var(--ui-control-sm)] px-2.5", md: "h-[var(--ui-control-md)] px-[13px]", lg: "h-[var(--ui-control-lg)] px-4" }, s = /* @__PURE__ */ M(null), l = /* @__PURE__ */ M(null), c = /* @__PURE__ */ M(!1);
|
|
13594
13594
|
function u() {
|
|
13595
13595
|
const m = s.value, v = !!m && !m.textContent?.trim() && !!m.querySelector(":scope > svg");
|
|
13596
13596
|
v !== c.value && (c.value = v);
|
|
@@ -13613,7 +13613,7 @@ const zk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13613
13613
|
ref_key: "buttonEl",
|
|
13614
13614
|
ref: l,
|
|
13615
13615
|
type: e.type,
|
|
13616
|
-
class:
|
|
13616
|
+
class: ee(h.value),
|
|
13617
13617
|
disabled: p(n) || i.value,
|
|
13618
13618
|
"data-disabled": p(n) || void 0,
|
|
13619
13619
|
"data-loading": i.value || void 0,
|
|
@@ -13626,11 +13626,11 @@ const zk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13626
13626
|
}, [
|
|
13627
13627
|
i.value ? (y(), O("span", Fk, [
|
|
13628
13628
|
K(Oh, { size: 16 })
|
|
13629
|
-
])) :
|
|
13629
|
+
])) : L("", !0),
|
|
13630
13630
|
ne("span", {
|
|
13631
13631
|
ref_key: "labelEl",
|
|
13632
13632
|
ref: s,
|
|
13633
|
-
class:
|
|
13633
|
+
class: ee(["min-w-0 truncate [&>svg]:inline-block [&>svg]:shrink-0 [&>svg]:align-middle", !c.value && "[&>svg:first-child]:mr-2 [&>svg:not(:first-child)]:ml-2"]),
|
|
13634
13634
|
"data-icon-only": c.value || void 0
|
|
13635
13635
|
}, [
|
|
13636
13636
|
I(m.$slots, "default")
|
|
@@ -13639,10 +13639,10 @@ const zk = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
13639
13639
|
}
|
|
13640
13640
|
}), Ih = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form"), Ca = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form-field");
|
|
13641
13641
|
function Bk() {
|
|
13642
|
-
return
|
|
13642
|
+
return Le(Ih, null);
|
|
13643
13643
|
}
|
|
13644
13644
|
function Vk() {
|
|
13645
|
-
return
|
|
13645
|
+
return Le(Ca, null);
|
|
13646
13646
|
}
|
|
13647
13647
|
function sr(e) {
|
|
13648
13648
|
const t = Rl(), n = Vk(), o = /* @__PURE__ */ Symbol("primary-control"), r = n?.claimControl?.(o), i = C(() => n?.isPrimaryControl ? n.isPrimaryControl(o) ? n : null : r === !1 ? null : n);
|
|
@@ -13680,7 +13680,7 @@ function Uk() {
|
|
|
13680
13680
|
}), C(() => jk.filter((t) => [...e].some((n) => n.value === t)).at(-1));
|
|
13681
13681
|
}
|
|
13682
13682
|
function Wk(e) {
|
|
13683
|
-
|
|
13683
|
+
Le(Rh, null)?.(C(e));
|
|
13684
13684
|
}
|
|
13685
13685
|
const po = {
|
|
13686
13686
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13742,7 +13742,7 @@ const pi = (e) => e === "";
|
|
|
13742
13742
|
const Hk = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
13743
13743
|
const Gk = /* @__PURE__ */ Symbol("lucide-icons");
|
|
13744
13744
|
function Jk() {
|
|
13745
|
-
return
|
|
13745
|
+
return Le(Gk, {});
|
|
13746
13746
|
}
|
|
13747
13747
|
const Yk = ({
|
|
13748
13748
|
name: e,
|
|
@@ -13787,7 +13787,7 @@ const Yk = ({
|
|
|
13787
13787
|
attributes: m
|
|
13788
13788
|
});
|
|
13789
13789
|
return ae("svg", D, [
|
|
13790
|
-
...z.map(([
|
|
13790
|
+
...z.map(([B, Y]) => ae(B, Y)),
|
|
13791
13791
|
...T ?? []
|
|
13792
13792
|
]);
|
|
13793
13793
|
};
|
|
@@ -13809,7 +13809,7 @@ const Xk = {
|
|
|
13809
13809
|
name: "check",
|
|
13810
13810
|
size: 24,
|
|
13811
13811
|
node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
|
|
13812
|
-
},
|
|
13812
|
+
}, jo = kt(Xk);
|
|
13813
13813
|
const Qk = {
|
|
13814
13814
|
name: "chevron-down",
|
|
13815
13815
|
size: 24,
|
|
@@ -13977,69 +13977,84 @@ const CC = {
|
|
|
13977
13977
|
id: {},
|
|
13978
13978
|
name: {},
|
|
13979
13979
|
ariaLabel: {},
|
|
13980
|
-
ariaLabelledby: {}
|
|
13980
|
+
ariaLabelledby: {},
|
|
13981
|
+
unit: {}
|
|
13981
13982
|
},
|
|
13982
13983
|
emits: ["update:modelValue"],
|
|
13983
13984
|
setup(e, { emit: t }) {
|
|
13984
|
-
const n = e, o =
|
|
13985
|
+
const n = e, o = Oo(() => n.disabled), r = t, i = Bn(), a = Eo(), s = C(() => !!n.unit || !!a.unit), l = /* @__PURE__ */ M(!1), c = C(() => n.type === "password"), u = C(() => c.value && l.value ? "text" : n.type), d = C(
|
|
13985
13986
|
() => On(
|
|
13986
13987
|
n.type === "number" ? "w-32 max-w-full" : "w-full",
|
|
13987
|
-
|
|
13988
|
+
c.value && "pr-8",
|
|
13988
13989
|
"min-w-[min(100%,6rem)] border bg-[var(--ui-surface)] px-2.5 text-[13px] text-[var(--ui-text)] outline-none transition-[border-color,box-shadow,background-color] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] text-ellipsis placeholder:text-[var(--ui-text-muted)] focus:shadow-[var(--ui-shadow-focus)] disabled:cursor-default disabled:bg-[var(--ui-surface-subtle)] disabled:text-[var(--ui-text-disabled)]",
|
|
13989
13990
|
n.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)]",
|
|
13990
13991
|
n.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-control)]",
|
|
13991
13992
|
n.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)]",
|
|
13992
|
-
|
|
13993
|
+
v.value ? "border-[var(--ui-danger)] focus:border-[var(--ui-danger)]" : "border-[var(--ui-border)] focus:border-[var(--ui-primary)] enabled:hover:not-focus:border-[var(--ui-control-border-hover)]"
|
|
13993
13994
|
)
|
|
13994
13995
|
);
|
|
13995
13996
|
Wk(() => n.type === "number" ? void 0 : "sm");
|
|
13996
|
-
const { controlAttrs:
|
|
13997
|
-
return (
|
|
13998
|
-
class: "
|
|
13997
|
+
const { controlAttrs: f, wrapperAttrs: h, changed: m, invalid: v } = sr({ value: () => n.modelValue, disabled: () => o.value, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby, invalid: () => n.invalid });
|
|
13998
|
+
return (g, w) => c.value || s.value ? (y(), O("span", oe({ key: 0 }, p(h)(), {
|
|
13999
|
+
class: ["flex min-w-0 items-center gap-2", n.type === "number" ? "max-w-full" : "w-full"],
|
|
13999
14000
|
"data-syno-pkg-land-ui": ""
|
|
14000
14001
|
}), [
|
|
14001
|
-
ne("
|
|
14002
|
-
|
|
14003
|
-
type: l.value,
|
|
14004
|
-
name: n.name,
|
|
14005
|
-
placeholder: e.placeholder,
|
|
14006
|
-
disabled: p(o),
|
|
14007
|
-
readonly: e.readonly,
|
|
14008
|
-
class: c.value,
|
|
14009
|
-
onInput: v[0] || (v[0] = (g) => {
|
|
14010
|
-
p(f)(g.target.value), r("update:modelValue", g.target.value);
|
|
14011
|
-
})
|
|
14012
|
-
}), null, 16, PC),
|
|
14013
|
-
ne("button", {
|
|
14014
|
-
type: "button",
|
|
14015
|
-
"data-ui-password-toggle": "",
|
|
14016
|
-
disabled: p(o),
|
|
14017
|
-
"aria-label": a.value ? p(i)("Hide password") : p(i)("Show password"),
|
|
14018
|
-
"aria-pressed": a.value,
|
|
14019
|
-
class: "absolute right-1 flex size-6 items-center justify-center rounded-[var(--ui-radius-sm)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40 [@media(pointer:coarse)]:after:absolute [@media(pointer:coarse)]:after:-inset-1.5",
|
|
14020
|
-
onClick: v[1] || (v[1] = (g) => a.value = !a.value)
|
|
14002
|
+
ne("span", {
|
|
14003
|
+
class: ee(["relative inline-flex min-w-0 items-center", n.type !== "number" && "flex-1"])
|
|
14021
14004
|
}, [
|
|
14022
|
-
|
|
14005
|
+
ne("input", oe(p(f)(), {
|
|
14006
|
+
value: e.modelValue,
|
|
14007
|
+
type: u.value,
|
|
14008
|
+
name: n.name,
|
|
14009
|
+
placeholder: e.placeholder,
|
|
14010
|
+
disabled: p(o),
|
|
14011
|
+
readonly: e.readonly,
|
|
14012
|
+
class: d.value,
|
|
14013
|
+
onInput: w[0] || (w[0] = (_) => {
|
|
14014
|
+
p(m)(_.target.value), r("update:modelValue", _.target.value);
|
|
14015
|
+
})
|
|
14016
|
+
}), null, 16, PC),
|
|
14017
|
+
c.value ? (y(), O("button", {
|
|
14023
14018
|
key: 0,
|
|
14024
|
-
|
|
14025
|
-
"
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
"
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14019
|
+
type: "button",
|
|
14020
|
+
"data-ui-password-toggle": "",
|
|
14021
|
+
disabled: p(o),
|
|
14022
|
+
"aria-label": l.value ? p(i)("Hide password") : p(i)("Show password"),
|
|
14023
|
+
"aria-pressed": l.value,
|
|
14024
|
+
class: "absolute right-1 flex size-6 items-center justify-center rounded-[var(--ui-radius-sm)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40 [@media(pointer:coarse)]:after:absolute [@media(pointer:coarse)]:after:-inset-1.5",
|
|
14025
|
+
onClick: w[1] || (w[1] = (_) => l.value = !l.value)
|
|
14026
|
+
}, [
|
|
14027
|
+
l.value ? (y(), R(p(aC), {
|
|
14028
|
+
key: 0,
|
|
14029
|
+
class: "size-4",
|
|
14030
|
+
"aria-hidden": "true"
|
|
14031
|
+
})) : (y(), R(p(lC), {
|
|
14032
|
+
key: 1,
|
|
14033
|
+
class: "size-4",
|
|
14034
|
+
"aria-hidden": "true"
|
|
14035
|
+
}))
|
|
14036
|
+
], 8, AC)) : L("", !0)
|
|
14037
|
+
], 2),
|
|
14038
|
+
s.value ? (y(), O("span", {
|
|
14039
|
+
key: 0,
|
|
14040
|
+
"data-ui-input-unit": "",
|
|
14041
|
+
class: ee(["shrink-0 whitespace-nowrap text-[13px] leading-5", p(o) ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text)]"])
|
|
14042
|
+
}, [
|
|
14043
|
+
I(g.$slots, "unit", {}, () => [
|
|
14044
|
+
ze(te(e.unit), 1)
|
|
14045
|
+
])
|
|
14046
|
+
], 2)) : L("", !0)
|
|
14047
|
+
], 16)) : (y(), O("input", oe({ key: 1 }, { ...p(h)(), ...p(f)() }, {
|
|
14033
14048
|
value: e.modelValue,
|
|
14034
14049
|
type: e.type,
|
|
14035
14050
|
name: n.name,
|
|
14036
14051
|
placeholder: e.placeholder,
|
|
14037
14052
|
disabled: p(o),
|
|
14038
14053
|
readonly: e.readonly,
|
|
14039
|
-
class:
|
|
14054
|
+
class: d.value,
|
|
14040
14055
|
"data-syno-pkg-land-ui": "",
|
|
14041
|
-
onInput:
|
|
14042
|
-
p(
|
|
14056
|
+
onInput: w[2] || (w[2] = (_) => {
|
|
14057
|
+
p(m)(_.target.value), r("update:modelValue", _.target.value);
|
|
14043
14058
|
})
|
|
14044
14059
|
}), null, 16, EC));
|
|
14045
14060
|
}
|
|
@@ -14185,7 +14200,7 @@ const RC = /* @__PURE__ */ (function() {
|
|
|
14185
14200
|
};
|
|
14186
14201
|
return e;
|
|
14187
14202
|
})();
|
|
14188
|
-
function
|
|
14203
|
+
function nr(e, t) {
|
|
14189
14204
|
return e === t || rd(e) === rd(t);
|
|
14190
14205
|
}
|
|
14191
14206
|
function id(e, t = Number.NEGATIVE_INFINITY, n = Number.POSITIVE_INFINITY) {
|
|
@@ -14194,7 +14209,7 @@ function id(e, t = Number.NEGATIVE_INFINITY, n = Number.POSITIVE_INFINITY) {
|
|
|
14194
14209
|
function He(e, t) {
|
|
14195
14210
|
const n = typeof e == "string" && !t ? `${e}Context` : t, o = Symbol(n);
|
|
14196
14211
|
return [(a) => {
|
|
14197
|
-
const s =
|
|
14212
|
+
const s = Le(o, a);
|
|
14198
14213
|
if (s || s === null) return s;
|
|
14199
14214
|
throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
14200
14215
|
}, (a) => (Ke(o, a), a)];
|
|
@@ -14213,11 +14228,11 @@ function Aa(e, t, n) {
|
|
|
14213
14228
|
});
|
|
14214
14229
|
t && o.addEventListener(e, t, { once: !0 }), o.dispatchEvent(r);
|
|
14215
14230
|
}
|
|
14216
|
-
function
|
|
14231
|
+
function or(e) {
|
|
14217
14232
|
return e == null;
|
|
14218
14233
|
}
|
|
14219
14234
|
function ad(e, t) {
|
|
14220
|
-
return
|
|
14235
|
+
return or(e) ? !1 : Array.isArray(e) ? e.some((n) => nr(n, t)) : nr(e, t);
|
|
14221
14236
|
}
|
|
14222
14237
|
function ur(e, t) {
|
|
14223
14238
|
return xl() ? (la(e, t), !0) : !1;
|
|
@@ -14541,7 +14556,7 @@ function Vr(e) {
|
|
|
14541
14556
|
return t || (t = { local: /* @__PURE__ */ new Set(), document: /* @__PURE__ */ new Set() }, cd.set(e, t)), t;
|
|
14542
14557
|
}
|
|
14543
14558
|
function Zt() {
|
|
14544
|
-
return
|
|
14559
|
+
return Le(Lh, null);
|
|
14545
14560
|
}
|
|
14546
14561
|
function Hi() {
|
|
14547
14562
|
if (typeof document < "u" && Vr(document).local.size) throw new Error(nu);
|
|
@@ -14592,7 +14607,7 @@ function nP(e, t) {
|
|
|
14592
14607
|
}
|
|
14593
14608
|
return !1;
|
|
14594
14609
|
}
|
|
14595
|
-
function
|
|
14610
|
+
function zo(e, t = {}) {
|
|
14596
14611
|
e?.isConnected && !e.closest("[inert]") && e.focus({ preventScroll: !0, ...t });
|
|
14597
14612
|
}
|
|
14598
14613
|
class oP {
|
|
@@ -14657,7 +14672,7 @@ class oP {
|
|
|
14657
14672
|
if (!this.canFocus()) return;
|
|
14658
14673
|
const n = this.closingFocusTarget ?? t;
|
|
14659
14674
|
Me(() => {
|
|
14660
|
-
this.canFocus() && (n?.isConnected && this.belongs(n) && !n.closest("[inert]") ?
|
|
14675
|
+
this.canFocus() && (n?.isConnected && this.belongs(n) && !n.closest("[inert]") ? zo(n) : zo(this.top?.element ?? this.root.value));
|
|
14661
14676
|
});
|
|
14662
14677
|
}
|
|
14663
14678
|
layer(t, n, o, r) {
|
|
@@ -14724,13 +14739,13 @@ class oP {
|
|
|
14724
14739
|
const r = this.scopes.at(-1)?.element ?? this.modal?.element;
|
|
14725
14740
|
if (!r || !r.contains(t.target)) return;
|
|
14726
14741
|
const i = fs(r), a = i[0], s = i.at(-1);
|
|
14727
|
-
(!a || !t.shiftKey && t.target === s || t.shiftKey && t.target === a) && (t.preventDefault(),
|
|
14742
|
+
(!a || !t.shiftKey && t.target === s || t.shiftKey && t.target === a) && (t.preventDefault(), zo((t.shiftKey ? s : a) ?? r));
|
|
14728
14743
|
}
|
|
14729
14744
|
}
|
|
14730
14745
|
};
|
|
14731
14746
|
pointerdown = (t) => {
|
|
14732
14747
|
const n = t.target, o = n.closest("button,input,select,textarea,a[href],[tabindex]"), r = o?.hasAttribute("data-ui-keyboard-focus");
|
|
14733
|
-
o && !r && o.tabIndex >= 0 && (!this.modal || this.allowed(o)) &&
|
|
14748
|
+
o && !r && o.tabIndex >= 0 && (!this.modal || this.allowed(o)) && zo(o, { focusVisible: !1 }), this.pointerIntent = !0, clearTimeout(this.pointerTimer), this.pointerTimer = setTimeout(() => {
|
|
14734
14749
|
this.pointerIntent = !1;
|
|
14735
14750
|
}, 0);
|
|
14736
14751
|
const i = this.top;
|
|
@@ -14751,7 +14766,7 @@ class oP {
|
|
|
14751
14766
|
if (!this.modal && !o?.trapped) return;
|
|
14752
14767
|
this.returningFocus = !0;
|
|
14753
14768
|
const r = this.modal?.element ?? o.element;
|
|
14754
|
-
|
|
14769
|
+
zo(this.lastFocused && this.allowed(this.lastFocused) ? this.lastFocused : fs(r)[0] ?? r), this.returningFocus = !1;
|
|
14755
14770
|
};
|
|
14756
14771
|
focusScope(t, n, o, r) {
|
|
14757
14772
|
fe([t, n], ([i, a], s, l) => {
|
|
@@ -14762,7 +14777,7 @@ class oP {
|
|
|
14762
14777
|
const f = new Event("focusScope.autoFocusOnMount", { cancelable: !0 });
|
|
14763
14778
|
u || f.preventDefault(), r("mountAutoFocus", f);
|
|
14764
14779
|
const h = i.ownerDocument.activeElement;
|
|
14765
|
-
!f.defaultPrevented && (this.canFocus() || u && h === i.ownerDocument.body) &&
|
|
14780
|
+
!f.defaultPrevented && (this.canFocus() || u && h === i.ownerDocument.body) && zo(fs(i).find((m) => !m.hasAttribute("data-ui-keyboard-focus")) ?? i);
|
|
14766
14781
|
}), l(() => {
|
|
14767
14782
|
const f = this.canFocus();
|
|
14768
14783
|
this.scopes = this.scopes.filter((m) => m !== d);
|
|
@@ -14881,7 +14896,7 @@ function dr(e) {
|
|
|
14881
14896
|
const t = cr({ dir: /* @__PURE__ */ M("ltr") });
|
|
14882
14897
|
return C(() => e?.value || t.dir?.value || "ltr");
|
|
14883
14898
|
}
|
|
14884
|
-
function
|
|
14899
|
+
function $o(e) {
|
|
14885
14900
|
const t = Nt(), n = t?.type.emits, o = {};
|
|
14886
14901
|
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((r) => {
|
|
14887
14902
|
o[Pr(mt(r))] = (...i) => e(r, ...i);
|
|
@@ -14949,7 +14964,7 @@ function be() {
|
|
|
14949
14964
|
currentElement: n
|
|
14950
14965
|
};
|
|
14951
14966
|
}
|
|
14952
|
-
function
|
|
14967
|
+
function To(e) {
|
|
14953
14968
|
const t = Nt(), n = Object.keys(t?.type.props ?? {}).reduce((r, i) => {
|
|
14954
14969
|
const a = (t?.type.props[i]).default;
|
|
14955
14970
|
return a !== void 0 && (r[i] = a), r;
|
|
@@ -14965,7 +14980,7 @@ function $o(e) {
|
|
|
14965
14980
|
});
|
|
14966
14981
|
}
|
|
14967
14982
|
function Vn(e, t) {
|
|
14968
|
-
const n =
|
|
14983
|
+
const n = To(e), o = t ? $o(t) : {};
|
|
14969
14984
|
return C(() => ({
|
|
14970
14985
|
...n.value,
|
|
14971
14986
|
...o
|
|
@@ -15137,7 +15152,7 @@ var hP = function(e) {
|
|
|
15137
15152
|
return null;
|
|
15138
15153
|
var t = Array.isArray(e) ? e[0] : e;
|
|
15139
15154
|
return t.ownerDocument.body;
|
|
15140
|
-
},
|
|
15155
|
+
}, Fo = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), vi = {}, ms = 0, Uh = function(e) {
|
|
15141
15156
|
return e && (e.host || Uh(e.parentNode));
|
|
15142
15157
|
}, mP = function(e, t) {
|
|
15143
15158
|
return t.map(function(n) {
|
|
@@ -15161,8 +15176,8 @@ var hP = function(e) {
|
|
|
15161
15176
|
u(f);
|
|
15162
15177
|
else
|
|
15163
15178
|
try {
|
|
15164
|
-
var h = f.getAttribute(o), m = h !== null && h !== "false", v = (
|
|
15165
|
-
|
|
15179
|
+
var h = f.getAttribute(o), m = h !== null && h !== "false", v = (Fo.get(f) || 0) + 1, g = (i.get(f) || 0) + 1;
|
|
15180
|
+
Fo.set(f, v), i.set(f, g), a.push(f), v === 1 && m && mi.set(f, !0), g === 1 && f.setAttribute(n, "true"), m || f.setAttribute(o, "true");
|
|
15166
15181
|
} catch (w) {
|
|
15167
15182
|
console.error("aria-hidden: cannot operate on ", f, w);
|
|
15168
15183
|
}
|
|
@@ -15170,9 +15185,9 @@ var hP = function(e) {
|
|
|
15170
15185
|
};
|
|
15171
15186
|
return u(t), s.clear(), ms++, function() {
|
|
15172
15187
|
a.forEach(function(d) {
|
|
15173
|
-
var f =
|
|
15174
|
-
|
|
15175
|
-
}), ms--, ms || (
|
|
15188
|
+
var f = Fo.get(d) - 1, h = i.get(d) - 1;
|
|
15189
|
+
Fo.set(d, f), i.set(d, h), f || (mi.has(d) || d.removeAttribute(o), mi.delete(d)), h || d.removeAttribute(n);
|
|
15190
|
+
}), ms--, ms || (Fo = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), vi = {});
|
|
15176
15191
|
};
|
|
15177
15192
|
}, gP = function(e, t, n) {
|
|
15178
15193
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -15596,7 +15611,7 @@ var RP = /* @__PURE__ */ N({
|
|
|
15596
15611
|
() => n.present
|
|
15597
15612
|
], ([m, v, g], w, _) => {
|
|
15598
15613
|
!m || !g || v && (rt.layersWithOutsidePointerEventsDisabled.size === 0 && (rt.originalBodyPointerEventsPriority = s.value.body.style.getPropertyPriority("pointer-events"), rt.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), rt.layersWithOutsidePointerEventsDisabled.add(m), _(() => {
|
|
15599
|
-
rt.layersWithOutsidePointerEventsDisabled.delete(m), rt.layersWithOutsidePointerEventsDisabled.size === 0 && !
|
|
15614
|
+
rt.layersWithOutsidePointerEventsDisabled.delete(m), rt.layersWithOutsidePointerEventsDisabled.size === 0 && !or(rt.originalBodyPointerEvents) && s.value.body.style.setProperty("pointer-events", rt.originalBodyPointerEvents, rt.originalBodyPointerEventsPriority ?? "");
|
|
15600
15615
|
}));
|
|
15601
15616
|
}, { immediate: !0 }), fe([i, () => n.present], ([m, v], g, w) => {
|
|
15602
15617
|
!m || !v || (l.value.add(m), w(() => {
|
|
@@ -15855,7 +15870,7 @@ function ZP(e, t) {
|
|
|
15855
15870
|
};
|
|
15856
15871
|
return KP(n, t);
|
|
15857
15872
|
}
|
|
15858
|
-
function
|
|
15873
|
+
function rr(e) {
|
|
15859
15874
|
return e.pointerType === "mouse";
|
|
15860
15875
|
}
|
|
15861
15876
|
var HP = /* @__PURE__ */ N({
|
|
@@ -15977,7 +15992,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
15977
15992
|
"closeAutoFocus"
|
|
15978
15993
|
],
|
|
15979
15994
|
setup(e, { emit: t }) {
|
|
15980
|
-
const n = e, o = t, r = Sn(), i = Zt(), a =
|
|
15995
|
+
const n = e, o = t, r = Sn(), i = Zt(), a = $o(o), { forwardRef: s, currentElement: l } = be(), c = C(() => n.present ? l.value : void 0);
|
|
15981
15996
|
ru(c);
|
|
15982
15997
|
const u = C(() => {
|
|
15983
15998
|
const { present: d, ...f } = n;
|
|
@@ -16049,7 +16064,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
16049
16064
|
"closeAutoFocus"
|
|
16050
16065
|
],
|
|
16051
16066
|
setup(e, { emit: t }) {
|
|
16052
|
-
const n = e, r =
|
|
16067
|
+
const n = e, r = $o(t);
|
|
16053
16068
|
be();
|
|
16054
16069
|
const i = Sn(), a = /* @__PURE__ */ M(!1), s = /* @__PURE__ */ M(!1), l = C(() => {
|
|
16055
16070
|
const { present: c, ...u } = n;
|
|
@@ -16107,7 +16122,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
16107
16122
|
"closeAutoFocus"
|
|
16108
16123
|
],
|
|
16109
16124
|
setup(e, { emit: t }) {
|
|
16110
|
-
const n = e, o = t, r = Sn(), i =
|
|
16125
|
+
const n = e, o = t, r = Sn(), i = $o(o), { forwardRef: a } = be(), s = C(() => n.forceMount || !r.unmountOnHide.value);
|
|
16111
16126
|
return (l, c) => (y(), R(p(jn), {
|
|
16112
16127
|
present: p(r).open.value,
|
|
16113
16128
|
"force-mount": s.value
|
|
@@ -16123,7 +16138,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
16123
16138
|
}), {
|
|
16124
16139
|
default: $(() => [I(l.$slots, "default")]),
|
|
16125
16140
|
_: 2
|
|
16126
|
-
}, 1040, ["present"])), [[
|
|
16141
|
+
}, 1040, ["present"])), [[Jo, l.forceMount || p(r).unmountOnHide.value || u]]) : So((y(), R(XP, oe({
|
|
16127
16142
|
key: 1,
|
|
16128
16143
|
ref: p(a),
|
|
16129
16144
|
present: s.value ? u : !0
|
|
@@ -16134,7 +16149,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
16134
16149
|
}), {
|
|
16135
16150
|
default: $(() => [I(l.$slots, "default")]),
|
|
16136
16151
|
_: 2
|
|
16137
|
-
}, 1040, ["present"])), [[
|
|
16152
|
+
}, 1040, ["present"])), [[Jo, l.forceMount || p(r).unmountOnHide.value || u]])]),
|
|
16138
16153
|
_: 3
|
|
16139
16154
|
}, 8, ["present", "force-mount"]));
|
|
16140
16155
|
}
|
|
@@ -16234,9 +16249,9 @@ var HP = /* @__PURE__ */ N({
|
|
|
16234
16249
|
"as",
|
|
16235
16250
|
"as-child",
|
|
16236
16251
|
"present"
|
|
16237
|
-
]), [[
|
|
16252
|
+
]), [[Jo, i.forceMount || p(n).unmountOnHide.value || s]])]),
|
|
16238
16253
|
_: 3
|
|
16239
|
-
}, 8, ["present", "force-mount"])) :
|
|
16254
|
+
}, 8, ["present", "force-mount"])) : L("v-if", !0);
|
|
16240
16255
|
}
|
|
16241
16256
|
}), aA = iA, sA = /* @__PURE__ */ N({
|
|
16242
16257
|
__name: "Teleport",
|
|
@@ -16269,7 +16284,7 @@ var HP = /* @__PURE__ */ N({
|
|
|
16269
16284
|
"to",
|
|
16270
16285
|
"disabled",
|
|
16271
16286
|
"defer"
|
|
16272
|
-
])) :
|
|
16287
|
+
])) : L("v-if", !0);
|
|
16273
16288
|
}
|
|
16274
16289
|
}), Ta = sA, lA = /* @__PURE__ */ N({
|
|
16275
16290
|
__name: "DialogPortal",
|
|
@@ -16362,7 +16377,7 @@ function so(e = {}) {
|
|
|
16362
16377
|
n ? (r = {
|
|
16363
16378
|
collectionRef: /* @__PURE__ */ M(),
|
|
16364
16379
|
itemMap: /* @__PURE__ */ M(/* @__PURE__ */ new Map())
|
|
16365
|
-
}, Ke(o, r)) : r =
|
|
16380
|
+
}, Ke(o, r)) : r = Le(o);
|
|
16366
16381
|
const i = (d, f = !1) => {
|
|
16367
16382
|
if (!r.collectionRef.value) return;
|
|
16368
16383
|
const h = r.itemMap.value.get(d);
|
|
@@ -16558,7 +16573,7 @@ var hA = /* @__PURE__ */ N({
|
|
|
16558
16573
|
name: `${t.name}[${r}]`,
|
|
16559
16574
|
value: i
|
|
16560
16575
|
})) : []);
|
|
16561
|
-
return (r, i) => (y(), O(Se, null, [
|
|
16576
|
+
return (r, i) => (y(), O(Se, null, [L(" We render single input if it's required "), n.value ? (y(), R(gd, oe({ key: r.name }, {
|
|
16562
16577
|
...t,
|
|
16563
16578
|
...r.$attrs
|
|
16564
16579
|
}, {
|
|
@@ -16947,7 +16962,7 @@ const FA = 50, qA = async (e, t, n) => {
|
|
|
16947
16962
|
}, h = pu(r), m = fu(h), v = await a.getDimensions(c), g = h === "y", w = g ? "top" : "left", _ = g ? "bottom" : "right", P = g ? "clientHeight" : "clientWidth", b = i.reference[m] + i.reference[h] - f[h] - i.floating[m], x = f[h] - i.reference[h], k = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
16948
16963
|
let A = k ? k[P] : 0;
|
|
16949
16964
|
(!A || !await (a.isElement == null ? void 0 : a.isElement(k))) && (A = s.floating[P] || i.floating[m]);
|
|
16950
|
-
const T = b / 2 - x / 2, D = A / 2 - v[m] / 2 - 1, z = no(d[w], D),
|
|
16965
|
+
const T = b / 2 - x / 2, D = A / 2 - v[m] / 2 - 1, z = no(d[w], D), B = no(d[_], D), Y = A - v[m] - B, se = A / 2 - v[m] / 2 + T, de = Yh(z, se, Y), Z = !l.arrow && fr(r) != null && se !== de && i.reference[m] / 2 - (se < z ? z : B) - v[m] / 2 < 0, re = Z ? se < z ? se - z : se - Y : 0;
|
|
16951
16966
|
return {
|
|
16952
16967
|
[h]: f[h] + re,
|
|
16953
16968
|
data: {
|
|
@@ -16996,8 +17011,8 @@ const FA = 50, qA = async (e, t, n) => {
|
|
|
16996
17011
|
placement: r,
|
|
16997
17012
|
overflows: D
|
|
16998
17013
|
}], !D.every((de) => de <= 0)) {
|
|
16999
|
-
var
|
|
17000
|
-
const de = (((
|
|
17014
|
+
var B, Y;
|
|
17015
|
+
const de = (((B = i.flip) == null ? void 0 : B.index) || 0) + 1, Z = A[de];
|
|
17001
17016
|
if (Z && (!(d === "alignment" ? _ !== hn(Z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
17002
17017
|
// overflows the main axis.
|
|
17003
17018
|
z.every((ve) => hn(ve.placement) === _ ? ve.overflows[0] > 0 : !0)))
|
|
@@ -17277,7 +17292,7 @@ const UA = function(e) {
|
|
|
17277
17292
|
function Na() {
|
|
17278
17293
|
return typeof window < "u";
|
|
17279
17294
|
}
|
|
17280
|
-
function
|
|
17295
|
+
function Io(e) {
|
|
17281
17296
|
return hu(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
17282
17297
|
}
|
|
17283
17298
|
function It(e) {
|
|
@@ -17310,7 +17325,7 @@ function Da(e) {
|
|
|
17310
17325
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && r !== "inline" && r !== "contents";
|
|
17311
17326
|
}
|
|
17312
17327
|
function HA(e) {
|
|
17313
|
-
return /^(table|td|th)$/.test(
|
|
17328
|
+
return /^(table|td|th)$/.test(Io(e));
|
|
17314
17329
|
}
|
|
17315
17330
|
function Ma(e) {
|
|
17316
17331
|
try {
|
|
@@ -17345,7 +17360,7 @@ function vu() {
|
|
|
17345
17360
|
return ys == null && (ys = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ys;
|
|
17346
17361
|
}
|
|
17347
17362
|
function jr(e) {
|
|
17348
|
-
return /^(html|body|#document)$/.test(
|
|
17363
|
+
return /^(html|body|#document)$/.test(Io(e));
|
|
17349
17364
|
}
|
|
17350
17365
|
function _n(e) {
|
|
17351
17366
|
return It(e).getComputedStyle(e);
|
|
@@ -17360,7 +17375,7 @@ function za(e) {
|
|
|
17360
17375
|
};
|
|
17361
17376
|
}
|
|
17362
17377
|
function Po(e) {
|
|
17363
|
-
if (
|
|
17378
|
+
if (Io(e) === "html")
|
|
17364
17379
|
return e;
|
|
17365
17380
|
const t = (
|
|
17366
17381
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -17401,7 +17416,7 @@ function tm(e) {
|
|
|
17401
17416
|
function gu(e) {
|
|
17402
17417
|
return wn(e) ? e : e.contextElement;
|
|
17403
17418
|
}
|
|
17404
|
-
function
|
|
17419
|
+
function Ho(e) {
|
|
17405
17420
|
const t = gu(e);
|
|
17406
17421
|
if (!lo(t))
|
|
17407
17422
|
return In(1);
|
|
@@ -17431,14 +17446,14 @@ function Ao(e, t, n, o) {
|
|
|
17431
17446
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
17432
17447
|
const r = e.getBoundingClientRect(), i = gu(e);
|
|
17433
17448
|
let a = In(1);
|
|
17434
|
-
t && (o ? wn(o) && (a =
|
|
17449
|
+
t && (o ? wn(o) && (a = Ho(o)) : a = Ho(e));
|
|
17435
17450
|
const s = QA(i, n, o) ? nm(i) : In(0);
|
|
17436
17451
|
let l = (r.left + s.x) / a.x, c = (r.top + s.y) / a.y, u = r.width / a.x, d = r.height / a.y;
|
|
17437
17452
|
if (i && o) {
|
|
17438
17453
|
const f = It(i), h = wn(o) ? It(o) : o;
|
|
17439
17454
|
let m = f, v = nl(m);
|
|
17440
17455
|
for (; v && h !== m; ) {
|
|
17441
|
-
const g =
|
|
17456
|
+
const g = Ho(v), w = v.getBoundingClientRect(), _ = _n(v), P = w.left + (v.clientLeft + parseFloat(_.paddingLeft)) * g.x, b = w.top + (v.clientTop + parseFloat(_.paddingTop)) * g.y;
|
|
17442
17457
|
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += P, c += b, m = It(v), v = nl(m);
|
|
17443
17458
|
}
|
|
17444
17459
|
}
|
|
@@ -17475,9 +17490,9 @@ function e1(e) {
|
|
|
17475
17490
|
scrollTop: 0
|
|
17476
17491
|
}, c = In(1);
|
|
17477
17492
|
const u = In(0), d = lo(o);
|
|
17478
|
-
if ((d || !i) && ((
|
|
17493
|
+
if ((d || !i) && ((Io(o) !== "body" || Da(a)) && (l = za(o)), d)) {
|
|
17479
17494
|
const h = Ao(o);
|
|
17480
|
-
c =
|
|
17495
|
+
c = Ho(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
17481
17496
|
}
|
|
17482
17497
|
const f = a && !d && !i ? om(a, l) : In(0);
|
|
17483
17498
|
return {
|
|
@@ -17522,7 +17537,7 @@ function r1(e, t, n) {
|
|
|
17522
17537
|
};
|
|
17523
17538
|
}
|
|
17524
17539
|
function i1(e, t) {
|
|
17525
|
-
const n = Ao(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i =
|
|
17540
|
+
const n = Ao(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ho(e), a = e.clientWidth * i.x, s = e.clientHeight * i.y, l = r * i.x, c = o * i.y;
|
|
17526
17541
|
return {
|
|
17527
17542
|
width: a,
|
|
17528
17543
|
height: s,
|
|
@@ -17553,7 +17568,7 @@ function a1(e, t) {
|
|
|
17553
17568
|
const n = t.get(e);
|
|
17554
17569
|
if (n)
|
|
17555
17570
|
return n;
|
|
17556
|
-
let o = Ur(e, [], !1).filter((s) => wn(s) &&
|
|
17571
|
+
let o = Ur(e, [], !1).filter((s) => wn(s) && Io(s) !== "body"), r = null;
|
|
17557
17572
|
const i = _n(e).position === "fixed";
|
|
17558
17573
|
let a = i ? Po(e) : e;
|
|
17559
17574
|
for (; wn(a) && !jr(a); ) {
|
|
@@ -17599,7 +17614,7 @@ function u1(e, t, n) {
|
|
|
17599
17614
|
scrollTop: 0
|
|
17600
17615
|
};
|
|
17601
17616
|
const l = In(0);
|
|
17602
|
-
if ((o || !i) && ((
|
|
17617
|
+
if ((o || !i) && ((Io(t) !== "body" || Da(r)) && (s = za(t)), o)) {
|
|
17603
17618
|
const f = Ao(t, !0, i, t);
|
|
17604
17619
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
17605
17620
|
}
|
|
@@ -17664,7 +17679,7 @@ const f1 = {
|
|
|
17664
17679
|
getElementRects: c1,
|
|
17665
17680
|
getClientRects: t1,
|
|
17666
17681
|
getDimensions: l1,
|
|
17667
|
-
getScale:
|
|
17682
|
+
getScale: Ho,
|
|
17668
17683
|
isElement: wn,
|
|
17669
17684
|
isRTL: d1
|
|
17670
17685
|
};
|
|
@@ -17773,11 +17788,11 @@ function S1(e) {
|
|
|
17773
17788
|
function ol(e) {
|
|
17774
17789
|
if (S1(e)) {
|
|
17775
17790
|
const t = e.$el;
|
|
17776
|
-
return hu(t) &&
|
|
17791
|
+
return hu(t) && Io(t) === "#comment" ? null : t;
|
|
17777
17792
|
}
|
|
17778
17793
|
return e;
|
|
17779
17794
|
}
|
|
17780
|
-
function
|
|
17795
|
+
function Bo(e) {
|
|
17781
17796
|
return typeof e == "function" ? e() : p(e);
|
|
17782
17797
|
}
|
|
17783
17798
|
function x1(e) {
|
|
@@ -17785,7 +17800,7 @@ function x1(e) {
|
|
|
17785
17800
|
name: "arrow",
|
|
17786
17801
|
options: e,
|
|
17787
17802
|
fn(t) {
|
|
17788
|
-
const n = ol(
|
|
17803
|
+
const n = ol(Bo(e.element));
|
|
17789
17804
|
return n == null ? {} : b1({
|
|
17790
17805
|
element: n,
|
|
17791
17806
|
padding: e.padding
|
|
@@ -17804,16 +17819,16 @@ function k1(e, t, n) {
|
|
|
17804
17819
|
n === void 0 && (n = {});
|
|
17805
17820
|
const o = n.whileElementsMounted, r = C(() => {
|
|
17806
17821
|
var A;
|
|
17807
|
-
return (A =
|
|
17808
|
-
}), i = C(() =>
|
|
17822
|
+
return (A = Bo(n.open)) != null ? A : !0;
|
|
17823
|
+
}), i = C(() => Bo(n.middleware)), a = C(() => {
|
|
17809
17824
|
var A;
|
|
17810
|
-
return (A =
|
|
17825
|
+
return (A = Bo(n.placement)) != null ? A : "bottom";
|
|
17811
17826
|
}), s = C(() => {
|
|
17812
17827
|
var A;
|
|
17813
|
-
return (A =
|
|
17828
|
+
return (A = Bo(n.strategy)) != null ? A : "absolute";
|
|
17814
17829
|
}), l = C(() => {
|
|
17815
17830
|
var A;
|
|
17816
|
-
return (A =
|
|
17831
|
+
return (A = Bo(n.transform)) != null ? A : !0;
|
|
17817
17832
|
}), c = C(() => ol(e.value)), u = C(() => ol(t.value)), d = /* @__PURE__ */ M(0), f = /* @__PURE__ */ M(0), h = /* @__PURE__ */ M(s.value), m = /* @__PURE__ */ M(a.value), v = /* @__PURE__ */ vn({}), g = /* @__PURE__ */ M(!1), w = C(() => {
|
|
17818
17833
|
const A = {
|
|
17819
17834
|
position: h.value,
|
|
@@ -18061,9 +18076,9 @@ var A1 = /* @__PURE__ */ N({
|
|
|
18061
18076
|
const z = C(() => {
|
|
18062
18077
|
const de = A.value.arrow?.centerOffset !== 0;
|
|
18063
18078
|
return n.hideShiftedArrow && de;
|
|
18064
|
-
}),
|
|
18079
|
+
}), B = /* @__PURE__ */ M("");
|
|
18065
18080
|
Rt(() => {
|
|
18066
|
-
s.value && (
|
|
18081
|
+
s.value && (B.value = window.getComputedStyle(s.value).zIndex);
|
|
18067
18082
|
});
|
|
18068
18083
|
const Y = C(() => A.value.arrow?.x ?? 0), se = C(() => A.value.arrow?.y ?? 0);
|
|
18069
18084
|
return P1({
|
|
@@ -18081,7 +18096,7 @@ var A1 = /* @__PURE__ */ N({
|
|
|
18081
18096
|
...p(b),
|
|
18082
18097
|
transform: p(k) ? p(b).transform : "translate(0, -200%)",
|
|
18083
18098
|
minWidth: "max-content",
|
|
18084
|
-
zIndex: o ? "var(--ui-local-layer-z, " + (
|
|
18099
|
+
zIndex: o ? "var(--ui-local-layer-z, " + (B.value || "auto") + ")" : B.value,
|
|
18085
18100
|
"--reka-popper-transform-origin": [p(A).transformOrigin?.x, p(A).transformOrigin?.y].join(" "),
|
|
18086
18101
|
...p(A).hide?.referenceHidden && {
|
|
18087
18102
|
visibility: "hidden",
|
|
@@ -18404,14 +18419,14 @@ var M1 = /* @__PURE__ */ N({
|
|
|
18404
18419
|
const n = e, o = t, { forwardRef: r, currentElement: i } = be(), a = R1(null), s = /* @__PURE__ */ Tt(n, "modelValue", o, {
|
|
18405
18420
|
defaultValue: n.defaultValue ?? n.falseValue,
|
|
18406
18421
|
passive: n.modelValue === void 0
|
|
18407
|
-
}), l = C(() => a?.disabled.value || n.disabled), c = C(() =>
|
|
18422
|
+
}), l = C(() => a?.disabled.value || n.disabled), c = C(() => nr(s.value, n.trueValue)), u = C(() => or(a?.modelValue.value) ? s.value === "indeterminate" ? "indeterminate" : c.value : ad(a.modelValue.value, n.value));
|
|
18408
18423
|
function d() {
|
|
18409
|
-
if (
|
|
18424
|
+
if (or(a?.modelValue.value))
|
|
18410
18425
|
s.value === "indeterminate" ? s.value = n.trueValue : s.value = c.value ? n.falseValue : n.trueValue;
|
|
18411
18426
|
else {
|
|
18412
18427
|
const g = [...a.modelValue.value || []];
|
|
18413
18428
|
if (ad(g, n.value)) {
|
|
18414
|
-
const w = g.findIndex((_) =>
|
|
18429
|
+
const w = g.findIndex((_) => nr(_, n.value));
|
|
18415
18430
|
g.splice(w, 1);
|
|
18416
18431
|
} else g.push(n.value);
|
|
18417
18432
|
a.modelValue.value = g;
|
|
@@ -18477,7 +18492,7 @@ var M1 = /* @__PURE__ */ N({
|
|
|
18477
18492
|
"value",
|
|
18478
18493
|
"disabled",
|
|
18479
18494
|
"required"
|
|
18480
|
-
])) :
|
|
18495
|
+
])) : L("v-if", !0)], 64));
|
|
18481
18496
|
}
|
|
18482
18497
|
}), z1 = M1, F1 = /* @__PURE__ */ N({
|
|
18483
18498
|
__name: "CheckboxIndicator",
|
|
@@ -18558,7 +18573,7 @@ function B1() {
|
|
|
18558
18573
|
});
|
|
18559
18574
|
}), e;
|
|
18560
18575
|
}
|
|
18561
|
-
const V1 = /* @__PURE__ */ Nh(B1), [
|
|
18576
|
+
const V1 = /* @__PURE__ */ Nh(B1), [Ro, fm] = /* @__PURE__ */ He(["MenuRoot", "MenuSub"], "MenuContext"), [Qr, j1] = /* @__PURE__ */ He("MenuRoot");
|
|
18562
18577
|
var U1 = /* @__PURE__ */ N({
|
|
18563
18578
|
__name: "MenuRoot",
|
|
18564
18579
|
props: {
|
|
@@ -18718,7 +18733,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18718
18733
|
"dismiss"
|
|
18719
18734
|
],
|
|
18720
18735
|
setup(e, { emit: t }) {
|
|
18721
|
-
const n = e, o = t, r =
|
|
18736
|
+
const n = e, o = t, r = Ro(), i = Qr(), { trapFocus: a, disableOutsidePointerEvents: s, loop: l } = /* @__PURE__ */ wt(n);
|
|
18722
18737
|
jh(), ou(s.value);
|
|
18723
18738
|
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: _ } = be(), { handleTypeaheadSearch: P } = iu(), b = /* @__PURE__ */ M();
|
|
18724
18739
|
function x(Z) {
|
|
@@ -18751,7 +18766,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18751
18766
|
async function z(Z) {
|
|
18752
18767
|
o("openAutoFocus", Z), !Z.defaultPrevented && (Z.preventDefault(), _.value?.focus({ preventScroll: !0 }));
|
|
18753
18768
|
}
|
|
18754
|
-
function
|
|
18769
|
+
function B(Z) {
|
|
18755
18770
|
if (Z.defaultPrevented) return;
|
|
18756
18771
|
const re = Z.target, le = re.closest("[data-reka-menu-content]") === Z.currentTarget, ve = ["input", "textarea"].includes(re.tagName.toLowerCase()), $e = Z.ctrlKey || Z.altKey || Z.metaKey, xe = Z.key.length === 1, ke = ld(Z, at(), _.value, {
|
|
18757
18772
|
loop: l.value,
|
|
@@ -18772,7 +18787,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18772
18787
|
Z?.currentTarget?.contains?.(Z.target) || (window.clearTimeout(u.value), c.value = "");
|
|
18773
18788
|
}
|
|
18774
18789
|
function se(Z) {
|
|
18775
|
-
if (!
|
|
18790
|
+
if (!rr(Z)) return;
|
|
18776
18791
|
const re = Z.target, le = m.value !== Z.clientX;
|
|
18777
18792
|
if (Z?.currentTarget?.contains(re) && le) {
|
|
18778
18793
|
const ve = Z.clientX > m.value ? "right" : "left";
|
|
@@ -18780,7 +18795,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18780
18795
|
}
|
|
18781
18796
|
}
|
|
18782
18797
|
function de(Z) {
|
|
18783
|
-
|
|
18798
|
+
rr(Z) && A.value && A.value.focus();
|
|
18784
18799
|
}
|
|
18785
18800
|
return K1({
|
|
18786
18801
|
onItemEnter: (Z) => !!D(Z),
|
|
@@ -18850,7 +18865,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18850
18865
|
sticky: Z.sticky,
|
|
18851
18866
|
"hide-when-detached": Z.hideWhenDetached,
|
|
18852
18867
|
reference: Z.reference,
|
|
18853
|
-
onKeydown:
|
|
18868
|
+
onKeydown: B,
|
|
18854
18869
|
onBlur: Y,
|
|
18855
18870
|
onPointermove: se,
|
|
18856
18871
|
onPointerenter: de
|
|
@@ -18912,7 +18927,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18912
18927
|
setup(e) {
|
|
18913
18928
|
const t = e, n = qa(), { forwardRef: o, currentElement: r } = be(), { CollectionItem: i } = so(), a = /* @__PURE__ */ M(!1), s = C(() => a.value || r.value != null && n.highlightedElement.value === r.value);
|
|
18914
18929
|
async function l(u) {
|
|
18915
|
-
if (!(u.defaultPrevented || !
|
|
18930
|
+
if (!(u.defaultPrevented || !rr(u))) {
|
|
18916
18931
|
if (t.disabled) n.onItemLeave(u);
|
|
18917
18932
|
else if (!n.onItemEnter(u)) {
|
|
18918
18933
|
const f = u.currentTarget;
|
|
@@ -18921,7 +18936,7 @@ var Z1 = /* @__PURE__ */ N({
|
|
|
18921
18936
|
}
|
|
18922
18937
|
}
|
|
18923
18938
|
async function c(u) {
|
|
18924
|
-
if (await Me(), u.defaultPrevented || !
|
|
18939
|
+
if (await Me(), u.defaultPrevented || !rr(u) || n.highlightedElement.value !== r.value) return;
|
|
18925
18940
|
!n.onItemLeave(u) && n.highlightedElement.value === r.value && (n.highlightedElement.value = void 0);
|
|
18926
18941
|
}
|
|
18927
18942
|
return (u, d) => (y(), R(p(i), { value: { textValue: u.textValue } }, {
|
|
@@ -19072,7 +19087,7 @@ var Y1 = /* @__PURE__ */ N({
|
|
|
19072
19087
|
},
|
|
19073
19088
|
emits: ["select", "update:modelValue"],
|
|
19074
19089
|
setup(e, { emit: t }) {
|
|
19075
|
-
const n = e, o = t, r = eu(n, ["modelValue"]), i =
|
|
19090
|
+
const n = e, o = t, r = eu(n, ["modelValue"]), i = To(r), a = /* @__PURE__ */ Tt(n, "modelValue", o);
|
|
19076
19091
|
return hm({ modelValue: a }), (s, l) => (y(), R(_u, oe({ role: "menuitemcheckbox" }, p(i), {
|
|
19077
19092
|
"aria-checked": p(Gi)(p(a)) ? "mixed" : p(a),
|
|
19078
19093
|
"data-state": p(lu)(p(a)),
|
|
@@ -19186,7 +19201,7 @@ var Y1 = /* @__PURE__ */ N({
|
|
|
19186
19201
|
"closeAutoFocus"
|
|
19187
19202
|
],
|
|
19188
19203
|
setup(e, { emit: t }) {
|
|
19189
|
-
const n = e, o = t, r = Vn(n, o), i =
|
|
19204
|
+
const n = e, o = t, r = Vn(n, o), i = Ro(), { forwardRef: a, currentElement: s } = be();
|
|
19190
19205
|
return ru(s), (l, c) => (y(), R(wu, oe(p(r), {
|
|
19191
19206
|
ref: p(a),
|
|
19192
19207
|
"trap-focus": p(i).open.value,
|
|
@@ -19301,7 +19316,7 @@ var Y1 = /* @__PURE__ */ N({
|
|
|
19301
19316
|
"closeAutoFocus"
|
|
19302
19317
|
],
|
|
19303
19318
|
setup(e, { emit: t }) {
|
|
19304
|
-
const r = Vn(e, t), i =
|
|
19319
|
+
const r = Vn(e, t), i = Ro();
|
|
19305
19320
|
return (a, s) => (y(), R(wu, oe(p(r), {
|
|
19306
19321
|
"trap-focus": !1,
|
|
19307
19322
|
"disable-outside-pointer-events": !1,
|
|
@@ -19418,7 +19433,7 @@ var Y1 = /* @__PURE__ */ N({
|
|
|
19418
19433
|
"closeAutoFocus"
|
|
19419
19434
|
],
|
|
19420
19435
|
setup(e, { emit: t }) {
|
|
19421
|
-
const r = Vn(e, t), i =
|
|
19436
|
+
const r = Vn(e, t), i = Ro(), a = Qr();
|
|
19422
19437
|
return (s, l) => (y(), R(p(jn), { present: s.forceMount || p(i).open.value }, {
|
|
19423
19438
|
default: $(() => [p(a).modal.value ? (y(), R(nE, ct(oe({ key: 0 }, {
|
|
19424
19439
|
...s.$attrs,
|
|
@@ -19505,7 +19520,7 @@ var hE = /* @__PURE__ */ N({
|
|
|
19505
19520
|
},
|
|
19506
19521
|
emits: ["update:modelValue"],
|
|
19507
19522
|
setup(e, { emit: t }) {
|
|
19508
|
-
const n = e, o = t, r = eu(n, ["modelValue"]), i =
|
|
19523
|
+
const n = e, o = t, r = eu(n, ["modelValue"]), i = To(r), a = /* @__PURE__ */ Tt(n, "modelValue", o);
|
|
19509
19524
|
return pE({
|
|
19510
19525
|
modelValue: a,
|
|
19511
19526
|
onValueChange: (s) => {
|
|
@@ -19542,7 +19557,7 @@ var hE = /* @__PURE__ */ N({
|
|
|
19542
19557
|
},
|
|
19543
19558
|
emits: ["select"],
|
|
19544
19559
|
setup(e, { emit: t }) {
|
|
19545
|
-
const n = e, o = t, r = eu(n, ["value"]), i =
|
|
19560
|
+
const n = e, o = t, r = eu(n, ["value"]), i = To(r), { value: a } = /* @__PURE__ */ wt(n), s = fE(), l = C(() => s.modelValue.value === a?.value);
|
|
19546
19561
|
return hm({ modelValue: l }), (c, u) => (y(), R(_u, oe({ role: "menuitemradio" }, p(i), {
|
|
19547
19562
|
"aria-checked": l.value,
|
|
19548
19563
|
"data-state": p(lu)(l.value),
|
|
@@ -19590,7 +19605,7 @@ var _E = /* @__PURE__ */ N({
|
|
|
19590
19605
|
const n = e, r = /* @__PURE__ */ Tt(n, "open", t, {
|
|
19591
19606
|
defaultValue: !1,
|
|
19592
19607
|
passive: n.open === void 0
|
|
19593
|
-
}), i =
|
|
19608
|
+
}), i = Ro(), a = /* @__PURE__ */ M(), s = /* @__PURE__ */ M();
|
|
19594
19609
|
return Rt((l) => {
|
|
19595
19610
|
i?.open.value === !1 && (r.value = !1), l(() => r.value = !1);
|
|
19596
19611
|
}), fm({
|
|
@@ -19713,7 +19728,7 @@ var _E = /* @__PURE__ */ N({
|
|
|
19713
19728
|
"closeAutoFocus"
|
|
19714
19729
|
],
|
|
19715
19730
|
setup(e, { emit: t }) {
|
|
19716
|
-
const r = Vn(e, t), i =
|
|
19731
|
+
const r = Vn(e, t), i = Ro(), a = Qr(), s = mm(), l = qa(), { forwardRef: c, currentElement: u } = be();
|
|
19717
19732
|
return s.contentId ||= Vt(void 0, "reka-menu-sub-content"), (d, f) => (y(), R(p(jn), { present: d.forceMount || p(i).open.value }, {
|
|
19718
19733
|
default: $(() => [K(wu, oe(p(r), {
|
|
19719
19734
|
id: p(s).contentId,
|
|
@@ -19773,7 +19788,7 @@ var _E = /* @__PURE__ */ N({
|
|
|
19773
19788
|
}
|
|
19774
19789
|
},
|
|
19775
19790
|
setup(e) {
|
|
19776
|
-
const t = e, n =
|
|
19791
|
+
const t = e, n = Ro(), o = Qr(), r = mm(), i = qa();
|
|
19777
19792
|
fe(n.open, (d) => {
|
|
19778
19793
|
d ? i.activeSubmenuContext.value = {
|
|
19779
19794
|
onOpenChange: n.onOpenChange,
|
|
@@ -19789,12 +19804,12 @@ var _E = /* @__PURE__ */ N({
|
|
|
19789
19804
|
s();
|
|
19790
19805
|
});
|
|
19791
19806
|
function l(d) {
|
|
19792
|
-
!
|
|
19807
|
+
!rr(d) || i.onItemEnter(d) || !t.disabled && !n.open.value && !a.value && (i.onPointerGraceIntentChange(null), a.value = window.setTimeout(() => {
|
|
19793
19808
|
n.onOpenChange(!0), s();
|
|
19794
19809
|
}, 100));
|
|
19795
19810
|
}
|
|
19796
19811
|
async function c(d) {
|
|
19797
|
-
if (!
|
|
19812
|
+
if (!rr(d)) return;
|
|
19798
19813
|
s();
|
|
19799
19814
|
const f = n.content.value?.getBoundingClientRect();
|
|
19800
19815
|
if (f?.width) {
|
|
@@ -19887,7 +19902,7 @@ var _E = /* @__PURE__ */ N({
|
|
|
19887
19902
|
},
|
|
19888
19903
|
emits: ["select", "update:modelValue"],
|
|
19889
19904
|
setup(e, { emit: t }) {
|
|
19890
|
-
const n = e, r =
|
|
19905
|
+
const n = e, r = $o(t);
|
|
19891
19906
|
return be(), (i, a) => (y(), R(p(eE), ct(vt({
|
|
19892
19907
|
...n,
|
|
19893
19908
|
...p(r)
|
|
@@ -20110,7 +20125,7 @@ var $E = /* @__PURE__ */ N({
|
|
|
20110
20125
|
},
|
|
20111
20126
|
emits: ["select"],
|
|
20112
20127
|
setup(e, { emit: t }) {
|
|
20113
|
-
const n = e, r =
|
|
20128
|
+
const n = e, r = $o(t);
|
|
20114
20129
|
return be(), (i, a) => (y(), R(p(_u), ct(vt({
|
|
20115
20130
|
...n,
|
|
20116
20131
|
...p(r)
|
|
@@ -20187,7 +20202,7 @@ var $E = /* @__PURE__ */ N({
|
|
|
20187
20202
|
},
|
|
20188
20203
|
emits: ["update:modelValue"],
|
|
20189
20204
|
setup(e, { emit: t }) {
|
|
20190
|
-
const n = e, r =
|
|
20205
|
+
const n = e, r = $o(t);
|
|
20191
20206
|
return be(), (i, a) => (y(), R(p(mE), ct(vt({
|
|
20192
20207
|
...n,
|
|
20193
20208
|
...p(r)
|
|
@@ -20581,7 +20596,7 @@ var eO = /* @__PURE__ */ N({
|
|
|
20581
20596
|
"name",
|
|
20582
20597
|
"disabled",
|
|
20583
20598
|
"required"
|
|
20584
|
-
])) :
|
|
20599
|
+
])) : L("v-if", !0)], 64));
|
|
20585
20600
|
}
|
|
20586
20601
|
}), tO = eO;
|
|
20587
20602
|
const [nO, oO] = /* @__PURE__ */ He("RadioGroupRoot");
|
|
@@ -20676,7 +20691,7 @@ var rO = /* @__PURE__ */ N({
|
|
|
20676
20691
|
"disabled",
|
|
20677
20692
|
"value",
|
|
20678
20693
|
"name"
|
|
20679
|
-
])) :
|
|
20694
|
+
])) : L("v-if", !0)]),
|
|
20680
20695
|
_: 3
|
|
20681
20696
|
}, 8, [
|
|
20682
20697
|
"data-disabled",
|
|
@@ -20732,7 +20747,7 @@ var lO = /* @__PURE__ */ N({
|
|
|
20732
20747
|
},
|
|
20733
20748
|
emits: ["select"],
|
|
20734
20749
|
setup(e, { emit: t }) {
|
|
20735
|
-
const n = e, o = t, { forwardRef: r, currentElement: i } = be(), a = nO(), s = C(() => a.disabled.value || n.disabled), l = C(() => a.required.value || n.required), c = C(() =>
|
|
20750
|
+
const n = e, o = t, { forwardRef: r, currentElement: i } = be(), a = nO(), s = C(() => a.disabled.value || n.disabled), l = C(() => a.required.value || n.required), c = C(() => nr(a.modelValue?.value, n.value));
|
|
20736
20751
|
sO({
|
|
20737
20752
|
disabled: s,
|
|
20738
20753
|
checked: c
|
|
@@ -20844,7 +20859,7 @@ function Wr(e, t, n) {
|
|
|
20844
20859
|
return e === void 0 ? !1 : Array.isArray(e) ? e.some((o) => rl(o, t, n)) : rl(e, t, n);
|
|
20845
20860
|
}
|
|
20846
20861
|
function rl(e, t, n) {
|
|
20847
|
-
return e === void 0 || t === void 0 ? !1 : typeof e == "string" ? e === t : typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] === t?.[n] :
|
|
20862
|
+
return e === void 0 || t === void 0 ? !1 : typeof e == "string" ? e === t : typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] === t?.[n] : nr(e, t);
|
|
20848
20863
|
}
|
|
20849
20864
|
function hO(e) {
|
|
20850
20865
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
@@ -20918,7 +20933,7 @@ var vO = /* @__PURE__ */ N({
|
|
|
20918
20933
|
}), u = /* @__PURE__ */ M(), d = /* @__PURE__ */ M(), f = /* @__PURE__ */ M({
|
|
20919
20934
|
x: 0,
|
|
20920
20935
|
y: 0
|
|
20921
|
-
}), h = C(() => a.value && Array.isArray(l.value) ? l.value?.length === 0 :
|
|
20936
|
+
}), h = C(() => a.value && Array.isArray(l.value) ? l.value?.length === 0 : or(l.value));
|
|
20922
20937
|
so({ isProvider: !0 });
|
|
20923
20938
|
const m = dr(s), v = Xr(u), g = /* @__PURE__ */ M(/* @__PURE__ */ new Set()), w = C(() => Array.from(g.value).map((b) => b.value).join(";"));
|
|
20924
20939
|
function _(b) {
|
|
@@ -20977,10 +20992,10 @@ var vO = /* @__PURE__ */ N({
|
|
|
20977
20992
|
disabled: p(i),
|
|
20978
20993
|
value: p(l)
|
|
20979
20994
|
}, {
|
|
20980
|
-
default: $(() => [p(
|
|
20995
|
+
default: $(() => [p(or)(p(l)) ? (y(), O("option", {
|
|
20981
20996
|
key: 0,
|
|
20982
20997
|
value: b.nullableValue
|
|
20983
|
-
}, null, 8, mO)) :
|
|
20998
|
+
}, null, 8, mO)) : L("v-if", !0), (y(!0), O(Se, null, it(Array.from(g.value), (k) => (y(), O("option", oe({ key: k.value ?? "" }, { ref_for: !0 }, k), null, 16))), 128))]),
|
|
20984
20999
|
_: 1
|
|
20985
21000
|
}, 8, [
|
|
20986
21001
|
"multiple",
|
|
@@ -20989,7 +21004,7 @@ var vO = /* @__PURE__ */ N({
|
|
|
20989
21004
|
"autocomplete",
|
|
20990
21005
|
"disabled",
|
|
20991
21006
|
"value"
|
|
20992
|
-
])) :
|
|
21007
|
+
])) : L("v-if", !0)]),
|
|
20993
21008
|
_: 3
|
|
20994
21009
|
}));
|
|
20995
21010
|
}
|
|
@@ -21148,7 +21163,7 @@ var vO = /* @__PURE__ */ N({
|
|
|
21148
21163
|
}
|
|
21149
21164
|
},
|
|
21150
21165
|
setup(e) {
|
|
21151
|
-
const n =
|
|
21166
|
+
const n = To(e);
|
|
21152
21167
|
return (o, r) => (y(), R(p(yu), oe(p(n), { style: {
|
|
21153
21168
|
boxSizing: "border-box",
|
|
21154
21169
|
"--reka-select-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
@@ -21302,13 +21317,13 @@ var xO = /* @__PURE__ */ N({
|
|
|
21302
21317
|
x: 0,
|
|
21303
21318
|
y: 0
|
|
21304
21319
|
};
|
|
21305
|
-
const D = (
|
|
21320
|
+
const D = (B) => {
|
|
21306
21321
|
T = {
|
|
21307
|
-
x: Math.abs(Math.round(
|
|
21308
|
-
y: Math.abs(Math.round(
|
|
21322
|
+
x: Math.abs(Math.round(B.pageX) - (P.value?.x ?? 0)),
|
|
21323
|
+
y: Math.abs(Math.round(B.pageY) - (P.value?.y ?? 0))
|
|
21309
21324
|
};
|
|
21310
|
-
}, z = (
|
|
21311
|
-
|
|
21325
|
+
}, z = (B) => {
|
|
21326
|
+
B.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? B.preventDefault() : l.value?.contains(B.target) || _(!1), document.removeEventListener("pointermove", D), P.value = null);
|
|
21312
21327
|
};
|
|
21313
21328
|
P.value !== null && (document.addEventListener("pointermove", D), document.addEventListener("pointerup", z, {
|
|
21314
21329
|
capture: !0,
|
|
@@ -21329,15 +21344,15 @@ var xO = /* @__PURE__ */ N({
|
|
|
21329
21344
|
"Home",
|
|
21330
21345
|
"End"
|
|
21331
21346
|
].includes(A.key)) {
|
|
21332
|
-
let z = [...s().map((
|
|
21347
|
+
let z = [...s().map((B) => B.ref)];
|
|
21333
21348
|
if (["ArrowUp", "End"].includes(A.key) && (z = z.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(A.key)) {
|
|
21334
|
-
const
|
|
21349
|
+
const B = A.target, Y = z.indexOf(B);
|
|
21335
21350
|
z = z.slice(Y + 1);
|
|
21336
21351
|
}
|
|
21337
21352
|
setTimeout(() => Qs(z)), A.preventDefault();
|
|
21338
21353
|
}
|
|
21339
21354
|
}
|
|
21340
|
-
const x = C(() => n.position === "popper" ? n : {}), k =
|
|
21355
|
+
const x = C(() => n.position === "popper" ? n : {}), k = To(x.value);
|
|
21341
21356
|
return bm({
|
|
21342
21357
|
content: l,
|
|
21343
21358
|
viewport: d,
|
|
@@ -21345,11 +21360,11 @@ var xO = /* @__PURE__ */ N({
|
|
|
21345
21360
|
d.value = A;
|
|
21346
21361
|
},
|
|
21347
21362
|
itemRefCallback: (A, T, D) => {
|
|
21348
|
-
const z = !v.value && !D,
|
|
21363
|
+
const z = !v.value && !D, B = Wr(r.modelValue.value, T, r.by);
|
|
21349
21364
|
if (r.multiple.value) {
|
|
21350
21365
|
if (g.value) return;
|
|
21351
|
-
(
|
|
21352
|
-
} else (
|
|
21366
|
+
(B || z) && (f.value = A, B && (g.value = !0));
|
|
21367
|
+
} else (B || z) && (f.value = A);
|
|
21353
21368
|
z && (v.value = !0);
|
|
21354
21369
|
},
|
|
21355
21370
|
selectedItem: f,
|
|
@@ -21443,22 +21458,22 @@ var AO = /* @__PURE__ */ N({
|
|
|
21443
21458
|
if (i.triggerElement.value && i.valueElement.value && c.value && d.value && f?.value && h?.value && m?.value) {
|
|
21444
21459
|
const P = i.triggerElement.value.getBoundingClientRect(), b = d.value.getBoundingClientRect(), x = i.valueElement.value.getBoundingClientRect(), k = m.value.getBoundingClientRect();
|
|
21445
21460
|
if (i.dir.value !== "rtl") {
|
|
21446
|
-
const pe = k.left - b.left,
|
|
21461
|
+
const pe = k.left - b.left, Fe = x.left - pe, ot = P.left - Fe, et = P.width + ot, No = Math.max(et, b.width), S = window.innerWidth - Ht, E = id(Fe, Ht, Math.max(Ht, S - No));
|
|
21447
21462
|
c.value.style.minWidth = `${et}px`, c.value.style.left = `${E}px`;
|
|
21448
21463
|
} else {
|
|
21449
|
-
const pe = b.right - k.right,
|
|
21464
|
+
const pe = b.right - k.right, Fe = window.innerWidth - x.right - pe, ot = window.innerWidth - P.right - Fe, et = P.width + ot, No = Math.max(et, b.width), S = window.innerWidth - Ht, E = id(Fe, Ht, Math.max(Ht, S - No));
|
|
21450
21465
|
c.value.style.minWidth = `${et}px`, c.value.style.right = `${E}px`;
|
|
21451
21466
|
}
|
|
21452
|
-
const A = r().map((pe) => pe.ref), T = window.innerHeight - Ht * 2, D = f.value.scrollHeight, z = window.getComputedStyle(d.value),
|
|
21467
|
+
const A = r().map((pe) => pe.ref), T = window.innerHeight - Ht * 2, D = f.value.scrollHeight, z = window.getComputedStyle(d.value), B = Number.parseInt(z.borderTopWidth, 10), Y = Number.parseInt(z.paddingTop, 10), se = Number.parseInt(z.borderBottomWidth, 10), de = Number.parseInt(z.paddingBottom, 10), Z = B + Y + D + de + se, re = Math.min(h.value.offsetHeight * 5, Z), le = window.getComputedStyle(f.value), ve = Number.parseInt(le.paddingTop, 10), $e = Number.parseInt(le.paddingBottom, 10), xe = P.top + P.height / 2 - Ht, ke = T - xe, Re = h.value.offsetHeight / 2, dt = h.value.offsetTop + Re, ft = B + Y + dt, rn = Z - ft;
|
|
21453
21468
|
if (ft <= xe) {
|
|
21454
21469
|
const pe = h.value === A.at(-1);
|
|
21455
21470
|
c.value.style.bottom = "0px";
|
|
21456
|
-
const
|
|
21471
|
+
const Fe = d.value.clientHeight - f.value.offsetTop - f.value.offsetHeight, ot = Math.max(ke, Re + (pe ? $e : 0) + Fe + se), et = ft + ot;
|
|
21457
21472
|
c.value.style.height = `${et}px`;
|
|
21458
21473
|
} else {
|
|
21459
21474
|
const pe = h.value === A[0];
|
|
21460
21475
|
c.value.style.top = "0px";
|
|
21461
|
-
const ot = Math.max(xe,
|
|
21476
|
+
const ot = Math.max(xe, B + f.value.offsetTop + (pe ? ve : 0) + Re) + rn;
|
|
21462
21477
|
c.value.style.height = `${ot}px`, f.value.scrollTop = ft - xe + f.value.offsetTop;
|
|
21463
21478
|
}
|
|
21464
21479
|
c.value.style.margin = `${Ht}px 0`, c.value.style.minHeight = `${re}px`, c.value.style.maxHeight = `${T}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
|
|
@@ -21657,7 +21672,7 @@ var IO = /* @__PURE__ */ N({
|
|
|
21657
21672
|
}, 8, ["present"])) : a.value ? (y(), O("div", TO, [(y(), R(Ol, { to: a.value }, [K($O, { context: p(i) }, {
|
|
21658
21673
|
default: $(() => [I(f.$slots, "default")]),
|
|
21659
21674
|
_: 3
|
|
21660
|
-
}, 8, ["context"])], 8, ["to"]))])) :
|
|
21675
|
+
}, 8, ["context"])], 8, ["to"]))])) : L("v-if", !0);
|
|
21661
21676
|
}
|
|
21662
21677
|
}), RO = IO;
|
|
21663
21678
|
const [NO, DO] = /* @__PURE__ */ He("SelectGroup");
|
|
@@ -21699,7 +21714,7 @@ var MO = /* @__PURE__ */ N({
|
|
|
21699
21714
|
as: t.as,
|
|
21700
21715
|
"as-child": t.asChild
|
|
21701
21716
|
}, {
|
|
21702
|
-
default: $(() => [I(t.$slots, "default", {}, () => [n[0] || (n[0] =
|
|
21717
|
+
default: $(() => [I(t.$slots, "default", {}, () => [n[0] || (n[0] = ze("▼"))])]),
|
|
21703
21718
|
_: 3
|
|
21704
21719
|
}, 8, ["as", "as-child"]));
|
|
21705
21720
|
}
|
|
@@ -21825,7 +21840,7 @@ var BO = /* @__PURE__ */ N({
|
|
|
21825
21840
|
}, t), {
|
|
21826
21841
|
default: $(() => [I(o.$slots, "default")]),
|
|
21827
21842
|
_: 3
|
|
21828
|
-
}, 16)) :
|
|
21843
|
+
}, 16)) : L("v-if", !0);
|
|
21829
21844
|
}
|
|
21830
21845
|
}), UO = jO, WO = /* @__PURE__ */ N({
|
|
21831
21846
|
inheritAttrs: !1,
|
|
@@ -22050,7 +22065,7 @@ var BO = /* @__PURE__ */ N({
|
|
|
22050
22065
|
default: $(() => [I(s.$slots, "default", {
|
|
22051
22066
|
selectedLabel: i.value,
|
|
22052
22067
|
modelValue: p(r).modelValue.value
|
|
22053
|
-
}, () => [
|
|
22068
|
+
}, () => [ze(te(a.value), 1)])]),
|
|
22054
22069
|
_: 3
|
|
22055
22070
|
}, 8, [
|
|
22056
22071
|
"as",
|
|
@@ -22115,7 +22130,7 @@ var BO = /* @__PURE__ */ N({
|
|
|
22115
22130
|
as: "style",
|
|
22116
22131
|
nonce: p(o)
|
|
22117
22132
|
}, {
|
|
22118
|
-
default: $(() => d[0] || (d[0] = [
|
|
22133
|
+
default: $(() => d[0] || (d[0] = [ze(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),
|
|
22119
22134
|
_: 1,
|
|
22120
22135
|
__: [0]
|
|
22121
22136
|
}, 8, ["nonce"])], 64));
|
|
@@ -22243,7 +22258,7 @@ var i$ = /* @__PURE__ */ N({
|
|
|
22243
22258
|
"required",
|
|
22244
22259
|
"value",
|
|
22245
22260
|
"checked"
|
|
22246
|
-
])) :
|
|
22261
|
+
])) : L("v-if", !0)], 64));
|
|
22247
22262
|
}
|
|
22248
22263
|
}), a$ = i$, s$ = /* @__PURE__ */ N({
|
|
22249
22264
|
__name: "SwitchThumb",
|
|
@@ -22541,7 +22556,7 @@ var f$ = /* @__PURE__ */ N({
|
|
|
22541
22556
|
id: p(i).contentId,
|
|
22542
22557
|
role: "tooltip"
|
|
22543
22558
|
}, {
|
|
22544
|
-
default: $(() => [
|
|
22559
|
+
default: $(() => [ze(te(c.value), 1)]),
|
|
22545
22560
|
_: 1
|
|
22546
22561
|
}, 8, ["id"])]),
|
|
22547
22562
|
_: 3
|
|
@@ -22614,7 +22629,7 @@ var f$ = /* @__PURE__ */ N({
|
|
|
22614
22629
|
}
|
|
22615
22630
|
},
|
|
22616
22631
|
setup(e) {
|
|
22617
|
-
const n =
|
|
22632
|
+
const n = To(e), { forwardRef: o, currentElement: r } = be(), { trigger: i, onClose: a } = Va(), s = Ba(), { isPointerInTransit: l, onPointerExit: c } = sP(i, r);
|
|
22618
22633
|
return s.isPointerInTransitRef = l, c(() => {
|
|
22619
22634
|
a();
|
|
22620
22635
|
}), zn(r, "pointermove", (u) => {
|
|
@@ -22835,7 +22850,7 @@ const b$ = ["for"], w$ = {
|
|
|
22835
22850
|
},
|
|
22836
22851
|
emits: ["update:modelValue"],
|
|
22837
22852
|
setup(e, { emit: t }) {
|
|
22838
|
-
const n = e, o =
|
|
22853
|
+
const n = e, o = Oo(() => n.disabled), r = t, { controlAttrs: i, wrapperAttrs: a, changed: s } = sr({ value: () => n.modelValue, disabled: () => o.value }), l = Dn(), c = C(() => i().id ?? l), u = C(() => !!(n.label || n.description));
|
|
22839
22854
|
return (d, f) => (y(), O("span", oe(p(a)(), {
|
|
22840
22855
|
class: ["inline-flex max-w-full items-start gap-[var(--ui-choice-box-gap)] align-top [@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center text-[13px] text-[var(--ui-text)]", p(o) ? "cursor-default" : "cursor-pointer"],
|
|
22841
22856
|
"data-ui-checkbox": "",
|
|
@@ -22860,7 +22875,7 @@ const b$ = ["for"], w$ = {
|
|
|
22860
22875
|
"data-ui-checkbox-dash": "",
|
|
22861
22876
|
class: "size-[calc(var(--ui-choice-box-size)*0.75)] stroke-[2.5]",
|
|
22862
22877
|
"aria-hidden": "true"
|
|
22863
|
-
})) : (y(), R(p(
|
|
22878
|
+
})) : (y(), R(p(jo), {
|
|
22864
22879
|
key: 1,
|
|
22865
22880
|
class: "size-[calc(var(--ui-choice-box-size)*0.75)] stroke-[2.5]",
|
|
22866
22881
|
"aria-hidden": "true"
|
|
@@ -22874,14 +22889,14 @@ const b$ = ["for"], w$ = {
|
|
|
22874
22889
|
u.value ? (y(), O("label", {
|
|
22875
22890
|
key: 0,
|
|
22876
22891
|
for: c.value,
|
|
22877
|
-
class:
|
|
22892
|
+
class: ee(["ui-checkbox-text min-w-0 break-words font-normal [overflow-wrap:anywhere]", p(o) ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
|
|
22878
22893
|
}, [
|
|
22879
|
-
n.label ? (y(), O("span", w$,
|
|
22894
|
+
n.label ? (y(), O("span", w$, te(n.label), 1)) : L("", !0),
|
|
22880
22895
|
n.description ? (y(), O("span", {
|
|
22881
22896
|
key: 1,
|
|
22882
|
-
class:
|
|
22883
|
-
},
|
|
22884
|
-
], 10, b$)) :
|
|
22897
|
+
class: ee(["mt-0.5 block text-[12px] leading-4", p(o) ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
22898
|
+
}, te(n.description), 3)) : L("", !0)
|
|
22899
|
+
], 10, b$)) : L("", !0)
|
|
22885
22900
|
], 16));
|
|
22886
22901
|
}
|
|
22887
22902
|
}), S$ = {
|
|
@@ -22897,7 +22912,7 @@ const b$ = ["for"], w$ = {
|
|
|
22897
22912
|
},
|
|
22898
22913
|
emits: ["update:modelValue"],
|
|
22899
22914
|
setup(e, { emit: t }) {
|
|
22900
|
-
const n = e, o =
|
|
22915
|
+
const n = e, o = Oo(() => n.disabled), r = t, { controlAttrs: i, wrapperAttrs: a, changed: s } = sr({ value: () => n.modelValue, disabled: () => o.value });
|
|
22901
22916
|
return (l, c) => (y(), O("label", oe(p(a)(), {
|
|
22902
22917
|
class: ["inline-flex max-w-full items-start gap-2 text-[13px] [@media(pointer:coarse)]:min-h-8 [@media(pointer:coarse)]:items-center text-[var(--ui-text)]", p(o) ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"],
|
|
22903
22918
|
"data-syno-pkg-land-ui": ""
|
|
@@ -22915,7 +22930,7 @@ const b$ = ["for"], w$ = {
|
|
|
22915
22930
|
]),
|
|
22916
22931
|
_: 1
|
|
22917
22932
|
}, 16, ["model-value", "disabled"]),
|
|
22918
|
-
n.label ? (y(), O("span", S$,
|
|
22933
|
+
n.label ? (y(), O("span", S$, te(n.label), 1)) : L("", !0)
|
|
22919
22934
|
], 16));
|
|
22920
22935
|
}
|
|
22921
22936
|
}), k$ = { class: "min-w-0 break-words" }, C$ = { class: "block leading-[var(--ui-line-height)]" }, P$ = /* @__PURE__ */ N({
|
|
@@ -22929,7 +22944,7 @@ const b$ = ["for"], w$ = {
|
|
|
22929
22944
|
},
|
|
22930
22945
|
emits: ["update:modelValue"],
|
|
22931
22946
|
setup(e, { emit: t }) {
|
|
22932
|
-
const n = e, o =
|
|
22947
|
+
const n = e, o = Oo(() => n.disabled), r = t, { controlAttrs: i, wrapperAttrs: a, changed: s } = sr({ value: () => n.modelValue, disabled: () => o.value });
|
|
22933
22948
|
return (l, c) => (y(), R(p(iO), oe({
|
|
22934
22949
|
required: p(i)()["aria-required"] === !0
|
|
22935
22950
|
}, { ...p(a)(), ...p(i)() }, {
|
|
@@ -22945,7 +22960,7 @@ const b$ = ["for"], w$ = {
|
|
|
22945
22960
|
default: $(() => [
|
|
22946
22961
|
(y(!0), O(Se, null, it(n.options, (u) => (y(), O("label", {
|
|
22947
22962
|
key: u.value,
|
|
22948
|
-
class:
|
|
22963
|
+
class: ee(["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)]", p(o) || u.disabled ? "cursor-default text-[var(--ui-text-disabled)]" : "cursor-pointer"])
|
|
22949
22964
|
}, [
|
|
22950
22965
|
K(p(uO), {
|
|
22951
22966
|
value: u.value,
|
|
@@ -22958,11 +22973,11 @@ const b$ = ["for"], w$ = {
|
|
|
22958
22973
|
_: 1
|
|
22959
22974
|
}, 8, ["value", "disabled"]),
|
|
22960
22975
|
ne("span", k$, [
|
|
22961
|
-
ne("span", C$,
|
|
22976
|
+
ne("span", C$, te(u.label), 1),
|
|
22962
22977
|
u.description ? (y(), O("span", {
|
|
22963
22978
|
key: 0,
|
|
22964
|
-
class:
|
|
22965
|
-
},
|
|
22979
|
+
class: ee(["mt-0.5 block text-[12px] leading-4", p(o) || u.disabled ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text-secondary)]"])
|
|
22980
|
+
}, te(u.description), 3)) : L("", !0)
|
|
22966
22981
|
])
|
|
22967
22982
|
], 2))), 128))
|
|
22968
22983
|
]),
|
|
@@ -23053,7 +23068,7 @@ const T$ = { key: 0 }, I$ = { key: 1 }, R$ = { key: 2 }, N$ = {
|
|
|
23053
23068
|
},
|
|
23054
23069
|
emits: ["update:modelValue"],
|
|
23055
23070
|
setup(e, { emit: t }) {
|
|
23056
|
-
const n = e, o =
|
|
23071
|
+
const n = e, o = Oo(() => r.disabled), r = ao(n, { placeholder: "Select…", searchPlaceholder: "Search…", notFoundText: "No results", loadingText: "Loading…" }), i = t, a = /* @__PURE__ */ M(""), s = /* @__PURE__ */ M(!1), l = Qe("searchInput"), c = Qe("trigger"), u = Qe("viewport"), d = C(() => r.search !== !1), f = /* @__PURE__ */ M(!1), { groups: h, searching: m } = $$({
|
|
23057
23072
|
options: () => r.options,
|
|
23058
23073
|
search: () => r.search,
|
|
23059
23074
|
query: a,
|
|
@@ -23116,7 +23131,7 @@ const T$ = { key: 0 }, I$ = { key: 1 }, R$ = { key: 2 }, N$ = {
|
|
|
23116
23131
|
placeholder: p(r).placeholder
|
|
23117
23132
|
}, {
|
|
23118
23133
|
default: $(({ selectedLabel: z }) => [
|
|
23119
|
-
z.length ? (y(), O("span", T$,
|
|
23134
|
+
z.length ? (y(), O("span", T$, te(z.join(", ")), 1)) : g.value ? (y(), O("span", I$, te(g.value), 1)) : (y(), O("span", R$, te(p(r).placeholder), 1))
|
|
23120
23135
|
]),
|
|
23121
23136
|
_: 1
|
|
23122
23137
|
}, 8, ["placeholder"]),
|
|
@@ -23159,8 +23174,8 @@ const T$ = { key: 0 }, I$ = { key: 1 }, R$ = { key: 2 }, N$ = {
|
|
|
23159
23174
|
}, null, 40, D$), [
|
|
23160
23175
|
[cy, a.value]
|
|
23161
23176
|
])
|
|
23162
|
-
])) :
|
|
23163
|
-
p(m) ? (y(), O("div", M$,
|
|
23177
|
+
])) : L("", !0),
|
|
23178
|
+
p(m) ? (y(), O("div", M$, te(p(r).loadingText), 1)) : (y(), R(p(n$), {
|
|
23164
23179
|
key: 2,
|
|
23165
23180
|
ref_key: "viewport",
|
|
23166
23181
|
ref: u
|
|
@@ -23175,29 +23190,29 @@ const T$ = { key: 0 }, I$ = { key: 1 }, R$ = { key: 2 }, N$ = {
|
|
|
23175
23190
|
class: "px-2.5 py-1 text-[length:var(--ui-font-size-sm)] font-semibold text-[var(--ui-text-muted)]"
|
|
23176
23191
|
}, {
|
|
23177
23192
|
default: $(() => [
|
|
23178
|
-
|
|
23193
|
+
ze(te(z.label), 1)
|
|
23179
23194
|
]),
|
|
23180
23195
|
_: 2
|
|
23181
|
-
}, 1024)) :
|
|
23182
|
-
(y(!0), O(Se, null, it(z.options, (
|
|
23183
|
-
key:
|
|
23184
|
-
value:
|
|
23185
|
-
"text-value":
|
|
23186
|
-
disabled:
|
|
23187
|
-
class:
|
|
23196
|
+
}, 1024)) : L("", !0),
|
|
23197
|
+
(y(!0), O(Se, null, it(z.options, (B) => (y(), R(p(VO), {
|
|
23198
|
+
key: B.value,
|
|
23199
|
+
value: B.value,
|
|
23200
|
+
"text-value": B.label,
|
|
23201
|
+
disabled: B.disabled,
|
|
23202
|
+
class: ee(["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", z.label && z.indent ? "pl-5" : "pl-2.5"])
|
|
23188
23203
|
}, {
|
|
23189
23204
|
default: $(() => [
|
|
23190
23205
|
ne("span", z$, [
|
|
23191
23206
|
K(p(KO), null, {
|
|
23192
23207
|
default: $(() => [
|
|
23193
|
-
|
|
23208
|
+
ze(te(B.label), 1)
|
|
23194
23209
|
]),
|
|
23195
23210
|
_: 2
|
|
23196
23211
|
}, 1024)
|
|
23197
23212
|
]),
|
|
23198
23213
|
K(p(UO), { class: "absolute right-2 inline-flex items-center text-[var(--ui-primary)]" }, {
|
|
23199
23214
|
default: $(() => [
|
|
23200
|
-
K(p(
|
|
23215
|
+
K(p(jo), {
|
|
23201
23216
|
class: "size-4",
|
|
23202
23217
|
"aria-hidden": "true"
|
|
23203
23218
|
})
|
|
@@ -23210,7 +23225,7 @@ const T$ = { key: 0 }, I$ = { key: 1 }, R$ = { key: 2 }, N$ = {
|
|
|
23210
23225
|
]),
|
|
23211
23226
|
_: 2
|
|
23212
23227
|
}, 1024))), 128)),
|
|
23213
|
-
p(h).length ?
|
|
23228
|
+
p(h).length ? L("", !0) : (y(), O("div", F$, te(p(r).notFoundText), 1))
|
|
23214
23229
|
]),
|
|
23215
23230
|
_: 1
|
|
23216
23231
|
}, 512))
|
|
@@ -23278,7 +23293,7 @@ function Z$() {
|
|
|
23278
23293
|
Ke(Tm, !0);
|
|
23279
23294
|
}
|
|
23280
23295
|
function Im() {
|
|
23281
|
-
return
|
|
23296
|
+
return Le(Tm, !1);
|
|
23282
23297
|
}
|
|
23283
23298
|
const Rm = "z-[1450] max-w-72 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)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]", H$ = 300, Nm = /* @__PURE__ */ N({
|
|
23284
23299
|
__name: "OverflowTooltip",
|
|
@@ -23364,7 +23379,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23364
23379
|
"data-ui-overflow-tooltip-region": ""
|
|
23365
23380
|
}, [
|
|
23366
23381
|
I(b.$slots, "default")
|
|
23367
|
-
], 512)) :
|
|
23382
|
+
], 512)) : L("", !0),
|
|
23368
23383
|
r.value ? (y(), R(p(_m), {
|
|
23369
23384
|
key: 1,
|
|
23370
23385
|
"delay-duration": 0
|
|
@@ -23390,13 +23405,13 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23390
23405
|
align: e.align,
|
|
23391
23406
|
"side-offset": 4,
|
|
23392
23407
|
"collision-padding": 8,
|
|
23393
|
-
class:
|
|
23408
|
+
class: ee(p(Rm)),
|
|
23394
23409
|
"data-ui-tooltip": "",
|
|
23395
23410
|
"data-ui-overflow-tooltip": "",
|
|
23396
23411
|
"data-syno-pkg-land-ui": ""
|
|
23397
23412
|
}, {
|
|
23398
23413
|
default: $(() => [
|
|
23399
|
-
|
|
23414
|
+
ze(te(i.value), 1)
|
|
23400
23415
|
]),
|
|
23401
23416
|
_: 1
|
|
23402
23417
|
}, 8, ["side", "align", "class"])
|
|
@@ -23408,7 +23423,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23408
23423
|
}, 8, ["open"])
|
|
23409
23424
|
]),
|
|
23410
23425
|
_: 1
|
|
23411
|
-
})) :
|
|
23426
|
+
})) : L("", !0)
|
|
23412
23427
|
], 64));
|
|
23413
23428
|
}
|
|
23414
23429
|
}), G$ = {
|
|
@@ -23423,7 +23438,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23423
23438
|
},
|
|
23424
23439
|
setup(e) {
|
|
23425
23440
|
return (t, n) => (y(), O("span", {
|
|
23426
|
-
class:
|
|
23441
|
+
class: ee([
|
|
23427
23442
|
"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",
|
|
23428
23443
|
e.tone === "neutral" && "bg-[var(--ui-neutral-soft)] text-[var(--ui-neutral-text)]",
|
|
23429
23444
|
e.tone === "info" && "bg-[var(--ui-info-soft)] text-[var(--ui-info-text)]",
|
|
@@ -23433,7 +23448,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23433
23448
|
]),
|
|
23434
23449
|
"data-syno-pkg-land-ui": ""
|
|
23435
23450
|
}, [
|
|
23436
|
-
e.tone !== "neutral" ? (y(), O("span", G$)) :
|
|
23451
|
+
e.tone !== "neutral" ? (y(), O("span", G$)) : L("", !0),
|
|
23437
23452
|
I(t.$slots, "default")
|
|
23438
23453
|
], 2));
|
|
23439
23454
|
}
|
|
@@ -23473,7 +23488,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23473
23488
|
label: e.text || p(n).label,
|
|
23474
23489
|
size: 24
|
|
23475
23490
|
}, null, 8, ["label"]),
|
|
23476
|
-
e.text ? (y(), O("span", eT,
|
|
23491
|
+
e.text ? (y(), O("span", eT, te(e.text), 1)) : L("", !0)
|
|
23477
23492
|
], 8, Q$));
|
|
23478
23493
|
}
|
|
23479
23494
|
}), nT = {
|
|
@@ -23514,14 +23529,14 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23514
23529
|
danger: "bg-[var(--ui-danger)]"
|
|
23515
23530
|
}, i = C(() => o.max <= 0 ? 0 : Math.min(100, Math.max(0, o.value / o.max * 100)));
|
|
23516
23531
|
return (a, s) => (y(), O("div", {
|
|
23517
|
-
class:
|
|
23532
|
+
class: ee(p(t).class),
|
|
23518
23533
|
style: Ve(p(t).style),
|
|
23519
23534
|
"data-syno-pkg-land-ui": ""
|
|
23520
23535
|
}, [
|
|
23521
23536
|
e.label || e.valueLabel ? (y(), O("div", rT, [
|
|
23522
|
-
ne("span", null,
|
|
23523
|
-
ne("span", iT,
|
|
23524
|
-
])) :
|
|
23537
|
+
ne("span", null, te(e.label), 1),
|
|
23538
|
+
ne("span", iT, te(e.valueLabel ?? `${Math.round(i.value)}%`), 1)
|
|
23539
|
+
])) : L("", !0),
|
|
23525
23540
|
ne("div", oe({
|
|
23526
23541
|
class: ["overflow-hidden rounded-full bg-[var(--ui-border-subtle)]", e.size === "sm" ? "h-1" : "h-1.5"],
|
|
23527
23542
|
role: "progressbar",
|
|
@@ -23532,7 +23547,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23532
23547
|
"data-tone": e.tone
|
|
23533
23548
|
}, n()), [
|
|
23534
23549
|
ne("div", {
|
|
23535
|
-
class:
|
|
23550
|
+
class: ee(["h-full rounded-full transition-[width] duration-[var(--ui-motion-normal)]", r[e.tone]]),
|
|
23536
23551
|
style: Ve({ width: `${i.value}%` })
|
|
23537
23552
|
}, null, 6)
|
|
23538
23553
|
], 16, aT)
|
|
@@ -23564,7 +23579,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23564
23579
|
setup(e) {
|
|
23565
23580
|
const t = Bn();
|
|
23566
23581
|
return (n, o) => (y(), O("div", lT, [
|
|
23567
|
-
ne("span", uT,
|
|
23582
|
+
ne("span", uT, te(p(t)("Loading…")), 1),
|
|
23568
23583
|
(y(!0), O(Se, null, it(e.lines, (r) => (y(), R(sT, {
|
|
23569
23584
|
key: r,
|
|
23570
23585
|
"data-ui-skeleton-line": "",
|
|
@@ -23583,7 +23598,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23583
23598
|
setup(e) {
|
|
23584
23599
|
const t = e, n = { none: "", sm: "p-3", md: "p-4", lg: "p-6" }, o = C(() => t.variant === "inset"), r = C(() => t.padding ? n[t.padding] : o.value ? "px-4 py-3" : n.md);
|
|
23585
23600
|
return (i, a) => (y(), O("section", {
|
|
23586
|
-
class:
|
|
23601
|
+
class: ee([
|
|
23587
23602
|
"rounded-[var(--ui-radius-md)]",
|
|
23588
23603
|
o.value ? "bg-[var(--ui-surface-inset)]" : "bg-[var(--ui-surface)]",
|
|
23589
23604
|
e.border && !o.value && "border border-[var(--ui-border-subtle)]",
|
|
@@ -23642,12 +23657,12 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23642
23657
|
K(p(Cm), {
|
|
23643
23658
|
side: e.side,
|
|
23644
23659
|
"side-offset": 4,
|
|
23645
|
-
class:
|
|
23660
|
+
class: ee(p(Rm)),
|
|
23646
23661
|
"data-ui-tooltip": "",
|
|
23647
23662
|
"data-syno-pkg-land-ui": ""
|
|
23648
23663
|
}, {
|
|
23649
23664
|
default: $(() => [
|
|
23650
|
-
|
|
23665
|
+
ze(te(e.content), 1)
|
|
23651
23666
|
]),
|
|
23652
23667
|
_: 1
|
|
23653
23668
|
}, 8, ["side", "class"])
|
|
@@ -23717,7 +23732,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23717
23732
|
default: $(() => [
|
|
23718
23733
|
K(p(GE), {
|
|
23719
23734
|
disabled: u.item.disabled,
|
|
23720
|
-
class:
|
|
23735
|
+
class: ee([
|
|
23721
23736
|
bi,
|
|
23722
23737
|
"data-[state=open]:bg-[var(--ui-primary-soft)]",
|
|
23723
23738
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
@@ -23726,9 +23741,9 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23726
23741
|
default: $(() => [
|
|
23727
23742
|
i.value ? (y(), O("span", {
|
|
23728
23743
|
key: 0,
|
|
23729
|
-
class:
|
|
23744
|
+
class: ee(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
|
|
23730
23745
|
}, [
|
|
23731
|
-
u.item.checked ? (y(), R(p(
|
|
23746
|
+
u.item.checked ? (y(), R(p(jo), {
|
|
23732
23747
|
key: 0,
|
|
23733
23748
|
class: "size-3.5",
|
|
23734
23749
|
"aria-hidden": "true"
|
|
@@ -23736,10 +23751,10 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23736
23751
|
key: 1,
|
|
23737
23752
|
class: "size-4",
|
|
23738
23753
|
"aria-hidden": "true"
|
|
23739
|
-
})) :
|
|
23740
|
-
], 2)) :
|
|
23741
|
-
ne("span", dT,
|
|
23742
|
-
u.item.shortcut ? (y(), O("span", fT,
|
|
23754
|
+
})) : L("", !0)
|
|
23755
|
+
], 2)) : L("", !0),
|
|
23756
|
+
ne("span", dT, te(u.item.label), 1),
|
|
23757
|
+
u.item.shortcut ? (y(), O("span", fT, te(u.item.shortcut), 1)) : L("", !0),
|
|
23743
23758
|
K(p(Hs), {
|
|
23744
23759
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
23745
23760
|
"aria-hidden": "true"
|
|
@@ -23780,7 +23795,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23780
23795
|
key: 2,
|
|
23781
23796
|
"model-value": e.checkedKeys.includes(u.item.key),
|
|
23782
23797
|
disabled: u.item.disabled,
|
|
23783
|
-
class:
|
|
23798
|
+
class: ee([
|
|
23784
23799
|
bi,
|
|
23785
23800
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23786
23801
|
]),
|
|
@@ -23791,7 +23806,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23791
23806
|
ne("span", pT, [
|
|
23792
23807
|
K(p(Ed), null, {
|
|
23793
23808
|
default: $(() => [
|
|
23794
|
-
K(p(
|
|
23809
|
+
K(p(jo), {
|
|
23795
23810
|
class: "size-3.5",
|
|
23796
23811
|
"aria-hidden": "true"
|
|
23797
23812
|
})
|
|
@@ -23799,9 +23814,9 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23799
23814
|
_: 1
|
|
23800
23815
|
})
|
|
23801
23816
|
]),
|
|
23802
|
-
ne("span", hT,
|
|
23803
|
-
u.item.hint ? (y(), O("span", mT,
|
|
23804
|
-
u.item.shortcut ? (y(), O("span", vT,
|
|
23817
|
+
ne("span", hT, te(u.item.label), 1),
|
|
23818
|
+
u.item.hint ? (y(), O("span", mT, te(u.item.hint), 1)) : L("", !0),
|
|
23819
|
+
u.item.shortcut ? (y(), O("span", vT, te(u.item.shortcut), 1)) : L("", !0)
|
|
23805
23820
|
]),
|
|
23806
23821
|
_: 2
|
|
23807
23822
|
}, 1032, ["model-value", "disabled", "class", "onUpdate:modelValue", "onSelect"])) : u.kind === "radio" ? (y(), R(p(qE), {
|
|
@@ -23813,7 +23828,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23813
23828
|
key: d.key,
|
|
23814
23829
|
value: d.value,
|
|
23815
23830
|
disabled: d.disabled,
|
|
23816
|
-
class:
|
|
23831
|
+
class: ee([
|
|
23817
23832
|
bi,
|
|
23818
23833
|
d.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23819
23834
|
]),
|
|
@@ -23823,7 +23838,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23823
23838
|
ne("span", gT, [
|
|
23824
23839
|
K(p(Ed), null, {
|
|
23825
23840
|
default: $(() => [
|
|
23826
|
-
e.radioIndicator === "check" ? (y(), R(p(
|
|
23841
|
+
e.radioIndicator === "check" ? (y(), R(p(jo), {
|
|
23827
23842
|
key: 0,
|
|
23828
23843
|
class: "size-3.5",
|
|
23829
23844
|
"aria-hidden": "true"
|
|
@@ -23832,8 +23847,8 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23832
23847
|
_: 1
|
|
23833
23848
|
})
|
|
23834
23849
|
]),
|
|
23835
|
-
ne("span", bT,
|
|
23836
|
-
d.shortcut ? (y(), O("span", wT,
|
|
23850
|
+
ne("span", bT, te(d.label), 1),
|
|
23851
|
+
d.shortcut ? (y(), O("span", wT, te(d.shortcut), 1)) : L("", !0)
|
|
23837
23852
|
]),
|
|
23838
23853
|
_: 2
|
|
23839
23854
|
}, 1032, ["value", "disabled", "class", "onSelect"]))), 128))
|
|
@@ -23842,7 +23857,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23842
23857
|
}, 1032, ["model-value"])) : (y(), R(p(DE), {
|
|
23843
23858
|
key: 4,
|
|
23844
23859
|
disabled: u.item.disabled,
|
|
23845
|
-
class:
|
|
23860
|
+
class: ee([
|
|
23846
23861
|
bi,
|
|
23847
23862
|
u.item.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
|
|
23848
23863
|
]),
|
|
@@ -23851,9 +23866,9 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23851
23866
|
default: $(() => [
|
|
23852
23867
|
i.value ? (y(), O("span", {
|
|
23853
23868
|
key: 0,
|
|
23854
|
-
class:
|
|
23869
|
+
class: ee(["flex size-4 shrink-0 items-center justify-center", u.item.checked ? "text-[var(--ui-primary)]" : u.item.danger ? "" : "text-[var(--ui-text-secondary)]"])
|
|
23855
23870
|
}, [
|
|
23856
|
-
u.item.checked ? (y(), R(p(
|
|
23871
|
+
u.item.checked ? (y(), R(p(jo), {
|
|
23857
23872
|
key: 0,
|
|
23858
23873
|
class: "size-3.5",
|
|
23859
23874
|
"aria-hidden": "true"
|
|
@@ -23861,15 +23876,15 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23861
23876
|
key: 1,
|
|
23862
23877
|
class: "size-4",
|
|
23863
23878
|
"aria-hidden": "true"
|
|
23864
|
-
})) :
|
|
23865
|
-
], 2)) :
|
|
23866
|
-
ne("span", _T,
|
|
23867
|
-
u.item.shortcut ? (y(), O("span", ST,
|
|
23879
|
+
})) : L("", !0)
|
|
23880
|
+
], 2)) : L("", !0),
|
|
23881
|
+
ne("span", _T, te(u.item.label), 1),
|
|
23882
|
+
u.item.shortcut ? (y(), O("span", ST, te(u.item.shortcut), 1)) : L("", !0),
|
|
23868
23883
|
u.item.submenu ? (y(), R(p(Hs), {
|
|
23869
23884
|
key: 2,
|
|
23870
23885
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
23871
23886
|
"aria-hidden": "true"
|
|
23872
|
-
})) :
|
|
23887
|
+
})) : L("", !0)
|
|
23873
23888
|
]),
|
|
23874
23889
|
_: 2
|
|
23875
23890
|
}, 1032, ["disabled", "class", "onSelect"]))
|
|
@@ -23939,7 +23954,7 @@ const Rm = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
23939
23954
|
}, null, 8, ["items", "checked-keys", "radio-values", "collision-boundary", "radio-indicator"])
|
|
23940
23955
|
]),
|
|
23941
23956
|
_: 1
|
|
23942
|
-
}, 16, ["align", "collision-boundary"])) :
|
|
23957
|
+
}, 16, ["align", "collision-boundary"])) : L("", !0)
|
|
23943
23958
|
]),
|
|
23944
23959
|
_: 1
|
|
23945
23960
|
})
|
|
@@ -23982,7 +23997,7 @@ function Id(e) {
|
|
|
23982
23997
|
return t;
|
|
23983
23998
|
}
|
|
23984
23999
|
function TT() {
|
|
23985
|
-
return
|
|
24000
|
+
return Le(Lm, null);
|
|
23986
24001
|
}
|
|
23987
24002
|
function IT(e) {
|
|
23988
24003
|
const t = e.ownerDocument.defaultView;
|
|
@@ -24021,10 +24036,10 @@ function NT(e, t, n) {
|
|
|
24021
24036
|
const g = IT(c), w = () => {
|
|
24022
24037
|
const D = !!g && RT(c, g);
|
|
24023
24038
|
g && (h.style.zIndex = f.getComputedStyle(g).zIndex, h.style.visibility = D ? "hidden" : "");
|
|
24024
|
-
const { left: z, top:
|
|
24025
|
-
if (r.value = D ? null : { left: z, top:
|
|
24039
|
+
const { left: z, top: B, width: Y, height: se } = c.getBoundingClientRect();
|
|
24040
|
+
if (r.value = D ? null : { left: z, top: B, width: Y, height: se }, !D) {
|
|
24026
24041
|
h.style.setProperty("--ui-floating-owner-width", `${Y}px`);
|
|
24027
|
-
const de = Math.max(0, Math.min(
|
|
24042
|
+
const de = Math.max(0, Math.min(B + se, f.innerHeight) - Math.max(B, _()));
|
|
24028
24043
|
h.style.setProperty("--ui-floating-owner-height", `${de}px`);
|
|
24029
24044
|
}
|
|
24030
24045
|
}, _ = () => {
|
|
@@ -24183,19 +24198,19 @@ const LT = /* @__PURE__ */ N({
|
|
|
24183
24198
|
},
|
|
24184
24199
|
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
24185
24200
|
setup(e, { emit: t }) {
|
|
24186
|
-
const o = ao(e, { closeLabel: "Close" }), r = t, i = (
|
|
24187
|
-
function s(
|
|
24188
|
-
if (r("openAutoFocus",
|
|
24189
|
-
let Y =
|
|
24201
|
+
const o = ao(e, { closeLabel: "Close" }), r = t, i = (B) => typeof B.checkVisibility != "function" || B.checkVisibility({ visibilityProperty: !0 }), a = Qe("content");
|
|
24202
|
+
function s(B) {
|
|
24203
|
+
if (r("openAutoFocus", B), B.defaultPrevented) return;
|
|
24204
|
+
let Y = B.target ?? a.value?.$el;
|
|
24190
24205
|
for (; Y && !(Y instanceof HTMLElement && Y.hasAttribute("data-ui-dialog")); ) Y = Y.nextSibling;
|
|
24191
24206
|
const se = Y instanceof HTMLElement ? Y : null;
|
|
24192
24207
|
if (!se) return;
|
|
24193
|
-
|
|
24208
|
+
B.preventDefault();
|
|
24194
24209
|
const de = Array.from(se.querySelectorAll(WT)).find((Z) => !Z.matches("[data-dialog-close], [data-ui-keyboard-focus], :disabled") && i(Z));
|
|
24195
24210
|
de && Rd(de), (!de || document.activeElement !== de) && (se.tabIndex = -1, Rd(se));
|
|
24196
24211
|
}
|
|
24197
|
-
function l(
|
|
24198
|
-
r(
|
|
24212
|
+
function l(B, Y) {
|
|
24213
|
+
r(B === "pointerDownOutside" ? "pointerDownOutside" : "interactOutside", Y), o.closeOnOutside || Y.preventDefault();
|
|
24199
24214
|
}
|
|
24200
24215
|
const c = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, u = TT(), d = C(() => u?.element.value ?? null), { position: f, draggable: h, onPointerdown: m, onKeydown: v } = FT(Qe("handle"), u), g = C(() => o.width ? void 0 : o.size), w = C(() => o.width ?? (g.value && `var(--ui-dialog-width-${g.value})`)), _ = C(() => !!w.value), P = Uk(), b = C(() => _.value ? void 0 : P.value), x = C(() => ({
|
|
24201
24216
|
left: f.value && `${f.value.x}px`,
|
|
@@ -24206,28 +24221,28 @@ const LT = /* @__PURE__ */ N({
|
|
|
24206
24221
|
"--ui-dialog-floor": b.value && `var(--ui-dialog-width-${b.value})`,
|
|
24207
24222
|
height: o.height && `min(${o.height}, 100%)`,
|
|
24208
24223
|
minHeight: o.minHeight && `min(${o.minHeight}, 100%)`
|
|
24209
|
-
})), k =
|
|
24224
|
+
})), k = Eo(), A = () => qT(k.default), T = C(() => !!(o.title || o.description) || o.showClose), D = /* @__PURE__ */ M(o.defaultOpen), z = C({
|
|
24210
24225
|
get: () => o.open ?? D.value,
|
|
24211
|
-
set: (
|
|
24212
|
-
o.open === void 0 && (D.value =
|
|
24226
|
+
set: (B) => {
|
|
24227
|
+
o.open === void 0 && (D.value = B), r("update:open", B);
|
|
24213
24228
|
}
|
|
24214
24229
|
});
|
|
24215
|
-
return (
|
|
24230
|
+
return (B, Y) => (y(), R(p(PP), {
|
|
24216
24231
|
open: z.value,
|
|
24217
24232
|
"onUpdate:open": Y[6] || (Y[6] = (se) => z.value = se)
|
|
24218
24233
|
}, {
|
|
24219
24234
|
default: $(() => [
|
|
24220
|
-
|
|
24235
|
+
B.$slots.trigger ? (y(), R(p(pA), oe({ key: 0 }, B.$attrs.id ? { "aria-controls": z.value ? B.$attrs.id : void 0 } : {}, { "as-child": "" }), {
|
|
24221
24236
|
default: $(() => [
|
|
24222
|
-
I(
|
|
24237
|
+
I(B.$slots, "trigger")
|
|
24223
24238
|
]),
|
|
24224
24239
|
_: 3
|
|
24225
|
-
}, 16)) :
|
|
24240
|
+
}, 16)) : L("", !0),
|
|
24226
24241
|
K(p(uA), null, {
|
|
24227
24242
|
default: $(() => [
|
|
24228
24243
|
K(p(aA), {
|
|
24229
24244
|
"data-ui-overlay": "",
|
|
24230
|
-
class:
|
|
24245
|
+
class: ee(["fixed inset-0 z-[1200]", c[p(o).scrim]]),
|
|
24231
24246
|
"data-ui-scrim": p(o).scrim
|
|
24232
24247
|
}, null, 8, ["class", "data-ui-scrim"]),
|
|
24233
24248
|
K(LT, { host: d.value }, {
|
|
@@ -24235,7 +24250,7 @@ const LT = /* @__PURE__ */ N({
|
|
|
24235
24250
|
K(p(eA), oe({
|
|
24236
24251
|
ref_key: "content",
|
|
24237
24252
|
ref: a
|
|
24238
|
-
},
|
|
24253
|
+
}, B.$attrs, {
|
|
24239
24254
|
"data-ui-dialog": "",
|
|
24240
24255
|
class: ["fixed z-[1201] flex max-h-[85vh] flex-col overflow-hidden border border-[var(--ui-border-subtle)] bg-[var(--ui-surface-raised)] shadow-[var(--ui-shadow-dialog)] outline-none", [
|
|
24241
24256
|
_.value ? "w-[var(--ui-dialog-room)]" : "w-fit min-w-[min(max(var(--ui-dialog-min-width),var(--ui-dialog-floor,0px)),var(--ui-dialog-max-width),var(--ui-dialog-room))] max-w-[min(var(--ui-dialog-max-width),var(--ui-dialog-room))]",
|
|
@@ -24260,7 +24275,7 @@ const LT = /* @__PURE__ */ N({
|
|
|
24260
24275
|
T.value ? (y(), O("header", {
|
|
24261
24276
|
key: 0,
|
|
24262
24277
|
ref: "handle",
|
|
24263
|
-
class:
|
|
24278
|
+
class: ee(["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"]]),
|
|
24264
24279
|
"data-ui-dialog-header-divider": p(o).headerDivider ? void 0 : "none",
|
|
24265
24280
|
"data-ui-drag-handle": p(h) ? "" : void 0,
|
|
24266
24281
|
onPointerdown: Y[1] || (Y[1] = //@ts-ignore
|
|
@@ -24275,19 +24290,19 @@ const LT = /* @__PURE__ */ N({
|
|
|
24275
24290
|
onMousedown: Y[0] || (Y[0] = (se) => p(h) && se.preventDefault())
|
|
24276
24291
|
}), {
|
|
24277
24292
|
default: $(() => [
|
|
24278
|
-
|
|
24293
|
+
ze(te(p(o).title), 1)
|
|
24279
24294
|
]),
|
|
24280
24295
|
_: 1
|
|
24281
|
-
}, 16, ["onKeydown"])) :
|
|
24296
|
+
}, 16, ["onKeydown"])) : L("", !0),
|
|
24282
24297
|
p(o).description ? (y(), R(p(nA), {
|
|
24283
24298
|
key: 1,
|
|
24284
24299
|
class: "mt-0.5 whitespace-pre-line text-[12px] text-[var(--ui-text-secondary)]"
|
|
24285
24300
|
}, {
|
|
24286
24301
|
default: $(() => [
|
|
24287
|
-
|
|
24302
|
+
ze(te(p(o).description), 1)
|
|
24288
24303
|
]),
|
|
24289
24304
|
_: 1
|
|
24290
|
-
})) :
|
|
24305
|
+
})) : L("", !0)
|
|
24291
24306
|
]),
|
|
24292
24307
|
p(o).showClose ? (y(), R(p(EP), {
|
|
24293
24308
|
key: 0,
|
|
@@ -24302,27 +24317,27 @@ const LT = /* @__PURE__ */ N({
|
|
|
24302
24317
|
})
|
|
24303
24318
|
]),
|
|
24304
24319
|
_: 1
|
|
24305
|
-
}, 8, ["aria-label"])) :
|
|
24306
|
-
], 42, VT)) :
|
|
24320
|
+
}, 8, ["aria-label"])) : L("", !0)
|
|
24321
|
+
], 42, VT)) : L("", !0),
|
|
24307
24322
|
A() ? (y(), O("div", {
|
|
24308
24323
|
key: 1,
|
|
24309
24324
|
"data-ui-dialog-body": "",
|
|
24310
|
-
class:
|
|
24325
|
+
class: ee(["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"]]),
|
|
24311
24326
|
"data-ui-dialog-flush": p(o).flush ? "" : void 0
|
|
24312
24327
|
}, [
|
|
24313
|
-
I(
|
|
24314
|
-
], 10, UT)) :
|
|
24315
|
-
|
|
24328
|
+
I(B.$slots, "default")
|
|
24329
|
+
], 10, UT)) : L("", !0),
|
|
24330
|
+
B.$slots.footer ? (y(), O("footer", {
|
|
24316
24331
|
key: 2,
|
|
24317
|
-
class:
|
|
24332
|
+
class: ee(["flex shrink-0 flex-wrap items-center justify-end gap-2", T.value ? ["min-h-12 px-5 py-2.5", A() && "border-t border-[var(--ui-border-subtle)]"] : "px-[30px] pt-7 pb-5"])
|
|
24318
24333
|
}, [
|
|
24319
24334
|
K(BT, { kind: "action" }, {
|
|
24320
24335
|
default: $(() => [
|
|
24321
|
-
I(
|
|
24336
|
+
I(B.$slots, "footer")
|
|
24322
24337
|
]),
|
|
24323
24338
|
_: 3
|
|
24324
24339
|
})
|
|
24325
|
-
], 2)) :
|
|
24340
|
+
], 2)) : L("", !0)
|
|
24326
24341
|
]),
|
|
24327
24342
|
_: 3
|
|
24328
24343
|
}, 16, ["class", "style", "data-ui-dialog-sizing", "data-ui-dialog-size", "data-ui-dialog-floor", "data-ui-dialog-layout"])
|
|
@@ -24403,7 +24418,7 @@ const YT = ["disabled", "aria-label", "value", "placeholder"], XT = ["disabled",
|
|
|
24403
24418
|
},
|
|
24404
24419
|
emits: ["update:modelValue"],
|
|
24405
24420
|
setup(e, { emit: t }) {
|
|
24406
|
-
const n = e, o =
|
|
24421
|
+
const n = e, o = Oo(() => r.disabled), r = ao(n, { placeholder: "Search", clearLabel: "Clear search" }), i = t, { controlAttrs: a, wrapperAttrs: s, changed: l, invalid: c } = sr({ value: () => r.modelValue, disabled: () => o.value });
|
|
24407
24422
|
return (u, d) => (y(), O("div", oe(p(s)(), {
|
|
24408
24423
|
class: "relative block min-w-0",
|
|
24409
24424
|
"data-syno-pkg-land-ui": ""
|
|
@@ -24442,7 +24457,7 @@ const YT = ["disabled", "aria-label", "value", "placeholder"], XT = ["disabled",
|
|
|
24442
24457
|
class: "size-3.5",
|
|
24443
24458
|
"aria-hidden": "true"
|
|
24444
24459
|
})
|
|
24445
|
-
], 8, XT)) :
|
|
24460
|
+
], 8, XT)) : L("", !0)
|
|
24446
24461
|
], 16));
|
|
24447
24462
|
}
|
|
24448
24463
|
});
|
|
@@ -24490,7 +24505,7 @@ const tI = ["data-direction"], nI = {
|
|
|
24490
24505
|
ref: r,
|
|
24491
24506
|
"data-direction": a.value ? "vertical" : "horizontal",
|
|
24492
24507
|
style: Ve(s.value),
|
|
24493
|
-
class:
|
|
24508
|
+
class: ee([
|
|
24494
24509
|
"grid min-h-10 gap-y-1 py-1.5",
|
|
24495
24510
|
n.value === "start" ? "items-start" : "items-center"
|
|
24496
24511
|
]),
|
|
@@ -24498,10 +24513,10 @@ const tI = ["data-direction"], nI = {
|
|
|
24498
24513
|
}, [
|
|
24499
24514
|
ne("div", {
|
|
24500
24515
|
"data-settings-label": "",
|
|
24501
|
-
class:
|
|
24516
|
+
class: ee(["min-w-0 break-words [word-break:keep-all] text-left text-[13px] text-[var(--ui-text)]", n.value === "start" && "pt-1"])
|
|
24502
24517
|
}, [
|
|
24503
|
-
|
|
24504
|
-
e.required ? (y(), O("span", nI, "*")) :
|
|
24518
|
+
ze(te(e.label), 1),
|
|
24519
|
+
e.required ? (y(), O("span", nI, "*")) : L("", !0)
|
|
24505
24520
|
], 2),
|
|
24506
24521
|
ne("div", oI, [
|
|
24507
24522
|
ne("div", {
|
|
@@ -24510,7 +24525,7 @@ const tI = ["data-direction"], nI = {
|
|
|
24510
24525
|
}, [
|
|
24511
24526
|
I(l.$slots, "default")
|
|
24512
24527
|
], 4),
|
|
24513
|
-
e.description ? (y(), O("p", rI,
|
|
24528
|
+
e.description ? (y(), O("p", rI, te(e.description), 1)) : L("", !0)
|
|
24514
24529
|
])
|
|
24515
24530
|
], 14, tI));
|
|
24516
24531
|
}
|
|
@@ -24560,7 +24575,7 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24560
24575
|
() => n.open,
|
|
24561
24576
|
n.defaultOpen,
|
|
24562
24577
|
(u) => o("update:open", u)
|
|
24563
|
-
), s = C(() => i.value || !n.collapsible), l =
|
|
24578
|
+
), s = C(() => i.value || !n.collapsible), l = Eo(), c = C(() => n.collapsible || !!n.title || !!l.title || !!l.actions);
|
|
24564
24579
|
return (u, d) => (y(), O("section", {
|
|
24565
24580
|
class: "ui-settings-section",
|
|
24566
24581
|
"data-collapsible": e.collapsible || void 0,
|
|
@@ -24577,43 +24592,43 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24577
24592
|
(...f) => p(a) && p(a)(...f))
|
|
24578
24593
|
}, [
|
|
24579
24594
|
K(p(lr), {
|
|
24580
|
-
class:
|
|
24595
|
+
class: ee(["size-4 shrink-0 transition-transform", !p(i) && "-rotate-90"]),
|
|
24581
24596
|
"aria-hidden": "true"
|
|
24582
24597
|
}, null, 8, ["class"]),
|
|
24583
24598
|
ne("span", uI, [
|
|
24584
24599
|
I(u.$slots, "title", {}, () => [
|
|
24585
|
-
|
|
24600
|
+
ze(te(e.title), 1)
|
|
24586
24601
|
])
|
|
24587
24602
|
])
|
|
24588
24603
|
], 8, lI),
|
|
24589
24604
|
u.$slots.actions ? (y(), O("span", cI, [
|
|
24590
24605
|
I(u.$slots, "actions")
|
|
24591
|
-
])) :
|
|
24606
|
+
])) : L("", !0)
|
|
24592
24607
|
])) : c.value ? (y(), O("div", dI, [
|
|
24593
24608
|
ne("span", fI, [
|
|
24594
24609
|
I(u.$slots, "title", {}, () => [
|
|
24595
|
-
|
|
24610
|
+
ze(te(e.title), 1)
|
|
24596
24611
|
])
|
|
24597
24612
|
]),
|
|
24598
24613
|
u.$slots.actions ? (y(), O("span", pI, [
|
|
24599
24614
|
I(u.$slots, "actions")
|
|
24600
|
-
])) :
|
|
24601
|
-
])) :
|
|
24615
|
+
])) : L("", !0)
|
|
24616
|
+
])) : L("", !0),
|
|
24602
24617
|
So(ne("div", {
|
|
24603
24618
|
id: p(r),
|
|
24604
|
-
class:
|
|
24619
|
+
class: ee(["ui-settings-section-body", c.value && "pt-3"])
|
|
24605
24620
|
}, [
|
|
24606
24621
|
e.description || u.$slots.description ? (y(), O("p", mI, [
|
|
24607
24622
|
I(u.$slots, "description", {}, () => [
|
|
24608
|
-
|
|
24623
|
+
ze(te(e.description), 1)
|
|
24609
24624
|
])
|
|
24610
|
-
])) :
|
|
24625
|
+
])) : L("", !0),
|
|
24611
24626
|
e.loading ? (y(), R(Mm, { key: 1 })) : I(u.$slots, "default", {}, void 0, void 0, 2),
|
|
24612
24627
|
u.$slots.footer && !e.loading ? (y(), O("div", vI, [
|
|
24613
24628
|
I(u.$slots, "footer")
|
|
24614
|
-
])) :
|
|
24629
|
+
])) : L("", !0)
|
|
24615
24630
|
], 10, hI), [
|
|
24616
|
-
[
|
|
24631
|
+
[Jo, s.value]
|
|
24617
24632
|
])
|
|
24618
24633
|
], 8, aI));
|
|
24619
24634
|
}
|
|
@@ -24665,11 +24680,11 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24665
24680
|
})),
|
|
24666
24681
|
ne("div", bI, [
|
|
24667
24682
|
ne("div", wI, [
|
|
24668
|
-
e.title ? (y(), O("div", _I,
|
|
24683
|
+
e.title ? (y(), O("div", _I, te(e.title), 1)) : L("", !0),
|
|
24669
24684
|
l.$slots.default ? (y(), O("div", SI, [
|
|
24670
24685
|
I(l.$slots, "default")
|
|
24671
|
-
])) :
|
|
24672
|
-
e.code ? (y(), O("code", xI,
|
|
24686
|
+
])) : L("", !0),
|
|
24687
|
+
e.code ? (y(), O("code", xI, te(e.code), 1)) : L("", !0),
|
|
24673
24688
|
l.$slots.details ? (y(), O("button", {
|
|
24674
24689
|
key: 3,
|
|
24675
24690
|
type: "button",
|
|
@@ -24679,12 +24694,12 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24679
24694
|
"aria-controls": p(s),
|
|
24680
24695
|
onClick: c[0] || (c[0] = (u) => i.value = !i.value)
|
|
24681
24696
|
}, [
|
|
24682
|
-
|
|
24697
|
+
ze(te(i.value ? p(o).lessLabel : p(o).moreLabel) + " ", 1),
|
|
24683
24698
|
K(p(lr), {
|
|
24684
|
-
class:
|
|
24699
|
+
class: ee(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", i.value && "rotate-180"]),
|
|
24685
24700
|
"aria-hidden": "true"
|
|
24686
24701
|
}, null, 8, ["class"])
|
|
24687
|
-
], 8, kI)) :
|
|
24702
|
+
], 8, kI)) : L("", !0),
|
|
24688
24703
|
l.$slots.details ? So((y(), O("div", {
|
|
24689
24704
|
key: 4,
|
|
24690
24705
|
id: p(s),
|
|
@@ -24693,12 +24708,12 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24693
24708
|
}, [
|
|
24694
24709
|
I(l.$slots, "details")
|
|
24695
24710
|
], 8, CI)), [
|
|
24696
|
-
[
|
|
24697
|
-
]) :
|
|
24711
|
+
[Jo, i.value]
|
|
24712
|
+
]) : L("", !0)
|
|
24698
24713
|
]),
|
|
24699
24714
|
l.$slots.actions ? (y(), O("div", PI, [
|
|
24700
24715
|
I(l.$slots, "actions")
|
|
24701
|
-
])) :
|
|
24716
|
+
])) : L("", !0)
|
|
24702
24717
|
]),
|
|
24703
24718
|
e.closable ? (y(), O("button", {
|
|
24704
24719
|
key: 0,
|
|
@@ -24711,7 +24726,7 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24711
24726
|
class: "size-3.5",
|
|
24712
24727
|
"aria-hidden": "true"
|
|
24713
24728
|
})
|
|
24714
|
-
], 8, AI)) :
|
|
24729
|
+
], 8, AI)) : L("", !0)
|
|
24715
24730
|
], 8, yI));
|
|
24716
24731
|
}
|
|
24717
24732
|
}), OI = {
|
|
@@ -24740,12 +24755,12 @@ const aI = ["data-collapsible", "aria-busy"], sI = {
|
|
|
24740
24755
|
class: "size-6",
|
|
24741
24756
|
"aria-hidden": "true"
|
|
24742
24757
|
}))
|
|
24743
|
-
])) :
|
|
24744
|
-
ne("h3", TI,
|
|
24745
|
-
e.description ? (y(), O("p", II,
|
|
24758
|
+
])) : L("", !0),
|
|
24759
|
+
ne("h3", TI, te(e.title), 1),
|
|
24760
|
+
e.description ? (y(), O("p", II, te(e.description), 1)) : L("", !0),
|
|
24746
24761
|
t.$slots.actions ? (y(), O("div", RI, [
|
|
24747
24762
|
I(t.$slots, "actions")
|
|
24748
|
-
])) :
|
|
24763
|
+
])) : L("", !0)
|
|
24749
24764
|
]));
|
|
24750
24765
|
}
|
|
24751
24766
|
}), Um = 640, DI = 1200;
|
|
@@ -24792,7 +24807,7 @@ const qI = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
|
|
|
24792
24807
|
ref_key: "viewport",
|
|
24793
24808
|
ref: o,
|
|
24794
24809
|
"data-ui-scroll-edges-viewport": "",
|
|
24795
|
-
class:
|
|
24810
|
+
class: ee(e.viewportClass),
|
|
24796
24811
|
style: Ve(e.viewportStyle)
|
|
24797
24812
|
}, [
|
|
24798
24813
|
I(l.$slots, "default")
|
|
@@ -24827,7 +24842,7 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24827
24842
|
containerBreakpoint: { default: 480 }
|
|
24828
24843
|
},
|
|
24829
24844
|
setup(e) {
|
|
24830
|
-
const n = ao(e, { emptyText: "No data" }), o = Qe("root"), r = pr(o), i =
|
|
24845
|
+
const n = ao(e, { emptyText: "No data" }), o = Qe("root"), r = pr(o), i = Le(ja, void 0), a = C(() => n.columns.some((c) => !!c.width)), s = C(
|
|
24831
24846
|
() => n.mobileView === "cards" || n.mobileView === "container" && r.value > 0 && r.value < n.containerBreakpoint || n.mobileView === "auto" && (i ? i.value === "mobile" : r.value > 0 && r.value <= Um)
|
|
24832
24847
|
);
|
|
24833
24848
|
function l(c, u) {
|
|
@@ -24841,7 +24856,7 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24841
24856
|
class: "min-w-0",
|
|
24842
24857
|
"data-syno-pkg-land-ui": ""
|
|
24843
24858
|
}, [
|
|
24844
|
-
s.value && !p(n).rows.length ? (y(), O("p", UI,
|
|
24859
|
+
s.value && !p(n).rows.length ? (y(), O("p", UI, te(p(n).emptyText), 1)) : s.value ? (y(), O("div", WI, [
|
|
24845
24860
|
(y(!0), O(Se, null, it(p(n).rows, (d, f) => (y(), O("article", {
|
|
24846
24861
|
key: l(d, f),
|
|
24847
24862
|
class: "min-w-0 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
|
|
@@ -24852,14 +24867,14 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24852
24867
|
key: h.key,
|
|
24853
24868
|
class: "grid min-w-0 grid-cols-[minmax(100px,35%)_minmax(0,1fr)] items-start gap-2"
|
|
24854
24869
|
}, [
|
|
24855
|
-
ne("dt", ZI,
|
|
24870
|
+
ne("dt", ZI, te(h.label), 1),
|
|
24856
24871
|
ne("dd", HI, [
|
|
24857
24872
|
I(c.$slots, `cell-${h.key}`, {
|
|
24858
24873
|
row: d,
|
|
24859
24874
|
value: d[h.key],
|
|
24860
24875
|
column: h
|
|
24861
24876
|
}, () => [
|
|
24862
|
-
|
|
24877
|
+
ze(te(d[h.key]), 1)
|
|
24863
24878
|
])
|
|
24864
24879
|
])
|
|
24865
24880
|
]))), 128))
|
|
@@ -24871,21 +24886,21 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24871
24886
|
}, {
|
|
24872
24887
|
default: $(() => [
|
|
24873
24888
|
ne("table", {
|
|
24874
|
-
class:
|
|
24889
|
+
class: ee(["w-full border-collapse text-[13px]", a.value && "table-fixed"])
|
|
24875
24890
|
}, [
|
|
24876
24891
|
a.value ? (y(), O("colgroup", GI, [
|
|
24877
24892
|
(y(!0), O(Se, null, it(p(n).columns, (d) => (y(), O("col", {
|
|
24878
24893
|
key: d.key,
|
|
24879
24894
|
style: Ve(d.width ? { width: d.width } : void 0)
|
|
24880
24895
|
}, null, 4))), 128))
|
|
24881
|
-
])) :
|
|
24896
|
+
])) : L("", !0),
|
|
24882
24897
|
ne("thead", JI, [
|
|
24883
24898
|
ne("tr", null, [
|
|
24884
24899
|
(y(!0), O(Se, null, it(p(n).columns, (d) => (y(), O("th", {
|
|
24885
24900
|
key: d.key,
|
|
24886
|
-
class:
|
|
24901
|
+
class: ee(["border-b border-[var(--ui-border)] px-3 py-2 font-normal", [p(Nd)(d), a.value ? "[overflow-wrap:anywhere]" : "whitespace-nowrap"]]),
|
|
24887
24902
|
"data-column-type": d.type ?? "text"
|
|
24888
|
-
},
|
|
24903
|
+
}, te(d.label), 11, YI))), 128))
|
|
24889
24904
|
])
|
|
24890
24905
|
]),
|
|
24891
24906
|
ne("tbody", null, [
|
|
@@ -24893,14 +24908,14 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24893
24908
|
ne("td", {
|
|
24894
24909
|
colspan: p(n).columns.length,
|
|
24895
24910
|
class: "px-3 py-10 text-center text-[var(--ui-text-secondary)]"
|
|
24896
|
-
},
|
|
24911
|
+
}, te(p(n).emptyText), 9, QI)
|
|
24897
24912
|
])) : (y(!0), O(Se, { key: 1 }, it(p(n).rows, (d, f) => (y(), O("tr", {
|
|
24898
24913
|
key: l(d, f),
|
|
24899
24914
|
class: "border-b border-[var(--ui-border-subtle)] last:border-b-0 hover:bg-[var(--ui-surface-hover)]"
|
|
24900
24915
|
}, [
|
|
24901
24916
|
(y(!0), O(Se, null, it(p(n).columns, (h) => (y(), O("td", {
|
|
24902
24917
|
key: h.key,
|
|
24903
|
-
class:
|
|
24918
|
+
class: ee([
|
|
24904
24919
|
// The padding only shows in a row a two-line cell makes taller.
|
|
24905
24920
|
"px-3 py-1.5 text-[var(--ui-text)]",
|
|
24906
24921
|
a.value && "[overflow-wrap:anywhere]",
|
|
@@ -24913,21 +24928,21 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24913
24928
|
h.type === "actions" ? (y(), O("div", {
|
|
24914
24929
|
key: 0,
|
|
24915
24930
|
"data-grid-actions": "",
|
|
24916
|
-
class:
|
|
24931
|
+
class: ee(p(VI))
|
|
24917
24932
|
}, [
|
|
24918
24933
|
I(c.$slots, `cell-${h.key}`, {
|
|
24919
24934
|
row: d,
|
|
24920
24935
|
value: d[h.key],
|
|
24921
24936
|
column: h
|
|
24922
24937
|
}, () => [
|
|
24923
|
-
|
|
24938
|
+
ze(te(d[h.key]), 1)
|
|
24924
24939
|
])
|
|
24925
24940
|
], 2)) : I(c.$slots, `cell-${h.key}`, {
|
|
24926
24941
|
row: d,
|
|
24927
24942
|
value: d[h.key],
|
|
24928
24943
|
column: h
|
|
24929
24944
|
}, () => [
|
|
24930
|
-
|
|
24945
|
+
ze(te(d[h.key]), 1)
|
|
24931
24946
|
], void 0, 1)
|
|
24932
24947
|
], 10, eR))), 128))
|
|
24933
24948
|
]))), 128))
|
|
@@ -24955,19 +24970,19 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24955
24970
|
return (i, a) => (y(), O("div", {
|
|
24956
24971
|
ref_key: "root",
|
|
24957
24972
|
ref: o,
|
|
24958
|
-
class:
|
|
24973
|
+
class: ee(["flex min-w-0 gap-[var(--ui-space-2)]", e.wrap ? "items-start" : "items-center"]),
|
|
24959
24974
|
"data-layout": e.layout,
|
|
24960
24975
|
"data-wrap": e.wrap ? "" : void 0,
|
|
24961
24976
|
"data-syno-pkg-land-ui": ""
|
|
24962
24977
|
}, [
|
|
24963
24978
|
e.icon ? (y(), R($t(e.icon), {
|
|
24964
24979
|
key: 0,
|
|
24965
|
-
class:
|
|
24980
|
+
class: ee(["size-4 shrink-0 text-[var(--ui-text-secondary)]", e.wrap && "mt-0.5"]),
|
|
24966
24981
|
"aria-hidden": "true"
|
|
24967
|
-
}, null, 8, ["class"])) :
|
|
24982
|
+
}, null, 8, ["class"])) : L("", !0),
|
|
24968
24983
|
ne("div", {
|
|
24969
24984
|
"data-ui-cell-lines": "",
|
|
24970
|
-
class:
|
|
24985
|
+
class: ee([
|
|
24971
24986
|
"min-w-0 flex-1",
|
|
24972
24987
|
e.layout === "inline" ? "flex items-baseline gap-x-[var(--ui-space-2)]" : "flex flex-col gap-y-0.5"
|
|
24973
24988
|
])
|
|
@@ -24978,39 +24993,39 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
24978
24993
|
"data-ui-cell-primary": "",
|
|
24979
24994
|
"data-ui-tooltip-hint": e.openLabel,
|
|
24980
24995
|
disabled: e.openDisabled,
|
|
24981
|
-
class:
|
|
24996
|
+
class: ee([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"]),
|
|
24982
24997
|
onClick: a[0] || (a[0] = (s) => i.$emit("open"))
|
|
24983
24998
|
}, [
|
|
24984
24999
|
I(i.$slots, "default", {}, () => [
|
|
24985
|
-
|
|
25000
|
+
ze(te(e.text), 1)
|
|
24986
25001
|
])
|
|
24987
25002
|
], 10, nR)) : (y(), O("span", {
|
|
24988
25003
|
key: 1,
|
|
24989
25004
|
"data-ui-cell-primary": "",
|
|
24990
|
-
class:
|
|
25005
|
+
class: ee([r.value, "min-w-0 leading-5 text-[var(--ui-text)]"])
|
|
24991
25006
|
}, [
|
|
24992
25007
|
I(i.$slots, "default", {}, () => [
|
|
24993
|
-
|
|
25008
|
+
ze(te(e.text), 1)
|
|
24994
25009
|
])
|
|
24995
25010
|
], 2)),
|
|
24996
25011
|
e.secondary || i.$slots.secondary ? (y(), O("span", {
|
|
24997
25012
|
key: 2,
|
|
24998
25013
|
"data-ui-cell-secondary": "",
|
|
24999
|
-
class:
|
|
25014
|
+
class: ee([
|
|
25000
25015
|
"min-w-0 text-[length:var(--ui-font-size-sm)] leading-4 text-[var(--ui-text-secondary)]",
|
|
25001
25016
|
r.value,
|
|
25002
25017
|
e.layout === "inline" && "shrink-0"
|
|
25003
25018
|
])
|
|
25004
25019
|
}, [
|
|
25005
25020
|
I(i.$slots, "secondary", {}, () => [
|
|
25006
|
-
|
|
25021
|
+
ze(te(e.secondary), 1)
|
|
25007
25022
|
])
|
|
25008
|
-
], 2)) :
|
|
25023
|
+
], 2)) : L("", !0)
|
|
25009
25024
|
], 2),
|
|
25010
25025
|
n ? (y(), R(Nm, {
|
|
25011
25026
|
key: 1,
|
|
25012
25027
|
target: o.value
|
|
25013
|
-
}, null, 8, ["target"])) :
|
|
25028
|
+
}, null, 8, ["target"])) : L("", !0)
|
|
25014
25029
|
], 10, tR));
|
|
25015
25030
|
}
|
|
25016
25031
|
}), rR = {
|
|
@@ -25044,7 +25059,7 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25044
25059
|
return (i, a) => (y(), O("div", {
|
|
25045
25060
|
ref_key: "root",
|
|
25046
25061
|
ref: o,
|
|
25047
|
-
class:
|
|
25062
|
+
class: ee(["flex min-w-0 flex-col gap-0.5", r.value && !(e.detail || i.$slots.detail) && "relative"]),
|
|
25048
25063
|
"data-syno-pkg-land-ui": ""
|
|
25049
25064
|
}, [
|
|
25050
25065
|
ne("span", rR, [
|
|
@@ -25054,27 +25069,27 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25054
25069
|
content: e.description
|
|
25055
25070
|
}, {
|
|
25056
25071
|
default: $(() => [
|
|
25057
|
-
ne("span", iR,
|
|
25072
|
+
ne("span", iR, te(e.label), 1)
|
|
25058
25073
|
]),
|
|
25059
25074
|
_: 1
|
|
25060
|
-
}, 8, ["content"])) : (y(), O("span", aR,
|
|
25075
|
+
}, 8, ["content"])) : (y(), O("span", aR, te(e.label), 1))
|
|
25061
25076
|
]),
|
|
25062
25077
|
r.value ? (y(), R(Dm, {
|
|
25063
25078
|
key: 0,
|
|
25064
25079
|
value: e.progress,
|
|
25065
25080
|
"aria-label": e.label,
|
|
25066
25081
|
size: "sm",
|
|
25067
|
-
class:
|
|
25068
|
-
}, null, 8, ["value", "aria-label", "class"])) :
|
|
25082
|
+
class: ee(["max-w-40", !(e.detail || i.$slots.detail) && "absolute inset-x-0 top-full mt-0.5"])
|
|
25083
|
+
}, null, 8, ["value", "aria-label", "class"])) : L("", !0),
|
|
25069
25084
|
e.detail || i.$slots.detail ? (y(), O("span", sR, [
|
|
25070
25085
|
I(i.$slots, "detail", {}, () => [
|
|
25071
|
-
|
|
25086
|
+
ze(te(e.detail), 1)
|
|
25072
25087
|
])
|
|
25073
|
-
])) :
|
|
25088
|
+
])) : L("", !0),
|
|
25074
25089
|
n ? (y(), R(Nm, {
|
|
25075
25090
|
key: 2,
|
|
25076
25091
|
target: o.value
|
|
25077
|
-
}, null, 8, ["target"])) :
|
|
25092
|
+
}, null, 8, ["target"])) : L("", !0)
|
|
25078
25093
|
], 2));
|
|
25079
25094
|
}
|
|
25080
25095
|
}), uR = {
|
|
@@ -25114,31 +25129,31 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25114
25129
|
ne("div", cR, [
|
|
25115
25130
|
t.$slots.leading ? (y(), O("div", dR, [
|
|
25116
25131
|
I(t.$slots, "leading")
|
|
25117
|
-
])) :
|
|
25132
|
+
])) : L("", !0),
|
|
25118
25133
|
ne("div", fR, [
|
|
25119
25134
|
ne("div", pR, [
|
|
25120
25135
|
ne("span", hR, [
|
|
25121
25136
|
I(t.$slots, "title", {}, () => [
|
|
25122
|
-
|
|
25137
|
+
ze(te(e.title), 1)
|
|
25123
25138
|
])
|
|
25124
25139
|
]),
|
|
25125
25140
|
t.$slots.meta ? (y(), O("span", mR, [
|
|
25126
25141
|
I(t.$slots, "meta")
|
|
25127
|
-
])) :
|
|
25142
|
+
])) : L("", !0)
|
|
25128
25143
|
]),
|
|
25129
25144
|
e.description || t.$slots.description ? (y(), O("div", vR, [
|
|
25130
25145
|
I(t.$slots, "description", {}, () => [
|
|
25131
|
-
|
|
25146
|
+
ze(te(e.description), 1)
|
|
25132
25147
|
])
|
|
25133
|
-
])) :
|
|
25148
|
+
])) : L("", !0),
|
|
25134
25149
|
t.$slots.default ? (y(), O("div", gR, [
|
|
25135
25150
|
I(t.$slots, "default")
|
|
25136
|
-
])) :
|
|
25151
|
+
])) : L("", !0)
|
|
25137
25152
|
])
|
|
25138
25153
|
]),
|
|
25139
25154
|
t.$slots.actions ? (y(), O("div", yR, [
|
|
25140
25155
|
I(t.$slots, "actions")
|
|
25141
|
-
])) :
|
|
25156
|
+
])) : L("", !0)
|
|
25142
25157
|
]));
|
|
25143
25158
|
}
|
|
25144
25159
|
}), wR = ["id"], _R = {
|
|
@@ -25158,7 +25173,7 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25158
25173
|
},
|
|
25159
25174
|
emits: ["update:expanded"],
|
|
25160
25175
|
setup(e, { emit: t }) {
|
|
25161
|
-
const n = Bn(), o = e, r = { start: "justify-start", end: "justify-end", between: "justify-between" }, i = t, a =
|
|
25176
|
+
const n = Bn(), o = e, r = { start: "justify-start", end: "justify-end", between: "justify-between" }, i = t, a = Eo(), s = Dn(), l = Dn(), { value: c, toggle: u } = jm(
|
|
25162
25177
|
() => o.expanded,
|
|
25163
25178
|
!0,
|
|
25164
25179
|
(g) => i("update:expanded", g)
|
|
@@ -25183,7 +25198,7 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25183
25198
|
default: $(() => [
|
|
25184
25199
|
e.hasHeader && (d.value || g.$slots["header-actions"] || e.expandable) ? (y(), O("header", {
|
|
25185
25200
|
key: 0,
|
|
25186
|
-
class:
|
|
25201
|
+
class: ee(m.value)
|
|
25187
25202
|
}, [
|
|
25188
25203
|
d.value ? (y(), O("h3", {
|
|
25189
25204
|
key: 0,
|
|
@@ -25191,9 +25206,9 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25191
25206
|
class: "m-0 min-w-0 truncate text-[length:var(--ui-font-size-lg)] [font-weight:var(--ui-heading-weight,700)] text-[var(--ui-text)]"
|
|
25192
25207
|
}, [
|
|
25193
25208
|
I(g.$slots, "title", {}, () => [
|
|
25194
|
-
|
|
25209
|
+
ze(te(e.title), 1)
|
|
25195
25210
|
])
|
|
25196
|
-
], 8, wR)) :
|
|
25211
|
+
], 8, wR)) : L("", !0),
|
|
25197
25212
|
g.$slots["header-actions"] || e.expandable ? (y(), O("div", _R, [
|
|
25198
25213
|
I(g.$slots, "header-actions"),
|
|
25199
25214
|
e.expandable ? (y(), O("button", {
|
|
@@ -25209,15 +25224,15 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25209
25224
|
(..._) => p(u) && p(u)(..._))
|
|
25210
25225
|
}, [
|
|
25211
25226
|
K(p(lr), {
|
|
25212
|
-
class:
|
|
25227
|
+
class: ee(p(On)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !p(c) && "-rotate-90")),
|
|
25213
25228
|
"aria-hidden": "true"
|
|
25214
25229
|
}, null, 8, ["class"])
|
|
25215
|
-
], 8, SR)) :
|
|
25216
|
-
])) :
|
|
25217
|
-
], 2)) :
|
|
25230
|
+
], 8, SR)) : L("", !0)
|
|
25231
|
+
])) : L("", !0)
|
|
25232
|
+
], 2)) : L("", !0),
|
|
25218
25233
|
So(ne("div", {
|
|
25219
25234
|
id: p(l),
|
|
25220
|
-
class:
|
|
25235
|
+
class: ee(v.value),
|
|
25221
25236
|
role: e.expandable ? "region" : void 0,
|
|
25222
25237
|
"aria-labelledby": e.expandable && d.value ? p(s) : void 0
|
|
25223
25238
|
}, [
|
|
@@ -25225,14 +25240,14 @@ const VI = "-ml-1 flex items-center justify-start gap-1", jI = ["data-ui-data-vi
|
|
|
25225
25240
|
I(g.$slots, "default")
|
|
25226
25241
|
], void 0, 1)
|
|
25227
25242
|
], 10, xR), [
|
|
25228
|
-
[
|
|
25243
|
+
[Jo, h.value]
|
|
25229
25244
|
]),
|
|
25230
25245
|
g.$slots.footer && !e.loading ? (y(), O("footer", {
|
|
25231
25246
|
key: 1,
|
|
25232
|
-
class:
|
|
25247
|
+
class: ee(p(On)("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]))
|
|
25233
25248
|
}, [
|
|
25234
25249
|
I(g.$slots, "footer")
|
|
25235
|
-
], 2)) :
|
|
25250
|
+
], 2)) : L("", !0)
|
|
25236
25251
|
]),
|
|
25237
25252
|
_: 3
|
|
25238
25253
|
}, 8, ["data-layout", "aria-busy"]));
|
|
@@ -25309,7 +25324,7 @@ const FR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
25309
25324
|
},
|
|
25310
25325
|
emits: ["activate"],
|
|
25311
25326
|
setup(e, { emit: t }) {
|
|
25312
|
-
const n = e, o = t, r =
|
|
25327
|
+
const n = e, o = t, r = Le(ud, null);
|
|
25313
25328
|
if (r && (r === "app" || n.modalScope === "app")) throw new Error("Nested app-local AppRoots are unsupported");
|
|
25314
25329
|
Ke(ud, n.modalScope);
|
|
25315
25330
|
const i = Qe("root"), a = pr(i), s = C(() => Wm(a.value));
|
|
@@ -25386,12 +25401,12 @@ const FR = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
25386
25401
|
alt: "",
|
|
25387
25402
|
width: "28",
|
|
25388
25403
|
height: "28"
|
|
25389
|
-
}, null, 8, LR)) :
|
|
25404
|
+
}, null, 8, LR)) : L("", !0),
|
|
25390
25405
|
e.name ? (y(), O("span", {
|
|
25391
25406
|
key: 1,
|
|
25392
25407
|
"data-ui-brand-name": "",
|
|
25393
|
-
class:
|
|
25394
|
-
},
|
|
25408
|
+
class: ee(e.collapsed ? "sr-only" : "min-w-0 truncate")
|
|
25409
|
+
}, te(e.name), 3)) : L("", !0)
|
|
25395
25410
|
]),
|
|
25396
25411
|
_: 1
|
|
25397
25412
|
}, 16));
|
|
@@ -25454,7 +25469,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25454
25469
|
function a(pe) {
|
|
25455
25470
|
ke(!0), o("brand", pe);
|
|
25456
25471
|
}
|
|
25457
|
-
const s =
|
|
25472
|
+
const s = Eo(), l = Bn(), c = Qe("root"), u = Qe("sidebar"), d = Qe("menuTrigger");
|
|
25458
25473
|
let f = null;
|
|
25459
25474
|
const h = pr(c), m = C(() => n.responsive === !1 ? "window" : Wm(h.value, n.wideLayout));
|
|
25460
25475
|
Ke(ja, m);
|
|
@@ -25475,18 +25490,18 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25475
25490
|
icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
|
|
25476
25491
|
};
|
|
25477
25492
|
});
|
|
25478
|
-
const z = C(() => ({ name: n.brandName ?? D.value.name, icon: n.brandIcon ?? D.value.icon })),
|
|
25493
|
+
const z = C(() => ({ name: n.brandName ?? D.value.name, icon: n.brandIcon ?? D.value.icon })), B = C(() => !!(s.brand || z.value.name || z.value.icon)), Y = C(() => B.value && !v.value && n.wideLayout === "web"), se = C(() => b.value ? !!s["sidebar-footer"] : P.value || v.value && !!s["sidebar-footer"]);
|
|
25479
25494
|
function de() {
|
|
25480
25495
|
x.collapsed.value = !x.collapsed.value;
|
|
25481
25496
|
}
|
|
25482
25497
|
function Z(pe) {
|
|
25483
|
-
const
|
|
25498
|
+
const Fe = {
|
|
25484
25499
|
ArrowLeft: x.width.value - zd,
|
|
25485
25500
|
ArrowRight: x.width.value + zd,
|
|
25486
25501
|
Home: ul,
|
|
25487
25502
|
End: cl
|
|
25488
25503
|
}[pe.key];
|
|
25489
|
-
|
|
25504
|
+
Fe !== void 0 && (pe.preventDefault(), x.width.value = hl(Fe));
|
|
25490
25505
|
}
|
|
25491
25506
|
const re = /* @__PURE__ */ M(!1);
|
|
25492
25507
|
let le = { x: 0, width: 0 };
|
|
@@ -25503,8 +25518,8 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25503
25518
|
function ke(pe = !1) {
|
|
25504
25519
|
if (!g.value) return;
|
|
25505
25520
|
g.value = !1;
|
|
25506
|
-
const
|
|
25507
|
-
f = null, pe && Me(() =>
|
|
25521
|
+
const Fe = f?.isConnected ? f : d.value;
|
|
25522
|
+
f = null, pe && Me(() => Fe?.focus());
|
|
25508
25523
|
}
|
|
25509
25524
|
function Re() {
|
|
25510
25525
|
f = document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null, g.value = !0, Me(() => u.value?.querySelector("[data-ui-close-navigation]")?.focus());
|
|
@@ -25533,18 +25548,18 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25533
25548
|
if (pe.key === "Escape")
|
|
25534
25549
|
pe.preventDefault(), ke(!0);
|
|
25535
25550
|
else if (pe.key === "Tab" && u.value) {
|
|
25536
|
-
const
|
|
25551
|
+
const Fe = Array.from(u.value.querySelectorAll(
|
|
25537
25552
|
'button:not([disabled]),a[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])'
|
|
25538
|
-
)), ot =
|
|
25553
|
+
)), ot = Fe[0], et = Fe[Fe.length - 1];
|
|
25539
25554
|
if (!ot || !et) return;
|
|
25540
25555
|
pe.shiftKey && document.activeElement === ot ? (pe.preventDefault(), et.focus()) : !pe.shiftKey && document.activeElement === et && (pe.preventDefault(), ot.focus());
|
|
25541
25556
|
}
|
|
25542
25557
|
}
|
|
25543
25558
|
}
|
|
25544
|
-
return (pe,
|
|
25559
|
+
return (pe, Fe) => (y(), O("section", {
|
|
25545
25560
|
ref_key: "root",
|
|
25546
25561
|
ref: c,
|
|
25547
|
-
class:
|
|
25562
|
+
class: ee(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", [
|
|
25548
25563
|
pe.$slots.sidebar && !v.value && !b.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1",
|
|
25549
25564
|
n.height === "fill" && "h-full grid-rows-[minmax(0,1fr)]"
|
|
25550
25565
|
]]),
|
|
@@ -25563,8 +25578,8 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25563
25578
|
key: 0,
|
|
25564
25579
|
"data-ui-mobile-backdrop": "",
|
|
25565
25580
|
"aria-hidden": "true",
|
|
25566
|
-
onClick:
|
|
25567
|
-
})) :
|
|
25581
|
+
onClick: Fe[0] || (Fe[0] = (ot) => ke())
|
|
25582
|
+
})) : L("", !0),
|
|
25568
25583
|
pe.$slots.sidebar ? (y(), O("aside", {
|
|
25569
25584
|
key: 1,
|
|
25570
25585
|
id: p(w),
|
|
@@ -25580,7 +25595,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25580
25595
|
onClick: rn
|
|
25581
25596
|
}, [
|
|
25582
25597
|
v.value ? (y(), O("div", WR, [
|
|
25583
|
-
|
|
25598
|
+
B.value ? (y(), O("div", KR, [
|
|
25584
25599
|
I(pe.$slots, "brand", {}, () => [
|
|
25585
25600
|
K(Ss, {
|
|
25586
25601
|
interactive: i(),
|
|
@@ -25589,19 +25604,19 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25589
25604
|
icon: z.value.icon
|
|
25590
25605
|
}, null, 8, ["interactive", "name", "icon"])
|
|
25591
25606
|
])
|
|
25592
|
-
])) : (y(), O("span", ZR,
|
|
25607
|
+
])) : (y(), O("span", ZR, te(p(l)("Application navigation")), 1)),
|
|
25593
25608
|
ne("button", {
|
|
25594
25609
|
"data-ui-close-navigation": "",
|
|
25595
25610
|
type: "button",
|
|
25596
25611
|
"aria-label": p(l)("Close"),
|
|
25597
|
-
onClick:
|
|
25612
|
+
onClick: Fe[1] || (Fe[1] = (ot) => ke(!0))
|
|
25598
25613
|
}, [
|
|
25599
25614
|
K(p(Pa), {
|
|
25600
25615
|
size: 20,
|
|
25601
25616
|
"aria-hidden": "true"
|
|
25602
25617
|
})
|
|
25603
25618
|
], 8, HR)
|
|
25604
|
-
])) :
|
|
25619
|
+
])) : L("", !0),
|
|
25605
25620
|
Y.value ? (y(), O("div", GR, [
|
|
25606
25621
|
I(pe.$slots, "brand", {}, () => [
|
|
25607
25622
|
K(Ss, {
|
|
@@ -25612,7 +25627,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25612
25627
|
collapsed: k.value
|
|
25613
25628
|
}, null, 8, ["interactive", "name", "icon", "collapsed"])
|
|
25614
25629
|
])
|
|
25615
|
-
])) :
|
|
25630
|
+
])) : L("", !0),
|
|
25616
25631
|
ne("div", JR, [
|
|
25617
25632
|
I(pe.$slots, "sidebar")
|
|
25618
25633
|
]),
|
|
@@ -25632,8 +25647,8 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25632
25647
|
size: 18,
|
|
25633
25648
|
"aria-hidden": "true"
|
|
25634
25649
|
}))
|
|
25635
|
-
], 8, XR)) :
|
|
25636
|
-
])) :
|
|
25650
|
+
], 8, XR)) : L("", !0)
|
|
25651
|
+
])) : L("", !0),
|
|
25637
25652
|
A.value ? (y(), O("div", {
|
|
25638
25653
|
key: 3,
|
|
25639
25654
|
"data-ui-sidebar-resize": "",
|
|
@@ -25647,15 +25662,15 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25647
25662
|
"aria-valuenow": p(x).width.value,
|
|
25648
25663
|
onKeydown: Z,
|
|
25649
25664
|
onPointerdown: xe
|
|
25650
|
-
}, null, 40, QR)) :
|
|
25651
|
-
], 8, UR)) :
|
|
25665
|
+
}, null, 40, QR)) : L("", !0)
|
|
25666
|
+
], 8, UR)) : L("", !0),
|
|
25652
25667
|
ne("div", {
|
|
25653
25668
|
"data-ui-layout-main": "",
|
|
25654
25669
|
class: "flex min-h-0 min-w-0 flex-col bg-[var(--ui-surface)]",
|
|
25655
25670
|
inert: v.value && g.value
|
|
25656
25671
|
}, [
|
|
25657
|
-
v.value && pe.$slots.sidebar && !(ft.value && !
|
|
25658
|
-
ft.value ?
|
|
25672
|
+
v.value && pe.$slots.sidebar && !(ft.value && !B.value) ? (y(), O("div", tN, [
|
|
25673
|
+
ft.value ? L("", !0) : (y(), O("button", {
|
|
25659
25674
|
key: 0,
|
|
25660
25675
|
ref_key: "menuTrigger",
|
|
25661
25676
|
ref: d,
|
|
@@ -25671,7 +25686,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25671
25686
|
"aria-hidden": "true"
|
|
25672
25687
|
})
|
|
25673
25688
|
], 8, nN)),
|
|
25674
|
-
|
|
25689
|
+
B.value ? (y(), O("div", oN, [
|
|
25675
25690
|
I(pe.$slots, "brand", {}, () => [
|
|
25676
25691
|
K(Ss, {
|
|
25677
25692
|
interactive: i(),
|
|
@@ -25680,16 +25695,16 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25680
25695
|
icon: z.value.icon
|
|
25681
25696
|
}, null, 8, ["interactive", "name", "icon"])
|
|
25682
25697
|
])
|
|
25683
|
-
])) : (y(), O("span", rN,
|
|
25684
|
-
])) :
|
|
25698
|
+
])) : (y(), O("span", rN, te(p(l)("Application navigation")), 1))
|
|
25699
|
+
])) : L("", !0),
|
|
25685
25700
|
I(pe.$slots, "toolbar"),
|
|
25686
25701
|
ne("main", {
|
|
25687
|
-
class:
|
|
25702
|
+
class: ee(["min-h-0 flex-1", n.height === "fill" && "flex flex-col overflow-y-auto"])
|
|
25688
25703
|
}, [
|
|
25689
25704
|
I(pe.$slots, "default")
|
|
25690
25705
|
], 2),
|
|
25691
25706
|
I(pe.$slots, "footer"),
|
|
25692
|
-
v.value ? I(pe.$slots, "tabbar", {}, void 0, void 0, 1) :
|
|
25707
|
+
v.value ? I(pe.$slots, "tabbar", {}, void 0, void 0, 1) : L("", !0)
|
|
25693
25708
|
], 8, eN)
|
|
25694
25709
|
], 46, jR));
|
|
25695
25710
|
}
|
|
@@ -25699,7 +25714,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25699
25714
|
mode: { default: "auto" }
|
|
25700
25715
|
},
|
|
25701
25716
|
setup(e) {
|
|
25702
|
-
const t = e, n =
|
|
25717
|
+
const t = e, n = Le(ja, void 0), o = Eo(), r = C(() => {
|
|
25703
25718
|
const i = t.mode === "auto" ? n?.value ?? "window" : t.mode;
|
|
25704
25719
|
return o[i] ? i : o.default ? "default" : i === "web" && o.window ? "window" : i === "window" && o.web ? "web" : o.mobile ? "mobile" : o.window ? "window" : "web";
|
|
25705
25720
|
});
|
|
@@ -25758,7 +25773,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25758
25773
|
return y(!0), O(Se, null, it(e.items, (m) => (y(), O(Se, {
|
|
25759
25774
|
key: m.key
|
|
25760
25775
|
}, [
|
|
25761
|
-
a(m) ?
|
|
25776
|
+
a(m) ? L("", !0) : (y(), R(sN, {
|
|
25762
25777
|
key: 0,
|
|
25763
25778
|
label: m.label,
|
|
25764
25779
|
enabled: !!n.collapsed
|
|
@@ -25773,7 +25788,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25773
25788
|
disabled: m.disabled,
|
|
25774
25789
|
"aria-current": m.selectable && n.modelValue === m.key ? "page" : void 0,
|
|
25775
25790
|
"aria-expanded": r(m),
|
|
25776
|
-
class:
|
|
25791
|
+
class: ee(u(m)),
|
|
25777
25792
|
style: Ve(i(n.depth)),
|
|
25778
25793
|
onClick: (v) => {
|
|
25779
25794
|
o("toggle", m.key), m.selectable && o("select", m);
|
|
@@ -25781,40 +25796,40 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25781
25796
|
}, [
|
|
25782
25797
|
K(p(Hs), {
|
|
25783
25798
|
"data-nav-chevron": "",
|
|
25784
|
-
class:
|
|
25799
|
+
class: ee(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", r(m) && "rotate-90"]),
|
|
25785
25800
|
"aria-hidden": "true"
|
|
25786
25801
|
}, null, 8, ["class"]),
|
|
25787
25802
|
m.icon ? (y(), R($t(m.icon), {
|
|
25788
25803
|
key: 0,
|
|
25789
25804
|
class: "size-[var(--ui-icon-size,22px)] shrink-0",
|
|
25790
25805
|
"aria-hidden": "true"
|
|
25791
|
-
})) :
|
|
25806
|
+
})) : L("", !0),
|
|
25792
25807
|
ne("span", {
|
|
25793
25808
|
"data-nav-label": "",
|
|
25794
|
-
class:
|
|
25795
|
-
},
|
|
25796
|
-
m.badge !== void 0 ? (y(), O("span", uN,
|
|
25809
|
+
class: ee(n.collapsed ? "sr-only" : Fd)
|
|
25810
|
+
}, te(m.label), 3),
|
|
25811
|
+
m.badge !== void 0 ? (y(), O("span", uN, te(m.badge), 1)) : L("", !0)
|
|
25797
25812
|
], 14, lN)) : (y(), O("button", {
|
|
25798
25813
|
key: 1,
|
|
25799
25814
|
type: "button",
|
|
25800
25815
|
"data-nav-item": "",
|
|
25801
25816
|
disabled: m.disabled,
|
|
25802
25817
|
"aria-current": n.modelValue === m.key ? "page" : void 0,
|
|
25803
|
-
class:
|
|
25818
|
+
class: ee(u(m)),
|
|
25804
25819
|
style: Ve(i(n.depth)),
|
|
25805
25820
|
onClick: (v) => o("select", m)
|
|
25806
25821
|
}, [
|
|
25807
|
-
c.value ? (y(), O("span", dN)) :
|
|
25822
|
+
c.value ? (y(), O("span", dN)) : L("", !0),
|
|
25808
25823
|
m.icon ? (y(), R($t(m.icon), {
|
|
25809
25824
|
key: 1,
|
|
25810
25825
|
class: "size-[var(--ui-icon-size,22px)] shrink-0",
|
|
25811
25826
|
"aria-hidden": "true"
|
|
25812
|
-
})) :
|
|
25827
|
+
})) : L("", !0),
|
|
25813
25828
|
ne("span", {
|
|
25814
25829
|
"data-nav-label": "",
|
|
25815
|
-
class:
|
|
25816
|
-
},
|
|
25817
|
-
m.badge !== void 0 ? (y(), O("span", fN,
|
|
25830
|
+
class: ee(n.collapsed ? "sr-only" : Fd)
|
|
25831
|
+
}, te(m.label), 3),
|
|
25832
|
+
m.badge !== void 0 ? (y(), O("span", fN, te(m.badge), 1)) : L("", !0)
|
|
25818
25833
|
], 14, cN))
|
|
25819
25834
|
]),
|
|
25820
25835
|
_: 2
|
|
@@ -25835,7 +25850,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25835
25850
|
onSelect: f[0] || (f[0] = (v) => o("select", v)),
|
|
25836
25851
|
onToggle: f[1] || (f[1] = (v) => o("toggle", v))
|
|
25837
25852
|
}, null, 8, ["items", "model-value", "expanded-keys", "depth", "searching", "collapsed"])
|
|
25838
|
-
], 8, pN)) :
|
|
25853
|
+
], 8, pN)) : L("", !0)
|
|
25839
25854
|
], 64))), 128);
|
|
25840
25855
|
};
|
|
25841
25856
|
}
|
|
@@ -25894,19 +25909,19 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25894
25909
|
"data-nav-contains-current": r(d, n.modelValue) || void 0,
|
|
25895
25910
|
disabled: d.disabled,
|
|
25896
25911
|
"aria-current": !n.overflow && d.selectable && n.modelValue === d.key ? "page" : void 0,
|
|
25897
|
-
class:
|
|
25912
|
+
class: ee(l(!n.overflow && n.modelValue === d.key || r(d, n.modelValue)))
|
|
25898
25913
|
}, [
|
|
25899
25914
|
d.icon ? (y(), R($t(d.icon), {
|
|
25900
25915
|
key: 0,
|
|
25901
|
-
class:
|
|
25916
|
+
class: ee(qd),
|
|
25902
25917
|
"aria-hidden": "true"
|
|
25903
|
-
})) :
|
|
25904
|
-
ne("span", vN,
|
|
25918
|
+
})) : L("", !0),
|
|
25919
|
+
ne("span", vN, te(d.label), 1),
|
|
25905
25920
|
d.badge !== void 0 ? (y(), O("span", {
|
|
25906
25921
|
key: 1,
|
|
25907
25922
|
"data-nav-badge": "",
|
|
25908
|
-
class:
|
|
25909
|
-
},
|
|
25923
|
+
class: ee(Ld)
|
|
25924
|
+
}, te(d.badge), 1)) : L("", !0),
|
|
25910
25925
|
K(p(lr), {
|
|
25911
25926
|
"data-nav-chevron": "",
|
|
25912
25927
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
@@ -25921,20 +25936,20 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25921
25936
|
"data-nav-item": "",
|
|
25922
25937
|
disabled: d.disabled,
|
|
25923
25938
|
"aria-current": n.modelValue === d.key ? "page" : void 0,
|
|
25924
|
-
class:
|
|
25939
|
+
class: ee(l(n.modelValue === d.key)),
|
|
25925
25940
|
onClick: (f) => o("select", d)
|
|
25926
25941
|
}, [
|
|
25927
25942
|
d.icon ? (y(), R($t(d.icon), {
|
|
25928
25943
|
key: 0,
|
|
25929
|
-
class:
|
|
25944
|
+
class: ee(qd),
|
|
25930
25945
|
"aria-hidden": "true"
|
|
25931
|
-
})) :
|
|
25932
|
-
ne("span", yN,
|
|
25946
|
+
})) : L("", !0),
|
|
25947
|
+
ne("span", yN, te(d.label), 1),
|
|
25933
25948
|
d.badge !== void 0 ? (y(), O("span", {
|
|
25934
25949
|
key: 1,
|
|
25935
25950
|
"data-nav-badge": "",
|
|
25936
|
-
class:
|
|
25937
|
-
},
|
|
25951
|
+
class: ee(Ld)
|
|
25952
|
+
}, te(d.badge), 1)) : L("", !0)
|
|
25938
25953
|
], 10, gN))
|
|
25939
25954
|
], 64))), 128));
|
|
25940
25955
|
}
|
|
@@ -25962,25 +25977,25 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
25962
25977
|
const P = getComputedStyle(_), b = _.clientWidth - v(P.paddingLeft) - v(P.paddingRight);
|
|
25963
25978
|
if (b <= 0) return;
|
|
25964
25979
|
const x = v(P.columnGap), k = [];
|
|
25965
|
-
if (_.querySelectorAll("[data-nav-group]").forEach((
|
|
25966
|
-
const se = getComputedStyle(
|
|
25967
|
-
|
|
25980
|
+
if (_.querySelectorAll("[data-nav-group]").forEach((B, Y) => {
|
|
25981
|
+
const se = getComputedStyle(B);
|
|
25982
|
+
B.querySelectorAll("[data-ui-top-nav-item]").forEach((de, Z) => {
|
|
25968
25983
|
const re = Z === 0 ? v(se.marginLeft) + v(se.marginRight) + v(se.paddingLeft) + v(se.paddingRight) + v(se.borderLeftWidth) + v(se.borderRightWidth) + (Y ? x : 0) : v(se.columnGap);
|
|
25969
25984
|
k.push(de.getBoundingClientRect().width + re);
|
|
25970
25985
|
});
|
|
25971
|
-
}), !k.length || k.every((
|
|
25986
|
+
}), !k.length || k.every((B) => B === 0)) return;
|
|
25972
25987
|
let A = k.length;
|
|
25973
|
-
if (k.reduce((
|
|
25974
|
-
const
|
|
25988
|
+
if (k.reduce((B, Y) => B + Y, 0) > b) {
|
|
25989
|
+
const B = b - a.value.getBoundingClientRect().width - x;
|
|
25975
25990
|
let Y = 0;
|
|
25976
25991
|
A = 0;
|
|
25977
25992
|
for (const se of k) {
|
|
25978
|
-
if (Y + se >
|
|
25993
|
+
if (Y + se > B) break;
|
|
25979
25994
|
Y += se, A++;
|
|
25980
25995
|
}
|
|
25981
25996
|
}
|
|
25982
25997
|
if (l.value === A) return;
|
|
25983
|
-
const T = document.activeElement, D = T instanceof Element && [..._.querySelectorAll("[data-ui-top-nav-item]")].some((
|
|
25998
|
+
const T = document.activeElement, D = T instanceof Element && [..._.querySelectorAll("[data-ui-top-nav-item]")].some((B, Y) => Y >= A && B.contains(T)), z = a.value.contains(T);
|
|
25984
25999
|
l.value = A, Me(() => {
|
|
25985
26000
|
D ? a.value?.querySelector("button")?.focus() : z && !u.value.length && _.querySelector("[data-ui-top-nav-item] button")?.focus();
|
|
25986
26001
|
});
|
|
@@ -26006,7 +26021,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26006
26021
|
inert: x[0].index >= l.value,
|
|
26007
26022
|
style: Ve(x[0].index >= l.value ? h : void 0),
|
|
26008
26023
|
"data-nav-group": "",
|
|
26009
|
-
class:
|
|
26024
|
+
class: ee(["flex shrink-0 items-center gap-[var(--ui-space-1)]", k > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
|
|
26010
26025
|
}, [
|
|
26011
26026
|
(y(!0), O(Se, null, it(x, ({ item: A, index: T }) => (y(), O("div", {
|
|
26012
26027
|
key: A.key,
|
|
@@ -26063,7 +26078,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26063
26078
|
},
|
|
26064
26079
|
emits: ["update:modelValue", "update:expandedKeys", "select", "branchToggle"],
|
|
26065
26080
|
setup(e, { emit: t }) {
|
|
26066
|
-
const o = ao(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), r = t, i =
|
|
26081
|
+
const o = ao(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), r = t, i = Le(Km, C(() => !1)), a = Le(Zm, C(() => !1)), s = /* @__PURE__ */ M(""), l = /* @__PURE__ */ M(/* @__PURE__ */ new Set());
|
|
26067
26082
|
function c(b, x) {
|
|
26068
26083
|
return b.flatMap((k) => {
|
|
26069
26084
|
const A = k.children ? c(k.children, x) : [];
|
|
@@ -26127,10 +26142,10 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26127
26142
|
class: "mb-1.5",
|
|
26128
26143
|
placeholder: p(o).searchPlaceholder,
|
|
26129
26144
|
"clear-label": p(o).clearSearchLabel
|
|
26130
|
-
}, null, 8, ["modelValue", "placeholder", "clear-label"])) :
|
|
26145
|
+
}, null, 8, ["modelValue", "placeholder", "clear-label"])) : L("", !0),
|
|
26131
26146
|
(y(!0), O(Se, null, it(u.value, ({ group: k, id: A, items: T }, D) => (y(), O("section", {
|
|
26132
26147
|
key: A,
|
|
26133
|
-
class:
|
|
26148
|
+
class: ee(D > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
|
|
26134
26149
|
}, [
|
|
26135
26150
|
k.label && p(o).collapsible && !p(i) ? (y(), O("button", {
|
|
26136
26151
|
key: 0,
|
|
@@ -26142,11 +26157,11 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26142
26157
|
onClick: (z) => f(A)
|
|
26143
26158
|
}, [
|
|
26144
26159
|
K(p(lr), {
|
|
26145
|
-
class:
|
|
26160
|
+
class: ee(["size-3 shrink-0 transition-transform", !h(A) && "-rotate-90"]),
|
|
26146
26161
|
"aria-hidden": "true"
|
|
26147
26162
|
}, null, 8, ["class"]),
|
|
26148
|
-
|
|
26149
|
-
], 8, CN)) : k.label && !p(i) ? (y(), O("div", PN,
|
|
26163
|
+
ze(" " + te(k.label), 1)
|
|
26164
|
+
], 8, CN)) : k.label && !p(i) ? (y(), O("div", PN, te(k.label), 1)) : L("", !0),
|
|
26150
26165
|
h(A) ? (y(), R(hN, {
|
|
26151
26166
|
key: 2,
|
|
26152
26167
|
items: T,
|
|
@@ -26157,7 +26172,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26157
26172
|
collapsed: p(i),
|
|
26158
26173
|
onSelect: P,
|
|
26159
26174
|
onToggle: _
|
|
26160
|
-
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) :
|
|
26175
|
+
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : L("", !0)
|
|
26161
26176
|
], 2))), 128))
|
|
26162
26177
|
], 8, kN));
|
|
26163
26178
|
}
|
|
@@ -26181,13 +26196,13 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26181
26196
|
}, [
|
|
26182
26197
|
t.$slots.leading ? (y(), O("div", EN, [
|
|
26183
26198
|
I(t.$slots, "leading")
|
|
26184
|
-
])) :
|
|
26199
|
+
])) : L("", !0),
|
|
26185
26200
|
ne("div", ON, [
|
|
26186
26201
|
I(t.$slots, "default")
|
|
26187
26202
|
]),
|
|
26188
26203
|
t.$slots.actions ? (y(), O("div", $N, [
|
|
26189
26204
|
I(t.$slots, "actions")
|
|
26190
|
-
])) :
|
|
26205
|
+
])) : L("", !0)
|
|
26191
26206
|
], 4));
|
|
26192
26207
|
}
|
|
26193
26208
|
}), IN = { class: "min-w-0 flex-auto" }, RN = { class: "flex min-w-0 items-center gap-x-[var(--ui-space-3)]" }, NN = ["title"], DN = {
|
|
@@ -26211,7 +26226,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26211
26226
|
setup(e) {
|
|
26212
26227
|
return (t, n) => (y(), O("div", {
|
|
26213
26228
|
"data-ui-page-header": "",
|
|
26214
|
-
class:
|
|
26229
|
+
class: ee([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)]"]),
|
|
26215
26230
|
"data-syno-pkg-land-ui": ""
|
|
26216
26231
|
}, [
|
|
26217
26232
|
ne("div", IN, [
|
|
@@ -26219,16 +26234,16 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26219
26234
|
ne("h1", {
|
|
26220
26235
|
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)]",
|
|
26221
26236
|
title: e.title
|
|
26222
|
-
},
|
|
26237
|
+
}, te(e.title), 9, NN),
|
|
26223
26238
|
t.$slots.meta ? (y(), O("div", DN, [
|
|
26224
26239
|
I(t.$slots, "meta")
|
|
26225
|
-
])) :
|
|
26240
|
+
])) : L("", !0)
|
|
26226
26241
|
]),
|
|
26227
|
-
e.description ? (y(), O("p", MN,
|
|
26242
|
+
e.description ? (y(), O("p", MN, te(e.description), 1)) : L("", !0)
|
|
26228
26243
|
]),
|
|
26229
26244
|
t.$slots.actions ? (y(), O("div", zN, [
|
|
26230
26245
|
I(t.$slots, "actions")
|
|
26231
|
-
])) :
|
|
26246
|
+
])) : L("", !0)
|
|
26232
26247
|
], 2));
|
|
26233
26248
|
}
|
|
26234
26249
|
}), qN = ["data-width", "data-height", "data-page-surface"], LN = /* @__PURE__ */ N({
|
|
@@ -26244,7 +26259,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26244
26259
|
return t.width === "readable" ? "var(--ui-page-readable-width)" : t.width;
|
|
26245
26260
|
});
|
|
26246
26261
|
return (r, i) => (y(), O("div", {
|
|
26247
|
-
class:
|
|
26262
|
+
class: ee(["box-border w-full min-w-0", [
|
|
26248
26263
|
e.surface !== "none" && "px-[var(--ui-page-padding-x)]",
|
|
26249
26264
|
n.value && "flex h-full min-h-0 flex-col overflow-hidden"
|
|
26250
26265
|
]]),
|
|
@@ -26255,7 +26270,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26255
26270
|
}, [
|
|
26256
26271
|
ne("div", {
|
|
26257
26272
|
"data-page-content-body": "",
|
|
26258
|
-
class:
|
|
26273
|
+
class: ee(["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"]),
|
|
26259
26274
|
style: Ve({ "--ui-page-padding-x": "0px", maxWidth: o.value })
|
|
26260
26275
|
}, [
|
|
26261
26276
|
I(r.$slots, "default")
|
|
@@ -26304,12 +26319,12 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26304
26319
|
disabled: m.disabled,
|
|
26305
26320
|
"data-ui-tab-value": m.value,
|
|
26306
26321
|
"aria-current": r.modelValue === m.value ? "page" : void 0,
|
|
26307
|
-
class:
|
|
26322
|
+
class: ee([
|
|
26308
26323
|
"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",
|
|
26309
26324
|
r.modelValue === m.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] enabled:hover:bg-[var(--ui-surface-hover)] enabled:hover:text-[var(--ui-text)]"
|
|
26310
26325
|
]),
|
|
26311
26326
|
onClick: (v) => i("update:modelValue", m.value)
|
|
26312
|
-
},
|
|
26327
|
+
}, te(m.label), 11, VN))), 128)),
|
|
26313
26328
|
ne("span", {
|
|
26314
26329
|
class: "ui-tab-indicator",
|
|
26315
26330
|
style: Ve(p(s)),
|
|
@@ -26318,7 +26333,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26318
26333
|
], 16, BN),
|
|
26319
26334
|
f.$slots.actions ? (y(), O("div", jN, [
|
|
26320
26335
|
I(f.$slots, "actions")
|
|
26321
|
-
])) :
|
|
26336
|
+
])) : L("", !0)
|
|
26322
26337
|
]),
|
|
26323
26338
|
_: 3
|
|
26324
26339
|
}, 16)),
|
|
@@ -26328,7 +26343,7 @@ const jR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
26328
26343
|
"data-syno-pkg-land-ui": ""
|
|
26329
26344
|
}, [
|
|
26330
26345
|
I(f.$slots, `panel-${r.modelValue}`)
|
|
26331
|
-
])) :
|
|
26346
|
+
])) : L("", !0)
|
|
26332
26347
|
], 64));
|
|
26333
26348
|
}
|
|
26334
26349
|
}), WN = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), KN = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
|
|
@@ -26363,7 +26378,7 @@ function HN(e) {
|
|
|
26363
26378
|
return t;
|
|
26364
26379
|
}
|
|
26365
26380
|
function Hm(e, t, n = {}) {
|
|
26366
|
-
const o =
|
|
26381
|
+
const o = Le(KN, null), r = Le(WN, null);
|
|
26367
26382
|
return C(() => {
|
|
26368
26383
|
const i = [n, r?.value?.[e], o?.value?.[e]];
|
|
26369
26384
|
let a = {};
|
|
@@ -26611,7 +26626,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26611
26626
|
textOnly: !1,
|
|
26612
26627
|
indent: 0,
|
|
26613
26628
|
labelWidth: "var(--ui-label-column)"
|
|
26614
|
-
}), l = Bk(), c = Th(), u =
|
|
26629
|
+
}), l = Bk(), c = Th(), u = Eo(), d = Qe("root"), f = Dn(), h = {
|
|
26615
26630
|
control: `form-item-${f}-control`,
|
|
26616
26631
|
label: `form-item-${f}-label`,
|
|
26617
26632
|
description: `form-item-${f}-description`,
|
|
@@ -26639,7 +26654,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26639
26654
|
function T() {
|
|
26640
26655
|
b.value = _.value;
|
|
26641
26656
|
}
|
|
26642
|
-
const D = /* @__PURE__ */ M(""), z = /* @__PURE__ */ M(""),
|
|
26657
|
+
const D = /* @__PURE__ */ M(""), z = /* @__PURE__ */ M(""), B = /* @__PURE__ */ M(""), Y = /* @__PURE__ */ M(""), se = /* @__PURE__ */ M(!1), de = /* @__PURE__ */ M(!1), Z = C(() => r.disabled === !0 || se.value || c?.disabled === !0), re = C(() => Y.value || s.value.validateStatus || D.value), le = C(() => re.value === "error"), ve = C(() => B.value || z.value || s.value.help), $e = C(() => B.value ? B.value : le.value && !s.value.hideValidateMessage && z.value || s.value.help), xe = pr(d), ke = C(() => {
|
|
26643
26658
|
const H = s.value.direction ?? l?.direction ?? "auto";
|
|
26644
26659
|
return H === "auto" ? xe.value > 0 && xe.value < 520 ? "vertical" : "horizontal" : H;
|
|
26645
26660
|
}), Re = C(() => {
|
|
@@ -26653,7 +26668,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26653
26668
|
return ue && (H.paddingLeft = typeof ue == "number" ? `${ue * 28}px` : ue), H;
|
|
26654
26669
|
}), pe = C(() => ({
|
|
26655
26670
|
maxWidth: Vm(r.fieldWidth ?? l?.fieldWidth)
|
|
26656
|
-
})),
|
|
26671
|
+
})), Fe = C(() => {
|
|
26657
26672
|
if (ke.value === "vertical") return;
|
|
26658
26673
|
const H = s.value.labelWidth ?? "var(--ui-label-column)";
|
|
26659
26674
|
return { width: c ? `max(0px, calc(${H} - ${c.indent}))` : H };
|
|
@@ -26666,14 +26681,14 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26666
26681
|
de.value ? "opacity-100" : "pointer-events-none opacity-0"
|
|
26667
26682
|
);
|
|
26668
26683
|
}), et = { afterItem: "shrink-0 self-center" };
|
|
26669
|
-
function
|
|
26684
|
+
function No() {
|
|
26670
26685
|
const H = gl(s.value.rules), ue = r.prop, Ee = ue ? gl(l?.rules?.[ue]) : [];
|
|
26671
26686
|
return [...H, ...Ee];
|
|
26672
26687
|
}
|
|
26673
26688
|
let S = 0;
|
|
26674
26689
|
async function E(H = null) {
|
|
26675
26690
|
if (s.value.disableValidation || Z.value && !s.value.validateDisabledField) return null;
|
|
26676
|
-
const ue =
|
|
26691
|
+
const ue = No();
|
|
26677
26692
|
if (!ue.length) return null;
|
|
26678
26693
|
const Ee = ++S;
|
|
26679
26694
|
D.value = "validating", i("validating");
|
|
@@ -26694,22 +26709,22 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26694
26709
|
E("change");
|
|
26695
26710
|
}
|
|
26696
26711
|
function j(H) {
|
|
26697
|
-
H !== void 0 && (
|
|
26712
|
+
H !== void 0 && (B.value = H), de.value = !0;
|
|
26698
26713
|
}
|
|
26699
26714
|
function X() {
|
|
26700
26715
|
de.value = !1;
|
|
26701
26716
|
}
|
|
26702
26717
|
function Q(H, ue = "error") {
|
|
26703
|
-
|
|
26718
|
+
B.value = H, Y.value = ue, Re.value === "popup" && (de.value = !0);
|
|
26704
26719
|
}
|
|
26705
26720
|
function J() {
|
|
26706
|
-
|
|
26721
|
+
B.value = "", Y.value = "", de.value = !1;
|
|
26707
26722
|
}
|
|
26708
26723
|
function W(H) {
|
|
26709
26724
|
se.value = H;
|
|
26710
26725
|
}
|
|
26711
26726
|
function ge() {
|
|
26712
|
-
S++, D.value = "", z.value = "",
|
|
26727
|
+
S++, D.value = "", z.value = "", B.value = "", Y.value = "", de.value = !1, r.initialValue !== void 0 && (g.value ? i("update:modelValue", r.initialValue) : w.value = r.initialValue);
|
|
26713
26728
|
}
|
|
26714
26729
|
function ie() {
|
|
26715
26730
|
const H = d.value;
|
|
@@ -26789,7 +26804,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26789
26804
|
"data-form-item": "",
|
|
26790
26805
|
"data-direction": ke.value,
|
|
26791
26806
|
style: Ve(zt.value),
|
|
26792
|
-
class:
|
|
26807
|
+
class: ee(p(On)("min-w-0", le.value && !p(s).hideValidateStatusCls && "has-error")),
|
|
26793
26808
|
"data-status": re.value || void 0,
|
|
26794
26809
|
"data-syno-pkg-land-ui": "",
|
|
26795
26810
|
onMouseenter: ue[1] || (ue[1] = (Ee) => Re.value === "popup" && j()),
|
|
@@ -26800,8 +26815,8 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26800
26815
|
dt.value ? (y(), O("div", {
|
|
26801
26816
|
key: 0,
|
|
26802
26817
|
"data-form-label": "",
|
|
26803
|
-
style: Ve(
|
|
26804
|
-
class:
|
|
26818
|
+
style: Ve(Fe.value),
|
|
26819
|
+
class: ee([
|
|
26805
26820
|
"min-w-0 shrink-0 break-words [word-break:keep-all] text-[13px] leading-5 text-[var(--ui-text)]",
|
|
26806
26821
|
ke.value === "horizontal" ? "pt-[5px] text-left" : void 0,
|
|
26807
26822
|
p(s).disableLabel || Z.value ? "opacity-40" : void 0
|
|
@@ -26814,70 +26829,70 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26814
26829
|
onClick: Ae
|
|
26815
26830
|
}, [
|
|
26816
26831
|
I(H.$slots, "label", {}, () => [
|
|
26817
|
-
|
|
26832
|
+
ze(te(p(s).label), 1)
|
|
26818
26833
|
]),
|
|
26819
|
-
p(s).requiredMark ? (y(), O("span", uD, "*")) :
|
|
26834
|
+
p(s).requiredMark ? (y(), O("span", uD, "*")) : L("", !0)
|
|
26820
26835
|
], 8, lD)
|
|
26821
|
-
], 6)) :
|
|
26836
|
+
], 6)) : L("", !0),
|
|
26822
26837
|
ne("div", {
|
|
26823
|
-
class:
|
|
26838
|
+
class: ee(["relative min-w-0 flex-1", p(s).disableControl ? "opacity-40" : void 0])
|
|
26824
26839
|
}, [
|
|
26825
26840
|
ne("div", cD, [
|
|
26826
26841
|
I(H.$slots, "before"),
|
|
26827
26842
|
ne("div", {
|
|
26828
|
-
class: "min-w-0 flex-1",
|
|
26843
|
+
class: ee(["min-w-0 flex-1", p(s).textOnly && "pb-[3px] pt-[5px] break-words text-[13px] leading-5 text-[var(--ui-text)]"]),
|
|
26829
26844
|
"data-field-control": "",
|
|
26830
26845
|
style: Ve(pe.value)
|
|
26831
26846
|
}, [
|
|
26832
26847
|
I(H.$slots, "default", { field: we })
|
|
26833
|
-
],
|
|
26848
|
+
], 6),
|
|
26834
26849
|
H.$slots.after ? (y(), O("div", dD, [
|
|
26835
26850
|
I(H.$slots, "after", { classes: et })
|
|
26836
|
-
])) :
|
|
26851
|
+
])) : L("", !0)
|
|
26837
26852
|
]),
|
|
26838
26853
|
ft.value ? (y(), O("div", {
|
|
26839
26854
|
key: 0,
|
|
26840
26855
|
id: h.description,
|
|
26841
|
-
class:
|
|
26856
|
+
class: ee([
|
|
26842
26857
|
"mt-1 text-[12px] leading-4 text-[var(--ui-text-secondary)]",
|
|
26843
26858
|
p(s).disableDescription || Z.value ? "opacity-40" : void 0
|
|
26844
26859
|
])
|
|
26845
26860
|
}, [
|
|
26846
26861
|
I(H.$slots, "description", {}, () => [
|
|
26847
|
-
|
|
26862
|
+
ze(te(p(s).description), 1)
|
|
26848
26863
|
])
|
|
26849
|
-
], 10, fD)) :
|
|
26864
|
+
], 10, fD)) : L("", !0),
|
|
26850
26865
|
$e.value ? (y(), O("div", {
|
|
26851
26866
|
key: 1,
|
|
26852
26867
|
id: h.message,
|
|
26853
26868
|
role: "alert",
|
|
26854
|
-
class:
|
|
26869
|
+
class: ee(ot.value)
|
|
26855
26870
|
}, [
|
|
26856
26871
|
I(H.$slots, "status", { field: we }, () => [
|
|
26857
|
-
|
|
26872
|
+
ze(te($e.value), 1)
|
|
26858
26873
|
])
|
|
26859
|
-
], 10, pD)) :
|
|
26874
|
+
], 10, pD)) : L("", !0)
|
|
26860
26875
|
], 2)
|
|
26861
26876
|
], 46, sD));
|
|
26862
26877
|
}
|
|
26863
26878
|
}), Gm = Yl(() => ce({
|
|
26864
|
-
key:
|
|
26865
|
-
label:
|
|
26866
|
-
icon:
|
|
26867
|
-
badge: Mt([
|
|
26879
|
+
key: V(),
|
|
26880
|
+
label: V(),
|
|
26881
|
+
icon: V().optional(),
|
|
26882
|
+
badge: Mt([V(), Yt()]).optional(),
|
|
26868
26883
|
disabled: Ce().optional(),
|
|
26869
26884
|
selectable: Ce().optional(),
|
|
26870
26885
|
children: tt(Gm).optional()
|
|
26871
26886
|
})), yl = ce({
|
|
26872
|
-
label:
|
|
26873
|
-
value:
|
|
26887
|
+
label: V(),
|
|
26888
|
+
value: V(),
|
|
26874
26889
|
disabled: Ce().optional()
|
|
26875
26890
|
}), mD = yl.extend({
|
|
26876
|
-
description:
|
|
26891
|
+
description: V().optional()
|
|
26877
26892
|
}), Vd = ce({
|
|
26878
|
-
key:
|
|
26879
|
-
label:
|
|
26880
|
-
width:
|
|
26893
|
+
key: V(),
|
|
26894
|
+
label: V(),
|
|
26895
|
+
width: V().optional(),
|
|
26881
26896
|
/** Sets the alignment: DSM keeps every column left; number and date digits get one width. */
|
|
26882
26897
|
type: Oe(["text", "number", "date", "actions"]).optional(),
|
|
26883
26898
|
align: Oe(["left", "center", "right"]).optional()
|
|
@@ -26891,8 +26906,8 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26891
26906
|
},
|
|
26892
26907
|
AppShell: {
|
|
26893
26908
|
props: ce({
|
|
26894
|
-
sidebarWidth:
|
|
26895
|
-
minHeight:
|
|
26909
|
+
sidebarWidth: V().optional(),
|
|
26910
|
+
minHeight: V().optional(),
|
|
26896
26911
|
responsive: Ce().optional(),
|
|
26897
26912
|
wideLayout: Oe(["window", "web"]).optional(),
|
|
26898
26913
|
navigation: Oe(["sidebar", "top"]).optional()
|
|
@@ -26907,7 +26922,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26907
26922
|
},
|
|
26908
26923
|
Page: {
|
|
26909
26924
|
props: ce({
|
|
26910
|
-
width:
|
|
26925
|
+
width: V().optional(),
|
|
26911
26926
|
surface: Oe(["auto", "flat", "card", "none"]).optional()
|
|
26912
26927
|
}),
|
|
26913
26928
|
slots: ["default"],
|
|
@@ -26915,36 +26930,36 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26915
26930
|
},
|
|
26916
26931
|
PageHeader: {
|
|
26917
26932
|
props: ce({
|
|
26918
|
-
title:
|
|
26919
|
-
description:
|
|
26933
|
+
title: V(),
|
|
26934
|
+
description: V().optional()
|
|
26920
26935
|
}),
|
|
26921
26936
|
slots: ["actions", "meta"],
|
|
26922
26937
|
description: "Page heading with optional description and page-level actions. The meta slot sits on the title line, for a small chip such as when the data was read."
|
|
26923
26938
|
},
|
|
26924
26939
|
Toolbar: {
|
|
26925
|
-
props: ce({ height:
|
|
26940
|
+
props: ce({ height: V().optional() }),
|
|
26926
26941
|
slots: ["default", "leading", "actions"],
|
|
26927
26942
|
description: "Application toolbar. Put primary page-independent actions in the actions slot."
|
|
26928
26943
|
},
|
|
26929
26944
|
SidebarNav: {
|
|
26930
26945
|
props: ce({
|
|
26931
|
-
value:
|
|
26946
|
+
value: V().optional(),
|
|
26932
26947
|
groups: tt(ce({
|
|
26933
|
-
label:
|
|
26948
|
+
label: V().optional(),
|
|
26934
26949
|
items: tt(Gm)
|
|
26935
26950
|
})),
|
|
26936
26951
|
searchable: Ce().optional(),
|
|
26937
26952
|
collapsible: Ce().optional(),
|
|
26938
|
-
searchPlaceholder:
|
|
26953
|
+
searchPlaceholder: V().optional()
|
|
26939
26954
|
}),
|
|
26940
26955
|
events: ["change"],
|
|
26941
26956
|
description: "DSM sidebar navigation. Icon values are names registered by the host application."
|
|
26942
26957
|
},
|
|
26943
26958
|
Tabs: {
|
|
26944
26959
|
props: ce({
|
|
26945
|
-
value:
|
|
26960
|
+
value: V(),
|
|
26946
26961
|
items: tt(yl),
|
|
26947
|
-
ariaLabel:
|
|
26962
|
+
ariaLabel: V().optional()
|
|
26948
26963
|
}),
|
|
26949
26964
|
events: ["change"],
|
|
26950
26965
|
description: "Section tabs for switching a local mode or filter. Bind value to state for two-way updates."
|
|
@@ -26962,42 +26977,42 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
26962
26977
|
},
|
|
26963
26978
|
Text: {
|
|
26964
26979
|
props: ce({
|
|
26965
|
-
text:
|
|
26980
|
+
text: V(),
|
|
26966
26981
|
variant: Oe(["body", "muted", "caption", "heading", "mono"]).optional()
|
|
26967
26982
|
}),
|
|
26968
26983
|
description: "Short application text. Do not use it when a semantic component already owns the label/description."
|
|
26969
26984
|
},
|
|
26970
26985
|
Button: {
|
|
26971
26986
|
props: ce({
|
|
26972
|
-
label:
|
|
26987
|
+
label: V(),
|
|
26973
26988
|
variant: Oe(["primary", "secondary", "ghost", "danger"]).optional(),
|
|
26974
26989
|
size: Oe(["sm", "md", "lg"]).optional(),
|
|
26975
26990
|
disabled: Ce().optional(),
|
|
26976
26991
|
loading: Ce().optional(),
|
|
26977
|
-
icon:
|
|
26992
|
+
icon: V().optional()
|
|
26978
26993
|
}),
|
|
26979
26994
|
events: ["press"],
|
|
26980
26995
|
description: "User action. Its shape follows the container: a capsule in a Dialog footer, else a tool button. One primary (or one danger to confirm a deletion) per footer or section, placed last; toolbar and row actions, Delete included, stay secondary. Icon is an optional host-registered icon name."
|
|
26981
26996
|
},
|
|
26982
26997
|
Input: {
|
|
26983
26998
|
props: ce({
|
|
26984
|
-
value: Mt([
|
|
26985
|
-
type:
|
|
26986
|
-
placeholder:
|
|
26999
|
+
value: Mt([V(), Yt()]).optional(),
|
|
27000
|
+
type: V().optional(),
|
|
27001
|
+
placeholder: V().optional(),
|
|
26987
27002
|
disabled: Ce().optional(),
|
|
26988
27003
|
readonly: Ce().optional(),
|
|
26989
27004
|
invalid: Ce().optional(),
|
|
26990
27005
|
size: Oe(["sm", "md", "lg"]).optional(),
|
|
26991
|
-
ariaLabel:
|
|
27006
|
+
ariaLabel: V().optional()
|
|
26992
27007
|
}),
|
|
26993
27008
|
events: ["change"],
|
|
26994
27009
|
description: "Single-line input. Use $bindState/$bindItem on value for editable state."
|
|
26995
27010
|
},
|
|
26996
27011
|
Select: {
|
|
26997
27012
|
props: ce({
|
|
26998
|
-
value:
|
|
27013
|
+
value: V().optional(),
|
|
26999
27014
|
options: tt(yl),
|
|
27000
|
-
placeholder:
|
|
27015
|
+
placeholder: V().optional(),
|
|
27001
27016
|
disabled: Ce().optional(),
|
|
27002
27017
|
search: Ce().optional()
|
|
27003
27018
|
}),
|
|
@@ -27007,8 +27022,8 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27007
27022
|
Checkbox: {
|
|
27008
27023
|
props: ce({
|
|
27009
27024
|
checked: Ce().optional(),
|
|
27010
|
-
label:
|
|
27011
|
-
description:
|
|
27025
|
+
label: V().optional(),
|
|
27026
|
+
description: V().optional(),
|
|
27012
27027
|
disabled: Ce().optional()
|
|
27013
27028
|
}),
|
|
27014
27029
|
events: ["change"],
|
|
@@ -27017,7 +27032,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27017
27032
|
Switch: {
|
|
27018
27033
|
props: ce({
|
|
27019
27034
|
checked: Ce().optional(),
|
|
27020
|
-
label:
|
|
27035
|
+
label: V().optional(),
|
|
27021
27036
|
disabled: Ce().optional()
|
|
27022
27037
|
}),
|
|
27023
27038
|
events: ["change"],
|
|
@@ -27025,7 +27040,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27025
27040
|
},
|
|
27026
27041
|
RadioGroup: {
|
|
27027
27042
|
props: ce({
|
|
27028
|
-
value:
|
|
27043
|
+
value: V().optional(),
|
|
27029
27044
|
options: tt(mD),
|
|
27030
27045
|
orientation: Oe(["vertical", "horizontal"]).optional(),
|
|
27031
27046
|
disabled: Ce().optional()
|
|
@@ -27036,7 +27051,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27036
27051
|
Form: {
|
|
27037
27052
|
props: ce({
|
|
27038
27053
|
direction: Oe(["auto", "horizontal", "vertical"]).optional(),
|
|
27039
|
-
fieldWidth:
|
|
27054
|
+
fieldWidth: V().optional()
|
|
27040
27055
|
}),
|
|
27041
27056
|
slots: ["default"],
|
|
27042
27057
|
events: ["submit"],
|
|
@@ -27044,11 +27059,11 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27044
27059
|
},
|
|
27045
27060
|
Field: {
|
|
27046
27061
|
props: ce({
|
|
27047
|
-
label:
|
|
27048
|
-
description:
|
|
27049
|
-
help:
|
|
27062
|
+
label: V(),
|
|
27063
|
+
description: V().optional(),
|
|
27064
|
+
help: V().optional(),
|
|
27050
27065
|
required: Ce().optional(),
|
|
27051
|
-
fieldWidth:
|
|
27066
|
+
fieldWidth: V().optional(),
|
|
27052
27067
|
direction: Oe(["auto", "horizontal", "vertical"]).optional()
|
|
27053
27068
|
}),
|
|
27054
27069
|
slots: ["default"],
|
|
@@ -27056,7 +27071,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27056
27071
|
},
|
|
27057
27072
|
SettingsSection: {
|
|
27058
27073
|
props: ce({
|
|
27059
|
-
title:
|
|
27074
|
+
title: V(),
|
|
27060
27075
|
collapsible: Ce().optional(),
|
|
27061
27076
|
open: Ce().optional()
|
|
27062
27077
|
}),
|
|
@@ -27066,10 +27081,10 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27066
27081
|
},
|
|
27067
27082
|
SettingsField: {
|
|
27068
27083
|
props: ce({
|
|
27069
|
-
label:
|
|
27070
|
-
description:
|
|
27084
|
+
label: V(),
|
|
27085
|
+
description: V().optional(),
|
|
27071
27086
|
required: Ce().optional(),
|
|
27072
|
-
fieldWidth:
|
|
27087
|
+
fieldWidth: V().optional(),
|
|
27073
27088
|
align: Oe(["start", "center"]).optional()
|
|
27074
27089
|
}),
|
|
27075
27090
|
slots: ["default"],
|
|
@@ -27086,7 +27101,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27086
27101
|
},
|
|
27087
27102
|
Card: {
|
|
27088
27103
|
props: ce({
|
|
27089
|
-
title:
|
|
27104
|
+
title: V().optional(),
|
|
27090
27105
|
layoutType: Oe(["regular", "compact"]).optional(),
|
|
27091
27106
|
expandable: Ce().optional(),
|
|
27092
27107
|
expanded: Ce().optional(),
|
|
@@ -27100,9 +27115,9 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27100
27115
|
props: ce({
|
|
27101
27116
|
tone: Oe(["info", "success", "warning", "danger"]).optional(),
|
|
27102
27117
|
variant: Oe(["soft", "inline"]).optional(),
|
|
27103
|
-
title:
|
|
27118
|
+
title: V().optional(),
|
|
27104
27119
|
closable: Ce().optional(),
|
|
27105
|
-
code:
|
|
27120
|
+
code: V().optional(),
|
|
27106
27121
|
fill: Ce().optional()
|
|
27107
27122
|
}),
|
|
27108
27123
|
slots: ["default", "actions", "details"],
|
|
@@ -27111,9 +27126,9 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27111
27126
|
},
|
|
27112
27127
|
EmptyState: {
|
|
27113
27128
|
props: ce({
|
|
27114
|
-
title:
|
|
27115
|
-
description:
|
|
27116
|
-
icon:
|
|
27129
|
+
title: V(),
|
|
27130
|
+
description: V().optional(),
|
|
27131
|
+
icon: V().optional()
|
|
27117
27132
|
}),
|
|
27118
27133
|
slots: ["actions"],
|
|
27119
27134
|
description: "Empty/no-results state with optional recovery or create actions."
|
|
@@ -27122,15 +27137,15 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27122
27137
|
props: ce({
|
|
27123
27138
|
value: Yt().optional(),
|
|
27124
27139
|
max: Yt().optional(),
|
|
27125
|
-
label:
|
|
27126
|
-
valueLabel:
|
|
27140
|
+
label: V().optional(),
|
|
27141
|
+
valueLabel: V().optional(),
|
|
27127
27142
|
tone: Oe(["primary", "success", "warning", "danger"]).optional()
|
|
27128
27143
|
}),
|
|
27129
27144
|
description: "Linear determinate progress. Domain-specific progress visualizations should be custom components."
|
|
27130
27145
|
},
|
|
27131
27146
|
Badge: {
|
|
27132
27147
|
props: ce({
|
|
27133
|
-
text:
|
|
27148
|
+
text: V(),
|
|
27134
27149
|
tone: Oe(["neutral", "info", "success", "warning", "danger"]).optional()
|
|
27135
27150
|
}),
|
|
27136
27151
|
description: "Short status/category badge."
|
|
@@ -27138,10 +27153,10 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27138
27153
|
Dialog: {
|
|
27139
27154
|
props: ce({
|
|
27140
27155
|
open: Ce().optional(),
|
|
27141
|
-
title:
|
|
27142
|
-
description:
|
|
27156
|
+
title: V().optional(),
|
|
27157
|
+
description: V().optional(),
|
|
27143
27158
|
size: Oe(["sm", "md", "lg", "xl"]).optional(),
|
|
27144
|
-
width:
|
|
27159
|
+
width: V().optional(),
|
|
27145
27160
|
showClose: Ce().optional()
|
|
27146
27161
|
}),
|
|
27147
27162
|
slots: ["default", "footer"],
|
|
@@ -27151,9 +27166,9 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27151
27166
|
DataTable: {
|
|
27152
27167
|
props: ce({
|
|
27153
27168
|
columns: tt(Vd),
|
|
27154
|
-
rows: tt(lt(
|
|
27155
|
-
rowKey:
|
|
27156
|
-
emptyText:
|
|
27169
|
+
rows: tt(lt(V(), ht())),
|
|
27170
|
+
rowKey: V().optional(),
|
|
27171
|
+
emptyText: V().optional(),
|
|
27157
27172
|
compact: Ce().optional(),
|
|
27158
27173
|
mobileView: Oe(["auto", "cards", "table"]).optional()
|
|
27159
27174
|
}),
|
|
@@ -27162,9 +27177,9 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27162
27177
|
ResourceList: {
|
|
27163
27178
|
props: ce({
|
|
27164
27179
|
columns: tt(Vd),
|
|
27165
|
-
rows: tt(lt(
|
|
27166
|
-
rowKey:
|
|
27167
|
-
emptyText:
|
|
27180
|
+
rows: tt(lt(V(), ht())),
|
|
27181
|
+
rowKey: V().optional(),
|
|
27182
|
+
emptyText: V().optional(),
|
|
27168
27183
|
compact: Ce().optional(),
|
|
27169
27184
|
mobileView: Oe(["auto", "cards", "table"]).optional()
|
|
27170
27185
|
}),
|
|
@@ -27173,10 +27188,10 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27173
27188
|
},
|
|
27174
27189
|
CellText: {
|
|
27175
27190
|
props: ce({
|
|
27176
|
-
text:
|
|
27177
|
-
secondary:
|
|
27191
|
+
text: V(),
|
|
27192
|
+
secondary: V().optional(),
|
|
27178
27193
|
layout: Oe(["stacked", "inline"]).optional(),
|
|
27179
|
-
openLabel:
|
|
27194
|
+
openLabel: V().optional(),
|
|
27180
27195
|
openDisabled: Ce().optional(),
|
|
27181
27196
|
wrap: Ce().optional()
|
|
27182
27197
|
}),
|
|
@@ -27185,18 +27200,18 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27185
27200
|
},
|
|
27186
27201
|
CellStatus: {
|
|
27187
27202
|
props: ce({
|
|
27188
|
-
label:
|
|
27203
|
+
label: V(),
|
|
27189
27204
|
tone: Oe(["neutral", "info", "success", "warning", "danger"]).optional(),
|
|
27190
27205
|
progress: Yt().optional(),
|
|
27191
|
-
detail:
|
|
27192
|
-
description:
|
|
27206
|
+
detail: V().optional(),
|
|
27207
|
+
description: V().optional()
|
|
27193
27208
|
}),
|
|
27194
27209
|
description: "Task status: a toned dot and label, a bar while progress (0–100) is running, and a detail such as speed or a reason. description explains the status in a tooltip on the label (hover or keyboard focus)."
|
|
27195
27210
|
},
|
|
27196
27211
|
ListItem: {
|
|
27197
27212
|
props: ce({
|
|
27198
|
-
title:
|
|
27199
|
-
description:
|
|
27213
|
+
title: V().optional(),
|
|
27214
|
+
description: V().optional()
|
|
27200
27215
|
}),
|
|
27201
27216
|
slots: ["default", "actions"],
|
|
27202
27217
|
description: "One entry of a list (an extension, a tool, a rule): title, description, content and actions on the right. Consecutive entries are split by a hairline."
|
|
@@ -27207,7 +27222,7 @@ const sD = ["data-direction", "data-status"], lD = ["id", "for"], uD = {
|
|
|
27207
27222
|
description: "A field and the buttons acting on it on one line, such as a URL and its Install button. The first child takes the room left."
|
|
27208
27223
|
},
|
|
27209
27224
|
Loading: {
|
|
27210
|
-
props: ce({ text:
|
|
27225
|
+
props: ce({ text: V().optional() }),
|
|
27211
27226
|
description: "Centered loading state for a page or bounded region."
|
|
27212
27227
|
}
|
|
27213
27228
|
}, gD = nk(rk, {
|