vuesp-components 2.3.1 → 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-DFNvEwYK.js +719 -0
- package/dist/components/dashboard/cards/CardButton.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +1046 -1073
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/button/types.d.ts +7 -2
- 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/index.d.ts +1 -2
- package/dist/components/ui/index.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/dist/style.css +1 -1
- package/dist/theme.css +12 -0
- package/package.json +1 -1
- package/dist/VDialog.vue_vue_type_script_setup_true_lang-D6rmM0u5.js +0 -668
- package/dist/components/ui/vision/VisionButton.vue.d.ts +0 -27
- package/dist/components/ui/vision/VisionButton.vue.d.ts.map +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as M, resolveComponent as Ae, openBlock as
|
|
2
|
-
import { a as ct, V as Pe, j as A, h as Ne, g as Ce, k as
|
|
3
|
-
import { b as
|
|
4
|
-
import { f as
|
|
1
|
+
import { defineComponent as M, resolveComponent as Ae, openBlock as p, createElementBlock as v, Fragment as B, createCommentVNode as z, createElementVNode as a, normalizeClass as T, createVNode as g, withCtx as x, createBlock as I, renderSlot as k, markRaw as O, computed as E, withModifiers as F, toDisplayString as _, unref as q, TransitionGroup as De, renderList as N, mergeProps as j, ref as L, watch as ae, resolveDynamicComponent as me, Transition as ke, normalizeStyle as ve, createTextVNode as H, normalizeProps as K, guardReactiveProps as R, onMounted as Q, onUnmounted as we, reactive as nt, useTemplateRef as Ie, withDirectives as he, vShow as lt, vModelText as He, createSlots as st, isRef as at, useModel as ot, vModelDynamic as it, mergeModels as rt, Teleport as dt, nextTick as je } from "vue";
|
|
2
|
+
import { a as ct, V as Pe, j as A, h as Ne, g as Ce, k as ce, l as ut, d as mt, i as pt, e as se, _ as Oe, f as J } from "../VDialog.vue_vue_type_script_setup_true_lang-DFNvEwYK.js";
|
|
3
|
+
import { b as Jo, m as Zo } from "../VDialog.vue_vue_type_script_setup_true_lang-DFNvEwYK.js";
|
|
4
|
+
import { f as ft, t as vt, g as ht, u as pe, s as gt, d as bt, m as xt, c as yt } from "../app-B45sALrX.js";
|
|
5
5
|
import { d as Me, e as _t, o as $t } from "../useDialog-ALG4kFE7.js";
|
|
6
6
|
import { getDataValue as kt } from "../dashboard/index.es.js";
|
|
7
7
|
import { useForm as wt } from "../composables/index.es.js";
|
|
8
8
|
import { required as Ct, maxLen as Mt } from "../validate/index.es.js";
|
|
9
|
-
const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" },
|
|
9
|
+
const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, ho = /* @__PURE__ */ M({
|
|
10
10
|
__name: "AppAside",
|
|
11
11
|
props: {
|
|
12
12
|
isSidebar: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
emits: ["sidebar"],
|
|
15
15
|
setup(e, { emit: n }) {
|
|
16
|
-
const
|
|
17
|
-
e.isSidebar &&
|
|
16
|
+
const s = n, l = () => {
|
|
17
|
+
e.isSidebar && s("sidebar", !e.isSidebar);
|
|
18
18
|
};
|
|
19
19
|
return (t, r) => {
|
|
20
20
|
const c = Ae("router-link");
|
|
21
|
-
return
|
|
22
|
-
e.isSidebar ? (
|
|
21
|
+
return p(), v(B, null, [
|
|
22
|
+
e.isSidebar ? (p(), v("div", {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
|
|
25
|
-
onClick:
|
|
25
|
+
onClick: l
|
|
26
26
|
})) : z("", !0),
|
|
27
|
-
|
|
28
|
-
class:
|
|
27
|
+
a("aside", {
|
|
28
|
+
class: T([e.isSidebar ? "translate-x-0 lg:w-[90px]" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-[290px] flex-col overflow-y-auto border-r border-gray-200/70 bg-white/70 px-5 backdrop-blur-2xl transition-all duration-350 lg:translate-x-0 dark:border-white/10 dark:bg-[#07112c]/70"])
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
class:
|
|
30
|
+
a("div", {
|
|
31
|
+
class: T([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 border-b border-gray-200/60 pt-6 pb-6 justify-between dark:border-white/5"])
|
|
32
32
|
}, [
|
|
33
33
|
g(c, { to: "/" }, {
|
|
34
34
|
default: x(() => [
|
|
35
|
-
e.isSidebar ? (
|
|
35
|
+
e.isSidebar ? (p(), I(ct, {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "h-[30px] text-primary"
|
|
38
|
-
})) : (
|
|
38
|
+
})) : (p(), I(Pe, {
|
|
39
39
|
key: 1,
|
|
40
40
|
class: "h-[30px] text-primary"
|
|
41
41
|
}))
|
|
@@ -43,7 +43,7 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
43
43
|
_: 1
|
|
44
44
|
})
|
|
45
45
|
], 2),
|
|
46
|
-
|
|
46
|
+
a("div", zt, [
|
|
47
47
|
k(t.$slots, "default")
|
|
48
48
|
])
|
|
49
49
|
], 2)
|
|
@@ -56,8 +56,8 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
56
56
|
height: "1.2em"
|
|
57
57
|
};
|
|
58
58
|
function Vt(e, n) {
|
|
59
|
-
return
|
|
60
|
-
|
|
59
|
+
return p(), v("svg", St, [...n[0] || (n[0] = [
|
|
60
|
+
a("path", {
|
|
61
61
|
fill: "currentColor",
|
|
62
62
|
d: "M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5m15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5m-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5s1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5"
|
|
63
63
|
}, null, -1)
|
|
@@ -68,22 +68,22 @@ const Ue = O({ name: "ri-more-line", render: Vt }), Tt = {
|
|
|
68
68
|
width: "1.2em",
|
|
69
69
|
height: "1.2em"
|
|
70
70
|
};
|
|
71
|
-
function
|
|
72
|
-
return
|
|
73
|
-
|
|
71
|
+
function Lt(e, n) {
|
|
72
|
+
return p(), v("svg", Tt, [...n[0] || (n[0] = [
|
|
73
|
+
a("path", {
|
|
74
74
|
fill: "currentColor",
|
|
75
75
|
d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
|
|
76
76
|
}, null, -1)
|
|
77
77
|
])]);
|
|
78
78
|
}
|
|
79
|
-
const Et = O({ name: "ri-logout-box-line", render:
|
|
79
|
+
const Et = O({ name: "ri-logout-box-line", render: Lt }), Bt = {
|
|
80
80
|
viewBox: "0 0 24 24",
|
|
81
81
|
width: "1.2em",
|
|
82
82
|
height: "1.2em"
|
|
83
83
|
};
|
|
84
84
|
function At(e, n) {
|
|
85
|
-
return
|
|
86
|
-
|
|
85
|
+
return p(), v("svg", Bt, [...n[0] || (n[0] = [
|
|
86
|
+
a("path", {
|
|
87
87
|
fill: "currentColor",
|
|
88
88
|
d: "M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0"
|
|
89
89
|
}, null, -1)
|
|
@@ -95,8 +95,8 @@ const Ke = O({ name: "ri-notification-line", render: At }), Dt = {
|
|
|
95
95
|
height: "1.2em"
|
|
96
96
|
};
|
|
97
97
|
function It(e, n) {
|
|
98
|
-
return
|
|
99
|
-
|
|
98
|
+
return p(), v("svg", Dt, [...n[0] || (n[0] = [
|
|
99
|
+
a("path", {
|
|
100
100
|
fill: "currentColor",
|
|
101
101
|
d: "M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12"
|
|
102
102
|
}, null, -1)
|
|
@@ -108,8 +108,8 @@ const Ht = O({ name: "ri-moon-line", render: It }), jt = {
|
|
|
108
108
|
height: "1.2em"
|
|
109
109
|
};
|
|
110
110
|
function Pt(e, n) {
|
|
111
|
-
return
|
|
112
|
-
|
|
111
|
+
return p(), v("svg", jt, [...n[0] || (n[0] = [
|
|
112
|
+
a("path", {
|
|
113
113
|
fill: "currentColor",
|
|
114
114
|
d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
|
|
115
115
|
}, null, -1)
|
|
@@ -121,14 +121,14 @@ const Nt = O({ name: "ri-sun-line", render: Pt }), Ot = {
|
|
|
121
121
|
height: "1.2em"
|
|
122
122
|
};
|
|
123
123
|
function Ut(e, n) {
|
|
124
|
-
return
|
|
125
|
-
|
|
124
|
+
return p(), v("svg", Ot, [...n[0] || (n[0] = [
|
|
125
|
+
a("path", {
|
|
126
126
|
fill: "currentColor",
|
|
127
127
|
d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
|
|
128
128
|
}, null, -1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-[0_20px_60px_-35px_rgba(0,0,0,0.9)]" }, Ft = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Wt = { class: "container mx-auto flex flex-auto items-center" }, qt = { class: "lg:hidden h-[30px]" }, Gt = { class: "gap-4 hidden lg:flex" }, Jt = { class: "lg:hidden flex gap-4" }, Zt = { class: "ms-2" },
|
|
131
|
+
const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-[0_20px_60px_-35px_rgba(0,0,0,0.9)]" }, Ft = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Wt = { class: "container mx-auto flex flex-auto items-center" }, qt = { class: "lg:hidden h-[30px]" }, Gt = { class: "gap-4 hidden lg:flex" }, Jt = { class: "lg:hidden flex gap-4" }, Zt = { class: "ms-2" }, go = /* @__PURE__ */ M({
|
|
132
132
|
__name: "AppHeader",
|
|
133
133
|
props: {
|
|
134
134
|
changeTheme: { type: Function },
|
|
@@ -136,32 +136,32 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
136
136
|
},
|
|
137
137
|
emits: ["sidebar", "notif"],
|
|
138
138
|
setup(e, { emit: n }) {
|
|
139
|
-
const
|
|
139
|
+
const s = n, l = [
|
|
140
140
|
{ name: "Theme", value: 1 },
|
|
141
141
|
{ name: "Notification", value: 2 },
|
|
142
142
|
{ name: "Logout", value: 3 }
|
|
143
|
-
], t =
|
|
143
|
+
], t = E(() => !!e.notifications.find((i) => i.isNew)), r = (i) => s("sidebar", i), c = (i) => s("notif", i), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), m = () => {
|
|
144
144
|
e.changeTheme && e.changeTheme();
|
|
145
|
-
},
|
|
145
|
+
}, o = ({ value: i }, u) => {
|
|
146
146
|
i == 1 && m(), i == 2 && c(u), i == 3 && d();
|
|
147
147
|
};
|
|
148
148
|
return (i, u) => {
|
|
149
|
-
const
|
|
150
|
-
return
|
|
151
|
-
u[3] || (u[3] =
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
const f = Kt, b = Ae("router-link"), h = Nt, y = Ht, S = Ke, V = Et, w = Ue;
|
|
150
|
+
return p(), v("header", Rt, [
|
|
151
|
+
u[3] || (u[3] = a("div", { class: "pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-white/35 to-transparent" }, null, -1)),
|
|
152
|
+
a("div", Ft, [
|
|
153
|
+
a("div", Wt, [
|
|
154
154
|
g(A, {
|
|
155
155
|
type: "icon",
|
|
156
156
|
onClick: r
|
|
157
157
|
}, {
|
|
158
158
|
default: x(() => [
|
|
159
|
-
g(
|
|
159
|
+
g(f, { class: "size-5" })
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}),
|
|
163
|
-
u[1] || (u[1] =
|
|
164
|
-
|
|
163
|
+
u[1] || (u[1] = a("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
164
|
+
a("div", qt, [
|
|
165
165
|
g(b, { to: "/" }, {
|
|
166
166
|
default: x(() => [
|
|
167
167
|
g(Pe, { class: "h-[30px] text-primary" })
|
|
@@ -169,8 +169,8 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
169
169
|
_: 1
|
|
170
170
|
})
|
|
171
171
|
]),
|
|
172
|
-
u[2] || (u[2] =
|
|
173
|
-
|
|
172
|
+
u[2] || (u[2] = a("div", { class: "flex-auto" }, null, -1)),
|
|
173
|
+
a("div", Gt, [
|
|
174
174
|
g(A, {
|
|
175
175
|
type: "icon",
|
|
176
176
|
onClick: m
|
|
@@ -186,10 +186,10 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
186
186
|
onClick: c
|
|
187
187
|
}, {
|
|
188
188
|
default: x(() => [
|
|
189
|
-
|
|
190
|
-
class:
|
|
189
|
+
a("span", {
|
|
190
|
+
class: T([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
191
191
|
}, [...u[0] || (u[0] = [
|
|
192
|
-
|
|
192
|
+
a("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
193
193
|
])], 2),
|
|
194
194
|
g(S, { class: "size-5" })
|
|
195
195
|
]),
|
|
@@ -205,7 +205,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
205
205
|
_: 1
|
|
206
206
|
})
|
|
207
207
|
]),
|
|
208
|
-
|
|
208
|
+
a("div", Jt, [
|
|
209
209
|
g(Ne, {
|
|
210
210
|
left: "unset",
|
|
211
211
|
right: "0",
|
|
@@ -225,11 +225,11 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
225
225
|
]),
|
|
226
226
|
default: x(() => [
|
|
227
227
|
g(Ce, {
|
|
228
|
-
items:
|
|
229
|
-
onClick:
|
|
228
|
+
items: l,
|
|
229
|
+
onClick: o
|
|
230
230
|
}, {
|
|
231
231
|
default: x(({ item: P }) => [
|
|
232
|
-
|
|
232
|
+
a("span", Zt, _(P.name), 1)
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
})
|
|
@@ -255,12 +255,12 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
255
255
|
},
|
|
256
256
|
emits: ["remove", "read"],
|
|
257
257
|
setup(e, { emit: n }) {
|
|
258
|
-
const
|
|
259
|
-
return (m,
|
|
260
|
-
const i = Ke, u =
|
|
261
|
-
return
|
|
262
|
-
|
|
263
|
-
class:
|
|
258
|
+
const s = e, l = n, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], r = (m) => t[m], c = (m) => l("remove", m), d = (m) => l("read", m);
|
|
259
|
+
return (m, o) => {
|
|
260
|
+
const i = Ke, u = ce;
|
|
261
|
+
return p(), v("div", Xt, [
|
|
262
|
+
a("div", {
|
|
263
|
+
class: T(["absolute left-0 top-0 w-[3px] h-full", r(s.color)])
|
|
264
264
|
}, null, 2),
|
|
265
265
|
g(A, {
|
|
266
266
|
class: "shrink-0",
|
|
@@ -268,18 +268,18 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
268
268
|
onClick: d
|
|
269
269
|
}, {
|
|
270
270
|
default: x(() => [
|
|
271
|
-
|
|
272
|
-
class:
|
|
273
|
-
}, [...
|
|
274
|
-
|
|
271
|
+
a("span", {
|
|
272
|
+
class: T([s.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
273
|
+
}, [...o[0] || (o[0] = [
|
|
274
|
+
a("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
275
275
|
])], 2),
|
|
276
276
|
g(i, { class: "size-5" })
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
279
|
}),
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
a("div", Yt, [
|
|
281
|
+
a("div", null, _(s.text), 1),
|
|
282
|
+
a("div", Qt, _(q(ft)(s.date)) + " (" + _(q(vt)(s.date)) + ")", 1)
|
|
283
283
|
]),
|
|
284
284
|
g(A, {
|
|
285
285
|
class: "shrink-0",
|
|
@@ -298,7 +298,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
298
298
|
}), tn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, nn = {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "flex flex-col gap-2 p-2"
|
|
301
|
-
},
|
|
301
|
+
}, bo = /* @__PURE__ */ M({
|
|
302
302
|
__name: "AppNotification",
|
|
303
303
|
props: {
|
|
304
304
|
value: { type: Boolean },
|
|
@@ -306,19 +306,19 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
306
306
|
},
|
|
307
307
|
emits: ["close", "remove", "read"],
|
|
308
308
|
setup(e, { emit: n }) {
|
|
309
|
-
const
|
|
310
|
-
return (
|
|
311
|
-
|
|
309
|
+
const s = e, l = n, t = E(() => !!s.notifications.find((o) => o.isNew)), r = E(() => !!s.notifications.length), c = (o) => l("close", o), d = (o) => l("remove", o), m = (o) => l("read", o);
|
|
310
|
+
return (o, i) => (p(), v(B, null, [
|
|
311
|
+
s.value ? (p(), v("div", {
|
|
312
312
|
key: 0,
|
|
313
313
|
class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
|
|
314
314
|
onClick: c
|
|
315
315
|
})) : z("", !0),
|
|
316
|
-
|
|
317
|
-
class:
|
|
316
|
+
a("aside", {
|
|
317
|
+
class: T([s.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200/70 flex-col overflow-y-auto transition-all duration-350 dark:border-white/10 bg-white/90 backdrop-blur-2xl dark:bg-[#07112c]/80"])
|
|
318
318
|
}, [
|
|
319
|
-
|
|
320
|
-
k(
|
|
321
|
-
r.value ? (
|
|
319
|
+
a("div", tn, [
|
|
320
|
+
k(o.$slots, "header", { isNew: t.value }),
|
|
321
|
+
r.value ? (p(), v("div", nn, [
|
|
322
322
|
g(De, {
|
|
323
323
|
"enter-active-class": "transition-all duration-300 ",
|
|
324
324
|
"enter-from-class": "opacity-0 translate-x-1/2",
|
|
@@ -328,52 +328,52 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
328
328
|
"leave-to-class": "opacity-0 translate-x-1/2"
|
|
329
329
|
}, {
|
|
330
330
|
default: x(() => [
|
|
331
|
-
(
|
|
331
|
+
(p(!0), v(B, null, N(s.notifications, (u) => (p(), v("div", {
|
|
332
332
|
key: u.date,
|
|
333
333
|
class: "relative"
|
|
334
334
|
}, [
|
|
335
|
-
k(
|
|
335
|
+
k(o.$slots, "card", { item: u }, () => [
|
|
336
336
|
g(en, j({ ref_for: !0 }, u, {
|
|
337
337
|
class: "rounded-md border border-gray-200/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
|
|
338
|
-
onRemove: (
|
|
339
|
-
onRead: (
|
|
338
|
+
onRemove: (f) => d(u),
|
|
339
|
+
onRead: (f) => m(u)
|
|
340
340
|
}), null, 16, ["onRemove", "onRead"])
|
|
341
341
|
])
|
|
342
342
|
]))), 128))
|
|
343
343
|
]),
|
|
344
344
|
_: 3
|
|
345
345
|
})
|
|
346
|
-
])) : k(
|
|
346
|
+
])) : k(o.$slots, "empty", {}, void 0, void 0, 1)
|
|
347
347
|
])
|
|
348
348
|
], 2)
|
|
349
349
|
], 64));
|
|
350
350
|
}
|
|
351
|
-
}),
|
|
352
|
-
function
|
|
353
|
-
return
|
|
354
|
-
n[0] || (n[0] =
|
|
355
|
-
|
|
351
|
+
}), ln = {}, sn = { class: "fixed h-full w-full top-0 left-0 z-20" }, an = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
|
|
352
|
+
function on(e, n) {
|
|
353
|
+
return p(), v("div", sn, [
|
|
354
|
+
n[0] || (n[0] = a("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
|
|
355
|
+
a("div", an, [
|
|
356
356
|
k(e.$slots, "default")
|
|
357
357
|
])
|
|
358
358
|
]);
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const xo = /* @__PURE__ */ ut(ln, [["render", on]]), rn = {
|
|
361
361
|
viewBox: "0 0 24 24",
|
|
362
362
|
width: "1.2em",
|
|
363
363
|
height: "1.2em"
|
|
364
364
|
};
|
|
365
365
|
function dn(e, n) {
|
|
366
|
-
return
|
|
367
|
-
|
|
366
|
+
return p(), v("svg", rn, [...n[0] || (n[0] = [
|
|
367
|
+
a("path", {
|
|
368
368
|
fill: "currentColor",
|
|
369
369
|
d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
|
|
370
370
|
}, null, -1)
|
|
371
371
|
])]);
|
|
372
372
|
}
|
|
373
|
-
const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4 flex flex-col gap-2" }, mn = { class: "size-6 flex-[0_0_24px] opacity-60" },
|
|
373
|
+
const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4 flex flex-col gap-2" }, mn = { class: "size-6 flex-[0_0_24px] opacity-60" }, pn = ["onClick"], fn = { class: "flex flex-col gap-2" }, vn = { class: "flex gap-2 ms-8" }, hn = { class: "size-5 flex-[0_0_24px]" }, gn = { class: "flex-1 first-letter:uppercase text-sm" }, bn = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mt-2"
|
|
376
|
-
}, xn = { class: "flex flex-col gap-2" }, yn = { class: "flex gap-2 ms-14" }, _n = { class: "size-5 flex-[0_0_24px]" }, $n = { class: "flex-1 first-letter:uppercase text-sm" },
|
|
376
|
+
}, xn = { class: "flex flex-col gap-2" }, yn = { class: "flex gap-2 ms-14" }, _n = { class: "size-5 flex-[0_0_24px]" }, $n = { class: "flex-1 first-letter:uppercase text-sm" }, yo = /* @__PURE__ */ M({
|
|
377
377
|
__name: "AppNav",
|
|
378
378
|
props: {
|
|
379
379
|
menu: { default: () => [] },
|
|
@@ -382,12 +382,12 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
382
382
|
},
|
|
383
383
|
emits: ["sidebar"],
|
|
384
384
|
setup(e, { emit: n }) {
|
|
385
|
-
const
|
|
386
|
-
e.isSidebar &&
|
|
387
|
-
}, r = (
|
|
385
|
+
const s = n, l = L(""), t = ({ name: o }) => {
|
|
386
|
+
e.isSidebar && s("sidebar", !e.isSidebar), l.value !== o && (l.value = l.value === o ? "" : o);
|
|
387
|
+
}, r = (o) => e.fullPath === o, c = (o) => o ? e.fullPath === o || e.fullPath.startsWith(o) : !1, d = (o, i) => !o.path || i === "/" || o.path === "/" ? !1 : o.path === i || i.includes(o.path), m = (o, i) => (o == null ? void 0 : o.find(
|
|
388
388
|
(u) => {
|
|
389
|
-
var
|
|
390
|
-
return d(u, i) || ((
|
|
389
|
+
var f;
|
|
390
|
+
return d(u, i) || ((f = u.children) == null ? void 0 : f.some(
|
|
391
391
|
(b) => {
|
|
392
392
|
var h;
|
|
393
393
|
return d(b, i) || ((h = b.children) == null ? void 0 : h.some((y) => d(y, i)));
|
|
@@ -395,77 +395,77 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
395
395
|
));
|
|
396
396
|
}
|
|
397
397
|
)) ?? null;
|
|
398
|
-
return
|
|
398
|
+
return ae(
|
|
399
399
|
() => e.menu,
|
|
400
400
|
() => {
|
|
401
|
-
var
|
|
402
|
-
return
|
|
401
|
+
var o;
|
|
402
|
+
return l.value = ((o = m(e.menu, e.fullPath) ?? ht(e.menu, e.fullPath)) == null ? void 0 : o.name) || "";
|
|
403
403
|
}
|
|
404
|
-
), (
|
|
404
|
+
), (o, i) => {
|
|
405
405
|
const u = cn;
|
|
406
|
-
return
|
|
407
|
-
|
|
408
|
-
(
|
|
409
|
-
key:
|
|
406
|
+
return p(), v("nav", null, [
|
|
407
|
+
a("ul", un, [
|
|
408
|
+
(p(!0), v(B, null, N(e.menu, (f) => (p(), v("li", {
|
|
409
|
+
key: f.name
|
|
410
410
|
}, [
|
|
411
|
-
(
|
|
412
|
-
to:
|
|
413
|
-
class:
|
|
414
|
-
onClick: F((b) => t(
|
|
411
|
+
(p(), I(me(f.path ? "router-link" : "span"), {
|
|
412
|
+
to: f.path,
|
|
413
|
+
class: T(["flex gap-2 items-center px-3 py-2 rounded", r(f.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
|
|
414
|
+
onClick: F((b) => t(f), ["prevent", "stop"])
|
|
415
415
|
}, {
|
|
416
416
|
default: x(() => [
|
|
417
|
-
|
|
418
|
-
k(
|
|
417
|
+
a("div", mn, [
|
|
418
|
+
k(o.$slots, "icon", { item: f })
|
|
419
419
|
]),
|
|
420
|
-
|
|
421
|
-
class:
|
|
422
|
-
}, _(
|
|
423
|
-
|
|
424
|
-
class:
|
|
425
|
-
onClick: F((b) => t(
|
|
420
|
+
a("span", {
|
|
421
|
+
class: T(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
|
|
422
|
+
}, _(f.name), 3),
|
|
423
|
+
a("button", {
|
|
424
|
+
class: T(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
|
|
425
|
+
onClick: F((b) => t(f), ["prevent", "stop"])
|
|
426
426
|
}, [
|
|
427
|
-
|
|
428
|
-
], 10,
|
|
427
|
+
f.children ? (p(), I(u, { key: 0 })) : z("", !0)
|
|
428
|
+
], 10, pn)
|
|
429
429
|
]),
|
|
430
430
|
_: 2
|
|
431
431
|
}, 1032, ["to", "class", "onClick"])),
|
|
432
|
-
|
|
432
|
+
f.children ? (p(), v("div", {
|
|
433
433
|
key: 0,
|
|
434
|
-
class:
|
|
434
|
+
class: T(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", l.value === f.name ? "block" : "hidden"]])
|
|
435
435
|
}, [
|
|
436
|
-
|
|
437
|
-
(
|
|
438
|
-
(
|
|
436
|
+
a("ul", fn, [
|
|
437
|
+
(p(!0), v(B, null, N(f.children, ({ name: b, path: h, icon: y, children: S }) => (p(), v("li", { key: b }, [
|
|
438
|
+
(p(), I(me(h ? "router-link" : "span"), {
|
|
439
439
|
to: h,
|
|
440
|
-
class:
|
|
440
|
+
class: T(["flex gap-2 items-center px-3 py-2 rounded", r(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
|
|
441
441
|
}, {
|
|
442
442
|
default: x(() => [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
k(
|
|
443
|
+
a("div", vn, [
|
|
444
|
+
a("div", hn, [
|
|
445
|
+
k(o.$slots, "icon-children", {
|
|
446
446
|
item: { name: b, path: h, icon: y }
|
|
447
447
|
})
|
|
448
448
|
]),
|
|
449
|
-
|
|
449
|
+
a("span", gn, _(b), 1)
|
|
450
450
|
])
|
|
451
451
|
]),
|
|
452
452
|
_: 2
|
|
453
453
|
}, 1032, ["to", "class"])),
|
|
454
|
-
S != null && S.length && c(h) ? (
|
|
455
|
-
|
|
456
|
-
(
|
|
454
|
+
S != null && S.length && c(h) ? (p(), v("div", bn, [
|
|
455
|
+
a("ul", xn, [
|
|
456
|
+
(p(!0), v(B, null, N(S, (V) => (p(), v("li", {
|
|
457
457
|
key: V.name
|
|
458
458
|
}, [
|
|
459
|
-
(
|
|
459
|
+
(p(), I(me(V.path ? "router-link" : "span"), {
|
|
460
460
|
to: V.path,
|
|
461
|
-
class:
|
|
461
|
+
class: T(["flex gap-2 items-center px-3 py-2 rounded", r(V.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
|
|
462
462
|
}, {
|
|
463
463
|
default: x(() => [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
k(
|
|
464
|
+
a("div", yn, [
|
|
465
|
+
a("div", _n, [
|
|
466
|
+
k(o.$slots, "icon-children", { item: V })
|
|
467
467
|
]),
|
|
468
|
-
|
|
468
|
+
a("span", $n, _(V.name), 1)
|
|
469
469
|
])
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
@@ -491,7 +491,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
491
491
|
}, Mn = {
|
|
492
492
|
key: 1,
|
|
493
493
|
class: "relative mt-2 block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10"
|
|
494
|
-
}, zn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Sn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" },
|
|
494
|
+
}, zn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Sn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, _o = /* @__PURE__ */ M({
|
|
495
495
|
__name: "AppProgress",
|
|
496
496
|
props: {
|
|
497
497
|
timeout: { default: 5e3 },
|
|
@@ -502,17 +502,17 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
502
502
|
length: { default: 0 }
|
|
503
503
|
},
|
|
504
504
|
setup(e) {
|
|
505
|
-
const n =
|
|
505
|
+
const n = L(!1), s = E(() => !!e.length), l = E(() => !!(s.value && t.value === 100 && !e.status)), t = E(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), r = Me(() => {
|
|
506
506
|
n.value = !1;
|
|
507
507
|
}, e.timeout);
|
|
508
|
-
return
|
|
508
|
+
return ae(
|
|
509
509
|
() => [e.size, e.status],
|
|
510
510
|
() => {
|
|
511
511
|
n.value = !0, r();
|
|
512
512
|
}
|
|
513
513
|
), (c, d) => {
|
|
514
|
-
const m =
|
|
515
|
-
return
|
|
514
|
+
const m = ce;
|
|
515
|
+
return p(), I(ke, {
|
|
516
516
|
"enter-active-class": "duration-300 ease-out",
|
|
517
517
|
"enter-from-class": "transform opacity-0 translate-x-full",
|
|
518
518
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -521,31 +521,31 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
521
521
|
"leave-to-class": "transform opacity-0 -translate-y-8"
|
|
522
522
|
}, {
|
|
523
523
|
default: x(() => [
|
|
524
|
-
n.value ? (
|
|
525
|
-
|
|
526
|
-
k(c.$slots, "default", { isDone:
|
|
527
|
-
d[1] || (d[1] =
|
|
528
|
-
|
|
524
|
+
n.value ? (p(), v("div", kn, [
|
|
525
|
+
a("div", wn, [
|
|
526
|
+
k(c.$slots, "default", { isDone: l.value }, () => [
|
|
527
|
+
d[1] || (d[1] = a("div", { class: "flex-auto" }, "Progress...", -1)),
|
|
528
|
+
l.value ? (p(), v("span", Cn, "Done")) : z("", !0)
|
|
529
529
|
]),
|
|
530
|
-
|
|
530
|
+
a("button", {
|
|
531
531
|
class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
|
|
532
|
-
onClick: d[0] || (d[0] = (
|
|
532
|
+
onClick: d[0] || (d[0] = (o) => n.value = !1)
|
|
533
533
|
}, [
|
|
534
534
|
g(m, { class: "size-4" })
|
|
535
535
|
])
|
|
536
536
|
]),
|
|
537
|
-
|
|
537
|
+
s.value ? (p(), v("div", {
|
|
538
538
|
key: 0,
|
|
539
539
|
class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
|
|
540
540
|
style: ve(`width: ${t.value}%`)
|
|
541
541
|
}, null, 4)) : z("", !0),
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
s.value ? (p(), v("div", Mn, [
|
|
543
|
+
a("div", zn, _(t.value) + "%", 1),
|
|
544
|
+
a("div", {
|
|
545
545
|
class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
|
|
546
546
|
style: ve(`width: ${t.value}%`)
|
|
547
547
|
}, [
|
|
548
|
-
|
|
548
|
+
a("div", Sn, _(t.value) + "%", 1)
|
|
549
549
|
], 4)
|
|
550
550
|
])) : z("", !0)
|
|
551
551
|
])) : z("", !0)
|
|
@@ -554,7 +554,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}), Vn = { class: "my-4 text-gray-700 dark:text-gray-400" }, Tn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" },
|
|
557
|
+
}), Vn = { class: "my-4 text-gray-700 dark:text-gray-400" }, Tn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Ln = { class: "flex gap-2" }, En = { class: "text-gray-700 dark:text-gray-400" }, Bn = { class: "flex gap-2" }, An = { class: "flex gap-2" }, Dn = { class: "text-gray-700 dark:text-gray-400" }, In = { class: "flex gap-2" }, Hn = { class: "text-gray-700 dark:text-gray-400" }, jn = { class: "flex flex-col gap-4 text-sm" }, Pn = { class: "flex gap-4" }, $o = /* @__PURE__ */ M({
|
|
558
558
|
__name: "BlockInfo",
|
|
559
559
|
props: {
|
|
560
560
|
pkg: {},
|
|
@@ -568,36 +568,36 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
568
568
|
board: {}
|
|
569
569
|
},
|
|
570
570
|
setup(e) {
|
|
571
|
-
const n =
|
|
572
|
-
var t, r, c, d, m,
|
|
573
|
-
const
|
|
574
|
-
return (t = e.pkg) != null && t.homepage &&
|
|
571
|
+
const n = E(() => e.firmware.join(".")), s = E(() => {
|
|
572
|
+
var t, r, c, d, m, o, i;
|
|
573
|
+
const l = [];
|
|
574
|
+
return (t = e.pkg) != null && t.homepage && l.push({ name: "homepage", href: e.pkg.homepage }), (c = (r = e.pkg) == null ? void 0 : r.repository) != null && c.url && l.push({ name: "repository", href: e.pkg.repository.url }), (m = (d = e.pkg) == null ? void 0 : d.bugs) != null && m.url && l.push({ name: "bugs", href: e.pkg.bugs.url }), (o = e.pkg) != null && o.author && l.push({ name: "author", href: `mailto:${(i = e.pkg) == null ? void 0 : i.author}` }), l;
|
|
575
575
|
});
|
|
576
|
-
return (
|
|
576
|
+
return (l, t) => {
|
|
577
577
|
var r, c;
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
578
|
+
return p(), v("div", null, [
|
|
579
|
+
a("p", Vn, _((r = e.pkg) == null ? void 0 : r.description), 1),
|
|
580
|
+
a("div", Tn, [
|
|
581
|
+
a("div", Ln, [
|
|
582
582
|
t[0] || (t[0] = H(" Firmware (hw): ", -1)),
|
|
583
|
-
|
|
583
|
+
a("span", En, _(n.value), 1)
|
|
584
584
|
]),
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
a("div", Bn, [
|
|
586
|
+
a("div", An, [
|
|
587
587
|
t[1] || (t[1] = H(" Version (web): ", -1)),
|
|
588
|
-
|
|
588
|
+
a("span", Dn, _((c = e.pkg) == null ? void 0 : c.version), 1)
|
|
589
589
|
])
|
|
590
590
|
]),
|
|
591
|
-
t[3] || (t[3] =
|
|
592
|
-
|
|
591
|
+
t[3] || (t[3] = a("div", { class: "flex-auto" }, null, -1)),
|
|
592
|
+
a("div", In, [
|
|
593
593
|
t[2] || (t[2] = H(" ID: ", -1)),
|
|
594
|
-
|
|
594
|
+
a("span", Hn, _(e.id.toString(16)), 1)
|
|
595
595
|
])
|
|
596
596
|
]),
|
|
597
|
-
t[4] || (t[4] =
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
k(
|
|
597
|
+
t[4] || (t[4] = a("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
|
|
598
|
+
a("div", jn, [
|
|
599
|
+
a("div", Pn, [
|
|
600
|
+
k(l.$slots, "links", { links: s.value })
|
|
601
601
|
])
|
|
602
602
|
])
|
|
603
603
|
]);
|
|
@@ -606,41 +606,41 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
606
606
|
}), Nn = ["onClick"], On = { class: "mr-2" }, Un = { class: "text-sm" }, Kn = { class: "text-gray-400 text-xs" }, Rn = {
|
|
607
607
|
key: 0,
|
|
608
608
|
class: "flex justify-center"
|
|
609
|
-
}, Fn = { class: "flex justify-end mt-4" },
|
|
609
|
+
}, Fn = { class: "flex justify-end mt-4" }, ko = /* @__PURE__ */ M({
|
|
610
610
|
__name: "BlockScan",
|
|
611
611
|
props: {
|
|
612
612
|
items: { default: () => [] }
|
|
613
613
|
},
|
|
614
614
|
emits: ["scan", "select"],
|
|
615
615
|
setup(e, { emit: n }) {
|
|
616
|
-
const
|
|
616
|
+
const s = n, l = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => s("select", c), r = (c) => s("scan", c);
|
|
617
617
|
return (c, d) => {
|
|
618
|
-
const m = mt,
|
|
619
|
-
return
|
|
620
|
-
g(
|
|
618
|
+
const m = mt, o = Ce, i = pt, u = A;
|
|
619
|
+
return p(), v("div", null, [
|
|
620
|
+
g(o, {
|
|
621
621
|
items: e.items,
|
|
622
622
|
class: "bg-transparent! ring-0!"
|
|
623
623
|
}, {
|
|
624
|
-
default: x(({ item:
|
|
625
|
-
|
|
624
|
+
default: x(({ item: f }) => [
|
|
625
|
+
a("div", {
|
|
626
626
|
class: "flex items-center w-full",
|
|
627
|
-
onClick: (b) => t(
|
|
627
|
+
onClick: (b) => t(f)
|
|
628
628
|
}, [
|
|
629
|
-
|
|
630
|
-
g(m, K(R(
|
|
629
|
+
a("div", On, [
|
|
630
|
+
g(m, K(R(f)), null, 16)
|
|
631
631
|
]),
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
a("div", null, [
|
|
633
|
+
a("div", Un, _(f.ssid), 1),
|
|
634
|
+
a("div", Kn, _(c.$t("security")) + " : " + _(l[f.encryptionType] || "unknown"), 1)
|
|
635
635
|
])
|
|
636
636
|
], 8, Nn)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
}, 8, ["items"]),
|
|
640
|
-
e.items.length ? z("", !0) : (
|
|
640
|
+
e.items.length ? z("", !0) : (p(), v("div", Rn, [
|
|
641
641
|
g(i, { class: "text-primary" })
|
|
642
642
|
])),
|
|
643
|
-
|
|
643
|
+
a("div", Fn, [
|
|
644
644
|
g(u, {
|
|
645
645
|
color: "blue",
|
|
646
646
|
onClick: r
|
|
@@ -654,7 +654,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
654
654
|
]);
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
}), Wn = { class: "md:flex items-center mb-4" }, qn = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Gn = { class: "md:max-w-50" }, Jn = { class: "flex items-center mb-4" }, Zn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Xn = { class: "flex items-center mb-4" }, Yn = { class: "flex-auto text-gray-600 bg:text-gray-400" },
|
|
657
|
+
}), Wn = { class: "md:flex items-center mb-4" }, qn = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Gn = { class: "md:max-w-50" }, Jn = { class: "flex items-center mb-4" }, Zn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Xn = { class: "flex items-center mb-4" }, Yn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, wo = /* @__PURE__ */ M({
|
|
658
658
|
__name: "BlockService",
|
|
659
659
|
props: {
|
|
660
660
|
locale: {},
|
|
@@ -662,31 +662,31 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
662
662
|
},
|
|
663
663
|
emits: ["reboot", "reset", "locale"],
|
|
664
664
|
setup(e, { emit: n }) {
|
|
665
|
-
const
|
|
665
|
+
const s = n, l = (r) => s("locale", r), t = (r) => {
|
|
666
666
|
var c;
|
|
667
667
|
return (c = e.locales.find((d) => d.value === r)) == null ? void 0 : c.name;
|
|
668
668
|
};
|
|
669
669
|
return (r, c) => {
|
|
670
|
-
const d =
|
|
671
|
-
return
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
670
|
+
const d = se, m = A;
|
|
671
|
+
return p(), v(B, null, [
|
|
672
|
+
a("div", Wn, [
|
|
673
|
+
a("div", qn, _(r.$t("selectLang")), 1),
|
|
674
|
+
a("div", Gn, [
|
|
675
675
|
g(d, {
|
|
676
676
|
"model-value": t(e.locale),
|
|
677
677
|
label: r.$t("lang"),
|
|
678
678
|
items: e.locales,
|
|
679
|
-
onChange:
|
|
679
|
+
onChange: l
|
|
680
680
|
}, null, 8, ["model-value", "label", "items"])
|
|
681
681
|
])
|
|
682
682
|
]),
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
a("div", Jn, [
|
|
684
|
+
a("div", Zn, _(r.$t("rebootDev")), 1),
|
|
685
685
|
g(m, {
|
|
686
686
|
class: "min-w-[100px]",
|
|
687
687
|
color: "red",
|
|
688
688
|
outline: "",
|
|
689
|
-
onClick: c[0] || (c[0] = (
|
|
689
|
+
onClick: c[0] || (c[0] = (o) => s("reboot", o))
|
|
690
690
|
}, {
|
|
691
691
|
default: x(() => [
|
|
692
692
|
H(_(r.$t("reboot")), 1)
|
|
@@ -694,12 +694,12 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
694
694
|
_: 1
|
|
695
695
|
})
|
|
696
696
|
]),
|
|
697
|
-
|
|
698
|
-
|
|
697
|
+
a("div", Xn, [
|
|
698
|
+
a("div", Yn, _(r.$t("resetConf")), 1),
|
|
699
699
|
g(m, {
|
|
700
700
|
class: "min-w-[100px]",
|
|
701
701
|
color: "red",
|
|
702
|
-
onClick: c[1] || (c[1] = (
|
|
702
|
+
onClick: c[1] || (c[1] = (o) => s("reset", o))
|
|
703
703
|
}, {
|
|
704
704
|
default: x(() => [
|
|
705
705
|
H(_(r.$t("reset")), 1)
|
|
@@ -710,7 +710,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
710
710
|
], 64);
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
}), Qn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" },
|
|
713
|
+
}), Qn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, el = { class: "flex flex-col w-full items-center gap-2" }, tl = ["title"], nl = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, ll = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, sl = { class: "flex justify-between w-full text-xs" }, al = { class: "text-gray-500 dark:text-white/50" }, ol = { class: "text-sm" }, il = { class: "text-gray-500 dark:text-white/50 text-left" }, rl = { class: "text-right text-xs" }, Co = /* @__PURE__ */ M({
|
|
714
714
|
__name: "BlockStatus",
|
|
715
715
|
props: {
|
|
716
716
|
pkg: {},
|
|
@@ -724,123 +724,123 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
724
724
|
board: {}
|
|
725
725
|
},
|
|
726
726
|
setup(e) {
|
|
727
|
-
const n =
|
|
728
|
-
let
|
|
729
|
-
const
|
|
730
|
-
{ name: "used", value:
|
|
731
|
-
{ name: "available", value:
|
|
732
|
-
{ name: "total", value:
|
|
733
|
-
]), r =
|
|
727
|
+
const n = L(e.uptime);
|
|
728
|
+
let s = null;
|
|
729
|
+
const l = E(() => e.firmware.join(".")), t = E(() => [
|
|
730
|
+
{ name: "used", value: pe(e.usedBytes) },
|
|
731
|
+
{ name: "available", value: pe(e.totalBytes - e.usedBytes) },
|
|
732
|
+
{ name: "total", value: pe(e.totalBytes) }
|
|
733
|
+
]), r = E(() => {
|
|
734
734
|
var m;
|
|
735
735
|
return [
|
|
736
736
|
{ name: "uptime", value: gt(n.value) },
|
|
737
737
|
{ name: "id", value: `${e.id.toString(16)} (${e.id})` },
|
|
738
|
-
{ name: "firmware", value:
|
|
738
|
+
{ name: "firmware", value: l.value },
|
|
739
739
|
{ name: "version", value: (m = e.pkg) == null ? void 0 : m.version }
|
|
740
740
|
];
|
|
741
|
-
}), c =
|
|
742
|
-
n.value++,
|
|
741
|
+
}), c = E(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
|
|
742
|
+
n.value++, s = setTimeout(d, 1e3);
|
|
743
743
|
};
|
|
744
744
|
return Q(() => {
|
|
745
745
|
d();
|
|
746
746
|
}), we(() => {
|
|
747
|
-
n.value = 0,
|
|
748
|
-
}), (m,
|
|
749
|
-
var i, u,
|
|
750
|
-
return
|
|
751
|
-
|
|
752
|
-
|
|
747
|
+
n.value = 0, s && clearTimeout(s);
|
|
748
|
+
}), (m, o) => {
|
|
749
|
+
var i, u, f;
|
|
750
|
+
return p(), v("div", Qn, [
|
|
751
|
+
a("div", el, [
|
|
752
|
+
a("div", {
|
|
753
753
|
class: "relative block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10",
|
|
754
754
|
title: `${c.value}%`
|
|
755
755
|
}, [
|
|
756
|
-
|
|
757
|
-
|
|
756
|
+
a("div", nl, _(c.value) + "%", 1),
|
|
757
|
+
a("div", {
|
|
758
758
|
class: "relative h-4 overflow-hidden rounded-md bg-primary transition-all duration-500",
|
|
759
759
|
style: ve(`width: ${c.value}%`)
|
|
760
760
|
}, [
|
|
761
|
-
|
|
761
|
+
a("div", ll, _(c.value) + "%", 1)
|
|
762
762
|
], 4)
|
|
763
|
-
], 8,
|
|
764
|
-
|
|
765
|
-
(
|
|
763
|
+
], 8, tl),
|
|
764
|
+
a("div", sl, [
|
|
765
|
+
(p(!0), v(B, null, N(t.value, (b) => (p(), v("div", {
|
|
766
766
|
key: b.name,
|
|
767
767
|
class: "flex-auto"
|
|
768
768
|
}, [
|
|
769
|
-
|
|
769
|
+
a("div", al, [
|
|
770
770
|
k(m.$slots, "name", { item: b })
|
|
771
771
|
]),
|
|
772
|
-
|
|
772
|
+
a("div", null, _(b.value), 1)
|
|
773
773
|
]))), 128))
|
|
774
774
|
])
|
|
775
775
|
]),
|
|
776
|
-
|
|
777
|
-
(
|
|
776
|
+
a("div", ol, [
|
|
777
|
+
(p(!0), v(B, null, N(r.value, (b) => (p(), v("div", {
|
|
778
778
|
key: b.name,
|
|
779
779
|
class: "flex justify-between items-center"
|
|
780
780
|
}, [
|
|
781
|
-
|
|
781
|
+
a("div", il, [
|
|
782
782
|
k(m.$slots, "name", { item: b })
|
|
783
783
|
]),
|
|
784
|
-
|
|
784
|
+
a("div", rl, _(b.value), 1)
|
|
785
785
|
]))), 128))
|
|
786
786
|
]),
|
|
787
|
-
|
|
787
|
+
a("div", null, [
|
|
788
788
|
k(m.$slots, "default", {
|
|
789
789
|
home: (i = e.pkg) == null ? void 0 : i.homepage,
|
|
790
|
-
repo: (
|
|
790
|
+
repo: (f = (u = e.pkg) == null ? void 0 : u.repository) == null ? void 0 : f.url
|
|
791
791
|
})
|
|
792
792
|
])
|
|
793
793
|
]);
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
}),
|
|
796
|
+
}), dl = { class: "flex items-center cursor-pointer" }, cl = /* @__PURE__ */ M({
|
|
797
797
|
__name: "VFile",
|
|
798
798
|
emits: ["change"],
|
|
799
799
|
setup(e, { emit: n }) {
|
|
800
|
-
const
|
|
800
|
+
const s = n, l = async (t) => {
|
|
801
801
|
const r = t.target;
|
|
802
|
-
r.files &&
|
|
802
|
+
r.files && s("change", r.files);
|
|
803
803
|
};
|
|
804
|
-
return (t, r) => (
|
|
805
|
-
|
|
804
|
+
return (t, r) => (p(), v("label", dl, [
|
|
805
|
+
a("input", j({
|
|
806
806
|
type: "file",
|
|
807
807
|
class: "hidden"
|
|
808
|
-
}, t.$attrs, { onChange:
|
|
808
|
+
}, t.$attrs, { onChange: l }), null, 16),
|
|
809
809
|
k(t.$slots, "default")
|
|
810
810
|
]));
|
|
811
811
|
}
|
|
812
|
-
}),
|
|
812
|
+
}), ul = { class: "md:flex" }, ml = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, Mo = /* @__PURE__ */ M({
|
|
813
813
|
__name: "BlockUpdate",
|
|
814
814
|
emits: ["update"],
|
|
815
815
|
setup(e, { emit: n }) {
|
|
816
|
-
const
|
|
817
|
-
const
|
|
816
|
+
const s = n, l = nt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((m) => `${m.name} (${pe(m.size)})`).join("") : "", r = (d, m) => {
|
|
817
|
+
const o = new FormData();
|
|
818
818
|
for (let i = 0; i < d.length; i++) {
|
|
819
819
|
const u = d.item(i);
|
|
820
820
|
if (!u) return;
|
|
821
|
-
|
|
821
|
+
o.append(`file[${i}]`, u, m);
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return o;
|
|
824
824
|
}, c = (d, m) => {
|
|
825
825
|
if (!m) return;
|
|
826
|
-
const
|
|
827
|
-
|
|
826
|
+
const o = r(m, d);
|
|
827
|
+
o && s("update", d, o);
|
|
828
828
|
};
|
|
829
829
|
return (d, m) => {
|
|
830
|
-
const
|
|
831
|
-
return
|
|
832
|
-
(
|
|
830
|
+
const o = A;
|
|
831
|
+
return p(), v("div", null, [
|
|
832
|
+
(p(!0), v(B, null, N(l, (i, u) => (p(), v("div", {
|
|
833
833
|
key: u,
|
|
834
834
|
class: "mb-4 flex items-center"
|
|
835
835
|
}, [
|
|
836
|
-
g(
|
|
836
|
+
g(cl, {
|
|
837
837
|
accept: ".bin",
|
|
838
|
-
onChange: (
|
|
838
|
+
onChange: (f) => l[u] = f,
|
|
839
839
|
class: "flex-auto"
|
|
840
840
|
}, {
|
|
841
841
|
default: x(() => [
|
|
842
|
-
|
|
843
|
-
|
|
842
|
+
a("div", ul, [
|
|
843
|
+
a("h6", ml, _(u) + ":", 1),
|
|
844
844
|
k(d.$slots, "default", {
|
|
845
845
|
file: t(i)
|
|
846
846
|
})
|
|
@@ -848,11 +848,11 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
848
848
|
]),
|
|
849
849
|
_: 2
|
|
850
850
|
}, 1032, ["onChange"]),
|
|
851
|
-
g(
|
|
851
|
+
g(o, {
|
|
852
852
|
class: "min-w-[100px]",
|
|
853
853
|
color: "blue",
|
|
854
854
|
disabled: !i,
|
|
855
|
-
onClick: (
|
|
855
|
+
onClick: (f) => c(`${u}.bin`, i)
|
|
856
856
|
}, {
|
|
857
857
|
default: x(() => [
|
|
858
858
|
H(_(d.$t("btnUpdate")), 1)
|
|
@@ -863,39 +863,39 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
863
863
|
]);
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
}),
|
|
866
|
+
}), pl = {
|
|
867
867
|
viewBox: "0 0 24 24",
|
|
868
868
|
width: "1.2em",
|
|
869
869
|
height: "1.2em"
|
|
870
870
|
};
|
|
871
|
-
function
|
|
872
|
-
return
|
|
873
|
-
|
|
871
|
+
function fl(e, n) {
|
|
872
|
+
return p(), v("svg", pl, [...n[0] || (n[0] = [
|
|
873
|
+
a("path", {
|
|
874
874
|
fill: "currentColor",
|
|
875
875
|
d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
|
|
876
876
|
}, null, -1)
|
|
877
877
|
])]);
|
|
878
878
|
}
|
|
879
|
-
const Re = O({ name: "ri-arrow-drop-right-line", render:
|
|
879
|
+
const Re = O({ name: "ri-arrow-drop-right-line", render: fl }), vl = { class: "flex items-center gap-1.5" }, zo = /* @__PURE__ */ M({
|
|
880
880
|
__name: "BlockBreadcrumb",
|
|
881
881
|
props: {
|
|
882
882
|
items: { default: () => [] }
|
|
883
883
|
},
|
|
884
884
|
emits: ["click"],
|
|
885
885
|
setup(e, { emit: n }) {
|
|
886
|
-
const
|
|
886
|
+
const s = n, l = (t) => s("click", t);
|
|
887
887
|
return (t, r) => {
|
|
888
888
|
const c = Re;
|
|
889
|
-
return
|
|
890
|
-
|
|
891
|
-
(
|
|
889
|
+
return p(), v("nav", null, [
|
|
890
|
+
a("ol", vl, [
|
|
891
|
+
(p(!0), v(B, null, N(e.items, (d, m) => (p(), v("li", {
|
|
892
892
|
key: m,
|
|
893
|
-
class:
|
|
893
|
+
class: T(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", d.path ? "" : "text-gray-800 dark:text-white/90"])
|
|
894
894
|
}, [
|
|
895
895
|
k(t.$slots, "default", { item: d }, () => [
|
|
896
|
-
(
|
|
896
|
+
(p(), I(me(d.path ? "a" : "span"), {
|
|
897
897
|
href: d.path,
|
|
898
|
-
onClick: (
|
|
898
|
+
onClick: (o) => l(d)
|
|
899
899
|
}, {
|
|
900
900
|
default: x(() => [
|
|
901
901
|
H(_(d.name), 1)
|
|
@@ -903,7 +903,7 @@ const Re = O({ name: "ri-arrow-drop-right-line", render: ps }), vs = { class: "f
|
|
|
903
903
|
_: 2
|
|
904
904
|
}, 1032, ["href", "onClick"]))
|
|
905
905
|
]),
|
|
906
|
-
d.path ? (
|
|
906
|
+
d.path ? (p(), I(c, {
|
|
907
907
|
key: 0,
|
|
908
908
|
class: "rotate-270"
|
|
909
909
|
})) : z("", !0)
|
|
@@ -912,23 +912,23 @@ const Re = O({ name: "ri-arrow-drop-right-line", render: ps }), vs = { class: "f
|
|
|
912
912
|
]);
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
|
-
}),
|
|
915
|
+
}), hl = {
|
|
916
916
|
viewBox: "0 0 24 24",
|
|
917
917
|
width: "1.2em",
|
|
918
918
|
height: "1.2em"
|
|
919
919
|
};
|
|
920
|
-
function
|
|
921
|
-
return
|
|
922
|
-
|
|
920
|
+
function gl(e, n) {
|
|
921
|
+
return p(), v("svg", hl, [...n[0] || (n[0] = [
|
|
922
|
+
a("path", {
|
|
923
923
|
fill: "currentColor",
|
|
924
924
|
d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9zm-2 5h6v2H7zm0 4h6v2H7z"
|
|
925
925
|
}, null, -1)
|
|
926
926
|
])]);
|
|
927
927
|
}
|
|
928
|
-
const
|
|
928
|
+
const bl = O({ name: "ri-file-copy2-line", render: gl }), xl = { class: "flex-auto flex justify-between" }, yl = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, _l = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, $l = {
|
|
929
929
|
key: 0,
|
|
930
930
|
class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
|
|
931
|
-
},
|
|
931
|
+
}, kl = { class: "min-h-60 relative" }, wl = { class: "pt-6" }, Cl = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, Ml = { class: "text-center text-xl mt-4" }, oe = /* @__PURE__ */ M({
|
|
932
932
|
__name: "CardBase",
|
|
933
933
|
props: {
|
|
934
934
|
size: {},
|
|
@@ -948,46 +948,46 @@ const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-au
|
|
|
948
948
|
},
|
|
949
949
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
950
950
|
setup(e, { emit: n }) {
|
|
951
|
-
const
|
|
952
|
-
t.value = !1,
|
|
951
|
+
const s = e, l = n, t = L(!1), r = E(() => ["button", "dimmer"].includes(s.type || "") && s.value ? "text-amber-500" : "text-gray-400"), c = (u) => l("edit", u), d = (u) => l("clone", u), m = () => t.value = !0, o = (u) => l("open", u), i = (u) => {
|
|
952
|
+
t.value = !1, l("close", u);
|
|
953
953
|
};
|
|
954
|
-
return (u,
|
|
955
|
-
const b = Ue, h =
|
|
956
|
-
return
|
|
954
|
+
return (u, f) => {
|
|
955
|
+
const b = Ue, h = bl;
|
|
956
|
+
return p(), v("div", {
|
|
957
957
|
class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_50px_-18px_rgba(40,183,240,0.25)]",
|
|
958
958
|
onClick: m
|
|
959
959
|
}, [
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
class:
|
|
960
|
+
a("div", xl, [
|
|
961
|
+
a("div", {
|
|
962
|
+
class: T([r.value, "size-8 animate-shake"])
|
|
963
963
|
}, [
|
|
964
|
-
k(u.$slots, "icon", K(R(
|
|
964
|
+
k(u.$slots, "icon", K(R(s)))
|
|
965
965
|
], 2),
|
|
966
|
-
k(u.$slots, "header", K(R(
|
|
966
|
+
k(u.$slots, "header", K(R(s)))
|
|
967
967
|
]),
|
|
968
|
-
|
|
969
|
-
k(u.$slots, "body", K(R(
|
|
970
|
-
|
|
971
|
-
k(u.$slots, "name", K(R(
|
|
972
|
-
H(_(
|
|
968
|
+
a("div", null, [
|
|
969
|
+
k(u.$slots, "body", K(R(s)), () => [
|
|
970
|
+
a("h6", yl, [
|
|
971
|
+
k(u.$slots, "name", K(R(s)), () => [
|
|
972
|
+
H(_(s.name), 1)
|
|
973
973
|
])
|
|
974
974
|
]),
|
|
975
|
-
|
|
976
|
-
k(u.$slots, "value", K(R(
|
|
977
|
-
H(_(
|
|
975
|
+
a("div", _l, [
|
|
976
|
+
k(u.$slots, "value", K(R(s)), () => [
|
|
977
|
+
H(_(s.valueTo || s.value), 1)
|
|
978
978
|
])
|
|
979
979
|
])
|
|
980
980
|
])
|
|
981
981
|
]),
|
|
982
|
-
|
|
983
|
-
k(u.$slots, "icon", K(R(
|
|
982
|
+
s.icon ? (p(), v("div", $l, [
|
|
983
|
+
k(u.$slots, "icon", K(R(s)))
|
|
984
984
|
])) : z("", !0),
|
|
985
|
-
t.value ? (
|
|
985
|
+
t.value ? (p(), I(Oe, {
|
|
986
986
|
key: 1,
|
|
987
|
-
size:
|
|
987
|
+
size: s.size || "sm",
|
|
988
988
|
title: e.name,
|
|
989
989
|
onClose: i,
|
|
990
|
-
onOpen:
|
|
990
|
+
onOpen: o
|
|
991
991
|
}, {
|
|
992
992
|
"header-btn": x(() => [
|
|
993
993
|
g(A, {
|
|
@@ -1010,17 +1010,17 @@ const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-au
|
|
|
1010
1010
|
})
|
|
1011
1011
|
]),
|
|
1012
1012
|
default: x(() => [
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
k(u.$slots, "dialog-name", K(R(
|
|
1017
|
-
H(_(
|
|
1013
|
+
a("div", kl, [
|
|
1014
|
+
a("div", wl, [
|
|
1015
|
+
a("h3", Cl, [
|
|
1016
|
+
k(u.$slots, "dialog-name", K(R(s)), () => [
|
|
1017
|
+
H(_(s.name), 1)
|
|
1018
1018
|
])
|
|
1019
1019
|
]),
|
|
1020
|
-
k(u.$slots, "dialog", K(R(
|
|
1021
|
-
|
|
1022
|
-
k(u.$slots, "dialog-value", K(R(
|
|
1023
|
-
H(_(
|
|
1020
|
+
k(u.$slots, "dialog", K(R(s))),
|
|
1021
|
+
a("p", Ml, [
|
|
1022
|
+
k(u.$slots, "dialog-value", K(R(s)), () => [
|
|
1023
|
+
H(_(s.valueTo || s.value), 1)
|
|
1024
1024
|
])
|
|
1025
1025
|
])
|
|
1026
1026
|
])
|
|
@@ -1031,20 +1031,20 @@ const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-au
|
|
|
1031
1031
|
]);
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), zl = {
|
|
1035
1035
|
viewBox: "0 0 24 24",
|
|
1036
1036
|
width: "1.2em",
|
|
1037
1037
|
height: "1.2em"
|
|
1038
1038
|
};
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
1041
|
-
|
|
1039
|
+
function Sl(e, n) {
|
|
1040
|
+
return p(), v("svg", zl, [...n[0] || (n[0] = [
|
|
1041
|
+
a("path", {
|
|
1042
1042
|
fill: "currentColor",
|
|
1043
1043
|
d: "m6.265 3.807l1.147 1.639a8 8 0 1 0 9.176 0l1.147-1.639A9.99 9.99 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12a9.99 9.99 0 0 1 4.265-8.193M11 12V2h2v10z"
|
|
1044
1044
|
}, null, -1)
|
|
1045
1045
|
])]);
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Vl = O({ name: "ri-shut-down-line", render: Sl }), Tl = { class: "flex justify-end" }, Ll = { class: "flex justify-center py-4" }, So = /* @__PURE__ */ M({
|
|
1048
1048
|
__name: "CardButton",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
size: {},
|
|
@@ -1064,25 +1064,25 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
|
|
|
1064
1064
|
},
|
|
1065
1065
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1066
1066
|
setup(e, { emit: n }) {
|
|
1067
|
-
const
|
|
1067
|
+
const s = e, l = n, t = ({ opts: c = {} }) => {
|
|
1068
1068
|
const { disabled: d } = c;
|
|
1069
1069
|
return { disabled: d };
|
|
1070
|
-
}, r = () =>
|
|
1070
|
+
}, r = () => l("setState", !s.value);
|
|
1071
1071
|
return (c, d) => {
|
|
1072
|
-
const m =
|
|
1073
|
-
return
|
|
1074
|
-
onClick: d[0] || (d[0] = (
|
|
1075
|
-
onEdit: d[1] || (d[1] = (
|
|
1076
|
-
onClone: d[2] || (d[2] = (
|
|
1072
|
+
const m = Vl;
|
|
1073
|
+
return p(), I(oe, j(s, {
|
|
1074
|
+
onClick: d[0] || (d[0] = (o) => l("click", o)),
|
|
1075
|
+
onEdit: d[1] || (d[1] = (o) => l("edit", o)),
|
|
1076
|
+
onClone: d[2] || (d[2] = (o) => l("clone", o))
|
|
1077
1077
|
}), {
|
|
1078
|
-
icon: x((
|
|
1079
|
-
k(c.$slots, "icon", K(R(
|
|
1078
|
+
icon: x((o) => [
|
|
1079
|
+
k(c.$slots, "icon", K(R(o)))
|
|
1080
1080
|
]),
|
|
1081
|
-
header: x((
|
|
1082
|
-
|
|
1083
|
-
g(A, j(t(
|
|
1081
|
+
header: x((o) => [
|
|
1082
|
+
a("div", Tl, [
|
|
1083
|
+
g(A, j(t(o), {
|
|
1084
1084
|
type: "icon",
|
|
1085
|
-
class:
|
|
1085
|
+
class: s.value ? "text-amber-500" : "text-gray-500",
|
|
1086
1086
|
onClick: F(r, ["stop"])
|
|
1087
1087
|
}), {
|
|
1088
1088
|
default: x(() => [
|
|
@@ -1092,11 +1092,11 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
|
|
|
1092
1092
|
}, 16, ["class"])
|
|
1093
1093
|
])
|
|
1094
1094
|
]),
|
|
1095
|
-
dialog: x((
|
|
1096
|
-
|
|
1097
|
-
g(A, j(t(
|
|
1095
|
+
dialog: x((o) => [
|
|
1096
|
+
a("div", Ll, [
|
|
1097
|
+
g(A, j(t(o), {
|
|
1098
1098
|
type: "icon",
|
|
1099
|
-
class: ["size-18",
|
|
1099
|
+
class: ["size-18", s.value ? "text-amber-500" : "text-gray-500"],
|
|
1100
1100
|
onClick: F(r, ["stop"])
|
|
1101
1101
|
}), {
|
|
1102
1102
|
default: x(() => [
|
|
@@ -1110,20 +1110,20 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
|
|
|
1110
1110
|
}, 16);
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
}),
|
|
1113
|
+
}), El = {
|
|
1114
1114
|
viewBox: "0 0 24 24",
|
|
1115
1115
|
width: "1.2em",
|
|
1116
1116
|
height: "1.2em"
|
|
1117
1117
|
};
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1120
|
-
|
|
1118
|
+
function Bl(e, n) {
|
|
1119
|
+
return p(), v("svg", El, [...n[0] || (n[0] = [
|
|
1120
|
+
a("path", {
|
|
1121
1121
|
fill: "currentColor",
|
|
1122
1122
|
d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"
|
|
1123
1123
|
}, null, -1)
|
|
1124
1124
|
])]);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1126
|
+
const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-center relative mx-2 my-6" }, Vo = /* @__PURE__ */ M({
|
|
1127
1127
|
__name: "CardDate",
|
|
1128
1128
|
props: {
|
|
1129
1129
|
size: {},
|
|
@@ -1143,30 +1143,30 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1143
1143
|
},
|
|
1144
1144
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1145
1145
|
setup(e, { emit: n }) {
|
|
1146
|
-
const
|
|
1146
|
+
const s = e, l = n, t = Ie("time"), r = (o) => new Date(+o * 1e3).toISOString().slice(0, 16), c = (o) => {
|
|
1147
1147
|
var u;
|
|
1148
|
-
const i = (u =
|
|
1149
|
-
i &&
|
|
1150
|
-
}, d = ({ name:
|
|
1151
|
-
const { disabled:
|
|
1152
|
-
return { label:
|
|
1148
|
+
const i = (u = o == null ? void 0 : o.target) == null ? void 0 : u.valueAsNumber;
|
|
1149
|
+
i && l("setState", i / 1e3);
|
|
1150
|
+
}, d = ({ name: o, value: i, opts: u = {} }) => {
|
|
1151
|
+
const { disabled: f } = u;
|
|
1152
|
+
return { label: o, modelValue: r(i), disabled: f };
|
|
1153
1153
|
}, m = () => {
|
|
1154
1154
|
var i, u;
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1155
|
+
const o = (u = (i = t.value) == null ? void 0 : i.$el) == null ? void 0 : u.querySelector("input");
|
|
1156
|
+
o != null && o.showPicker && o.showPicker();
|
|
1157
1157
|
};
|
|
1158
|
-
return (
|
|
1159
|
-
const u =
|
|
1160
|
-
return
|
|
1161
|
-
onClick: i[0] || (i[0] = (
|
|
1162
|
-
onEdit: i[1] || (i[1] = (
|
|
1163
|
-
onClone: i[2] || (i[2] = (
|
|
1158
|
+
return (o, i) => {
|
|
1159
|
+
const u = Al;
|
|
1160
|
+
return p(), I(oe, j(s, {
|
|
1161
|
+
onClick: i[0] || (i[0] = (f) => l("click", f)),
|
|
1162
|
+
onEdit: i[1] || (i[1] = (f) => l("edit", f)),
|
|
1163
|
+
onClone: i[2] || (i[2] = (f) => l("clone", f))
|
|
1164
1164
|
}), {
|
|
1165
|
-
icon: x((
|
|
1166
|
-
k(
|
|
1165
|
+
icon: x((f) => [
|
|
1166
|
+
k(o.$slots, "icon", K(R(f)))
|
|
1167
1167
|
]),
|
|
1168
|
-
header: x((
|
|
1169
|
-
|
|
1168
|
+
header: x((f) => [
|
|
1169
|
+
a("div", null, [
|
|
1170
1170
|
g(A, {
|
|
1171
1171
|
type: "icon",
|
|
1172
1172
|
class: "text-gray-500",
|
|
@@ -1180,7 +1180,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1180
1180
|
g(J, j({
|
|
1181
1181
|
ref_key: "time",
|
|
1182
1182
|
ref: t
|
|
1183
|
-
}, d(
|
|
1183
|
+
}, d(f), {
|
|
1184
1184
|
type: "datetime-local",
|
|
1185
1185
|
class: "size-0",
|
|
1186
1186
|
hidden: "",
|
|
@@ -1188,9 +1188,9 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1188
1188
|
}), null, 16)
|
|
1189
1189
|
])
|
|
1190
1190
|
]),
|
|
1191
|
-
dialog: x((
|
|
1192
|
-
|
|
1193
|
-
g(J, j(d(
|
|
1191
|
+
dialog: x((f) => [
|
|
1192
|
+
a("div", Dl, [
|
|
1193
|
+
g(J, j(d(f), {
|
|
1194
1194
|
type: "datetime-local",
|
|
1195
1195
|
onChange: c
|
|
1196
1196
|
}), null, 16)
|
|
@@ -1200,15 +1200,15 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1200
1200
|
}, 16);
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
}),
|
|
1204
|
-
class: /* @__PURE__ */
|
|
1205
|
-
},
|
|
1203
|
+
}), Il = { class: "flex justify-end" }, Hl = { class: "flex justify-end" }, jl = {
|
|
1204
|
+
class: /* @__PURE__ */ T("text-blue-600 dark:text-blue-400")
|
|
1205
|
+
}, Pl = {
|
|
1206
1206
|
width: "30",
|
|
1207
1207
|
height: "30",
|
|
1208
1208
|
viewBox: "-7.5 -7.5 75 75",
|
|
1209
1209
|
version: "1.1",
|
|
1210
1210
|
style: { transform: "rotate(-90deg)" }
|
|
1211
|
-
},
|
|
1211
|
+
}, Nl = ["stroke-dashoffset"], Ol = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, To = /* @__PURE__ */ M({
|
|
1212
1212
|
__name: "CardDimmer",
|
|
1213
1213
|
props: {
|
|
1214
1214
|
size: {},
|
|
@@ -1228,31 +1228,31 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1228
1228
|
},
|
|
1229
1229
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1230
1230
|
setup(e, { emit: n }) {
|
|
1231
|
-
const
|
|
1232
|
-
const { min:
|
|
1233
|
-
return { min:
|
|
1234
|
-
}, m = (i) =>
|
|
1235
|
-
+i != 0 ? (t.value = +i,
|
|
1231
|
+
const s = e, l = n, t = L(0), r = ({ opts: i, value: u }) => Math.round(100 * +u / ((i == null ? void 0 : i.max) || 255)), c = ({ opts: i, value: u }) => Math.round(187 - +u / ((i == null ? void 0 : i.max) || 255) * 187), d = ({ value: i, opts: u }) => {
|
|
1232
|
+
const { min: f = 0, max: b = 255, step: h = 1, disabled: y } = u || {};
|
|
1233
|
+
return { min: f, max: b, step: h, value: i, disabled: !!y, class: y ? "" : "cursor-pointer" };
|
|
1234
|
+
}, m = (i) => l("setState", +i.target.value || 0), o = ({ value: i }) => {
|
|
1235
|
+
+i != 0 ? (t.value = +i, l("setState", 0)) : l("setState", i ? 0 : t.value || 255);
|
|
1236
1236
|
};
|
|
1237
|
-
return (i, u) => (
|
|
1238
|
-
onClick: u[0] || (u[0] = (
|
|
1239
|
-
onEdit: u[1] || (u[1] = (
|
|
1240
|
-
onClone: u[2] || (u[2] = (
|
|
1237
|
+
return (i, u) => (p(), I(oe, j(s, {
|
|
1238
|
+
onClick: u[0] || (u[0] = (f) => l("click", f)),
|
|
1239
|
+
onEdit: u[1] || (u[1] = (f) => l("edit", f)),
|
|
1240
|
+
onClone: u[2] || (u[2] = (f) => l("clone", f))
|
|
1241
1241
|
}), {
|
|
1242
|
-
icon: x((
|
|
1243
|
-
k(i.$slots, "icon", K(R(
|
|
1242
|
+
icon: x((f) => [
|
|
1243
|
+
k(i.$slots, "icon", K(R(f)))
|
|
1244
1244
|
]),
|
|
1245
|
-
header: x((
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
g(A, j(d(
|
|
1245
|
+
header: x((f) => [
|
|
1246
|
+
a("div", Il, [
|
|
1247
|
+
a("div", Hl, [
|
|
1248
|
+
g(A, j(d(f), {
|
|
1249
1249
|
type: "icon",
|
|
1250
|
-
onClick: F((b) =>
|
|
1250
|
+
onClick: F((b) => o(f), ["stop"])
|
|
1251
1251
|
}), {
|
|
1252
1252
|
default: x(() => [
|
|
1253
|
-
|
|
1254
|
-
(
|
|
1255
|
-
u[3] || (u[3] =
|
|
1253
|
+
a("div", jl, [
|
|
1254
|
+
(p(), v("svg", Pl, [
|
|
1255
|
+
u[3] || (u[3] = a("circle", {
|
|
1256
1256
|
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
1257
1257
|
r: "30",
|
|
1258
1258
|
cx: "30",
|
|
@@ -1260,17 +1260,17 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1260
1260
|
fill: "transparent",
|
|
1261
1261
|
"stroke-width": "10"
|
|
1262
1262
|
}, null, -1)),
|
|
1263
|
-
|
|
1263
|
+
a("circle", {
|
|
1264
1264
|
r: "30",
|
|
1265
1265
|
cx: "30",
|
|
1266
1266
|
cy: "30",
|
|
1267
1267
|
stroke: "currentColor",
|
|
1268
1268
|
"stroke-width": "8",
|
|
1269
1269
|
"stroke-linecap": "butt",
|
|
1270
|
-
"stroke-dashoffset": c(
|
|
1270
|
+
"stroke-dashoffset": c(f),
|
|
1271
1271
|
fill: "transparent",
|
|
1272
1272
|
"stroke-dasharray": "187"
|
|
1273
|
-
}, null, 8,
|
|
1273
|
+
}, null, 8, Nl)
|
|
1274
1274
|
]))
|
|
1275
1275
|
])
|
|
1276
1276
|
]),
|
|
@@ -1279,17 +1279,17 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1279
1279
|
])
|
|
1280
1280
|
])
|
|
1281
1281
|
]),
|
|
1282
|
-
dialog: x((
|
|
1283
|
-
|
|
1284
|
-
class:
|
|
1282
|
+
dialog: x((f) => [
|
|
1283
|
+
a("div", {
|
|
1284
|
+
class: T(["flex justify-center relative mx-2 my-6", d(f).disabled ? "opacity-40" : ""])
|
|
1285
1285
|
}, [
|
|
1286
|
-
u[4] || (u[4] =
|
|
1287
|
-
|
|
1286
|
+
u[4] || (u[4] = a("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
|
|
1287
|
+
a("div", {
|
|
1288
1288
|
class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
|
|
1289
|
-
style: ve(`width: ${r(
|
|
1289
|
+
style: ve(`width: ${r(f)}%`)
|
|
1290
1290
|
}, null, 4),
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
a("div", Ol, _(r(f)) + " %", 1),
|
|
1292
|
+
a("input", j({ type: "range" }, d(f), {
|
|
1293
1293
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
1294
1294
|
onChange: m
|
|
1295
1295
|
}), null, 16)
|
|
@@ -1298,7 +1298,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1298
1298
|
_: 3
|
|
1299
1299
|
}, 16));
|
|
1300
1300
|
}
|
|
1301
|
-
}),
|
|
1301
|
+
}), Lo = /* @__PURE__ */ M({
|
|
1302
1302
|
__name: "CardInfo",
|
|
1303
1303
|
props: {
|
|
1304
1304
|
size: {},
|
|
@@ -1318,11 +1318,11 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1318
1318
|
},
|
|
1319
1319
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1320
1320
|
setup(e, { emit: n }) {
|
|
1321
|
-
const
|
|
1322
|
-
return (t, r) => (
|
|
1323
|
-
onClick: r[0] || (r[0] = (c) =>
|
|
1324
|
-
onEdit: r[1] || (r[1] = (c) =>
|
|
1325
|
-
onClone: r[2] || (r[2] = (c) =>
|
|
1321
|
+
const s = e, l = n;
|
|
1322
|
+
return (t, r) => (p(), I(oe, j(s, {
|
|
1323
|
+
onClick: r[0] || (r[0] = (c) => l("click", c)),
|
|
1324
|
+
onEdit: r[1] || (r[1] = (c) => l("edit", c)),
|
|
1325
|
+
onClone: r[2] || (r[2] = (c) => l("clone", c))
|
|
1326
1326
|
}), {
|
|
1327
1327
|
icon: x((c) => [
|
|
1328
1328
|
k(t.$slots, "icon", K(R(c)))
|
|
@@ -1333,7 +1333,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1333
1333
|
_: 3
|
|
1334
1334
|
}, 16));
|
|
1335
1335
|
}
|
|
1336
|
-
}),
|
|
1336
|
+
}), Ul = { class: "flex justify-center relative mx-2 my-6" }, Eo = /* @__PURE__ */ M({
|
|
1337
1337
|
__name: "CardInput",
|
|
1338
1338
|
props: {
|
|
1339
1339
|
size: {},
|
|
@@ -1353,27 +1353,27 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1353
1353
|
},
|
|
1354
1354
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1355
1355
|
setup(e, { emit: n }) {
|
|
1356
|
-
const
|
|
1357
|
-
const { disabled:
|
|
1358
|
-
return { label: d, disabled:
|
|
1359
|
-
}, c = (d) =>
|
|
1360
|
-
return
|
|
1361
|
-
() =>
|
|
1356
|
+
const s = e, l = n, t = L(s.value || ""), r = ({ name: d, opts: m = {} }) => {
|
|
1357
|
+
const { disabled: o } = m;
|
|
1358
|
+
return { label: d, disabled: o };
|
|
1359
|
+
}, c = (d) => l("setState", d.target.value);
|
|
1360
|
+
return ae(
|
|
1361
|
+
() => s.value,
|
|
1362
1362
|
(d) => {
|
|
1363
1363
|
t.value = d;
|
|
1364
1364
|
}
|
|
1365
1365
|
), (d, m) => {
|
|
1366
|
-
const
|
|
1367
|
-
return
|
|
1368
|
-
onClick: m[1] || (m[1] = (i) =>
|
|
1369
|
-
onEdit: m[2] || (m[2] = (i) =>
|
|
1370
|
-
onClone: m[3] || (m[3] = (i) =>
|
|
1366
|
+
const o = Re;
|
|
1367
|
+
return p(), I(oe, j(s, {
|
|
1368
|
+
onClick: m[1] || (m[1] = (i) => l("click", i)),
|
|
1369
|
+
onEdit: m[2] || (m[2] = (i) => l("edit", i)),
|
|
1370
|
+
onClone: m[3] || (m[3] = (i) => l("clone", i))
|
|
1371
1371
|
}), {
|
|
1372
1372
|
icon: x((i) => [
|
|
1373
1373
|
k(d.$slots, "icon", K(R(i)))
|
|
1374
1374
|
]),
|
|
1375
1375
|
dialog: x((i) => [
|
|
1376
|
-
|
|
1376
|
+
a("div", Ul, [
|
|
1377
1377
|
g(J, j({
|
|
1378
1378
|
modelValue: t.value,
|
|
1379
1379
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => t.value = u)
|
|
@@ -1382,7 +1382,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1382
1382
|
onBlur: c
|
|
1383
1383
|
}), {
|
|
1384
1384
|
icon: x(() => [
|
|
1385
|
-
g(
|
|
1385
|
+
g(o, { class: "size-8" })
|
|
1386
1386
|
]),
|
|
1387
1387
|
_: 1
|
|
1388
1388
|
}, 16, ["modelValue"])
|
|
@@ -1392,20 +1392,20 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
|
|
|
1392
1392
|
}, 16);
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
}),
|
|
1395
|
+
}), Kl = {
|
|
1396
1396
|
viewBox: "0 0 24 24",
|
|
1397
1397
|
width: "1.2em",
|
|
1398
1398
|
height: "1.2em"
|
|
1399
1399
|
};
|
|
1400
|
-
function
|
|
1401
|
-
return
|
|
1402
|
-
|
|
1400
|
+
function Rl(e, n) {
|
|
1401
|
+
return p(), v("svg", Kl, [...n[0] || (n[0] = [
|
|
1402
|
+
a("path", {
|
|
1403
1403
|
fill: "currentColor",
|
|
1404
1404
|
d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
|
|
1405
1405
|
}, null, -1)
|
|
1406
1406
|
])]);
|
|
1407
1407
|
}
|
|
1408
|
-
const
|
|
1408
|
+
const Fl = O({ name: "ri-list-check", render: Rl }), Wl = { class: "flex justify-center py-4" }, Bo = /* @__PURE__ */ M({
|
|
1409
1409
|
__name: "CardList",
|
|
1410
1410
|
props: {
|
|
1411
1411
|
size: {},
|
|
@@ -1425,20 +1425,20 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
|
|
|
1425
1425
|
},
|
|
1426
1426
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1427
1427
|
setup(e, { emit: n }) {
|
|
1428
|
-
const
|
|
1429
|
-
var
|
|
1430
|
-
return Array.isArray(d == null ? void 0 : d.items) && ((
|
|
1431
|
-
}, c = ({ name: d, value: m, opts:
|
|
1428
|
+
const s = e, l = n, t = ({ value: d }) => l("setState", d), r = ({ opts: d, value: m }) => {
|
|
1429
|
+
var o;
|
|
1430
|
+
return Array.isArray(d == null ? void 0 : d.items) && ((o = d == null ? void 0 : d.items.find((i) => i.value == m)) == null ? void 0 : o.name) || m;
|
|
1431
|
+
}, c = ({ name: d, value: m, opts: o = {} }) => {
|
|
1432
1432
|
var b;
|
|
1433
|
-
const { items: i = [], disabled: u } =
|
|
1434
|
-
return { label: d, modelValue:
|
|
1433
|
+
const { items: i = [], disabled: u } = o, f = ((b = i.find((h) => h.value == m)) == null ? void 0 : b.name) || m;
|
|
1434
|
+
return { label: d, modelValue: f, items: i, disabled: !!u };
|
|
1435
1435
|
};
|
|
1436
1436
|
return (d, m) => {
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1439
|
-
onClick: m[1] || (m[1] = (i) =>
|
|
1440
|
-
onEdit: m[2] || (m[2] = (i) =>
|
|
1441
|
-
onClone: m[3] || (m[3] = (i) =>
|
|
1437
|
+
const o = Fl;
|
|
1438
|
+
return p(), I(oe, j(s, {
|
|
1439
|
+
onClick: m[1] || (m[1] = (i) => l("click", i)),
|
|
1440
|
+
onEdit: m[2] || (m[2] = (i) => l("edit", i)),
|
|
1441
|
+
onClone: m[3] || (m[3] = (i) => l("clone", i))
|
|
1442
1442
|
}), {
|
|
1443
1443
|
icon: x((i) => [
|
|
1444
1444
|
k(d.$slots, "icon", K(R(i)))
|
|
@@ -1450,11 +1450,11 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
|
|
|
1450
1450
|
H(_(r(i)), 1)
|
|
1451
1451
|
]),
|
|
1452
1452
|
header: x((i) => [
|
|
1453
|
-
|
|
1453
|
+
a("div", {
|
|
1454
1454
|
onClick: m[0] || (m[0] = F(() => {
|
|
1455
1455
|
}, ["prevent", "stop"]))
|
|
1456
1456
|
}, [
|
|
1457
|
-
g(
|
|
1457
|
+
g(se, j(c(i), {
|
|
1458
1458
|
"is-popup": "",
|
|
1459
1459
|
top: "0",
|
|
1460
1460
|
left: "-115px",
|
|
@@ -1467,7 +1467,7 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
|
|
|
1467
1467
|
onClick: F(u.click, ["stop"])
|
|
1468
1468
|
}, {
|
|
1469
1469
|
default: x(() => [
|
|
1470
|
-
g(
|
|
1470
|
+
g(o, { class: "size-6" })
|
|
1471
1471
|
]),
|
|
1472
1472
|
_: 1
|
|
1473
1473
|
}, 8, ["onClick"])
|
|
@@ -1477,8 +1477,8 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
|
|
|
1477
1477
|
])
|
|
1478
1478
|
]),
|
|
1479
1479
|
dialog: x((i) => [
|
|
1480
|
-
|
|
1481
|
-
g(
|
|
1480
|
+
a("div", Wl, [
|
|
1481
|
+
g(se, j(c(i), {
|
|
1482
1482
|
top: "-50%",
|
|
1483
1483
|
left: "50%",
|
|
1484
1484
|
onChange: t
|
|
@@ -1489,33 +1489,33 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
|
|
|
1489
1489
|
}, 16);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), ql = {
|
|
1493
1493
|
viewBox: "0 0 24 24",
|
|
1494
1494
|
width: "1.2em",
|
|
1495
1495
|
height: "1.2em"
|
|
1496
1496
|
};
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1499
|
-
|
|
1497
|
+
function Gl(e, n) {
|
|
1498
|
+
return p(), v("svg", ql, [...n[0] || (n[0] = [
|
|
1499
|
+
a("path", {
|
|
1500
1500
|
fill: "currentColor",
|
|
1501
1501
|
d: "M15.5 5a3.5 3.5 0 1 0 0 7a3.5 3.5 0 0 0 0-7M10 8.5a5.5 5.5 0 1 1 10.032 3.117l2.675 2.676l-1.414 1.414l-2.675-2.675A5.5 5.5 0 0 1 10 8.5M3 4h5v2H3zm0 7h5v2H3zm18 7v2H3v-2z"
|
|
1502
1502
|
}, null, -1)
|
|
1503
1503
|
])]);
|
|
1504
1504
|
}
|
|
1505
|
-
const
|
|
1505
|
+
const Jl = O({ name: "ri-menu-search-line", render: Gl }), Zl = {
|
|
1506
1506
|
viewBox: "0 0 24 24",
|
|
1507
1507
|
width: "1.2em",
|
|
1508
1508
|
height: "1.2em"
|
|
1509
1509
|
};
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1512
|
-
|
|
1510
|
+
function Xl(e, n) {
|
|
1511
|
+
return p(), v("svg", Zl, [...n[0] || (n[0] = [
|
|
1512
|
+
a("path", {
|
|
1513
1513
|
fill: "currentColor",
|
|
1514
1514
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
1515
1515
|
}, null, -1)
|
|
1516
1516
|
])]);
|
|
1517
1517
|
}
|
|
1518
|
-
const ge = O({ name: "ri-add-line", render:
|
|
1518
|
+
const ge = O({ name: "ri-add-line", render: Xl }), Yl = { class: "flex w-full relative" }, Ql = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, es = ["disabled"], Fe = /* @__PURE__ */ M({
|
|
1519
1519
|
__name: "VTextWrapper",
|
|
1520
1520
|
props: {
|
|
1521
1521
|
active: { type: Boolean },
|
|
@@ -1525,66 +1525,66 @@ const ge = O({ name: "ri-add-line", render: Xs }), Ys = { class: "flex w-full re
|
|
|
1525
1525
|
},
|
|
1526
1526
|
emits: ["icon"],
|
|
1527
1527
|
setup(e, { emit: n }) {
|
|
1528
|
-
const
|
|
1528
|
+
const s = n, l = E(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = E(() => [e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
|
|
1529
1529
|
return (r, c) => {
|
|
1530
1530
|
const d = ge;
|
|
1531
|
-
return
|
|
1532
|
-
|
|
1533
|
-
class:
|
|
1531
|
+
return p(), v("div", Yl, [
|
|
1532
|
+
a("div", {
|
|
1533
|
+
class: T(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", t.value])
|
|
1534
1534
|
}, [
|
|
1535
|
-
|
|
1536
|
-
class:
|
|
1535
|
+
a("span", {
|
|
1536
|
+
class: T(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", l.value])
|
|
1537
1537
|
}, _(e.label), 3),
|
|
1538
|
-
|
|
1538
|
+
a("div", Ql, [
|
|
1539
1539
|
k(r.$slots, "default")
|
|
1540
1540
|
]),
|
|
1541
|
-
e.hideIcon ? z("", !0) : (
|
|
1541
|
+
e.hideIcon ? z("", !0) : (p(), v("button", {
|
|
1542
1542
|
key: 0,
|
|
1543
1543
|
disabled: e.disabled,
|
|
1544
|
-
class:
|
|
1545
|
-
onClick: c[0] || (c[0] = (m) =>
|
|
1544
|
+
class: T([{ "cursor-pointer": !e.disabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
|
|
1545
|
+
onClick: c[0] || (c[0] = (m) => s("icon", m))
|
|
1546
1546
|
}, [
|
|
1547
1547
|
k(r.$slots, "icon", {}, () => [
|
|
1548
1548
|
g(d, { class: "size-4" })
|
|
1549
1549
|
])
|
|
1550
|
-
], 10,
|
|
1550
|
+
], 10, es))
|
|
1551
1551
|
], 2)
|
|
1552
1552
|
]);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
}),
|
|
1555
|
+
}), ts = {
|
|
1556
1556
|
viewBox: "0 0 24 24",
|
|
1557
1557
|
width: "1.2em",
|
|
1558
1558
|
height: "1.2em"
|
|
1559
1559
|
};
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1562
|
-
|
|
1560
|
+
function ns(e, n) {
|
|
1561
|
+
return p(), v("svg", ts, [...n[0] || (n[0] = [
|
|
1562
|
+
a("path", {
|
|
1563
1563
|
fill: "currentColor",
|
|
1564
1564
|
d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"
|
|
1565
1565
|
}, null, -1)
|
|
1566
1566
|
])]);
|
|
1567
1567
|
}
|
|
1568
|
-
const
|
|
1568
|
+
const ls = O({ name: "ri-file-copy-line", render: ns }), ss = {
|
|
1569
1569
|
viewBox: "0 0 24 24",
|
|
1570
1570
|
width: "1.2em",
|
|
1571
1571
|
height: "1.2em"
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1574
|
-
return
|
|
1575
|
-
|
|
1573
|
+
function as(e, n) {
|
|
1574
|
+
return p(), v("svg", ss, [...n[0] || (n[0] = [
|
|
1575
|
+
a("path", {
|
|
1576
1576
|
fill: "currentColor",
|
|
1577
1577
|
d: "M2 4a1 1 0 0 1 1-1h7.414l2 2H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3c-.55 0-1-.45-1-1zm8.586 2l-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z"
|
|
1578
1578
|
}, null, -1)
|
|
1579
1579
|
])]);
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "me-1"
|
|
1584
|
-
},
|
|
1584
|
+
}, ds = { class: "dark:text-gray-300" }, cs = { class: "flex gap-3 items-center z-10" }, us = {
|
|
1585
1585
|
key: 0,
|
|
1586
1586
|
class: "flex ps-5"
|
|
1587
|
-
},
|
|
1587
|
+
}, ms = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ M({
|
|
1588
1588
|
__name: "VListObject",
|
|
1589
1589
|
props: {
|
|
1590
1590
|
items: { default: () => ({}) },
|
|
@@ -1593,27 +1593,27 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1593
1593
|
},
|
|
1594
1594
|
emits: ["click"],
|
|
1595
1595
|
setup(e, { emit: n }) {
|
|
1596
|
-
const
|
|
1596
|
+
const s = n, l = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-200 dark:before:border-gray-800/50 hover:before:bg-gray-400/10", t = L({}), { text: r, copy: c, copied: d, isSupported: m } = _t(), o = (b) => {
|
|
1597
1597
|
t.value[b] = !t.value[b];
|
|
1598
|
-
}, i = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`,
|
|
1599
|
-
|
|
1598
|
+
}, i = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`, f = (b, h) => {
|
|
1599
|
+
s("click", { key: b, path: u(b), isObject: h });
|
|
1600
1600
|
};
|
|
1601
1601
|
return (b, h) => {
|
|
1602
|
-
const y =
|
|
1603
|
-
return
|
|
1604
|
-
(
|
|
1602
|
+
const y = os, S = ls, V = ge;
|
|
1603
|
+
return p(), v("ul", null, [
|
|
1604
|
+
(p(!0), v(B, null, N(e.items, (w, P) => (p(), v("li", {
|
|
1605
1605
|
key: P,
|
|
1606
|
-
class:
|
|
1606
|
+
class: T(i(w) ? "" : `flex items-center ${l()}`)
|
|
1607
1607
|
}, [
|
|
1608
|
-
|
|
1609
|
-
class:
|
|
1610
|
-
onClick: (Z) =>
|
|
1608
|
+
a("div", {
|
|
1609
|
+
class: T(["flex items-center cursor-pointer ps-2 h-8", i(w) ? `${l()}` : ""]),
|
|
1610
|
+
onClick: (Z) => o(P)
|
|
1611
1611
|
}, [
|
|
1612
|
-
i(w) ? (
|
|
1612
|
+
i(w) ? (p(), v("div", rs, [
|
|
1613
1613
|
g(y, { class: "size-5" })
|
|
1614
1614
|
])) : z("", !0),
|
|
1615
|
-
|
|
1616
|
-
q(m) ? (
|
|
1615
|
+
a("div", ds, _(P), 1),
|
|
1616
|
+
q(m) ? (p(), I(A, {
|
|
1617
1617
|
key: 1,
|
|
1618
1618
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1619
1619
|
color: "transparent",
|
|
@@ -1625,19 +1625,19 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 1
|
|
1627
1627
|
}, 8, ["onClick"])) : z("", !0),
|
|
1628
|
-
q(r) === u(P) ? (
|
|
1628
|
+
q(r) === u(P) ? (p(), v("span", {
|
|
1629
1629
|
key: 2,
|
|
1630
|
-
class:
|
|
1630
|
+
class: T(["text-gray-500 transition-all duration-1000 text-sm", q(d) ? "opacity-100" : "opacity-0"])
|
|
1631
1631
|
}, _(b.$t("copied")), 3)) : z("", !0),
|
|
1632
|
-
!e.onlyValue && i(w) ? (
|
|
1633
|
-
h[1] || (h[1] =
|
|
1634
|
-
|
|
1632
|
+
!e.onlyValue && i(w) ? (p(), v(B, { key: 3 }, [
|
|
1633
|
+
h[1] || (h[1] = a("div", { class: "flex-auto" }, null, -1)),
|
|
1634
|
+
a("div", cs, [
|
|
1635
1635
|
g(A, {
|
|
1636
1636
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1637
1637
|
color: "transparent",
|
|
1638
1638
|
size: "sm",
|
|
1639
1639
|
title: b.$t("add"),
|
|
1640
|
-
onClick: F((Z) =>
|
|
1640
|
+
onClick: F((Z) => f(P, i(w)), ["stop"])
|
|
1641
1641
|
}, {
|
|
1642
1642
|
default: x(() => [
|
|
1643
1643
|
g(V, { class: "size-5" })
|
|
@@ -1646,26 +1646,26 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1646
1646
|
}, 8, ["title", "onClick"])
|
|
1647
1647
|
])
|
|
1648
1648
|
], 64)) : z("", !0)
|
|
1649
|
-
], 10,
|
|
1650
|
-
i(w) ? (
|
|
1649
|
+
], 10, is),
|
|
1650
|
+
i(w) ? (p(), v("div", us, [
|
|
1651
1651
|
he(g(We, {
|
|
1652
1652
|
class: "flex-auto",
|
|
1653
1653
|
path: u(P),
|
|
1654
1654
|
items: w,
|
|
1655
1655
|
onlyValue: e.onlyValue,
|
|
1656
|
-
onClick: h[0] || (h[0] = (Z) =>
|
|
1656
|
+
onClick: h[0] || (h[0] = (Z) => s("click", Z))
|
|
1657
1657
|
}, null, 8, ["path", "items", "onlyValue"]), [
|
|
1658
|
-
[
|
|
1658
|
+
[lt, t.value[P]]
|
|
1659
1659
|
])
|
|
1660
|
-
])) : (
|
|
1661
|
-
h[2] || (h[2] =
|
|
1662
|
-
|
|
1660
|
+
])) : (p(), v(B, { key: 1 }, [
|
|
1661
|
+
h[2] || (h[2] = a("div", { class: "flex-auto gap-3" }, null, -1)),
|
|
1662
|
+
a("div", ms, _(w), 1),
|
|
1663
1663
|
g(A, {
|
|
1664
1664
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1665
1665
|
color: "gray",
|
|
1666
1666
|
size: "sm",
|
|
1667
1667
|
title: b.$t("add"),
|
|
1668
|
-
onClick: F((Z) =>
|
|
1668
|
+
onClick: F((Z) => f(P, i(w)), ["stop"])
|
|
1669
1669
|
}, {
|
|
1670
1670
|
default: x(() => [
|
|
1671
1671
|
g(V, { class: "size-5" })
|
|
@@ -1677,50 +1677,50 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1677
1677
|
]);
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
|
-
}),
|
|
1680
|
+
}), ps = { class: "glass-inset rounded-md p-1" }, fs = { class: "flex gap-1" }, vs = ["onClick"], hs = { class: "px-4 py-2" }, gs = { class: "relative my-4" }, bs = { key: 0 }, xs = /* @__PURE__ */ M({
|
|
1681
1681
|
__name: "VTabs",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
value: {},
|
|
1684
1684
|
items: {}
|
|
1685
1685
|
},
|
|
1686
1686
|
emits: ["click"],
|
|
1687
|
-
setup(e, { expose: n, emit:
|
|
1688
|
-
const
|
|
1687
|
+
setup(e, { expose: n, emit: s }) {
|
|
1688
|
+
const l = s, t = L(e.value || 0), r = (d) => [
|
|
1689
1689
|
t.value === d ? "bg-primary/10 text-primary" : "text-gray-500 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
|
|
1690
1690
|
], c = (d) => {
|
|
1691
|
-
t.value = d,
|
|
1691
|
+
t.value = d, l("click", d);
|
|
1692
1692
|
};
|
|
1693
1693
|
return n({
|
|
1694
1694
|
setActiveTab: c,
|
|
1695
1695
|
activeTab: t
|
|
1696
|
-
}), (d, m) => (
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
(
|
|
1696
|
+
}), (d, m) => (p(), v("div", null, [
|
|
1697
|
+
a("div", ps, [
|
|
1698
|
+
a("div", fs, [
|
|
1699
|
+
(p(!0), v(B, null, N(e.items, (o, i) => (p(), v("div", {
|
|
1700
1700
|
key: i,
|
|
1701
1701
|
class: "relative flex-auto"
|
|
1702
1702
|
}, [
|
|
1703
|
-
|
|
1703
|
+
a("button", {
|
|
1704
1704
|
type: "button",
|
|
1705
1705
|
class: "w-full",
|
|
1706
1706
|
onClick: (u) => c(i)
|
|
1707
1707
|
}, [
|
|
1708
|
-
|
|
1709
|
-
class:
|
|
1708
|
+
a("div", {
|
|
1709
|
+
class: T([r(i), "rounded-md px-3 py-2 font-medium text-lg transition"])
|
|
1710
1710
|
}, [
|
|
1711
1711
|
k(d.$slots, "header", {
|
|
1712
|
-
tab:
|
|
1712
|
+
tab: o,
|
|
1713
1713
|
i
|
|
1714
1714
|
}, () => [
|
|
1715
|
-
|
|
1715
|
+
a("div", hs, _(o.title), 1)
|
|
1716
1716
|
])
|
|
1717
1717
|
], 2)
|
|
1718
|
-
], 8,
|
|
1718
|
+
], 8, vs)
|
|
1719
1719
|
]))), 128))
|
|
1720
1720
|
])
|
|
1721
1721
|
]),
|
|
1722
|
-
|
|
1723
|
-
(
|
|
1722
|
+
a("div", gs, [
|
|
1723
|
+
(p(!0), v(B, null, N(e.items, (o, i) => (p(), v("div", {
|
|
1724
1724
|
key: i,
|
|
1725
1725
|
class: "tab-panel"
|
|
1726
1726
|
}, [
|
|
@@ -1733,7 +1733,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1733
1733
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
1734
1734
|
}, {
|
|
1735
1735
|
default: x(() => [
|
|
1736
|
-
t.value === i ? (
|
|
1736
|
+
t.value === i ? (p(), v("div", bs, [
|
|
1737
1737
|
k(d.$slots, `tab-${i}`)
|
|
1738
1738
|
])) : z("", !0)
|
|
1739
1739
|
]),
|
|
@@ -1743,7 +1743,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1743
1743
|
])
|
|
1744
1744
|
]));
|
|
1745
1745
|
}
|
|
1746
|
-
}),
|
|
1746
|
+
}), ys = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, _s = ["title", "onMouseenter", "onMouseleave"], $s = { class: "flex flex-auto" }, ks = ["disabled"], xe = /* @__PURE__ */ M({
|
|
1747
1747
|
__name: "VFunc",
|
|
1748
1748
|
props: {
|
|
1749
1749
|
label: {},
|
|
@@ -1754,24 +1754,24 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1754
1754
|
},
|
|
1755
1755
|
emits: ["change", "icon", "hover"],
|
|
1756
1756
|
setup(e, { emit: n }) {
|
|
1757
|
-
const
|
|
1757
|
+
const s = n, l = ["v", "a", "b", "c"], t = L(e.value || ""), r = (m) => {
|
|
1758
1758
|
try {
|
|
1759
1759
|
return new Function(m), !0;
|
|
1760
|
-
} catch (
|
|
1761
|
-
return console.warn(
|
|
1760
|
+
} catch (o) {
|
|
1761
|
+
return console.warn(o), !1;
|
|
1762
1762
|
}
|
|
1763
1763
|
}, c = Me((m) => {
|
|
1764
|
-
const
|
|
1765
|
-
r(
|
|
1766
|
-
}, 500), d = (m) =>
|
|
1767
|
-
return
|
|
1764
|
+
const o = m.target;
|
|
1765
|
+
r(o.value) && s("change", o.value);
|
|
1766
|
+
}, 500), d = (m) => s("icon", m);
|
|
1767
|
+
return ae(
|
|
1768
1768
|
() => e.value,
|
|
1769
1769
|
() => {
|
|
1770
1770
|
e.value && (t.value = e.value);
|
|
1771
1771
|
}
|
|
1772
|
-
), (m,
|
|
1773
|
-
const i =
|
|
1774
|
-
return
|
|
1772
|
+
), (m, o) => {
|
|
1773
|
+
const i = ce, u = ge;
|
|
1774
|
+
return p(), I(Fe, {
|
|
1775
1775
|
active: !!e.value,
|
|
1776
1776
|
disabled: e.disabled,
|
|
1777
1777
|
label: e.label,
|
|
@@ -1779,38 +1779,38 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1779
1779
|
onIcon: d
|
|
1780
1780
|
}, {
|
|
1781
1781
|
icon: x(() => [
|
|
1782
|
-
e.value ? (
|
|
1782
|
+
e.value ? (p(), I(i, {
|
|
1783
1783
|
key: 0,
|
|
1784
1784
|
class: "size-4"
|
|
1785
|
-
})) : (
|
|
1785
|
+
})) : (p(), I(u, {
|
|
1786
1786
|
key: 1,
|
|
1787
1787
|
class: "size-4"
|
|
1788
1788
|
}))
|
|
1789
1789
|
]),
|
|
1790
1790
|
default: x(() => [
|
|
1791
|
-
e.value ? (
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
(
|
|
1795
|
-
|
|
1791
|
+
e.value ? (p(), v(B, { key: 0 }, [
|
|
1792
|
+
a("div", ys, [
|
|
1793
|
+
o[3] || (o[3] = H(" ( ", -1)),
|
|
1794
|
+
(p(!0), v(B, null, N(e.args, (f, b) => (p(), v(B, { key: f }, [
|
|
1795
|
+
a("span", {
|
|
1796
1796
|
class: "text-blue-400/80",
|
|
1797
|
-
title:
|
|
1798
|
-
onMouseenter: (h) =>
|
|
1799
|
-
onMouseleave: (h) =>
|
|
1800
|
-
}, _(
|
|
1801
|
-
|
|
1797
|
+
title: f,
|
|
1798
|
+
onMouseenter: (h) => s("hover", "enter", b),
|
|
1799
|
+
onMouseleave: (h) => s("hover", "leave", b)
|
|
1800
|
+
}, _(l[b]), 41, _s),
|
|
1801
|
+
o[2] || (o[2] = a("span", { class: "last:hidden" }, ",", -1))
|
|
1802
1802
|
], 64))), 128)),
|
|
1803
|
-
|
|
1803
|
+
o[4] || (o[4] = H(" ) => ", -1))
|
|
1804
1804
|
]),
|
|
1805
|
-
|
|
1806
|
-
he(
|
|
1807
|
-
"onUpdate:modelValue":
|
|
1805
|
+
a("div", $s, [
|
|
1806
|
+
he(a("textarea", {
|
|
1807
|
+
"onUpdate:modelValue": o[0] || (o[0] = (f) => t.value = f),
|
|
1808
1808
|
class: "outline-0 w-full resize-none field-sizing-content",
|
|
1809
1809
|
type: "text",
|
|
1810
1810
|
disabled: e.disabled,
|
|
1811
|
-
onInput:
|
|
1812
|
-
(...
|
|
1813
|
-
}, null, 40,
|
|
1811
|
+
onInput: o[1] || (o[1] = //@ts-ignore
|
|
1812
|
+
(...f) => q(c) && q(c)(...f))
|
|
1813
|
+
}, null, 40, ks), [
|
|
1814
1814
|
[He, t.value]
|
|
1815
1815
|
])
|
|
1816
1816
|
])
|
|
@@ -1820,7 +1820,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1820
1820
|
}, 8, ["active", "disabled", "label", "hideIcon"]);
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
}),
|
|
1823
|
+
}), ws = ["checked", "disabled"], Cs = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Ms = /* @__PURE__ */ M({
|
|
1824
1824
|
__name: "VCheckbox",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
@@ -1828,48 +1828,48 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1828
1828
|
},
|
|
1829
1829
|
emits: ["update:modelValue", "click"],
|
|
1830
1830
|
setup(e, { emit: n }) {
|
|
1831
|
-
const
|
|
1831
|
+
const s = n, l = (r) => {
|
|
1832
1832
|
const c = r.target;
|
|
1833
|
-
|
|
1834
|
-
}, t = (r) =>
|
|
1835
|
-
return (r, c) => (
|
|
1836
|
-
class:
|
|
1833
|
+
s("update:modelValue", c.checked);
|
|
1834
|
+
}, t = (r) => s("click", r);
|
|
1835
|
+
return (r, c) => (p(), v("label", {
|
|
1836
|
+
class: T(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
|
|
1837
1837
|
onClick: t
|
|
1838
1838
|
}, [
|
|
1839
|
-
|
|
1839
|
+
a("input", {
|
|
1840
1840
|
type: "checkbox",
|
|
1841
1841
|
checked: !!e.modelValue,
|
|
1842
1842
|
disabled: e.disabled,
|
|
1843
1843
|
class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-white/50 transition-all checked:border-[var(--accent-blue)] checked:bg-blue-50 dark:checked:border-[var(--accent-blue)] dark:checked:bg-[var(--accent-blue)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15 dark:bg-white/[0.04]",
|
|
1844
|
-
onChange:
|
|
1845
|
-
}, null, 40,
|
|
1846
|
-
c[0] || (c[0] =
|
|
1847
|
-
|
|
1844
|
+
onChange: l
|
|
1845
|
+
}, null, 40, ws),
|
|
1846
|
+
c[0] || (c[0] = a("button", { class: "pointer-events-none absolute left-[10px] top-1/2 -translate-x-1/2 -translate-y-1/2 text-[var(--accent-blue)] opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 dark:text-white" }, [
|
|
1847
|
+
a("svg", {
|
|
1848
1848
|
class: "h-3.5 w-3.5",
|
|
1849
1849
|
viewBox: "0 0 20 20",
|
|
1850
1850
|
fill: "currentColor",
|
|
1851
1851
|
stroke: "currentColor",
|
|
1852
1852
|
"stroke-width": "1"
|
|
1853
1853
|
}, [
|
|
1854
|
-
|
|
1854
|
+
a("path", {
|
|
1855
1855
|
"fill-rule": "evenodd",
|
|
1856
1856
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
1857
1857
|
"clip-rule": "evenodd"
|
|
1858
1858
|
})
|
|
1859
1859
|
])
|
|
1860
1860
|
], -1)),
|
|
1861
|
-
|
|
1861
|
+
a("span", Cs, [
|
|
1862
1862
|
k(r.$slots, "default")
|
|
1863
1863
|
])
|
|
1864
1864
|
], 2));
|
|
1865
1865
|
}
|
|
1866
|
-
}),
|
|
1866
|
+
}), zs = { class: "flex flex-col" }, Ss = { class: "flex gap-4 mb-6" }, Vs = {
|
|
1867
1867
|
key: 0,
|
|
1868
1868
|
class: "flex gap-4"
|
|
1869
|
-
},
|
|
1869
|
+
}, Ts = {
|
|
1870
1870
|
key: 1,
|
|
1871
1871
|
class: ""
|
|
1872
|
-
},
|
|
1872
|
+
}, Ls = { class: "flex flex-col md:flex-row gap-4" }, Es = { class: "flex gap-4" }, Bs = { class: "flex justify-between flex-auto" }, As = ["onClick"], Ds = /* @__PURE__ */ M({
|
|
1873
1873
|
__name: "ItemOptions",
|
|
1874
1874
|
props: {
|
|
1875
1875
|
min: { default: 0 },
|
|
@@ -1882,25 +1882,25 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1882
1882
|
},
|
|
1883
1883
|
emits: ["update"],
|
|
1884
1884
|
setup(e, { emit: n }) {
|
|
1885
|
-
const
|
|
1885
|
+
const s = n, l = E(() => e.items.map((h, y) => ({ ...h, id: ++y }))), t = L({ name: "", value: "" }), r = E(() => e.items.length + 1), c = E(() => {
|
|
1886
1886
|
var h;
|
|
1887
1887
|
return !((h = t.value) != null && h.id);
|
|
1888
|
-
}), d = (h) => e.type === h, m = (h, y) =>
|
|
1888
|
+
}), d = (h) => e.type === h, m = (h, y) => s("update", h, y), o = (h) => h.map(({ name: y, value: S }) => ({ name: y, value: S })), i = ({ id: h, name: y, value: S }) => t.value = { id: h, name: y, value: S }, u = () => {
|
|
1889
1889
|
const h = r.value;
|
|
1890
|
-
t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items",
|
|
1891
|
-
},
|
|
1892
|
-
t.value.name === h.name && (t.value = { name: "", value: "" }), m("items",
|
|
1890
|
+
t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items", o([...l.value, t.value]));
|
|
1891
|
+
}, f = (h) => {
|
|
1892
|
+
t.value.name === h.name && (t.value = { name: "", value: "" }), m("items", o(l.value.filter((y) => y.value !== h.value)));
|
|
1893
1893
|
}, b = Me(() => {
|
|
1894
1894
|
const h = t.value;
|
|
1895
1895
|
if (!h.name || !h.value) return;
|
|
1896
|
-
const y =
|
|
1897
|
-
m("items",
|
|
1896
|
+
const y = l.value.map((S) => S.id === h.id ? h : S);
|
|
1897
|
+
m("items", o(y));
|
|
1898
1898
|
}, 300);
|
|
1899
1899
|
return (h, y) => {
|
|
1900
|
-
const S =
|
|
1901
|
-
return
|
|
1902
|
-
|
|
1903
|
-
g(
|
|
1900
|
+
const S = ce, V = ge;
|
|
1901
|
+
return p(), v("div", zs, [
|
|
1902
|
+
a("div", Ss, [
|
|
1903
|
+
g(Ms, {
|
|
1904
1904
|
modelValue: e.disabled,
|
|
1905
1905
|
"onUpdate:modelValue": y[0] || (y[0] = (w) => m("disabled", w ? 1 : 0))
|
|
1906
1906
|
}, {
|
|
@@ -1910,7 +1910,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1910
1910
|
_: 1
|
|
1911
1911
|
}, 8, ["modelValue"])
|
|
1912
1912
|
]),
|
|
1913
|
-
d("dimmer") ? (
|
|
1913
|
+
d("dimmer") ? (p(), v("div", Vs, [
|
|
1914
1914
|
g(J, {
|
|
1915
1915
|
modelValue: e.min,
|
|
1916
1916
|
label: "Min",
|
|
@@ -1927,8 +1927,8 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1927
1927
|
"onUpdate:modelValue": y[3] || (y[3] = (w) => m("step", +w))
|
|
1928
1928
|
}, null, 8, ["modelValue"])
|
|
1929
1929
|
])) : z("", !0),
|
|
1930
|
-
d("list") ? (
|
|
1931
|
-
|
|
1930
|
+
d("list") ? (p(), v("div", Ts, [
|
|
1931
|
+
a("div", Ls, [
|
|
1932
1932
|
g(J, {
|
|
1933
1933
|
modelValue: t.value.name,
|
|
1934
1934
|
"onUpdate:modelValue": [
|
|
@@ -1948,24 +1948,24 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1948
1948
|
label: "Value"
|
|
1949
1949
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
1950
1950
|
]),
|
|
1951
|
-
|
|
1952
|
-
g(
|
|
1951
|
+
a("div", Es, [
|
|
1952
|
+
g(se, {
|
|
1953
1953
|
"model-value": t.value.value,
|
|
1954
1954
|
label: "List",
|
|
1955
|
-
items:
|
|
1955
|
+
items: l.value,
|
|
1956
1956
|
top: "unset",
|
|
1957
1957
|
bottom: "0",
|
|
1958
1958
|
onChange: i
|
|
1959
1959
|
}, {
|
|
1960
1960
|
item: x(({ item: w }) => [
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1961
|
+
a("div", Bs, [
|
|
1962
|
+
a("span", null, _(w.name), 1),
|
|
1963
|
+
a("button", {
|
|
1964
1964
|
class: "cursor-pointer size-4",
|
|
1965
|
-
onClick: F((P) =>
|
|
1965
|
+
onClick: F((P) => f(w), ["prevent", "stop"])
|
|
1966
1966
|
}, [
|
|
1967
1967
|
g(S)
|
|
1968
|
-
], 8,
|
|
1968
|
+
], 8, As)
|
|
1969
1969
|
])
|
|
1970
1970
|
]),
|
|
1971
1971
|
_: 1
|
|
@@ -1985,7 +1985,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1985
1985
|
]);
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
|
-
}),
|
|
1988
|
+
}), Is = { class: "flex flex-col" }, Hs = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, js = { class: "flex-auto order-1" }, Ps = { class: "flex-auto gap-x-2 order-1" }, Ns = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Os = { class: "flex gap-2 items-center" }, Us = { class: "flex flex-col gap-4" }, Ks = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Rs = { class: "relative group" }, Fs = { class: "select-none" }, Ws = ["onClick"], qs = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Gs = { class: "flex-[0_0_130px] size-[130px]" }, Js = { class: "flex gap-4 justify-end" }, Zs = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, Ao = /* @__PURE__ */ M({
|
|
1989
1989
|
__name: "ItemEdit",
|
|
1990
1990
|
props: {
|
|
1991
1991
|
items: {},
|
|
@@ -1996,7 +1996,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
1996
1996
|
},
|
|
1997
1997
|
emits: ["button"],
|
|
1998
1998
|
setup(e, { emit: n }) {
|
|
1999
|
-
const
|
|
1999
|
+
const s = n, l = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = L({
|
|
2000
2000
|
id: "",
|
|
2001
2001
|
name: "",
|
|
2002
2002
|
type: "button",
|
|
@@ -2006,27 +2006,27 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2006
2006
|
set: "",
|
|
2007
2007
|
get: "",
|
|
2008
2008
|
getTo: ""
|
|
2009
|
-
}), r =
|
|
2009
|
+
}), r = L(!1), c = E(() => {
|
|
2010
2010
|
var $;
|
|
2011
2011
|
return !(($ = e.item) != null && $.id);
|
|
2012
|
-
}), d =
|
|
2012
|
+
}), d = E(() => !!e.items.filter(($) => {
|
|
2013
2013
|
var C;
|
|
2014
2014
|
return $.id !== ((C = e.item) == null ? void 0 : C.id);
|
|
2015
|
-
}).find(($) => $.id === (t == null ? void 0 : t.value.id))), m =
|
|
2015
|
+
}).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = E(() => t.value.type === "info"), o = E(() => {
|
|
2016
2016
|
var $;
|
|
2017
2017
|
return ($ = t.value.args) == null ? void 0 : $.length;
|
|
2018
|
-
}), i =
|
|
2018
|
+
}), i = E(() => t.value.args.length > 3), u = E(() => {
|
|
2019
2019
|
if (d.value) return !0;
|
|
2020
2020
|
const { id: $, args: C } = t.value;
|
|
2021
2021
|
return !$ || !C.length;
|
|
2022
|
-
}),
|
|
2022
|
+
}), f = ({ value: $ }) => t.value.icon = $, b = ({ value: $ }) => {
|
|
2023
2023
|
const C = $;
|
|
2024
2024
|
t.value.type = C, delete t.value.opts, ["button", "list", "dimmer"].includes(C) && ($ === "button" && (t.value.opts = {}), $ === "list" && (t.value.opts = { items: [] }), $ === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
|
|
2025
2025
|
}, h = ($) => {
|
|
2026
2026
|
$ === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), $ === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), $ === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
|
|
2027
|
-
}, y = ($) =>
|
|
2027
|
+
}, y = ($) => s("button", $, t.value), S = ($) => t.value.args = t.value.args.filter((C) => C !== $), V = ({ path: $ }) => {
|
|
2028
2028
|
!t.value.args.length && !t.value.id && (t.value.id = $), t.value.args.push($), r.value = !1;
|
|
2029
|
-
}, w =
|
|
2029
|
+
}, w = L(-1), P = ($) => w.value === $, Z = ($, C) => {
|
|
2030
2030
|
$ === "enter" && (w.value = C), $ === "leave" && (w.value = -1);
|
|
2031
2031
|
}, be = ($, C) => {
|
|
2032
2032
|
$ === "set" && (t.value.set = C), $ === "get" && (t.value.get = C), $ === "getTo" && (t.value.getTo = C), C || delete t.value[$];
|
|
@@ -2039,24 +2039,24 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2039
2039
|
var $;
|
|
2040
2040
|
($ = e.item) != null && $.id && (t.value = bt(e.item));
|
|
2041
2041
|
}), ($, C) => {
|
|
2042
|
-
const et =
|
|
2043
|
-
return
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
g(
|
|
2042
|
+
const et = Jl, tt = ce;
|
|
2043
|
+
return p(), v("div", Is, [
|
|
2044
|
+
a("div", Hs, [
|
|
2045
|
+
a("div", js, [
|
|
2046
|
+
g(xs, {
|
|
2047
2047
|
class: "flex-auto min-h-75",
|
|
2048
2048
|
value: 0,
|
|
2049
|
-
items:
|
|
2049
|
+
items: l
|
|
2050
2050
|
}, {
|
|
2051
2051
|
"tab-0": x(() => [
|
|
2052
|
-
|
|
2052
|
+
a("div", Ps, [
|
|
2053
2053
|
g(J, {
|
|
2054
2054
|
modelValue: t.value.id,
|
|
2055
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2055
|
+
"onUpdate:modelValue": C[0] || (C[0] = (D) => t.value.id = D),
|
|
2056
2056
|
label: "ID",
|
|
2057
2057
|
message: d.value ? $.$t("used") : ""
|
|
2058
|
-
},
|
|
2059
|
-
|
|
2058
|
+
}, st({ _: 2 }, [
|
|
2059
|
+
o.value ? void 0 : {
|
|
2060
2060
|
name: "icon",
|
|
2061
2061
|
fn: x(() => [
|
|
2062
2062
|
g(A, {
|
|
@@ -2074,30 +2074,30 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2074
2074
|
]), 1032, ["modelValue", "message"]),
|
|
2075
2075
|
g(J, {
|
|
2076
2076
|
modelValue: t.value.name,
|
|
2077
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
2077
|
+
"onUpdate:modelValue": C[1] || (C[1] = (D) => t.value.name = D),
|
|
2078
2078
|
label: "Name"
|
|
2079
2079
|
}, null, 8, ["modelValue"]),
|
|
2080
|
-
|
|
2081
|
-
g(
|
|
2080
|
+
a("div", Ns, [
|
|
2081
|
+
g(se, {
|
|
2082
2082
|
"model-value": t.value.icon,
|
|
2083
2083
|
bottom: "0",
|
|
2084
2084
|
top: "unset",
|
|
2085
2085
|
label: "Icon",
|
|
2086
2086
|
class: "mb-6",
|
|
2087
2087
|
items: e.listIcons,
|
|
2088
|
-
onChange:
|
|
2088
|
+
onChange: f
|
|
2089
2089
|
}, {
|
|
2090
|
-
item: x(({ item:
|
|
2091
|
-
|
|
2090
|
+
item: x(({ item: D }) => [
|
|
2091
|
+
a("div", Os, [
|
|
2092
2092
|
k($.$slots, "icon", {
|
|
2093
|
-
icon:
|
|
2093
|
+
icon: D.value
|
|
2094
2094
|
}),
|
|
2095
|
-
|
|
2095
|
+
a("div", null, _(D.name), 1)
|
|
2096
2096
|
])
|
|
2097
2097
|
]),
|
|
2098
2098
|
_: 3
|
|
2099
2099
|
}, 8, ["model-value", "items"]),
|
|
2100
|
-
g(
|
|
2100
|
+
g(se, {
|
|
2101
2101
|
"model-value": t.value.type,
|
|
2102
2102
|
bottom: "0",
|
|
2103
2103
|
top: "unset",
|
|
@@ -2109,34 +2109,34 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2109
2109
|
])
|
|
2110
2110
|
]),
|
|
2111
2111
|
"tab-1": x(() => [
|
|
2112
|
-
|
|
2112
|
+
a("div", Us, [
|
|
2113
2113
|
g(Fe, {
|
|
2114
2114
|
active: !!t.value.args.length,
|
|
2115
2115
|
disabled: i.value,
|
|
2116
2116
|
label: "Arguments",
|
|
2117
|
-
onIcon: C[2] || (C[2] = (
|
|
2117
|
+
onIcon: C[2] || (C[2] = (D) => r.value = !0)
|
|
2118
2118
|
}, {
|
|
2119
2119
|
default: x(() => [
|
|
2120
|
-
|
|
2121
|
-
(
|
|
2122
|
-
key:
|
|
2120
|
+
a("div", Ks, [
|
|
2121
|
+
(p(!0), v(B, null, N(t.value.args, (D, Ve) => (p(), v("div", {
|
|
2122
|
+
key: D,
|
|
2123
2123
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2124
2124
|
}, [
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
class:
|
|
2125
|
+
a("div", Rs, [
|
|
2126
|
+
a("span", Fs, _(D), 1),
|
|
2127
|
+
a("div", {
|
|
2128
|
+
class: T(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", P(Ve) ? "visible opacity-100" : ""])
|
|
2129
2129
|
}, [
|
|
2130
|
-
|
|
2130
|
+
a("pre", null, _(q(kt)(D, e.object)), 1)
|
|
2131
2131
|
], 2)
|
|
2132
2132
|
]),
|
|
2133
|
-
Ve || t.value.args.length < 2 ? (
|
|
2133
|
+
Ve || t.value.args.length < 2 ? (p(), v("button", {
|
|
2134
2134
|
key: 0,
|
|
2135
2135
|
class: "cursor-pointer ms-1",
|
|
2136
|
-
onClick: (
|
|
2136
|
+
onClick: (io) => S(D)
|
|
2137
2137
|
}, [
|
|
2138
2138
|
g(tt, { class: "size-5" })
|
|
2139
|
-
], 8,
|
|
2139
|
+
], 8, Ws)) : z("", !0)
|
|
2140
2140
|
]))), 128))
|
|
2141
2141
|
])
|
|
2142
2142
|
]),
|
|
@@ -2145,34 +2145,34 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2145
2145
|
g(xe, {
|
|
2146
2146
|
value: t.value.set,
|
|
2147
2147
|
args: t.value.args,
|
|
2148
|
-
disabled: !
|
|
2148
|
+
disabled: !o.value || m.value,
|
|
2149
2149
|
label: "Set",
|
|
2150
|
-
onIcon: C[3] || (C[3] = (
|
|
2150
|
+
onIcon: C[3] || (C[3] = (D) => h("set")),
|
|
2151
2151
|
onHover: Z,
|
|
2152
|
-
onChange: C[4] || (C[4] = (
|
|
2152
|
+
onChange: C[4] || (C[4] = (D) => be("set", D))
|
|
2153
2153
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2154
2154
|
g(xe, {
|
|
2155
2155
|
value: t.value.get,
|
|
2156
2156
|
args: t.value.args,
|
|
2157
|
-
disabled: !
|
|
2157
|
+
disabled: !o.value,
|
|
2158
2158
|
label: "Get",
|
|
2159
|
-
onIcon: C[5] || (C[5] = (
|
|
2159
|
+
onIcon: C[5] || (C[5] = (D) => h("get")),
|
|
2160
2160
|
onHover: Z,
|
|
2161
|
-
onChange: C[6] || (C[6] = (
|
|
2161
|
+
onChange: C[6] || (C[6] = (D) => be("get", D))
|
|
2162
2162
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2163
2163
|
g(xe, {
|
|
2164
2164
|
value: t.value.getTo,
|
|
2165
2165
|
args: t.value.args,
|
|
2166
|
-
disabled: !
|
|
2166
|
+
disabled: !o.value,
|
|
2167
2167
|
label: "GetTo",
|
|
2168
|
-
onIcon: C[7] || (C[7] = (
|
|
2168
|
+
onIcon: C[7] || (C[7] = (D) => h("getTo")),
|
|
2169
2169
|
onHover: Z,
|
|
2170
|
-
onChange: C[8] || (C[8] = (
|
|
2170
|
+
onChange: C[8] || (C[8] = (D) => be("getTo", D))
|
|
2171
2171
|
}, null, 8, ["value", "args", "disabled"])
|
|
2172
2172
|
])
|
|
2173
2173
|
]),
|
|
2174
2174
|
"tab-2": x(() => [
|
|
2175
|
-
g(
|
|
2175
|
+
g(Ds, j(t.value.opts, {
|
|
2176
2176
|
value: t.value.value,
|
|
2177
2177
|
type: t.value.type,
|
|
2178
2178
|
onUpdate: Qe
|
|
@@ -2181,18 +2181,18 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2181
2181
|
_: 3
|
|
2182
2182
|
})
|
|
2183
2183
|
]),
|
|
2184
|
-
|
|
2185
|
-
|
|
2184
|
+
a("div", qs, [
|
|
2185
|
+
a("div", Gs, [
|
|
2186
2186
|
k($.$slots, "default", { item: t.value })
|
|
2187
2187
|
])
|
|
2188
2188
|
])
|
|
2189
2189
|
]),
|
|
2190
|
-
|
|
2190
|
+
a("div", Js, [
|
|
2191
2191
|
g(A, {
|
|
2192
2192
|
class: "px-4",
|
|
2193
2193
|
color: "blue",
|
|
2194
2194
|
disabled: u.value,
|
|
2195
|
-
onClick: C[9] || (C[9] = (
|
|
2195
|
+
onClick: C[9] || (C[9] = (D) => y(c.value ? "add" : "save"))
|
|
2196
2196
|
}, {
|
|
2197
2197
|
default: x(() => [
|
|
2198
2198
|
H(_(c.value ? $.$t("add") : $.$t("save")), 1)
|
|
@@ -2203,7 +2203,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2203
2203
|
class: "px-4",
|
|
2204
2204
|
color: "red",
|
|
2205
2205
|
outline: "",
|
|
2206
|
-
onClick: C[10] || (C[10] = (
|
|
2206
|
+
onClick: C[10] || (C[10] = (D) => y("remove"))
|
|
2207
2207
|
}, {
|
|
2208
2208
|
default: x(() => [
|
|
2209
2209
|
H(_($.$t("remove")), 1)
|
|
@@ -2211,17 +2211,17 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2211
2211
|
_: 1
|
|
2212
2212
|
})
|
|
2213
2213
|
]),
|
|
2214
|
-
r.value ? (
|
|
2214
|
+
r.value ? (p(), I(Oe, {
|
|
2215
2215
|
key: 0,
|
|
2216
2216
|
size: "md",
|
|
2217
2217
|
title: $.$t("select"),
|
|
2218
|
-
onClose: C[11] || (C[11] = (
|
|
2218
|
+
onClose: C[11] || (C[11] = (D) => r.value = !1)
|
|
2219
2219
|
}, {
|
|
2220
2220
|
default: x(() => [
|
|
2221
|
-
|
|
2221
|
+
a("div", Zs, [
|
|
2222
2222
|
g(We, {
|
|
2223
2223
|
items: e.object,
|
|
2224
|
-
onlyValue: !
|
|
2224
|
+
onlyValue: !o.value,
|
|
2225
2225
|
onClick: V
|
|
2226
2226
|
}, null, 8, ["items", "onlyValue"])
|
|
2227
2227
|
])
|
|
@@ -2231,54 +2231,54 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
|
|
|
2231
2231
|
]);
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
2234
|
-
}), Te = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' },
|
|
2235
|
-
function
|
|
2234
|
+
}), Te = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, Xs = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Ys = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Qs = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, qe = (e) => Ge(e);
|
|
2235
|
+
function Le(e) {
|
|
2236
2236
|
const n = Array.isArray(e) ? e : [e];
|
|
2237
|
-
return n.length === 0 ? qe : (
|
|
2237
|
+
return n.length === 0 ? qe : (s) => n.reduce((l, t, r) => t(l, { html: r > 0 }), s);
|
|
2238
2238
|
}
|
|
2239
|
-
class
|
|
2240
|
-
constructor(n,
|
|
2239
|
+
class ea {
|
|
2240
|
+
constructor(n, s = {}) {
|
|
2241
2241
|
if (this.lines = null, !n) throw new Error("selector is not defined");
|
|
2242
2242
|
if (this.root = n instanceof Node ? n : document.querySelector(n), !this.root) throw new Error(`element with "${n}" selector is not exist`);
|
|
2243
|
-
const
|
|
2244
|
-
this.options = { ...
|
|
2243
|
+
const l = { value: "", styles: {}, plugins: [], highlighter: qe }, { highlighters: t, ...r } = s;
|
|
2244
|
+
this.options = { ...l, ...r, highlighter: t ? Le(t) : l.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
|
|
2245
2245
|
}
|
|
2246
2246
|
init() {
|
|
2247
2247
|
this.textarea = document.createElement("textarea"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocomplete", "off"), this.pre = document.createElement("pre");
|
|
2248
2248
|
const n = Object.keys(Te).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
|
|
2249
2249
|
this.initialRootStyles = {};
|
|
2250
|
-
const
|
|
2251
|
-
n.forEach((
|
|
2252
|
-
this.initialRootStyles[
|
|
2253
|
-
}), Object.assign(this.root.style, Te, this.options.styles), Object.assign(this.textarea.style,
|
|
2250
|
+
const s = this.root.style;
|
|
2251
|
+
n.forEach((l) => {
|
|
2252
|
+
this.initialRootStyles[l] = s[l] || "";
|
|
2253
|
+
}), Object.assign(this.root.style, Te, this.options.styles), Object.assign(this.textarea.style, Xs), Object.assign(this.pre.style, Ys), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
|
|
2254
2254
|
}
|
|
2255
2255
|
addTextareaEvents() {
|
|
2256
2256
|
this.handleEvent = (n) => {
|
|
2257
2257
|
if (n.type === "keydown" && this.textarea.readOnly) return;
|
|
2258
|
-
const
|
|
2259
|
-
if (
|
|
2260
|
-
const
|
|
2258
|
+
const s = n;
|
|
2259
|
+
if (s.isComposing || s.keyCode === 229) return;
|
|
2260
|
+
const l = function(t, r) {
|
|
2261
2261
|
const { value: c, selectionStart: d, selectionEnd: m } = r.target;
|
|
2262
|
-
return t.reduce((
|
|
2262
|
+
return t.reduce((o, i) => ({ ...o, ...i(o, r) }), { value: c, selectionStart: d, selectionEnd: m });
|
|
2263
2263
|
}(this.options.plugins, n);
|
|
2264
|
-
this.update(
|
|
2264
|
+
this.update(l);
|
|
2265
2265
|
}, this.textarea.addEventListener("input", this.handleEvent), this.textarea.addEventListener("keydown", this.handleEvent), this.textarea.addEventListener("compositionend", this.handleEvent);
|
|
2266
2266
|
}
|
|
2267
2267
|
update(n) {
|
|
2268
2268
|
if (!this.textarea) return;
|
|
2269
|
-
let { value:
|
|
2270
|
-
|
|
2269
|
+
let { value: s, selectionStart: l, selectionEnd: t } = n;
|
|
2270
|
+
s != null && (s = String(s), l == null && (l = this.textarea.selectionStart), t == null && (t = this.textarea.selectionEnd), this.textarea.value !== s && (this.textarea.value = s)), l != null && (this.textarea.selectionStart = l), t != null && (this.textarea.selectionEnd = t), s !== this.value && s != null && (this.value = s, this.render(), this.updateCallback && this.updateCallback(s));
|
|
2271
2271
|
}
|
|
2272
2272
|
updateOptions(n) {
|
|
2273
2273
|
if (!this.textarea) return;
|
|
2274
|
-
const { highlighters:
|
|
2275
|
-
if (this.options = { ...this.options, ...
|
|
2274
|
+
const { highlighters: s, ...l } = n;
|
|
2275
|
+
if (this.options = { ...this.options, ...l, highlighter: s ? Le(s) : this.options.highlighter }, n.styles) {
|
|
2276
2276
|
const t = this.root.style;
|
|
2277
2277
|
Object.keys(n.styles).forEach((r) => {
|
|
2278
2278
|
r in this.initialRootStyles || (this.initialRootStyles[r] = t[r] || "");
|
|
2279
2279
|
}), Object.assign(this.root.style, n.styles), ("paddingLeft" in n.styles || "padding" in n.styles) && (this.basePaddingLeft = this.root.style.paddingLeft || "");
|
|
2280
2280
|
}
|
|
2281
|
-
this.lines && !this.options.lineNumbers && (
|
|
2281
|
+
this.lines && !this.options.lineNumbers && (ue(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), n.value != null && this.update({ value: n.value }), this.render();
|
|
2282
2282
|
}
|
|
2283
2283
|
render() {
|
|
2284
2284
|
const n = this.options.highlighter(this.value);
|
|
@@ -2286,125 +2286,125 @@ class eo {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
updateLines() {
|
|
2288
2288
|
if (!this.options.lineNumbers) return;
|
|
2289
|
-
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style,
|
|
2289
|
+
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Qs));
|
|
2290
2290
|
const n = this.value.split(`
|
|
2291
|
-
`),
|
|
2292
|
-
this.root.style.paddingLeft = `${
|
|
2291
|
+
`), s = n.length.toString().length;
|
|
2292
|
+
this.root.style.paddingLeft = `${s + 1}ch`, this.lines.innerHTML = n.map((l, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${s}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${Ge(l)}</span>`}`).join(`
|
|
2293
2293
|
`);
|
|
2294
2294
|
}
|
|
2295
2295
|
destroy() {
|
|
2296
|
-
this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent),
|
|
2296
|
+
this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), ue(this.textarea), ue(this.pre), ue(this.lines), Object.assign(this.root.style, this.initialRootStyles), Object.assign(this, { textarea: null, pre: null, lines: null, updateCallback: null, handleEvent: null, initialRootStyles: null, options: null, root: null }));
|
|
2297
2297
|
}
|
|
2298
2298
|
onUpdate(n) {
|
|
2299
2299
|
this.updateCallback = n;
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function ue(e) {
|
|
2303
2303
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
2304
2304
|
}
|
|
2305
2305
|
function Ge(e) {
|
|
2306
2306
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2307
2307
|
}
|
|
2308
|
-
const Ee = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" },
|
|
2309
|
-
function
|
|
2310
|
-
const
|
|
2311
|
-
if (!
|
|
2312
|
-
const t = n.key != null && n.key.toLowerCase() ===
|
|
2308
|
+
const Ee = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, ta = { add: "=" }, na = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
|
|
2309
|
+
function re(e, n) {
|
|
2310
|
+
const s = e.split("+").reduce((m, o) => Ee[o] ? (m.modifiers[Ee[o]] = !0, m) : { ...m, key: ta[o] || o.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), l = Object.keys(s.modifiers).every((m) => s.modifiers[m] ? n[m] : !n[m]);
|
|
2311
|
+
if (!s.key) return l;
|
|
2312
|
+
const t = n.key != null && n.key.toLowerCase() === s.key, r = (c = s.key, /^[a-z]$/.test(c) ? `key${c}` : /^[0-9]$/.test(c) ? `digit${c}` : na[c] || null);
|
|
2313
2313
|
var c;
|
|
2314
2314
|
const d = !n.isComposing && r != null && n.code != null && n.code.toLowerCase() === r;
|
|
2315
|
-
return
|
|
2315
|
+
return l && (t || d);
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2318
|
-
const n = Math.max(1, e.limit == null ? 300 : e.limit),
|
|
2319
|
-
let
|
|
2317
|
+
function la(e = {}) {
|
|
2318
|
+
const n = Math.max(1, e.limit == null ? 300 : e.limit), s = e.coalesceMs == null ? 300 : e.coalesceMs;
|
|
2319
|
+
let l = [], t = null, r = null;
|
|
2320
2320
|
const c = (d) => {
|
|
2321
|
-
|
|
2321
|
+
l = l.slice(0, t + 1), l.push(d), l.length > n && (l = l.slice(l.length - n)), t = l.length - 1;
|
|
2322
2322
|
};
|
|
2323
2323
|
return (d, m) => {
|
|
2324
|
-
const
|
|
2325
|
-
if ((
|
|
2326
|
-
if (
|
|
2327
|
-
if (i) return r = null,
|
|
2328
|
-
if (m.type === "keydown") return
|
|
2324
|
+
const o = m.type === "keydown" && re("ctrl/cmd+z", m), i = m.type === "keydown" && (re("ctrl/cmd+shift+z", m) || re("ctrl+y", m));
|
|
2325
|
+
if ((o || i) && m.preventDefault(), t === null) return l = [d], void (t = 0);
|
|
2326
|
+
if (o) return r = null, l[t].value !== d.value ? c(d) : l[t] = d, t = Math.max(0, t - 1), l[t];
|
|
2327
|
+
if (i) return r = null, l[t].value !== d.value ? void c(d) : (t = Math.min(l.length - 1, t + 1), l[t]);
|
|
2328
|
+
if (m.type === "keydown") return l[t].value !== d.value ? (r = null, void c(d)) : void (l[t] = d);
|
|
2329
2329
|
if (m.type === "input") {
|
|
2330
|
-
const u = m.timeStamp,
|
|
2331
|
-
if (r = u ?? null,
|
|
2330
|
+
const u = m.timeStamp, f = u != null && r != null && u - r <= s;
|
|
2331
|
+
if (r = u ?? null, f) return void (l[t] = d);
|
|
2332
2332
|
c(d);
|
|
2333
2333
|
}
|
|
2334
2334
|
};
|
|
2335
2335
|
}
|
|
2336
|
-
const
|
|
2337
|
-
const { value:
|
|
2338
|
-
if (!
|
|
2339
|
-
const r =
|
|
2336
|
+
const sa = () => (e, n) => {
|
|
2337
|
+
const { value: s, selectionStart: l, selectionEnd: t } = e;
|
|
2338
|
+
if (!re("enter", n) || n.type !== "keydown") return;
|
|
2339
|
+
const r = s.substring(0, l).split(`
|
|
2340
2340
|
`).pop(), c = /^\s+/.exec(r);
|
|
2341
2341
|
if (!c) return;
|
|
2342
2342
|
n.preventDefault();
|
|
2343
2343
|
const d = `
|
|
2344
2344
|
` + c[0];
|
|
2345
|
-
return { value:
|
|
2346
|
-
},
|
|
2345
|
+
return { value: s.substring(0, l) + d + s.substring(t), selectionStart: l + d.length, selectionEnd: l + d.length };
|
|
2346
|
+
}, aa = () => (e, n) => {
|
|
2347
2347
|
if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
|
|
2348
2348
|
return;
|
|
2349
|
-
const { value:
|
|
2350
|
-
if (
|
|
2349
|
+
const { value: s, selectionStart: l, selectionEnd: t } = e;
|
|
2350
|
+
if (l !== t)
|
|
2351
2351
|
return;
|
|
2352
|
-
const r =
|
|
2353
|
-
`,
|
|
2354
|
-
`,
|
|
2355
|
-
if (
|
|
2352
|
+
const r = s.lastIndexOf(`
|
|
2353
|
+
`, l - 1) + 1, c = s.indexOf(`
|
|
2354
|
+
`, l), d = c === -1 ? s.length : c;
|
|
2355
|
+
if (s.slice(l, d).trim().length > 0)
|
|
2356
2356
|
return;
|
|
2357
|
-
const i =
|
|
2357
|
+
const i = s.substring(r, d).trimEnd();
|
|
2358
2358
|
if (i.endsWith(";") || i.length === 0)
|
|
2359
2359
|
return;
|
|
2360
|
-
const u =
|
|
2360
|
+
const u = s.slice(0, d) + ";" + s.slice(d), f = l + 1;
|
|
2361
2361
|
return {
|
|
2362
2362
|
value: u,
|
|
2363
|
-
selectionStart:
|
|
2364
|
-
selectionEnd:
|
|
2363
|
+
selectionStart: f,
|
|
2364
|
+
selectionEnd: f
|
|
2365
2365
|
};
|
|
2366
2366
|
};
|
|
2367
|
-
let ze = [], W = null, U = 0, X = [], ee = null, te = null, Se, Je, G = null,
|
|
2368
|
-
const
|
|
2369
|
-
const { customSuggestions: n = [], minPrefixLength:
|
|
2367
|
+
let ze = [], W = null, U = 0, X = [], ee = null, te = null, Se, Je, G = null, le = null;
|
|
2368
|
+
const oa = (e) => {
|
|
2369
|
+
const { customSuggestions: n = [], minPrefixLength: s = 1, maxSuggestions: l = 20, tabSize: t = 2, tooltip: r = { enabled: !0 }, i18n: c, renderMenu: d, renderTooltip: m } = e;
|
|
2370
2370
|
if (!d || !m)
|
|
2371
2371
|
throw new Error("renderMenu and renderTooltip are required");
|
|
2372
|
-
return ze = [...n].map((
|
|
2372
|
+
return ze = [...n].map((o) => c(o)), Se = d, Je = m, (o, i) => {
|
|
2373
2373
|
if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
|
|
2374
2374
|
return;
|
|
2375
|
-
const { value: u, selectionStart:
|
|
2375
|
+
const { value: u, selectionStart: f } = o, b = i.target;
|
|
2376
2376
|
if (te = b, r.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
|
|
2377
|
-
setTimeout(() =>
|
|
2377
|
+
setTimeout(() => Be(b), 100);
|
|
2378
2378
|
}), b.addEventListener("keyup", () => {
|
|
2379
|
-
setTimeout(() =>
|
|
2379
|
+
setTimeout(() => Be(b), 100);
|
|
2380
2380
|
})), W) {
|
|
2381
2381
|
switch (i.key) {
|
|
2382
2382
|
case "ArrowDown":
|
|
2383
|
-
return i.preventDefault(), U < X.length - 1 && (U++, ne()), { ...
|
|
2383
|
+
return i.preventDefault(), U < X.length - 1 && (U++, ne()), { ...o };
|
|
2384
2384
|
case "ArrowUp":
|
|
2385
|
-
return i.preventDefault(), U > 0 && (U--, ne()), { ...
|
|
2385
|
+
return i.preventDefault(), U > 0 && (U--, ne()), { ...o };
|
|
2386
2386
|
case "Enter":
|
|
2387
2387
|
if (i.preventDefault(), X[U]) {
|
|
2388
|
-
const h = _e(
|
|
2388
|
+
const h = _e(o, X[U]);
|
|
2389
2389
|
return Y(), h;
|
|
2390
2390
|
}
|
|
2391
2391
|
return;
|
|
2392
2392
|
case "Tab":
|
|
2393
2393
|
if (i.preventDefault(), X[U]) {
|
|
2394
|
-
const h = _e(
|
|
2394
|
+
const h = _e(o, X[U]);
|
|
2395
2395
|
return Y(), h;
|
|
2396
2396
|
}
|
|
2397
2397
|
return;
|
|
2398
2398
|
case "Escape":
|
|
2399
|
-
return i.preventDefault(), Y(), { ...
|
|
2399
|
+
return i.preventDefault(), Y(), { ...o };
|
|
2400
2400
|
case "Backspace":
|
|
2401
2401
|
setTimeout(() => {
|
|
2402
2402
|
if (te) {
|
|
2403
|
-
const h = te.value, y = te.selectionStart, S =
|
|
2404
|
-
if (V.length <
|
|
2403
|
+
const h = te.value, y = te.selectionStart, S = fe(h, y), V = h.slice(S, y);
|
|
2404
|
+
if (V.length < s)
|
|
2405
2405
|
Y();
|
|
2406
2406
|
else {
|
|
2407
|
-
const w = ye(V).slice(0,
|
|
2407
|
+
const w = ye(V).slice(0, l);
|
|
2408
2408
|
w.length === 0 ? Y() : (X = w, U = 0, ne());
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
@@ -2412,17 +2412,17 @@ const ao = (e) => {
|
|
|
2412
2412
|
return;
|
|
2413
2413
|
}
|
|
2414
2414
|
if (["ArrowDown", "ArrowUp", "Enter", "Tab", "Escape", "Backspace"].includes(i.key))
|
|
2415
|
-
return { ...
|
|
2415
|
+
return { ...o };
|
|
2416
2416
|
}
|
|
2417
|
-
if (
|
|
2417
|
+
if (re("tab", i)) {
|
|
2418
2418
|
i.preventDefault();
|
|
2419
|
-
const h =
|
|
2419
|
+
const h = fe(u, f), y = u.slice(h, f);
|
|
2420
2420
|
if (y.length > 0) {
|
|
2421
2421
|
const P = ye(y);
|
|
2422
2422
|
if (P.length > 0)
|
|
2423
|
-
return _e(
|
|
2423
|
+
return _e(o, P[0]);
|
|
2424
2424
|
}
|
|
2425
|
-
const S = " ".repeat(t), V = u.slice(0,
|
|
2425
|
+
const S = " ".repeat(t), V = u.slice(0, f) + S + u.slice(f), w = f + t;
|
|
2426
2426
|
return {
|
|
2427
2427
|
value: V,
|
|
2428
2428
|
selectionStart: w,
|
|
@@ -2432,55 +2432,55 @@ const ao = (e) => {
|
|
|
2432
2432
|
if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
|
|
2433
2433
|
return ee && clearTimeout(ee), ee = setTimeout(() => {
|
|
2434
2434
|
ee = null;
|
|
2435
|
-
const h = b.value, y = b.selectionStart, S =
|
|
2436
|
-
if (V.length <
|
|
2435
|
+
const h = b.value, y = b.selectionStart, S = fe(h, y), V = h.slice(S, y);
|
|
2436
|
+
if (V.length < s) {
|
|
2437
2437
|
Y();
|
|
2438
2438
|
return;
|
|
2439
2439
|
}
|
|
2440
2440
|
let w = ye(V);
|
|
2441
|
-
if (w = w.slice(0,
|
|
2441
|
+
if (w = w.slice(0, l), w.length === 0) {
|
|
2442
2442
|
Y();
|
|
2443
2443
|
return;
|
|
2444
2444
|
}
|
|
2445
|
-
X = w, U = 0, W ? ne() :
|
|
2446
|
-
}, 0), { ...
|
|
2445
|
+
X = w, U = 0, W ? ne() : ia(b, w);
|
|
2446
|
+
}, 0), { ...o };
|
|
2447
2447
|
};
|
|
2448
2448
|
};
|
|
2449
2449
|
function ye(e) {
|
|
2450
2450
|
const n = e.toLowerCase();
|
|
2451
|
-
return ze.filter((
|
|
2452
|
-
const
|
|
2453
|
-
return
|
|
2454
|
-
}).sort((
|
|
2455
|
-
const t =
|
|
2451
|
+
return ze.filter((s) => {
|
|
2452
|
+
const l = s.label.toLowerCase();
|
|
2453
|
+
return l.startsWith(n) || l.includes(n) || l.split("_").map((t) => t[0]).join("").startsWith(n);
|
|
2454
|
+
}).sort((s, l) => {
|
|
2455
|
+
const t = s.label.toLowerCase(), r = l.label.toLowerCase(), c = t.startsWith(n), d = r.startsWith(n);
|
|
2456
2456
|
if (c && !d) return -1;
|
|
2457
2457
|
if (!c && d) return 1;
|
|
2458
|
-
const m = t.indexOf(n),
|
|
2459
|
-
return m !==
|
|
2458
|
+
const m = t.indexOf(n), o = r.indexOf(n);
|
|
2459
|
+
return m !== o ? m - o : t.length !== r.length ? t.length - r.length : t.localeCompare(r);
|
|
2460
2460
|
});
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2463
|
-
let
|
|
2464
|
-
for (;
|
|
2465
|
-
|
|
2466
|
-
return
|
|
2462
|
+
function fe(e, n) {
|
|
2463
|
+
let s = n;
|
|
2464
|
+
for (; s > 0 && /[a-zA-Z0-9_$]/.test(e[s - 1]); )
|
|
2465
|
+
s--;
|
|
2466
|
+
return s;
|
|
2467
2467
|
}
|
|
2468
|
-
function
|
|
2468
|
+
function ia(e, n) {
|
|
2469
2469
|
Y(), X = n, U = 0;
|
|
2470
|
-
const
|
|
2471
|
-
W = Se(n, U, (
|
|
2472
|
-
U =
|
|
2470
|
+
const s = Ze(e);
|
|
2471
|
+
W = Se(n, U, (l) => {
|
|
2472
|
+
U = l, ne();
|
|
2473
2473
|
}), Object.assign(W.style, {
|
|
2474
2474
|
position: "fixed",
|
|
2475
|
-
left: `${
|
|
2476
|
-
top: `${
|
|
2475
|
+
left: `${s.left}px`,
|
|
2476
|
+
top: `${s.top + 24}px`,
|
|
2477
2477
|
zIndex: "10000"
|
|
2478
2478
|
}), document.body.appendChild(W);
|
|
2479
2479
|
}
|
|
2480
2480
|
function ne() {
|
|
2481
2481
|
if (!W || !te) return;
|
|
2482
|
-
const e = Se(X, U, (
|
|
2483
|
-
U =
|
|
2482
|
+
const e = Se(X, U, (s) => {
|
|
2483
|
+
U = s, ne();
|
|
2484
2484
|
}), n = W.getBoundingClientRect();
|
|
2485
2485
|
W.replaceWith(e), W = e, Object.assign(W.style, {
|
|
2486
2486
|
position: "fixed",
|
|
@@ -2490,54 +2490,54 @@ function ne() {
|
|
|
2490
2490
|
});
|
|
2491
2491
|
}
|
|
2492
2492
|
function _e(e, n) {
|
|
2493
|
-
const { value:
|
|
2493
|
+
const { value: s, selectionStart: l } = e, t = fe(s, l), r = n.insert || n.label, c = /\$\{([^}]*)\}/g;
|
|
2494
2494
|
let d = r;
|
|
2495
2495
|
const m = [];
|
|
2496
|
-
let
|
|
2497
|
-
for (; (
|
|
2498
|
-
const h =
|
|
2496
|
+
let o;
|
|
2497
|
+
for (; (o = c.exec(r)) !== null; ) {
|
|
2498
|
+
const h = o[1], y = o.index, S = o[0].length;
|
|
2499
2499
|
m.push({ index: y, text: h, length: S });
|
|
2500
2500
|
}
|
|
2501
2501
|
d = r.replace(/\$\{([^}]*)\}/g, "$1");
|
|
2502
2502
|
const i = m[0];
|
|
2503
|
-
let u = t + d.length,
|
|
2503
|
+
let u = t + d.length, f = t + d.length;
|
|
2504
2504
|
if (i) {
|
|
2505
2505
|
let h = 0, y = 0, S = !1;
|
|
2506
2506
|
for (; y < r.length && !S; ) {
|
|
2507
2507
|
const V = m.find((w) => w.index === y);
|
|
2508
|
-
V ? (h += V.text.length, y += V.length, V === i && (u = t + h - V.text.length,
|
|
2508
|
+
V ? (h += V.text.length, y += V.length, V === i && (u = t + h - V.text.length, f = t + h, S = !0)) : (h++, y++);
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
return {
|
|
2512
|
-
value:
|
|
2512
|
+
value: s.slice(0, t) + d + s.slice(l),
|
|
2513
2513
|
selectionStart: u,
|
|
2514
|
-
selectionEnd:
|
|
2514
|
+
selectionEnd: f
|
|
2515
2515
|
};
|
|
2516
2516
|
}
|
|
2517
2517
|
function Y() {
|
|
2518
2518
|
ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [], U = 0, te = null);
|
|
2519
2519
|
}
|
|
2520
2520
|
function Ze(e) {
|
|
2521
|
-
const n = e.getBoundingClientRect(), { value:
|
|
2521
|
+
const n = e.getBoundingClientRect(), { value: s, selectionStart: l } = e, r = s.substring(0, l).split(`
|
|
2522
2522
|
`), c = r.length, d = r[r.length - 1] || "", m = parseInt(getComputedStyle(e).lineHeight) || 20;
|
|
2523
2523
|
return {
|
|
2524
2524
|
left: n.left + 10 + d.length * 8,
|
|
2525
2525
|
top: n.top + (c - 1) * m
|
|
2526
2526
|
};
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2529
|
-
|
|
2530
|
-
const n = e.selectionStart,
|
|
2531
|
-
if (n ===
|
|
2528
|
+
function Be(e) {
|
|
2529
|
+
le && clearTimeout(le), le = setTimeout(() => {
|
|
2530
|
+
const n = e.selectionStart, s = e.selectionEnd;
|
|
2531
|
+
if (n === s) {
|
|
2532
2532
|
ie();
|
|
2533
2533
|
return;
|
|
2534
2534
|
}
|
|
2535
|
-
const
|
|
2536
|
-
if (!
|
|
2535
|
+
const l = e.value.substring(n, s).trim();
|
|
2536
|
+
if (!l) {
|
|
2537
2537
|
ie();
|
|
2538
2538
|
return;
|
|
2539
2539
|
}
|
|
2540
|
-
const t = ze.find((d) => d.label ===
|
|
2540
|
+
const t = ze.find((d) => d.label === l);
|
|
2541
2541
|
if (!t) {
|
|
2542
2542
|
ie();
|
|
2543
2543
|
return;
|
|
@@ -2549,7 +2549,7 @@ function Le(e) {
|
|
|
2549
2549
|
}, 300);
|
|
2550
2550
|
}
|
|
2551
2551
|
function ie() {
|
|
2552
|
-
|
|
2552
|
+
le && (clearTimeout(le), le = null), G && (G.style.opacity = "0", setTimeout(() => {
|
|
2553
2553
|
G && (G.remove(), G = null);
|
|
2554
2554
|
}, 150));
|
|
2555
2555
|
}
|
|
@@ -2557,26 +2557,26 @@ typeof document < "u" && document.addEventListener("mousedown", (e) => {
|
|
|
2557
2557
|
const n = e.target;
|
|
2558
2558
|
W && !W.contains(n) && Y(), G && !G.contains(n) && ie();
|
|
2559
2559
|
});
|
|
2560
|
-
const $e = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
2561
|
-
const n = e.filter((d) => d.type !== "var").map((d) => d.label), c = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...
|
|
2560
|
+
const $e = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), ra = ["else", "end", "call", "fade"], da = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ca = (e) => {
|
|
2561
|
+
const n = e.filter((d) => d.type !== "var").map((d) => d.label), c = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...ra, ...n])).map(da).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
|
|
2562
2562
|
return new RegExp(c, "g");
|
|
2563
|
-
},
|
|
2564
|
-
const
|
|
2565
|
-
let
|
|
2566
|
-
for (const r of n.matchAll(
|
|
2567
|
-
const [c, d, m,
|
|
2563
|
+
}, ua = (e) => (n) => {
|
|
2564
|
+
const s = ca(e);
|
|
2565
|
+
let l = "", t = 0;
|
|
2566
|
+
for (const r of n.matchAll(s)) {
|
|
2567
|
+
const [c, d, m, o, i, u, f, b] = r;
|
|
2568
2568
|
let h = "";
|
|
2569
|
-
d ? h = "comment" : m ? h = "str" :
|
|
2569
|
+
d ? h = "comment" : m ? h = "str" : o ? h = "num" : i ? h = "word" : u ? h = "var" : f ? h = "event" : b && (h = "operator"), l += $e(n.slice(t, r.index)), l += `<span class="tok--${h}">${$e(c)}</span>`, t = r.index + c.length;
|
|
2570
2570
|
}
|
|
2571
|
-
return
|
|
2571
|
+
return l += $e(n.slice(t)), l;
|
|
2572
2572
|
}, Xe = {
|
|
2573
2573
|
word: "text-blue-600 dark:text-blue-400",
|
|
2574
2574
|
func: "text-yellow-600 dark:text-yellow-400",
|
|
2575
2575
|
var: "text-cyan-600 dark:text-cyan-400",
|
|
2576
2576
|
event: "text-purple-600 dark:text-purple-400"
|
|
2577
|
-
},
|
|
2578
|
-
const
|
|
2579
|
-
return
|
|
2577
|
+
}, ma = (e, n, s) => {
|
|
2578
|
+
const l = document.createElement("div");
|
|
2579
|
+
return l.className = `
|
|
2580
2580
|
fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
|
|
2581
2581
|
overflow-y-auto p-1 rounded-lg shadow-lg border
|
|
2582
2582
|
border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800
|
|
@@ -2595,28 +2595,28 @@ const $e = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
2595
2595
|
${t.detail ? `<span class="text-xs text-gray-500 dark:text-gray-400 ml-2">${t.detail}</span>` : ""}
|
|
2596
2596
|
</div>
|
|
2597
2597
|
${t.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${t.description}</span>` : ""}
|
|
2598
|
-
`, d.addEventListener("click", () =>
|
|
2599
|
-
}),
|
|
2600
|
-
},
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2598
|
+
`, d.addEventListener("click", () => s(r)), l.appendChild(d);
|
|
2599
|
+
}), l;
|
|
2600
|
+
}, pa = (e, n) => {
|
|
2601
|
+
const s = document.createElement("div");
|
|
2602
|
+
s.className = `
|
|
2603
2603
|
fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
|
|
2604
2604
|
min-w-[50px] min-h-[20px] rounded-lg shadow-lg border
|
|
2605
2605
|
pointer-events-none transition-opacity duration-150
|
|
2606
2606
|
bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700
|
|
2607
2607
|
text-gray-700 dark:text-gray-300 pointer-events-none
|
|
2608
|
-
`,
|
|
2608
|
+
`, s.style.cssText = `
|
|
2609
2609
|
left: ${n.left + 40}px; top: ${n.top - 10}px;
|
|
2610
2610
|
transform: translateX(-50%) translateY(-100%); opacity: 0;
|
|
2611
2611
|
`;
|
|
2612
2612
|
let t = `<div class="font-medium ${Xe[e.type] || "text-gray-700 dark:text-gray-300"}">${e.label}</div>`;
|
|
2613
|
-
e.detail && (t += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`),
|
|
2613
|
+
e.detail && (t += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`), s.innerHTML = t;
|
|
2614
2614
|
const r = document.createElement("div");
|
|
2615
2615
|
return r.className = `
|
|
2616
2616
|
absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
|
|
2617
2617
|
bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
|
|
2618
|
-
`,
|
|
2619
|
-
},
|
|
2618
|
+
`, s.appendChild(r), s;
|
|
2619
|
+
}, fa = [
|
|
2620
2620
|
{ label: "if", type: "word", insert: `if:\${$v0<10};
|
|
2621
2621
|
|
|
2622
2622
|
else;
|
|
@@ -2651,7 +2651,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2651
2651
|
{ label: "$e", type: "var", insert: "$e${0}", detail: "var event" },
|
|
2652
2652
|
{ label: "$c", type: "var", insert: "$c${0}", detail: "var call" },
|
|
2653
2653
|
{ label: "$p", type: "var", insert: "$p${0}", detail: "gpio" }
|
|
2654
|
-
],
|
|
2654
|
+
], Do = /* @__PURE__ */ M({
|
|
2655
2655
|
__name: "ScriptEditor",
|
|
2656
2656
|
props: {
|
|
2657
2657
|
modelValue: {},
|
|
@@ -2659,23 +2659,23 @@ end;`, detail: "event(name: string)" },
|
|
|
2659
2659
|
},
|
|
2660
2660
|
emits: ["update:modelValue", "update"],
|
|
2661
2661
|
setup(e, { emit: n }) {
|
|
2662
|
-
const
|
|
2663
|
-
let
|
|
2664
|
-
const t = [...
|
|
2665
|
-
return
|
|
2662
|
+
const s = n;
|
|
2663
|
+
let l;
|
|
2664
|
+
const t = [...fa, ...e.suggestions];
|
|
2665
|
+
return ae(
|
|
2666
2666
|
() => e.modelValue,
|
|
2667
2667
|
(r) => {
|
|
2668
|
-
|
|
2668
|
+
l.update({ value: r });
|
|
2669
2669
|
}
|
|
2670
2670
|
), Q(() => {
|
|
2671
|
-
|
|
2671
|
+
l = new ea("#editor", {
|
|
2672
2672
|
value: e.modelValue,
|
|
2673
2673
|
lineNumbers: !0,
|
|
2674
|
-
highlighters: [
|
|
2674
|
+
highlighters: [ua(t)],
|
|
2675
2675
|
plugins: [
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2676
|
+
la(),
|
|
2677
|
+
sa(),
|
|
2678
|
+
oa({
|
|
2679
2679
|
customSuggestions: t,
|
|
2680
2680
|
minPrefixLength: 1,
|
|
2681
2681
|
maxSuggestions: 20,
|
|
@@ -2683,40 +2683,40 @@ end;`, detail: "event(name: string)" },
|
|
|
2683
2683
|
tooltip: {
|
|
2684
2684
|
enabled: !0
|
|
2685
2685
|
},
|
|
2686
|
-
renderMenu:
|
|
2687
|
-
renderTooltip:
|
|
2686
|
+
renderMenu: ma,
|
|
2687
|
+
renderTooltip: pa
|
|
2688
2688
|
}),
|
|
2689
|
-
|
|
2689
|
+
aa()
|
|
2690
2690
|
],
|
|
2691
2691
|
styles: { fontSize: "14px" }
|
|
2692
|
-
}),
|
|
2693
|
-
|
|
2692
|
+
}), l.onUpdate((r) => {
|
|
2693
|
+
s("update:modelValue", r);
|
|
2694
2694
|
});
|
|
2695
2695
|
}), we(() => {
|
|
2696
|
-
|
|
2697
|
-
}), (r, c) => (
|
|
2698
|
-
|
|
2696
|
+
l.destroy();
|
|
2697
|
+
}), (r, c) => (p(), v("div", null, [...c[0] || (c[0] = [
|
|
2698
|
+
a("div", {
|
|
2699
2699
|
class: "",
|
|
2700
2700
|
id: "editor"
|
|
2701
2701
|
}, null, -1)
|
|
2702
2702
|
])]));
|
|
2703
2703
|
}
|
|
2704
|
-
}),
|
|
2704
|
+
}), va = { class: "max-w-4xl mx-auto" }, ha = {
|
|
2705
2705
|
key: 0,
|
|
2706
2706
|
class: "text-sm"
|
|
2707
|
-
},
|
|
2707
|
+
}, ga = {
|
|
2708
2708
|
key: 0,
|
|
2709
2709
|
class: "text-gray-500"
|
|
2710
|
-
},
|
|
2710
|
+
}, ba = {
|
|
2711
2711
|
key: 1,
|
|
2712
2712
|
class: "text-red-600"
|
|
2713
|
-
},
|
|
2713
|
+
}, xa = ["innerHTML"], ya = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", _a = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", Io = /* @__PURE__ */ M({
|
|
2714
2714
|
__name: "ScriptViewDocs",
|
|
2715
2715
|
props: {
|
|
2716
2716
|
lang: { default: "en" }
|
|
2717
2717
|
},
|
|
2718
2718
|
setup(e) {
|
|
2719
|
-
const n =
|
|
2719
|
+
const n = L(""), s = L(""), l = L(null), t = L(!1), r = L(null);
|
|
2720
2720
|
let c = null;
|
|
2721
2721
|
const d = () => new Promise((i, u) => {
|
|
2722
2722
|
if (typeof window > "u" || typeof document > "u") {
|
|
@@ -2731,19 +2731,19 @@ end;`, detail: "event(name: string)" },
|
|
|
2731
2731
|
}), i(window.marked);
|
|
2732
2732
|
return;
|
|
2733
2733
|
}
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2734
|
+
const f = document.createElement("script");
|
|
2735
|
+
f.src = _a, f.async = !0, f.onload = () => {
|
|
2736
2736
|
window.marked ? (window.marked.setOptions({
|
|
2737
2737
|
gfm: !0,
|
|
2738
2738
|
breaks: !0,
|
|
2739
2739
|
headerIds: !1
|
|
2740
2740
|
}), i(window.marked)) : u(new Error("Marked library not found after loading"));
|
|
2741
|
-
},
|
|
2741
|
+
}, f.onerror = () => {
|
|
2742
2742
|
u(new Error("Failed to load Marked library from CDN"));
|
|
2743
|
-
}, document.head.appendChild(
|
|
2743
|
+
}, document.head.appendChild(f);
|
|
2744
2744
|
}), m = (i) => {
|
|
2745
2745
|
const u = i.split(`
|
|
2746
|
-
`),
|
|
2746
|
+
`), f = {};
|
|
2747
2747
|
let b = !0;
|
|
2748
2748
|
for (const h of u) {
|
|
2749
2749
|
if (b && h.startsWith("#")) {
|
|
@@ -2752,25 +2752,25 @@ end;`, detail: "event(name: string)" },
|
|
|
2752
2752
|
}
|
|
2753
2753
|
if (b && h.includes(":")) {
|
|
2754
2754
|
const [y, S] = h.split(":").map((V) => V.trim());
|
|
2755
|
-
y && S && (y.toLowerCase().includes("version") && (
|
|
2755
|
+
y && S && (y.toLowerCase().includes("version") && (f.version = S), (y.toLowerCase().includes("обновлено") || y.toLowerCase().includes("updated")) && (f.updated = S));
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
2758
|
-
return
|
|
2759
|
-
},
|
|
2758
|
+
return f;
|
|
2759
|
+
}, o = async (i) => {
|
|
2760
2760
|
if (!c) {
|
|
2761
2761
|
r.value = "error";
|
|
2762
2762
|
return;
|
|
2763
2763
|
}
|
|
2764
|
-
t.value = !0, r.value = null,
|
|
2764
|
+
t.value = !0, r.value = null, s.value = "";
|
|
2765
2765
|
try {
|
|
2766
|
-
const u = `${
|
|
2767
|
-
if (!
|
|
2768
|
-
throw new Error(`HTTP ${
|
|
2769
|
-
const b = await
|
|
2770
|
-
n.value = b,
|
|
2766
|
+
const u = `${ya}${i}.md`, f = await fetch(u);
|
|
2767
|
+
if (!f.ok)
|
|
2768
|
+
throw new Error(`HTTP ${f.status}: ${f.statusText}`);
|
|
2769
|
+
const b = await f.text();
|
|
2770
|
+
n.value = b, l.value = m(b), s.value = c.parse(b);
|
|
2771
2771
|
} catch (u) {
|
|
2772
|
-
const
|
|
2773
|
-
r.value =
|
|
2772
|
+
const f = u instanceof Error ? u.message : "";
|
|
2773
|
+
r.value = f, console.error("Error loading docs:", u);
|
|
2774
2774
|
} finally {
|
|
2775
2775
|
t.value = !1;
|
|
2776
2776
|
}
|
|
@@ -2779,46 +2779,46 @@ end;`, detail: "event(name: string)" },
|
|
|
2779
2779
|
try {
|
|
2780
2780
|
c = await d();
|
|
2781
2781
|
const i = e.lang ? "ru" : "en";
|
|
2782
|
-
await
|
|
2782
|
+
await o(i);
|
|
2783
2783
|
} catch (i) {
|
|
2784
2784
|
const u = i instanceof Error ? i.message : "";
|
|
2785
2785
|
r.value = u, console.error("Initialization error:", i);
|
|
2786
2786
|
}
|
|
2787
|
-
}), (i, u) => (
|
|
2788
|
-
t.value || r.value ? (
|
|
2789
|
-
t.value ? (
|
|
2790
|
-
r.value ? (
|
|
2787
|
+
}), (i, u) => (p(), v("div", va, [
|
|
2788
|
+
t.value || r.value ? (p(), v("div", ha, [
|
|
2789
|
+
t.value ? (p(), v("span", ga, "⏳")) : z("", !0),
|
|
2790
|
+
r.value ? (p(), v("span", ba, "❌ " + _(r.value), 1)) : z("", !0)
|
|
2791
2791
|
])) : z("", !0),
|
|
2792
|
-
|
|
2792
|
+
a("div", {
|
|
2793
2793
|
class: "docs-content",
|
|
2794
|
-
innerHTML:
|
|
2795
|
-
}, null, 8,
|
|
2794
|
+
innerHTML: s.value
|
|
2795
|
+
}, null, 8, xa)
|
|
2796
2796
|
]));
|
|
2797
2797
|
}
|
|
2798
|
-
}),
|
|
2798
|
+
}), $a = { class: "my-4" }, Ho = /* @__PURE__ */ M({
|
|
2799
2799
|
__name: "ScriptDialog",
|
|
2800
2800
|
props: {
|
|
2801
2801
|
idScript: {}
|
|
2802
2802
|
},
|
|
2803
2803
|
emits: ["add", "close"],
|
|
2804
2804
|
setup(e, { emit: n }) {
|
|
2805
|
-
const
|
|
2805
|
+
const s = n, { defineField: l, handleSubmit: t, isValid: r } = wt({
|
|
2806
2806
|
validationSchema: () => ({
|
|
2807
2807
|
name: [Ct, Mt(8)]
|
|
2808
2808
|
})
|
|
2809
|
-
}), [c, d] =
|
|
2810
|
-
|
|
2811
|
-
},
|
|
2812
|
-
m(), c.value = "",
|
|
2809
|
+
}), [c, d] = l("name"), m = () => {
|
|
2810
|
+
s("add", c.value);
|
|
2811
|
+
}, o = t(() => {
|
|
2812
|
+
m(), c.value = "", s("close", new Event("close"));
|
|
2813
2813
|
});
|
|
2814
2814
|
return Q(() => {
|
|
2815
2815
|
e.idScript || (c.value = "boot");
|
|
2816
2816
|
}), (i, u) => {
|
|
2817
|
-
const
|
|
2818
|
-
return
|
|
2819
|
-
g(
|
|
2817
|
+
const f = J, b = A;
|
|
2818
|
+
return p(), v("div", $a, [
|
|
2819
|
+
g(f, j({
|
|
2820
2820
|
modelValue: q(c),
|
|
2821
|
-
"onUpdate:modelValue": u[0] || (u[0] = (h) =>
|
|
2821
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => at(c) ? c.value = h : null)
|
|
2822
2822
|
}, q(d), {
|
|
2823
2823
|
disabled: !e.idScript,
|
|
2824
2824
|
label: i.$t("name")
|
|
@@ -2827,7 +2827,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2827
2827
|
class: "w-full",
|
|
2828
2828
|
color: "blue",
|
|
2829
2829
|
disabled: !q(r),
|
|
2830
|
-
onClick: q(
|
|
2830
|
+
onClick: q(o)
|
|
2831
2831
|
}, {
|
|
2832
2832
|
default: x(() => [
|
|
2833
2833
|
H(_(i.$t("add")), 1)
|
|
@@ -2837,7 +2837,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2837
2837
|
]);
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
}),
|
|
2840
|
+
}), ka = ["width", "height"], wa = ["d"], de = /* @__PURE__ */ M({
|
|
2841
2841
|
__name: "VisionIcon",
|
|
2842
2842
|
props: {
|
|
2843
2843
|
name: {},
|
|
@@ -2883,8 +2883,8 @@ end;`, detail: "event(name: string)" },
|
|
|
2883
2883
|
box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
|
|
2884
2884
|
external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
|
|
2885
2885
|
github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3-.4 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.5 4 5 5 0 0 0 19.4.5S18.2.1 15 1.8a13.4 13.4 0 0 0-7 0C4.8.1 3.6.5 3.6.5A5 5 0 0 0 3.5 4 5.4 5.4 0 0 0 2 7.5c0 5.4 3.5 6.6 6.8 7A4.8 4.8 0 0 0 8 18v4", "M8 19c-3 .9-3-1.5-4-2"]
|
|
2886
|
-
},
|
|
2887
|
-
return (
|
|
2886
|
+
}, s = E(() => n[e.name] ?? n.help);
|
|
2887
|
+
return (l, t) => (p(), v("svg", {
|
|
2888
2888
|
width: e.size,
|
|
2889
2889
|
height: e.size,
|
|
2890
2890
|
viewBox: "0 0 24 24",
|
|
@@ -2895,67 +2895,32 @@ end;`, detail: "event(name: string)" },
|
|
|
2895
2895
|
"stroke-linejoin": "round",
|
|
2896
2896
|
"aria-hidden": "true"
|
|
2897
2897
|
}, [
|
|
2898
|
-
(
|
|
2898
|
+
(p(!0), v(B, null, N(s.value, (r, c) => (p(), v("path", {
|
|
2899
2899
|
key: c,
|
|
2900
2900
|
d: r
|
|
2901
|
-
}, null, 8,
|
|
2902
|
-
], 8,
|
|
2901
|
+
}, null, 8, wa))), 128))
|
|
2902
|
+
], 8, ka));
|
|
2903
2903
|
}
|
|
2904
|
-
}),
|
|
2905
|
-
__name: "VisionButton",
|
|
2906
|
-
props: {
|
|
2907
|
-
to: { default: null },
|
|
2908
|
-
href: { default: null },
|
|
2909
|
-
type: { default: "button" },
|
|
2910
|
-
variant: { default: "primary" },
|
|
2911
|
-
size: { default: "md" },
|
|
2912
|
-
block: { type: Boolean, default: !1 },
|
|
2913
|
-
disabled: { type: Boolean, default: !1 }
|
|
2914
|
-
},
|
|
2915
|
-
setup(e) {
|
|
2916
|
-
const n = T(() => e.to ? "router-link" : e.href ? "a" : "button"), l = T(() => ({
|
|
2917
|
-
sm: "h-9 px-3 text-xs",
|
|
2918
|
-
md: "h-11 px-4 text-sm",
|
|
2919
|
-
lg: "h-12 px-6 text-sm"
|
|
2920
|
-
})[e.size]), s = T(() => ({
|
|
2921
|
-
primary: "bg-vision-primary text-white shadow-[0_12px_32px_-14px_var(--app-accent-shadow,rgba(37,99,235,0.9))] hover:brightness-110",
|
|
2922
|
-
cyan: "bg-[#28b7f0] text-[#03111f] shadow-[0_12px_32px_-14px_rgba(40,183,240,0.9)] hover:bg-[#66d3f1]",
|
|
2923
|
-
outline: "border border-white/15 bg-transparent text-white hover:border-white/25 hover:bg-white/5",
|
|
2924
|
-
ghost: "bg-transparent text-vision-muted hover:bg-white/5 hover:text-white",
|
|
2925
|
-
dark: "border border-white/10 bg-vision-card-2 text-white hover:bg-white/5",
|
|
2926
|
-
danger: "border border-vision-danger/25 bg-vision-danger/10 text-vision-danger hover:bg-vision-danger/15",
|
|
2927
|
-
success: "border border-vision-success/25 bg-vision-success/10 text-vision-success hover:bg-vision-success/15",
|
|
2928
|
-
white: "bg-white text-[#060b28] hover:bg-white/90"
|
|
2929
|
-
})[e.variant]), t = T(() => e.to ? { to: e.to } : e.href ? { href: e.href, target: e.href.startsWith("http") ? "_blank" : void 0, rel: e.href.startsWith("http") ? "noreferrer" : void 0 } : { type: e.type, disabled: e.disabled });
|
|
2930
|
-
return (r, c) => (f(), D(re(n.value), j(t.value, {
|
|
2931
|
-
class: ["inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors disabled:pointer-events-none disabled:opacity-50", [l.value, s.value, e.block ? "w-full" : ""]]
|
|
2932
|
-
}), {
|
|
2933
|
-
default: x(() => [
|
|
2934
|
-
k(r.$slots, "default")
|
|
2935
|
-
]),
|
|
2936
|
-
_: 3
|
|
2937
|
-
}, 16, ["class"]));
|
|
2938
|
-
}
|
|
2939
|
-
}), Ha = /* @__PURE__ */ M({
|
|
2904
|
+
}), jo = /* @__PURE__ */ M({
|
|
2940
2905
|
__name: "VisionCard",
|
|
2941
2906
|
props: {
|
|
2942
2907
|
padded: { type: Boolean, default: !0 }
|
|
2943
2908
|
},
|
|
2944
2909
|
setup(e) {
|
|
2945
|
-
const n =
|
|
2946
|
-
return (
|
|
2947
|
-
class:
|
|
2910
|
+
const n = E(() => e.padded ? "p-5 md:p-6" : "");
|
|
2911
|
+
return (s, l) => (p(), v("div", {
|
|
2912
|
+
class: T(["glass-panel", n.value])
|
|
2948
2913
|
}, [
|
|
2949
|
-
k(
|
|
2914
|
+
k(s.$slots, "default")
|
|
2950
2915
|
], 2));
|
|
2951
2916
|
}
|
|
2952
|
-
}),
|
|
2917
|
+
}), Ca = { class: "block" }, Ma = {
|
|
2953
2918
|
key: 0,
|
|
2954
2919
|
class: "mb-2 block text-xs font-medium text-vision-muted"
|
|
2955
|
-
},
|
|
2920
|
+
}, za = ["type", "name", "placeholder", "autocomplete"], Sa = {
|
|
2956
2921
|
key: 1,
|
|
2957
2922
|
class: "mt-1 block text-xs text-vision-danger"
|
|
2958
|
-
},
|
|
2923
|
+
}, Po = /* @__PURE__ */ M({
|
|
2959
2924
|
__name: "VisionInput",
|
|
2960
2925
|
props: /* @__PURE__ */ rt({
|
|
2961
2926
|
label: { default: "" },
|
|
@@ -2971,160 +2936,169 @@ end;`, detail: "event(name: string)" },
|
|
|
2971
2936
|
}),
|
|
2972
2937
|
emits: ["update:modelValue"],
|
|
2973
2938
|
setup(e) {
|
|
2974
|
-
const n =
|
|
2975
|
-
return (
|
|
2976
|
-
e.label ? (
|
|
2977
|
-
|
|
2978
|
-
class:
|
|
2939
|
+
const n = ot(e, "modelValue");
|
|
2940
|
+
return (s, l) => (p(), v("label", Ca, [
|
|
2941
|
+
e.label ? (p(), v("span", Ma, _(e.label), 1)) : z("", !0),
|
|
2942
|
+
a("span", {
|
|
2943
|
+
class: T(["glass-inset flex items-center gap-3 rounded-md px-4 transition-colors focus-within:border-vision-primary/60", e.error ? "border-vision-danger/50" : "border-white/10 hover:border-white/20"])
|
|
2979
2944
|
}, [
|
|
2980
|
-
e.icon ? (
|
|
2945
|
+
e.icon ? (p(), I(de, {
|
|
2981
2946
|
key: 0,
|
|
2982
2947
|
name: e.icon,
|
|
2983
2948
|
size: 18,
|
|
2984
2949
|
class: "shrink-0 text-vision-muted"
|
|
2985
2950
|
}, null, 8, ["name"])) : z("", !0),
|
|
2986
|
-
he(
|
|
2987
|
-
"onUpdate:modelValue":
|
|
2951
|
+
he(a("input", {
|
|
2952
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
2988
2953
|
type: e.type,
|
|
2989
2954
|
name: e.name,
|
|
2990
2955
|
placeholder: e.placeholder,
|
|
2991
2956
|
autocomplete: e.autocomplete,
|
|
2992
2957
|
class: "h-11 min-w-0 flex-1 bg-transparent text-sm text-white placeholder:text-vision-muted/70 focus:outline-none"
|
|
2993
|
-
}, null, 8,
|
|
2958
|
+
}, null, 8, za), [
|
|
2994
2959
|
[it, n.value]
|
|
2995
2960
|
])
|
|
2996
2961
|
], 2),
|
|
2997
|
-
e.error ? (
|
|
2962
|
+
e.error ? (p(), v("span", Sa, _(e.error), 1)) : z("", !0)
|
|
2998
2963
|
]));
|
|
2999
2964
|
}
|
|
3000
|
-
}),
|
|
3001
|
-
class: "glass-panel w-full max-w-2xl overflow-hidden rounded-[12px] border border-gray-200/70 bg-white/95 dark:border-white/10 dark:bg-[#0b1235]/95",
|
|
3002
|
-
role: "dialog",
|
|
3003
|
-
"aria-modal": "true",
|
|
3004
|
-
"aria-label": "Поиск"
|
|
3005
|
-
}, Bo = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Eo = ["placeholder"], Lo = { class: "max-h-[55vh] overflow-y-auto p-2" }, Ao = ["href"], Do = { class: "min-w-0" }, Io = { class: "flex flex-wrap items-baseline gap-2" }, Ho = { class: "text-sm font-medium text-gray-900 dark:text-white" }, jo = {
|
|
2965
|
+
}), Va = ["aria-label"], Ta = { class: "hidden lg:inline" }, La = ["aria-label"], Ea = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Ba = ["placeholder"], Aa = { class: "max-h-[55vh] overflow-y-auto p-2" }, Da = ["href"], Ia = { class: "min-w-0" }, Ha = { class: "flex flex-wrap items-baseline gap-2" }, ja = { class: "text-sm font-medium text-gray-900 dark:text-white" }, Pa = {
|
|
3006
2966
|
key: 0,
|
|
3007
2967
|
class: "text-[10px] uppercase tracking-wider text-gray-400"
|
|
3008
|
-
},
|
|
2968
|
+
}, Na = {
|
|
3009
2969
|
key: 0,
|
|
3010
2970
|
class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
|
|
3011
|
-
},
|
|
2971
|
+
}, Oa = {
|
|
3012
2972
|
key: 0,
|
|
3013
2973
|
class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
|
|
3014
|
-
},
|
|
2974
|
+
}, No = /* @__PURE__ */ M({
|
|
3015
2975
|
__name: "VisionSearch",
|
|
3016
2976
|
props: {
|
|
3017
2977
|
items: {},
|
|
3018
|
-
placeholder: {}
|
|
2978
|
+
placeholder: { default: "Поиск по документации и страницам…" },
|
|
2979
|
+
label: { default: "Поиск" },
|
|
2980
|
+
dialogLabel: { default: "Поиск" },
|
|
2981
|
+
emptyText: { default: "Ничего не найдено. Попробуйте другой запрос." }
|
|
3019
2982
|
},
|
|
3020
2983
|
setup(e) {
|
|
3021
|
-
const n = e,
|
|
3022
|
-
const
|
|
3023
|
-
return (
|
|
2984
|
+
const n = e, s = L(!1), l = L(""), t = L(null), r = E(() => {
|
|
2985
|
+
const o = l.value.trim().toLowerCase();
|
|
2986
|
+
return (o ? n.items.filter((u) => `${u.title} ${u.description ?? ""} ${u.group ?? ""}`.toLowerCase().includes(o)) : n.items).slice(0, 14);
|
|
3024
2987
|
}), c = async () => {
|
|
3025
|
-
var
|
|
3026
|
-
|
|
2988
|
+
var o;
|
|
2989
|
+
s.value = !0, l.value = "", await je(), (o = t.value) == null || o.focus();
|
|
3027
2990
|
}, d = () => {
|
|
3028
|
-
|
|
3029
|
-
}, m = (
|
|
3030
|
-
if ((
|
|
3031
|
-
|
|
2991
|
+
s.value = !1, l.value = "";
|
|
2992
|
+
}, m = (o) => {
|
|
2993
|
+
if ((o.metaKey || o.ctrlKey) && o.key.toLowerCase() === "k") {
|
|
2994
|
+
o.preventDefault(), s.value ? d() : c();
|
|
3032
2995
|
return;
|
|
3033
2996
|
}
|
|
3034
|
-
|
|
2997
|
+
o.key === "Escape" && s.value && d();
|
|
3035
2998
|
};
|
|
3036
|
-
return
|
|
3037
|
-
typeof document < "u" && (document.body.style.overflow =
|
|
2999
|
+
return ae(s, (o) => {
|
|
3000
|
+
typeof document < "u" && (document.body.style.overflow = o ? "hidden" : "");
|
|
3038
3001
|
}), Q(() => window.addEventListener("keydown", m)), we(() => {
|
|
3039
3002
|
window.removeEventListener("keydown", m), typeof document < "u" && (document.body.style.overflow = "");
|
|
3040
|
-
}), (
|
|
3041
|
-
|
|
3003
|
+
}), (o, i) => (p(), v(B, null, [
|
|
3004
|
+
a("button", {
|
|
3042
3005
|
type: "button",
|
|
3043
3006
|
class: "inline-flex h-9 items-center gap-2 rounded-md px-2.5 text-xs text-gray-500 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
|
|
3044
|
-
"aria-label":
|
|
3007
|
+
"aria-label": e.label,
|
|
3045
3008
|
onClick: c
|
|
3046
3009
|
}, [
|
|
3047
|
-
g(
|
|
3010
|
+
g(de, {
|
|
3048
3011
|
name: "search",
|
|
3049
3012
|
size: 17
|
|
3050
3013
|
}),
|
|
3051
|
-
|
|
3052
|
-
i[
|
|
3053
|
-
]),
|
|
3054
|
-
(
|
|
3055
|
-
|
|
3014
|
+
a("span", Ta, _(e.label), 1),
|
|
3015
|
+
i[1] || (i[1] = a("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 lg:inline" }, "⌘K", -1))
|
|
3016
|
+
], 8, Va),
|
|
3017
|
+
(p(), I(dt, { to: "body" }, [
|
|
3018
|
+
s.value ? (p(), v("div", {
|
|
3056
3019
|
key: 0,
|
|
3057
3020
|
class: "fixed inset-0 z-[100] flex items-start justify-center overflow-y-auto bg-slate-900/40 px-4 pt-[12vh] backdrop-blur-sm dark:bg-black/60",
|
|
3058
3021
|
onClick: F(d, ["self"])
|
|
3059
3022
|
}, [
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3023
|
+
a("div", {
|
|
3024
|
+
class: "glass-panel w-full max-w-2xl overflow-hidden rounded-[12px] border border-gray-200/70 bg-white/95 dark:border-white/10 dark:bg-[#0b1235]/95",
|
|
3025
|
+
role: "dialog",
|
|
3026
|
+
"aria-modal": "true",
|
|
3027
|
+
"aria-label": e.dialogLabel
|
|
3028
|
+
}, [
|
|
3029
|
+
a("div", Ea, [
|
|
3030
|
+
g(de, {
|
|
3063
3031
|
name: "search",
|
|
3064
3032
|
size: 18,
|
|
3065
3033
|
class: "shrink-0 text-gray-400"
|
|
3066
3034
|
}),
|
|
3067
|
-
he(
|
|
3035
|
+
he(a("input", {
|
|
3068
3036
|
ref_key: "input",
|
|
3069
3037
|
ref: t,
|
|
3070
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) =>
|
|
3038
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => l.value = u),
|
|
3071
3039
|
type: "search",
|
|
3072
|
-
placeholder: e.placeholder
|
|
3040
|
+
placeholder: e.placeholder,
|
|
3073
3041
|
class: "h-14 min-w-0 flex-1 bg-transparent text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none dark:text-white dark:placeholder:text-gray-500"
|
|
3074
|
-
}, null, 8,
|
|
3075
|
-
[He,
|
|
3042
|
+
}, null, 8, Ba), [
|
|
3043
|
+
[He, l.value]
|
|
3076
3044
|
]),
|
|
3077
|
-
i[
|
|
3045
|
+
i[2] || (i[2] = a("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 sm:inline" }, "Esc", -1))
|
|
3078
3046
|
]),
|
|
3079
|
-
|
|
3080
|
-
(
|
|
3047
|
+
a("div", Aa, [
|
|
3048
|
+
(p(!0), v(B, null, N(r.value, (u) => (p(), v("a", {
|
|
3081
3049
|
key: `${u.group}-${u.to}-${u.title}`,
|
|
3082
3050
|
href: u.to,
|
|
3083
3051
|
class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
|
|
3084
3052
|
onClick: d
|
|
3085
3053
|
}, [
|
|
3086
|
-
g(
|
|
3054
|
+
g(de, {
|
|
3087
3055
|
name: "arrowRight",
|
|
3088
3056
|
size: 16,
|
|
3089
3057
|
class: "mt-0.5 shrink-0 text-gray-400"
|
|
3090
3058
|
}),
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
u.group ? (
|
|
3059
|
+
a("span", Ia, [
|
|
3060
|
+
a("span", Ha, [
|
|
3061
|
+
a("span", ja, _(u.title), 1),
|
|
3062
|
+
u.group ? (p(), v("span", Pa, _(u.group), 1)) : z("", !0)
|
|
3095
3063
|
]),
|
|
3096
|
-
u.description ? (
|
|
3064
|
+
u.description ? (p(), v("span", Na, _(u.description), 1)) : z("", !0)
|
|
3097
3065
|
])
|
|
3098
|
-
], 8,
|
|
3099
|
-
r.value.length ? z("", !0) : (
|
|
3066
|
+
], 8, Da))), 128)),
|
|
3067
|
+
r.value.length ? z("", !0) : (p(), v("p", Oa, _(e.emptyText), 1))
|
|
3100
3068
|
])
|
|
3101
|
-
])
|
|
3069
|
+
], 8, La)
|
|
3102
3070
|
])) : z("", !0)
|
|
3103
3071
|
]))
|
|
3104
3072
|
], 64));
|
|
3105
3073
|
}
|
|
3106
|
-
}),
|
|
3074
|
+
}), Ua = ["aria-label", "title"], Oo = /* @__PURE__ */ M({
|
|
3107
3075
|
__name: "VisionThemeToggle",
|
|
3076
|
+
props: {
|
|
3077
|
+
labelLight: { default: "Включить светлую тему" },
|
|
3078
|
+
labelDark: { default: "Включить тёмную тему" },
|
|
3079
|
+
titleLight: { default: "Светлая тема" },
|
|
3080
|
+
titleDark: { default: "Тёмная тема" }
|
|
3081
|
+
},
|
|
3108
3082
|
setup(e) {
|
|
3109
|
-
const n =
|
|
3110
|
-
n.value =
|
|
3083
|
+
const n = L(xt("theme") === "light" ? "light" : "dark"), s = (l) => {
|
|
3084
|
+
n.value = l, yt(l);
|
|
3111
3085
|
};
|
|
3112
3086
|
return Q(async () => {
|
|
3113
|
-
await je(), setTimeout(() =>
|
|
3114
|
-
}), (
|
|
3087
|
+
await je(), setTimeout(() => s(n.value), 0);
|
|
3088
|
+
}), (l, t) => (p(), v("button", {
|
|
3115
3089
|
type: "button",
|
|
3116
3090
|
class: "grid size-9 place-items-center rounded-md text-gray-600 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white",
|
|
3117
|
-
"aria-label": n.value === "dark" ?
|
|
3118
|
-
title: n.value === "dark" ?
|
|
3119
|
-
onClick: t[0] || (t[0] = (r) =>
|
|
3091
|
+
"aria-label": n.value === "dark" ? e.labelLight : e.labelDark,
|
|
3092
|
+
title: n.value === "dark" ? e.titleLight : e.titleDark,
|
|
3093
|
+
onClick: t[0] || (t[0] = (r) => s(n.value === "dark" ? "light" : "dark"))
|
|
3120
3094
|
}, [
|
|
3121
|
-
g(
|
|
3095
|
+
g(de, {
|
|
3122
3096
|
name: n.value === "dark" ? "sun" : "moon",
|
|
3123
3097
|
size: 18
|
|
3124
3098
|
}, null, 8, ["name"])
|
|
3125
|
-
], 8,
|
|
3099
|
+
], 8, Ua));
|
|
3126
3100
|
}
|
|
3127
|
-
}),
|
|
3101
|
+
}), Uo = /* @__PURE__ */ M({
|
|
3128
3102
|
__name: "VAutocomplete",
|
|
3129
3103
|
props: {
|
|
3130
3104
|
modelValue: { default: "" },
|
|
@@ -3135,10 +3109,10 @@ end;`, detail: "event(name: string)" },
|
|
|
3135
3109
|
},
|
|
3136
3110
|
emits: ["update:modelValue", "select"],
|
|
3137
3111
|
setup(e, { emit: n }) {
|
|
3138
|
-
const
|
|
3139
|
-
r.click(new Event("click")),
|
|
3112
|
+
const s = n, l = (r) => s("update:modelValue", r), t = (r, c) => {
|
|
3113
|
+
r.click(new Event("click")), s("select", c);
|
|
3140
3114
|
};
|
|
3141
|
-
return (r, c) => (
|
|
3115
|
+
return (r, c) => (p(), I(Ne, j(r.$attrs, {
|
|
3142
3116
|
top: "50px",
|
|
3143
3117
|
"hide-on-click": ""
|
|
3144
3118
|
}), {
|
|
@@ -3148,7 +3122,7 @@ end;`, detail: "event(name: string)" },
|
|
|
3148
3122
|
name: e.name,
|
|
3149
3123
|
message: e.message,
|
|
3150
3124
|
label: e.label,
|
|
3151
|
-
"onUpdate:modelValue":
|
|
3125
|
+
"onUpdate:modelValue": l,
|
|
3152
3126
|
onClick: d.open
|
|
3153
3127
|
}, null, 8, ["model-value", "name", "message", "label", "onClick"])
|
|
3154
3128
|
]),
|
|
@@ -3168,65 +3142,65 @@ end;`, detail: "event(name: string)" },
|
|
|
3168
3142
|
_: 3
|
|
3169
3143
|
}, 16));
|
|
3170
3144
|
}
|
|
3171
|
-
}),
|
|
3145
|
+
}), Ka = {
|
|
3172
3146
|
viewBox: "0 0 24 24",
|
|
3173
3147
|
width: "1.2em",
|
|
3174
3148
|
height: "1.2em"
|
|
3175
3149
|
};
|
|
3176
|
-
function
|
|
3177
|
-
return
|
|
3178
|
-
|
|
3150
|
+
function Ra(e, n) {
|
|
3151
|
+
return p(), v("svg", Ka, [...n[0] || (n[0] = [
|
|
3152
|
+
a("path", {
|
|
3179
3153
|
fill: "currentColor",
|
|
3180
3154
|
d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
|
|
3181
3155
|
}, null, -1)
|
|
3182
3156
|
])]);
|
|
3183
3157
|
}
|
|
3184
|
-
const
|
|
3158
|
+
const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, qa = { class: "p-4" }, Ko = /* @__PURE__ */ M({
|
|
3185
3159
|
__name: "VExpansion",
|
|
3186
3160
|
props: {
|
|
3187
3161
|
label: { default: "" },
|
|
3188
3162
|
value: { type: Boolean, default: !1 }
|
|
3189
3163
|
},
|
|
3190
3164
|
setup(e) {
|
|
3191
|
-
const n =
|
|
3165
|
+
const n = L(null), s = L(e.value), l = () => {
|
|
3192
3166
|
if (!n.value) return;
|
|
3193
3167
|
const r = n.value.querySelector(".v-expansion__content");
|
|
3194
|
-
r && (r.style.maxHeight =
|
|
3168
|
+
r && (r.style.maxHeight = s.value ? `${r.scrollHeight}px` : "0");
|
|
3195
3169
|
}, t = () => {
|
|
3196
|
-
|
|
3170
|
+
s.value = !s.value, l();
|
|
3197
3171
|
};
|
|
3198
3172
|
return Q(() => {
|
|
3199
|
-
|
|
3173
|
+
l();
|
|
3200
3174
|
}), (r, c) => {
|
|
3201
|
-
const d =
|
|
3202
|
-
return
|
|
3175
|
+
const d = Fa;
|
|
3176
|
+
return p(), v("div", {
|
|
3203
3177
|
ref_key: "root",
|
|
3204
3178
|
ref: n,
|
|
3205
3179
|
class: "glass-inset mb-2 overflow-hidden rounded-md"
|
|
3206
3180
|
}, [
|
|
3207
|
-
|
|
3181
|
+
a("div", {
|
|
3208
3182
|
class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
|
|
3209
3183
|
onClick: t
|
|
3210
3184
|
}, [
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
class:
|
|
3185
|
+
a("h4", null, _(e.label), 1),
|
|
3186
|
+
a("div", {
|
|
3187
|
+
class: T(["transition text-gray-400", { "rotate-x-180": s.value }])
|
|
3214
3188
|
}, [
|
|
3215
3189
|
g(d, { class: "size-6" })
|
|
3216
3190
|
], 2)
|
|
3217
3191
|
]),
|
|
3218
|
-
|
|
3219
|
-
|
|
3192
|
+
a("div", Wa, [
|
|
3193
|
+
a("div", qa, [
|
|
3220
3194
|
k(r.$slots, "default")
|
|
3221
3195
|
])
|
|
3222
3196
|
])
|
|
3223
3197
|
], 512);
|
|
3224
3198
|
};
|
|
3225
3199
|
}
|
|
3226
|
-
}),
|
|
3200
|
+
}), Ga = ["onDragstart", "onDragenter"], Ja = {
|
|
3227
3201
|
key: 0,
|
|
3228
3202
|
class: "absolute inset-0 border border-dashed border-blue-600 rounded"
|
|
3229
|
-
},
|
|
3203
|
+
}, Ro = /* @__PURE__ */ M({
|
|
3230
3204
|
__name: "VDragDrop",
|
|
3231
3205
|
props: {
|
|
3232
3206
|
items: {},
|
|
@@ -3234,27 +3208,27 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
|
|
|
3234
3208
|
},
|
|
3235
3209
|
emits: ["update:items", "order-change"],
|
|
3236
3210
|
setup(e, { emit: n }) {
|
|
3237
|
-
const
|
|
3238
|
-
"opacity-30 scale-105 z-10":
|
|
3239
|
-
"transition-transform duration-200":
|
|
3240
|
-
}), d = (u,
|
|
3241
|
-
|
|
3211
|
+
const s = n, l = L(null), t = L(0), r = L(-1), c = ({ id: u }) => ({
|
|
3212
|
+
"opacity-30 scale-105 z-10": l.value === u,
|
|
3213
|
+
"transition-transform duration-200": l.value !== u
|
|
3214
|
+
}), d = (u, f, b) => {
|
|
3215
|
+
l.value = f, t.value = b, u.dataTransfer.effectAllowed = "move";
|
|
3242
3216
|
}, m = (u) => {
|
|
3243
|
-
|
|
3244
|
-
},
|
|
3245
|
-
|
|
3217
|
+
l.value !== null && (r.value = u);
|
|
3218
|
+
}, o = () => {
|
|
3219
|
+
l.value = null, r.value = -1;
|
|
3246
3220
|
}, i = (u) => {
|
|
3247
|
-
if (u.preventDefault(),
|
|
3248
|
-
const
|
|
3249
|
-
if (
|
|
3250
|
-
const h = [...e.items], [y] = h.splice(
|
|
3251
|
-
h.splice(b, 0, y),
|
|
3221
|
+
if (u.preventDefault(), l.value && r.value !== -1) {
|
|
3222
|
+
const f = e.items.findIndex((h) => h[e.itemKey] === l.value), b = r.value;
|
|
3223
|
+
if (f !== b && b !== -1) {
|
|
3224
|
+
const h = [...e.items], [y] = h.splice(f, 1);
|
|
3225
|
+
h.splice(b, 0, y), s("update:items", h), s("order-change", { fromIndex: f, toIndex: b, movedItem: y, newOrder: h });
|
|
3252
3226
|
}
|
|
3253
3227
|
}
|
|
3254
3228
|
r.value = -1;
|
|
3255
3229
|
};
|
|
3256
|
-
return (u,
|
|
3257
|
-
onDragover:
|
|
3230
|
+
return (u, f) => (p(), v("div", {
|
|
3231
|
+
onDragover: f[1] || (f[1] = F(() => {
|
|
3258
3232
|
}, ["prevent"])),
|
|
3259
3233
|
onDrop: i
|
|
3260
3234
|
}, [
|
|
@@ -3268,33 +3242,33 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
|
|
|
3268
3242
|
"move-class": "transition-all duration-300 ease"
|
|
3269
3243
|
}, {
|
|
3270
3244
|
default: x(() => [
|
|
3271
|
-
(
|
|
3245
|
+
(p(!0), v(B, null, N(e.items, (b, h) => (p(), v("div", {
|
|
3272
3246
|
key: `${b.id}_drug`,
|
|
3273
|
-
class:
|
|
3247
|
+
class: T(["relative group", c(b)]),
|
|
3274
3248
|
draggable: "true",
|
|
3275
3249
|
onDragstart: (y) => d(y, b.id, h),
|
|
3276
3250
|
onDragenter: (y) => m(h),
|
|
3277
|
-
onDragend:
|
|
3278
|
-
onDragover:
|
|
3251
|
+
onDragend: o,
|
|
3252
|
+
onDragover: f[0] || (f[0] = F(() => {
|
|
3279
3253
|
}, ["prevent"]))
|
|
3280
3254
|
}, [
|
|
3281
3255
|
k(u.$slots, "default", {
|
|
3282
3256
|
item: b,
|
|
3283
3257
|
key: b.id,
|
|
3284
3258
|
index: h,
|
|
3285
|
-
isDragging:
|
|
3259
|
+
isDragging: l.value === b.id
|
|
3286
3260
|
}),
|
|
3287
|
-
r.value === h &&
|
|
3288
|
-
], 42,
|
|
3261
|
+
r.value === h && l.value !== b.id ? (p(), v("div", Ja)) : z("", !0)
|
|
3262
|
+
], 42, Ga))), 128))
|
|
3289
3263
|
]),
|
|
3290
3264
|
_: 3
|
|
3291
3265
|
})
|
|
3292
3266
|
], 32));
|
|
3293
3267
|
}
|
|
3294
|
-
}),
|
|
3268
|
+
}), Za = { class: "glass-inset overflow-hidden rounded-md" }, Xa = { class: "min-w-full" }, Ya = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, Qa = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, eo = { class: "flex items-center" }, to = { class: "divide-y divide-gray-100 dark:divide-white/5" }, no = ["onClick"], lo = { class: "flex items-center text-gray-700 dark:text-white/70" }, so = { key: 1 }, ao = {
|
|
3295
3269
|
class: "py-3 whitespace-nowrap",
|
|
3296
3270
|
colspan: "9"
|
|
3297
|
-
},
|
|
3271
|
+
}, oo = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, Fo = /* @__PURE__ */ M({
|
|
3298
3272
|
__name: "VTable",
|
|
3299
3273
|
props: {
|
|
3300
3274
|
headers: { default: () => [] },
|
|
@@ -3302,46 +3276,46 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
|
|
|
3302
3276
|
},
|
|
3303
3277
|
emits: ["click"],
|
|
3304
3278
|
setup(e, { emit: n }) {
|
|
3305
|
-
const
|
|
3306
|
-
return (c, d) => (
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
(
|
|
3311
|
-
key:
|
|
3312
|
-
class:
|
|
3279
|
+
const s = n, l = (c, d) => s("click", c, d), t = (c) => (c == null ? void 0 : c.className) || "", r = (c, { key: d }) => c == null ? void 0 : c[d];
|
|
3280
|
+
return (c, d) => (p(), v("div", Za, [
|
|
3281
|
+
a("table", Xa, [
|
|
3282
|
+
a("thead", Ya, [
|
|
3283
|
+
a("tr", Qa, [
|
|
3284
|
+
(p(!0), v(B, null, N(e.headers, (m, o) => (p(), v("th", {
|
|
3285
|
+
key: o,
|
|
3286
|
+
class: T(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
|
|
3313
3287
|
}, [
|
|
3314
3288
|
k(c.$slots, "header", {
|
|
3315
3289
|
item: m,
|
|
3316
|
-
i:
|
|
3290
|
+
i: o
|
|
3317
3291
|
}, () => [
|
|
3318
|
-
|
|
3292
|
+
a("div", eo, _(m.name), 1)
|
|
3319
3293
|
])
|
|
3320
3294
|
], 2))), 128))
|
|
3321
3295
|
])
|
|
3322
3296
|
]),
|
|
3323
|
-
|
|
3324
|
-
e.items.length ? (
|
|
3325
|
-
key:
|
|
3297
|
+
a("tbody", to, [
|
|
3298
|
+
e.items.length ? (p(!0), v(B, { key: 0 }, N(e.items, (m, o) => (p(), v("tr", {
|
|
3299
|
+
key: o,
|
|
3326
3300
|
class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
|
|
3327
|
-
onClick: (i) =>
|
|
3301
|
+
onClick: (i) => l(m, i)
|
|
3328
3302
|
}, [
|
|
3329
|
-
(
|
|
3303
|
+
(p(!0), v(B, null, N(e.headers, (i, u) => (p(), v("td", {
|
|
3330
3304
|
key: u,
|
|
3331
3305
|
class: "py-2 px-4"
|
|
3332
3306
|
}, [
|
|
3333
|
-
|
|
3307
|
+
a("div", lo, [
|
|
3334
3308
|
k(c.$slots, i.key, {
|
|
3335
3309
|
item: m,
|
|
3336
|
-
i:
|
|
3310
|
+
i: o
|
|
3337
3311
|
}, () => [
|
|
3338
3312
|
H(_(r(m, i)), 1)
|
|
3339
3313
|
])
|
|
3340
3314
|
])
|
|
3341
3315
|
]))), 128))
|
|
3342
|
-
], 8,
|
|
3343
|
-
|
|
3344
|
-
|
|
3316
|
+
], 8, no))), 128)) : (p(), v("tr", so, [
|
|
3317
|
+
a("td", ao, [
|
|
3318
|
+
a("div", oo, [
|
|
3345
3319
|
k(c.$slots, "empty", {}, () => [
|
|
3346
3320
|
d[0] || (d[0] = H("The list is empty", -1))
|
|
3347
3321
|
])
|
|
@@ -3352,27 +3326,27 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
|
|
|
3352
3326
|
])
|
|
3353
3327
|
]));
|
|
3354
3328
|
}
|
|
3355
|
-
}),
|
|
3329
|
+
}), Wo = /* @__PURE__ */ M({
|
|
3356
3330
|
__name: "VTooltip",
|
|
3357
3331
|
props: {
|
|
3358
3332
|
timeout: {},
|
|
3359
3333
|
disabled: { type: Boolean }
|
|
3360
3334
|
},
|
|
3361
3335
|
setup(e) {
|
|
3362
|
-
const n =
|
|
3336
|
+
const n = L(!1), s = () => {
|
|
3363
3337
|
e.disabled || (n.value = !0);
|
|
3364
|
-
},
|
|
3338
|
+
}, l = () => {
|
|
3365
3339
|
n.value = !1;
|
|
3366
3340
|
}, t = Ie("tooltip");
|
|
3367
|
-
return $t(t, () =>
|
|
3341
|
+
return $t(t, () => l()), (r, c) => (p(), v("div", {
|
|
3368
3342
|
ref: "tooltip",
|
|
3369
3343
|
class: "relative v-tooltip",
|
|
3370
|
-
onMouseenter:
|
|
3371
|
-
onMouseleave:
|
|
3344
|
+
onMouseenter: s,
|
|
3345
|
+
onMouseleave: l
|
|
3372
3346
|
}, [
|
|
3373
|
-
|
|
3347
|
+
a("button", {
|
|
3374
3348
|
type: "button",
|
|
3375
|
-
onClick:
|
|
3349
|
+
onClick: s
|
|
3376
3350
|
}, [
|
|
3377
3351
|
k(r.$slots, "activator")
|
|
3378
3352
|
]),
|
|
@@ -3393,59 +3367,58 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
|
|
|
3393
3367
|
}
|
|
3394
3368
|
});
|
|
3395
3369
|
export {
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3370
|
+
ho as AppAside,
|
|
3371
|
+
go as AppHeader,
|
|
3372
|
+
yo as AppNav,
|
|
3373
|
+
bo as AppNotification,
|
|
3374
|
+
xo as AppOverlay,
|
|
3375
|
+
_o as AppProgress,
|
|
3376
|
+
zo as BlockBreadcrumb,
|
|
3377
|
+
$o as BlockInfo,
|
|
3378
|
+
ko as BlockScan,
|
|
3379
|
+
wo as BlockService,
|
|
3380
|
+
Co as BlockStatus,
|
|
3381
|
+
Mo as BlockUpdate,
|
|
3382
|
+
oe as CardBase,
|
|
3383
|
+
So as CardButton,
|
|
3384
|
+
Vo as CardDate,
|
|
3385
|
+
To as CardDimmer,
|
|
3386
|
+
Lo as CardInfo,
|
|
3387
|
+
Eo as CardInput,
|
|
3388
|
+
Bo as CardList,
|
|
3389
|
+
Jo as CardMain,
|
|
3416
3390
|
en as CardNotification,
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3391
|
+
fa as DEFAULT_SUGGESTIONS,
|
|
3392
|
+
Ao as ItemEdit,
|
|
3393
|
+
Ho as ScriptDialog,
|
|
3394
|
+
Do as ScriptEditor,
|
|
3395
|
+
Io as ScriptViewDocs,
|
|
3396
|
+
Uo as VAutocomplete,
|
|
3423
3397
|
A as VButton,
|
|
3424
|
-
|
|
3398
|
+
Ms as VCheckbox,
|
|
3425
3399
|
Oe as VDialog,
|
|
3426
|
-
|
|
3400
|
+
Ro as VDragDrop,
|
|
3427
3401
|
Ne as VDropdown,
|
|
3428
|
-
|
|
3429
|
-
|
|
3402
|
+
Ko as VExpansion,
|
|
3403
|
+
cl as VFile,
|
|
3430
3404
|
xe as VFunc,
|
|
3431
3405
|
Pe as VIconLogo,
|
|
3432
3406
|
ct as VIconLogoMini,
|
|
3433
3407
|
Ce as VList,
|
|
3434
3408
|
We as VListObject,
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3409
|
+
pt as VLoader,
|
|
3410
|
+
Zo as VPopup,
|
|
3411
|
+
se as VSelect,
|
|
3412
|
+
Fo as VTable,
|
|
3413
|
+
xs as VTabs,
|
|
3440
3414
|
J as VTextField,
|
|
3441
3415
|
Fe as VTextWrapper,
|
|
3442
|
-
|
|
3416
|
+
Wo as VTooltip,
|
|
3443
3417
|
mt as VWifiIcon,
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
mo as fullHighlighter
|
|
3418
|
+
jo as VisionCard,
|
|
3419
|
+
de as VisionIcon,
|
|
3420
|
+
Po as VisionInput,
|
|
3421
|
+
No as VisionSearch,
|
|
3422
|
+
Oo as VisionThemeToggle,
|
|
3423
|
+
ua as fullHighlighter
|
|
3451
3424
|
};
|