vuesp-components 2.3.2 → 2.3.3
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/README.md +0 -10
- package/dist/{VDialog.vue_vue_type_script_setup_true_lang-CB1kfyUa.js → VDialog.vue_vue_type_script_setup_true_lang-DFNvEwYK.js} +276 -275
- package/dist/components/index.es.js +869 -860
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/button/types.d.ts.map +1 -1
- package/dist/components/ui/dialog/VDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionSearch.vue.d.ts +9 -1
- package/dist/components/ui/vision/VisionSearch.vue.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts +12 -1
- package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as
|
|
2
|
-
import { u as H, a as
|
|
1
|
+
import { openBlock as l, createElementBlock as c, createStaticVNode as Z, createElementVNode as r, defineComponent as O, resolveComponent as ee, computed as k, createBlock as S, resolveDynamicComponent as N, mergeProps as T, withCtx as $, normalizeClass as y, renderSlot as g, createCommentVNode as w, markRaw as R, shallowRef as A, Teleport as W, createVNode as V, Transition as D, unref as i, withModifiers as B, normalizeStyle as E, ref as j, withDirectives as te, Fragment as F, renderList as q, createTextVNode as I, toDisplayString as _, withKeys as ae, createPropsRestProxy as le, normalizeProps as oe, guardReactiveProps as se } from "vue";
|
|
2
|
+
import { u as H, a as ne, b as K, c as G } from "./useDialog-ALG4kFE7.js";
|
|
3
3
|
const P = (e, t) => {
|
|
4
|
-
const
|
|
5
|
-
for (const [
|
|
6
|
-
|
|
7
|
-
return
|
|
8
|
-
},
|
|
4
|
+
const s = e.__vccOpts || e;
|
|
5
|
+
for (const [m, u] of t)
|
|
6
|
+
s[m] = u;
|
|
7
|
+
return s;
|
|
8
|
+
}, re = {}, ie = {
|
|
9
9
|
viewBox: "0 0 179 40",
|
|
10
10
|
fill: "currentColor"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
return l(),
|
|
12
|
+
function ce(e, t) {
|
|
13
|
+
return l(), c("svg", ie, [...t[0] || (t[0] = [
|
|
14
14
|
Z('<g transform="matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)"><path d="m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z"></path><path d="m 104.76548,-63.374174 0.008,91.15236 -26.35225,25.003926 26.35676,25.415735 4.8e-4,91.161403 4.03033,0.0237 c 0,0 0.0729,-90.913243 -0.0476,-91.163063 l 26.24012,-24.776315 -26.23835,-25.66073 0.007,-91.147024 z"></path><path d="m 803.85444,82.816565 c -5.5092,-1.69169 -15.7197,-2.12913 -19.9329,1.03114 -5.56,4.548 -0.63,22.670005 -0.76,28.973005 0.3943,19.76599 20.7146,30.35978 36.02,33 0,0 45.06,4.77 68,-5.439 35.89996,-15.975 40.75996,-63.180005 13.91,-89.457 -15.2385,-18.333755 -72.7584,-32.66908 -78.91,-50.10399958 -6.54,-7.52040002 -2.52,-22.38120042 5.1,-27.89120042 10.47,-7.5605 25.91,-7.3647 37.9,-5.017 13.11,2.5659 14.15,13.6285 18,24.9082004 1.48,4.3522 2.88,12.3564 8.1,13.6674 2.25,0.5623 4.67,-0.1094 6.9,-0.3827 16.42996,-2.011 11.28456,-11.418391 12.09456,-24.2037914 0.38,-6.0219 2.2254,-16.238609 -1.1246,-21.752209 -5.98996,-9.87979 -17.48276,-9.960049 -30.96996,-15.3287 -11.9944,-2.919504 -32.57,-5.50288 -50,-1.25772 -13.92,3.39017 -28.5,10.49772 -37.24,22.25772 -16.31,21.9622 -9.6,57.1861 10.26,74.6998 22.17,19.5582 58.4,21.7732 76.41,46.304195 16.9,23.013005 -18.71,37.732005 -37.1,36.158005 -39.9169,-0.34531 -23.6297,-30.723925 -36.6571,-40.166145 z"></path><path d="m 321.18154,-32.17929 21,9 -46,120.999995 c -13.02939,-49.349215 -25.65589,-93.5184936 -37,-121.999995 5.741,-1.2008 17.946,-4.1139 20.397,-10.1049 2.328,-5.6934 -1.142,-13.0456 -1.397,-18.8951 -9.12189,0.745226 -79.43846,-2.275099 -82.411,2.3179 -1.02172,5.2378 -3.84926,12.95938 -1.985,17.2878 4.036,8.5605 18.82154,3.517306 23.75154,13.866906 25.90475,54.255645 38.51776,106.713979 60.87446,156.527394 37.33703,54.02331 63.06896,-92.52485 72.275,-119 4.089,-11.8192996 7.212,-30.0265 15.194,-39.7724 15.1599,-17.433642 28.97616,-5.381825 21.868,-28.07945 -5.23694,-5.944366 -63.1086,-2.739072 -64.389,-1.54476 -3.452,4.31661 -7.5289,7.804293 -2.178,19.39661 z"></path><path d="m 401.18154,-53.17929 c -0.998,4.83681 -4.908,16.1206 -1.357,20.3511 4.914,5.8555 20.341,3.7676 21.463,12.689 3.596,28.5694004 -0.4,58.2962 0.855,86.9599 0.882,20.149995 3.491,41.865 17.134,57.961 36.351,42.885 114.137,25.661 128.322,-27.961005 9.142,-34.561995 3.01191,-80.803507 3.08491,-116.292007 0.033,-15.7886 15.53509,-3.553988 22.46909,-13.356888 3.337,-4.7169 -1.212,-15.187 -1.971,-20.3511 -20.45735,-0.261837 -40.85188,-0.262234 -61.258,1.02779 l -3.742,11.97221 c 0.84877,13.898543 11.37685,10.038234 23.90801,11.758642 0.32053,9.189207 0.091,48.923358 0.092,71.241358 10e-4,19.4 0.471,40.338995 -8.89,58 -15.56,29.358 -61.659,29.409 -74.878,-2.000005 -10.636,-25.273 -6.147,-56.234995 -6.233,-82.999995 -0.035,-10.9870996 -2.501,-25.3419996 0.319,-35.9568 2.549,-9.5978 16.626,-6.4297 22.064,-12.6921 3.287,-3.7858 -0.52,-15.71299 -1.382,-20.3511 z"></path><path d="m 760.05964,143.05268 c -5.1123,-31.58627 4.9497,-52.437285 -1.4781,-59.628975 -3.17,-3.163 -17.48,-3.877 -20.39,-0.285 -7.636,9.412 -6.012,27.571005 -14.737,36.079005 -3.136,3.058 -10.272,1.461 -14.273,1.689 -13.102,0.746 -25.895,-0.086 -39,-0.086 l -1,-68 c 7.223,0.913 21.685,-1.996 27.722,1.269 6.665,3.604 3.577,17.035995 10.556,20.532995 5.15472,-0.0642 13.05488,0.47604 17.494,-1.405 5.21328,-7.758815 3.74312,-60.612259 -0.015,-62.640795 -5.5141,-0.237113 -13.29293,-2.8563906 -17.543,-1.1527996 -6.595,2.8734996 -5.002,15.2292996 -10.608,19.7931996 -5.233,4.2609 -21.417,2.0768 -27.606,0.6034 l 0.018,-19.9999996 0.982,-42.0000004 h 36 c 4.195,0 11.017,-1.271 14.725,1.0278 9.479,5.8759 5.235,25.2669004 13.705,30.94060042 4.66,3.12049998 14.21,-2.03520002 19.57,-1.96840002 -1.7258,-10.0332024 5.1749,-44.7657364 -0.6,-49.9722104 -8.573,-0.17431 -123.95249,0.09746 -142.26,0.5756 -2.813,3.26479 -4.226,15.59871 -1.533,19.00621 4.834,6.1168 16.163,4.3646 20.481,9.9544 4.51586,28.5714044 7.89004,96.377815 0.594,132.328 -2.185,7.787 -16.181,5.969 -20.654,11.832 -1.59611,5.22999 -0.7409,13.33851 1.536,18.048 5.16025,7.51372 110.02916,3.17366 148.3141,3.45997 z"></path><path d="m 964.1815,-23.17929 c 0,43.4127 3.83,88.767 -0.06,131.985 -0.8,8.923 -14.88,7.544 -20.62,12.09 -4.2,3.326 -1.95,14.442 -0.17,18.777 15.7137,4.67091 86.3037,9.27518 89.39,-4.852 0.57,-3.057 2.36,-9.582 0.42,-12.297 -5.77,-8.041 -28.93,-2.391 -30.81,-13.747 -0.063,-55.41713 -0.3488,-55.25935 -0.15,-140.956 16.19,0 34.24,-2.9842 46.98,9.0934 18.26,17.2977004 11.94,53.4098 -8.98,65.6236 -7.67,4.477 -18.44,3.283 -27,3.283 v 23 c 23.19,0 50.85,-0.216 69,-17.093 28.42,-26.4403 19.73,-83.9314 -16,-99.7334 -4.6952,-8.320027 -96.8662,-17.196078 -120.68,-4.43208 -2.7,1.3721 -3.6701,5.98455 -3.17,8.34798 -3.3313,17.201533 8.54,18.6194 21.85,20.9105 z"></path></g>', 1)
|
|
15
15
|
])]);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const Ye = /* @__PURE__ */ P(re, [["render", ce]]), de = {}, ue = {
|
|
18
18
|
width: "40",
|
|
19
19
|
height: "40",
|
|
20
20
|
viewBox: "0 0 40 40",
|
|
21
21
|
fill: "currentColor"
|
|
22
22
|
};
|
|
23
|
-
function
|
|
24
|
-
return l(),
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
function fe(e, t) {
|
|
24
|
+
return l(), c("svg", ue, [...t[0] || (t[0] = [
|
|
25
|
+
r("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
26
|
+
r("path", { d: "m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z" })
|
|
27
27
|
], -1)
|
|
28
28
|
])]);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Ze = /* @__PURE__ */ P(de, [["render", fe]]), be = {}, he = {
|
|
31
31
|
class: "animate-spin h-6 w-6",
|
|
32
32
|
fill: "none",
|
|
33
33
|
viewBox: "0 0 24 24"
|
|
34
34
|
};
|
|
35
|
-
function
|
|
36
|
-
return l(),
|
|
37
|
-
|
|
35
|
+
function me(e, t) {
|
|
36
|
+
return l(), c("svg", he, [...t[0] || (t[0] = [
|
|
37
|
+
r("circle", {
|
|
38
38
|
class: "opacity-25",
|
|
39
39
|
cx: "12",
|
|
40
40
|
cy: "12",
|
|
@@ -42,19 +42,20 @@ function he(e, t) {
|
|
|
42
42
|
stroke: "currentColor",
|
|
43
43
|
"stroke-width": "2"
|
|
44
44
|
}, null, -1),
|
|
45
|
-
|
|
45
|
+
r("path", {
|
|
46
46
|
class: "opacity-75",
|
|
47
47
|
fill: "currentColor",
|
|
48
48
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
49
49
|
}, null, -1)
|
|
50
50
|
])]);
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const ve = /* @__PURE__ */ P(be, [["render", me]]), ge = "relative inline-flex justify-center items-center gap-2 transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:pointer-events-none disabled:opacity-40 rounded-md font-medium", J = /* @__PURE__ */ O({
|
|
53
53
|
__name: "VButton",
|
|
54
54
|
props: {
|
|
55
55
|
outline: { type: Boolean, default: !1 },
|
|
56
56
|
color: { default: "transparent" },
|
|
57
|
-
variant: {
|
|
57
|
+
variant: { default: () => {
|
|
58
|
+
} },
|
|
58
59
|
size: { default: "md" },
|
|
59
60
|
type: { default: "button" },
|
|
60
61
|
block: { type: Boolean, default: !1 },
|
|
@@ -65,9 +66,9 @@ const me = /* @__PURE__ */ P(fe, [["render", he]]), ve = "relative inline-flex j
|
|
|
65
66
|
},
|
|
66
67
|
emits: ["click"],
|
|
67
68
|
setup(e, { emit: t }) {
|
|
68
|
-
const
|
|
69
|
-
e.disabled ||
|
|
70
|
-
}, u =
|
|
69
|
+
const s = t, m = (b) => {
|
|
70
|
+
e.disabled || s("click", b);
|
|
71
|
+
}, u = ee("RouterLink"), a = k(() => e.to ? u : e.href ? "a" : "button"), n = k(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), p = k(() => e.type === "icon"), v = {
|
|
71
72
|
green: "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400",
|
|
72
73
|
red: "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400",
|
|
73
74
|
gray: "border border-gray-200/70 bg-white/50 text-gray-700 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70",
|
|
@@ -79,7 +80,7 @@ const me = /* @__PURE__ */ P(fe, [["render", he]]), ve = "relative inline-flex j
|
|
|
79
80
|
rose: "bg-[var(--accent-rose)] text-white shadow-[0_8px_24px_-12px_rgba(244,63,94,0.9)] hover:brightness-110",
|
|
80
81
|
slate: "bg-[var(--accent-slate)] text-white shadow-[0_8px_24px_-12px_rgba(71,85,105,0.9)] hover:brightness-110",
|
|
81
82
|
transparent: ""
|
|
82
|
-
},
|
|
83
|
+
}, h = {
|
|
83
84
|
green: "border border-green-500/30 text-green-600 dark:text-green-400",
|
|
84
85
|
red: "border border-red-500/30 text-red-600 dark:text-red-400",
|
|
85
86
|
gray: "border border-gray-300/70 text-gray-700 dark:border-white/15 dark:text-white/70",
|
|
@@ -91,7 +92,7 @@ const me = /* @__PURE__ */ P(fe, [["render", he]]), ve = "relative inline-flex j
|
|
|
91
92
|
rose: "border border-[var(--accent-rose)] text-[var(--accent-rose)]",
|
|
92
93
|
slate: "border border-[var(--accent-slate)] text-[var(--accent-slate)]",
|
|
93
94
|
transparent: ""
|
|
94
|
-
},
|
|
95
|
+
}, x = {
|
|
95
96
|
primary: "bg-vision-primary text-white shadow-[0_12px_32px_-14px_var(--app-accent-shadow,rgba(37,99,235,0.9))] hover:brightness-110",
|
|
96
97
|
cyan: "bg-[#28b7f0] text-[#03111f] shadow-[0_12px_32px_-14px_rgba(40,183,240,0.9)] hover:bg-[#66d3f1]",
|
|
97
98
|
outline: "border border-white/15 bg-transparent text-white hover:border-white/25 hover:bg-white/5",
|
|
@@ -100,62 +101,62 @@ const me = /* @__PURE__ */ P(fe, [["render", he]]), ve = "relative inline-flex j
|
|
|
100
101
|
danger: "border border-vision-danger/25 bg-vision-danger/10 text-vision-danger hover:bg-vision-danger/15",
|
|
101
102
|
success: "border border-vision-success/25 bg-vision-success/10 text-vision-success hover:bg-vision-success/15",
|
|
102
103
|
white: "bg-white text-[#060b28] hover:bg-white/90"
|
|
103
|
-
},
|
|
104
|
+
}, L = {
|
|
104
105
|
sm: "h-8 px-3 text-xs",
|
|
105
106
|
md: "h-10 px-3 text-sm",
|
|
106
107
|
lg: "h-12 px-4 text-sm",
|
|
107
108
|
xl: "h-14 px-5 text-sm"
|
|
108
|
-
},
|
|
109
|
+
}, C = {
|
|
109
110
|
sm: "h-9 px-3 text-xs",
|
|
110
111
|
md: "h-11 px-4 text-sm",
|
|
111
112
|
lg: "h-12 px-6 text-sm",
|
|
112
113
|
xl: "h-14 px-6 text-sm"
|
|
113
|
-
},
|
|
114
|
+
}, d = {
|
|
114
115
|
sm: "size-8",
|
|
115
116
|
md: "size-10",
|
|
116
117
|
lg: "size-12",
|
|
117
118
|
xl: "size-14"
|
|
118
|
-
}, f =
|
|
119
|
-
const
|
|
120
|
-
return
|
|
119
|
+
}, f = k(() => {
|
|
120
|
+
const b = [ge];
|
|
121
|
+
return p.value ? b.push("border border-gray-200/70 dark:border-white/10", d[e.size]) : e.variant ? b.push(x[e.variant], C[e.size]) : b.push(e.outline ? h[e.color] : v[e.color], L[e.size]), e.block && b.push("w-full"), e.disabled && b.push("pointer-events-none opacity-40"), b;
|
|
121
122
|
});
|
|
122
|
-
return (
|
|
123
|
+
return (b, z) => (l(), S(N(a.value), T(b.$attrs, {
|
|
123
124
|
href: e.href || void 0,
|
|
124
125
|
to: e.to || void 0,
|
|
125
|
-
type:
|
|
126
|
-
disabled:
|
|
126
|
+
type: n.value,
|
|
127
|
+
disabled: a.value === "button" ? e.disabled : void 0,
|
|
127
128
|
"aria-disabled": e.disabled || void 0,
|
|
128
129
|
class: f.value,
|
|
129
|
-
onClick:
|
|
130
|
+
onClick: m
|
|
130
131
|
}), {
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
class:
|
|
132
|
+
default: $(() => [
|
|
133
|
+
r("span", {
|
|
134
|
+
class: y(e.loading ? "opacity-0" : "")
|
|
134
135
|
}, [
|
|
135
|
-
|
|
136
|
+
g(b.$slots, "default")
|
|
136
137
|
], 2),
|
|
137
|
-
e.loading ? (l(), S(
|
|
138
|
+
e.loading ? (l(), S(ve, {
|
|
138
139
|
key: 0,
|
|
139
140
|
class: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
140
|
-
})) :
|
|
141
|
+
})) : w("", !0)
|
|
141
142
|
]),
|
|
142
143
|
_: 3
|
|
143
144
|
}, 16, ["href", "to", "type", "disabled", "aria-disabled", "class"]));
|
|
144
145
|
}
|
|
145
|
-
}),
|
|
146
|
+
}), xe = {
|
|
146
147
|
viewBox: "0 0 24 24",
|
|
147
148
|
width: "1.2em",
|
|
148
149
|
height: "1.2em"
|
|
149
150
|
};
|
|
150
|
-
function
|
|
151
|
-
return l(),
|
|
152
|
-
|
|
151
|
+
function pe(e, t) {
|
|
152
|
+
return l(), c("svg", xe, [...t[0] || (t[0] = [
|
|
153
|
+
r("path", {
|
|
153
154
|
fill: "currentColor",
|
|
154
155
|
d: "m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z"
|
|
155
156
|
}, null, -1)
|
|
156
157
|
])]);
|
|
157
158
|
}
|
|
158
|
-
const Q =
|
|
159
|
+
const Q = R({ name: "ri-close-line", render: pe }), ye = { class: "flex items-center absolute right-3 top-5 z-10" }, U = /* @__PURE__ */ O({
|
|
159
160
|
__name: "VPopup",
|
|
160
161
|
props: {
|
|
161
162
|
hiddenCloser: { type: Boolean },
|
|
@@ -163,22 +164,22 @@ const Q = W({ name: "ri-close-line", render: xe }), pe = { class: "flex items-ce
|
|
|
163
164
|
},
|
|
164
165
|
emits: ["close", "click", "open"],
|
|
165
166
|
setup(e, { emit: t }) {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
}, open:
|
|
169
|
-
|
|
170
|
-
} },
|
|
167
|
+
const s = t, { show: m, overlay: u, onClose: a, onOpen: n } = H(s), p = A(null), v = A(null), { opacity: h, transform: x } = ne(p, v, a), d = { click: (z) => {
|
|
168
|
+
s("click", z);
|
|
169
|
+
}, open: n, set: (z) => {
|
|
170
|
+
z ? n() : a(new Event("hide"));
|
|
171
|
+
} }, f = k(() => ({
|
|
171
172
|
auto: "max-h-[calc(100dvh-50px)]",
|
|
172
173
|
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
173
174
|
screen: "h-dvh"
|
|
174
|
-
})),
|
|
175
|
+
})), b = k(() => ({
|
|
175
176
|
auto: "max-h-[calc(100dvh-50px-16px)]",
|
|
176
177
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
177
178
|
screen: "h-[calc(100dvh-16px)]"
|
|
178
179
|
}));
|
|
179
|
-
return (
|
|
180
|
+
return (z, o) => {
|
|
180
181
|
const M = Q, X = J;
|
|
181
|
-
return l(), S(
|
|
182
|
+
return l(), S(W, { to: "body" }, [
|
|
182
183
|
V(D, {
|
|
183
184
|
"enter-active-class": "duration-300 ease-out",
|
|
184
185
|
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
@@ -187,81 +188,81 @@ const Q = W({ name: "ri-close-line", render: xe }), pe = { class: "flex items-ce
|
|
|
187
188
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
188
189
|
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
189
190
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
|
|
191
|
+
default: $(() => [
|
|
192
|
+
i(m) ? (l(), c("div", {
|
|
192
193
|
key: 0,
|
|
193
194
|
ref_key: "container",
|
|
194
|
-
ref:
|
|
195
|
+
ref: v,
|
|
195
196
|
class: "fixed bottom-0 left-0 w-full z-15"
|
|
196
197
|
}, [
|
|
197
|
-
|
|
198
|
+
i(u) ? (l(), c("div", {
|
|
198
199
|
key: 0,
|
|
199
200
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
200
|
-
style:
|
|
201
|
-
onClick:
|
|
202
|
-
(...Y) =>
|
|
203
|
-
onWheel:
|
|
201
|
+
style: E({ opacity: i(h) }),
|
|
202
|
+
onClick: o[0] || (o[0] = //@ts-ignore
|
|
203
|
+
(...Y) => i(a) && i(a)(...Y)),
|
|
204
|
+
onWheel: o[1] || (o[1] = B(() => {
|
|
204
205
|
}, ["prevent"])),
|
|
205
|
-
onTouchmove:
|
|
206
|
+
onTouchmove: o[2] || (o[2] = B(() => {
|
|
206
207
|
}, ["prevent"]))
|
|
207
|
-
}, null, 36)) :
|
|
208
|
-
|
|
209
|
-
class:
|
|
210
|
-
style:
|
|
208
|
+
}, null, 36)) : w("", !0),
|
|
209
|
+
r("div", {
|
|
210
|
+
class: y(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", f.value[e.size]]),
|
|
211
|
+
style: E({ transform: i(x) })
|
|
211
212
|
}, [
|
|
212
|
-
|
|
213
|
+
r("div", {
|
|
213
214
|
ref_key: "target",
|
|
214
|
-
ref:
|
|
215
|
+
ref: p,
|
|
215
216
|
class: "flex justify-center py-3 md:pb-6",
|
|
216
|
-
onWheel:
|
|
217
|
+
onWheel: o[3] || (o[3] = B(() => {
|
|
217
218
|
}, ["prevent"])),
|
|
218
|
-
onTouchmove:
|
|
219
|
+
onTouchmove: o[4] || (o[4] = B(() => {
|
|
219
220
|
}, ["prevent"]))
|
|
220
|
-
}, [...
|
|
221
|
-
|
|
221
|
+
}, [...o[5] || (o[5] = [
|
|
222
|
+
r("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
|
|
222
223
|
])], 544),
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
r("div", ye, [
|
|
225
|
+
g(z.$slots, "button", { close: i(a) }),
|
|
225
226
|
V(X, {
|
|
226
227
|
class: "size-5 md:size-6",
|
|
227
228
|
color: "transparent",
|
|
228
229
|
size: "none",
|
|
229
230
|
icon: "",
|
|
230
231
|
"aria-label": "Close",
|
|
231
|
-
onClick:
|
|
232
|
+
onClick: i(a)
|
|
232
233
|
}, {
|
|
233
|
-
default:
|
|
234
|
+
default: $(() => [
|
|
234
235
|
V(M, { class: "size-5" })
|
|
235
236
|
]),
|
|
236
237
|
_: 1
|
|
237
238
|
}, 8, ["onClick"])
|
|
238
239
|
]),
|
|
239
|
-
|
|
240
|
-
class:
|
|
240
|
+
r("div", {
|
|
241
|
+
class: y(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", b.value[e.size]])
|
|
241
242
|
}, [
|
|
242
|
-
|
|
243
|
-
close:
|
|
244
|
-
on:
|
|
243
|
+
g(z.$slots, "default", {
|
|
244
|
+
close: i(a),
|
|
245
|
+
on: d
|
|
245
246
|
})
|
|
246
247
|
], 2)
|
|
247
248
|
], 6)
|
|
248
|
-
], 512)) :
|
|
249
|
+
], 512)) : w("", !0)
|
|
249
250
|
]),
|
|
250
251
|
_: 3
|
|
251
252
|
})
|
|
252
253
|
]);
|
|
253
254
|
};
|
|
254
255
|
}
|
|
255
|
-
}),
|
|
256
|
+
}), we = {
|
|
256
257
|
mounted(e, t) {
|
|
257
|
-
e.clickOutsideEvent = function(
|
|
258
|
-
e ===
|
|
258
|
+
e.clickOutsideEvent = function(s) {
|
|
259
|
+
e === s.target || e.contains(s.target) || t.value(s, e);
|
|
259
260
|
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
260
261
|
},
|
|
261
262
|
unmounted(e) {
|
|
262
263
|
document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
|
|
263
264
|
}
|
|
264
|
-
},
|
|
265
|
+
}, ke = { class: "relative" }, $e = { class: "flex items-center cursor-pointer" }, Ce = /* @__PURE__ */ O({
|
|
265
266
|
__name: "VDropdown",
|
|
266
267
|
props: {
|
|
267
268
|
title: { default: "" },
|
|
@@ -276,27 +277,27 @@ const Q = W({ name: "ri-close-line", render: xe }), pe = { class: "flex items-ce
|
|
|
276
277
|
},
|
|
277
278
|
emits: ["click", "show", "close"],
|
|
278
279
|
setup(e, { emit: t }) {
|
|
279
|
-
const
|
|
280
|
-
u.value && a.value &&
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
},
|
|
284
|
-
a.value = !0,
|
|
285
|
-
},
|
|
286
|
-
a.value = !1,
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
return (
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
on:
|
|
280
|
+
const s = t, u = K(G).greaterOrEqual("lg"), a = j(!1), n = k(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), p = (f) => {
|
|
281
|
+
u.value && a.value && x(f);
|
|
282
|
+
}, v = (f) => {
|
|
283
|
+
s("click", a.value), !e.disabled && (a.value ? e.hideOnClick && x(f) : h(f));
|
|
284
|
+
}, h = (f) => {
|
|
285
|
+
a.value = !0, s("show", f);
|
|
286
|
+
}, x = (f) => {
|
|
287
|
+
a.value = !1, s("close", f);
|
|
288
|
+
}, L = (f) => {
|
|
289
|
+
f ? h(new Event("show")) : x(new Event("hide"));
|
|
290
|
+
}, C = () => {
|
|
291
|
+
x(new Event("hide"));
|
|
292
|
+
}, d = { click: v, open: h, set: L };
|
|
293
|
+
return (f, b) => te((l(), c("div", ke, [
|
|
294
|
+
r("div", $e, [
|
|
295
|
+
g(f.$slots, "activator", {
|
|
296
|
+
on: d,
|
|
296
297
|
isShow: a.value
|
|
297
298
|
})
|
|
298
299
|
]),
|
|
299
|
-
|
|
300
|
+
i(u) ? (l(), S(D, {
|
|
300
301
|
key: 0,
|
|
301
302
|
"enter-active-class": "duration-300 ease-out",
|
|
302
303
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
@@ -305,96 +306,96 @@ const Q = W({ name: "ri-close-line", render: xe }), pe = { class: "flex items-ce
|
|
|
305
306
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
306
307
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
307
308
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
a.value ? (l(),
|
|
309
|
+
default: $(() => [
|
|
310
|
+
a.value ? (l(), c("div", {
|
|
310
311
|
key: 0,
|
|
311
312
|
class: "z-30 min-w-full absolute",
|
|
312
|
-
style:
|
|
313
|
+
style: E(n.value)
|
|
313
314
|
}, [
|
|
314
|
-
|
|
315
|
-
on:
|
|
316
|
-
show:
|
|
317
|
-
hide:
|
|
315
|
+
g(f.$slots, "default", {
|
|
316
|
+
on: d,
|
|
317
|
+
show: h,
|
|
318
|
+
hide: x,
|
|
318
319
|
isShow: a.value
|
|
319
320
|
})
|
|
320
|
-
], 4)) :
|
|
321
|
+
], 4)) : w("", !0)
|
|
321
322
|
]),
|
|
322
323
|
_: 3
|
|
323
|
-
})) :
|
|
324
|
-
!
|
|
324
|
+
})) : w("", !0),
|
|
325
|
+
!i(u) && a.value ? (l(), S(U, {
|
|
325
326
|
key: 1,
|
|
326
327
|
title: e.title,
|
|
327
|
-
onClose:
|
|
328
|
+
onClose: C
|
|
328
329
|
}, {
|
|
329
|
-
default:
|
|
330
|
-
|
|
331
|
-
on:
|
|
332
|
-
show:
|
|
333
|
-
hide:
|
|
330
|
+
default: $(({ on: z }) => [
|
|
331
|
+
g(f.$slots, "default", {
|
|
332
|
+
on: z,
|
|
333
|
+
show: h,
|
|
334
|
+
hide: x,
|
|
334
335
|
isShow: a.value
|
|
335
336
|
})
|
|
336
337
|
]),
|
|
337
338
|
_: 3
|
|
338
|
-
}, 8, ["title"])) :
|
|
339
|
+
}, 8, ["title"])) : w("", !0)
|
|
339
340
|
])), [
|
|
340
|
-
[
|
|
341
|
+
[i(we), p]
|
|
341
342
|
]);
|
|
342
343
|
}
|
|
343
|
-
}), ze = { class: "glass-popover rounded-md" },
|
|
344
|
+
}), ze = { class: "glass-popover rounded-md" }, Be = ["onClick"], Ve = /* @__PURE__ */ O({
|
|
344
345
|
__name: "VList",
|
|
345
346
|
props: {
|
|
346
347
|
items: {}
|
|
347
348
|
},
|
|
348
349
|
emits: ["click"],
|
|
349
350
|
setup(e, { emit: t }) {
|
|
350
|
-
const
|
|
351
|
-
return (u, a) => (l(),
|
|
352
|
-
(l(!0),
|
|
353
|
-
key:
|
|
351
|
+
const s = t, m = (u, a) => s("click", u, a);
|
|
352
|
+
return (u, a) => (l(), c("ul", ze, [
|
|
353
|
+
(l(!0), c(F, null, q(e.items, (n) => (l(), c("li", {
|
|
354
|
+
key: n.name,
|
|
354
355
|
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-100 px-4 last:border-b-0 hover:bg-primary/10 dark:border-white/5 dark:hover:bg-white/[0.06]",
|
|
355
|
-
onClick: (
|
|
356
|
+
onClick: (p) => m(n, p)
|
|
356
357
|
}, [
|
|
357
|
-
|
|
358
|
-
I(_(
|
|
358
|
+
g(u.$slots, "default", { item: n }, () => [
|
|
359
|
+
I(_(n.name), 1)
|
|
359
360
|
])
|
|
360
|
-
], 8,
|
|
361
|
+
], 8, Be))), 128))
|
|
361
362
|
]));
|
|
362
363
|
}
|
|
363
|
-
}),
|
|
364
|
+
}), Se = { class: "relative flex items-end gap-0.5 w-10" }, _e = ["title"], Oe = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, et = /* @__PURE__ */ O({
|
|
364
365
|
__name: "VWifiIcon",
|
|
365
366
|
props: {
|
|
366
367
|
rssi: { default: 0 },
|
|
367
368
|
channel: { default: 0 }
|
|
368
369
|
},
|
|
369
370
|
setup(e) {
|
|
370
|
-
const t = 2 * (e.rssi + 100),
|
|
371
|
-
return (
|
|
372
|
-
(l(),
|
|
371
|
+
const t = 2 * (e.rssi + 100), s = (m) => m < t;
|
|
372
|
+
return (m, u) => (l(), c("div", Se, [
|
|
373
|
+
(l(), c(F, null, q([10, 15, 25, 40, 70], (a, n) => r("div", {
|
|
373
374
|
key: a,
|
|
374
|
-
class:
|
|
375
|
-
style:
|
|
375
|
+
class: y(["w-1 h-5 rounded-lg", [s(a) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
|
|
376
|
+
style: E(`height: ${(n + 1) * 5}px`),
|
|
376
377
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
377
|
-
}, null, 14,
|
|
378
|
-
|
|
378
|
+
}, null, 14, _e)), 64)),
|
|
379
|
+
r("div", Oe, _(e.channel), 1)
|
|
379
380
|
]));
|
|
380
381
|
}
|
|
381
|
-
}),
|
|
382
|
+
}), Le = {
|
|
382
383
|
viewBox: "0 0 24 24",
|
|
383
384
|
width: "1.2em",
|
|
384
385
|
height: "1.2em"
|
|
385
386
|
};
|
|
386
387
|
function Ee(e, t) {
|
|
387
|
-
return l(),
|
|
388
|
-
|
|
388
|
+
return l(), c("svg", Le, [...t[0] || (t[0] = [
|
|
389
|
+
r("path", {
|
|
389
390
|
fill: "currentColor",
|
|
390
391
|
d: "m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"
|
|
391
392
|
}, null, -1)
|
|
392
393
|
])]);
|
|
393
394
|
}
|
|
394
|
-
const
|
|
395
|
+
const Te = R({ name: "ri-arrow-down-s-line", render: Ee }), De = { class: "w-full relative" }, Ie = ["disabled"], Pe = {
|
|
395
396
|
key: 0,
|
|
396
397
|
class: "text-red-400 h-[24px] px-2 text-xs"
|
|
397
|
-
},
|
|
398
|
+
}, Me = "after:absolute after:h-1 after:w-full after:left-0 after:translate-y-[6px] after:-z-10 after:bg-white dark:after:bg-[#0b1538] after:transition-all", Ae = /* @__PURE__ */ O({
|
|
398
399
|
__name: "VTextField",
|
|
399
400
|
props: {
|
|
400
401
|
modelValue: { default: null },
|
|
@@ -409,64 +410,64 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
409
410
|
},
|
|
410
411
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
411
412
|
setup(e, { emit: t }) {
|
|
412
|
-
const
|
|
413
|
+
const s = t, m = {
|
|
413
414
|
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent placeholder:text-gray-400 dark:placeholder:text-gray-500",
|
|
414
415
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
415
|
-
}, u =
|
|
416
|
+
}, u = j(!1), a = k(() => [
|
|
416
417
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
417
418
|
e.message ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
|
|
418
419
|
e.disabled ? "border-gray-300 opacity-40 dark:border-gray-700" : "border-gray-300/80 hover:border-gray-400/80 dark:border-white/10 dark:hover:border-white/20"
|
|
419
|
-
]),
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
]),
|
|
423
|
-
u.value = !1,
|
|
424
|
-
},
|
|
425
|
-
u.value = !0,
|
|
426
|
-
},
|
|
427
|
-
e.disabled ||
|
|
420
|
+
]), n = k(() => m[e.component]), p = (o) => o || o === 0, v = k(() => u.value || p(e.modelValue) || e.active), h = k(() => [
|
|
421
|
+
v.value ? Me : "",
|
|
422
|
+
v.value ? "top-0 left-3 bg-white/80 px-1 text-xs text-gray-500 dark:bg-[#0b1538]/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
|
|
423
|
+
]), x = k(() => e.component === "input"), L = (o) => {
|
|
424
|
+
u.value = !1, s("blur", o);
|
|
425
|
+
}, C = (o) => {
|
|
426
|
+
u.value = !0, s("focus", o);
|
|
427
|
+
}, d = ({ target: o }) => s("update:modelValue", o.value), f = (o) => s("enter", o), b = (o) => s("click", o), z = (o) => {
|
|
428
|
+
e.disabled || s("on-icon", o);
|
|
428
429
|
};
|
|
429
|
-
return (
|
|
430
|
-
|
|
431
|
-
class:
|
|
430
|
+
return (o, M) => (l(), c("div", De, [
|
|
431
|
+
r("label", {
|
|
432
|
+
class: y(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-primary/60 focus-within:ring-1 focus-within:ring-primary/20", a.value])
|
|
432
433
|
}, [
|
|
433
|
-
|
|
434
|
-
class:
|
|
434
|
+
r("span", {
|
|
435
|
+
class: y(["absolute left-3.5 -translate-y-1/2 rounded transition-all", h.value])
|
|
435
436
|
}, _(e.label), 3),
|
|
436
|
-
(l(), S(N(e.component), T(
|
|
437
|
+
(l(), S(N(e.component), T(o.$attrs, {
|
|
437
438
|
value: e.modelValue,
|
|
438
439
|
disabled: !!e.disabled,
|
|
439
440
|
type: e.type,
|
|
440
441
|
readonly: e.readonly,
|
|
441
|
-
rows:
|
|
442
|
-
wrap:
|
|
443
|
-
class:
|
|
444
|
-
onFocus:
|
|
445
|
-
onBlur:
|
|
446
|
-
onInput:
|
|
447
|
-
onClick:
|
|
448
|
-
onKeypress:
|
|
442
|
+
rows: x.value ? null : "2",
|
|
443
|
+
wrap: x.value ? null : "soft",
|
|
444
|
+
class: n.value,
|
|
445
|
+
onFocus: C,
|
|
446
|
+
onBlur: L,
|
|
447
|
+
onInput: d,
|
|
448
|
+
onClick: b,
|
|
449
|
+
onKeypress: ae(f, ["enter"])
|
|
449
450
|
}), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
|
|
450
|
-
|
|
451
|
+
o.$slots.icon ? (l(), c("button", {
|
|
451
452
|
key: 0,
|
|
452
453
|
disabled: !!e.disabled,
|
|
453
|
-
class:
|
|
454
|
-
onClick:
|
|
454
|
+
class: y([{ "cursor-pointer": !e.disabled }, "flex h-full flex-[0_0_50px] items-center justify-center border-l border-gray-200/70 text-gray-400 dark:border-white/10"]),
|
|
455
|
+
onClick: z
|
|
455
456
|
}, [
|
|
456
|
-
|
|
457
|
-
], 10,
|
|
457
|
+
g(o.$slots, "icon")
|
|
458
|
+
], 10, Ie)) : w("", !0)
|
|
458
459
|
], 2),
|
|
459
|
-
e.hideMessage ?
|
|
460
|
-
|
|
460
|
+
e.hideMessage ? w("", !0) : (l(), c("div", Pe, [
|
|
461
|
+
g(o.$slots, "message", {}, () => [
|
|
461
462
|
I(_(e.message), 1)
|
|
462
463
|
])
|
|
463
464
|
]))
|
|
464
465
|
]));
|
|
465
466
|
}
|
|
466
|
-
}),
|
|
467
|
+
}), Ne = { class: "glass-popover min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, Re = {
|
|
467
468
|
key: 0,
|
|
468
469
|
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
469
|
-
}, We = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" },
|
|
470
|
+
}, We = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, tt = /* @__PURE__ */ O({
|
|
470
471
|
inheritAttrs: !1,
|
|
471
472
|
__name: "VSelect",
|
|
472
473
|
props: {
|
|
@@ -485,48 +486,48 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
485
486
|
},
|
|
486
487
|
emits: ["change"],
|
|
487
488
|
setup(e, { emit: t }) {
|
|
488
|
-
const
|
|
489
|
-
function u(a,
|
|
490
|
-
|
|
489
|
+
const s = le(e, ["modelValue", "label", "items", "disabled"]), m = t;
|
|
490
|
+
function u(a, n) {
|
|
491
|
+
m("change", a), n == null || n.set(!1);
|
|
491
492
|
}
|
|
492
|
-
return (a,
|
|
493
|
-
const
|
|
494
|
-
return l(), S(
|
|
493
|
+
return (a, n) => {
|
|
494
|
+
const p = Te;
|
|
495
|
+
return l(), S(Ce, T(s, {
|
|
495
496
|
"hide-on-click": !1,
|
|
496
497
|
class: "relative"
|
|
497
498
|
}), {
|
|
498
|
-
activator:
|
|
499
|
-
|
|
500
|
-
V(
|
|
499
|
+
activator: $(({ on: v, isShow: h }) => [
|
|
500
|
+
g(a.$slots, "activator", oe(se({ on: v, isShow: h })), () => [
|
|
501
|
+
V(Ae, {
|
|
501
502
|
"model-value": e.modelValue,
|
|
502
503
|
disabled: e.disabled,
|
|
503
504
|
label: e.label,
|
|
504
505
|
readonly: "",
|
|
505
506
|
hideMessage: "",
|
|
506
507
|
active: "",
|
|
507
|
-
onClick:
|
|
508
|
-
onOnIcon:
|
|
508
|
+
onClick: v.click,
|
|
509
|
+
onOnIcon: v.click
|
|
509
510
|
}, {
|
|
510
|
-
icon:
|
|
511
|
-
V(
|
|
512
|
-
class:
|
|
511
|
+
icon: $(() => [
|
|
512
|
+
V(p, {
|
|
513
|
+
class: y(["transition duration-300", h ? "rotate-180" : ""])
|
|
513
514
|
}, null, 8, ["class"])
|
|
514
515
|
]),
|
|
515
516
|
_: 2
|
|
516
517
|
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
517
518
|
])
|
|
518
519
|
]),
|
|
519
|
-
default:
|
|
520
|
-
|
|
521
|
-
e.label ? (l(),
|
|
522
|
-
|
|
523
|
-
V(
|
|
520
|
+
default: $(({ on: v }) => [
|
|
521
|
+
r("div", Ne, [
|
|
522
|
+
e.label ? (l(), c("h4", Re, _(e.label), 1)) : w("", !0),
|
|
523
|
+
r("div", We, [
|
|
524
|
+
V(Ve, {
|
|
524
525
|
items: e.items,
|
|
525
|
-
onClick: (
|
|
526
|
+
onClick: (h) => u(h, v)
|
|
526
527
|
}, {
|
|
527
|
-
default:
|
|
528
|
-
|
|
529
|
-
I(_(
|
|
528
|
+
default: $(({ item: h }) => [
|
|
529
|
+
g(a.$slots, "item", { item: h }, () => [
|
|
530
|
+
I(_(h.name), 1)
|
|
530
531
|
])
|
|
531
532
|
]),
|
|
532
533
|
_: 3
|
|
@@ -544,10 +545,10 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
544
545
|
}, Fe = {
|
|
545
546
|
key: 1,
|
|
546
547
|
class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-[#060b28]/75 z-10 opacity-50"
|
|
547
|
-
},
|
|
548
|
+
}, qe = {
|
|
548
549
|
key: 2,
|
|
549
550
|
class: "mb-4 flex items-center justify-between"
|
|
550
|
-
},
|
|
551
|
+
}, He = { class: "text-lg font-semibold text-gray-800 dark:text-white" }, Ke = ["inert", "aria-disabled"], at = /* @__PURE__ */ O({
|
|
551
552
|
__name: "CardMain",
|
|
552
553
|
props: {
|
|
553
554
|
title: {},
|
|
@@ -555,30 +556,30 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
555
556
|
disabled: { type: Boolean }
|
|
556
557
|
},
|
|
557
558
|
setup(e) {
|
|
558
|
-
return (t,
|
|
559
|
-
class:
|
|
559
|
+
return (t, s) => (l(), c("div", {
|
|
560
|
+
class: y(["glass-panel relative p-5 transition-all duration-300 hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)] sm:p-6", { "overflow-hidden": e.loading }])
|
|
560
561
|
}, [
|
|
561
|
-
e.loading ? (l(),
|
|
562
|
-
e.loading ? (l(),
|
|
563
|
-
e.title ? (l(),
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
562
|
+
e.loading ? (l(), c("div", je)) : w("", !0),
|
|
563
|
+
e.loading ? (l(), c("div", Fe)) : w("", !0),
|
|
564
|
+
e.title ? (l(), c("div", qe, [
|
|
565
|
+
r("h3", He, _(e.title), 1),
|
|
566
|
+
r("div", null, [
|
|
567
|
+
g(t.$slots, "header")
|
|
567
568
|
])
|
|
568
|
-
])) :
|
|
569
|
-
|
|
569
|
+
])) : w("", !0),
|
|
570
|
+
r("div", {
|
|
570
571
|
class: "max-w-full",
|
|
571
572
|
inert: e.disabled,
|
|
572
573
|
"aria-disabled": e.disabled || void 0
|
|
573
574
|
}, [
|
|
574
|
-
|
|
575
|
-
], 8,
|
|
575
|
+
g(t.$slots, "default")
|
|
576
|
+
], 8, Ke)
|
|
576
577
|
], 2));
|
|
577
578
|
}
|
|
578
|
-
}),
|
|
579
|
+
}), Ge = { class: "text-title-md uppercase font-bold flex-auto" }, Je = { class: "px-4 pb-4 md:px-6" }, Qe = {
|
|
579
580
|
key: 0,
|
|
580
581
|
class: "text-title-md uppercase font-bold"
|
|
581
|
-
},
|
|
582
|
+
}, lt = /* @__PURE__ */ O({
|
|
582
583
|
__name: "VDialog",
|
|
583
584
|
props: {
|
|
584
585
|
title: {},
|
|
@@ -591,23 +592,23 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
591
592
|
timeout: {}
|
|
592
593
|
},
|
|
593
594
|
emits: ["close", "click", "open"],
|
|
594
|
-
setup(e, { expose: t, emit:
|
|
595
|
-
const
|
|
595
|
+
setup(e, { expose: t, emit: s }) {
|
|
596
|
+
const m = s, u = K(G), { show: a, onClose: n, onOpen: p } = H(m, e.timeout), v = {
|
|
596
597
|
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
597
598
|
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
598
599
|
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
599
600
|
full: "relative max-w-full w-full h-3/4 "
|
|
600
|
-
},
|
|
601
|
+
}, h = {
|
|
601
602
|
none: "",
|
|
602
603
|
white: "glass-panel",
|
|
603
604
|
gray: ""
|
|
604
|
-
},
|
|
605
|
+
}, x = k(() => [v[e.size], h[e.color]]), L = u.greaterOrEqual("lg");
|
|
605
606
|
return t({
|
|
606
607
|
show: a,
|
|
607
|
-
onClose:
|
|
608
|
-
}), (
|
|
609
|
-
const
|
|
610
|
-
return e.isOnlyDialog ||
|
|
608
|
+
onClose: n
|
|
609
|
+
}), (C, d) => {
|
|
610
|
+
const f = Q;
|
|
611
|
+
return e.isOnlyDialog || i(L) ? (l(), S(W, {
|
|
611
612
|
key: 0,
|
|
612
613
|
to: "body"
|
|
613
614
|
}, [
|
|
@@ -618,80 +619,80 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
618
619
|
"leave-active-class": "duration-200 ease-in",
|
|
619
620
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
620
621
|
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
621
|
-
onAfterEnter:
|
|
622
|
+
onAfterEnter: i(p)
|
|
622
623
|
}, {
|
|
623
|
-
default:
|
|
624
|
-
|
|
624
|
+
default: $(() => [
|
|
625
|
+
i(a) ? (l(), c("div", {
|
|
625
626
|
key: 0,
|
|
626
627
|
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
627
|
-
onWheel:
|
|
628
|
+
onWheel: d[4] || (d[4] = B(() => {
|
|
628
629
|
}, ["stop"]))
|
|
629
630
|
}, [
|
|
630
|
-
|
|
631
|
+
r("div", {
|
|
631
632
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
632
|
-
onClick:
|
|
633
|
-
(...
|
|
633
|
+
onClick: d[0] || (d[0] = //@ts-ignore
|
|
634
|
+
(...b) => i(n) && i(n)(...b))
|
|
634
635
|
}),
|
|
635
|
-
|
|
636
|
-
class:
|
|
636
|
+
r("div", {
|
|
637
|
+
class: y(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
637
638
|
}, [
|
|
638
|
-
|
|
639
|
-
class:
|
|
639
|
+
r("div", {
|
|
640
|
+
class: y(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", x.value])
|
|
640
641
|
}, [
|
|
641
|
-
|
|
642
|
-
class:
|
|
643
|
-
onWheel:
|
|
642
|
+
r("div", {
|
|
643
|
+
class: y(["flex items-center min-h-14 border-b border-gray-200/70 bg-white/35 px-6 dark:border-white/10 dark:bg-white/[0.03]", e.size === "full" ? "absolute top-0 right-4 border-0 bg-transparent px-0" : ""]),
|
|
644
|
+
onWheel: d[1] || (d[1] = B(() => {
|
|
644
645
|
}, ["prevent"])),
|
|
645
|
-
onTouchmove:
|
|
646
|
+
onTouchmove: d[2] || (d[2] = B(() => {
|
|
646
647
|
}, ["prevent"]))
|
|
647
648
|
}, [
|
|
648
|
-
|
|
649
|
-
|
|
649
|
+
r("h4", Ge, _(e.title), 1),
|
|
650
|
+
g(C.$slots, "header-btn", { close: i(n) }),
|
|
650
651
|
V(J, {
|
|
651
652
|
color: "transparent",
|
|
652
653
|
type: "icon",
|
|
653
654
|
size: "sm",
|
|
654
|
-
onClick:
|
|
655
|
+
onClick: i(n)
|
|
655
656
|
}, {
|
|
656
|
-
default:
|
|
657
|
-
V(
|
|
657
|
+
default: $(() => [
|
|
658
|
+
V(f)
|
|
658
659
|
]),
|
|
659
660
|
_: 1
|
|
660
661
|
}, 8, ["onClick"])
|
|
661
662
|
], 34),
|
|
662
|
-
|
|
663
|
-
class:
|
|
664
|
-
onClose:
|
|
665
|
-
(...
|
|
663
|
+
r("div", {
|
|
664
|
+
class: y(["relative overflow-auto max-h-dvh scrollbar overflow-y-auto overscroll-contain min-h-0 max-md:flex-auto", e.size === "full" ? "flex-auto" : "md:max-h-147.5 px-6 pb-6 pt-5"]),
|
|
665
|
+
onClose: d[3] || (d[3] = //@ts-ignore
|
|
666
|
+
(...b) => i(n) && i(n)(...b))
|
|
666
667
|
}, [
|
|
667
|
-
|
|
668
|
+
g(C.$slots, "default", { close: i(n) })
|
|
668
669
|
], 34)
|
|
669
670
|
], 2)
|
|
670
671
|
], 2)
|
|
671
|
-
], 32)) :
|
|
672
|
+
], 32)) : w("", !0)
|
|
672
673
|
]),
|
|
673
674
|
_: 3
|
|
674
675
|
}, 8, ["onAfterEnter"])
|
|
675
676
|
])) : (l(), S(U, {
|
|
676
677
|
key: 1,
|
|
677
678
|
size: e.popupSize,
|
|
678
|
-
onClose:
|
|
679
|
+
onClose: i(n)
|
|
679
680
|
}, {
|
|
680
|
-
button:
|
|
681
|
-
|
|
681
|
+
button: $(() => [
|
|
682
|
+
g(C.$slots, "header-btn", { close: i(n) })
|
|
682
683
|
]),
|
|
683
|
-
default:
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
class:
|
|
687
|
-
onWheel:
|
|
684
|
+
default: $(({ close: b }) => [
|
|
685
|
+
r("div", Je, [
|
|
686
|
+
r("div", {
|
|
687
|
+
class: y(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
688
|
+
onWheel: d[5] || (d[5] = B(() => {
|
|
688
689
|
}, ["prevent"])),
|
|
689
|
-
onTouchmove:
|
|
690
|
+
onTouchmove: d[6] || (d[6] = B(() => {
|
|
690
691
|
}, ["prevent"]))
|
|
691
692
|
}, [
|
|
692
|
-
e.title ? (l(),
|
|
693
|
+
e.title ? (l(), c("h4", Qe, _(e.title), 1)) : w("", !0)
|
|
693
694
|
], 34),
|
|
694
|
-
|
|
695
|
+
g(C.$slots, "default", { close: b })
|
|
695
696
|
])
|
|
696
697
|
]),
|
|
697
698
|
_: 3
|
|
@@ -700,17 +701,17 @@ const Le = W({ name: "ri-arrow-down-s-line", render: Ee }), Te = { class: "w-ful
|
|
|
700
701
|
}
|
|
701
702
|
});
|
|
702
703
|
export {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
704
|
+
Ye as V,
|
|
705
|
+
lt as _,
|
|
706
|
+
Ze as a,
|
|
707
|
+
at as b,
|
|
708
|
+
we as c,
|
|
709
|
+
et as d,
|
|
710
|
+
tt as e,
|
|
711
|
+
Ae as f,
|
|
712
|
+
Ve as g,
|
|
713
|
+
Ce as h,
|
|
714
|
+
ve as i,
|
|
714
715
|
J as j,
|
|
715
716
|
Q as k,
|
|
716
717
|
P as l,
|