vuesp-components 2.2.6 → 2.3.1
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 +11 -1
- package/dist/{VDialog.vue_vue_type_script_setup_true_lang-CNTOjVfB.js → VDialog.vue_vue_type_script_setup_true_lang-D6rmM0u5.js} +137 -133
- package/dist/components/index.es.js +1523 -1228
- package/dist/components/script/index.d.ts +2 -0
- package/dist/components/script/index.d.ts.map +1 -1
- package/dist/components/ui/dialog/VDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +7 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionButton.vue.d.ts +27 -0
- package/dist/components/ui/vision/VisionButton.vue.d.ts.map +1 -0
- package/dist/components/ui/vision/VisionCard.vue.d.ts +21 -0
- package/dist/components/ui/vision/VisionCard.vue.d.ts.map +1 -0
- package/dist/components/ui/vision/VisionIcon.vue.d.ts +7 -0
- package/dist/components/ui/vision/VisionIcon.vue.d.ts.map +1 -0
- package/dist/components/ui/vision/VisionInput.vue.d.ts +19 -0
- package/dist/components/ui/vision/VisionInput.vue.d.ts.map +1 -0
- package/dist/components/ui/vision/VisionSearch.vue.d.ts +15 -0
- package/dist/components/ui/vision/VisionSearch.vue.d.ts.map +1 -0
- package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts +3 -0
- package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,6 +161,16 @@ app.use(i18nPlugin, {
|
|
|
161
161
|
- `VExpansion` - Expansion panel
|
|
162
162
|
- `VList` - List component
|
|
163
163
|
|
|
164
|
+
### Shared Visual Components
|
|
165
|
+
- `VisionIcon` - Lightweight stroke icon set
|
|
166
|
+
- `VisionButton` - Link/button with shared visual variants
|
|
167
|
+
- `VisionCard` - Glass card container
|
|
168
|
+
- `VisionInput` - Glass text input
|
|
169
|
+
- `VisionSearch` - Search dialog with keyboard shortcut
|
|
170
|
+
- `VisionThemeToggle` - Light/dark theme switch
|
|
171
|
+
|
|
172
|
+
These components are shared by `vuesp.ru`, `docs.vuesp.ru`, `lk.vuesp.ru` and the embedded device UI. Site-specific shells (for example the LK sidebar) stay in the site repository.
|
|
173
|
+
|
|
164
174
|
### App Components
|
|
165
175
|
- `AppHeader` - Header with theme toggle
|
|
166
176
|
- `AppNav` - Navigation menu
|
|
@@ -220,7 +230,7 @@ Important: import `theme.css` **inside the Tailwind entry** (the file that impor
|
|
|
220
230
|
|
|
221
231
|
The MIT License (MIT)
|
|
222
232
|
|
|
223
|
-
Copyright (c) 2021-2025, bondrogeen
|
|
233
|
+
Copyright (c) 2021-2025, bondrogeen
|
|
224
234
|
|
|
225
235
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
226
236
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as a, createElementBlock as c, createStaticVNode as ae, createElementVNode as r, defineComponent as E, computed as z, createBlock as O, resolveDynamicComponent as q, mergeProps as M, withCtx as $, normalizeClass as w, renderSlot as v, createCommentVNode as k, markRaw as H, shallowRef as R, Teleport as K, createVNode as S, Transition as A, unref as i, withModifiers as V, normalizeStyle as D, ref as G, withDirectives as ne, Fragment as J, renderList as Q, createTextVNode as N, toDisplayString as _, withKeys as se, createPropsRestProxy as re, normalizeProps as ie, guardReactiveProps as ce } from "vue";
|
|
2
2
|
import { u as U, a as de, b as X, c as Y } from "./useDialog-ALG4kFE7.js";
|
|
3
3
|
const W = (e, t) => {
|
|
4
4
|
const n = e.__vccOpts || e;
|
|
@@ -10,7 +10,7 @@ const W = (e, t) => {
|
|
|
10
10
|
fill: "currentColor"
|
|
11
11
|
};
|
|
12
12
|
function me(e, t) {
|
|
13
|
-
return
|
|
13
|
+
return a(), c("svg", fe, [...t[0] || (t[0] = [
|
|
14
14
|
ae('<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
|
}
|
|
@@ -21,7 +21,7 @@ const lt = /* @__PURE__ */ W(ue, [["render", me]]), he = {}, be = {
|
|
|
21
21
|
fill: "currentColor"
|
|
22
22
|
};
|
|
23
23
|
function ve(e, t) {
|
|
24
|
-
return
|
|
24
|
+
return a(), c("svg", be, [...t[0] || (t[0] = [
|
|
25
25
|
r("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
26
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)
|
|
@@ -33,7 +33,7 @@ const ot = /* @__PURE__ */ W(he, [["render", ve]]), ge = {}, xe = {
|
|
|
33
33
|
viewBox: "0 0 24 24"
|
|
34
34
|
};
|
|
35
35
|
function pe(e, t) {
|
|
36
|
-
return
|
|
36
|
+
return a(), c("svg", xe, [...t[0] || (t[0] = [
|
|
37
37
|
r("circle", {
|
|
38
38
|
class: "opacity-25",
|
|
39
39
|
cx: "12",
|
|
@@ -62,29 +62,29 @@ const ye = /* @__PURE__ */ W(ge, [["render", pe]]), we = "relative flex justify-
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["click"],
|
|
64
64
|
setup(e, { emit: t }) {
|
|
65
|
-
const n = t, h = (
|
|
65
|
+
const n = t, h = (B) => n("click", B), u = e.outline ? "border border-green-500/30 text-green-600 dark:text-green-400" : "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400", l = e.outline ? "border border-red-500/30 text-red-600 dark:text-red-400" : "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400", s = e.outline ? "border border-gray-300/70 text-gray-700 dark:border-white/15 dark:text-white/70" : "border border-gray-200/70 bg-white/50 text-gray-700 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70", x = e.outline ? "border border-[var(--accent-blue)] text-[var(--accent-blue)]" : "bg-[var(--accent-blue)] text-white shadow-[0_8px_24px_-12px_rgba(37,99,235,0.9)] hover:brightness-110", b = e.outline ? "border border-[var(--accent-indigo)] text-[var(--accent-indigo)]" : "bg-[var(--accent-indigo)] text-white shadow-[0_8px_24px_-12px_rgba(99,102,241,0.9)] hover:brightness-110", m = e.outline ? "border border-[var(--accent-violet)] text-[var(--accent-violet)]" : "bg-[var(--accent-violet)] text-white shadow-[0_8px_24px_-12px_rgba(139,92,246,0.9)] hover:brightness-110", g = e.outline ? "border border-[var(--accent-emerald)] text-[var(--accent-emerald)]" : "bg-[var(--accent-emerald)] text-white shadow-[0_8px_24px_-12px_rgba(16,185,129,0.9)] hover:brightness-110", L = e.outline ? "border border-[var(--accent-amber)] text-[var(--accent-amber)]" : "bg-[var(--accent-amber)] text-[#231400] shadow-[0_8px_24px_-12px_rgba(245,158,11,0.9)] hover:brightness-110", C = e.outline ? "border border-[var(--accent-rose)] text-[var(--accent-rose)]" : "bg-[var(--accent-rose)] text-white shadow-[0_8px_24px_-12px_rgba(244,63,94,0.9)] hover:brightness-110", d = e.outline ? "border border-[var(--accent-slate)] text-[var(--accent-slate)]" : "bg-[var(--accent-slate)] text-white shadow-[0_8px_24px_-12px_rgba(71,85,105,0.9)] hover:brightness-110", f = (e.outline, ""), p = { green: u, red: l, gray: s, blue: x, indigo: b, violet: m, emerald: g, amber: L, rose: C, slate: d, transparent: f }, y = {
|
|
66
66
|
button: "px-3",
|
|
67
67
|
icon: "rounded-md border border-gray-200/70 dark:border-white/10"
|
|
68
|
-
},
|
|
68
|
+
}, o = {
|
|
69
69
|
button: { sm: "h-8", md: "h-10", lg: "h-12", xl: "h-14" },
|
|
70
70
|
icon: { sm: "size-8", md: "size-10", lg: "size-12", xl: "size-14" }
|
|
71
|
-
},
|
|
71
|
+
}, T = z(() => [we, oe(e.color), le(e.type), P(e.type, e.size)]), I = z(() => e.href || e.to ? "router-link" : "button"), P = (B, j) => {
|
|
72
72
|
var F;
|
|
73
|
-
return ((F =
|
|
74
|
-
}, le = (
|
|
75
|
-
return (
|
|
73
|
+
return ((F = o[B]) == null ? void 0 : F[j]) || "";
|
|
74
|
+
}, le = (B) => (y == null ? void 0 : y[B]) || "", oe = (B) => p == null ? void 0 : p[B];
|
|
75
|
+
return (B, j) => (a(), O(q(I.value), M(B.$attrs, {
|
|
76
76
|
href: e.href,
|
|
77
77
|
to: e.to,
|
|
78
|
-
class:
|
|
78
|
+
class: T.value,
|
|
79
79
|
onClick: h
|
|
80
80
|
}), {
|
|
81
81
|
default: $(() => [
|
|
82
82
|
r("span", {
|
|
83
83
|
class: w(e.loading ? "opacity-0" : "")
|
|
84
84
|
}, [
|
|
85
|
-
|
|
85
|
+
v(B.$slots, "default")
|
|
86
86
|
], 2),
|
|
87
|
-
e.loading ? (
|
|
87
|
+
e.loading ? (a(), O(ye, {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "absolute left-1/2 -translate-x-1/2"
|
|
90
90
|
})) : k("", !0)
|
|
@@ -98,7 +98,7 @@ const ye = /* @__PURE__ */ W(ge, [["render", pe]]), we = "relative flex justify-
|
|
|
98
98
|
height: "1.2em"
|
|
99
99
|
};
|
|
100
100
|
function $e(e, t) {
|
|
101
|
-
return
|
|
101
|
+
return a(), c("svg", ke, [...t[0] || (t[0] = [
|
|
102
102
|
r("path", {
|
|
103
103
|
fill: "currentColor",
|
|
104
104
|
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"
|
|
@@ -113,22 +113,22 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
113
113
|
},
|
|
114
114
|
emits: ["close", "click", "open"],
|
|
115
115
|
setup(e, { emit: t }) {
|
|
116
|
-
const n = t, { show: h, overlay: u, onClose: l, onOpen: s } = U(n), x = R(null),
|
|
117
|
-
n("click",
|
|
118
|
-
}, open: s, set: (
|
|
119
|
-
|
|
120
|
-
} },
|
|
116
|
+
const n = t, { show: h, overlay: u, onClose: l, onOpen: s } = U(n), x = R(null), b = R(null), { opacity: m, transform: g } = de(x, b, l), d = { click: (y) => {
|
|
117
|
+
n("click", y);
|
|
118
|
+
}, open: s, set: (y) => {
|
|
119
|
+
y ? s() : l(new Event("hide"));
|
|
120
|
+
} }, f = z(() => ({
|
|
121
121
|
auto: "max-h-[calc(100dvh-50px)]",
|
|
122
122
|
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
123
123
|
screen: "h-dvh"
|
|
124
|
-
})),
|
|
124
|
+
})), p = z(() => ({
|
|
125
125
|
auto: "max-h-[calc(100dvh-50px-16px)]",
|
|
126
126
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
127
127
|
screen: "h-[calc(100dvh-16px)]"
|
|
128
128
|
}));
|
|
129
|
-
return (
|
|
130
|
-
const
|
|
131
|
-
return
|
|
129
|
+
return (y, o) => {
|
|
130
|
+
const T = ee, I = Z;
|
|
131
|
+
return a(), O(K, { to: "body" }, [
|
|
132
132
|
S(A, {
|
|
133
133
|
"enter-active-class": "duration-300 ease-out",
|
|
134
134
|
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
@@ -138,40 +138,40 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
138
138
|
"leave-to-class": "transform opacity-0 translate-y-full xl:-translate-y-2"
|
|
139
139
|
}, {
|
|
140
140
|
default: $(() => [
|
|
141
|
-
i(h) ? (
|
|
141
|
+
i(h) ? (a(), c("div", {
|
|
142
142
|
key: 0,
|
|
143
143
|
ref_key: "container",
|
|
144
|
-
ref:
|
|
144
|
+
ref: b,
|
|
145
145
|
class: "fixed bottom-0 left-0 w-full z-15"
|
|
146
146
|
}, [
|
|
147
|
-
i(u) ? (
|
|
147
|
+
i(u) ? (a(), c("div", {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
150
|
-
style:
|
|
151
|
-
onClick:
|
|
150
|
+
style: D({ opacity: i(m) }),
|
|
151
|
+
onClick: o[0] || (o[0] = //@ts-ignore
|
|
152
152
|
(...P) => i(l) && i(l)(...P)),
|
|
153
|
-
onWheel:
|
|
153
|
+
onWheel: o[1] || (o[1] = V(() => {
|
|
154
154
|
}, ["prevent"])),
|
|
155
|
-
onTouchmove:
|
|
155
|
+
onTouchmove: o[2] || (o[2] = V(() => {
|
|
156
156
|
}, ["prevent"]))
|
|
157
157
|
}, null, 36)) : k("", !0),
|
|
158
158
|
r("div", {
|
|
159
|
-
class: w(["glass-popover relative w-full rounded-t-lg border-t shadow-nav",
|
|
160
|
-
style:
|
|
159
|
+
class: w(["glass-popover relative w-full rounded-t-lg border-t shadow-nav", f.value[e.size]]),
|
|
160
|
+
style: D({ transform: i(g) })
|
|
161
161
|
}, [
|
|
162
162
|
r("div", {
|
|
163
163
|
ref_key: "target",
|
|
164
164
|
ref: x,
|
|
165
165
|
class: "flex justify-center py-3 md:pb-6",
|
|
166
|
-
onWheel:
|
|
166
|
+
onWheel: o[3] || (o[3] = V(() => {
|
|
167
167
|
}, ["prevent"])),
|
|
168
|
-
onTouchmove:
|
|
168
|
+
onTouchmove: o[4] || (o[4] = V(() => {
|
|
169
169
|
}, ["prevent"]))
|
|
170
|
-
}, [...
|
|
170
|
+
}, [...o[5] || (o[5] = [
|
|
171
171
|
r("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
|
|
172
172
|
])], 544),
|
|
173
173
|
r("div", Ce, [
|
|
174
|
-
|
|
174
|
+
v(y.$slots, "button", { close: i(l) }),
|
|
175
175
|
S(I, {
|
|
176
176
|
class: "size-5 md:size-6",
|
|
177
177
|
color: "transparent",
|
|
@@ -181,15 +181,15 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
181
181
|
onClick: i(l)
|
|
182
182
|
}, {
|
|
183
183
|
default: $(() => [
|
|
184
|
-
S(
|
|
184
|
+
S(T, { class: "size-5" })
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
}, 8, ["onClick"])
|
|
188
188
|
]),
|
|
189
189
|
r("div", {
|
|
190
|
-
class: w(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar",
|
|
190
|
+
class: w(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", p.value[e.size]])
|
|
191
191
|
}, [
|
|
192
|
-
|
|
192
|
+
v(y.$slots, "default", {
|
|
193
193
|
close: i(l),
|
|
194
194
|
on: d
|
|
195
195
|
})
|
|
@@ -226,27 +226,27 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
226
226
|
},
|
|
227
227
|
emits: ["click", "show", "close"],
|
|
228
228
|
setup(e, { emit: t }) {
|
|
229
|
-
const n = t, u = X(Y).greaterOrEqual("lg"), l = G(!1), s =
|
|
230
|
-
u.value && l.value &&
|
|
231
|
-
},
|
|
232
|
-
n("click", l.value), !e.disabled && (l.value ? e.hideOnClick &&
|
|
233
|
-
},
|
|
234
|
-
l.value = !0, n("show",
|
|
235
|
-
},
|
|
236
|
-
l.value = !1, n("close",
|
|
237
|
-
}, L = (
|
|
238
|
-
|
|
229
|
+
const n = t, u = X(Y).greaterOrEqual("lg"), l = G(!1), s = z(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), x = (f) => {
|
|
230
|
+
u.value && l.value && g(f);
|
|
231
|
+
}, b = (f) => {
|
|
232
|
+
n("click", l.value), !e.disabled && (l.value ? e.hideOnClick && g(f) : m(f));
|
|
233
|
+
}, m = (f) => {
|
|
234
|
+
l.value = !0, n("show", f);
|
|
235
|
+
}, g = (f) => {
|
|
236
|
+
l.value = !1, n("close", f);
|
|
237
|
+
}, L = (f) => {
|
|
238
|
+
f ? m(new Event("show")) : g(new Event("hide"));
|
|
239
239
|
}, C = () => {
|
|
240
|
-
|
|
241
|
-
}, d = { click:
|
|
242
|
-
return (
|
|
240
|
+
g(new Event("hide"));
|
|
241
|
+
}, d = { click: b, open: m, set: L };
|
|
242
|
+
return (f, p) => ne((a(), c("div", Be, [
|
|
243
243
|
r("div", Ve, [
|
|
244
|
-
|
|
244
|
+
v(f.$slots, "activator", {
|
|
245
245
|
on: d,
|
|
246
246
|
isShow: l.value
|
|
247
247
|
})
|
|
248
248
|
]),
|
|
249
|
-
i(u) ? (
|
|
249
|
+
i(u) ? (a(), O(A, {
|
|
250
250
|
key: 0,
|
|
251
251
|
"enter-active-class": "duration-300 ease-out",
|
|
252
252
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
@@ -256,31 +256,31 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
256
256
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
257
257
|
}, {
|
|
258
258
|
default: $(() => [
|
|
259
|
-
l.value ? (
|
|
259
|
+
l.value ? (a(), c("div", {
|
|
260
260
|
key: 0,
|
|
261
261
|
class: "z-30 min-w-full absolute",
|
|
262
|
-
style:
|
|
262
|
+
style: D(s.value)
|
|
263
263
|
}, [
|
|
264
|
-
|
|
264
|
+
v(f.$slots, "default", {
|
|
265
265
|
on: d,
|
|
266
|
-
show:
|
|
267
|
-
hide:
|
|
266
|
+
show: m,
|
|
267
|
+
hide: g,
|
|
268
268
|
isShow: l.value
|
|
269
269
|
})
|
|
270
270
|
], 4)) : k("", !0)
|
|
271
271
|
]),
|
|
272
272
|
_: 3
|
|
273
273
|
})) : k("", !0),
|
|
274
|
-
!i(u) && l.value ? (
|
|
274
|
+
!i(u) && l.value ? (a(), O(te, {
|
|
275
275
|
key: 1,
|
|
276
276
|
title: e.title,
|
|
277
277
|
onClose: C
|
|
278
278
|
}, {
|
|
279
|
-
default: $(({ on:
|
|
280
|
-
|
|
281
|
-
on:
|
|
282
|
-
show:
|
|
283
|
-
hide:
|
|
279
|
+
default: $(({ on: y }) => [
|
|
280
|
+
v(f.$slots, "default", {
|
|
281
|
+
on: y,
|
|
282
|
+
show: m,
|
|
283
|
+
hide: g,
|
|
284
284
|
isShow: l.value
|
|
285
285
|
})
|
|
286
286
|
]),
|
|
@@ -298,13 +298,13 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
298
298
|
emits: ["click"],
|
|
299
299
|
setup(e, { emit: t }) {
|
|
300
300
|
const n = t, h = (u, l) => n("click", u, l);
|
|
301
|
-
return (u, l) => (
|
|
302
|
-
(
|
|
301
|
+
return (u, l) => (a(), c("ul", Oe, [
|
|
302
|
+
(a(!0), c(J, null, Q(e.items, (s) => (a(), c("li", {
|
|
303
303
|
key: s.name,
|
|
304
304
|
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]",
|
|
305
305
|
onClick: (x) => h(s, x)
|
|
306
306
|
}, [
|
|
307
|
-
|
|
307
|
+
v(u.$slots, "default", { item: s }, () => [
|
|
308
308
|
N(_(s.name), 1)
|
|
309
309
|
])
|
|
310
310
|
], 8, _e))), 128))
|
|
@@ -318,11 +318,11 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
318
318
|
},
|
|
319
319
|
setup(e) {
|
|
320
320
|
const t = 2 * (e.rssi + 100), n = (h) => h < t;
|
|
321
|
-
return (h, u) => (
|
|
322
|
-
(
|
|
321
|
+
return (h, u) => (a(), c("div", Le, [
|
|
322
|
+
(a(), c(J, null, Q([10, 15, 25, 40, 70], (l, s) => r("div", {
|
|
323
323
|
key: l,
|
|
324
324
|
class: w(["w-1 h-5 rounded-lg", [n(l) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
|
|
325
|
-
style:
|
|
325
|
+
style: D(`height: ${(s + 1) * 5}px`),
|
|
326
326
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
327
327
|
}, null, 14, Te)), 64)),
|
|
328
328
|
r("div", De, _(e.channel), 1)
|
|
@@ -334,7 +334,7 @@ const ee = H({ name: "ri-close-line", render: $e }), Ce = { class: "flex items-c
|
|
|
334
334
|
height: "1.2em"
|
|
335
335
|
};
|
|
336
336
|
function Pe(e, t) {
|
|
337
|
-
return
|
|
337
|
+
return a(), c("svg", Ie, [...t[0] || (t[0] = [
|
|
338
338
|
r("path", {
|
|
339
339
|
fill: "currentColor",
|
|
340
340
|
d: "m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z"
|
|
@@ -360,57 +360,60 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
360
360
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
361
361
|
setup(e, { emit: t }) {
|
|
362
362
|
const n = t, h = {
|
|
363
|
-
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
|
|
363
|
+
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",
|
|
364
364
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
365
|
-
}, u = G(!1), l =
|
|
365
|
+
}, u = G(!1), l = z(() => [
|
|
366
366
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
367
367
|
e.message ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
|
|
368
368
|
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"
|
|
369
|
-
]), s =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
369
|
+
]), s = z(() => h[e.component]), x = (o) => o || o === 0, b = z(() => u.value || x(e.modelValue) || e.active), m = z(() => [
|
|
370
|
+
b.value ? je : "",
|
|
371
|
+
b.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"
|
|
372
|
+
]), g = z(() => e.component === "input"), L = (o) => {
|
|
373
|
+
u.value = !1, n("blur", o);
|
|
374
|
+
}, C = (o) => {
|
|
375
|
+
u.value = !0, n("focus", o);
|
|
376
|
+
}, d = ({ target: o }) => n("update:modelValue", o.value), f = (o) => n("enter", o), p = (o) => n("click", o), y = (o) => {
|
|
377
|
+
e.disabled || n("on-icon", o);
|
|
375
378
|
};
|
|
376
|
-
return (
|
|
379
|
+
return (o, T) => (a(), c("div", Ae, [
|
|
377
380
|
r("label", {
|
|
378
381
|
class: w(["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", l.value])
|
|
379
382
|
}, [
|
|
380
383
|
r("span", {
|
|
381
|
-
class: w(["absolute left-3.5 -translate-y-1/2 rounded
|
|
384
|
+
class: w(["absolute left-3.5 -translate-y-1/2 rounded transition-all", m.value])
|
|
382
385
|
}, _(e.label), 3),
|
|
383
|
-
(
|
|
386
|
+
(a(), O(q(e.component), M(o.$attrs, {
|
|
384
387
|
value: e.modelValue,
|
|
385
388
|
disabled: !!e.disabled,
|
|
386
389
|
type: e.type,
|
|
387
390
|
readonly: e.readonly,
|
|
388
|
-
rows:
|
|
389
|
-
wrap:
|
|
391
|
+
rows: g.value ? null : "2",
|
|
392
|
+
wrap: g.value ? null : "soft",
|
|
390
393
|
class: s.value,
|
|
391
|
-
onFocus:
|
|
392
|
-
onBlur:
|
|
393
|
-
onInput:
|
|
394
|
-
onClick:
|
|
395
|
-
onKeypress: se(
|
|
394
|
+
onFocus: C,
|
|
395
|
+
onBlur: L,
|
|
396
|
+
onInput: d,
|
|
397
|
+
onClick: p,
|
|
398
|
+
onKeypress: se(f, ["enter"])
|
|
396
399
|
}), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
|
|
397
|
-
|
|
400
|
+
o.$slots.icon ? (a(), c("button", {
|
|
398
401
|
key: 0,
|
|
399
402
|
disabled: !!e.disabled,
|
|
400
403
|
class: w([{ "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"]),
|
|
401
404
|
onClick: y
|
|
402
405
|
}, [
|
|
403
|
-
|
|
406
|
+
v(o.$slots, "icon")
|
|
404
407
|
], 10, Ne)) : k("", !0)
|
|
405
408
|
], 2),
|
|
406
|
-
e.hideMessage ? k("", !0) : (
|
|
407
|
-
|
|
409
|
+
e.hideMessage ? k("", !0) : (a(), c("div", We, [
|
|
410
|
+
v(o.$slots, "message", {}, () => [
|
|
408
411
|
N(_(e.message), 1)
|
|
409
412
|
])
|
|
410
413
|
]))
|
|
411
414
|
]));
|
|
412
415
|
}
|
|
413
|
-
}), Re = { class: "glass-popover min-w-50 rounded-md pb-6 transition-all duration-300 lg:pb-0" }, qe = {
|
|
416
|
+
}), Re = { class: "glass-popover min-w-50 w-full rounded-md pb-6 transition-all duration-300 lg:pb-0" }, qe = {
|
|
414
417
|
key: 0,
|
|
415
418
|
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
416
419
|
}, He = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, nt = /* @__PURE__ */ E({
|
|
@@ -438,12 +441,12 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
438
441
|
}
|
|
439
442
|
return (l, s) => {
|
|
440
443
|
const x = Me;
|
|
441
|
-
return
|
|
444
|
+
return a(), O(Se, M(n, {
|
|
442
445
|
"hide-on-click": !1,
|
|
443
446
|
class: "relative"
|
|
444
447
|
}), {
|
|
445
|
-
activator: $(({ on:
|
|
446
|
-
|
|
448
|
+
activator: $(({ on: b, isShow: m }) => [
|
|
449
|
+
v(l.$slots, "activator", ie(ce({ on: b, isShow: m })), () => [
|
|
447
450
|
S(Fe, {
|
|
448
451
|
"model-value": e.modelValue,
|
|
449
452
|
disabled: e.disabled,
|
|
@@ -451,29 +454,29 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
451
454
|
readonly: "",
|
|
452
455
|
hideMessage: "",
|
|
453
456
|
active: "",
|
|
454
|
-
onClick:
|
|
455
|
-
onOnIcon:
|
|
457
|
+
onClick: b.click,
|
|
458
|
+
onOnIcon: b.click
|
|
456
459
|
}, {
|
|
457
460
|
icon: $(() => [
|
|
458
461
|
S(x, {
|
|
459
|
-
class: w(["transition duration-300",
|
|
462
|
+
class: w(["transition duration-300", m ? "rotate-x-180" : ""])
|
|
460
463
|
}, null, 8, ["class"])
|
|
461
464
|
]),
|
|
462
465
|
_: 2
|
|
463
466
|
}, 1032, ["model-value", "disabled", "label", "onClick", "onOnIcon"])
|
|
464
467
|
])
|
|
465
468
|
]),
|
|
466
|
-
default: $(({ on:
|
|
469
|
+
default: $(({ on: b }) => [
|
|
467
470
|
r("div", Re, [
|
|
468
|
-
e.label ? (
|
|
471
|
+
e.label ? (a(), c("h4", qe, _(e.label), 1)) : k("", !0),
|
|
469
472
|
r("div", He, [
|
|
470
473
|
S(Ee, {
|
|
471
474
|
items: e.items,
|
|
472
|
-
onClick: (
|
|
475
|
+
onClick: (m) => u(m, b)
|
|
473
476
|
}, {
|
|
474
|
-
default: $(({ item:
|
|
475
|
-
|
|
476
|
-
N(_(
|
|
477
|
+
default: $(({ item: m }) => [
|
|
478
|
+
v(l.$slots, "item", { item: m }, () => [
|
|
479
|
+
N(_(m.name), 1)
|
|
477
480
|
])
|
|
478
481
|
]),
|
|
479
482
|
_: 3
|
|
@@ -502,15 +505,15 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
502
505
|
disabled: { type: Boolean }
|
|
503
506
|
},
|
|
504
507
|
setup(e) {
|
|
505
|
-
return (t, n) => (
|
|
508
|
+
return (t, n) => (a(), c("div", {
|
|
506
509
|
class: w(["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 }])
|
|
507
510
|
}, [
|
|
508
|
-
e.loading ? (
|
|
509
|
-
e.loading ? (
|
|
510
|
-
e.title ? (
|
|
511
|
+
e.loading ? (a(), c("div", Ke)) : k("", !0),
|
|
512
|
+
e.loading ? (a(), c("div", Ge)) : k("", !0),
|
|
513
|
+
e.title ? (a(), c("div", Je, [
|
|
511
514
|
r("h3", Qe, _(e.title), 1),
|
|
512
515
|
r("div", null, [
|
|
513
|
-
|
|
516
|
+
v(t.$slots, "header")
|
|
514
517
|
])
|
|
515
518
|
])) : k("", !0),
|
|
516
519
|
r("div", {
|
|
@@ -518,7 +521,7 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
518
521
|
inert: e.disabled,
|
|
519
522
|
"aria-disabled": e.disabled || void 0
|
|
520
523
|
}, [
|
|
521
|
-
|
|
524
|
+
v(t.$slots, "default")
|
|
522
525
|
], 8, Ue)
|
|
523
526
|
], 2));
|
|
524
527
|
}
|
|
@@ -539,22 +542,22 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
539
542
|
},
|
|
540
543
|
emits: ["close", "click", "open"],
|
|
541
544
|
setup(e, { expose: t, emit: n }) {
|
|
542
|
-
const h = n, u = X(Y), { show: l, onClose: s, onOpen: x } = U(h, e.timeout),
|
|
545
|
+
const h = n, u = X(Y), { show: l, onClose: s, onOpen: x } = U(h, e.timeout), b = {
|
|
543
546
|
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
544
547
|
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
545
548
|
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
546
549
|
full: "relative max-w-full w-full h-3/4 "
|
|
547
|
-
},
|
|
550
|
+
}, m = {
|
|
548
551
|
none: "",
|
|
549
552
|
white: "glass-panel",
|
|
550
553
|
gray: ""
|
|
551
|
-
},
|
|
554
|
+
}, g = z(() => [b[e.size], m[e.color]]), L = u.greaterOrEqual("lg");
|
|
552
555
|
return t({
|
|
553
556
|
show: l,
|
|
554
557
|
onClose: s
|
|
555
558
|
}), (C, d) => {
|
|
556
|
-
const
|
|
557
|
-
return e.isOnlyDialog || i(L) ? (
|
|
559
|
+
const f = ee;
|
|
560
|
+
return e.isOnlyDialog || i(L) ? (a(), O(K, {
|
|
558
561
|
key: 0,
|
|
559
562
|
to: "body"
|
|
560
563
|
}, [
|
|
@@ -568,7 +571,7 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
568
571
|
onAfterEnter: i(x)
|
|
569
572
|
}, {
|
|
570
573
|
default: $(() => [
|
|
571
|
-
i(l) ? (
|
|
574
|
+
i(l) ? (a(), c("div", {
|
|
572
575
|
key: 0,
|
|
573
576
|
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
574
577
|
onWheel: d[4] || (d[4] = V(() => {
|
|
@@ -577,40 +580,41 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
577
580
|
r("div", {
|
|
578
581
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
579
582
|
onClick: d[0] || (d[0] = //@ts-ignore
|
|
580
|
-
(...
|
|
583
|
+
(...p) => i(s) && i(s)(...p))
|
|
581
584
|
}),
|
|
582
585
|
r("div", {
|
|
583
586
|
class: w(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
584
587
|
}, [
|
|
585
588
|
r("div", {
|
|
586
|
-
class: w(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg",
|
|
589
|
+
class: w(["m-auto z-20 flex w-full flex-col overflow-auto overscroll-contain scrollbar bg-transparent shadow-lg", g.value])
|
|
587
590
|
}, [
|
|
588
591
|
r("div", {
|
|
589
|
-
class: w(["flex items-center min-h-14
|
|
592
|
+
class: w(["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" : ""]),
|
|
590
593
|
onWheel: d[1] || (d[1] = V(() => {
|
|
591
594
|
}, ["prevent"])),
|
|
592
595
|
onTouchmove: d[2] || (d[2] = V(() => {
|
|
593
596
|
}, ["prevent"]))
|
|
594
597
|
}, [
|
|
595
598
|
r("h4", Xe, _(e.title), 1),
|
|
596
|
-
|
|
599
|
+
v(C.$slots, "header-btn", { close: i(s) }),
|
|
597
600
|
S(Z, {
|
|
598
601
|
color: "transparent",
|
|
599
|
-
|
|
602
|
+
type: "icon",
|
|
603
|
+
size: "sm",
|
|
600
604
|
onClick: i(s)
|
|
601
605
|
}, {
|
|
602
606
|
default: $(() => [
|
|
603
|
-
S(
|
|
607
|
+
S(f)
|
|
604
608
|
]),
|
|
605
609
|
_: 1
|
|
606
610
|
}, 8, ["onClick"])
|
|
607
611
|
], 34),
|
|
608
612
|
r("div", {
|
|
609
|
-
class: w(["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"]),
|
|
613
|
+
class: w(["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"]),
|
|
610
614
|
onClose: d[3] || (d[3] = //@ts-ignore
|
|
611
|
-
(...
|
|
615
|
+
(...p) => i(s) && i(s)(...p))
|
|
612
616
|
}, [
|
|
613
|
-
|
|
617
|
+
v(C.$slots, "default", { close: i(s) })
|
|
614
618
|
], 34)
|
|
615
619
|
], 2)
|
|
616
620
|
], 2)
|
|
@@ -618,15 +622,15 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
618
622
|
]),
|
|
619
623
|
_: 3
|
|
620
624
|
}, 8, ["onAfterEnter"])
|
|
621
|
-
])) : (
|
|
625
|
+
])) : (a(), O(te, {
|
|
622
626
|
key: 1,
|
|
623
627
|
size: e.popupSize,
|
|
624
628
|
onClose: i(s)
|
|
625
629
|
}, {
|
|
626
630
|
button: $(() => [
|
|
627
|
-
|
|
631
|
+
v(C.$slots, "header-btn", { close: i(s) })
|
|
628
632
|
]),
|
|
629
|
-
default: $(({ close:
|
|
633
|
+
default: $(({ close: p }) => [
|
|
630
634
|
r("div", Ye, [
|
|
631
635
|
r("div", {
|
|
632
636
|
class: w(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
@@ -635,9 +639,9 @@ const Me = H({ name: "ri-arrow-up-s-line", render: Pe }), Ae = { class: "w-full
|
|
|
635
639
|
onTouchmove: d[6] || (d[6] = V(() => {
|
|
636
640
|
}, ["prevent"]))
|
|
637
641
|
}, [
|
|
638
|
-
e.title ? (
|
|
642
|
+
e.title ? (a(), c("h4", Ze, _(e.title), 1)) : k("", !0)
|
|
639
643
|
], 34),
|
|
640
|
-
|
|
644
|
+
v(C.$slots, "default", { close: p })
|
|
641
645
|
])
|
|
642
646
|
]),
|
|
643
647
|
_: 3
|