vuesp-components 2.3.3 → 2.4.0
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/dist/{VDialog.vue_vue_type_script_setup_true_lang-DFNvEwYK.js → VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js} +412 -321
- package/dist/components/card/main/CardMain.vue.d.ts.map +1 -1
- package/dist/components/card/main/types.d.ts +3 -2
- package/dist/components/card/main/types.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +6 -0
- package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +1020 -1144
- package/dist/components/ui/index.d.ts +1 -3
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/loader/VLoader.vue.d.ts +2 -1
- package/dist/components/ui/loader/VLoader.vue.d.ts.map +1 -1
- package/dist/components/ui/loader/types.d.ts +3 -0
- package/dist/components/ui/loader/types.d.ts.map +1 -1
- package/dist/components/ui/tabs/types.d.ts +1 -0
- package/dist/components/ui/tabs/types.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/types.d.ts +3 -0
- package/dist/components/ui/text-field/types.d.ts.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/ui/vision/VisionCard.vue.d.ts +0 -21
- package/dist/components/ui/vision/VisionCard.vue.d.ts.map +0 -1
- package/dist/components/ui/vision/VisionInput.vue.d.ts +0 -19
- package/dist/components/ui/vision/VisionInput.vue.d.ts.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { b as
|
|
4
|
-
import { f as
|
|
5
|
-
import { d as
|
|
6
|
-
import { getDataValue as
|
|
7
|
-
import { useForm as
|
|
8
|
-
import { required as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as S, resolveComponent as Ae, openBlock as p, createElementBlock as v, Fragment as B, createCommentVNode as V, createElementVNode as o, normalizeClass as E, createVNode as g, withCtx as x, createBlock as I, renderSlot as k, markRaw as O, computed as M, withModifiers as R, toDisplayString as _, unref as q, TransitionGroup as De, renderList as N, mergeProps as H, ref as L, watch as oe, resolveDynamicComponent as ue, Transition as $e, normalizeStyle as ve, createTextVNode as j, normalizeProps as F, guardReactiveProps as U, onMounted as Q, onUnmounted as ke, reactive as nt, useTemplateRef as Ie, withDirectives as we, vShow as st, vModelText as je, createSlots as lt, isRef as ot, Teleport as at, nextTick as He } from "vue";
|
|
2
|
+
import { a as it, V as Pe, j as A, h as Ne, g as Ce, k as de, l as rt, d as dt, i as ct, e as le, _ as Oe, f as J, m as me } from "../VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js";
|
|
3
|
+
import { b as ja, n as Ha } from "../VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js";
|
|
4
|
+
import { f as ut, t as mt, g as pt, u as pe, s as ft, d as vt, m as ht, c as gt } from "../app-B45sALrX.js";
|
|
5
|
+
import { d as Se, e as bt, o as xt } from "../useDialog-ALG4kFE7.js";
|
|
6
|
+
import { getDataValue as yt } from "../dashboard/index.es.js";
|
|
7
|
+
import { useForm as _t } from "../composables/index.es.js";
|
|
8
|
+
import { required as $t, maxLen as kt } from "../validate/index.es.js";
|
|
9
|
+
const wt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, aa = /* @__PURE__ */ S({
|
|
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 l = n, s = () => {
|
|
17
|
+
e.isSidebar && l("sidebar", !e.isSidebar);
|
|
18
18
|
};
|
|
19
19
|
return (t, r) => {
|
|
20
20
|
const c = Ae("router-link");
|
|
@@ -22,17 +22,17 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
22
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:
|
|
26
|
-
})) :
|
|
27
|
-
|
|
28
|
-
class:
|
|
25
|
+
onClick: s
|
|
26
|
+
})) : V("", !0),
|
|
27
|
+
o("aside", {
|
|
28
|
+
class: E([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
|
+
o("div", {
|
|
31
|
+
class: E([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 ? (p(), I(
|
|
35
|
+
e.isSidebar ? (p(), I(it, {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "h-[30px] text-primary"
|
|
38
38
|
})) : (p(), I(Pe, {
|
|
@@ -43,92 +43,92 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
43
43
|
_: 1
|
|
44
44
|
})
|
|
45
45
|
], 2),
|
|
46
|
-
|
|
46
|
+
o("div", wt, [
|
|
47
47
|
k(t.$slots, "default")
|
|
48
48
|
])
|
|
49
49
|
], 2)
|
|
50
50
|
], 64);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), Ct = {
|
|
54
54
|
viewBox: "0 0 24 24",
|
|
55
55
|
width: "1.2em",
|
|
56
56
|
height: "1.2em"
|
|
57
57
|
};
|
|
58
|
-
function
|
|
59
|
-
return p(), v("svg",
|
|
60
|
-
|
|
58
|
+
function St(e, n) {
|
|
59
|
+
return p(), v("svg", Ct, [...n[0] || (n[0] = [
|
|
60
|
+
o("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)
|
|
64
64
|
])]);
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Ke = O({ name: "ri-more-line", render: St }), zt = {
|
|
67
67
|
viewBox: "0 0 24 24",
|
|
68
68
|
width: "1.2em",
|
|
69
69
|
height: "1.2em"
|
|
70
70
|
};
|
|
71
|
-
function
|
|
72
|
-
return p(), v("svg",
|
|
73
|
-
|
|
71
|
+
function Vt(e, n) {
|
|
72
|
+
return p(), v("svg", zt, [...n[0] || (n[0] = [
|
|
73
|
+
o("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
|
|
79
|
+
const Tt = O({ name: "ri-logout-box-line", render: Vt }), Et = {
|
|
80
80
|
viewBox: "0 0 24 24",
|
|
81
81
|
width: "1.2em",
|
|
82
82
|
height: "1.2em"
|
|
83
83
|
};
|
|
84
|
-
function
|
|
85
|
-
return p(), v("svg",
|
|
86
|
-
|
|
84
|
+
function Lt(e, n) {
|
|
85
|
+
return p(), v("svg", Et, [...n[0] || (n[0] = [
|
|
86
|
+
o("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)
|
|
90
90
|
])]);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const Fe = O({ name: "ri-notification-line", render: Lt }), Bt = {
|
|
93
93
|
viewBox: "0 0 24 24",
|
|
94
94
|
width: "1.2em",
|
|
95
95
|
height: "1.2em"
|
|
96
96
|
};
|
|
97
|
-
function
|
|
98
|
-
return p(), v("svg",
|
|
99
|
-
|
|
97
|
+
function Mt(e, n) {
|
|
98
|
+
return p(), v("svg", Bt, [...n[0] || (n[0] = [
|
|
99
|
+
o("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)
|
|
103
103
|
])]);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const At = O({ name: "ri-moon-line", render: Mt }), Dt = {
|
|
106
106
|
viewBox: "0 0 24 24",
|
|
107
107
|
width: "1.2em",
|
|
108
108
|
height: "1.2em"
|
|
109
109
|
};
|
|
110
|
-
function
|
|
111
|
-
return p(), v("svg",
|
|
112
|
-
|
|
110
|
+
function It(e, n) {
|
|
111
|
+
return p(), v("svg", Dt, [...n[0] || (n[0] = [
|
|
112
|
+
o("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)
|
|
116
116
|
])]);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const jt = O({ name: "ri-sun-line", render: It }), Ht = {
|
|
119
119
|
viewBox: "0 0 24 24",
|
|
120
120
|
width: "1.2em",
|
|
121
121
|
height: "1.2em"
|
|
122
122
|
};
|
|
123
|
-
function
|
|
124
|
-
return p(), v("svg",
|
|
125
|
-
|
|
123
|
+
function Pt(e, n) {
|
|
124
|
+
return p(), v("svg", Ht, [...n[0] || (n[0] = [
|
|
125
|
+
o("path", {
|
|
126
126
|
fill: "currentColor",
|
|
127
127
|
d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
|
|
128
128
|
}, null, -1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { 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)]" }, Kt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Ft = { class: "container mx-auto flex flex-auto items-center" }, Ut = { class: "lg:hidden h-[30px]" }, Rt = { class: "gap-4 hidden lg:flex" }, Wt = { class: "lg:hidden flex gap-4" }, qt = { class: "ms-2" }, ia = /* @__PURE__ */ S({
|
|
132
132
|
__name: "AppHeader",
|
|
133
133
|
props: {
|
|
134
134
|
changeTheme: { type: Function },
|
|
@@ -136,21 +136,21 @@ 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 l = n, s = [
|
|
140
140
|
{ name: "Theme", value: 1 },
|
|
141
141
|
{ name: "Notification", value: 2 },
|
|
142
142
|
{ name: "Logout", value: 3 }
|
|
143
|
-
], t =
|
|
143
|
+
], t = M(() => !!e.notifications.find((i) => i.isNew)), r = (i) => l("sidebar", i), c = (i) => l("notif", i), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), m = () => {
|
|
144
144
|
e.changeTheme && e.changeTheme();
|
|
145
|
-
},
|
|
145
|
+
}, a = ({ value: i }, u) => {
|
|
146
146
|
i == 1 && m(), i == 2 && c(u), i == 3 && d();
|
|
147
147
|
};
|
|
148
148
|
return (i, u) => {
|
|
149
|
-
const f =
|
|
150
|
-
return p(), v("header",
|
|
151
|
-
u[3] || (u[3] =
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
const f = Nt, b = Ae("router-link"), h = jt, y = At, z = Fe, T = Tt, w = Ke;
|
|
150
|
+
return p(), v("header", Ot, [
|
|
151
|
+
u[3] || (u[3] = o("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
|
+
o("div", Kt, [
|
|
153
|
+
o("div", Ft, [
|
|
154
154
|
g(A, {
|
|
155
155
|
type: "icon",
|
|
156
156
|
onClick: r
|
|
@@ -160,8 +160,8 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}),
|
|
163
|
-
u[1] || (u[1] =
|
|
164
|
-
|
|
163
|
+
u[1] || (u[1] = o("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
164
|
+
o("div", Ut, [
|
|
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] = o("div", { class: "flex-auto" }, null, -1)),
|
|
173
|
+
o("div", Rt, [
|
|
174
174
|
g(A, {
|
|
175
175
|
type: "icon",
|
|
176
176
|
onClick: m
|
|
@@ -186,26 +186,26 @@ 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
|
+
o("span", {
|
|
190
|
+
class: E([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
|
+
o("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
|
-
g(
|
|
194
|
+
g(z, { class: "size-5" })
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}),
|
|
198
198
|
g(A, {
|
|
199
199
|
type: "icon",
|
|
200
|
-
onClick:
|
|
200
|
+
onClick: R(d, ["prevent"])
|
|
201
201
|
}, {
|
|
202
202
|
default: x(() => [
|
|
203
|
-
g(
|
|
203
|
+
g(T, { class: "size-5" })
|
|
204
204
|
]),
|
|
205
205
|
_: 1
|
|
206
206
|
})
|
|
207
207
|
]),
|
|
208
|
-
|
|
208
|
+
o("div", Wt, [
|
|
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: s,
|
|
229
|
+
onClick: a
|
|
230
230
|
}, {
|
|
231
231
|
default: x(({ item: P }) => [
|
|
232
|
-
|
|
232
|
+
o("span", qt, _(P.name), 1)
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
})
|
|
@@ -242,7 +242,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
242
242
|
]);
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), Gt = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Jt = { class: "flex-auto text-xs" }, Zt = { class: "text-gray-500 dark:text-gray-400 mt-1" }, Xt = /* @__PURE__ */ S({
|
|
246
246
|
__name: "CardNotification",
|
|
247
247
|
props: {
|
|
248
248
|
empty: {},
|
|
@@ -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 =
|
|
261
|
-
return p(), v("div",
|
|
262
|
-
|
|
263
|
-
class:
|
|
258
|
+
const l = e, s = n, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], r = (m) => t[m], c = (m) => s("remove", m), d = (m) => s("read", m);
|
|
259
|
+
return (m, a) => {
|
|
260
|
+
const i = Fe, u = de;
|
|
261
|
+
return p(), v("div", Gt, [
|
|
262
|
+
o("div", {
|
|
263
|
+
class: E(["absolute left-0 top-0 w-[3px] h-full", r(l.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
|
+
o("span", {
|
|
272
|
+
class: E([l.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
273
|
+
}, [...a[0] || (a[0] = [
|
|
274
|
+
o("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
|
+
o("div", Jt, [
|
|
281
|
+
o("div", null, _(l.text), 1),
|
|
282
|
+
o("div", Zt, _(q(ut)(l.date)) + " (" + _(q(mt)(l.date)) + ")", 1)
|
|
283
283
|
]),
|
|
284
284
|
g(A, {
|
|
285
285
|
class: "shrink-0",
|
|
@@ -295,10 +295,10 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
295
295
|
]);
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
298
|
+
}), Yt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Qt = {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "flex flex-col gap-2 p-2"
|
|
301
|
-
},
|
|
301
|
+
}, ra = /* @__PURE__ */ S({
|
|
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 l = e, s = n, t = M(() => !!l.notifications.find((a) => a.isNew)), r = M(() => !!l.notifications.length), c = (a) => s("close", a), d = (a) => s("remove", a), m = (a) => s("read", a);
|
|
310
|
+
return (a, i) => (p(), v(B, null, [
|
|
311
|
+
l.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
|
-
})) :
|
|
316
|
-
|
|
317
|
-
class:
|
|
315
|
+
})) : V("", !0),
|
|
316
|
+
o("aside", {
|
|
317
|
+
class: E([l.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 ? (p(), v("div",
|
|
319
|
+
o("div", Yt, [
|
|
320
|
+
k(a.$slots, "header", { isNew: t.value }),
|
|
321
|
+
r.value ? (p(), v("div", Qt, [
|
|
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,12 +328,12 @@ 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
|
-
(p(!0), v(B, null, N(
|
|
331
|
+
(p(!0), v(B, null, N(l.notifications, (u) => (p(), v("div", {
|
|
332
332
|
key: u.date,
|
|
333
333
|
class: "relative"
|
|
334
334
|
}, [
|
|
335
|
-
k(
|
|
336
|
-
g(
|
|
335
|
+
k(a.$slots, "card", { item: u }, () => [
|
|
336
|
+
g(Xt, H({ 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
338
|
onRemove: (f) => d(u),
|
|
339
339
|
onRead: (f) => m(u)
|
|
@@ -343,37 +343,37 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
|
|
|
343
343
|
]),
|
|
344
344
|
_: 3
|
|
345
345
|
})
|
|
346
|
-
])) : k(
|
|
346
|
+
])) : k(a.$slots, "empty", {}, void 0, void 0, 1)
|
|
347
347
|
])
|
|
348
348
|
], 2)
|
|
349
349
|
], 64));
|
|
350
350
|
}
|
|
351
|
-
}),
|
|
352
|
-
function
|
|
353
|
-
return p(), v("div",
|
|
354
|
-
n[0] || (n[0] =
|
|
355
|
-
|
|
351
|
+
}), en = {}, tn = { class: "fixed h-full w-full top-0 left-0 z-20" }, nn = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
|
|
352
|
+
function sn(e, n) {
|
|
353
|
+
return p(), v("div", tn, [
|
|
354
|
+
n[0] || (n[0] = o("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
|
|
355
|
+
o("div", nn, [
|
|
356
356
|
k(e.$slots, "default")
|
|
357
357
|
])
|
|
358
358
|
]);
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const da = /* @__PURE__ */ rt(en, [["render", sn]]), ln = {
|
|
361
361
|
viewBox: "0 0 24 24",
|
|
362
362
|
width: "1.2em",
|
|
363
363
|
height: "1.2em"
|
|
364
364
|
};
|
|
365
|
-
function
|
|
366
|
-
return p(), v("svg",
|
|
367
|
-
|
|
365
|
+
function on(e, n) {
|
|
366
|
+
return p(), v("svg", ln, [...n[0] || (n[0] = [
|
|
367
|
+
o("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
|
|
373
|
+
const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4 flex flex-col gap-2" }, dn = { class: "size-6 flex-[0_0_24px] opacity-60" }, cn = ["onClick"], un = { class: "flex flex-col gap-2" }, mn = { class: "flex gap-2 ms-8" }, pn = { class: "size-5 flex-[0_0_24px]" }, fn = { class: "flex-1 first-letter:uppercase text-sm" }, vn = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mt-2"
|
|
376
|
-
},
|
|
376
|
+
}, hn = { class: "flex flex-col gap-2" }, gn = { class: "flex gap-2 ms-14" }, bn = { class: "size-5 flex-[0_0_24px]" }, xn = { class: "flex-1 first-letter:uppercase text-sm" }, ca = /* @__PURE__ */ S({
|
|
377
377
|
__name: "AppNav",
|
|
378
378
|
props: {
|
|
379
379
|
menu: { default: () => [] },
|
|
@@ -382,9 +382,9 @@ 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 l = n, s = L(""), t = ({ name: a }) => {
|
|
386
|
+
e.isSidebar && l("sidebar", !e.isSidebar), s.value !== a && (s.value = s.value === a ? "" : a);
|
|
387
|
+
}, r = (a) => e.fullPath === a, c = (a) => a ? e.fullPath === a || e.fullPath.startsWith(a) : !1, d = (a, i) => !a.path || i === "/" || a.path === "/" ? !1 : a.path === i || i.includes(a.path), m = (a, i) => (a == null ? void 0 : a.find(
|
|
388
388
|
(u) => {
|
|
389
389
|
var f;
|
|
390
390
|
return d(u, i) || ((f = u.children) == null ? void 0 : f.some(
|
|
@@ -395,103 +395,103 @@ 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 oe(
|
|
399
399
|
() => e.menu,
|
|
400
400
|
() => {
|
|
401
|
-
var
|
|
402
|
-
return
|
|
401
|
+
var a;
|
|
402
|
+
return s.value = ((a = m(e.menu, e.fullPath) ?? pt(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
|
|
403
403
|
}
|
|
404
|
-
), (
|
|
405
|
-
const u =
|
|
404
|
+
), (a, i) => {
|
|
405
|
+
const u = an;
|
|
406
406
|
return p(), v("nav", null, [
|
|
407
|
-
|
|
407
|
+
o("ul", rn, [
|
|
408
408
|
(p(!0), v(B, null, N(e.menu, (f) => (p(), v("li", {
|
|
409
409
|
key: f.name
|
|
410
410
|
}, [
|
|
411
|
-
(p(), I(
|
|
411
|
+
(p(), I(ue(f.path ? "router-link" : "span"), {
|
|
412
412
|
to: f.path,
|
|
413
|
-
class:
|
|
414
|
-
onClick:
|
|
413
|
+
class: E(["flex gap-2 items-center px-3 py-2 rounded", r(f.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
|
|
414
|
+
onClick: R((b) => t(f), ["prevent", "stop"])
|
|
415
415
|
}, {
|
|
416
416
|
default: x(() => [
|
|
417
|
-
|
|
418
|
-
k(
|
|
417
|
+
o("div", dn, [
|
|
418
|
+
k(a.$slots, "icon", { item: f })
|
|
419
419
|
]),
|
|
420
|
-
|
|
421
|
-
class:
|
|
420
|
+
o("span", {
|
|
421
|
+
class: E(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
|
|
422
422
|
}, _(f.name), 3),
|
|
423
|
-
|
|
424
|
-
class:
|
|
425
|
-
onClick:
|
|
423
|
+
o("button", {
|
|
424
|
+
class: E(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
|
|
425
|
+
onClick: R((b) => t(f), ["prevent", "stop"])
|
|
426
426
|
}, [
|
|
427
|
-
f.children ? (p(), I(u, { key: 0 })) :
|
|
428
|
-
], 10,
|
|
427
|
+
f.children ? (p(), I(u, { key: 0 })) : V("", !0)
|
|
428
|
+
], 10, cn)
|
|
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: E(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value === f.name ? "block" : "hidden"]])
|
|
435
435
|
}, [
|
|
436
|
-
|
|
437
|
-
(p(!0), v(B, null, N(f.children, ({ name: b, path: h, icon: y, children:
|
|
438
|
-
(p(), I(
|
|
436
|
+
o("ul", un, [
|
|
437
|
+
(p(!0), v(B, null, N(f.children, ({ name: b, path: h, icon: y, children: z }) => (p(), v("li", { key: b }, [
|
|
438
|
+
(p(), I(ue(h ? "router-link" : "span"), {
|
|
439
439
|
to: h,
|
|
440
|
-
class:
|
|
440
|
+
class: E(["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
|
+
o("div", mn, [
|
|
444
|
+
o("div", pn, [
|
|
445
|
+
k(a.$slots, "icon-children", {
|
|
446
446
|
item: { name: b, path: h, icon: y }
|
|
447
447
|
})
|
|
448
448
|
]),
|
|
449
|
-
|
|
449
|
+
o("span", fn, _(b), 1)
|
|
450
450
|
])
|
|
451
451
|
]),
|
|
452
452
|
_: 2
|
|
453
453
|
}, 1032, ["to", "class"])),
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
(p(!0), v(B, null, N(
|
|
457
|
-
key:
|
|
454
|
+
z != null && z.length && c(h) ? (p(), v("div", vn, [
|
|
455
|
+
o("ul", hn, [
|
|
456
|
+
(p(!0), v(B, null, N(z, (T) => (p(), v("li", {
|
|
457
|
+
key: T.name
|
|
458
458
|
}, [
|
|
459
|
-
(p(), I(
|
|
460
|
-
to:
|
|
461
|
-
class:
|
|
459
|
+
(p(), I(ue(T.path ? "router-link" : "span"), {
|
|
460
|
+
to: T.path,
|
|
461
|
+
class: E(["flex gap-2 items-center px-3 py-2 rounded", r(T.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
|
|
462
462
|
}, {
|
|
463
463
|
default: x(() => [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
k(
|
|
464
|
+
o("div", gn, [
|
|
465
|
+
o("div", bn, [
|
|
466
|
+
k(a.$slots, "icon-children", { item: T })
|
|
467
467
|
]),
|
|
468
|
-
|
|
468
|
+
o("span", xn, _(T.name), 1)
|
|
469
469
|
])
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, 1032, ["to", "class"]))
|
|
473
473
|
]))), 128))
|
|
474
474
|
])
|
|
475
|
-
])) :
|
|
475
|
+
])) : V("", !0)
|
|
476
476
|
]))), 128))
|
|
477
477
|
])
|
|
478
|
-
], 2)) :
|
|
478
|
+
], 2)) : V("", !0)
|
|
479
479
|
]))), 128))
|
|
480
480
|
])
|
|
481
481
|
]);
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
}),
|
|
484
|
+
}), yn = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "glass-panel w-full min-w-[260px] max-w-xs p-4 shadow-lg",
|
|
487
487
|
role: "alert"
|
|
488
|
-
},
|
|
488
|
+
}, _n = { class: "flex items-center gap-4 text-sm" }, $n = {
|
|
489
489
|
key: 0,
|
|
490
490
|
class: "text-green-600"
|
|
491
|
-
},
|
|
491
|
+
}, kn = {
|
|
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
|
-
},
|
|
494
|
+
}, wn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Cn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ua = /* @__PURE__ */ S({
|
|
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 = L(!1),
|
|
505
|
+
const n = L(!1), l = M(() => !!e.length), s = M(() => !!(l.value && t.value === 100 && !e.status)), t = M(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), r = Se(() => {
|
|
506
506
|
n.value = !1;
|
|
507
507
|
}, e.timeout);
|
|
508
|
-
return
|
|
508
|
+
return oe(
|
|
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 p(), I(
|
|
514
|
+
const m = de;
|
|
515
|
+
return p(), I($e, {
|
|
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,40 +521,40 @@ 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 ? (p(), v("div",
|
|
525
|
-
|
|
526
|
-
k(c.$slots, "default", { isDone:
|
|
527
|
-
d[1] || (d[1] =
|
|
528
|
-
|
|
524
|
+
n.value ? (p(), v("div", yn, [
|
|
525
|
+
o("div", _n, [
|
|
526
|
+
k(c.$slots, "default", { isDone: s.value }, () => [
|
|
527
|
+
d[1] || (d[1] = o("div", { class: "flex-auto" }, "Progress...", -1)),
|
|
528
|
+
s.value ? (p(), v("span", $n, "Done")) : V("", !0)
|
|
529
529
|
]),
|
|
530
|
-
|
|
530
|
+
o("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] = (a) => n.value = !1)
|
|
533
533
|
}, [
|
|
534
534
|
g(m, { class: "size-4" })
|
|
535
535
|
])
|
|
536
536
|
]),
|
|
537
|
-
|
|
537
|
+
l.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
|
-
}, null, 4)) :
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
541
|
+
}, null, 4)) : V("", !0),
|
|
542
|
+
l.value ? (p(), v("div", kn, [
|
|
543
|
+
o("div", wn, _(t.value) + "%", 1),
|
|
544
|
+
o("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
|
+
o("div", Cn, _(t.value) + "%", 1)
|
|
549
549
|
], 4)
|
|
550
|
-
])) :
|
|
551
|
-
])) :
|
|
550
|
+
])) : V("", !0)
|
|
551
|
+
])) : V("", !0)
|
|
552
552
|
]),
|
|
553
553
|
_: 3
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), Sn = { class: "my-4 text-gray-700 dark:text-gray-400" }, zn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Vn = { class: "flex gap-2" }, Tn = { class: "text-gray-700 dark:text-gray-400" }, En = { class: "flex gap-2" }, Ln = { class: "flex gap-2" }, Bn = { class: "text-gray-700 dark:text-gray-400" }, Mn = { class: "flex gap-2" }, An = { class: "text-gray-700 dark:text-gray-400" }, Dn = { class: "flex flex-col gap-4 text-sm" }, In = { class: "flex gap-4" }, ma = /* @__PURE__ */ S({
|
|
558
558
|
__name: "BlockInfo",
|
|
559
559
|
props: {
|
|
560
560
|
pkg: {},
|
|
@@ -568,85 +568,85 @@ 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 = M(() => e.firmware.join(".")), l = M(() => {
|
|
572
|
+
var t, r, c, d, m, a, i;
|
|
573
|
+
const s = [];
|
|
574
|
+
return (t = e.pkg) != null && t.homepage && s.push({ name: "homepage", href: e.pkg.homepage }), (c = (r = e.pkg) == null ? void 0 : r.repository) != null && c.url && s.push({ name: "repository", href: e.pkg.repository.url }), (m = (d = e.pkg) == null ? void 0 : d.bugs) != null && m.url && s.push({ name: "bugs", href: e.pkg.bugs.url }), (a = e.pkg) != null && a.author && s.push({ name: "author", href: `mailto:${(i = e.pkg) == null ? void 0 : i.author}` }), s;
|
|
575
575
|
});
|
|
576
|
-
return (
|
|
576
|
+
return (s, t) => {
|
|
577
577
|
var r, c;
|
|
578
578
|
return p(), v("div", null, [
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
t[0] || (t[0] =
|
|
583
|
-
|
|
579
|
+
o("p", Sn, _((r = e.pkg) == null ? void 0 : r.description), 1),
|
|
580
|
+
o("div", zn, [
|
|
581
|
+
o("div", Vn, [
|
|
582
|
+
t[0] || (t[0] = j(" Firmware (hw): ", -1)),
|
|
583
|
+
o("span", Tn, _(n.value), 1)
|
|
584
584
|
]),
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
t[1] || (t[1] =
|
|
588
|
-
|
|
585
|
+
o("div", En, [
|
|
586
|
+
o("div", Ln, [
|
|
587
|
+
t[1] || (t[1] = j(" Version (web): ", -1)),
|
|
588
|
+
o("span", Bn, _((c = e.pkg) == null ? void 0 : c.version), 1)
|
|
589
589
|
])
|
|
590
590
|
]),
|
|
591
|
-
t[3] || (t[3] =
|
|
592
|
-
|
|
593
|
-
t[2] || (t[2] =
|
|
594
|
-
|
|
591
|
+
t[3] || (t[3] = o("div", { class: "flex-auto" }, null, -1)),
|
|
592
|
+
o("div", Mn, [
|
|
593
|
+
t[2] || (t[2] = j(" ID: ", -1)),
|
|
594
|
+
o("span", An, _(e.id.toString(16)), 1)
|
|
595
595
|
])
|
|
596
596
|
]),
|
|
597
|
-
t[4] || (t[4] =
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
k(
|
|
597
|
+
t[4] || (t[4] = o("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
|
|
598
|
+
o("div", Dn, [
|
|
599
|
+
o("div", In, [
|
|
600
|
+
k(s.$slots, "links", { links: l.value })
|
|
601
601
|
])
|
|
602
602
|
])
|
|
603
603
|
]);
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
}),
|
|
606
|
+
}), jn = ["onClick"], Hn = { class: "mr-2" }, Pn = { class: "text-sm" }, Nn = { class: "text-gray-400 text-xs" }, On = {
|
|
607
607
|
key: 0,
|
|
608
608
|
class: "flex justify-center"
|
|
609
|
-
},
|
|
609
|
+
}, Kn = { class: "flex justify-end mt-4" }, pa = /* @__PURE__ */ S({
|
|
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 l = n, s = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => l("select", c), r = (c) => l("scan", c);
|
|
617
617
|
return (c, d) => {
|
|
618
|
-
const m =
|
|
618
|
+
const m = dt, a = Ce, i = ct, u = A;
|
|
619
619
|
return p(), v("div", null, [
|
|
620
|
-
g(
|
|
620
|
+
g(a, {
|
|
621
621
|
items: e.items,
|
|
622
622
|
class: "bg-transparent! ring-0!"
|
|
623
623
|
}, {
|
|
624
624
|
default: x(({ item: f }) => [
|
|
625
|
-
|
|
625
|
+
o("div", {
|
|
626
626
|
class: "flex items-center w-full",
|
|
627
627
|
onClick: (b) => t(f)
|
|
628
628
|
}, [
|
|
629
|
-
|
|
630
|
-
g(m,
|
|
629
|
+
o("div", Hn, [
|
|
630
|
+
g(m, F(U(f)), null, 16)
|
|
631
631
|
]),
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
o("div", null, [
|
|
633
|
+
o("div", Pn, _(f.ssid), 1),
|
|
634
|
+
o("div", Nn, _(c.$t("security")) + " : " + _(s[f.encryptionType] || "unknown"), 1)
|
|
635
635
|
])
|
|
636
|
-
], 8,
|
|
636
|
+
], 8, jn)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
}, 8, ["items"]),
|
|
640
|
-
e.items.length ?
|
|
640
|
+
e.items.length ? V("", !0) : (p(), v("div", On, [
|
|
641
641
|
g(i, { class: "text-primary" })
|
|
642
642
|
])),
|
|
643
|
-
|
|
643
|
+
o("div", Kn, [
|
|
644
644
|
g(u, {
|
|
645
645
|
color: "blue",
|
|
646
646
|
onClick: r
|
|
647
647
|
}, {
|
|
648
648
|
default: x(() => [
|
|
649
|
-
|
|
649
|
+
j(_(c.$t("scan")), 1)
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
652
|
})
|
|
@@ -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
|
-
}),
|
|
657
|
+
}), Fn = { class: "md:flex items-center mb-4" }, Un = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Rn = { class: "md:max-w-50" }, Wn = { class: "flex items-center mb-4" }, qn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Gn = { class: "flex items-center mb-4" }, Jn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, fa = /* @__PURE__ */ S({
|
|
658
658
|
__name: "BlockService",
|
|
659
659
|
props: {
|
|
660
660
|
locale: {},
|
|
@@ -662,47 +662,47 @@ 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 l = n, s = (r) => l("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 =
|
|
670
|
+
const d = le, m = A;
|
|
671
671
|
return p(), v(B, null, [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
o("div", Fn, [
|
|
673
|
+
o("div", Un, _(r.$t("selectLang")), 1),
|
|
674
|
+
o("div", Rn, [
|
|
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: s
|
|
680
680
|
}, null, 8, ["model-value", "label", "items"])
|
|
681
681
|
])
|
|
682
682
|
]),
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
o("div", Wn, [
|
|
684
|
+
o("div", qn, _(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] = (a) => l("reboot", a))
|
|
690
690
|
}, {
|
|
691
691
|
default: x(() => [
|
|
692
|
-
|
|
692
|
+
j(_(r.$t("reboot")), 1)
|
|
693
693
|
]),
|
|
694
694
|
_: 1
|
|
695
695
|
})
|
|
696
696
|
]),
|
|
697
|
-
|
|
698
|
-
|
|
697
|
+
o("div", Gn, [
|
|
698
|
+
o("div", Jn, _(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] = (a) => l("reset", a))
|
|
703
703
|
}, {
|
|
704
704
|
default: x(() => [
|
|
705
|
-
|
|
705
|
+
j(_(r.$t("reset")), 1)
|
|
706
706
|
]),
|
|
707
707
|
_: 1
|
|
708
708
|
})
|
|
@@ -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
|
-
}),
|
|
713
|
+
}), Zn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, Xn = { class: "flex flex-col w-full items-center gap-2" }, Yn = ["title"], Qn = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, es = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ts = { class: "flex justify-between w-full text-xs" }, ns = { class: "text-gray-500 dark:text-white/50" }, ss = { class: "text-sm" }, ls = { class: "text-gray-500 dark:text-white/50 text-left" }, os = { class: "text-right text-xs" }, va = /* @__PURE__ */ S({
|
|
714
714
|
__name: "BlockStatus",
|
|
715
715
|
props: {
|
|
716
716
|
pkg: {},
|
|
@@ -725,66 +725,66 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
725
725
|
},
|
|
726
726
|
setup(e) {
|
|
727
727
|
const n = L(e.uptime);
|
|
728
|
-
let
|
|
729
|
-
const
|
|
728
|
+
let l = null;
|
|
729
|
+
const s = M(() => e.firmware.join(".")), t = M(() => [
|
|
730
730
|
{ name: "used", value: pe(e.usedBytes) },
|
|
731
731
|
{ name: "available", value: pe(e.totalBytes - e.usedBytes) },
|
|
732
732
|
{ name: "total", value: pe(e.totalBytes) }
|
|
733
|
-
]), r =
|
|
733
|
+
]), r = M(() => {
|
|
734
734
|
var m;
|
|
735
735
|
return [
|
|
736
|
-
{ name: "uptime", value:
|
|
736
|
+
{ name: "uptime", value: ft(n.value) },
|
|
737
737
|
{ name: "id", value: `${e.id.toString(16)} (${e.id})` },
|
|
738
|
-
{ name: "firmware", value:
|
|
738
|
+
{ name: "firmware", value: s.value },
|
|
739
739
|
{ name: "version", value: (m = e.pkg) == null ? void 0 : m.version }
|
|
740
740
|
];
|
|
741
|
-
}), c =
|
|
742
|
-
n.value++,
|
|
741
|
+
}), c = M(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
|
|
742
|
+
n.value++, l = setTimeout(d, 1e3);
|
|
743
743
|
};
|
|
744
744
|
return Q(() => {
|
|
745
745
|
d();
|
|
746
|
-
}),
|
|
747
|
-
n.value = 0,
|
|
748
|
-
}), (m,
|
|
746
|
+
}), ke(() => {
|
|
747
|
+
n.value = 0, l && clearTimeout(l);
|
|
748
|
+
}), (m, a) => {
|
|
749
749
|
var i, u, f;
|
|
750
|
-
return p(), v("div",
|
|
751
|
-
|
|
752
|
-
|
|
750
|
+
return p(), v("div", Zn, [
|
|
751
|
+
o("div", Xn, [
|
|
752
|
+
o("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
|
+
o("div", Qn, _(c.value) + "%", 1),
|
|
757
|
+
o("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
|
+
o("div", es, _(c.value) + "%", 1)
|
|
762
762
|
], 4)
|
|
763
|
-
], 8,
|
|
764
|
-
|
|
763
|
+
], 8, Yn),
|
|
764
|
+
o("div", ts, [
|
|
765
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
|
+
o("div", ns, [
|
|
770
770
|
k(m.$slots, "name", { item: b })
|
|
771
771
|
]),
|
|
772
|
-
|
|
772
|
+
o("div", null, _(b.value), 1)
|
|
773
773
|
]))), 128))
|
|
774
774
|
])
|
|
775
775
|
]),
|
|
776
|
-
|
|
776
|
+
o("div", ss, [
|
|
777
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
|
+
o("div", ls, [
|
|
782
782
|
k(m.$slots, "name", { item: b })
|
|
783
783
|
]),
|
|
784
|
-
|
|
784
|
+
o("div", os, _(b.value), 1)
|
|
785
785
|
]))), 128))
|
|
786
786
|
]),
|
|
787
|
-
|
|
787
|
+
o("div", null, [
|
|
788
788
|
k(m.$slots, "default", {
|
|
789
789
|
home: (i = e.pkg) == null ? void 0 : i.homepage,
|
|
790
790
|
repo: (f = (u = e.pkg) == null ? void 0 : u.repository) == null ? void 0 : f.url
|
|
@@ -793,54 +793,54 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
793
793
|
]);
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
}),
|
|
796
|
+
}), as = { class: "flex items-center cursor-pointer" }, is = /* @__PURE__ */ S({
|
|
797
797
|
__name: "VFile",
|
|
798
798
|
emits: ["change"],
|
|
799
799
|
setup(e, { emit: n }) {
|
|
800
|
-
const
|
|
800
|
+
const l = n, s = async (t) => {
|
|
801
801
|
const r = t.target;
|
|
802
|
-
r.files &&
|
|
802
|
+
r.files && l("change", r.files);
|
|
803
803
|
};
|
|
804
|
-
return (t, r) => (p(), v("label",
|
|
805
|
-
|
|
804
|
+
return (t, r) => (p(), v("label", as, [
|
|
805
|
+
o("input", H({
|
|
806
806
|
type: "file",
|
|
807
807
|
class: "hidden"
|
|
808
|
-
}, t.$attrs, { onChange:
|
|
808
|
+
}, t.$attrs, { onChange: s }), null, 16),
|
|
809
809
|
k(t.$slots, "default")
|
|
810
810
|
]));
|
|
811
811
|
}
|
|
812
|
-
}),
|
|
812
|
+
}), rs = { class: "md:flex" }, ds = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, ha = /* @__PURE__ */ S({
|
|
813
813
|
__name: "BlockUpdate",
|
|
814
814
|
emits: ["update"],
|
|
815
815
|
setup(e, { emit: n }) {
|
|
816
|
-
const
|
|
817
|
-
const
|
|
816
|
+
const l = n, s = nt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((m) => `${m.name} (${pe(m.size)})`).join("") : "", r = (d, m) => {
|
|
817
|
+
const a = 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
|
+
a.append(`file[${i}]`, u, m);
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return a;
|
|
824
824
|
}, c = (d, m) => {
|
|
825
825
|
if (!m) return;
|
|
826
|
-
const
|
|
827
|
-
|
|
826
|
+
const a = r(m, d);
|
|
827
|
+
a && l("update", d, a);
|
|
828
828
|
};
|
|
829
829
|
return (d, m) => {
|
|
830
|
-
const
|
|
830
|
+
const a = A;
|
|
831
831
|
return p(), v("div", null, [
|
|
832
|
-
(p(!0), v(B, null, N(
|
|
832
|
+
(p(!0), v(B, null, N(s, (i, u) => (p(), v("div", {
|
|
833
833
|
key: u,
|
|
834
834
|
class: "mb-4 flex items-center"
|
|
835
835
|
}, [
|
|
836
|
-
g(
|
|
836
|
+
g(is, {
|
|
837
837
|
accept: ".bin",
|
|
838
|
-
onChange: (f) =>
|
|
838
|
+
onChange: (f) => s[u] = f,
|
|
839
839
|
class: "flex-auto"
|
|
840
840
|
}, {
|
|
841
841
|
default: x(() => [
|
|
842
|
-
|
|
843
|
-
|
|
842
|
+
o("div", rs, [
|
|
843
|
+
o("h6", ds, _(u) + ":", 1),
|
|
844
844
|
k(d.$slots, "default", {
|
|
845
845
|
file: t(i)
|
|
846
846
|
})
|
|
@@ -848,14 +848,14 @@ 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(a, {
|
|
852
852
|
class: "min-w-[100px]",
|
|
853
853
|
color: "blue",
|
|
854
854
|
disabled: !i,
|
|
855
855
|
onClick: (f) => c(`${u}.bin`, i)
|
|
856
856
|
}, {
|
|
857
857
|
default: x(() => [
|
|
858
|
-
|
|
858
|
+
j(_(d.$t("btnUpdate")), 1)
|
|
859
859
|
]),
|
|
860
860
|
_: 1
|
|
861
861
|
}, 8, ["disabled", "onClick"])
|
|
@@ -863,42 +863,42 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
|
|
|
863
863
|
]);
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
}),
|
|
866
|
+
}), cs = {
|
|
867
867
|
viewBox: "0 0 24 24",
|
|
868
868
|
width: "1.2em",
|
|
869
869
|
height: "1.2em"
|
|
870
870
|
};
|
|
871
|
-
function
|
|
872
|
-
return p(), v("svg",
|
|
873
|
-
|
|
871
|
+
function us(e, n) {
|
|
872
|
+
return p(), v("svg", cs, [...n[0] || (n[0] = [
|
|
873
|
+
o("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
|
|
879
|
+
const Ue = O({ name: "ri-arrow-drop-right-line", render: us }), ms = { class: "flex items-center gap-1.5" }, ga = /* @__PURE__ */ S({
|
|
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 l = n, s = (t) => l("click", t);
|
|
887
887
|
return (t, r) => {
|
|
888
|
-
const c =
|
|
888
|
+
const c = Ue;
|
|
889
889
|
return p(), v("nav", null, [
|
|
890
|
-
|
|
890
|
+
o("ol", ms, [
|
|
891
891
|
(p(!0), v(B, null, N(e.items, (d, m) => (p(), v("li", {
|
|
892
892
|
key: m,
|
|
893
|
-
class:
|
|
893
|
+
class: E(["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
|
-
(p(), I(
|
|
896
|
+
(p(), I(ue(d.path ? "a" : "span"), {
|
|
897
897
|
href: d.path,
|
|
898
|
-
onClick: (
|
|
898
|
+
onClick: (a) => s(d)
|
|
899
899
|
}, {
|
|
900
900
|
default: x(() => [
|
|
901
|
-
|
|
901
|
+
j(_(d.name), 1)
|
|
902
902
|
]),
|
|
903
903
|
_: 2
|
|
904
904
|
}, 1032, ["href", "onClick"]))
|
|
@@ -906,29 +906,29 @@ const Re = O({ name: "ri-arrow-drop-right-line", render: fl }), vl = { class: "f
|
|
|
906
906
|
d.path ? (p(), I(c, {
|
|
907
907
|
key: 0,
|
|
908
908
|
class: "rotate-270"
|
|
909
|
-
})) :
|
|
909
|
+
})) : V("", !0)
|
|
910
910
|
], 2))), 128))
|
|
911
911
|
])
|
|
912
912
|
]);
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
|
-
}),
|
|
915
|
+
}), ps = {
|
|
916
916
|
viewBox: "0 0 24 24",
|
|
917
917
|
width: "1.2em",
|
|
918
918
|
height: "1.2em"
|
|
919
919
|
};
|
|
920
|
-
function
|
|
921
|
-
return p(), v("svg",
|
|
922
|
-
|
|
920
|
+
function fs(e, n) {
|
|
921
|
+
return p(), v("svg", ps, [...n[0] || (n[0] = [
|
|
922
|
+
o("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 vs = O({ name: "ri-file-copy2-line", render: fs }), hs = { class: "flex-auto flex justify-between" }, gs = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, bs = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, xs = {
|
|
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
|
+
}, ys = { class: "min-h-60 relative" }, _s = { class: "pt-6" }, $s = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, ks = { class: "text-center text-xl mt-4" }, ae = /* @__PURE__ */ S({
|
|
932
932
|
__name: "CardBase",
|
|
933
933
|
props: {
|
|
934
934
|
size: {},
|
|
@@ -948,46 +948,46 @@ const bl = O({ name: "ri-file-copy2-line", render: gl }), xl = { 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 l = e, s = n, t = L(!1), r = M(() => ["button", "dimmer"].includes(l.type || "") && l.value ? "text-amber-500" : "text-gray-400"), c = (u) => s("edit", u), d = (u) => s("clone", u), m = () => t.value = !0, a = (u) => s("open", u), i = (u) => {
|
|
952
|
+
t.value = !1, s("close", u);
|
|
953
953
|
};
|
|
954
954
|
return (u, f) => {
|
|
955
|
-
const b =
|
|
955
|
+
const b = Ke, h = vs;
|
|
956
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
|
+
o("div", hs, [
|
|
961
|
+
o("div", {
|
|
962
|
+
class: E([r.value, "size-8 animate-shake"])
|
|
963
963
|
}, [
|
|
964
|
-
k(u.$slots, "icon",
|
|
964
|
+
k(u.$slots, "icon", F(U(l)))
|
|
965
965
|
], 2),
|
|
966
|
-
k(u.$slots, "header",
|
|
966
|
+
k(u.$slots, "header", F(U(l)))
|
|
967
967
|
]),
|
|
968
|
-
|
|
969
|
-
k(u.$slots, "body",
|
|
970
|
-
|
|
971
|
-
k(u.$slots, "name",
|
|
972
|
-
|
|
968
|
+
o("div", null, [
|
|
969
|
+
k(u.$slots, "body", F(U(l)), () => [
|
|
970
|
+
o("h6", gs, [
|
|
971
|
+
k(u.$slots, "name", F(U(l)), () => [
|
|
972
|
+
j(_(l.name), 1)
|
|
973
973
|
])
|
|
974
974
|
]),
|
|
975
|
-
|
|
976
|
-
k(u.$slots, "value",
|
|
977
|
-
|
|
975
|
+
o("div", bs, [
|
|
976
|
+
k(u.$slots, "value", F(U(l)), () => [
|
|
977
|
+
j(_(l.valueTo || l.value), 1)
|
|
978
978
|
])
|
|
979
979
|
])
|
|
980
980
|
])
|
|
981
981
|
]),
|
|
982
|
-
|
|
983
|
-
k(u.$slots, "icon",
|
|
984
|
-
])) :
|
|
982
|
+
l.icon ? (p(), v("div", xs, [
|
|
983
|
+
k(u.$slots, "icon", F(U(l)))
|
|
984
|
+
])) : V("", !0),
|
|
985
985
|
t.value ? (p(), I(Oe, {
|
|
986
986
|
key: 1,
|
|
987
|
-
size:
|
|
987
|
+
size: l.size || "sm",
|
|
988
988
|
title: e.name,
|
|
989
989
|
onClose: i,
|
|
990
|
-
onOpen:
|
|
990
|
+
onOpen: a
|
|
991
991
|
}, {
|
|
992
992
|
"header-btn": x(() => [
|
|
993
993
|
g(A, {
|
|
@@ -1010,41 +1010,41 @@ const bl = O({ name: "ri-file-copy2-line", render: gl }), xl = { class: "flex-au
|
|
|
1010
1010
|
})
|
|
1011
1011
|
]),
|
|
1012
1012
|
default: x(() => [
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
k(u.$slots, "dialog-name",
|
|
1017
|
-
|
|
1013
|
+
o("div", ys, [
|
|
1014
|
+
o("div", _s, [
|
|
1015
|
+
o("h3", $s, [
|
|
1016
|
+
k(u.$slots, "dialog-name", F(U(l)), () => [
|
|
1017
|
+
j(_(l.name), 1)
|
|
1018
1018
|
])
|
|
1019
1019
|
]),
|
|
1020
|
-
k(u.$slots, "dialog",
|
|
1021
|
-
|
|
1022
|
-
k(u.$slots, "dialog-value",
|
|
1023
|
-
|
|
1020
|
+
k(u.$slots, "dialog", F(U(l))),
|
|
1021
|
+
o("p", ks, [
|
|
1022
|
+
k(u.$slots, "dialog-value", F(U(l)), () => [
|
|
1023
|
+
j(_(l.valueTo || l.value), 1)
|
|
1024
1024
|
])
|
|
1025
1025
|
])
|
|
1026
1026
|
])
|
|
1027
1027
|
])
|
|
1028
1028
|
]),
|
|
1029
1029
|
_: 3
|
|
1030
|
-
}, 8, ["size", "title"])) :
|
|
1030
|
+
}, 8, ["size", "title"])) : V("", !0)
|
|
1031
1031
|
]);
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), ws = {
|
|
1035
1035
|
viewBox: "0 0 24 24",
|
|
1036
1036
|
width: "1.2em",
|
|
1037
1037
|
height: "1.2em"
|
|
1038
1038
|
};
|
|
1039
|
-
function
|
|
1040
|
-
return p(), v("svg",
|
|
1041
|
-
|
|
1039
|
+
function Cs(e, n) {
|
|
1040
|
+
return p(), v("svg", ws, [...n[0] || (n[0] = [
|
|
1041
|
+
o("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 Ss = O({ name: "ri-shut-down-line", render: Cs }), zs = { class: "flex justify-end" }, Vs = { class: "flex justify-center py-4" }, ba = /* @__PURE__ */ S({
|
|
1048
1048
|
__name: "CardButton",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
size: {},
|
|
@@ -1064,26 +1064,26 @@ const Vl = O({ name: "ri-shut-down-line", render: Sl }), Tl = { class: "flex jus
|
|
|
1064
1064
|
},
|
|
1065
1065
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1066
1066
|
setup(e, { emit: n }) {
|
|
1067
|
-
const
|
|
1067
|
+
const l = e, s = n, t = ({ opts: c = {} }) => {
|
|
1068
1068
|
const { disabled: d } = c;
|
|
1069
1069
|
return { disabled: d };
|
|
1070
|
-
}, r = () =>
|
|
1070
|
+
}, r = () => s("setState", !l.value);
|
|
1071
1071
|
return (c, d) => {
|
|
1072
|
-
const m =
|
|
1073
|
-
return p(), I(
|
|
1074
|
-
onClick: d[0] || (d[0] = (
|
|
1075
|
-
onEdit: d[1] || (d[1] = (
|
|
1076
|
-
onClone: d[2] || (d[2] = (
|
|
1072
|
+
const m = Ss;
|
|
1073
|
+
return p(), I(ae, H(l, {
|
|
1074
|
+
onClick: d[0] || (d[0] = (a) => s("click", a)),
|
|
1075
|
+
onEdit: d[1] || (d[1] = (a) => s("edit", a)),
|
|
1076
|
+
onClone: d[2] || (d[2] = (a) => s("clone", a))
|
|
1077
1077
|
}), {
|
|
1078
|
-
icon: x((
|
|
1079
|
-
k(c.$slots, "icon",
|
|
1078
|
+
icon: x((a) => [
|
|
1079
|
+
k(c.$slots, "icon", F(U(a)))
|
|
1080
1080
|
]),
|
|
1081
|
-
header: x((
|
|
1082
|
-
|
|
1083
|
-
g(A,
|
|
1081
|
+
header: x((a) => [
|
|
1082
|
+
o("div", zs, [
|
|
1083
|
+
g(A, H(t(a), {
|
|
1084
1084
|
type: "icon",
|
|
1085
|
-
class:
|
|
1086
|
-
onClick:
|
|
1085
|
+
class: l.value ? "text-amber-500" : "text-gray-500",
|
|
1086
|
+
onClick: R(r, ["stop"])
|
|
1087
1087
|
}), {
|
|
1088
1088
|
default: x(() => [
|
|
1089
1089
|
g(m, { class: "size-8" })
|
|
@@ -1092,12 +1092,12 @@ const Vl = O({ name: "ri-shut-down-line", render: Sl }), Tl = { class: "flex jus
|
|
|
1092
1092
|
}, 16, ["class"])
|
|
1093
1093
|
])
|
|
1094
1094
|
]),
|
|
1095
|
-
dialog: x((
|
|
1096
|
-
|
|
1097
|
-
g(A,
|
|
1095
|
+
dialog: x((a) => [
|
|
1096
|
+
o("div", Vs, [
|
|
1097
|
+
g(A, H(t(a), {
|
|
1098
1098
|
type: "icon",
|
|
1099
|
-
class: ["size-18",
|
|
1100
|
-
onClick:
|
|
1099
|
+
class: ["size-18", l.value ? "text-amber-500" : "text-gray-500"],
|
|
1100
|
+
onClick: R(r, ["stop"])
|
|
1101
1101
|
}), {
|
|
1102
1102
|
default: x(() => [
|
|
1103
1103
|
g(m, { class: "size-16" })
|
|
@@ -1110,20 +1110,20 @@ const Vl = O({ name: "ri-shut-down-line", render: Sl }), Tl = { class: "flex jus
|
|
|
1110
1110
|
}, 16);
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
}),
|
|
1113
|
+
}), Ts = {
|
|
1114
1114
|
viewBox: "0 0 24 24",
|
|
1115
1115
|
width: "1.2em",
|
|
1116
1116
|
height: "1.2em"
|
|
1117
1117
|
};
|
|
1118
|
-
function
|
|
1119
|
-
return p(), v("svg",
|
|
1120
|
-
|
|
1118
|
+
function Es(e, n) {
|
|
1119
|
+
return p(), v("svg", Ts, [...n[0] || (n[0] = [
|
|
1120
|
+
o("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 Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-center relative mx-2 my-6" }, xa = /* @__PURE__ */ S({
|
|
1127
1127
|
__name: "CardDate",
|
|
1128
1128
|
props: {
|
|
1129
1129
|
size: {},
|
|
@@ -1143,41 +1143,41 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1143
1143
|
},
|
|
1144
1144
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1145
1145
|
setup(e, { emit: n }) {
|
|
1146
|
-
const
|
|
1146
|
+
const l = e, s = n, t = Ie("time"), r = (a) => new Date(+a * 1e3).toISOString().slice(0, 16), c = (a) => {
|
|
1147
1147
|
var u;
|
|
1148
|
-
const i = (u =
|
|
1149
|
-
i &&
|
|
1150
|
-
}, d = ({ name:
|
|
1148
|
+
const i = (u = a == null ? void 0 : a.target) == null ? void 0 : u.valueAsNumber;
|
|
1149
|
+
i && s("setState", i / 1e3);
|
|
1150
|
+
}, d = ({ name: a, value: i, opts: u = {} }) => {
|
|
1151
1151
|
const { disabled: f } = u;
|
|
1152
|
-
return { label:
|
|
1152
|
+
return { label: a, modelValue: r(i), disabled: f };
|
|
1153
1153
|
}, m = () => {
|
|
1154
1154
|
var i, u;
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1155
|
+
const a = (u = (i = t.value) == null ? void 0 : i.$el) == null ? void 0 : u.querySelector("input");
|
|
1156
|
+
a != null && a.showPicker && a.showPicker();
|
|
1157
1157
|
};
|
|
1158
|
-
return (
|
|
1159
|
-
const u =
|
|
1160
|
-
return p(), I(
|
|
1161
|
-
onClick: i[0] || (i[0] = (f) =>
|
|
1162
|
-
onEdit: i[1] || (i[1] = (f) =>
|
|
1163
|
-
onClone: i[2] || (i[2] = (f) =>
|
|
1158
|
+
return (a, i) => {
|
|
1159
|
+
const u = Ls;
|
|
1160
|
+
return p(), I(ae, H(l, {
|
|
1161
|
+
onClick: i[0] || (i[0] = (f) => s("click", f)),
|
|
1162
|
+
onEdit: i[1] || (i[1] = (f) => s("edit", f)),
|
|
1163
|
+
onClone: i[2] || (i[2] = (f) => s("clone", f))
|
|
1164
1164
|
}), {
|
|
1165
1165
|
icon: x((f) => [
|
|
1166
|
-
k(
|
|
1166
|
+
k(a.$slots, "icon", F(U(f)))
|
|
1167
1167
|
]),
|
|
1168
1168
|
header: x((f) => [
|
|
1169
|
-
|
|
1169
|
+
o("div", null, [
|
|
1170
1170
|
g(A, {
|
|
1171
1171
|
type: "icon",
|
|
1172
1172
|
class: "text-gray-500",
|
|
1173
|
-
onClick:
|
|
1173
|
+
onClick: R(m, ["stop"])
|
|
1174
1174
|
}, {
|
|
1175
1175
|
default: x(() => [
|
|
1176
1176
|
g(u, { class: "size-7" })
|
|
1177
1177
|
]),
|
|
1178
1178
|
_: 1
|
|
1179
1179
|
}),
|
|
1180
|
-
g(J,
|
|
1180
|
+
g(J, H({
|
|
1181
1181
|
ref_key: "time",
|
|
1182
1182
|
ref: t
|
|
1183
1183
|
}, d(f), {
|
|
@@ -1189,8 +1189,8 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1189
1189
|
])
|
|
1190
1190
|
]),
|
|
1191
1191
|
dialog: x((f) => [
|
|
1192
|
-
|
|
1193
|
-
g(J,
|
|
1192
|
+
o("div", Bs, [
|
|
1193
|
+
g(J, H(d(f), {
|
|
1194
1194
|
type: "datetime-local",
|
|
1195
1195
|
onChange: c
|
|
1196
1196
|
}), null, 16)
|
|
@@ -1200,15 +1200,15 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1200
1200
|
}, 16);
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
}),
|
|
1204
|
-
class: /* @__PURE__ */
|
|
1205
|
-
},
|
|
1203
|
+
}), Ms = { class: "flex justify-end" }, As = { class: "flex justify-end" }, Ds = {
|
|
1204
|
+
class: /* @__PURE__ */ E("text-blue-600 dark:text-blue-400")
|
|
1205
|
+
}, Is = {
|
|
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
|
+
}, js = ["stroke-dashoffset"], Hs = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, ya = /* @__PURE__ */ S({
|
|
1212
1212
|
__name: "CardDimmer",
|
|
1213
1213
|
props: {
|
|
1214
1214
|
size: {},
|
|
@@ -1228,31 +1228,31 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1228
1228
|
},
|
|
1229
1229
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1230
1230
|
setup(e, { emit: n }) {
|
|
1231
|
-
const
|
|
1231
|
+
const l = e, s = 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
1232
|
const { min: f = 0, max: b = 255, step: h = 1, disabled: y } = u || {};
|
|
1233
1233
|
return { min: f, max: b, step: h, value: i, disabled: !!y, class: y ? "" : "cursor-pointer" };
|
|
1234
|
-
}, m = (i) =>
|
|
1235
|
-
+i != 0 ? (t.value = +i,
|
|
1234
|
+
}, m = (i) => s("setState", +i.target.value || 0), a = ({ value: i }) => {
|
|
1235
|
+
+i != 0 ? (t.value = +i, s("setState", 0)) : s("setState", i ? 0 : t.value || 255);
|
|
1236
1236
|
};
|
|
1237
|
-
return (i, u) => (p(), I(
|
|
1238
|
-
onClick: u[0] || (u[0] = (f) =>
|
|
1239
|
-
onEdit: u[1] || (u[1] = (f) =>
|
|
1240
|
-
onClone: u[2] || (u[2] = (f) =>
|
|
1237
|
+
return (i, u) => (p(), I(ae, H(l, {
|
|
1238
|
+
onClick: u[0] || (u[0] = (f) => s("click", f)),
|
|
1239
|
+
onEdit: u[1] || (u[1] = (f) => s("edit", f)),
|
|
1240
|
+
onClone: u[2] || (u[2] = (f) => s("clone", f))
|
|
1241
1241
|
}), {
|
|
1242
1242
|
icon: x((f) => [
|
|
1243
|
-
k(i.$slots, "icon",
|
|
1243
|
+
k(i.$slots, "icon", F(U(f)))
|
|
1244
1244
|
]),
|
|
1245
1245
|
header: x((f) => [
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
g(A,
|
|
1246
|
+
o("div", Ms, [
|
|
1247
|
+
o("div", As, [
|
|
1248
|
+
g(A, H(d(f), {
|
|
1249
1249
|
type: "icon",
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: R((b) => a(f), ["stop"])
|
|
1251
1251
|
}), {
|
|
1252
1252
|
default: x(() => [
|
|
1253
|
-
|
|
1254
|
-
(p(), v("svg",
|
|
1255
|
-
u[3] || (u[3] =
|
|
1253
|
+
o("div", Ds, [
|
|
1254
|
+
(p(), v("svg", Is, [
|
|
1255
|
+
u[3] || (u[3] = o("circle", {
|
|
1256
1256
|
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
1257
1257
|
r: "30",
|
|
1258
1258
|
cx: "30",
|
|
@@ -1260,7 +1260,7 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1260
1260
|
fill: "transparent",
|
|
1261
1261
|
"stroke-width": "10"
|
|
1262
1262
|
}, null, -1)),
|
|
1263
|
-
|
|
1263
|
+
o("circle", {
|
|
1264
1264
|
r: "30",
|
|
1265
1265
|
cx: "30",
|
|
1266
1266
|
cy: "30",
|
|
@@ -1270,7 +1270,7 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1270
1270
|
"stroke-dashoffset": c(f),
|
|
1271
1271
|
fill: "transparent",
|
|
1272
1272
|
"stroke-dasharray": "187"
|
|
1273
|
-
}, null, 8,
|
|
1273
|
+
}, null, 8, js)
|
|
1274
1274
|
]))
|
|
1275
1275
|
])
|
|
1276
1276
|
]),
|
|
@@ -1280,16 +1280,16 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1280
1280
|
])
|
|
1281
1281
|
]),
|
|
1282
1282
|
dialog: x((f) => [
|
|
1283
|
-
|
|
1284
|
-
class:
|
|
1283
|
+
o("div", {
|
|
1284
|
+
class: E(["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] = o("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
|
+
o("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
1289
|
style: ve(`width: ${r(f)}%`)
|
|
1290
1290
|
}, null, 4),
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
o("div", Hs, _(r(f)) + " %", 1),
|
|
1292
|
+
o("input", H({ 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 Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1298
1298
|
_: 3
|
|
1299
1299
|
}, 16));
|
|
1300
1300
|
}
|
|
1301
|
-
}),
|
|
1301
|
+
}), _a = /* @__PURE__ */ S({
|
|
1302
1302
|
__name: "CardInfo",
|
|
1303
1303
|
props: {
|
|
1304
1304
|
size: {},
|
|
@@ -1318,14 +1318,14 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { 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) => (p(), I(
|
|
1323
|
-
onClick: r[0] || (r[0] = (c) =>
|
|
1324
|
-
onEdit: r[1] || (r[1] = (c) =>
|
|
1325
|
-
onClone: r[2] || (r[2] = (c) =>
|
|
1321
|
+
const l = e, s = n;
|
|
1322
|
+
return (t, r) => (p(), I(ae, H(l, {
|
|
1323
|
+
onClick: r[0] || (r[0] = (c) => s("click", c)),
|
|
1324
|
+
onEdit: r[1] || (r[1] = (c) => s("edit", c)),
|
|
1325
|
+
onClone: r[2] || (r[2] = (c) => s("clone", c))
|
|
1326
1326
|
}), {
|
|
1327
1327
|
icon: x((c) => [
|
|
1328
|
-
k(t.$slots, "icon",
|
|
1328
|
+
k(t.$slots, "icon", F(U(c)))
|
|
1329
1329
|
]),
|
|
1330
1330
|
default: x(() => [
|
|
1331
1331
|
k(t.$slots, "dialog")
|
|
@@ -1333,7 +1333,7 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1333
1333
|
_: 3
|
|
1334
1334
|
}, 16));
|
|
1335
1335
|
}
|
|
1336
|
-
}),
|
|
1336
|
+
}), Ps = { class: "flex justify-center relative mx-2 my-6" }, $a = /* @__PURE__ */ S({
|
|
1337
1337
|
__name: "CardInput",
|
|
1338
1338
|
props: {
|
|
1339
1339
|
size: {},
|
|
@@ -1353,28 +1353,28 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { 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 l = e, s = n, t = L(l.value || ""), r = ({ name: d, opts: m = {} }) => {
|
|
1357
|
+
const { disabled: a } = m;
|
|
1358
|
+
return { label: d, disabled: a };
|
|
1359
|
+
}, c = (d) => s("setState", d.target.value);
|
|
1360
|
+
return oe(
|
|
1361
|
+
() => l.value,
|
|
1362
1362
|
(d) => {
|
|
1363
1363
|
t.value = d;
|
|
1364
1364
|
}
|
|
1365
1365
|
), (d, m) => {
|
|
1366
|
-
const
|
|
1367
|
-
return p(), I(
|
|
1368
|
-
onClick: m[1] || (m[1] = (i) =>
|
|
1369
|
-
onEdit: m[2] || (m[2] = (i) =>
|
|
1370
|
-
onClone: m[3] || (m[3] = (i) =>
|
|
1366
|
+
const a = Ue;
|
|
1367
|
+
return p(), I(ae, H(l, {
|
|
1368
|
+
onClick: m[1] || (m[1] = (i) => s("click", i)),
|
|
1369
|
+
onEdit: m[2] || (m[2] = (i) => s("edit", i)),
|
|
1370
|
+
onClone: m[3] || (m[3] = (i) => s("clone", i))
|
|
1371
1371
|
}), {
|
|
1372
1372
|
icon: x((i) => [
|
|
1373
|
-
k(d.$slots, "icon",
|
|
1373
|
+
k(d.$slots, "icon", F(U(i)))
|
|
1374
1374
|
]),
|
|
1375
1375
|
dialog: x((i) => [
|
|
1376
|
-
|
|
1377
|
-
g(J,
|
|
1376
|
+
o("div", Ps, [
|
|
1377
|
+
g(J, H({
|
|
1378
1378
|
modelValue: t.value,
|
|
1379
1379
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => t.value = u)
|
|
1380
1380
|
}, r(i), {
|
|
@@ -1382,7 +1382,7 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1382
1382
|
onBlur: c
|
|
1383
1383
|
}), {
|
|
1384
1384
|
icon: x(() => [
|
|
1385
|
-
g(
|
|
1385
|
+
g(a, { class: "size-8" })
|
|
1386
1386
|
]),
|
|
1387
1387
|
_: 1
|
|
1388
1388
|
}, 16, ["modelValue"])
|
|
@@ -1392,20 +1392,20 @@ const Al = O({ name: "ri-time-line", render: Bl }), Dl = { class: "flex justify-
|
|
|
1392
1392
|
}, 16);
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
}),
|
|
1395
|
+
}), Ns = {
|
|
1396
1396
|
viewBox: "0 0 24 24",
|
|
1397
1397
|
width: "1.2em",
|
|
1398
1398
|
height: "1.2em"
|
|
1399
1399
|
};
|
|
1400
|
-
function
|
|
1401
|
-
return p(), v("svg",
|
|
1402
|
-
|
|
1400
|
+
function Os(e, n) {
|
|
1401
|
+
return p(), v("svg", Ns, [...n[0] || (n[0] = [
|
|
1402
|
+
o("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 Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify-center py-4" }, ka = /* @__PURE__ */ S({
|
|
1409
1409
|
__name: "CardList",
|
|
1410
1410
|
props: {
|
|
1411
1411
|
size: {},
|
|
@@ -1425,36 +1425,36 @@ const Fl = O({ name: "ri-list-check", render: Rl }), Wl = { 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 l = e, s = n, t = ({ value: d }) => s("setState", d), r = ({ opts: d, value: m }) => {
|
|
1429
|
+
var a;
|
|
1430
|
+
return Array.isArray(d == null ? void 0 : d.items) && ((a = d == null ? void 0 : d.items.find((i) => i.value == m)) == null ? void 0 : a.name) || m;
|
|
1431
|
+
}, c = ({ name: d, value: m, opts: a = {} }) => {
|
|
1432
1432
|
var b;
|
|
1433
|
-
const { items: i = [], disabled: u } =
|
|
1433
|
+
const { items: i = [], disabled: u } = a, f = ((b = i.find((h) => h.value == m)) == null ? void 0 : b.name) || m;
|
|
1434
1434
|
return { label: d, modelValue: f, items: i, disabled: !!u };
|
|
1435
1435
|
};
|
|
1436
1436
|
return (d, m) => {
|
|
1437
|
-
const
|
|
1438
|
-
return p(), I(
|
|
1439
|
-
onClick: m[1] || (m[1] = (i) =>
|
|
1440
|
-
onEdit: m[2] || (m[2] = (i) =>
|
|
1441
|
-
onClone: m[3] || (m[3] = (i) =>
|
|
1437
|
+
const a = Ks;
|
|
1438
|
+
return p(), I(ae, H(l, {
|
|
1439
|
+
onClick: m[1] || (m[1] = (i) => s("click", i)),
|
|
1440
|
+
onEdit: m[2] || (m[2] = (i) => s("edit", i)),
|
|
1441
|
+
onClone: m[3] || (m[3] = (i) => s("clone", i))
|
|
1442
1442
|
}), {
|
|
1443
1443
|
icon: x((i) => [
|
|
1444
|
-
k(d.$slots, "icon",
|
|
1444
|
+
k(d.$slots, "icon", F(U(i)))
|
|
1445
1445
|
]),
|
|
1446
1446
|
value: x((i) => [
|
|
1447
|
-
|
|
1447
|
+
j(_(r(i)), 1)
|
|
1448
1448
|
]),
|
|
1449
1449
|
"dialog-value": x((i) => [
|
|
1450
|
-
|
|
1450
|
+
j(_(r(i)), 1)
|
|
1451
1451
|
]),
|
|
1452
1452
|
header: x((i) => [
|
|
1453
|
-
|
|
1454
|
-
onClick: m[0] || (m[0] =
|
|
1453
|
+
o("div", {
|
|
1454
|
+
onClick: m[0] || (m[0] = R(() => {
|
|
1455
1455
|
}, ["prevent", "stop"]))
|
|
1456
1456
|
}, [
|
|
1457
|
-
g(
|
|
1457
|
+
g(le, H(c(i), {
|
|
1458
1458
|
"is-popup": "",
|
|
1459
1459
|
top: "0",
|
|
1460
1460
|
left: "-115px",
|
|
@@ -1464,10 +1464,10 @@ const Fl = O({ name: "ri-list-check", render: Rl }), Wl = { class: "flex justify
|
|
|
1464
1464
|
g(A, {
|
|
1465
1465
|
type: "icon",
|
|
1466
1466
|
class: "text-gray-500",
|
|
1467
|
-
onClick:
|
|
1467
|
+
onClick: R(u.click, ["stop"])
|
|
1468
1468
|
}, {
|
|
1469
1469
|
default: x(() => [
|
|
1470
|
-
g(
|
|
1470
|
+
g(a, { class: "size-6" })
|
|
1471
1471
|
]),
|
|
1472
1472
|
_: 1
|
|
1473
1473
|
}, 8, ["onClick"])
|
|
@@ -1477,8 +1477,8 @@ const Fl = O({ name: "ri-list-check", render: Rl }), Wl = { class: "flex justify
|
|
|
1477
1477
|
])
|
|
1478
1478
|
]),
|
|
1479
1479
|
dialog: x((i) => [
|
|
1480
|
-
|
|
1481
|
-
g(
|
|
1480
|
+
o("div", Fs, [
|
|
1481
|
+
g(le, H(c(i), {
|
|
1482
1482
|
top: "-50%",
|
|
1483
1483
|
left: "50%",
|
|
1484
1484
|
onChange: t
|
|
@@ -1489,33 +1489,33 @@ const Fl = O({ name: "ri-list-check", render: Rl }), Wl = { class: "flex justify
|
|
|
1489
1489
|
}, 16);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), Us = {
|
|
1493
1493
|
viewBox: "0 0 24 24",
|
|
1494
1494
|
width: "1.2em",
|
|
1495
1495
|
height: "1.2em"
|
|
1496
1496
|
};
|
|
1497
|
-
function
|
|
1498
|
-
return p(), v("svg",
|
|
1499
|
-
|
|
1497
|
+
function Rs(e, n) {
|
|
1498
|
+
return p(), v("svg", Us, [...n[0] || (n[0] = [
|
|
1499
|
+
o("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 Ws = O({ name: "ri-menu-search-line", render: Rs }), qs = {
|
|
1506
1506
|
viewBox: "0 0 24 24",
|
|
1507
1507
|
width: "1.2em",
|
|
1508
1508
|
height: "1.2em"
|
|
1509
1509
|
};
|
|
1510
|
-
function
|
|
1511
|
-
return p(), v("svg",
|
|
1512
|
-
|
|
1510
|
+
function Gs(e, n) {
|
|
1511
|
+
return p(), v("svg", qs, [...n[0] || (n[0] = [
|
|
1512
|
+
o("path", {
|
|
1513
1513
|
fill: "currentColor",
|
|
1514
1514
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
1515
1515
|
}, null, -1)
|
|
1516
1516
|
])]);
|
|
1517
1517
|
}
|
|
1518
|
-
const
|
|
1518
|
+
const he = O({ name: "ri-add-line", render: Gs }), Js = { class: "flex w-full relative" }, Zs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Xs = ["disabled"], Re = /* @__PURE__ */ S({
|
|
1519
1519
|
__name: "VTextWrapper",
|
|
1520
1520
|
props: {
|
|
1521
1521
|
active: { type: Boolean },
|
|
@@ -1525,66 +1525,66 @@ const ge = O({ name: "ri-add-line", render: Xl }), Yl = { class: "flex w-full re
|
|
|
1525
1525
|
},
|
|
1526
1526
|
emits: ["icon"],
|
|
1527
1527
|
setup(e, { emit: n }) {
|
|
1528
|
-
const
|
|
1528
|
+
const l = n, s = M(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = M(() => [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
|
-
const d =
|
|
1531
|
-
return p(), v("div",
|
|
1532
|
-
|
|
1533
|
-
class:
|
|
1530
|
+
const d = he;
|
|
1531
|
+
return p(), v("div", Js, [
|
|
1532
|
+
o("div", {
|
|
1533
|
+
class: E(["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
|
+
o("span", {
|
|
1536
|
+
class: E(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", s.value])
|
|
1537
1537
|
}, _(e.label), 3),
|
|
1538
|
-
|
|
1538
|
+
o("div", Zs, [
|
|
1539
1539
|
k(r.$slots, "default")
|
|
1540
1540
|
]),
|
|
1541
|
-
e.hideIcon ?
|
|
1541
|
+
e.hideIcon ? V("", !0) : (p(), v("button", {
|
|
1542
1542
|
key: 0,
|
|
1543
1543
|
disabled: e.disabled,
|
|
1544
|
-
class:
|
|
1545
|
-
onClick: c[0] || (c[0] = (m) =>
|
|
1544
|
+
class: E([{ "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) => l("icon", m))
|
|
1546
1546
|
}, [
|
|
1547
1547
|
k(r.$slots, "icon", {}, () => [
|
|
1548
1548
|
g(d, { class: "size-4" })
|
|
1549
1549
|
])
|
|
1550
|
-
], 10,
|
|
1550
|
+
], 10, Xs))
|
|
1551
1551
|
], 2)
|
|
1552
1552
|
]);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
|
-
}),
|
|
1555
|
+
}), Ys = {
|
|
1556
1556
|
viewBox: "0 0 24 24",
|
|
1557
1557
|
width: "1.2em",
|
|
1558
1558
|
height: "1.2em"
|
|
1559
1559
|
};
|
|
1560
|
-
function
|
|
1561
|
-
return p(), v("svg",
|
|
1562
|
-
|
|
1560
|
+
function Qs(e, n) {
|
|
1561
|
+
return p(), v("svg", Ys, [...n[0] || (n[0] = [
|
|
1562
|
+
o("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 el = O({ name: "ri-file-copy-line", render: Qs }), tl = {
|
|
1569
1569
|
viewBox: "0 0 24 24",
|
|
1570
1570
|
width: "1.2em",
|
|
1571
1571
|
height: "1.2em"
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1574
|
-
return p(), v("svg",
|
|
1575
|
-
|
|
1573
|
+
function nl(e, n) {
|
|
1574
|
+
return p(), v("svg", tl, [...n[0] || (n[0] = [
|
|
1575
|
+
o("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 sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "me-1"
|
|
1584
|
-
},
|
|
1584
|
+
}, al = { class: "dark:text-gray-300" }, il = { class: "flex gap-3 items-center z-10" }, rl = {
|
|
1585
1585
|
key: 0,
|
|
1586
1586
|
class: "flex ps-5"
|
|
1587
|
-
},
|
|
1587
|
+
}, dl = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ S({
|
|
1588
1588
|
__name: "VListObject",
|
|
1589
1589
|
props: {
|
|
1590
1590
|
items: { default: () => ({}) },
|
|
@@ -1593,82 +1593,82 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1593
1593
|
},
|
|
1594
1594
|
emits: ["click"],
|
|
1595
1595
|
setup(e, { emit: n }) {
|
|
1596
|
-
const
|
|
1596
|
+
const l = n, s = () => "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 } = bt(), a = (b) => {
|
|
1597
1597
|
t.value[b] = !t.value[b];
|
|
1598
1598
|
}, i = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`, f = (b, h) => {
|
|
1599
|
-
|
|
1599
|
+
l("click", { key: b, path: u(b), isObject: h });
|
|
1600
1600
|
};
|
|
1601
1601
|
return (b, h) => {
|
|
1602
|
-
const y =
|
|
1602
|
+
const y = sl, z = el, T = he;
|
|
1603
1603
|
return p(), v("ul", null, [
|
|
1604
1604
|
(p(!0), v(B, null, N(e.items, (w, P) => (p(), v("li", {
|
|
1605
1605
|
key: P,
|
|
1606
|
-
class:
|
|
1606
|
+
class: E(i(w) ? "" : `flex items-center ${s()}`)
|
|
1607
1607
|
}, [
|
|
1608
|
-
|
|
1609
|
-
class:
|
|
1610
|
-
onClick: (Z) =>
|
|
1608
|
+
o("div", {
|
|
1609
|
+
class: E(["flex items-center cursor-pointer ps-2 h-8", i(w) ? `${s()}` : ""]),
|
|
1610
|
+
onClick: (Z) => a(P)
|
|
1611
1611
|
}, [
|
|
1612
|
-
i(w) ? (p(), v("div",
|
|
1612
|
+
i(w) ? (p(), v("div", ol, [
|
|
1613
1613
|
g(y, { class: "size-5" })
|
|
1614
|
-
])) :
|
|
1615
|
-
|
|
1614
|
+
])) : V("", !0),
|
|
1615
|
+
o("div", al, _(P), 1),
|
|
1616
1616
|
q(m) ? (p(), I(A, {
|
|
1617
1617
|
key: 1,
|
|
1618
1618
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1619
1619
|
color: "transparent",
|
|
1620
1620
|
size: "sm",
|
|
1621
|
-
onClick:
|
|
1621
|
+
onClick: R((Z) => q(c)(u(P)), ["stop"])
|
|
1622
1622
|
}, {
|
|
1623
1623
|
default: x(() => [
|
|
1624
|
-
g(
|
|
1624
|
+
g(z, { class: "size-5" })
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 1
|
|
1627
|
-
}, 8, ["onClick"])) :
|
|
1627
|
+
}, 8, ["onClick"])) : V("", !0),
|
|
1628
1628
|
q(r) === u(P) ? (p(), v("span", {
|
|
1629
1629
|
key: 2,
|
|
1630
|
-
class:
|
|
1631
|
-
}, _(b.$t("copied")), 3)) :
|
|
1630
|
+
class: E(["text-gray-500 transition-all duration-1000 text-sm", q(d) ? "opacity-100" : "opacity-0"])
|
|
1631
|
+
}, _(b.$t("copied")), 3)) : V("", !0),
|
|
1632
1632
|
!e.onlyValue && i(w) ? (p(), v(B, { key: 3 }, [
|
|
1633
|
-
h[1] || (h[1] =
|
|
1634
|
-
|
|
1633
|
+
h[1] || (h[1] = o("div", { class: "flex-auto" }, null, -1)),
|
|
1634
|
+
o("div", il, [
|
|
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:
|
|
1640
|
+
onClick: R((Z) => f(P, i(w)), ["stop"])
|
|
1641
1641
|
}, {
|
|
1642
1642
|
default: x(() => [
|
|
1643
|
-
g(
|
|
1643
|
+
g(T, { class: "size-5" })
|
|
1644
1644
|
]),
|
|
1645
1645
|
_: 1
|
|
1646
1646
|
}, 8, ["title", "onClick"])
|
|
1647
1647
|
])
|
|
1648
|
-
], 64)) :
|
|
1649
|
-
], 10,
|
|
1650
|
-
i(w) ? (p(), v("div",
|
|
1651
|
-
|
|
1648
|
+
], 64)) : V("", !0)
|
|
1649
|
+
], 10, ll),
|
|
1650
|
+
i(w) ? (p(), v("div", rl, [
|
|
1651
|
+
we(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) => l("click", Z))
|
|
1657
1657
|
}, null, 8, ["path", "items", "onlyValue"]), [
|
|
1658
|
-
[
|
|
1658
|
+
[st, t.value[P]]
|
|
1659
1659
|
])
|
|
1660
1660
|
])) : (p(), v(B, { key: 1 }, [
|
|
1661
|
-
h[2] || (h[2] =
|
|
1662
|
-
|
|
1661
|
+
h[2] || (h[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
|
|
1662
|
+
o("div", dl, _(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:
|
|
1668
|
+
onClick: R((Z) => f(P, i(w)), ["stop"])
|
|
1669
1669
|
}, {
|
|
1670
1670
|
default: x(() => [
|
|
1671
|
-
g(
|
|
1671
|
+
g(T, { class: "size-5" })
|
|
1672
1672
|
]),
|
|
1673
1673
|
_: 1
|
|
1674
1674
|
}, 8, ["title", "onClick"])
|
|
@@ -1677,54 +1677,57 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1677
1677
|
]);
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
|
-
}),
|
|
1680
|
+
}), cl = { class: "glass-inset rounded-md p-1" }, ul = { class: "flex gap-1" }, ml = ["onClick"], pl = { class: "relative my-4" }, fl = { key: 0 }, vl = /* @__PURE__ */ S({
|
|
1681
1681
|
__name: "VTabs",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
value: {},
|
|
1684
|
-
items: {}
|
|
1684
|
+
items: {},
|
|
1685
|
+
size: { default: "md" }
|
|
1685
1686
|
},
|
|
1686
1687
|
emits: ["click"],
|
|
1687
|
-
setup(e, { expose: n, emit:
|
|
1688
|
-
const
|
|
1688
|
+
setup(e, { expose: n, emit: l }) {
|
|
1689
|
+
const s = l, t = L(e.value || 0), r = (d) => [
|
|
1689
1690
|
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
1691
|
], c = (d) => {
|
|
1691
|
-
t.value = d,
|
|
1692
|
+
t.value = d, s("click", d);
|
|
1692
1693
|
};
|
|
1693
1694
|
return n({
|
|
1694
1695
|
setActiveTab: c,
|
|
1695
1696
|
activeTab: t
|
|
1696
1697
|
}), (d, m) => (p(), v("div", null, [
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
(p(!0), v(B, null, N(e.items, (
|
|
1698
|
+
o("div", cl, [
|
|
1699
|
+
o("div", ul, [
|
|
1700
|
+
(p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
|
|
1700
1701
|
key: i,
|
|
1701
1702
|
class: "relative flex-auto"
|
|
1702
1703
|
}, [
|
|
1703
|
-
|
|
1704
|
+
o("button", {
|
|
1704
1705
|
type: "button",
|
|
1705
1706
|
class: "w-full",
|
|
1706
1707
|
onClick: (u) => c(i)
|
|
1707
1708
|
}, [
|
|
1708
|
-
|
|
1709
|
-
class:
|
|
1709
|
+
o("div", {
|
|
1710
|
+
class: E([[r(i), e.size === "sm" ? "px-2 py-1 text-xs" : "px-3 py-2 text-sm"], "rounded-md font-medium transition"])
|
|
1710
1711
|
}, [
|
|
1711
1712
|
k(d.$slots, "header", {
|
|
1712
|
-
tab:
|
|
1713
|
+
tab: a,
|
|
1713
1714
|
i
|
|
1714
1715
|
}, () => [
|
|
1715
|
-
|
|
1716
|
+
o("div", {
|
|
1717
|
+
class: E(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
|
|
1718
|
+
}, _(a.title), 3)
|
|
1716
1719
|
])
|
|
1717
1720
|
], 2)
|
|
1718
|
-
], 8,
|
|
1721
|
+
], 8, ml)
|
|
1719
1722
|
]))), 128))
|
|
1720
1723
|
])
|
|
1721
1724
|
]),
|
|
1722
|
-
|
|
1723
|
-
(p(!0), v(B, null, N(e.items, (
|
|
1725
|
+
o("div", pl, [
|
|
1726
|
+
(p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
|
|
1724
1727
|
key: i,
|
|
1725
1728
|
class: "tab-panel"
|
|
1726
1729
|
}, [
|
|
1727
|
-
g(
|
|
1730
|
+
g($e, {
|
|
1728
1731
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
1729
1732
|
"enter-from-class": "transform opacity-0 translate-x-2",
|
|
1730
1733
|
"enter-to-class": "transform opacity-100 translate-x-0",
|
|
@@ -1733,9 +1736,9 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1733
1736
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
1734
1737
|
}, {
|
|
1735
1738
|
default: x(() => [
|
|
1736
|
-
t.value === i ? (p(), v("div",
|
|
1739
|
+
t.value === i ? (p(), v("div", fl, [
|
|
1737
1740
|
k(d.$slots, `tab-${i}`)
|
|
1738
|
-
])) :
|
|
1741
|
+
])) : V("", !0)
|
|
1739
1742
|
]),
|
|
1740
1743
|
_: 2
|
|
1741
1744
|
}, 1024)
|
|
@@ -1743,7 +1746,7 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1743
1746
|
])
|
|
1744
1747
|
]));
|
|
1745
1748
|
}
|
|
1746
|
-
}),
|
|
1749
|
+
}), hl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, gl = ["title", "onMouseenter", "onMouseleave"], bl = { class: "flex flex-auto" }, xl = ["disabled"], be = /* @__PURE__ */ S({
|
|
1747
1750
|
__name: "VFunc",
|
|
1748
1751
|
props: {
|
|
1749
1752
|
label: {},
|
|
@@ -1754,24 +1757,24 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1754
1757
|
},
|
|
1755
1758
|
emits: ["change", "icon", "hover"],
|
|
1756
1759
|
setup(e, { emit: n }) {
|
|
1757
|
-
const
|
|
1760
|
+
const l = n, s = ["v", "a", "b", "c"], t = L(e.value || ""), r = (m) => {
|
|
1758
1761
|
try {
|
|
1759
1762
|
return new Function(m), !0;
|
|
1760
|
-
} catch (
|
|
1761
|
-
return console.warn(
|
|
1763
|
+
} catch (a) {
|
|
1764
|
+
return console.warn(a), !1;
|
|
1762
1765
|
}
|
|
1763
|
-
}, c =
|
|
1764
|
-
const
|
|
1765
|
-
r(
|
|
1766
|
-
}, 500), d = (m) =>
|
|
1767
|
-
return
|
|
1766
|
+
}, c = Se((m) => {
|
|
1767
|
+
const a = m.target;
|
|
1768
|
+
r(a.value) && l("change", a.value);
|
|
1769
|
+
}, 500), d = (m) => l("icon", m);
|
|
1770
|
+
return oe(
|
|
1768
1771
|
() => e.value,
|
|
1769
1772
|
() => {
|
|
1770
1773
|
e.value && (t.value = e.value);
|
|
1771
1774
|
}
|
|
1772
|
-
), (m,
|
|
1773
|
-
const i =
|
|
1774
|
-
return p(), I(
|
|
1775
|
+
), (m, a) => {
|
|
1776
|
+
const i = de, u = he;
|
|
1777
|
+
return p(), I(Re, {
|
|
1775
1778
|
active: !!e.value,
|
|
1776
1779
|
disabled: e.disabled,
|
|
1777
1780
|
label: e.label,
|
|
@@ -1789,38 +1792,38 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1789
1792
|
]),
|
|
1790
1793
|
default: x(() => [
|
|
1791
1794
|
e.value ? (p(), v(B, { key: 0 }, [
|
|
1792
|
-
|
|
1793
|
-
|
|
1795
|
+
o("div", hl, [
|
|
1796
|
+
a[3] || (a[3] = j(" ( ", -1)),
|
|
1794
1797
|
(p(!0), v(B, null, N(e.args, (f, b) => (p(), v(B, { key: f }, [
|
|
1795
|
-
|
|
1798
|
+
o("span", {
|
|
1796
1799
|
class: "text-blue-400/80",
|
|
1797
1800
|
title: f,
|
|
1798
|
-
onMouseenter: (h) =>
|
|
1799
|
-
onMouseleave: (h) =>
|
|
1800
|
-
}, _(
|
|
1801
|
-
|
|
1801
|
+
onMouseenter: (h) => l("hover", "enter", b),
|
|
1802
|
+
onMouseleave: (h) => l("hover", "leave", b)
|
|
1803
|
+
}, _(s[b]), 41, gl),
|
|
1804
|
+
a[2] || (a[2] = o("span", { class: "last:hidden" }, ",", -1))
|
|
1802
1805
|
], 64))), 128)),
|
|
1803
|
-
|
|
1806
|
+
a[4] || (a[4] = j(" ) => ", -1))
|
|
1804
1807
|
]),
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
"onUpdate:modelValue":
|
|
1808
|
+
o("div", bl, [
|
|
1809
|
+
we(o("textarea", {
|
|
1810
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => t.value = f),
|
|
1808
1811
|
class: "outline-0 w-full resize-none field-sizing-content",
|
|
1809
1812
|
type: "text",
|
|
1810
1813
|
disabled: e.disabled,
|
|
1811
|
-
onInput:
|
|
1814
|
+
onInput: a[1] || (a[1] = //@ts-ignore
|
|
1812
1815
|
(...f) => q(c) && q(c)(...f))
|
|
1813
|
-
}, null, 40,
|
|
1814
|
-
[
|
|
1816
|
+
}, null, 40, xl), [
|
|
1817
|
+
[je, t.value]
|
|
1815
1818
|
])
|
|
1816
1819
|
])
|
|
1817
|
-
], 64)) :
|
|
1820
|
+
], 64)) : V("", !0)
|
|
1818
1821
|
]),
|
|
1819
1822
|
_: 1
|
|
1820
1823
|
}, 8, ["active", "disabled", "label", "hideIcon"]);
|
|
1821
1824
|
};
|
|
1822
1825
|
}
|
|
1823
|
-
}),
|
|
1826
|
+
}), yl = ["checked", "disabled"], _l = { class: "text-sm ms-2 peer-disabled:opacity-40" }, $l = /* @__PURE__ */ S({
|
|
1824
1827
|
__name: "VCheckbox",
|
|
1825
1828
|
props: {
|
|
1826
1829
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
@@ -1828,48 +1831,48 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1828
1831
|
},
|
|
1829
1832
|
emits: ["update:modelValue", "click"],
|
|
1830
1833
|
setup(e, { emit: n }) {
|
|
1831
|
-
const
|
|
1834
|
+
const l = n, s = (r) => {
|
|
1832
1835
|
const c = r.target;
|
|
1833
|
-
|
|
1834
|
-
}, t = (r) =>
|
|
1836
|
+
l("update:modelValue", c.checked);
|
|
1837
|
+
}, t = (r) => l("click", r);
|
|
1835
1838
|
return (r, c) => (p(), v("label", {
|
|
1836
|
-
class:
|
|
1839
|
+
class: E(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
|
|
1837
1840
|
onClick: t
|
|
1838
1841
|
}, [
|
|
1839
|
-
|
|
1842
|
+
o("input", {
|
|
1840
1843
|
type: "checkbox",
|
|
1841
1844
|
checked: !!e.modelValue,
|
|
1842
1845
|
disabled: e.disabled,
|
|
1843
1846
|
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
|
-
|
|
1847
|
+
onChange: s
|
|
1848
|
+
}, null, 40, yl),
|
|
1849
|
+
c[0] || (c[0] = o("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" }, [
|
|
1850
|
+
o("svg", {
|
|
1848
1851
|
class: "h-3.5 w-3.5",
|
|
1849
1852
|
viewBox: "0 0 20 20",
|
|
1850
1853
|
fill: "currentColor",
|
|
1851
1854
|
stroke: "currentColor",
|
|
1852
1855
|
"stroke-width": "1"
|
|
1853
1856
|
}, [
|
|
1854
|
-
|
|
1857
|
+
o("path", {
|
|
1855
1858
|
"fill-rule": "evenodd",
|
|
1856
1859
|
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
1860
|
"clip-rule": "evenodd"
|
|
1858
1861
|
})
|
|
1859
1862
|
])
|
|
1860
1863
|
], -1)),
|
|
1861
|
-
|
|
1864
|
+
o("span", _l, [
|
|
1862
1865
|
k(r.$slots, "default")
|
|
1863
1866
|
])
|
|
1864
1867
|
], 2));
|
|
1865
1868
|
}
|
|
1866
|
-
}),
|
|
1869
|
+
}), kl = { class: "flex flex-col" }, wl = { class: "flex gap-4 mb-6" }, Cl = {
|
|
1867
1870
|
key: 0,
|
|
1868
1871
|
class: "flex gap-4"
|
|
1869
|
-
},
|
|
1872
|
+
}, Sl = {
|
|
1870
1873
|
key: 1,
|
|
1871
1874
|
class: ""
|
|
1872
|
-
},
|
|
1875
|
+
}, zl = { class: "flex flex-col md:flex-row gap-4" }, Vl = { class: "flex gap-4" }, Tl = { class: "flex justify-between flex-auto" }, El = ["onClick"], Ll = /* @__PURE__ */ S({
|
|
1873
1876
|
__name: "ItemOptions",
|
|
1874
1877
|
props: {
|
|
1875
1878
|
min: { default: 0 },
|
|
@@ -1882,35 +1885,35 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1882
1885
|
},
|
|
1883
1886
|
emits: ["update"],
|
|
1884
1887
|
setup(e, { emit: n }) {
|
|
1885
|
-
const
|
|
1888
|
+
const l = n, s = M(() => e.items.map((h, y) => ({ ...h, id: ++y }))), t = L({ name: "", value: "" }), r = M(() => e.items.length + 1), c = M(() => {
|
|
1886
1889
|
var h;
|
|
1887
1890
|
return !((h = t.value) != null && h.id);
|
|
1888
|
-
}), d = (h) => e.type === h, m = (h, y) =>
|
|
1891
|
+
}), d = (h) => e.type === h, m = (h, y) => l("update", h, y), a = (h) => h.map(({ name: y, value: z }) => ({ name: y, value: z })), i = ({ id: h, name: y, value: z }) => t.value = { id: h, name: y, value: z }, u = () => {
|
|
1889
1892
|
const h = r.value;
|
|
1890
|
-
t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items",
|
|
1893
|
+
t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items", a([...s.value, t.value]));
|
|
1891
1894
|
}, f = (h) => {
|
|
1892
|
-
t.value.name === h.name && (t.value = { name: "", value: "" }), m("items",
|
|
1893
|
-
}, b =
|
|
1895
|
+
t.value.name === h.name && (t.value = { name: "", value: "" }), m("items", a(s.value.filter((y) => y.value !== h.value)));
|
|
1896
|
+
}, b = Se(() => {
|
|
1894
1897
|
const h = t.value;
|
|
1895
1898
|
if (!h.name || !h.value) return;
|
|
1896
|
-
const y =
|
|
1897
|
-
m("items",
|
|
1899
|
+
const y = s.value.map((z) => z.id === h.id ? h : z);
|
|
1900
|
+
m("items", a(y));
|
|
1898
1901
|
}, 300);
|
|
1899
1902
|
return (h, y) => {
|
|
1900
|
-
const
|
|
1901
|
-
return p(), v("div",
|
|
1902
|
-
|
|
1903
|
-
g(
|
|
1903
|
+
const z = de, T = he;
|
|
1904
|
+
return p(), v("div", kl, [
|
|
1905
|
+
o("div", wl, [
|
|
1906
|
+
g($l, {
|
|
1904
1907
|
modelValue: e.disabled,
|
|
1905
1908
|
"onUpdate:modelValue": y[0] || (y[0] = (w) => m("disabled", w ? 1 : 0))
|
|
1906
1909
|
}, {
|
|
1907
1910
|
default: x(() => [...y[6] || (y[6] = [
|
|
1908
|
-
|
|
1911
|
+
j("Disabled", -1)
|
|
1909
1912
|
])]),
|
|
1910
1913
|
_: 1
|
|
1911
1914
|
}, 8, ["modelValue"])
|
|
1912
1915
|
]),
|
|
1913
|
-
d("dimmer") ? (p(), v("div",
|
|
1916
|
+
d("dimmer") ? (p(), v("div", Cl, [
|
|
1914
1917
|
g(J, {
|
|
1915
1918
|
modelValue: e.min,
|
|
1916
1919
|
label: "Min",
|
|
@@ -1926,9 +1929,9 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1926
1929
|
label: "Step",
|
|
1927
1930
|
"onUpdate:modelValue": y[3] || (y[3] = (w) => m("step", +w))
|
|
1928
1931
|
}, null, 8, ["modelValue"])
|
|
1929
|
-
])) :
|
|
1930
|
-
d("list") ? (p(), v("div",
|
|
1931
|
-
|
|
1932
|
+
])) : V("", !0),
|
|
1933
|
+
d("list") ? (p(), v("div", Sl, [
|
|
1934
|
+
o("div", zl, [
|
|
1932
1935
|
g(J, {
|
|
1933
1936
|
modelValue: t.value.name,
|
|
1934
1937
|
"onUpdate:modelValue": [
|
|
@@ -1948,24 +1951,24 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1948
1951
|
label: "Value"
|
|
1949
1952
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
1950
1953
|
]),
|
|
1951
|
-
|
|
1952
|
-
g(
|
|
1954
|
+
o("div", Vl, [
|
|
1955
|
+
g(le, {
|
|
1953
1956
|
"model-value": t.value.value,
|
|
1954
1957
|
label: "List",
|
|
1955
|
-
items:
|
|
1958
|
+
items: s.value,
|
|
1956
1959
|
top: "unset",
|
|
1957
1960
|
bottom: "0",
|
|
1958
1961
|
onChange: i
|
|
1959
1962
|
}, {
|
|
1960
1963
|
item: x(({ item: w }) => [
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
+
o("div", Tl, [
|
|
1965
|
+
o("span", null, _(w.name), 1),
|
|
1966
|
+
o("button", {
|
|
1964
1967
|
class: "cursor-pointer size-4",
|
|
1965
|
-
onClick:
|
|
1968
|
+
onClick: R((P) => f(w), ["prevent", "stop"])
|
|
1966
1969
|
}, [
|
|
1967
|
-
g(
|
|
1968
|
-
], 8,
|
|
1970
|
+
g(z)
|
|
1971
|
+
], 8, El)
|
|
1969
1972
|
])
|
|
1970
1973
|
]),
|
|
1971
1974
|
_: 1
|
|
@@ -1976,16 +1979,16 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1976
1979
|
onClick: u
|
|
1977
1980
|
}, {
|
|
1978
1981
|
default: x(() => [
|
|
1979
|
-
g(
|
|
1982
|
+
g(T)
|
|
1980
1983
|
]),
|
|
1981
1984
|
_: 1
|
|
1982
1985
|
})
|
|
1983
1986
|
])
|
|
1984
|
-
])) :
|
|
1987
|
+
])) : V("", !0)
|
|
1985
1988
|
]);
|
|
1986
1989
|
};
|
|
1987
1990
|
}
|
|
1988
|
-
}),
|
|
1991
|
+
}), Bl = { class: "flex flex-col" }, Ml = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Al = { class: "flex-auto order-1" }, Dl = { class: "flex-auto gap-x-2 order-1" }, Il = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, jl = { class: "flex gap-2 items-center" }, Hl = { class: "flex flex-col gap-4" }, Pl = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Nl = { class: "relative group" }, Ol = { class: "select-none" }, Kl = ["onClick"], Fl = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Ul = { class: "flex-[0_0_130px] size-[130px]" }, Rl = { class: "flex gap-4 justify-end" }, Wl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, wa = /* @__PURE__ */ S({
|
|
1989
1992
|
__name: "ItemEdit",
|
|
1990
1993
|
props: {
|
|
1991
1994
|
items: {},
|
|
@@ -1996,7 +1999,7 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
1996
1999
|
},
|
|
1997
2000
|
emits: ["button"],
|
|
1998
2001
|
setup(e, { emit: n }) {
|
|
1999
|
-
const
|
|
2002
|
+
const l = n, s = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = L({
|
|
2000
2003
|
id: "",
|
|
2001
2004
|
name: "",
|
|
2002
2005
|
type: "button",
|
|
@@ -2006,16 +2009,16 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2006
2009
|
set: "",
|
|
2007
2010
|
get: "",
|
|
2008
2011
|
getTo: ""
|
|
2009
|
-
}), r = L(!1), c =
|
|
2012
|
+
}), r = L(!1), c = M(() => {
|
|
2010
2013
|
var $;
|
|
2011
2014
|
return !(($ = e.item) != null && $.id);
|
|
2012
|
-
}), d =
|
|
2015
|
+
}), d = M(() => !!e.items.filter(($) => {
|
|
2013
2016
|
var C;
|
|
2014
2017
|
return $.id !== ((C = e.item) == null ? void 0 : C.id);
|
|
2015
|
-
}).find(($) => $.id === (t == null ? void 0 : t.value.id))), m =
|
|
2018
|
+
}).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = M(() => t.value.type === "info"), a = M(() => {
|
|
2016
2019
|
var $;
|
|
2017
2020
|
return ($ = t.value.args) == null ? void 0 : $.length;
|
|
2018
|
-
}), i =
|
|
2021
|
+
}), i = M(() => t.value.args.length > 3), u = M(() => {
|
|
2019
2022
|
if (d.value) return !0;
|
|
2020
2023
|
const { id: $, args: C } = t.value;
|
|
2021
2024
|
return !$ || !C.length;
|
|
@@ -2024,11 +2027,11 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2024
2027
|
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
2028
|
}, h = ($) => {
|
|
2026
2029
|
$ === "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 = ($) =>
|
|
2030
|
+
}, y = ($) => l("button", $, t.value), z = ($) => t.value.args = t.value.args.filter((C) => C !== $), T = ({ path: $ }) => {
|
|
2028
2031
|
!t.value.args.length && !t.value.id && (t.value.id = $), t.value.args.push($), r.value = !1;
|
|
2029
2032
|
}, w = L(-1), P = ($) => w.value === $, Z = ($, C) => {
|
|
2030
2033
|
$ === "enter" && (w.value = C), $ === "leave" && (w.value = -1);
|
|
2031
|
-
},
|
|
2034
|
+
}, ge = ($, C) => {
|
|
2032
2035
|
$ === "set" && (t.value.set = C), $ === "get" && (t.value.get = C), $ === "getTo" && (t.value.getTo = C), C || delete t.value[$];
|
|
2033
2036
|
}, Ye = () => {
|
|
2034
2037
|
r.value = !0;
|
|
@@ -2037,26 +2040,26 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2037
2040
|
};
|
|
2038
2041
|
return Q(() => {
|
|
2039
2042
|
var $;
|
|
2040
|
-
($ = e.item) != null && $.id && (t.value =
|
|
2043
|
+
($ = e.item) != null && $.id && (t.value = vt(e.item));
|
|
2041
2044
|
}), ($, C) => {
|
|
2042
|
-
const et =
|
|
2043
|
-
return p(), v("div",
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
g(
|
|
2045
|
+
const et = Ws, tt = de;
|
|
2046
|
+
return p(), v("div", Bl, [
|
|
2047
|
+
o("div", Ml, [
|
|
2048
|
+
o("div", Al, [
|
|
2049
|
+
g(vl, {
|
|
2047
2050
|
class: "flex-auto min-h-75",
|
|
2048
2051
|
value: 0,
|
|
2049
|
-
items:
|
|
2052
|
+
items: s
|
|
2050
2053
|
}, {
|
|
2051
2054
|
"tab-0": x(() => [
|
|
2052
|
-
|
|
2055
|
+
o("div", Dl, [
|
|
2053
2056
|
g(J, {
|
|
2054
2057
|
modelValue: t.value.id,
|
|
2055
2058
|
"onUpdate:modelValue": C[0] || (C[0] = (D) => t.value.id = D),
|
|
2056
2059
|
label: "ID",
|
|
2057
2060
|
message: d.value ? $.$t("used") : ""
|
|
2058
|
-
},
|
|
2059
|
-
|
|
2061
|
+
}, lt({ _: 2 }, [
|
|
2062
|
+
a.value ? void 0 : {
|
|
2060
2063
|
name: "icon",
|
|
2061
2064
|
fn: x(() => [
|
|
2062
2065
|
g(A, {
|
|
@@ -2077,8 +2080,8 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2077
2080
|
"onUpdate:modelValue": C[1] || (C[1] = (D) => t.value.name = D),
|
|
2078
2081
|
label: "Name"
|
|
2079
2082
|
}, null, 8, ["modelValue"]),
|
|
2080
|
-
|
|
2081
|
-
g(
|
|
2083
|
+
o("div", Il, [
|
|
2084
|
+
g(le, {
|
|
2082
2085
|
"model-value": t.value.icon,
|
|
2083
2086
|
bottom: "0",
|
|
2084
2087
|
top: "unset",
|
|
@@ -2088,16 +2091,16 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2088
2091
|
onChange: f
|
|
2089
2092
|
}, {
|
|
2090
2093
|
item: x(({ item: D }) => [
|
|
2091
|
-
|
|
2094
|
+
o("div", jl, [
|
|
2092
2095
|
k($.$slots, "icon", {
|
|
2093
2096
|
icon: D.value
|
|
2094
2097
|
}),
|
|
2095
|
-
|
|
2098
|
+
o("div", null, _(D.name), 1)
|
|
2096
2099
|
])
|
|
2097
2100
|
]),
|
|
2098
2101
|
_: 3
|
|
2099
2102
|
}, 8, ["model-value", "items"]),
|
|
2100
|
-
g(
|
|
2103
|
+
g(le, {
|
|
2101
2104
|
"model-value": t.value.type,
|
|
2102
2105
|
bottom: "0",
|
|
2103
2106
|
top: "unset",
|
|
@@ -2109,70 +2112,70 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2109
2112
|
])
|
|
2110
2113
|
]),
|
|
2111
2114
|
"tab-1": x(() => [
|
|
2112
|
-
|
|
2113
|
-
g(
|
|
2115
|
+
o("div", Hl, [
|
|
2116
|
+
g(Re, {
|
|
2114
2117
|
active: !!t.value.args.length,
|
|
2115
2118
|
disabled: i.value,
|
|
2116
2119
|
label: "Arguments",
|
|
2117
2120
|
onIcon: C[2] || (C[2] = (D) => r.value = !0)
|
|
2118
2121
|
}, {
|
|
2119
2122
|
default: x(() => [
|
|
2120
|
-
|
|
2121
|
-
(p(!0), v(B, null, N(t.value.args, (D,
|
|
2123
|
+
o("div", Pl, [
|
|
2124
|
+
(p(!0), v(B, null, N(t.value.args, (D, Te) => (p(), v("div", {
|
|
2122
2125
|
key: D,
|
|
2123
2126
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2124
2127
|
}, [
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
class:
|
|
2128
|
+
o("div", Nl, [
|
|
2129
|
+
o("span", Ol, _(D), 1),
|
|
2130
|
+
o("div", {
|
|
2131
|
+
class: E(["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(Te) ? "visible opacity-100" : ""])
|
|
2129
2132
|
}, [
|
|
2130
|
-
|
|
2133
|
+
o("pre", null, _(q(yt)(D, e.object)), 1)
|
|
2131
2134
|
], 2)
|
|
2132
2135
|
]),
|
|
2133
|
-
|
|
2136
|
+
Te || t.value.args.length < 2 ? (p(), v("button", {
|
|
2134
2137
|
key: 0,
|
|
2135
2138
|
class: "cursor-pointer ms-1",
|
|
2136
|
-
onClick: (
|
|
2139
|
+
onClick: (Yo) => z(D)
|
|
2137
2140
|
}, [
|
|
2138
2141
|
g(tt, { class: "size-5" })
|
|
2139
|
-
], 8,
|
|
2142
|
+
], 8, Kl)) : V("", !0)
|
|
2140
2143
|
]))), 128))
|
|
2141
2144
|
])
|
|
2142
2145
|
]),
|
|
2143
2146
|
_: 1
|
|
2144
2147
|
}, 8, ["active", "disabled"]),
|
|
2145
|
-
g(
|
|
2148
|
+
g(be, {
|
|
2146
2149
|
value: t.value.set,
|
|
2147
2150
|
args: t.value.args,
|
|
2148
|
-
disabled: !
|
|
2151
|
+
disabled: !a.value || m.value,
|
|
2149
2152
|
label: "Set",
|
|
2150
2153
|
onIcon: C[3] || (C[3] = (D) => h("set")),
|
|
2151
2154
|
onHover: Z,
|
|
2152
|
-
onChange: C[4] || (C[4] = (D) =>
|
|
2155
|
+
onChange: C[4] || (C[4] = (D) => ge("set", D))
|
|
2153
2156
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2154
|
-
g(
|
|
2157
|
+
g(be, {
|
|
2155
2158
|
value: t.value.get,
|
|
2156
2159
|
args: t.value.args,
|
|
2157
|
-
disabled: !
|
|
2160
|
+
disabled: !a.value,
|
|
2158
2161
|
label: "Get",
|
|
2159
2162
|
onIcon: C[5] || (C[5] = (D) => h("get")),
|
|
2160
2163
|
onHover: Z,
|
|
2161
|
-
onChange: C[6] || (C[6] = (D) =>
|
|
2164
|
+
onChange: C[6] || (C[6] = (D) => ge("get", D))
|
|
2162
2165
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2163
|
-
g(
|
|
2166
|
+
g(be, {
|
|
2164
2167
|
value: t.value.getTo,
|
|
2165
2168
|
args: t.value.args,
|
|
2166
|
-
disabled: !
|
|
2169
|
+
disabled: !a.value,
|
|
2167
2170
|
label: "GetTo",
|
|
2168
2171
|
onIcon: C[7] || (C[7] = (D) => h("getTo")),
|
|
2169
2172
|
onHover: Z,
|
|
2170
|
-
onChange: C[8] || (C[8] = (D) =>
|
|
2173
|
+
onChange: C[8] || (C[8] = (D) => ge("getTo", D))
|
|
2171
2174
|
}, null, 8, ["value", "args", "disabled"])
|
|
2172
2175
|
])
|
|
2173
2176
|
]),
|
|
2174
2177
|
"tab-2": x(() => [
|
|
2175
|
-
g(
|
|
2178
|
+
g(Ll, H(t.value.opts, {
|
|
2176
2179
|
value: t.value.value,
|
|
2177
2180
|
type: t.value.type,
|
|
2178
2181
|
onUpdate: Qe
|
|
@@ -2181,13 +2184,13 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2181
2184
|
_: 3
|
|
2182
2185
|
})
|
|
2183
2186
|
]),
|
|
2184
|
-
|
|
2185
|
-
|
|
2187
|
+
o("div", Fl, [
|
|
2188
|
+
o("div", Ul, [
|
|
2186
2189
|
k($.$slots, "default", { item: t.value })
|
|
2187
2190
|
])
|
|
2188
2191
|
])
|
|
2189
2192
|
]),
|
|
2190
|
-
|
|
2193
|
+
o("div", Rl, [
|
|
2191
2194
|
g(A, {
|
|
2192
2195
|
class: "px-4",
|
|
2193
2196
|
color: "blue",
|
|
@@ -2195,7 +2198,7 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2195
2198
|
onClick: C[9] || (C[9] = (D) => y(c.value ? "add" : "save"))
|
|
2196
2199
|
}, {
|
|
2197
2200
|
default: x(() => [
|
|
2198
|
-
|
|
2201
|
+
j(_(c.value ? $.$t("add") : $.$t("save")), 1)
|
|
2199
2202
|
]),
|
|
2200
2203
|
_: 1
|
|
2201
2204
|
}, 8, ["disabled"]),
|
|
@@ -2206,7 +2209,7 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2206
2209
|
onClick: C[10] || (C[10] = (D) => y("remove"))
|
|
2207
2210
|
}, {
|
|
2208
2211
|
default: x(() => [
|
|
2209
|
-
|
|
2212
|
+
j(_($.$t("remove")), 1)
|
|
2210
2213
|
]),
|
|
2211
2214
|
_: 1
|
|
2212
2215
|
})
|
|
@@ -2218,67 +2221,67 @@ const os = O({ name: "ri-folder6-line", render: as }), is = ["onClick"], rs = {
|
|
|
2218
2221
|
onClose: C[11] || (C[11] = (D) => r.value = !1)
|
|
2219
2222
|
}, {
|
|
2220
2223
|
default: x(() => [
|
|
2221
|
-
|
|
2224
|
+
o("div", Wl, [
|
|
2222
2225
|
g(We, {
|
|
2223
2226
|
items: e.object,
|
|
2224
|
-
onlyValue: !
|
|
2225
|
-
onClick:
|
|
2227
|
+
onlyValue: !a.value,
|
|
2228
|
+
onClick: T
|
|
2226
2229
|
}, null, 8, ["items", "onlyValue"])
|
|
2227
2230
|
])
|
|
2228
2231
|
]),
|
|
2229
2232
|
_: 1
|
|
2230
|
-
}, 8, ["title"])) :
|
|
2233
|
+
}, 8, ["title"])) : V("", !0)
|
|
2231
2234
|
]);
|
|
2232
2235
|
};
|
|
2233
2236
|
}
|
|
2234
|
-
}),
|
|
2237
|
+
}), Ee = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, ql = { 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" }, Gl = { 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" }, Jl = { 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
2238
|
function Le(e) {
|
|
2236
2239
|
const n = Array.isArray(e) ? e : [e];
|
|
2237
|
-
return n.length === 0 ? qe : (
|
|
2240
|
+
return n.length === 0 ? qe : (l) => n.reduce((s, t, r) => t(s, { html: r > 0 }), l);
|
|
2238
2241
|
}
|
|
2239
|
-
class
|
|
2240
|
-
constructor(n,
|
|
2242
|
+
class Zl {
|
|
2243
|
+
constructor(n, l = {}) {
|
|
2241
2244
|
if (this.lines = null, !n) throw new Error("selector is not defined");
|
|
2242
2245
|
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 = { ...
|
|
2246
|
+
const s = { value: "", styles: {}, plugins: [], highlighter: qe }, { highlighters: t, ...r } = l;
|
|
2247
|
+
this.options = { ...s, ...r, highlighter: t ? Le(t) : s.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
|
|
2245
2248
|
}
|
|
2246
2249
|
init() {
|
|
2247
2250
|
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
|
-
const n = Object.keys(
|
|
2251
|
+
const n = Object.keys(Ee).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
|
|
2249
2252
|
this.initialRootStyles = {};
|
|
2250
|
-
const
|
|
2251
|
-
n.forEach((
|
|
2252
|
-
this.initialRootStyles[
|
|
2253
|
-
}), Object.assign(this.root.style,
|
|
2253
|
+
const l = this.root.style;
|
|
2254
|
+
n.forEach((s) => {
|
|
2255
|
+
this.initialRootStyles[s] = l[s] || "";
|
|
2256
|
+
}), Object.assign(this.root.style, Ee, this.options.styles), Object.assign(this.textarea.style, ql), Object.assign(this.pre.style, Gl), 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
2257
|
}
|
|
2255
2258
|
addTextareaEvents() {
|
|
2256
2259
|
this.handleEvent = (n) => {
|
|
2257
2260
|
if (n.type === "keydown" && this.textarea.readOnly) return;
|
|
2258
|
-
const
|
|
2259
|
-
if (
|
|
2260
|
-
const
|
|
2261
|
+
const l = n;
|
|
2262
|
+
if (l.isComposing || l.keyCode === 229) return;
|
|
2263
|
+
const s = function(t, r) {
|
|
2261
2264
|
const { value: c, selectionStart: d, selectionEnd: m } = r.target;
|
|
2262
|
-
return t.reduce((
|
|
2265
|
+
return t.reduce((a, i) => ({ ...a, ...i(a, r) }), { value: c, selectionStart: d, selectionEnd: m });
|
|
2263
2266
|
}(this.options.plugins, n);
|
|
2264
|
-
this.update(
|
|
2267
|
+
this.update(s);
|
|
2265
2268
|
}, this.textarea.addEventListener("input", this.handleEvent), this.textarea.addEventListener("keydown", this.handleEvent), this.textarea.addEventListener("compositionend", this.handleEvent);
|
|
2266
2269
|
}
|
|
2267
2270
|
update(n) {
|
|
2268
2271
|
if (!this.textarea) return;
|
|
2269
|
-
let { value:
|
|
2270
|
-
|
|
2272
|
+
let { value: l, selectionStart: s, selectionEnd: t } = n;
|
|
2273
|
+
l != null && (l = String(l), s == null && (s = this.textarea.selectionStart), t == null && (t = this.textarea.selectionEnd), this.textarea.value !== l && (this.textarea.value = l)), s != null && (this.textarea.selectionStart = s), t != null && (this.textarea.selectionEnd = t), l !== this.value && l != null && (this.value = l, this.render(), this.updateCallback && this.updateCallback(l));
|
|
2271
2274
|
}
|
|
2272
2275
|
updateOptions(n) {
|
|
2273
2276
|
if (!this.textarea) return;
|
|
2274
|
-
const { highlighters:
|
|
2275
|
-
if (this.options = { ...this.options, ...
|
|
2277
|
+
const { highlighters: l, ...s } = n;
|
|
2278
|
+
if (this.options = { ...this.options, ...s, highlighter: l ? Le(l) : this.options.highlighter }, n.styles) {
|
|
2276
2279
|
const t = this.root.style;
|
|
2277
2280
|
Object.keys(n.styles).forEach((r) => {
|
|
2278
2281
|
r in this.initialRootStyles || (this.initialRootStyles[r] = t[r] || "");
|
|
2279
2282
|
}), Object.assign(this.root.style, n.styles), ("paddingLeft" in n.styles || "padding" in n.styles) && (this.basePaddingLeft = this.root.style.paddingLeft || "");
|
|
2280
2283
|
}
|
|
2281
|
-
this.lines && !this.options.lineNumbers && (
|
|
2284
|
+
this.lines && !this.options.lineNumbers && (ce(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), n.value != null && this.update({ value: n.value }), this.render();
|
|
2282
2285
|
}
|
|
2283
2286
|
render() {
|
|
2284
2287
|
const n = this.options.highlighter(this.value);
|
|
@@ -2286,145 +2289,145 @@ class ea {
|
|
|
2286
2289
|
}
|
|
2287
2290
|
updateLines() {
|
|
2288
2291
|
if (!this.options.lineNumbers) return;
|
|
2289
|
-
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style,
|
|
2292
|
+
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Jl));
|
|
2290
2293
|
const n = this.value.split(`
|
|
2291
|
-
`),
|
|
2292
|
-
this.root.style.paddingLeft = `${
|
|
2294
|
+
`), l = n.length.toString().length;
|
|
2295
|
+
this.root.style.paddingLeft = `${l + 1}ch`, this.lines.innerHTML = n.map((s, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${l}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${Ge(s)}</span>`}`).join(`
|
|
2293
2296
|
`);
|
|
2294
2297
|
}
|
|
2295
2298
|
destroy() {
|
|
2296
|
-
this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent),
|
|
2299
|
+
this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), ce(this.textarea), ce(this.pre), ce(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
2300
|
}
|
|
2298
2301
|
onUpdate(n) {
|
|
2299
2302
|
this.updateCallback = n;
|
|
2300
2303
|
}
|
|
2301
2304
|
}
|
|
2302
|
-
function
|
|
2305
|
+
function ce(e) {
|
|
2303
2306
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
2304
2307
|
}
|
|
2305
2308
|
function Ge(e) {
|
|
2306
2309
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2307
2310
|
}
|
|
2308
|
-
const
|
|
2311
|
+
const Be = { 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" }, Xl = { add: "=" }, Yl = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
|
|
2309
2312
|
function re(e, n) {
|
|
2310
|
-
const
|
|
2311
|
-
if (!
|
|
2312
|
-
const t = n.key != null && n.key.toLowerCase() ===
|
|
2313
|
+
const l = e.split("+").reduce((m, a) => Be[a] ? (m.modifiers[Be[a]] = !0, m) : { ...m, key: Xl[a] || a.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), s = Object.keys(l.modifiers).every((m) => l.modifiers[m] ? n[m] : !n[m]);
|
|
2314
|
+
if (!l.key) return s;
|
|
2315
|
+
const t = n.key != null && n.key.toLowerCase() === l.key, r = (c = l.key, /^[a-z]$/.test(c) ? `key${c}` : /^[0-9]$/.test(c) ? `digit${c}` : Yl[c] || null);
|
|
2313
2316
|
var c;
|
|
2314
2317
|
const d = !n.isComposing && r != null && n.code != null && n.code.toLowerCase() === r;
|
|
2315
|
-
return
|
|
2318
|
+
return s && (t || d);
|
|
2316
2319
|
}
|
|
2317
|
-
function
|
|
2318
|
-
const n = Math.max(1, e.limit == null ? 300 : e.limit),
|
|
2319
|
-
let
|
|
2320
|
+
function Ql(e = {}) {
|
|
2321
|
+
const n = Math.max(1, e.limit == null ? 300 : e.limit), l = e.coalesceMs == null ? 300 : e.coalesceMs;
|
|
2322
|
+
let s = [], t = null, r = null;
|
|
2320
2323
|
const c = (d) => {
|
|
2321
|
-
|
|
2324
|
+
s = s.slice(0, t + 1), s.push(d), s.length > n && (s = s.slice(s.length - n)), t = s.length - 1;
|
|
2322
2325
|
};
|
|
2323
2326
|
return (d, m) => {
|
|
2324
|
-
const
|
|
2325
|
-
if ((
|
|
2326
|
-
if (
|
|
2327
|
-
if (i) return r = null,
|
|
2328
|
-
if (m.type === "keydown") return
|
|
2327
|
+
const a = m.type === "keydown" && re("ctrl/cmd+z", m), i = m.type === "keydown" && (re("ctrl/cmd+shift+z", m) || re("ctrl+y", m));
|
|
2328
|
+
if ((a || i) && m.preventDefault(), t === null) return s = [d], void (t = 0);
|
|
2329
|
+
if (a) return r = null, s[t].value !== d.value ? c(d) : s[t] = d, t = Math.max(0, t - 1), s[t];
|
|
2330
|
+
if (i) return r = null, s[t].value !== d.value ? void c(d) : (t = Math.min(s.length - 1, t + 1), s[t]);
|
|
2331
|
+
if (m.type === "keydown") return s[t].value !== d.value ? (r = null, void c(d)) : void (s[t] = d);
|
|
2329
2332
|
if (m.type === "input") {
|
|
2330
|
-
const u = m.timeStamp, f = u != null && r != null && u - r <=
|
|
2331
|
-
if (r = u ?? null, f) return void (
|
|
2333
|
+
const u = m.timeStamp, f = u != null && r != null && u - r <= l;
|
|
2334
|
+
if (r = u ?? null, f) return void (s[t] = d);
|
|
2332
2335
|
c(d);
|
|
2333
2336
|
}
|
|
2334
2337
|
};
|
|
2335
2338
|
}
|
|
2336
|
-
const
|
|
2337
|
-
const { value:
|
|
2339
|
+
const eo = () => (e, n) => {
|
|
2340
|
+
const { value: l, selectionStart: s, selectionEnd: t } = e;
|
|
2338
2341
|
if (!re("enter", n) || n.type !== "keydown") return;
|
|
2339
|
-
const r =
|
|
2342
|
+
const r = l.substring(0, s).split(`
|
|
2340
2343
|
`).pop(), c = /^\s+/.exec(r);
|
|
2341
2344
|
if (!c) return;
|
|
2342
2345
|
n.preventDefault();
|
|
2343
2346
|
const d = `
|
|
2344
2347
|
` + c[0];
|
|
2345
|
-
return { value:
|
|
2346
|
-
},
|
|
2348
|
+
return { value: l.substring(0, s) + d + l.substring(t), selectionStart: s + d.length, selectionEnd: s + d.length };
|
|
2349
|
+
}, to = () => (e, n) => {
|
|
2347
2350
|
if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
|
|
2348
2351
|
return;
|
|
2349
|
-
const { value:
|
|
2350
|
-
if (
|
|
2352
|
+
const { value: l, selectionStart: s, selectionEnd: t } = e;
|
|
2353
|
+
if (s !== t)
|
|
2351
2354
|
return;
|
|
2352
|
-
const r =
|
|
2353
|
-
`,
|
|
2354
|
-
`,
|
|
2355
|
-
if (
|
|
2355
|
+
const r = l.lastIndexOf(`
|
|
2356
|
+
`, s - 1) + 1, c = l.indexOf(`
|
|
2357
|
+
`, s), d = c === -1 ? l.length : c;
|
|
2358
|
+
if (l.slice(s, d).trim().length > 0)
|
|
2356
2359
|
return;
|
|
2357
|
-
const i =
|
|
2360
|
+
const i = l.substring(r, d).trimEnd();
|
|
2358
2361
|
if (i.endsWith(";") || i.length === 0)
|
|
2359
2362
|
return;
|
|
2360
|
-
const u =
|
|
2363
|
+
const u = l.slice(0, d) + ";" + l.slice(d), f = s + 1;
|
|
2361
2364
|
return {
|
|
2362
2365
|
value: u,
|
|
2363
2366
|
selectionStart: f,
|
|
2364
2367
|
selectionEnd: f
|
|
2365
2368
|
};
|
|
2366
2369
|
};
|
|
2367
|
-
let ze = [], W = null,
|
|
2368
|
-
const
|
|
2369
|
-
const { customSuggestions: n = [], minPrefixLength:
|
|
2370
|
+
let ze = [], W = null, K = 0, X = [], ee = null, te = null, Ve, Je, G = null, se = null;
|
|
2371
|
+
const no = (e) => {
|
|
2372
|
+
const { customSuggestions: n = [], minPrefixLength: l = 1, maxSuggestions: s = 20, tabSize: t = 2, tooltip: r = { enabled: !0 }, i18n: c, renderMenu: d, renderTooltip: m } = e;
|
|
2370
2373
|
if (!d || !m)
|
|
2371
2374
|
throw new Error("renderMenu and renderTooltip are required");
|
|
2372
|
-
return ze = [...n].map((
|
|
2375
|
+
return ze = [...n].map((a) => c(a)), Ve = d, Je = m, (a, i) => {
|
|
2373
2376
|
if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
|
|
2374
2377
|
return;
|
|
2375
|
-
const { value: u, selectionStart: f } =
|
|
2378
|
+
const { value: u, selectionStart: f } = a, b = i.target;
|
|
2376
2379
|
if (te = b, r.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
|
|
2377
|
-
setTimeout(() =>
|
|
2380
|
+
setTimeout(() => Me(b), 100);
|
|
2378
2381
|
}), b.addEventListener("keyup", () => {
|
|
2379
|
-
setTimeout(() =>
|
|
2382
|
+
setTimeout(() => Me(b), 100);
|
|
2380
2383
|
})), W) {
|
|
2381
2384
|
switch (i.key) {
|
|
2382
2385
|
case "ArrowDown":
|
|
2383
|
-
return i.preventDefault(),
|
|
2386
|
+
return i.preventDefault(), K < X.length - 1 && (K++, ne()), { ...a };
|
|
2384
2387
|
case "ArrowUp":
|
|
2385
|
-
return i.preventDefault(),
|
|
2388
|
+
return i.preventDefault(), K > 0 && (K--, ne()), { ...a };
|
|
2386
2389
|
case "Enter":
|
|
2387
|
-
if (i.preventDefault(), X[
|
|
2388
|
-
const h =
|
|
2390
|
+
if (i.preventDefault(), X[K]) {
|
|
2391
|
+
const h = ye(a, X[K]);
|
|
2389
2392
|
return Y(), h;
|
|
2390
2393
|
}
|
|
2391
2394
|
return;
|
|
2392
2395
|
case "Tab":
|
|
2393
|
-
if (i.preventDefault(), X[
|
|
2394
|
-
const h =
|
|
2396
|
+
if (i.preventDefault(), X[K]) {
|
|
2397
|
+
const h = ye(a, X[K]);
|
|
2395
2398
|
return Y(), h;
|
|
2396
2399
|
}
|
|
2397
2400
|
return;
|
|
2398
2401
|
case "Escape":
|
|
2399
|
-
return i.preventDefault(), Y(), { ...
|
|
2402
|
+
return i.preventDefault(), Y(), { ...a };
|
|
2400
2403
|
case "Backspace":
|
|
2401
2404
|
setTimeout(() => {
|
|
2402
2405
|
if (te) {
|
|
2403
|
-
const h = te.value, y = te.selectionStart,
|
|
2404
|
-
if (
|
|
2406
|
+
const h = te.value, y = te.selectionStart, z = fe(h, y), T = h.slice(z, y);
|
|
2407
|
+
if (T.length < l)
|
|
2405
2408
|
Y();
|
|
2406
2409
|
else {
|
|
2407
|
-
const w =
|
|
2408
|
-
w.length === 0 ? Y() : (X = w,
|
|
2410
|
+
const w = xe(T).slice(0, s);
|
|
2411
|
+
w.length === 0 ? Y() : (X = w, K = 0, ne());
|
|
2409
2412
|
}
|
|
2410
2413
|
}
|
|
2411
2414
|
}, 0);
|
|
2412
2415
|
return;
|
|
2413
2416
|
}
|
|
2414
2417
|
if (["ArrowDown", "ArrowUp", "Enter", "Tab", "Escape", "Backspace"].includes(i.key))
|
|
2415
|
-
return { ...
|
|
2418
|
+
return { ...a };
|
|
2416
2419
|
}
|
|
2417
2420
|
if (re("tab", i)) {
|
|
2418
2421
|
i.preventDefault();
|
|
2419
2422
|
const h = fe(u, f), y = u.slice(h, f);
|
|
2420
2423
|
if (y.length > 0) {
|
|
2421
|
-
const P =
|
|
2424
|
+
const P = xe(y);
|
|
2422
2425
|
if (P.length > 0)
|
|
2423
|
-
return
|
|
2426
|
+
return ye(a, P[0]);
|
|
2424
2427
|
}
|
|
2425
|
-
const
|
|
2428
|
+
const z = " ".repeat(t), T = u.slice(0, f) + z + u.slice(f), w = f + t;
|
|
2426
2429
|
return {
|
|
2427
|
-
value:
|
|
2430
|
+
value: T,
|
|
2428
2431
|
selectionStart: w,
|
|
2429
2432
|
selectionEnd: w
|
|
2430
2433
|
};
|
|
@@ -2432,55 +2435,55 @@ const oa = (e) => {
|
|
|
2432
2435
|
if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
|
|
2433
2436
|
return ee && clearTimeout(ee), ee = setTimeout(() => {
|
|
2434
2437
|
ee = null;
|
|
2435
|
-
const h = b.value, y = b.selectionStart,
|
|
2436
|
-
if (
|
|
2438
|
+
const h = b.value, y = b.selectionStart, z = fe(h, y), T = h.slice(z, y);
|
|
2439
|
+
if (T.length < l) {
|
|
2437
2440
|
Y();
|
|
2438
2441
|
return;
|
|
2439
2442
|
}
|
|
2440
|
-
let w =
|
|
2441
|
-
if (w = w.slice(0,
|
|
2443
|
+
let w = xe(T);
|
|
2444
|
+
if (w = w.slice(0, s), w.length === 0) {
|
|
2442
2445
|
Y();
|
|
2443
2446
|
return;
|
|
2444
2447
|
}
|
|
2445
|
-
X = w,
|
|
2446
|
-
}, 0), { ...
|
|
2448
|
+
X = w, K = 0, W ? ne() : so(b, w);
|
|
2449
|
+
}, 0), { ...a };
|
|
2447
2450
|
};
|
|
2448
2451
|
};
|
|
2449
|
-
function
|
|
2452
|
+
function xe(e) {
|
|
2450
2453
|
const n = e.toLowerCase();
|
|
2451
|
-
return ze.filter((
|
|
2452
|
-
const
|
|
2453
|
-
return
|
|
2454
|
-
}).sort((
|
|
2455
|
-
const t =
|
|
2454
|
+
return ze.filter((l) => {
|
|
2455
|
+
const s = l.label.toLowerCase();
|
|
2456
|
+
return s.startsWith(n) || s.includes(n) || s.split("_").map((t) => t[0]).join("").startsWith(n);
|
|
2457
|
+
}).sort((l, s) => {
|
|
2458
|
+
const t = l.label.toLowerCase(), r = s.label.toLowerCase(), c = t.startsWith(n), d = r.startsWith(n);
|
|
2456
2459
|
if (c && !d) return -1;
|
|
2457
2460
|
if (!c && d) return 1;
|
|
2458
|
-
const m = t.indexOf(n),
|
|
2459
|
-
return m !==
|
|
2461
|
+
const m = t.indexOf(n), a = r.indexOf(n);
|
|
2462
|
+
return m !== a ? m - a : t.length !== r.length ? t.length - r.length : t.localeCompare(r);
|
|
2460
2463
|
});
|
|
2461
2464
|
}
|
|
2462
2465
|
function fe(e, n) {
|
|
2463
|
-
let
|
|
2464
|
-
for (;
|
|
2465
|
-
|
|
2466
|
-
return
|
|
2466
|
+
let l = n;
|
|
2467
|
+
for (; l > 0 && /[a-zA-Z0-9_$]/.test(e[l - 1]); )
|
|
2468
|
+
l--;
|
|
2469
|
+
return l;
|
|
2467
2470
|
}
|
|
2468
|
-
function
|
|
2469
|
-
Y(), X = n,
|
|
2470
|
-
const
|
|
2471
|
-
W =
|
|
2472
|
-
|
|
2471
|
+
function so(e, n) {
|
|
2472
|
+
Y(), X = n, K = 0;
|
|
2473
|
+
const l = Ze(e);
|
|
2474
|
+
W = Ve(n, K, (s) => {
|
|
2475
|
+
K = s, ne();
|
|
2473
2476
|
}), Object.assign(W.style, {
|
|
2474
2477
|
position: "fixed",
|
|
2475
|
-
left: `${
|
|
2476
|
-
top: `${
|
|
2478
|
+
left: `${l.left}px`,
|
|
2479
|
+
top: `${l.top + 24}px`,
|
|
2477
2480
|
zIndex: "10000"
|
|
2478
2481
|
}), document.body.appendChild(W);
|
|
2479
2482
|
}
|
|
2480
2483
|
function ne() {
|
|
2481
2484
|
if (!W || !te) return;
|
|
2482
|
-
const e =
|
|
2483
|
-
|
|
2485
|
+
const e = Ve(X, K, (l) => {
|
|
2486
|
+
K = l, ne();
|
|
2484
2487
|
}), n = W.getBoundingClientRect();
|
|
2485
2488
|
W.replaceWith(e), W = e, Object.assign(W.style, {
|
|
2486
2489
|
position: "fixed",
|
|
@@ -2489,55 +2492,55 @@ function ne() {
|
|
|
2489
2492
|
zIndex: "10000"
|
|
2490
2493
|
});
|
|
2491
2494
|
}
|
|
2492
|
-
function
|
|
2493
|
-
const { value:
|
|
2495
|
+
function ye(e, n) {
|
|
2496
|
+
const { value: l, selectionStart: s } = e, t = fe(l, s), r = n.insert || n.label, c = /\$\{([^}]*)\}/g;
|
|
2494
2497
|
let d = r;
|
|
2495
2498
|
const m = [];
|
|
2496
|
-
let
|
|
2497
|
-
for (; (
|
|
2498
|
-
const h =
|
|
2499
|
-
m.push({ index: y, text: h, length:
|
|
2499
|
+
let a;
|
|
2500
|
+
for (; (a = c.exec(r)) !== null; ) {
|
|
2501
|
+
const h = a[1], y = a.index, z = a[0].length;
|
|
2502
|
+
m.push({ index: y, text: h, length: z });
|
|
2500
2503
|
}
|
|
2501
2504
|
d = r.replace(/\$\{([^}]*)\}/g, "$1");
|
|
2502
2505
|
const i = m[0];
|
|
2503
2506
|
let u = t + d.length, f = t + d.length;
|
|
2504
2507
|
if (i) {
|
|
2505
|
-
let h = 0, y = 0,
|
|
2506
|
-
for (; y < r.length && !
|
|
2507
|
-
const
|
|
2508
|
-
|
|
2508
|
+
let h = 0, y = 0, z = !1;
|
|
2509
|
+
for (; y < r.length && !z; ) {
|
|
2510
|
+
const T = m.find((w) => w.index === y);
|
|
2511
|
+
T ? (h += T.text.length, y += T.length, T === i && (u = t + h - T.text.length, f = t + h, z = !0)) : (h++, y++);
|
|
2509
2512
|
}
|
|
2510
2513
|
}
|
|
2511
2514
|
return {
|
|
2512
|
-
value:
|
|
2515
|
+
value: l.slice(0, t) + d + l.slice(s),
|
|
2513
2516
|
selectionStart: u,
|
|
2514
2517
|
selectionEnd: f
|
|
2515
2518
|
};
|
|
2516
2519
|
}
|
|
2517
2520
|
function Y() {
|
|
2518
|
-
ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [],
|
|
2521
|
+
ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [], K = 0, te = null);
|
|
2519
2522
|
}
|
|
2520
2523
|
function Ze(e) {
|
|
2521
|
-
const n = e.getBoundingClientRect(), { value:
|
|
2524
|
+
const n = e.getBoundingClientRect(), { value: l, selectionStart: s } = e, r = l.substring(0, s).split(`
|
|
2522
2525
|
`), c = r.length, d = r[r.length - 1] || "", m = parseInt(getComputedStyle(e).lineHeight) || 20;
|
|
2523
2526
|
return {
|
|
2524
2527
|
left: n.left + 10 + d.length * 8,
|
|
2525
2528
|
top: n.top + (c - 1) * m
|
|
2526
2529
|
};
|
|
2527
2530
|
}
|
|
2528
|
-
function
|
|
2529
|
-
|
|
2530
|
-
const n = e.selectionStart,
|
|
2531
|
-
if (n ===
|
|
2531
|
+
function Me(e) {
|
|
2532
|
+
se && clearTimeout(se), se = setTimeout(() => {
|
|
2533
|
+
const n = e.selectionStart, l = e.selectionEnd;
|
|
2534
|
+
if (n === l) {
|
|
2532
2535
|
ie();
|
|
2533
2536
|
return;
|
|
2534
2537
|
}
|
|
2535
|
-
const
|
|
2536
|
-
if (!
|
|
2538
|
+
const s = e.value.substring(n, l).trim();
|
|
2539
|
+
if (!s) {
|
|
2537
2540
|
ie();
|
|
2538
2541
|
return;
|
|
2539
2542
|
}
|
|
2540
|
-
const t = ze.find((d) => d.label ===
|
|
2543
|
+
const t = ze.find((d) => d.label === s);
|
|
2541
2544
|
if (!t) {
|
|
2542
2545
|
ie();
|
|
2543
2546
|
return;
|
|
@@ -2549,7 +2552,7 @@ function Be(e) {
|
|
|
2549
2552
|
}, 300);
|
|
2550
2553
|
}
|
|
2551
2554
|
function ie() {
|
|
2552
|
-
|
|
2555
|
+
se && (clearTimeout(se), se = null), G && (G.style.opacity = "0", setTimeout(() => {
|
|
2553
2556
|
G && (G.remove(), G = null);
|
|
2554
2557
|
}, 150));
|
|
2555
2558
|
}
|
|
@@ -2557,26 +2560,26 @@ typeof document < "u" && document.addEventListener("mousedown", (e) => {
|
|
|
2557
2560
|
const n = e.target;
|
|
2558
2561
|
W && !W.contains(n) && Y(), G && !G.contains(n) && ie();
|
|
2559
2562
|
});
|
|
2560
|
-
const
|
|
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([...
|
|
2563
|
+
const _e = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), lo = ["else", "end", "call", "fade"], oo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ao = (e) => {
|
|
2564
|
+
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([...lo, ...n])).map(oo).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
|
|
2562
2565
|
return new RegExp(c, "g");
|
|
2563
|
-
},
|
|
2564
|
-
const
|
|
2565
|
-
let
|
|
2566
|
-
for (const r of n.matchAll(
|
|
2567
|
-
const [c, d, m,
|
|
2566
|
+
}, io = (e) => (n) => {
|
|
2567
|
+
const l = ao(e);
|
|
2568
|
+
let s = "", t = 0;
|
|
2569
|
+
for (const r of n.matchAll(l)) {
|
|
2570
|
+
const [c, d, m, a, i, u, f, b] = r;
|
|
2568
2571
|
let h = "";
|
|
2569
|
-
d ? h = "comment" : m ? h = "str" :
|
|
2572
|
+
d ? h = "comment" : m ? h = "str" : a ? h = "num" : i ? h = "word" : u ? h = "var" : f ? h = "event" : b && (h = "operator"), s += _e(n.slice(t, r.index)), s += `<span class="tok--${h}">${_e(c)}</span>`, t = r.index + c.length;
|
|
2570
2573
|
}
|
|
2571
|
-
return
|
|
2574
|
+
return s += _e(n.slice(t)), s;
|
|
2572
2575
|
}, Xe = {
|
|
2573
2576
|
word: "text-blue-600 dark:text-blue-400",
|
|
2574
2577
|
func: "text-yellow-600 dark:text-yellow-400",
|
|
2575
2578
|
var: "text-cyan-600 dark:text-cyan-400",
|
|
2576
2579
|
event: "text-purple-600 dark:text-purple-400"
|
|
2577
|
-
},
|
|
2578
|
-
const
|
|
2579
|
-
return
|
|
2580
|
+
}, ro = (e, n, l) => {
|
|
2581
|
+
const s = document.createElement("div");
|
|
2582
|
+
return s.className = `
|
|
2580
2583
|
fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
|
|
2581
2584
|
overflow-y-auto p-1 rounded-lg shadow-lg border
|
|
2582
2585
|
border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800
|
|
@@ -2595,28 +2598,28 @@ const $e = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
2595
2598
|
${t.detail ? `<span class="text-xs text-gray-500 dark:text-gray-400 ml-2">${t.detail}</span>` : ""}
|
|
2596
2599
|
</div>
|
|
2597
2600
|
${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
|
-
|
|
2601
|
+
`, d.addEventListener("click", () => l(r)), s.appendChild(d);
|
|
2602
|
+
}), s;
|
|
2603
|
+
}, co = (e, n) => {
|
|
2604
|
+
const l = document.createElement("div");
|
|
2605
|
+
l.className = `
|
|
2603
2606
|
fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
|
|
2604
2607
|
min-w-[50px] min-h-[20px] rounded-lg shadow-lg border
|
|
2605
2608
|
pointer-events-none transition-opacity duration-150
|
|
2606
2609
|
bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700
|
|
2607
2610
|
text-gray-700 dark:text-gray-300 pointer-events-none
|
|
2608
|
-
`,
|
|
2611
|
+
`, l.style.cssText = `
|
|
2609
2612
|
left: ${n.left + 40}px; top: ${n.top - 10}px;
|
|
2610
2613
|
transform: translateX(-50%) translateY(-100%); opacity: 0;
|
|
2611
2614
|
`;
|
|
2612
2615
|
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>`),
|
|
2616
|
+
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>`), l.innerHTML = t;
|
|
2614
2617
|
const r = document.createElement("div");
|
|
2615
2618
|
return r.className = `
|
|
2616
2619
|
absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
|
|
2617
2620
|
bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
|
|
2618
|
-
`,
|
|
2619
|
-
},
|
|
2621
|
+
`, l.appendChild(r), l;
|
|
2622
|
+
}, uo = [
|
|
2620
2623
|
{ label: "if", type: "word", insert: `if:\${$v0<10};
|
|
2621
2624
|
|
|
2622
2625
|
else;
|
|
@@ -2651,7 +2654,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2651
2654
|
{ label: "$e", type: "var", insert: "$e${0}", detail: "var event" },
|
|
2652
2655
|
{ label: "$c", type: "var", insert: "$c${0}", detail: "var call" },
|
|
2653
2656
|
{ label: "$p", type: "var", insert: "$p${0}", detail: "gpio" }
|
|
2654
|
-
],
|
|
2657
|
+
], Ca = /* @__PURE__ */ S({
|
|
2655
2658
|
__name: "ScriptEditor",
|
|
2656
2659
|
props: {
|
|
2657
2660
|
modelValue: {},
|
|
@@ -2659,23 +2662,23 @@ end;`, detail: "event(name: string)" },
|
|
|
2659
2662
|
},
|
|
2660
2663
|
emits: ["update:modelValue", "update"],
|
|
2661
2664
|
setup(e, { emit: n }) {
|
|
2662
|
-
const
|
|
2663
|
-
let
|
|
2664
|
-
const t = [...
|
|
2665
|
-
return
|
|
2665
|
+
const l = n;
|
|
2666
|
+
let s;
|
|
2667
|
+
const t = [...uo, ...e.suggestions];
|
|
2668
|
+
return oe(
|
|
2666
2669
|
() => e.modelValue,
|
|
2667
2670
|
(r) => {
|
|
2668
|
-
|
|
2671
|
+
s.update({ value: r });
|
|
2669
2672
|
}
|
|
2670
2673
|
), Q(() => {
|
|
2671
|
-
|
|
2674
|
+
s = new Zl("#editor", {
|
|
2672
2675
|
value: e.modelValue,
|
|
2673
2676
|
lineNumbers: !0,
|
|
2674
|
-
highlighters: [
|
|
2677
|
+
highlighters: [io(t)],
|
|
2675
2678
|
plugins: [
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
+
Ql(),
|
|
2680
|
+
eo(),
|
|
2681
|
+
no({
|
|
2679
2682
|
customSuggestions: t,
|
|
2680
2683
|
minPrefixLength: 1,
|
|
2681
2684
|
maxSuggestions: 20,
|
|
@@ -2683,40 +2686,40 @@ end;`, detail: "event(name: string)" },
|
|
|
2683
2686
|
tooltip: {
|
|
2684
2687
|
enabled: !0
|
|
2685
2688
|
},
|
|
2686
|
-
renderMenu:
|
|
2687
|
-
renderTooltip:
|
|
2689
|
+
renderMenu: ro,
|
|
2690
|
+
renderTooltip: co
|
|
2688
2691
|
}),
|
|
2689
|
-
|
|
2692
|
+
to()
|
|
2690
2693
|
],
|
|
2691
2694
|
styles: { fontSize: "14px" }
|
|
2692
|
-
}),
|
|
2693
|
-
|
|
2695
|
+
}), s.onUpdate((r) => {
|
|
2696
|
+
l("update:modelValue", r);
|
|
2694
2697
|
});
|
|
2695
|
-
}),
|
|
2696
|
-
|
|
2698
|
+
}), ke(() => {
|
|
2699
|
+
s.destroy();
|
|
2697
2700
|
}), (r, c) => (p(), v("div", null, [...c[0] || (c[0] = [
|
|
2698
|
-
|
|
2701
|
+
o("div", {
|
|
2699
2702
|
class: "",
|
|
2700
2703
|
id: "editor"
|
|
2701
2704
|
}, null, -1)
|
|
2702
2705
|
])]));
|
|
2703
2706
|
}
|
|
2704
|
-
}),
|
|
2707
|
+
}), mo = { class: "max-w-4xl mx-auto" }, po = {
|
|
2705
2708
|
key: 0,
|
|
2706
2709
|
class: "text-sm"
|
|
2707
|
-
},
|
|
2710
|
+
}, fo = {
|
|
2708
2711
|
key: 0,
|
|
2709
2712
|
class: "text-gray-500"
|
|
2710
|
-
},
|
|
2713
|
+
}, vo = {
|
|
2711
2714
|
key: 1,
|
|
2712
2715
|
class: "text-red-600"
|
|
2713
|
-
},
|
|
2716
|
+
}, ho = ["innerHTML"], go = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", bo = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", Sa = /* @__PURE__ */ S({
|
|
2714
2717
|
__name: "ScriptViewDocs",
|
|
2715
2718
|
props: {
|
|
2716
2719
|
lang: { default: "en" }
|
|
2717
2720
|
},
|
|
2718
2721
|
setup(e) {
|
|
2719
|
-
const n = L(""),
|
|
2722
|
+
const n = L(""), l = L(""), s = L(null), t = L(!1), r = L(null);
|
|
2720
2723
|
let c = null;
|
|
2721
2724
|
const d = () => new Promise((i, u) => {
|
|
2722
2725
|
if (typeof window > "u" || typeof document > "u") {
|
|
@@ -2732,7 +2735,7 @@ end;`, detail: "event(name: string)" },
|
|
|
2732
2735
|
return;
|
|
2733
2736
|
}
|
|
2734
2737
|
const f = document.createElement("script");
|
|
2735
|
-
f.src =
|
|
2738
|
+
f.src = bo, f.async = !0, f.onload = () => {
|
|
2736
2739
|
window.marked ? (window.marked.setOptions({
|
|
2737
2740
|
gfm: !0,
|
|
2738
2741
|
breaks: !0,
|
|
@@ -2751,23 +2754,23 @@ end;`, detail: "event(name: string)" },
|
|
|
2751
2754
|
continue;
|
|
2752
2755
|
}
|
|
2753
2756
|
if (b && h.includes(":")) {
|
|
2754
|
-
const [y,
|
|
2755
|
-
y &&
|
|
2757
|
+
const [y, z] = h.split(":").map((T) => T.trim());
|
|
2758
|
+
y && z && (y.toLowerCase().includes("version") && (f.version = z), (y.toLowerCase().includes("обновлено") || y.toLowerCase().includes("updated")) && (f.updated = z));
|
|
2756
2759
|
}
|
|
2757
2760
|
}
|
|
2758
2761
|
return f;
|
|
2759
|
-
},
|
|
2762
|
+
}, a = async (i) => {
|
|
2760
2763
|
if (!c) {
|
|
2761
2764
|
r.value = "error";
|
|
2762
2765
|
return;
|
|
2763
2766
|
}
|
|
2764
|
-
t.value = !0, r.value = null,
|
|
2767
|
+
t.value = !0, r.value = null, l.value = "";
|
|
2765
2768
|
try {
|
|
2766
|
-
const u = `${
|
|
2769
|
+
const u = `${go}${i}.md`, f = await fetch(u);
|
|
2767
2770
|
if (!f.ok)
|
|
2768
2771
|
throw new Error(`HTTP ${f.status}: ${f.statusText}`);
|
|
2769
2772
|
const b = await f.text();
|
|
2770
|
-
n.value = b,
|
|
2773
|
+
n.value = b, s.value = m(b), l.value = c.parse(b);
|
|
2771
2774
|
} catch (u) {
|
|
2772
2775
|
const f = u instanceof Error ? u.message : "";
|
|
2773
2776
|
r.value = f, console.error("Error loading docs:", u);
|
|
@@ -2779,46 +2782,46 @@ end;`, detail: "event(name: string)" },
|
|
|
2779
2782
|
try {
|
|
2780
2783
|
c = await d();
|
|
2781
2784
|
const i = e.lang ? "ru" : "en";
|
|
2782
|
-
await
|
|
2785
|
+
await a(i);
|
|
2783
2786
|
} catch (i) {
|
|
2784
2787
|
const u = i instanceof Error ? i.message : "";
|
|
2785
2788
|
r.value = u, console.error("Initialization error:", i);
|
|
2786
2789
|
}
|
|
2787
|
-
}), (i, u) => (p(), v("div",
|
|
2788
|
-
t.value || r.value ? (p(), v("div",
|
|
2789
|
-
t.value ? (p(), v("span",
|
|
2790
|
-
r.value ? (p(), v("span",
|
|
2791
|
-
])) :
|
|
2792
|
-
|
|
2790
|
+
}), (i, u) => (p(), v("div", mo, [
|
|
2791
|
+
t.value || r.value ? (p(), v("div", po, [
|
|
2792
|
+
t.value ? (p(), v("span", fo, "⏳")) : V("", !0),
|
|
2793
|
+
r.value ? (p(), v("span", vo, "❌ " + _(r.value), 1)) : V("", !0)
|
|
2794
|
+
])) : V("", !0),
|
|
2795
|
+
o("div", {
|
|
2793
2796
|
class: "docs-content",
|
|
2794
|
-
innerHTML:
|
|
2795
|
-
}, null, 8,
|
|
2797
|
+
innerHTML: l.value
|
|
2798
|
+
}, null, 8, ho)
|
|
2796
2799
|
]));
|
|
2797
2800
|
}
|
|
2798
|
-
}),
|
|
2801
|
+
}), xo = { class: "my-4" }, za = /* @__PURE__ */ S({
|
|
2799
2802
|
__name: "ScriptDialog",
|
|
2800
2803
|
props: {
|
|
2801
2804
|
idScript: {}
|
|
2802
2805
|
},
|
|
2803
2806
|
emits: ["add", "close"],
|
|
2804
2807
|
setup(e, { emit: n }) {
|
|
2805
|
-
const
|
|
2808
|
+
const l = n, { defineField: s, handleSubmit: t, isValid: r } = _t({
|
|
2806
2809
|
validationSchema: () => ({
|
|
2807
|
-
name: [
|
|
2810
|
+
name: [$t, kt(8)]
|
|
2808
2811
|
})
|
|
2809
|
-
}), [c, d] =
|
|
2810
|
-
|
|
2811
|
-
},
|
|
2812
|
-
m(), c.value = "",
|
|
2812
|
+
}), [c, d] = s("name"), m = () => {
|
|
2813
|
+
l("add", c.value);
|
|
2814
|
+
}, a = t(() => {
|
|
2815
|
+
m(), c.value = "", l("close", new Event("close"));
|
|
2813
2816
|
});
|
|
2814
2817
|
return Q(() => {
|
|
2815
2818
|
e.idScript || (c.value = "boot");
|
|
2816
2819
|
}), (i, u) => {
|
|
2817
2820
|
const f = J, b = A;
|
|
2818
|
-
return p(), v("div",
|
|
2819
|
-
g(f,
|
|
2821
|
+
return p(), v("div", xo, [
|
|
2822
|
+
g(f, H({
|
|
2820
2823
|
modelValue: q(c),
|
|
2821
|
-
"onUpdate:modelValue": u[0] || (u[0] = (h) =>
|
|
2824
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => ot(c) ? c.value = h : null)
|
|
2822
2825
|
}, q(d), {
|
|
2823
2826
|
disabled: !e.idScript,
|
|
2824
2827
|
label: i.$t("name")
|
|
@@ -2827,151 +2830,26 @@ end;`, detail: "event(name: string)" },
|
|
|
2827
2830
|
class: "w-full",
|
|
2828
2831
|
color: "blue",
|
|
2829
2832
|
disabled: !q(r),
|
|
2830
|
-
onClick: q(
|
|
2833
|
+
onClick: q(a)
|
|
2831
2834
|
}, {
|
|
2832
2835
|
default: x(() => [
|
|
2833
|
-
|
|
2836
|
+
j(_(i.$t("add")), 1)
|
|
2834
2837
|
]),
|
|
2835
2838
|
_: 1
|
|
2836
2839
|
}, 8, ["disabled", "onClick"])
|
|
2837
2840
|
]);
|
|
2838
2841
|
};
|
|
2839
2842
|
}
|
|
2840
|
-
}),
|
|
2841
|
-
__name: "VisionIcon",
|
|
2842
|
-
props: {
|
|
2843
|
-
name: {},
|
|
2844
|
-
size: { default: 20 }
|
|
2845
|
-
},
|
|
2846
|
-
setup(e) {
|
|
2847
|
-
const n = {
|
|
2848
|
-
home: ["M3 10.5 12 3l9 7.5", "M5 9.5V21h14V9.5"],
|
|
2849
|
-
chart: ["M4 19V5", "M4 19h16", "M8 16v-5", "M12 16V8", "M16 16v-3", "M20 16V6"],
|
|
2850
|
-
card: ["M3 6h18v12H3z", "M3 10h18"],
|
|
2851
|
-
user: ["M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M4 21a8 8 0 0 1 16 0"],
|
|
2852
|
-
users: ["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", "M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M22 21v-2a4 4 0 0 0-3-3.9", "M16 3.1a4 4 0 0 1 0 7.8"],
|
|
2853
|
-
document: ["M6 3h8l4 4v14H6z", "M14 3v4h4", "M9 12h6", "M9 16h6"],
|
|
2854
|
-
rocket: ["M5 15c-1 3-1 4-1 5 1 0 2 0 5-1", "M9 15l-3-3c4-8 8-9 12-9 0 4-1 8-9 12z", "M14 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0"],
|
|
2855
|
-
search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16", "M21 21l-4.3-4.3"],
|
|
2856
|
-
settings: ["M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7", "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 2-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21h-2.8v-.2a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1-2-2 .1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3v-2.8h.2a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-2 .1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6V3h2.8v.2a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1 2 2-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2V12h-.2a1.7 1.7 0 0 0-1.6 1z"],
|
|
2857
|
-
bell: ["M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9", "M13.7 21a2 2 0 0 1-3.4 0"],
|
|
2858
|
-
arrowRight: ["M5 12h14", "M13 6l6 6-6 6"],
|
|
2859
|
-
arrowUpRight: ["M7 17 17 7", "M8 7h9v9"],
|
|
2860
|
-
check: ["M20 6 9 17l-5-5"],
|
|
2861
|
-
plus: ["M12 5v14", "M5 12h14"],
|
|
2862
|
-
dots: ["M5 12h.01", "M12 12h.01", "M19 12h.01"],
|
|
2863
|
-
logout: ["M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", "M16 17l5-5-5-5", "M21 12H9"],
|
|
2864
|
-
sun: ["M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10", "M12 1v2", "M12 21v2", "M4.2 4.2l1.4 1.4", "M18.4 18.4l1.4 1.4", "M1 12h2", "M21 12h2", "M4.2 19.8l1.4-1.4", "M18.4 5.6l1.4-1.4"],
|
|
2865
|
-
moon: ["M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8"],
|
|
2866
|
-
help: ["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20", "M9.1 9a3 3 0 1 1 5.8 1c0 2-3 2-3 4", "M12 17h.01"],
|
|
2867
|
-
wallet: ["M3 7h18v12H3z", "M3 7l2-3h14l2 3", "M16 13h2"],
|
|
2868
|
-
trendUp: ["M3 17l6-6 4 4 8-8", "M15 7h6v6"],
|
|
2869
|
-
trendDown: ["M3 7l6 6 4-4 8 8", "M15 17h6v-6"],
|
|
2870
|
-
menu: ["M4 6h16", "M4 12h16", "M4 18h16"],
|
|
2871
|
-
close: ["M6 6l12 12", "M18 6 6 18"],
|
|
2872
|
-
chevronDown: ["M6 9l6 6 6-6"],
|
|
2873
|
-
download: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"],
|
|
2874
|
-
edit: ["M12 20h9", "M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"],
|
|
2875
|
-
trash: ["M3 6h18", "M8 6V4h8v2", "M19 6l-1 15H6L5 6", "M10 11v6", "M14 11v6"],
|
|
2876
|
-
calendar: ["M4 5h16v16H4z", "M16 3v4", "M8 3v4", "M4 10h16"],
|
|
2877
|
-
filter: ["M3 5h18", "M6 12h12", "M10 19h4"],
|
|
2878
|
-
star: ["M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z"],
|
|
2879
|
-
bolt: ["M13 2 3 14h8l-1 8 11-13h-8z"],
|
|
2880
|
-
wifi: ["M5 12.5a10 10 0 0 1 14 0", "M8.5 16a5 5 0 0 1 7 0", "M12 20h.01"],
|
|
2881
|
-
click: ["M9 9l10 4-4 2-2 4z", "M4 4l3 3"],
|
|
2882
|
-
shopping: ["M6 6h15l-1.5 9h-12z", "M6 6 5 3H2", "M9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2", "M18 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2"],
|
|
2883
|
-
box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
|
|
2884
|
-
external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
|
|
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
|
-
}, s = E(() => n[e.name] ?? n.help);
|
|
2887
|
-
return (l, t) => (p(), v("svg", {
|
|
2888
|
-
width: e.size,
|
|
2889
|
-
height: e.size,
|
|
2890
|
-
viewBox: "0 0 24 24",
|
|
2891
|
-
fill: "none",
|
|
2892
|
-
stroke: "currentColor",
|
|
2893
|
-
"stroke-width": "1.8",
|
|
2894
|
-
"stroke-linecap": "round",
|
|
2895
|
-
"stroke-linejoin": "round",
|
|
2896
|
-
"aria-hidden": "true"
|
|
2897
|
-
}, [
|
|
2898
|
-
(p(!0), v(B, null, N(s.value, (r, c) => (p(), v("path", {
|
|
2899
|
-
key: c,
|
|
2900
|
-
d: r
|
|
2901
|
-
}, null, 8, wa))), 128))
|
|
2902
|
-
], 8, ka));
|
|
2903
|
-
}
|
|
2904
|
-
}), jo = /* @__PURE__ */ M({
|
|
2905
|
-
__name: "VisionCard",
|
|
2906
|
-
props: {
|
|
2907
|
-
padded: { type: Boolean, default: !0 }
|
|
2908
|
-
},
|
|
2909
|
-
setup(e) {
|
|
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])
|
|
2913
|
-
}, [
|
|
2914
|
-
k(s.$slots, "default")
|
|
2915
|
-
], 2));
|
|
2916
|
-
}
|
|
2917
|
-
}), Ca = { class: "block" }, Ma = {
|
|
2918
|
-
key: 0,
|
|
2919
|
-
class: "mb-2 block text-xs font-medium text-vision-muted"
|
|
2920
|
-
}, za = ["type", "name", "placeholder", "autocomplete"], Sa = {
|
|
2921
|
-
key: 1,
|
|
2922
|
-
class: "mt-1 block text-xs text-vision-danger"
|
|
2923
|
-
}, Po = /* @__PURE__ */ M({
|
|
2924
|
-
__name: "VisionInput",
|
|
2925
|
-
props: /* @__PURE__ */ rt({
|
|
2926
|
-
label: { default: "" },
|
|
2927
|
-
placeholder: { default: "" },
|
|
2928
|
-
type: { default: "text" },
|
|
2929
|
-
name: { default: "" },
|
|
2930
|
-
autocomplete: { default: "off" },
|
|
2931
|
-
icon: { default: "" },
|
|
2932
|
-
error: { default: "" }
|
|
2933
|
-
}, {
|
|
2934
|
-
modelValue: { default: "" },
|
|
2935
|
-
modelModifiers: {}
|
|
2936
|
-
}),
|
|
2937
|
-
emits: ["update:modelValue"],
|
|
2938
|
-
setup(e) {
|
|
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"])
|
|
2944
|
-
}, [
|
|
2945
|
-
e.icon ? (p(), I(de, {
|
|
2946
|
-
key: 0,
|
|
2947
|
-
name: e.icon,
|
|
2948
|
-
size: 18,
|
|
2949
|
-
class: "shrink-0 text-vision-muted"
|
|
2950
|
-
}, null, 8, ["name"])) : z("", !0),
|
|
2951
|
-
he(a("input", {
|
|
2952
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
2953
|
-
type: e.type,
|
|
2954
|
-
name: e.name,
|
|
2955
|
-
placeholder: e.placeholder,
|
|
2956
|
-
autocomplete: e.autocomplete,
|
|
2957
|
-
class: "h-11 min-w-0 flex-1 bg-transparent text-sm text-white placeholder:text-vision-muted/70 focus:outline-none"
|
|
2958
|
-
}, null, 8, za), [
|
|
2959
|
-
[it, n.value]
|
|
2960
|
-
])
|
|
2961
|
-
], 2),
|
|
2962
|
-
e.error ? (p(), v("span", Sa, _(e.error), 1)) : z("", !0)
|
|
2963
|
-
]));
|
|
2964
|
-
}
|
|
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 = {
|
|
2843
|
+
}), yo = ["aria-label"], _o = { class: "hidden lg:inline" }, $o = ["aria-label"], ko = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, wo = ["placeholder"], Co = { class: "max-h-[55vh] overflow-y-auto p-2" }, So = ["href"], zo = { class: "min-w-0" }, Vo = { class: "flex flex-wrap items-baseline gap-2" }, To = { class: "text-sm font-medium text-gray-900 dark:text-white" }, Eo = {
|
|
2966
2844
|
key: 0,
|
|
2967
2845
|
class: "text-[10px] uppercase tracking-wider text-gray-400"
|
|
2968
|
-
},
|
|
2846
|
+
}, Lo = {
|
|
2969
2847
|
key: 0,
|
|
2970
2848
|
class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
|
|
2971
|
-
},
|
|
2849
|
+
}, Bo = {
|
|
2972
2850
|
key: 0,
|
|
2973
2851
|
class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
|
|
2974
|
-
},
|
|
2852
|
+
}, Va = /* @__PURE__ */ S({
|
|
2975
2853
|
__name: "VisionSearch",
|
|
2976
2854
|
props: {
|
|
2977
2855
|
items: {},
|
|
@@ -2981,97 +2859,97 @@ end;`, detail: "event(name: string)" },
|
|
|
2981
2859
|
emptyText: { default: "Ничего не найдено. Попробуйте другой запрос." }
|
|
2982
2860
|
},
|
|
2983
2861
|
setup(e) {
|
|
2984
|
-
const n = e,
|
|
2985
|
-
const
|
|
2986
|
-
return (
|
|
2862
|
+
const n = e, l = L(!1), s = L(""), t = L(null), r = M(() => {
|
|
2863
|
+
const a = s.value.trim().toLowerCase();
|
|
2864
|
+
return (a ? n.items.filter((u) => `${u.title} ${u.description ?? ""} ${u.group ?? ""}`.toLowerCase().includes(a)) : n.items).slice(0, 14);
|
|
2987
2865
|
}), c = async () => {
|
|
2988
|
-
var
|
|
2989
|
-
|
|
2866
|
+
var a;
|
|
2867
|
+
l.value = !0, s.value = "", await He(), (a = t.value) == null || a.focus();
|
|
2990
2868
|
}, d = () => {
|
|
2991
|
-
|
|
2992
|
-
}, m = (
|
|
2993
|
-
if ((
|
|
2994
|
-
|
|
2869
|
+
l.value = !1, s.value = "";
|
|
2870
|
+
}, m = (a) => {
|
|
2871
|
+
if ((a.metaKey || a.ctrlKey) && a.key.toLowerCase() === "k") {
|
|
2872
|
+
a.preventDefault(), l.value ? d() : c();
|
|
2995
2873
|
return;
|
|
2996
2874
|
}
|
|
2997
|
-
|
|
2875
|
+
a.key === "Escape" && l.value && d();
|
|
2998
2876
|
};
|
|
2999
|
-
return
|
|
3000
|
-
typeof document < "u" && (document.body.style.overflow =
|
|
3001
|
-
}), Q(() => window.addEventListener("keydown", m)),
|
|
2877
|
+
return oe(l, (a) => {
|
|
2878
|
+
typeof document < "u" && (document.body.style.overflow = a ? "hidden" : "");
|
|
2879
|
+
}), Q(() => window.addEventListener("keydown", m)), ke(() => {
|
|
3002
2880
|
window.removeEventListener("keydown", m), typeof document < "u" && (document.body.style.overflow = "");
|
|
3003
|
-
}), (
|
|
3004
|
-
|
|
2881
|
+
}), (a, i) => (p(), v(B, null, [
|
|
2882
|
+
o("button", {
|
|
3005
2883
|
type: "button",
|
|
3006
2884
|
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",
|
|
3007
2885
|
"aria-label": e.label,
|
|
3008
2886
|
onClick: c
|
|
3009
2887
|
}, [
|
|
3010
|
-
g(
|
|
2888
|
+
g(me, {
|
|
3011
2889
|
name: "search",
|
|
3012
2890
|
size: 17
|
|
3013
2891
|
}),
|
|
3014
|
-
|
|
3015
|
-
i[1] || (i[1] =
|
|
3016
|
-
], 8,
|
|
3017
|
-
(p(), I(
|
|
3018
|
-
|
|
2892
|
+
o("span", _o, _(e.label), 1),
|
|
2893
|
+
i[1] || (i[1] = o("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))
|
|
2894
|
+
], 8, yo),
|
|
2895
|
+
(p(), I(at, { to: "body" }, [
|
|
2896
|
+
l.value ? (p(), v("div", {
|
|
3019
2897
|
key: 0,
|
|
3020
2898
|
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",
|
|
3021
|
-
onClick:
|
|
2899
|
+
onClick: R(d, ["self"])
|
|
3022
2900
|
}, [
|
|
3023
|
-
|
|
2901
|
+
o("div", {
|
|
3024
2902
|
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
2903
|
role: "dialog",
|
|
3026
2904
|
"aria-modal": "true",
|
|
3027
2905
|
"aria-label": e.dialogLabel
|
|
3028
2906
|
}, [
|
|
3029
|
-
|
|
3030
|
-
g(
|
|
2907
|
+
o("div", ko, [
|
|
2908
|
+
g(me, {
|
|
3031
2909
|
name: "search",
|
|
3032
2910
|
size: 18,
|
|
3033
2911
|
class: "shrink-0 text-gray-400"
|
|
3034
2912
|
}),
|
|
3035
|
-
|
|
2913
|
+
we(o("input", {
|
|
3036
2914
|
ref_key: "input",
|
|
3037
2915
|
ref: t,
|
|
3038
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) =>
|
|
2916
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => s.value = u),
|
|
3039
2917
|
type: "search",
|
|
3040
2918
|
placeholder: e.placeholder,
|
|
3041
2919
|
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"
|
|
3042
|
-
}, null, 8,
|
|
3043
|
-
[
|
|
2920
|
+
}, null, 8, wo), [
|
|
2921
|
+
[je, s.value]
|
|
3044
2922
|
]),
|
|
3045
|
-
i[2] || (i[2] =
|
|
2923
|
+
i[2] || (i[2] = o("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))
|
|
3046
2924
|
]),
|
|
3047
|
-
|
|
2925
|
+
o("div", Co, [
|
|
3048
2926
|
(p(!0), v(B, null, N(r.value, (u) => (p(), v("a", {
|
|
3049
2927
|
key: `${u.group}-${u.to}-${u.title}`,
|
|
3050
2928
|
href: u.to,
|
|
3051
2929
|
class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
|
|
3052
2930
|
onClick: d
|
|
3053
2931
|
}, [
|
|
3054
|
-
g(
|
|
2932
|
+
g(me, {
|
|
3055
2933
|
name: "arrowRight",
|
|
3056
2934
|
size: 16,
|
|
3057
2935
|
class: "mt-0.5 shrink-0 text-gray-400"
|
|
3058
2936
|
}),
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
u.group ? (p(), v("span",
|
|
2937
|
+
o("span", zo, [
|
|
2938
|
+
o("span", Vo, [
|
|
2939
|
+
o("span", To, _(u.title), 1),
|
|
2940
|
+
u.group ? (p(), v("span", Eo, _(u.group), 1)) : V("", !0)
|
|
3063
2941
|
]),
|
|
3064
|
-
u.description ? (p(), v("span",
|
|
2942
|
+
u.description ? (p(), v("span", Lo, _(u.description), 1)) : V("", !0)
|
|
3065
2943
|
])
|
|
3066
|
-
], 8,
|
|
3067
|
-
r.value.length ?
|
|
2944
|
+
], 8, So))), 128)),
|
|
2945
|
+
r.value.length ? V("", !0) : (p(), v("p", Bo, _(e.emptyText), 1))
|
|
3068
2946
|
])
|
|
3069
|
-
], 8,
|
|
3070
|
-
])) :
|
|
2947
|
+
], 8, $o)
|
|
2948
|
+
])) : V("", !0)
|
|
3071
2949
|
]))
|
|
3072
2950
|
], 64));
|
|
3073
2951
|
}
|
|
3074
|
-
}),
|
|
2952
|
+
}), Mo = ["aria-label", "title"], Ta = /* @__PURE__ */ S({
|
|
3075
2953
|
__name: "VisionThemeToggle",
|
|
3076
2954
|
props: {
|
|
3077
2955
|
labelLight: { default: "Включить светлую тему" },
|
|
@@ -3080,25 +2958,25 @@ end;`, detail: "event(name: string)" },
|
|
|
3080
2958
|
titleDark: { default: "Тёмная тема" }
|
|
3081
2959
|
},
|
|
3082
2960
|
setup(e) {
|
|
3083
|
-
const n = L(
|
|
3084
|
-
n.value =
|
|
2961
|
+
const n = L(ht("theme") === "light" ? "light" : "dark"), l = (s) => {
|
|
2962
|
+
n.value = s, gt(s);
|
|
3085
2963
|
};
|
|
3086
2964
|
return Q(async () => {
|
|
3087
|
-
await
|
|
3088
|
-
}), (
|
|
2965
|
+
await He(), setTimeout(() => l(n.value), 0);
|
|
2966
|
+
}), (s, t) => (p(), v("button", {
|
|
3089
2967
|
type: "button",
|
|
3090
2968
|
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",
|
|
3091
2969
|
"aria-label": n.value === "dark" ? e.labelLight : e.labelDark,
|
|
3092
2970
|
title: n.value === "dark" ? e.titleLight : e.titleDark,
|
|
3093
|
-
onClick: t[0] || (t[0] = (r) =>
|
|
2971
|
+
onClick: t[0] || (t[0] = (r) => l(n.value === "dark" ? "light" : "dark"))
|
|
3094
2972
|
}, [
|
|
3095
|
-
g(
|
|
2973
|
+
g(me, {
|
|
3096
2974
|
name: n.value === "dark" ? "sun" : "moon",
|
|
3097
2975
|
size: 18
|
|
3098
2976
|
}, null, 8, ["name"])
|
|
3099
|
-
], 8,
|
|
2977
|
+
], 8, Mo));
|
|
3100
2978
|
}
|
|
3101
|
-
}),
|
|
2979
|
+
}), Ea = /* @__PURE__ */ S({
|
|
3102
2980
|
__name: "VAutocomplete",
|
|
3103
2981
|
props: {
|
|
3104
2982
|
modelValue: { default: "" },
|
|
@@ -3109,10 +2987,10 @@ end;`, detail: "event(name: string)" },
|
|
|
3109
2987
|
},
|
|
3110
2988
|
emits: ["update:modelValue", "select"],
|
|
3111
2989
|
setup(e, { emit: n }) {
|
|
3112
|
-
const
|
|
3113
|
-
r.click(new Event("click")),
|
|
2990
|
+
const l = n, s = (r) => l("update:modelValue", r), t = (r, c) => {
|
|
2991
|
+
r.click(new Event("click")), l("select", c);
|
|
3114
2992
|
};
|
|
3115
|
-
return (r, c) => (p(), I(Ne,
|
|
2993
|
+
return (r, c) => (p(), I(Ne, H(r.$attrs, {
|
|
3116
2994
|
top: "50px",
|
|
3117
2995
|
"hide-on-click": ""
|
|
3118
2996
|
}), {
|
|
@@ -3122,7 +3000,7 @@ end;`, detail: "event(name: string)" },
|
|
|
3122
3000
|
name: e.name,
|
|
3123
3001
|
message: e.message,
|
|
3124
3002
|
label: e.label,
|
|
3125
|
-
"onUpdate:modelValue":
|
|
3003
|
+
"onUpdate:modelValue": s,
|
|
3126
3004
|
onClick: d.open
|
|
3127
3005
|
}, null, 8, ["model-value", "name", "message", "label", "onClick"])
|
|
3128
3006
|
]),
|
|
@@ -3133,7 +3011,7 @@ end;`, detail: "event(name: string)" },
|
|
|
3133
3011
|
}, {
|
|
3134
3012
|
default: x(({ item: m }) => [
|
|
3135
3013
|
k(r.$slots, "default", { item: m }, () => [
|
|
3136
|
-
|
|
3014
|
+
j(_(m.name), 1)
|
|
3137
3015
|
])
|
|
3138
3016
|
]),
|
|
3139
3017
|
_: 3
|
|
@@ -3142,65 +3020,65 @@ end;`, detail: "event(name: string)" },
|
|
|
3142
3020
|
_: 3
|
|
3143
3021
|
}, 16));
|
|
3144
3022
|
}
|
|
3145
|
-
}),
|
|
3023
|
+
}), Ao = {
|
|
3146
3024
|
viewBox: "0 0 24 24",
|
|
3147
3025
|
width: "1.2em",
|
|
3148
3026
|
height: "1.2em"
|
|
3149
3027
|
};
|
|
3150
|
-
function
|
|
3151
|
-
return p(), v("svg",
|
|
3152
|
-
|
|
3028
|
+
function Do(e, n) {
|
|
3029
|
+
return p(), v("svg", Ao, [...n[0] || (n[0] = [
|
|
3030
|
+
o("path", {
|
|
3153
3031
|
fill: "currentColor",
|
|
3154
3032
|
d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
|
|
3155
3033
|
}, null, -1)
|
|
3156
3034
|
])]);
|
|
3157
3035
|
}
|
|
3158
|
-
const
|
|
3036
|
+
const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, Ho = { class: "p-4" }, La = /* @__PURE__ */ S({
|
|
3159
3037
|
__name: "VExpansion",
|
|
3160
3038
|
props: {
|
|
3161
3039
|
label: { default: "" },
|
|
3162
3040
|
value: { type: Boolean, default: !1 }
|
|
3163
3041
|
},
|
|
3164
3042
|
setup(e) {
|
|
3165
|
-
const n = L(null),
|
|
3043
|
+
const n = L(null), l = L(e.value), s = () => {
|
|
3166
3044
|
if (!n.value) return;
|
|
3167
3045
|
const r = n.value.querySelector(".v-expansion__content");
|
|
3168
|
-
r && (r.style.maxHeight =
|
|
3046
|
+
r && (r.style.maxHeight = l.value ? `${r.scrollHeight}px` : "0");
|
|
3169
3047
|
}, t = () => {
|
|
3170
|
-
|
|
3048
|
+
l.value = !l.value, s();
|
|
3171
3049
|
};
|
|
3172
3050
|
return Q(() => {
|
|
3173
|
-
|
|
3051
|
+
s();
|
|
3174
3052
|
}), (r, c) => {
|
|
3175
|
-
const d =
|
|
3053
|
+
const d = Io;
|
|
3176
3054
|
return p(), v("div", {
|
|
3177
3055
|
ref_key: "root",
|
|
3178
3056
|
ref: n,
|
|
3179
3057
|
class: "glass-inset mb-2 overflow-hidden rounded-md"
|
|
3180
3058
|
}, [
|
|
3181
|
-
|
|
3059
|
+
o("div", {
|
|
3182
3060
|
class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
|
|
3183
3061
|
onClick: t
|
|
3184
3062
|
}, [
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
class:
|
|
3063
|
+
o("h4", null, _(e.label), 1),
|
|
3064
|
+
o("div", {
|
|
3065
|
+
class: E(["transition text-gray-400", { "rotate-x-180": l.value }])
|
|
3188
3066
|
}, [
|
|
3189
3067
|
g(d, { class: "size-6" })
|
|
3190
3068
|
], 2)
|
|
3191
3069
|
]),
|
|
3192
|
-
|
|
3193
|
-
|
|
3070
|
+
o("div", jo, [
|
|
3071
|
+
o("div", Ho, [
|
|
3194
3072
|
k(r.$slots, "default")
|
|
3195
3073
|
])
|
|
3196
3074
|
])
|
|
3197
3075
|
], 512);
|
|
3198
3076
|
};
|
|
3199
3077
|
}
|
|
3200
|
-
}),
|
|
3078
|
+
}), Po = ["onDragstart", "onDragenter"], No = {
|
|
3201
3079
|
key: 0,
|
|
3202
3080
|
class: "absolute inset-0 border border-dashed border-blue-600 rounded"
|
|
3203
|
-
},
|
|
3081
|
+
}, Ba = /* @__PURE__ */ S({
|
|
3204
3082
|
__name: "VDragDrop",
|
|
3205
3083
|
props: {
|
|
3206
3084
|
items: {},
|
|
@@ -3208,27 +3086,27 @@ const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-
|
|
|
3208
3086
|
},
|
|
3209
3087
|
emits: ["update:items", "order-change"],
|
|
3210
3088
|
setup(e, { emit: n }) {
|
|
3211
|
-
const
|
|
3212
|
-
"opacity-30 scale-105 z-10":
|
|
3213
|
-
"transition-transform duration-200":
|
|
3089
|
+
const l = n, s = L(null), t = L(0), r = L(-1), c = ({ id: u }) => ({
|
|
3090
|
+
"opacity-30 scale-105 z-10": s.value === u,
|
|
3091
|
+
"transition-transform duration-200": s.value !== u
|
|
3214
3092
|
}), d = (u, f, b) => {
|
|
3215
|
-
|
|
3093
|
+
s.value = f, t.value = b, u.dataTransfer.effectAllowed = "move";
|
|
3216
3094
|
}, m = (u) => {
|
|
3217
|
-
|
|
3218
|
-
},
|
|
3219
|
-
|
|
3095
|
+
s.value !== null && (r.value = u);
|
|
3096
|
+
}, a = () => {
|
|
3097
|
+
s.value = null, r.value = -1;
|
|
3220
3098
|
}, i = (u) => {
|
|
3221
|
-
if (u.preventDefault(),
|
|
3222
|
-
const f = e.items.findIndex((h) => h[e.itemKey] ===
|
|
3099
|
+
if (u.preventDefault(), s.value && r.value !== -1) {
|
|
3100
|
+
const f = e.items.findIndex((h) => h[e.itemKey] === s.value), b = r.value;
|
|
3223
3101
|
if (f !== b && b !== -1) {
|
|
3224
3102
|
const h = [...e.items], [y] = h.splice(f, 1);
|
|
3225
|
-
h.splice(b, 0, y),
|
|
3103
|
+
h.splice(b, 0, y), l("update:items", h), l("order-change", { fromIndex: f, toIndex: b, movedItem: y, newOrder: h });
|
|
3226
3104
|
}
|
|
3227
3105
|
}
|
|
3228
3106
|
r.value = -1;
|
|
3229
3107
|
};
|
|
3230
3108
|
return (u, f) => (p(), v("div", {
|
|
3231
|
-
onDragover: f[1] || (f[1] =
|
|
3109
|
+
onDragover: f[1] || (f[1] = R(() => {
|
|
3232
3110
|
}, ["prevent"])),
|
|
3233
3111
|
onDrop: i
|
|
3234
3112
|
}, [
|
|
@@ -3244,31 +3122,31 @@ const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-
|
|
|
3244
3122
|
default: x(() => [
|
|
3245
3123
|
(p(!0), v(B, null, N(e.items, (b, h) => (p(), v("div", {
|
|
3246
3124
|
key: `${b.id}_drug`,
|
|
3247
|
-
class:
|
|
3125
|
+
class: E(["relative group", c(b)]),
|
|
3248
3126
|
draggable: "true",
|
|
3249
3127
|
onDragstart: (y) => d(y, b.id, h),
|
|
3250
3128
|
onDragenter: (y) => m(h),
|
|
3251
|
-
onDragend:
|
|
3252
|
-
onDragover: f[0] || (f[0] =
|
|
3129
|
+
onDragend: a,
|
|
3130
|
+
onDragover: f[0] || (f[0] = R(() => {
|
|
3253
3131
|
}, ["prevent"]))
|
|
3254
3132
|
}, [
|
|
3255
3133
|
k(u.$slots, "default", {
|
|
3256
3134
|
item: b,
|
|
3257
3135
|
key: b.id,
|
|
3258
3136
|
index: h,
|
|
3259
|
-
isDragging:
|
|
3137
|
+
isDragging: s.value === b.id
|
|
3260
3138
|
}),
|
|
3261
|
-
r.value === h &&
|
|
3262
|
-
], 42,
|
|
3139
|
+
r.value === h && s.value !== b.id ? (p(), v("div", No)) : V("", !0)
|
|
3140
|
+
], 42, Po))), 128))
|
|
3263
3141
|
]),
|
|
3264
3142
|
_: 3
|
|
3265
3143
|
})
|
|
3266
3144
|
], 32));
|
|
3267
3145
|
}
|
|
3268
|
-
}),
|
|
3146
|
+
}), Oo = { class: "glass-inset overflow-x-auto rounded-md" }, Ko = { class: "min-w-full" }, Fo = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, Uo = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, Ro = { class: "flex items-center" }, Wo = { class: "divide-y divide-gray-100 dark:divide-white/5" }, qo = ["onClick"], Go = { class: "flex items-center text-gray-700 dark:text-white/70" }, Jo = { key: 1 }, Zo = {
|
|
3269
3147
|
class: "py-3 whitespace-nowrap",
|
|
3270
3148
|
colspan: "9"
|
|
3271
|
-
},
|
|
3149
|
+
}, Xo = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, Ma = /* @__PURE__ */ S({
|
|
3272
3150
|
__name: "VTable",
|
|
3273
3151
|
props: {
|
|
3274
3152
|
headers: { default: () => [] },
|
|
@@ -3276,48 +3154,48 @@ const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-
|
|
|
3276
3154
|
},
|
|
3277
3155
|
emits: ["click"],
|
|
3278
3156
|
setup(e, { emit: n }) {
|
|
3279
|
-
const
|
|
3280
|
-
return (c, d) => (p(), v("div",
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
(p(!0), v(B, null, N(e.headers, (m,
|
|
3285
|
-
key:
|
|
3286
|
-
class:
|
|
3157
|
+
const l = n, s = (c, d) => l("click", c, d), t = (c) => (c == null ? void 0 : c.className) || "", r = (c, { key: d }) => c == null ? void 0 : c[d];
|
|
3158
|
+
return (c, d) => (p(), v("div", Oo, [
|
|
3159
|
+
o("table", Ko, [
|
|
3160
|
+
o("thead", Fo, [
|
|
3161
|
+
o("tr", Uo, [
|
|
3162
|
+
(p(!0), v(B, null, N(e.headers, (m, a) => (p(), v("th", {
|
|
3163
|
+
key: a,
|
|
3164
|
+
class: E(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
|
|
3287
3165
|
}, [
|
|
3288
3166
|
k(c.$slots, "header", {
|
|
3289
3167
|
item: m,
|
|
3290
|
-
i:
|
|
3168
|
+
i: a
|
|
3291
3169
|
}, () => [
|
|
3292
|
-
|
|
3170
|
+
o("div", Ro, _(m.name), 1)
|
|
3293
3171
|
])
|
|
3294
3172
|
], 2))), 128))
|
|
3295
3173
|
])
|
|
3296
3174
|
]),
|
|
3297
|
-
|
|
3298
|
-
e.items.length ? (p(!0), v(B, { key: 0 }, N(e.items, (m,
|
|
3299
|
-
key:
|
|
3175
|
+
o("tbody", Wo, [
|
|
3176
|
+
e.items.length ? (p(!0), v(B, { key: 0 }, N(e.items, (m, a) => (p(), v("tr", {
|
|
3177
|
+
key: a,
|
|
3300
3178
|
class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
|
|
3301
|
-
onClick: (i) =>
|
|
3179
|
+
onClick: (i) => s(m, i)
|
|
3302
3180
|
}, [
|
|
3303
3181
|
(p(!0), v(B, null, N(e.headers, (i, u) => (p(), v("td", {
|
|
3304
3182
|
key: u,
|
|
3305
3183
|
class: "py-2 px-4"
|
|
3306
3184
|
}, [
|
|
3307
|
-
|
|
3185
|
+
o("div", Go, [
|
|
3308
3186
|
k(c.$slots, i.key, {
|
|
3309
3187
|
item: m,
|
|
3310
|
-
i:
|
|
3188
|
+
i: a
|
|
3311
3189
|
}, () => [
|
|
3312
|
-
|
|
3190
|
+
j(_(r(m, i)), 1)
|
|
3313
3191
|
])
|
|
3314
3192
|
])
|
|
3315
3193
|
]))), 128))
|
|
3316
|
-
], 8,
|
|
3317
|
-
|
|
3318
|
-
|
|
3194
|
+
], 8, qo))), 128)) : (p(), v("tr", Jo, [
|
|
3195
|
+
o("td", Zo, [
|
|
3196
|
+
o("div", Xo, [
|
|
3319
3197
|
k(c.$slots, "empty", {}, () => [
|
|
3320
|
-
d[0] || (d[0] =
|
|
3198
|
+
d[0] || (d[0] = j("The list is empty", -1))
|
|
3321
3199
|
])
|
|
3322
3200
|
])
|
|
3323
3201
|
])
|
|
@@ -3326,31 +3204,31 @@ const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-
|
|
|
3326
3204
|
])
|
|
3327
3205
|
]));
|
|
3328
3206
|
}
|
|
3329
|
-
}),
|
|
3207
|
+
}), Aa = /* @__PURE__ */ S({
|
|
3330
3208
|
__name: "VTooltip",
|
|
3331
3209
|
props: {
|
|
3332
3210
|
timeout: {},
|
|
3333
3211
|
disabled: { type: Boolean }
|
|
3334
3212
|
},
|
|
3335
3213
|
setup(e) {
|
|
3336
|
-
const n = L(!1),
|
|
3214
|
+
const n = L(!1), l = () => {
|
|
3337
3215
|
e.disabled || (n.value = !0);
|
|
3338
|
-
},
|
|
3216
|
+
}, s = () => {
|
|
3339
3217
|
n.value = !1;
|
|
3340
3218
|
}, t = Ie("tooltip");
|
|
3341
|
-
return
|
|
3219
|
+
return xt(t, () => s()), (r, c) => (p(), v("div", {
|
|
3342
3220
|
ref: "tooltip",
|
|
3343
3221
|
class: "relative v-tooltip",
|
|
3344
|
-
onMouseenter:
|
|
3345
|
-
onMouseleave:
|
|
3222
|
+
onMouseenter: l,
|
|
3223
|
+
onMouseleave: s
|
|
3346
3224
|
}, [
|
|
3347
|
-
|
|
3225
|
+
o("button", {
|
|
3348
3226
|
type: "button",
|
|
3349
|
-
onClick:
|
|
3227
|
+
onClick: l
|
|
3350
3228
|
}, [
|
|
3351
3229
|
k(r.$slots, "activator")
|
|
3352
3230
|
]),
|
|
3353
|
-
g(
|
|
3231
|
+
g($e, {
|
|
3354
3232
|
"enter-active-class": "duration-300 ease-out",
|
|
3355
3233
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
3356
3234
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -3367,58 +3245,56 @@ const Fa = O({ name: "ri-arrow-drop-down-line", render: Ra }), Wa = { class: "v-
|
|
|
3367
3245
|
}
|
|
3368
3246
|
});
|
|
3369
3247
|
export {
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3248
|
+
aa as AppAside,
|
|
3249
|
+
ia as AppHeader,
|
|
3250
|
+
ca as AppNav,
|
|
3251
|
+
ra as AppNotification,
|
|
3252
|
+
da as AppOverlay,
|
|
3253
|
+
ua as AppProgress,
|
|
3254
|
+
ga as BlockBreadcrumb,
|
|
3255
|
+
ma as BlockInfo,
|
|
3256
|
+
pa as BlockScan,
|
|
3257
|
+
fa as BlockService,
|
|
3258
|
+
va as BlockStatus,
|
|
3259
|
+
ha as BlockUpdate,
|
|
3260
|
+
ae as CardBase,
|
|
3261
|
+
ba as CardButton,
|
|
3262
|
+
xa as CardDate,
|
|
3263
|
+
ya as CardDimmer,
|
|
3264
|
+
_a as CardInfo,
|
|
3265
|
+
$a as CardInput,
|
|
3266
|
+
ka as CardList,
|
|
3267
|
+
ja as CardMain,
|
|
3268
|
+
Xt as CardNotification,
|
|
3269
|
+
uo as DEFAULT_SUGGESTIONS,
|
|
3270
|
+
wa as ItemEdit,
|
|
3271
|
+
za as ScriptDialog,
|
|
3272
|
+
Ca as ScriptEditor,
|
|
3273
|
+
Sa as ScriptViewDocs,
|
|
3274
|
+
Ea as VAutocomplete,
|
|
3397
3275
|
A as VButton,
|
|
3398
|
-
|
|
3276
|
+
$l as VCheckbox,
|
|
3399
3277
|
Oe as VDialog,
|
|
3400
|
-
|
|
3278
|
+
Ba as VDragDrop,
|
|
3401
3279
|
Ne as VDropdown,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3280
|
+
La as VExpansion,
|
|
3281
|
+
is as VFile,
|
|
3282
|
+
be as VFunc,
|
|
3405
3283
|
Pe as VIconLogo,
|
|
3406
|
-
|
|
3284
|
+
it as VIconLogoMini,
|
|
3407
3285
|
Ce as VList,
|
|
3408
3286
|
We as VListObject,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3287
|
+
ct as VLoader,
|
|
3288
|
+
Ha as VPopup,
|
|
3289
|
+
le as VSelect,
|
|
3290
|
+
Ma as VTable,
|
|
3291
|
+
vl as VTabs,
|
|
3414
3292
|
J as VTextField,
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
Oo as VisionThemeToggle,
|
|
3423
|
-
ua as fullHighlighter
|
|
3293
|
+
Re as VTextWrapper,
|
|
3294
|
+
Aa as VTooltip,
|
|
3295
|
+
dt as VWifiIcon,
|
|
3296
|
+
me as VisionIcon,
|
|
3297
|
+
Va as VisionSearch,
|
|
3298
|
+
Ta as VisionThemeToggle,
|
|
3299
|
+
io as fullHighlighter
|
|
3424
3300
|
};
|