@synopackageland/ui 0.19.5 → 0.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/components/composite/form/FormItem.vue.d.ts +2 -0
- package/dist/index.js +100 -93
- package/dist/json-preview/preview.js +840 -833
- package/dist/reka-runtime.json +1 -1
- package/docs/layout-rules.md +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Cs from "vue";
|
|
2
|
-
import { inject as Xe, computed as y, defineComponent as I, openBlock as d, createElementBlock as g, normalizeStyle as Ce, unref as i, normalizeClass as J, createElementVNode as B, ref as P, provide as Ye, onMounted as Be, onUpdated as On, createVNode as O, createCommentVNode as A, renderSlot as S, createBlock as $, useAttrs as In, watch as de, watchEffect as mt, onBeforeUpdate as Ep, onBeforeUnmount as ze, mergeProps as oe, shallowReactive as Uu, onScopeDispose as Rn, useSlots as Tt, createTextVNode as se, toDisplayString as N, shallowRef as It, shallowReadonly as sa, toValue as
|
|
3
|
-
import { EyeOff as zp, Eye as Fp, Minus as Co, ChevronDown as
|
|
2
|
+
import { inject as Xe, computed as y, defineComponent as I, openBlock as d, createElementBlock as g, normalizeStyle as Ce, unref as i, normalizeClass as J, createElementVNode as B, ref as P, provide as Ye, onMounted as Be, onUpdated as On, createVNode as O, createCommentVNode as A, renderSlot as S, createBlock as $, useAttrs as In, watch as de, watchEffect as mt, onBeforeUpdate as Ep, onBeforeUnmount as ze, mergeProps as oe, shallowReactive as Uu, onScopeDispose as Rn, useSlots as Tt, createTextVNode as se, toDisplayString as N, shallowRef as It, shallowReadonly as sa, toValue as it, getCurrentScope as ju, customRef as Tp, effectScope as Gu, getCurrentInstance as Ct, isRef as Vt, reactive as vt, toRefs as Ue, nextTick as qe, Fragment as re, toHandlerKey as Ap, camelize as Yu, triggerRef as Pp, toRef as Bp, onUnmounted as ht, h as Pt, Comment as Xu, cloneVNode as Dp, withCtx as _, withKeys as at, withDirectives as xt, vShow as ua, withModifiers as Ee, Teleport as Mn, normalizeProps as Ie, guardReactiveProps as Me, markRaw as qp, renderList as he, watchSyncEffect as Op, withMemo as Ui, watchPostEffect as Zu, mergeDefaults as Ju, resolveDynamicComponent as Le, toHandlers as Qu, toRaw as Ip, onBeforeMount as Rp, useId as lt, useTemplateRef as Oe, vModelText as ji, Transition as Mp, resolveComponent as No, Text as Lp, vModelSelect as Br, useModel as ed, mergeModels as ri, createSlots as Cn } from "vue";
|
|
3
|
+
import { EyeOff as zp, Eye as Fp, Minus as Co, ChevronDown as rt, Plus as So, Check as st, X as ut, ChevronRight as ct, CalendarDays as Vp, ChevronLeft as Ko, CircleAlert as Ln, TriangleAlert as Wo, CircleCheck as Gi, Info as Ua, File as ii, FileImage as Np, FileVideo as Kp, FileAudio as Wp, FileArchive as Hp, FileText as td, FileCode as Up, FolderOpen as Yi, Folder as Xi, Ellipsis as li, ChevronsLeft as jp, ChevronsRight as Gp, RefreshCw as $o, Filter as Yp, Search as Xp, Trash2 as Zp, CircleHelp as Jp, CircleQuestionMark as Qp, ArrowUp as ev, ArrowDown as tv, ListFilter as av, RotateCw as ad, Download as nd, ImageOff as nv, ChevronUp as Zi, Columns3 as ov, GripVertical as Ss, UploadCloud as rv, ClipboardPaste as $s, Scissors as iv, Copy as Ji, Pencil as lv, Lightbulb as sv, ChevronsUpDown as uv, Package as dv, ExternalLink as cv, PanelLeftOpen as fv, PanelLeftClose as pv, Menu as vv, ArrowUpRight as mv } from "@lucide/vue";
|
|
4
4
|
import { DateFormatter as Yt, createCalendar as hv, toCalendar as Es, CalendarDateTime as od, CalendarDate as rd, getLocalTimeZone as Qi, ZonedDateTime as gv, getDayOfWeek as el, startOfMonth as yv, endOfMonth as Ts, today as bv, isEqualMonth as As, isSameMonth as id, isSameDay as ja, isEqualDay as Sn, isToday as wv, parseDate as xv } from "@internationalized/date";
|
|
5
5
|
const Ps = ["en", "zh-TW", "zh-CN", "ja", "ko", "de", "fr", "es", "it"], tl = /* @__PURE__ */ Symbol("syno-pkg-land-ui:locale"), Bs = { enu: "en", cht: "zh-TW", chs: "zh-CN", jpn: "ja", krn: "ko", ger: "de", fre: "fr", spn: "es", ita: "it" };
|
|
6
6
|
function si(e) {
|
|
@@ -2802,14 +2802,14 @@ function Jv(e) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
function jo(e, ...a) {
|
|
2804
2804
|
const t = a.flat(), n = t[0];
|
|
2805
|
-
return Jv(() => Object.fromEntries(typeof n == "function" ? Object.entries(Ue(e)).filter(([o, r]) => !n(
|
|
2805
|
+
return Jv(() => Object.fromEntries(typeof n == "function" ? Object.entries(Ue(e)).filter(([o, r]) => !n(it(r), o)) : Object.entries(Ue(e)).filter((o) => !t.includes(o[0]))));
|
|
2806
2806
|
}
|
|
2807
2807
|
function ol(e, a = 1e4) {
|
|
2808
2808
|
return Tp((t, n) => {
|
|
2809
|
-
let o =
|
|
2809
|
+
let o = it(e), r;
|
|
2810
2810
|
const l = () => setTimeout(() => {
|
|
2811
|
-
o =
|
|
2812
|
-
},
|
|
2811
|
+
o = it(e), n();
|
|
2812
|
+
}, it(a));
|
|
2813
2813
|
return Pa(() => {
|
|
2814
2814
|
clearTimeout(r);
|
|
2815
2815
|
}), {
|
|
@@ -2837,7 +2837,7 @@ function rl(e, a, t = {}) {
|
|
|
2837
2837
|
function c(...f) {
|
|
2838
2838
|
o && e(), s(), r.value = !0, l = setTimeout(() => {
|
|
2839
2839
|
r.value = !1, l = void 0, e(...f);
|
|
2840
|
-
},
|
|
2840
|
+
}, it(a));
|
|
2841
2841
|
}
|
|
2842
2842
|
return n && (r.value = !0, kt && c()), Pa(u), {
|
|
2843
2843
|
isPending: sa(r),
|
|
@@ -2861,21 +2861,21 @@ function tm(e, a, t) {
|
|
|
2861
2861
|
const Fn = kt ? window : void 0;
|
|
2862
2862
|
function Bt(e) {
|
|
2863
2863
|
var a;
|
|
2864
|
-
const t =
|
|
2864
|
+
const t = it(e);
|
|
2865
2865
|
return (a = t?.$el) !== null && a !== void 0 ? a : t;
|
|
2866
2866
|
}
|
|
2867
2867
|
function Nt(...e) {
|
|
2868
2868
|
const a = (n, o, r, l) => (n.addEventListener(o, r, l), () => n.removeEventListener(o, r, l)), t = y(() => {
|
|
2869
|
-
const n = qr(
|
|
2869
|
+
const n = qr(it(e[0])).filter((o) => o != null);
|
|
2870
2870
|
return n.every((o) => typeof o != "string") ? n : void 0;
|
|
2871
2871
|
});
|
|
2872
2872
|
return tm(() => {
|
|
2873
2873
|
var n, o;
|
|
2874
2874
|
return [
|
|
2875
2875
|
(n = (o = t.value) === null || o === void 0 ? void 0 : o.map((r) => Bt(r))) !== null && n !== void 0 ? n : [Fn].filter((r) => r != null),
|
|
2876
|
-
qr(
|
|
2876
|
+
qr(it(t.value ? e[1] : e[0])),
|
|
2877
2877
|
qr(i(t.value ? e[2] : e[1])),
|
|
2878
|
-
|
|
2878
|
+
it(t.value ? e[3] : e[2])
|
|
2879
2879
|
];
|
|
2880
2880
|
}, ([n, o, r, l], s, u) => {
|
|
2881
2881
|
if (!n?.length || !o?.length || !r?.length) return;
|
|
@@ -2905,12 +2905,12 @@ function ll(...e) {
|
|
|
2905
2905
|
e.length === 3 ? (a = e[0], t = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, t = e[0], n = e[1]) : (a = e[0], t = e[1]) : (a = !0, t = e[0]);
|
|
2906
2906
|
const { target: o = Fn, eventName: r = "keydown", passive: l = !1, dedupe: s = !1 } = n, u = nm(a);
|
|
2907
2907
|
return Nt(o, r, (f) => {
|
|
2908
|
-
f.repeat &&
|
|
2908
|
+
f.repeat && it(s) || u(f) && t(f);
|
|
2909
2909
|
}, l);
|
|
2910
2910
|
}
|
|
2911
2911
|
function om(e, a = {}) {
|
|
2912
2912
|
const { immediate: t = !0, fpsLimit: n = null, window: o = Fn, once: r = !1 } = a, l = It(!1), s = y(() => {
|
|
2913
|
-
const m =
|
|
2913
|
+
const m = it(n);
|
|
2914
2914
|
return m ? 1e3 / m : null;
|
|
2915
2915
|
});
|
|
2916
2916
|
let u = 0, c = null;
|
|
@@ -2952,7 +2952,7 @@ function im(e, a, t = {}) {
|
|
|
2952
2952
|
const l = /* @__PURE__ */ am(() => n && "ResizeObserver" in n), s = () => {
|
|
2953
2953
|
r && (r.disconnect(), r = void 0);
|
|
2954
2954
|
}, u = de(y(() => {
|
|
2955
|
-
const f =
|
|
2955
|
+
const f = it(e);
|
|
2956
2956
|
return Array.isArray(f) ? f.map((p) => Bt(p)) : [Bt(f)];
|
|
2957
2957
|
}), (f) => {
|
|
2958
2958
|
if (s(), l.value && n) {
|
|
@@ -3076,7 +3076,7 @@ var um = /* @__PURE__ */ I({
|
|
|
3076
3076
|
}), (s, u) => S(s.$slots, "default");
|
|
3077
3077
|
}
|
|
3078
3078
|
}), hd = um;
|
|
3079
|
-
const
|
|
3079
|
+
const ot = /* @__PURE__ */ vt({
|
|
3080
3080
|
layersRoot: /* @__PURE__ */ new Set(),
|
|
3081
3081
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3082
3082
|
originalBodyPointerEvents: void 0,
|
|
@@ -3358,7 +3358,7 @@ const yd = mm(), hm = /* @__PURE__ */ vd(() => {
|
|
|
3358
3358
|
const e = P(/* @__PURE__ */ new Map());
|
|
3359
3359
|
let a;
|
|
3360
3360
|
const t = (s, u, c = s.getPropertyValue(u)) => {
|
|
3361
|
-
const f = u === "pointer-events" &&
|
|
3361
|
+
const f = u === "pointer-events" && ot.layersWithOutsidePointerEventsDisabled.size > 0 ? ot.originalBodyPointerEventsPriority ?? "" : s.getPropertyPriority(u);
|
|
3362
3362
|
return () => s.setProperty(u, c, f);
|
|
3363
3363
|
}, n = y(() => {
|
|
3364
3364
|
for (const s of e.value.values()) if (s) return !0;
|
|
@@ -3374,9 +3374,9 @@ const yd = mm(), hm = /* @__PURE__ */ vd(() => {
|
|
|
3374
3374
|
u && l();
|
|
3375
3375
|
return;
|
|
3376
3376
|
}
|
|
3377
|
-
const c = document.body.style, f = t(c, "overflow"), p = t(c, "padding-right"), v = t(c, "margin-right"), m = t(document.documentElement.style, "--scrollbar-width"), h = t(c, "pointer-events",
|
|
3377
|
+
const c = document.body.style, f = t(c, "overflow"), p = t(c, "padding-right"), v = t(c, "margin-right"), m = t(document.documentElement.style, "--scrollbar-width"), h = t(c, "pointer-events", ot.layersWithOutsidePointerEventsDisabled.size > 0 ? ot.originalBodyPointerEvents ?? "" : c.pointerEvents);
|
|
3378
3378
|
a = () => {
|
|
3379
|
-
p(), v(),
|
|
3379
|
+
p(), v(), ot.layersWithOutsidePointerEventsDisabled.size === 0 && h(), m(), f();
|
|
3380
3380
|
};
|
|
3381
3381
|
const w = window.innerWidth - document.documentElement.clientWidth, b = {
|
|
3382
3382
|
padding: w,
|
|
@@ -3719,7 +3719,7 @@ function Ls() {
|
|
|
3719
3719
|
return e.setAttribute("data-reka-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3720
3720
|
}
|
|
3721
3721
|
function ta(e) {
|
|
3722
|
-
return y(() =>
|
|
3722
|
+
return y(() => it(e) ? !!Bt(e)?.closest("form") : !0);
|
|
3723
3723
|
}
|
|
3724
3724
|
function ye() {
|
|
3725
3725
|
const e = Ct(), a = P(), t = y(() => n());
|
|
@@ -4895,7 +4895,7 @@ function bh(e, a, t = !0) {
|
|
|
4895
4895
|
const n = a?.value?.ownerDocument ?? globalThis?.document, o = P(!1), r = P(() => {
|
|
4896
4896
|
});
|
|
4897
4897
|
return mt((l) => {
|
|
4898
|
-
if (!kt || !
|
|
4898
|
+
if (!kt || !it(t)) return;
|
|
4899
4899
|
const s = async (c) => {
|
|
4900
4900
|
const f = c.target;
|
|
4901
4901
|
if (!(!a?.value || !f)) {
|
|
@@ -4919,13 +4919,13 @@ function bh(e, a, t = !0) {
|
|
|
4919
4919
|
window.clearTimeout(u), n.removeEventListener("pointerdown", s), n.removeEventListener("click", r.value);
|
|
4920
4920
|
});
|
|
4921
4921
|
}), { onPointerDownCapture: () => {
|
|
4922
|
-
|
|
4922
|
+
it(t) && (o.value = !0);
|
|
4923
4923
|
} };
|
|
4924
4924
|
}
|
|
4925
4925
|
function wh(e, a, t = !0) {
|
|
4926
4926
|
const n = a?.value?.ownerDocument ?? globalThis?.document, o = P(!1);
|
|
4927
4927
|
return mt((r) => {
|
|
4928
|
-
if (!kt || !
|
|
4928
|
+
if (!kt || !it(t)) return;
|
|
4929
4929
|
const l = async (s) => {
|
|
4930
4930
|
if (!a?.value) return;
|
|
4931
4931
|
await qe(), await qe();
|
|
@@ -4935,10 +4935,10 @@ function wh(e, a, t = !0) {
|
|
|
4935
4935
|
n.addEventListener("focusin", l), r(() => n.removeEventListener("focusin", l));
|
|
4936
4936
|
}), {
|
|
4937
4937
|
onFocusCapture: () => {
|
|
4938
|
-
|
|
4938
|
+
it(t) && (o.value = !0);
|
|
4939
4939
|
},
|
|
4940
4940
|
onBlurCapture: () => {
|
|
4941
|
-
|
|
4941
|
+
it(t) && (o.value = !1);
|
|
4942
4942
|
}
|
|
4943
4943
|
};
|
|
4944
4944
|
}
|
|
@@ -4976,14 +4976,14 @@ var xh = /* @__PURE__ */ I({
|
|
|
4976
4976
|
if (l)
|
|
4977
4977
|
return l.layer(r, () => t.present, () => t.disableOutsidePointerEvents, n), (h) => Pt(_e, { ref: o, as: t.as, asChild: t.asChild, "data-dismissable-layer": "" }, h.$slots);
|
|
4978
4978
|
t.present && Ao(), cm(r, () => t.present);
|
|
4979
|
-
const s = y(() => r.value?.ownerDocument ?? globalThis.document), u = y(() =>
|
|
4980
|
-
const h = Array.from(u.value), [w] = [...
|
|
4979
|
+
const s = y(() => r.value?.ownerDocument ?? globalThis.document), u = y(() => ot.layersRoot), c = y(() => r.value ? Array.from(u.value).indexOf(r.value) : -1), f = y(() => ot.layersWithOutsidePointerEventsDisabled.size > 0), p = y(() => {
|
|
4980
|
+
const h = Array.from(u.value), [w] = [...ot.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(w);
|
|
4981
4981
|
return c.value >= b;
|
|
4982
4982
|
}), v = bh(async (h) => {
|
|
4983
|
-
const w = [...
|
|
4983
|
+
const w = [...ot.branches].some((b) => b?.contains(h.target));
|
|
4984
4984
|
!t.present || !p.value || w || (n("pointerDownOutside", h), n("interactOutside", h), await qe(), h.defaultPrevented || n("dismiss"));
|
|
4985
4985
|
}, r, () => t.present), m = wh((h) => {
|
|
4986
|
-
const w = [...
|
|
4986
|
+
const w = [...ot.branches].some((b) => b?.contains(h.target));
|
|
4987
4987
|
!t.present || w || (n("focusOutside", h), n("interactOutside", h), h.defaultPrevented || n("dismiss"));
|
|
4988
4988
|
}, r);
|
|
4989
4989
|
return ll("Escape", (h) => {
|
|
@@ -4993,8 +4993,8 @@ var xh = /* @__PURE__ */ I({
|
|
|
4993
4993
|
() => t.disableOutsidePointerEvents,
|
|
4994
4994
|
() => t.present
|
|
4995
4995
|
], ([h, w, b], x, C) => {
|
|
4996
|
-
!h || !b || w && (
|
|
4997
|
-
|
|
4996
|
+
!h || !b || w && (ot.layersWithOutsidePointerEventsDisabled.size === 0 && (ot.originalBodyPointerEventsPriority = s.value.body.style.getPropertyPriority("pointer-events"), ot.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), ot.layersWithOutsidePointerEventsDisabled.add(h), C(() => {
|
|
4997
|
+
ot.layersWithOutsidePointerEventsDisabled.delete(h), ot.layersWithOutsidePointerEventsDisabled.size === 0 && !Ga(ot.originalBodyPointerEvents) && s.value.body.style.setProperty("pointer-events", ot.originalBodyPointerEvents, ot.originalBodyPointerEventsPriority ?? "");
|
|
4998
4998
|
}));
|
|
4999
4999
|
}, { immediate: !0 }), de([r, () => t.present], ([h, w], b, x) => {
|
|
5000
5000
|
!h || !w || (u.value.add(h), x(() => {
|
|
@@ -5002,7 +5002,7 @@ var xh = /* @__PURE__ */ I({
|
|
|
5002
5002
|
}));
|
|
5003
5003
|
}, { immediate: !0 }), mt((h) => {
|
|
5004
5004
|
h(() => {
|
|
5005
|
-
r.value && (u.value.delete(r.value),
|
|
5005
|
+
r.value && (u.value.delete(r.value), ot.layersWithOutsidePointerEventsDisabled.delete(r.value));
|
|
5006
5006
|
});
|
|
5007
5007
|
}), (h, w) => (d(), $(i(_e), {
|
|
5008
5008
|
ref: i(o),
|
|
@@ -5043,9 +5043,9 @@ var xh = /* @__PURE__ */ I({
|
|
|
5043
5043
|
return o.branch(n), (l) => Pt(_e, { ref: t, ...a }, l.$slots);
|
|
5044
5044
|
let r = null;
|
|
5045
5045
|
return Be(() => {
|
|
5046
|
-
r = n.value, r &&
|
|
5046
|
+
r = n.value, r && ot.branches.add(r);
|
|
5047
5047
|
}), ht(() => {
|
|
5048
|
-
r && (
|
|
5048
|
+
r && (ot.branches.delete(r), r = null);
|
|
5049
5049
|
}), (l, s) => (d(), $(i(_e), oe({ ref: i(t) }, a), {
|
|
5050
5050
|
default: _(() => [S(l.$slots, "default")]),
|
|
5051
5051
|
_: 3
|
|
@@ -18945,7 +18945,7 @@ const fk = ["disabled", "aria-label"], pk = { class: "relative min-w-0 flex-1" }
|
|
|
18945
18945
|
},
|
|
18946
18946
|
emits: ["update:modelValue"],
|
|
18947
18947
|
setup(e, { emit: a }) {
|
|
18948
|
-
const t = We(), n = e, o = Mt(() => n.disabled), r = a, l =
|
|
18948
|
+
const t = We(), n = e, o = Mt(() => n.disabled), r = a, l = lt(), s = y(() => Ol(n.min)), u = y(() => Il(n.max)), c = y(() => n.min !== void 0 && Number.isFinite(s.value)), f = y(() => n.max !== void 0 && Number.isFinite(u.value)), p = y(() => ({
|
|
18949
18949
|
min: n.min,
|
|
18950
18950
|
max: n.max,
|
|
18951
18951
|
step: n.step,
|
|
@@ -19067,7 +19067,7 @@ const fk = ["disabled", "aria-label"], pk = { class: "relative min-w-0 flex-1" }
|
|
|
19067
19067
|
"aria-expanded": b.value,
|
|
19068
19068
|
"aria-label": Y.value.presets
|
|
19069
19069
|
}, [
|
|
19070
|
-
O(i(
|
|
19070
|
+
O(i(rt), {
|
|
19071
19071
|
class: "size-3",
|
|
19072
19072
|
"aria-hidden": "true"
|
|
19073
19073
|
})
|
|
@@ -19432,7 +19432,7 @@ const fk = ["disabled", "aria-label"], pk = { class: "relative min-w-0 flex-1" }
|
|
|
19432
19432
|
const Pe = u(ce);
|
|
19433
19433
|
return Pe ? bi(Pe).toUpperCase() : void 0;
|
|
19434
19434
|
}
|
|
19435
|
-
const p =
|
|
19435
|
+
const p = lt(), v = P(!1), m = P(0), h = `${p}-palette`, w = (ce) => `${p}-swatch-${ce}`, b = y(() => u(r.modelValue)), x = y(() => b.value ? bi(b.value).toUpperCase() : ""), C = y(() => b.value ? s((b.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = y(
|
|
19436
19436
|
() => b.value ? eu({ ...b.value, alpha: C.value }, "rgb") : "transparent"
|
|
19437
19437
|
), k = y(() => [r.ariaLabel, x.value].filter(Boolean).join(", ") || be.value.choose);
|
|
19438
19438
|
function T(ce) {
|
|
@@ -19537,7 +19537,7 @@ const fk = ["disabled", "aria-label"], pk = { class: "relative min-w-0 flex-1" }
|
|
|
19537
19537
|
style: Ce({ backgroundColor: E.value })
|
|
19538
19538
|
}, null, 4)
|
|
19539
19539
|
], 4),
|
|
19540
|
-
O(i(
|
|
19540
|
+
O(i(rt), {
|
|
19541
19541
|
class: "size-3 text-[var(--ui-text-muted)]",
|
|
19542
19542
|
"aria-hidden": "true"
|
|
19543
19543
|
})
|
|
@@ -19644,7 +19644,7 @@ const fk = ["disabled", "aria-label"], pk = { class: "relative min-w-0 flex-1" }
|
|
|
19644
19644
|
},
|
|
19645
19645
|
emits: ["update:modelValue"],
|
|
19646
19646
|
setup(e, { emit: a }) {
|
|
19647
|
-
const t = e, n = Mt(() => t.disabled), o = a, { controlAttrs: r, wrapperAttrs: l, changed: s } = gt({ value: () => t.modelValue, disabled: () => n.value }), u =
|
|
19647
|
+
const t = e, n = Mt(() => t.disabled), o = a, { controlAttrs: r, wrapperAttrs: l, changed: s } = gt({ value: () => t.modelValue, disabled: () => n.value }), u = lt(), c = y(() => r().id ?? u), f = y(() => !!(t.label || t.description));
|
|
19648
19648
|
return (p, v) => (d(), g("span", oe(i(l)(), {
|
|
19649
19649
|
class: ["inline-flex max-w-full items-start gap-[var(--ui-choice-box-gap)] align-top [@media(pointer:coarse)]:min-h-8 text-[13px] text-[var(--ui-text)]", [i(n) ? "cursor-default" : "cursor-pointer", !t.description && "[@media(pointer:coarse)]:items-center"]],
|
|
19650
19650
|
"data-ui-checkbox": "",
|
|
@@ -20005,7 +20005,7 @@ const Yk = { key: 0 }, Xk = { key: 1 }, Zk = { key: 2 }, Jk = {
|
|
|
20005
20005
|
}, 8, ["placeholder"]),
|
|
20006
20006
|
O(i(O_), { class: "flex shrink-0 items-center text-[var(--ui-text-muted)]" }, {
|
|
20007
20007
|
default: _(() => [
|
|
20008
|
-
O(i(
|
|
20008
|
+
O(i(rt), {
|
|
20009
20009
|
class: "size-4",
|
|
20010
20010
|
"aria-hidden": "true"
|
|
20011
20011
|
})
|
|
@@ -20608,7 +20608,7 @@ const Zc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
|
|
|
20608
20608
|
}, ["stop"])),
|
|
20609
20609
|
onClick: Ee(ne, ["stop"])
|
|
20610
20610
|
}, [
|
|
20611
|
-
O(i(
|
|
20611
|
+
O(i(rt), {
|
|
20612
20612
|
class: "size-4",
|
|
20613
20613
|
"aria-hidden": "true"
|
|
20614
20614
|
})
|
|
@@ -22838,7 +22838,7 @@ const a$ = ["disabled", "readonly", "placeholder", "onKeydown"], n$ = ["disabled
|
|
|
22838
22838
|
{ number: !0 }
|
|
22839
22839
|
]
|
|
22840
22840
|
]),
|
|
22841
|
-
O(i(
|
|
22841
|
+
O(i(rt), {
|
|
22842
22842
|
class: "pointer-events-none absolute right-1.5 size-3.5 text-[var(--ui-text-muted)]",
|
|
22843
22843
|
"aria-hidden": "true"
|
|
22844
22844
|
})
|
|
@@ -22862,7 +22862,7 @@ const a$ = ["disabled", "readonly", "placeholder", "onKeydown"], n$ = ["disabled
|
|
|
22862
22862
|
{ number: !0 }
|
|
22863
22863
|
]
|
|
22864
22864
|
]),
|
|
22865
|
-
O(i(
|
|
22865
|
+
O(i(rt), {
|
|
22866
22866
|
class: "pointer-events-none absolute right-1.5 size-3.5 text-[var(--ui-text-muted)]",
|
|
22867
22867
|
"aria-hidden": "true"
|
|
22868
22868
|
})
|
|
@@ -22878,7 +22878,7 @@ const a$ = ["disabled", "readonly", "placeholder", "onKeydown"], n$ = ["disabled
|
|
|
22878
22878
|
], 8, y$), [
|
|
22879
22879
|
[Br, q.value]
|
|
22880
22880
|
]),
|
|
22881
|
-
O(i(
|
|
22881
|
+
O(i(rt), {
|
|
22882
22882
|
class: "pointer-events-none absolute right-1.5 size-3.5 text-[var(--ui-text-muted)]",
|
|
22883
22883
|
"aria-hidden": "true"
|
|
22884
22884
|
})
|
|
@@ -23223,7 +23223,7 @@ const S$ = ["data-overflow-start", "data-overflow-end"], tF = /* @__PURE__ */ I(
|
|
|
23223
23223
|
default: _(() => [
|
|
23224
23224
|
O(i(ph), { class: "group -mx-1 flex min-h-10 w-[calc(100%+0.5rem)] items-center gap-2 rounded-[var(--ui-radius-sm)] px-1 py-2 text-left text-[13px] font-semibold text-[var(--ui-text)] outline-none hover:text-[var(--ui-primary-active)] active:bg-[var(--ui-control-bg-active)] focus-visible:shadow-[var(--ui-shadow-focus)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40 data-[disabled]:hover:text-[var(--ui-text)] data-[disabled]:active:bg-transparent" }, {
|
|
23225
23225
|
default: _(() => [
|
|
23226
|
-
O(i(
|
|
23226
|
+
O(i(rt), {
|
|
23227
23227
|
class: "size-3.5 shrink-0 text-[var(--ui-primary)] transition-transform group-data-[state=open]:rotate-180",
|
|
23228
23228
|
"aria-hidden": "true"
|
|
23229
23229
|
}),
|
|
@@ -23365,12 +23365,12 @@ const Wl = /* @__PURE__ */ I({
|
|
|
23365
23365
|
}
|
|
23366
23366
|
});
|
|
23367
23367
|
function rF(e) {
|
|
23368
|
-
const a = P(null), t = y(() =>
|
|
23368
|
+
const a = P(null), t = y(() => it(e.disabled) ?? !1), n = y(() => ({
|
|
23369
23369
|
role: "button",
|
|
23370
23370
|
tabindex: t.value ? -1 : 0,
|
|
23371
23371
|
"aria-disabled": t.value ? !0 : void 0,
|
|
23372
|
-
"aria-label":
|
|
23373
|
-
"aria-labelledby":
|
|
23372
|
+
"aria-label": it(e.ariaLabel),
|
|
23373
|
+
"aria-labelledby": it(e.ariaLabelledby),
|
|
23374
23374
|
"aria-hidden": !1
|
|
23375
23375
|
}));
|
|
23376
23376
|
function o(s) {
|
|
@@ -24046,9 +24046,9 @@ const fF = /* @__PURE__ */ Hl(iE, [["render", sE]]), pF = /* @__PURE__ */ I({
|
|
|
24046
24046
|
const Ae = xe?.block ?? "nearest", Ve = ve.offsetTop, Je = Ve + ve.offsetHeight, ra = ue.scrollTop, $e = ra + ue.clientHeight;
|
|
24047
24047
|
let Ne = ra;
|
|
24048
24048
|
Ae === "start" ? Ne = Ve : Ae === "end" ? Ne = Je - ue.clientHeight : Ve < ra ? Ne = Ve : Je > $e && (Ne = Je - ue.clientHeight);
|
|
24049
|
-
const
|
|
24049
|
+
const nt = ve.offsetLeft, dt = nt + ve.offsetWidth, ga = ue.scrollLeft, Oa = ga + ue.clientWidth;
|
|
24050
24050
|
let Ia = ga;
|
|
24051
|
-
|
|
24051
|
+
nt < ga ? Ia = nt : dt > Oa && (Ia = dt - ue.clientWidth), Y({ left: Ia, top: Ne, behavior: xe?.behavior });
|
|
24052
24052
|
}
|
|
24053
24053
|
function ie() {
|
|
24054
24054
|
p.value = !0;
|
|
@@ -24313,7 +24313,7 @@ const fF = /* @__PURE__ */ Hl(iE, [["render", sE]]), pF = /* @__PURE__ */ I({
|
|
|
24313
24313
|
class: "inline-flex max-w-[var(--ui-breadcrumb-item-max-width,180px)] min-w-0 items-center gap-1 truncate rounded-[var(--ui-radius-sm)] px-1.5 py-0.5 text-[length:var(--ui-font-size)] font-medium text-[var(--ui-text)] outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] hover:bg-[var(--ui-surface-hover)] active:bg-[var(--ui-surface-selected)] focus-visible:shadow-[var(--ui-shadow-focus)]"
|
|
24314
24314
|
}, [
|
|
24315
24315
|
B("span", kE, N(e.display), 1),
|
|
24316
|
-
e.hasMenu ? (d(), $(i(
|
|
24316
|
+
e.hasMenu ? (d(), $(i(rt), {
|
|
24317
24317
|
key: 0,
|
|
24318
24318
|
class: "size-3 shrink-0 text-[var(--ui-text-muted)]",
|
|
24319
24319
|
"aria-hidden": "true"
|
|
@@ -25532,7 +25532,7 @@ const kT = ["data-collapsible", "aria-busy"], CT = {
|
|
|
25532
25532
|
},
|
|
25533
25533
|
emits: ["update:open"],
|
|
25534
25534
|
setup(e, { emit: a }) {
|
|
25535
|
-
const t = e, n = a, o =
|
|
25535
|
+
const t = e, n = a, o = lt(), { value: r, toggle: l } = yr(
|
|
25536
25536
|
() => t.open,
|
|
25537
25537
|
t.defaultOpen,
|
|
25538
25538
|
(f) => n("update:open", f)
|
|
@@ -25552,7 +25552,7 @@ const kT = ["data-collapsible", "aria-busy"], CT = {
|
|
|
25552
25552
|
onClick: p[0] || (p[0] = //@ts-ignore
|
|
25553
25553
|
(...v) => i(l) && i(l)(...v))
|
|
25554
25554
|
}, [
|
|
25555
|
-
O(i(
|
|
25555
|
+
O(i(rt), {
|
|
25556
25556
|
class: J(["size-4 shrink-0 transition-transform", !i(r) && "-rotate-90"]),
|
|
25557
25557
|
"aria-hidden": "true"
|
|
25558
25558
|
}, null, 8, ["class"]),
|
|
@@ -25924,7 +25924,7 @@ const IT = {
|
|
|
25924
25924
|
}),
|
|
25925
25925
|
emits: /* @__PURE__ */ ri(["close"], ["update:expanded"]),
|
|
25926
25926
|
setup(e, { emit: a }) {
|
|
25927
|
-
const n = Ge(e, { closeLabel: "Close", moreLabel: "Learn more", lessLabel: "Show less" }), o = a, r = ed(e, "expanded"), l = y(() => ({ info: Ua, success: Gi, warning: Wo, danger: Ln })[n.tone]), s =
|
|
25927
|
+
const n = Ge(e, { closeLabel: "Close", moreLabel: "Learn more", lessLabel: "Show less" }), o = a, r = ed(e, "expanded"), l = y(() => ({ info: Ua, success: Gi, warning: Wo, danger: Ln })[n.tone]), s = lt(), u = Oe("content"), c = P(""), f = y(() => [n.tone, n.dismissKey ?? [n.title, n.code, c.value].join("\0")].join("\0")), p = P(null), v = y(() => n.variant === "hint"), m = y(() => !v.value && n.dismissible && p.value === f.value);
|
|
25928
25928
|
let h;
|
|
25929
25929
|
function w() {
|
|
25930
25930
|
c.value = u.value?.textContent?.replace(/\s+/g, " ").trim() ?? "";
|
|
@@ -26006,7 +26006,7 @@ const IT = {
|
|
|
26006
26006
|
onClick: C[0] || (C[0] = (E) => r.value = !r.value)
|
|
26007
26007
|
}, [
|
|
26008
26008
|
se(N(r.value ? i(n).lessLabel : i(n).moreLabel) + " ", 1),
|
|
26009
|
-
O(i(
|
|
26009
|
+
O(i(rt), {
|
|
26010
26010
|
class: J(["size-3.5 transition-transform duration-[var(--ui-motion-fast)]", r.value && "rotate-180"]),
|
|
26011
26011
|
"aria-hidden": "true"
|
|
26012
26012
|
}, null, 8, ["class"])
|
|
@@ -27294,7 +27294,7 @@ const VA = ["data-ui-data-view", "data-fill"], NA = {
|
|
|
27294
27294
|
}),
|
|
27295
27295
|
emits: ["update:expanded"],
|
|
27296
27296
|
setup(e) {
|
|
27297
|
-
const t = Ge(e, { showLabel: "Show details", hideLabel: "Hide details" }), n = ed(e, "expanded"), o =
|
|
27297
|
+
const t = Ge(e, { showLabel: "Show details", hideLabel: "Hide details" }), n = ed(e, "expanded"), o = lt(), r = y(() => n.value);
|
|
27298
27298
|
return (l, s) => (d(), g("div", {
|
|
27299
27299
|
class: "ui-timeline-row",
|
|
27300
27300
|
"data-tone": e.tone,
|
|
@@ -27355,7 +27355,7 @@ const VA = ["data-ui-data-view", "data-fill"], NA = {
|
|
|
27355
27355
|
onClick: s[0] || (s[0] = (u) => n.value = !r.value)
|
|
27356
27356
|
}, {
|
|
27357
27357
|
default: _(() => [
|
|
27358
|
-
O(i(
|
|
27358
|
+
O(i(rt), {
|
|
27359
27359
|
class: J(["size-4 transition-transform duration-[var(--ui-motion-fast)]", r.value && "rotate-180"])
|
|
27360
27360
|
}, null, 8, ["class"])
|
|
27361
27361
|
]),
|
|
@@ -27445,7 +27445,7 @@ const VA = ["data-ui-data-view", "data-fill"], NA = {
|
|
|
27445
27445
|
Be(() => {
|
|
27446
27446
|
r || typeof window > "u" || typeof window.matchMedia != "function" || (s = window.matchMedia(`(max-width: ${Gl}px)`), u(), s.addEventListener?.("change", u));
|
|
27447
27447
|
}), ze(() => s?.removeEventListener?.("change", u));
|
|
27448
|
-
const c = y(() => n.presentation !== "auto" ? n.presentation === "sheet" : r ? r.value === "mobile" : l.value), f = P(!1), p = P(Object.fromEntries(n.groups.map((x) => [x.key, !!x.collapsed]))), v =
|
|
27448
|
+
const c = y(() => n.presentation !== "auto" ? n.presentation === "sheet" : r ? r.value === "mobile" : l.value), f = P(!1), p = P(Object.fromEntries(n.groups.map((x) => [x.key, !!x.collapsed]))), v = lt(), m = (x) => n.modelValue[x] ?? [], h = y(() => Object.values(n.modelValue).reduce((x, C) => x + C.length, 0));
|
|
27449
27449
|
function w(x, C) {
|
|
27450
27450
|
const E = m(x.key), k = E.includes(C), T = x.multiple ? k ? E.filter((L) => L !== C) : [...E, C] : k ? [] : [C], R = { ...n.modelValue };
|
|
27451
27451
|
T.length ? R[x.key] = T : delete R[x.key], o("update:modelValue", R);
|
|
@@ -27562,7 +27562,7 @@ const VA = ["data-ui-data-view", "data-fill"], NA = {
|
|
|
27562
27562
|
}, [
|
|
27563
27563
|
B("span", p2, N(E.label), 1),
|
|
27564
27564
|
m(E.key).length ? (d(), g("span", v2, N(m(E.key).length), 1)) : A("", !0),
|
|
27565
|
-
O(i(
|
|
27565
|
+
O(i(rt), {
|
|
27566
27566
|
class: J(["size-3.5 shrink-0 transition-transform duration-[var(--ui-motion-fast)]", p.value[E.key] && "-rotate-90"]),
|
|
27567
27567
|
"aria-hidden": "true"
|
|
27568
27568
|
}, null, 8, ["class"])
|
|
@@ -27628,7 +27628,7 @@ const VA = ["data-ui-data-view", "data-fill"], NA = {
|
|
|
27628
27628
|
de(() => n.modelValue, (z) => {
|
|
27629
27629
|
l.value = [...z];
|
|
27630
27630
|
});
|
|
27631
|
-
const s = P(!1), u = P(""), c = P(0), f = Oe("root"), p = Oe("input"), v = Oe("readButton"), m =
|
|
27631
|
+
const s = P(!1), u = P(""), c = P(0), f = Oe("root"), p = Oe("input"), v = Oe("readButton"), m = lt(), h = y(() => {
|
|
27632
27632
|
const z = u.value.trim(), V = z.toLocaleLowerCase(), q = new Set(l.value.map((K) => K.toLocaleLowerCase())), F = n.options.filter((K) => !q.has(K.toLocaleLowerCase()) && K.toLocaleLowerCase().includes(V)).map((K) => ({ kind: "option", value: K })), M = q.has(V) || n.options.some((K) => K.toLocaleLowerCase() === V);
|
|
27633
27633
|
return z && n.allowCreate && !M ? [...F, { kind: "create", value: z }] : F;
|
|
27634
27634
|
});
|
|
@@ -28942,7 +28942,7 @@ const K2 = { class: "flex min-h-14 shrink-0 items-center gap-3 px-3 pt-[env(safe
|
|
|
28942
28942
|
onClick: b[2] || (b[2] = (x) => r.value = !r.value)
|
|
28943
28943
|
}, {
|
|
28944
28944
|
default: _(() => [
|
|
28945
|
-
O(i(
|
|
28945
|
+
O(i(rt), {
|
|
28946
28946
|
class: J(["size-4 transition-transform duration-[var(--ui-motion-fast)]", r.value && "rotate-180"]),
|
|
28947
28947
|
"aria-hidden": "true"
|
|
28948
28948
|
}, null, 8, ["class"])
|
|
@@ -29352,7 +29352,7 @@ const GB = ["data-fill"], YB = {
|
|
|
29352
29352
|
ue.value = G, r("update:expandedKeys", G);
|
|
29353
29353
|
}, Ne = () => {
|
|
29354
29354
|
ue.value = [], r("update:expandedKeys", []);
|
|
29355
|
-
},
|
|
29355
|
+
}, nt = () => {
|
|
29356
29356
|
for (const G of De.value ?? []) ge(G.id, !0);
|
|
29357
29357
|
}, dt = () => {
|
|
29358
29358
|
for (const G of De.value ?? []) ge(G.id, !1);
|
|
@@ -29586,7 +29586,7 @@ const GB = ["data-fill"], YB = {
|
|
|
29586
29586
|
collapseRow: ra,
|
|
29587
29587
|
expandAllRows: $e,
|
|
29588
29588
|
collapseAllRows: Ne,
|
|
29589
|
-
expandAllGroups:
|
|
29589
|
+
expandAllGroups: nt,
|
|
29590
29590
|
collapseAllGroups: dt,
|
|
29591
29591
|
moveRowUp: ls,
|
|
29592
29592
|
moveRowDown: ss,
|
|
@@ -29699,7 +29699,7 @@ const GB = ["data-fill"], YB = {
|
|
|
29699
29699
|
key: 0,
|
|
29700
29700
|
class: "size-3 shrink-0 text-[var(--ui-text)]",
|
|
29701
29701
|
"aria-hidden": "true"
|
|
29702
|
-
})) : (d(), $(i(
|
|
29702
|
+
})) : (d(), $(i(rt), {
|
|
29703
29703
|
key: 1,
|
|
29704
29704
|
class: "size-3 shrink-0 text-[var(--ui-text)]",
|
|
29705
29705
|
"aria-hidden": "true"
|
|
@@ -29786,7 +29786,7 @@ const GB = ["data-fill"], YB = {
|
|
|
29786
29786
|
class: "inline-flex max-w-full items-center gap-1 rounded-[var(--ui-radius-sm)] border-0 bg-transparent px-1 text-left text-[12px] font-bold text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[inset_0_0_0_1px_var(--ui-primary),inset_0_0_0_3px_var(--ui-focus-ring)]",
|
|
29787
29787
|
onClick: (we) => pe(Q.groupId)
|
|
29788
29788
|
}, [
|
|
29789
|
-
Q.expanded ? (d(), $(i(
|
|
29789
|
+
Q.expanded ? (d(), $(i(rt), {
|
|
29790
29790
|
key: 0,
|
|
29791
29791
|
class: "size-3.5 shrink-0",
|
|
29792
29792
|
"aria-hidden": "true"
|
|
@@ -32585,7 +32585,7 @@ const CV = Zq, Jq = ["aria-label", "data-ui-alignment"], Qq = ["data-notificatio
|
|
|
32585
32585
|
},
|
|
32586
32586
|
emits: ["update:expanded"],
|
|
32587
32587
|
setup(e, { emit: a }) {
|
|
32588
|
-
const t = We(), n = e, o = { start: "justify-start", end: "justify-end", between: "justify-between" }, r = a, l = Tt(), s =
|
|
32588
|
+
const t = We(), n = e, o = { start: "justify-start", end: "justify-end", between: "justify-between" }, r = a, l = Tt(), s = lt(), u = lt(), { value: c, toggle: f } = yr(
|
|
32589
32589
|
() => n.expanded,
|
|
32590
32590
|
!0,
|
|
32591
32591
|
(b) => r("update:expanded", b)
|
|
@@ -32635,7 +32635,7 @@ const CV = Zq, Jq = ["aria-label", "data-ui-alignment"], Qq = ["data-notificatio
|
|
|
32635
32635
|
onClick: x[0] || (x[0] = //@ts-ignore
|
|
32636
32636
|
(...C) => i(f) && i(f)(...C))
|
|
32637
32637
|
}, [
|
|
32638
|
-
O(i(
|
|
32638
|
+
O(i(rt), {
|
|
32639
32639
|
class: J(i(Re)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !i(c) && "-rotate-90")),
|
|
32640
32640
|
"aria-hidden": "true"
|
|
32641
32641
|
}, null, 8, ["class"])
|
|
@@ -32868,7 +32868,7 @@ const pO = ["draggable", "data-selected"], vO = {
|
|
|
32868
32868
|
},
|
|
32869
32869
|
emits: ["update:expanded", "select", "drag-start", "drag-over", "drop", "drag-end"],
|
|
32870
32870
|
setup(e, { emit: a }) {
|
|
32871
|
-
const t = e, n = a, o = Tt(), r =
|
|
32871
|
+
const t = e, n = a, o = Tt(), r = lt(), l = lt(), s = P(null), u = P(null), c = P(null), f = P(null), p = P(null), v = Bu(f), m = Bu(p);
|
|
32872
32872
|
function h(Y) {
|
|
32873
32873
|
if (Y !== void 0)
|
|
32874
32874
|
return typeof Y == "string" ? { text: Y, html: !1 } : { text: Y.text, html: Y.format === "html", tip: Y.tip };
|
|
@@ -33034,7 +33034,7 @@ const pO = ["draggable", "data-selected"], vO = {
|
|
|
33034
33034
|
onDblclick: Ee(H, ["stop"])
|
|
33035
33035
|
}, [
|
|
33036
33036
|
S(Y.$slots, "toggle-icon", {}, () => [
|
|
33037
|
-
O(i(
|
|
33037
|
+
O(i(rt), {
|
|
33038
33038
|
class: J(i(Re)("size-4 transition-transform duration-[var(--ui-motion-fast)]", i(L) && "rotate-180")),
|
|
33039
33039
|
"aria-hidden": "true"
|
|
33040
33040
|
}, null, 8, ["class"])
|
|
@@ -33061,7 +33061,7 @@ const pO = ["draggable", "data-selected"], vO = {
|
|
|
33061
33061
|
},
|
|
33062
33062
|
emits: ["update:collapsed", "collapsestatechange", "beforebodyenter", "afterbodyenter", "beforebodyleave", "afterbodyleave", "header-click", "header-dblclick"],
|
|
33063
33063
|
setup(e, { expose: a, emit: t }) {
|
|
33064
|
-
const n = e, o = t, r =
|
|
33064
|
+
const n = e, o = t, r = lt(), l = P(null), s = P(null), { value: u, set: c } = yr(
|
|
33065
33065
|
() => n.collapsed,
|
|
33066
33066
|
!1,
|
|
33067
33067
|
(x) => {
|
|
@@ -33368,7 +33368,7 @@ const zO = ["aria-rowcount", "aria-colcount"], FO = { role: "row" }, VO = ["aria
|
|
|
33368
33368
|
key: 0,
|
|
33369
33369
|
class: "size-3.5",
|
|
33370
33370
|
"aria-hidden": "true"
|
|
33371
|
-
})) : w(j) === "descending" ? (d(), $(i(
|
|
33371
|
+
})) : w(j) === "descending" ? (d(), $(i(rt), {
|
|
33372
33372
|
key: 1,
|
|
33373
33373
|
class: "size-3.5",
|
|
33374
33374
|
"aria-hidden": "true"
|
|
@@ -33553,7 +33553,7 @@ const zO = ["aria-rowcount", "aria-colcount"], FO = { role: "row" }, VO = ["aria
|
|
|
33553
33553
|
},
|
|
33554
33554
|
emits: ["settle"],
|
|
33555
33555
|
setup(e, { emit: a }) {
|
|
33556
|
-
const t = We(), n = e, o = a, r = P(""), l = P(!1), s = P(), u = P(), c = P(!1), f = P(), p =
|
|
33556
|
+
const t = We(), n = e, o = a, r = P(""), l = P(!1), s = P(), u = P(), c = P(!1), f = P(), p = lt(), v = lt(), m = y(() => n.options.prompt), h = y(() => n.kind === "prompt" || n.kind === "password"), w = y(() => n.kind === "progress" || n.kind === "wait"), b = y(() => m.value?.label ?? (n.kind === "password" ? t("Password:") : !1)), x = y(() => m.value?.type ?? (n.kind === "password" ? "password" : "text")), C = y(() => n.title ?? t("Confirm")), E = y(() => {
|
|
33557
33557
|
const W = n.options;
|
|
33558
33558
|
switch (n.kind) {
|
|
33559
33559
|
case "alert":
|
|
@@ -33913,7 +33913,7 @@ const yI = ["aria-label", "data-stepper", "data-framed", "data-fit", "data-short
|
|
|
33913
33913
|
},
|
|
33914
33914
|
emits: ["update:activeStepKey", "next-step", "previous-step", "finished", "cancel"],
|
|
33915
33915
|
setup(e, { expose: a, emit: t }) {
|
|
33916
|
-
const n = We(), r = Ge(e, { ariaLabel: "Setup wizard" }), l = t, s = P([]), u = P(!1), c = P(), f = P(), p =
|
|
33916
|
+
const n = We(), r = Ge(e, { ariaLabel: "Setup wizard" }), l = t, s = P([]), u = P(!1), c = P(), f = P(), p = lt(), v = lt();
|
|
33917
33917
|
de(() => r.activeStepKey, (ge) => {
|
|
33918
33918
|
ge !== void 0 && (c.value = ge);
|
|
33919
33919
|
}, { immediate: !0 });
|
|
@@ -34800,7 +34800,7 @@ const IR = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
34800
34800
|
let v = null;
|
|
34801
34801
|
const m = Gt(c), h = y(() => t.responsive === !1 ? "window" : xf(m.value, t.wideLayout));
|
|
34802
34802
|
Ye(Qn, h);
|
|
34803
|
-
const w = y(() => h.value === "mobile"), b = P(!1), x =
|
|
34803
|
+
const w = y(() => h.value === "mobile"), b = P(!1), x = lt(), C = P(!1);
|
|
34804
34804
|
Be(() => {
|
|
34805
34805
|
typeof requestAnimationFrame == "function" && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
34806
34806
|
C.value = !0;
|
|
@@ -35400,7 +35400,7 @@ const dM = /* @__PURE__ */ I({
|
|
|
35400
35400
|
"data-nav-badge": "",
|
|
35401
35401
|
class: J(Lu)
|
|
35402
35402
|
}, N(p.badge), 1)) : A("", !0),
|
|
35403
|
-
O(i(
|
|
35403
|
+
O(i(rt), {
|
|
35404
35404
|
"data-nav-chevron": "",
|
|
35405
35405
|
class: "size-3.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
35406
35406
|
"aria-hidden": "true"
|
|
@@ -35441,7 +35441,7 @@ const dM = /* @__PURE__ */ I({
|
|
|
35441
35441
|
},
|
|
35442
35442
|
emits: ["select"],
|
|
35443
35443
|
setup(e, { emit: a }) {
|
|
35444
|
-
const t = e, n = a, o = We(), r = Oe("root"), l = Oe("more"), s =
|
|
35444
|
+
const t = e, n = a, o = We(), r = Oe("root"), l = Oe("more"), s = lt(), u = P(1 / 0), c = y(() => t.groups.flatMap((C) => C.items)), f = y(() => c.value.slice(u.value)), p = y(() => ({ key: s, label: o("More"), children: f.value })), v = y(() => {
|
|
35445
35445
|
let C = 0;
|
|
35446
35446
|
return t.groups.map((E) => {
|
|
35447
35447
|
const k = E.items.map((T) => ({ item: T, index: C++ }));
|
|
@@ -35640,7 +35640,7 @@ const dM = /* @__PURE__ */ I({
|
|
|
35640
35640
|
class: "flex h-6 w-full items-center gap-1 border-0 bg-transparent px-[11px] text-left text-[12px] font-bold text-[var(--ui-text-secondary)] outline-none focus-visible:shadow-[var(--ui-shadow-focus)]",
|
|
35641
35641
|
onClick: (F) => v(z)
|
|
35642
35642
|
}, [
|
|
35643
|
-
O(i(
|
|
35643
|
+
O(i(rt), {
|
|
35644
35644
|
class: J(["size-3 shrink-0 transition-transform", !m(z) && "-rotate-90"]),
|
|
35645
35645
|
"aria-hidden": "true"
|
|
35646
35646
|
}, null, 8, ["class"]),
|
|
@@ -35856,7 +35856,7 @@ ${e.detail}` : e.name,
|
|
|
35856
35856
|
},
|
|
35857
35857
|
emits: ["update:modelValue"],
|
|
35858
35858
|
setup(e, { expose: a, emit: t }) {
|
|
35859
|
-
const n = e, o = t, r = We(), l = `ui-split-${
|
|
35859
|
+
const n = e, o = t, r = We(), l = `ui-split-${lt()}`, s = P(null), u = P(!1), c = P(0), f = [0.05, 0.95], p = (M) => Math.round(M * 1e4) / 1e4, v = y(() => n.storageKey ? `${n.storageKey}:${n.orientation}` : null);
|
|
35860
35860
|
function m() {
|
|
35861
35861
|
if (!v.value) return null;
|
|
35862
35862
|
try {
|
|
@@ -36540,7 +36540,7 @@ async function KL(e, a, t = {}) {
|
|
|
36540
36540
|
}
|
|
36541
36541
|
return null;
|
|
36542
36542
|
}
|
|
36543
|
-
const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
36543
|
+
const WL = ["data-direction", "data-inset", "data-status"], HL = ["id", "for"], UL = {
|
|
36544
36544
|
key: 0,
|
|
36545
36545
|
class: "ml-0.5 text-[var(--ui-danger)]",
|
|
36546
36546
|
"aria-hidden": "true"
|
|
@@ -36572,6 +36572,7 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36572
36572
|
immediateValidate: { type: Boolean, default: void 0 },
|
|
36573
36573
|
textOnly: { type: Boolean, default: void 0 },
|
|
36574
36574
|
indent: {},
|
|
36575
|
+
inset: { type: Boolean },
|
|
36575
36576
|
direction: {},
|
|
36576
36577
|
labelWidth: {},
|
|
36577
36578
|
fieldWidth: {},
|
|
@@ -36599,8 +36600,9 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36599
36600
|
immediateValidate: !1,
|
|
36600
36601
|
textOnly: !1,
|
|
36601
36602
|
indent: 0,
|
|
36603
|
+
inset: !1,
|
|
36602
36604
|
labelWidth: "var(--ui-label-column)"
|
|
36603
|
-
}), u = Dv(), c = Uo(), f = Tt(), p = Oe("root"), v =
|
|
36605
|
+
}), u = Dv(), c = Uo(), f = Tt(), p = Oe("root"), v = lt(), m = {
|
|
36604
36606
|
control: `form-item-${v}-control`,
|
|
36605
36607
|
label: `form-item-${v}-label`,
|
|
36606
36608
|
description: `form-item-${v}-description`,
|
|
@@ -36609,10 +36611,10 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36609
36611
|
function E($e, Ne) {
|
|
36610
36612
|
if (Object.is($e, Ne)) return !0;
|
|
36611
36613
|
if (Array.isArray($e) && Array.isArray(Ne))
|
|
36612
|
-
return $e.length === Ne.length && $e.every((
|
|
36614
|
+
return $e.length === Ne.length && $e.every((nt, dt) => Object.is(nt, Ne[dt]));
|
|
36613
36615
|
if (Ja($e) && Ja(Ne)) {
|
|
36614
|
-
const
|
|
36615
|
-
return
|
|
36616
|
+
const nt = Object.keys($e);
|
|
36617
|
+
return nt.length === Object.keys(Ne).length && nt.every((dt) => Object.is($e[dt], Ne[dt]));
|
|
36616
36618
|
}
|
|
36617
36619
|
return !1;
|
|
36618
36620
|
}
|
|
@@ -36639,7 +36641,11 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36639
36641
|
return be.value && $e.push(m.description), X.value && $e.push(m.message), $e.length ? $e.join(" ") : void 0;
|
|
36640
36642
|
}), Pe = y(() => {
|
|
36641
36643
|
const $e = Z.value === "vertical" ? { display: "flex", flexDirection: "column", gap: "var(--ui-space-1)" } : { display: "flex", alignItems: "flex-start", columnGap: "var(--ui-label-gap)" }, Ne = s.value.indent ?? 0;
|
|
36642
|
-
|
|
36644
|
+
if (Ne && ($e.paddingLeft = typeof Ne == "number" ? `${Ne * 28}px` : Ne), s.value.inset && !ie.value && Z.value === "horizontal") {
|
|
36645
|
+
const nt = `calc(${s.value.labelWidth ?? "var(--ui-label-column)"} + var(--ui-label-gap))`;
|
|
36646
|
+
$e.paddingLeft = c ? `max(0px, calc(${nt} - ${c.indent}))` : nt;
|
|
36647
|
+
}
|
|
36648
|
+
return $e;
|
|
36643
36649
|
}), Te = y(() => ({
|
|
36644
36650
|
maxWidth: Ul(o.fieldWidth ?? u?.fieldWidth)
|
|
36645
36651
|
})), ee = y(() => {
|
|
@@ -36656,22 +36662,22 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36656
36662
|
);
|
|
36657
36663
|
}), ne = { afterItem: "shrink-0 self-center" };
|
|
36658
36664
|
function fe() {
|
|
36659
|
-
const $e = Wi(s.value.rules), Ne = o.prop,
|
|
36660
|
-
return [...$e, ...
|
|
36665
|
+
const $e = Wi(s.value.rules), Ne = o.prop, nt = Ne ? Wi(u?.rules?.[Ne]) : [];
|
|
36666
|
+
return [...$e, ...nt];
|
|
36661
36667
|
}
|
|
36662
36668
|
let ke = 0;
|
|
36663
36669
|
async function De($e = null) {
|
|
36664
36670
|
if (s.value.disableValidation || D.value && !s.value.validateDisabledField) return null;
|
|
36665
36671
|
const Ne = fe();
|
|
36666
36672
|
if (!Ne.length) return null;
|
|
36667
|
-
const
|
|
36673
|
+
const nt = ++ke;
|
|
36668
36674
|
V.value = "validating", r("validating");
|
|
36669
36675
|
const dt = await KL(C.value, Ne, {
|
|
36670
36676
|
trigger: $e,
|
|
36671
36677
|
defaultTrigger: s.value.defaultValidateTrigger,
|
|
36672
36678
|
text: n
|
|
36673
36679
|
});
|
|
36674
|
-
return
|
|
36680
|
+
return nt !== ke || (q.value = dt ?? "", V.value = dt ? "error" : "success", dt && le.value === "popup" && (W.value = !0), r("validated", { message: dt ?? "", status: V.value })), dt;
|
|
36675
36681
|
}
|
|
36676
36682
|
async function He($e = null) {
|
|
36677
36683
|
return !await De($e);
|
|
@@ -36777,14 +36783,15 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36777
36783
|
ref: p,
|
|
36778
36784
|
"data-form-item": "",
|
|
36779
36785
|
"data-direction": Z.value,
|
|
36786
|
+
"data-inset": i(s).inset ? "" : void 0,
|
|
36780
36787
|
style: Ce(Pe.value),
|
|
36781
36788
|
class: J(i(Re)("min-w-0", H.value && !i(s).hideValidateStatusCls && "has-error")),
|
|
36782
36789
|
"data-status": U.value || void 0,
|
|
36783
36790
|
"data-syno-pkg-land-ui": "",
|
|
36784
|
-
onMouseenter: Ne[1] || (Ne[1] = (
|
|
36785
|
-
onMouseleave: Ne[2] || (Ne[2] = (
|
|
36786
|
-
onFocusin: Ne[3] || (Ne[3] = (
|
|
36787
|
-
onFocusout: Ne[4] || (Ne[4] = (
|
|
36791
|
+
onMouseenter: Ne[1] || (Ne[1] = (nt) => le.value === "popup" && pe()),
|
|
36792
|
+
onMouseleave: Ne[2] || (Ne[2] = (nt) => le.value === "popup" && me()),
|
|
36793
|
+
onFocusin: Ne[3] || (Ne[3] = (nt) => le.value === "popup" && pe()),
|
|
36794
|
+
onFocusout: Ne[4] || (Ne[4] = (nt) => le.value === "popup" && me())
|
|
36788
36795
|
}, [
|
|
36789
36796
|
ie.value ? (d(), g("div", {
|
|
36790
36797
|
key: 0,
|
|
@@ -36795,7 +36802,7 @@ const WL = ["data-direction", "data-status"], HL = ["id", "for"], UL = {
|
|
|
36795
36802
|
Z.value === "horizontal" ? "pt-1 text-left" : void 0,
|
|
36796
36803
|
i(s).disableLabel || D.value ? "opacity-40" : void 0
|
|
36797
36804
|
]),
|
|
36798
|
-
onClick: Ne[0] || (Ne[0] = (
|
|
36805
|
+
onClick: Ne[0] || (Ne[0] = (nt) => le.value === "popup" && H.value && pe())
|
|
36799
36806
|
}, [
|
|
36800
36807
|
B("label", {
|
|
36801
36808
|
id: m.label,
|
|
@@ -37365,7 +37372,7 @@ const gz = {
|
|
|
37365
37372
|
}), {
|
|
37366
37373
|
default: _(() => [
|
|
37367
37374
|
se(N(D.title), 1),
|
|
37368
|
-
O(i(
|
|
37375
|
+
O(i(rt), {
|
|
37369
37376
|
class: "size-3.5",
|
|
37370
37377
|
"aria-hidden": "true"
|
|
37371
37378
|
})
|