vuesp-components 2.4.2 → 2.5.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/{CardMain.vue_vue_type_style_index_0_lang-jUPno8E0.js → CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js} +224 -224
- package/dist/components/app/AppNotification.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockDataSettings.vue.d.ts.map +1 -1
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +674 -676
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionSearch.vue.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.css +107 -47
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as E, resolveComponent as Ut, openBlock as m, createElementBlock as v, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as j, createVNode as
|
|
2
|
-
import { a as _n, V as Jt, j as R, h as Xt, g as _t, k as Pe, l as Cn, d as Sn, i as zn, e as he, _ as Ae, f as ie, m as Q, b as Tn } from "../CardMain.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { n as vc } from "../CardMain.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { defineComponent as E, resolveComponent as Ut, openBlock as m, createElementBlock as v, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as j, createVNode as p, withCtx as x, createBlock as I, renderSlot as M, markRaw as ne, computed as _, withModifiers as te, toDisplayString as w, unref as J, TransitionGroup as Kt, renderList as H, mergeProps as q, ref as L, watch as Te, resolveDynamicComponent as Re, Transition as kt, normalizeStyle as Me, createTextVNode as A, normalizeProps as ae, guardReactiveProps as oe, onMounted as ke, onUnmounted as Ze, reactive as Wt, withDirectives as dt, vShow as bn, vModelText as $t, nextTick as wt, toValue as xn, useTemplateRef as Gt, createSlots as kn, isRef as $n, Teleport as wn } from "vue";
|
|
2
|
+
import { a as _n, V as Jt, j as R, h as Xt, g as _t, k as Pe, l as Cn, d as Sn, i as zn, e as he, _ as Ae, f as ie, m as Q, b as Tn } from "../CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js";
|
|
3
|
+
import { n as vc } from "../CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js";
|
|
4
4
|
import { f as An, t as Vn, g as Bn, u as st, s as En, d as Mn, m as Ln, c as In } from "../app-B45sALrX.js";
|
|
5
5
|
import { d as Ct, e as On, f as Fn, o as Dn } from "../useDialog-BdpYSys6.js";
|
|
6
6
|
import { useForm as jn } from "../composables/index.es.js";
|
|
7
7
|
import { required as Rn, maxLen as Nn } from "../validate/index.es.js";
|
|
8
8
|
import { a as Pn } from "../paths-CbO4FuTv.js";
|
|
9
|
-
const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" },
|
|
9
|
+
const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Vd = /* @__PURE__ */ E({
|
|
10
10
|
__name: "AppAside",
|
|
11
11
|
props: {
|
|
12
12
|
isSidebar: { type: Boolean, default: !1 }
|
|
@@ -25,19 +25,19 @@ const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
|
|
|
25
25
|
onClick: a
|
|
26
26
|
})) : T("", !0),
|
|
27
27
|
l("aside", {
|
|
28
|
-
class: j([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-
|
|
28
|
+
class: j([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-night-main/70"])
|
|
29
29
|
}, [
|
|
30
30
|
l("div", {
|
|
31
31
|
class: j([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
|
+
p(i, { to: "/" }, {
|
|
34
34
|
default: x(() => [
|
|
35
35
|
e.isSidebar ? (m(), I(_n, {
|
|
36
36
|
key: 0,
|
|
37
|
-
class: "h-[30px] text-
|
|
37
|
+
class: "h-[30px] text-cyan-main"
|
|
38
38
|
})) : (m(), I(Jt, {
|
|
39
39
|
key: 1,
|
|
40
|
-
class: "h-[30px] text-
|
|
40
|
+
class: "h-[30px] text-cyan-main"
|
|
41
41
|
}))
|
|
42
42
|
]),
|
|
43
43
|
_: 1
|
|
@@ -128,7 +128,7 @@ function sl(e, t) {
|
|
|
128
128
|
}, null, -1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const al = ne({ name: "ri-menu-line", render: sl }), ol = { 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)]" }, il = { class: "px-4 py-4 sm:px-6 lg:px-8" }, rl = { class: "container mx-auto flex flex-auto items-center" }, dl = { class: "lg:hidden h-[30px]" }, cl = { class: "gap-4 hidden lg:flex" }, ul = { class: "lg:hidden flex gap-4" }, ml = { class: "ms-2" },
|
|
131
|
+
const al = ne({ name: "ri-menu-line", render: sl }), ol = { 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)]" }, il = { class: "px-4 py-4 sm:px-6 lg:px-8" }, rl = { class: "container mx-auto flex flex-auto items-center" }, dl = { class: "lg:hidden h-[30px]" }, cl = { class: "gap-4 hidden lg:flex" }, ul = { class: "lg:hidden flex gap-4" }, ml = { class: "ms-2" }, Bd = /* @__PURE__ */ E({
|
|
132
132
|
__name: "AppHeader",
|
|
133
133
|
props: {
|
|
134
134
|
changeTheme: { type: Function },
|
|
@@ -146,42 +146,42 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
146
146
|
d == 1 && u(), d == 2 && i(f), d == 3 && c();
|
|
147
147
|
};
|
|
148
148
|
return (d, f) => {
|
|
149
|
-
const
|
|
149
|
+
const g = al, b = Ut("router-link"), h = nl, $ = Qn, O = Yt, F = Jn, B = qt;
|
|
150
150
|
return m(), v("header", ol, [
|
|
151
151
|
f[3] || (f[3] = l("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
152
|
l("div", il, [
|
|
153
153
|
l("div", rl, [
|
|
154
|
-
|
|
154
|
+
p(R, {
|
|
155
155
|
type: "icon",
|
|
156
156
|
onClick: o
|
|
157
157
|
}, {
|
|
158
158
|
default: x(() => [
|
|
159
|
-
g
|
|
159
|
+
p(g, { class: "size-5" })
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}),
|
|
163
163
|
f[1] || (f[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
164
164
|
l("div", dl, [
|
|
165
|
-
|
|
165
|
+
p(b, { to: "/" }, {
|
|
166
166
|
default: x(() => [
|
|
167
|
-
|
|
167
|
+
p(Jt, { class: "h-[30px] text-cyan-main" })
|
|
168
168
|
]),
|
|
169
169
|
_: 1
|
|
170
170
|
})
|
|
171
171
|
]),
|
|
172
172
|
f[2] || (f[2] = l("div", { class: "flex-auto" }, null, -1)),
|
|
173
173
|
l("div", cl, [
|
|
174
|
-
|
|
174
|
+
p(R, {
|
|
175
175
|
type: "icon",
|
|
176
176
|
onClick: u
|
|
177
177
|
}, {
|
|
178
178
|
default: x(() => [
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
p(h, { class: "dark:hidden" }),
|
|
180
|
+
p($, { class: "hidden dark:flex" })
|
|
181
181
|
]),
|
|
182
182
|
_: 1
|
|
183
183
|
}),
|
|
184
|
-
|
|
184
|
+
p(R, {
|
|
185
185
|
type: "icon",
|
|
186
186
|
onClick: i
|
|
187
187
|
}, {
|
|
@@ -191,40 +191,40 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
191
191
|
}, [...f[0] || (f[0] = [
|
|
192
192
|
l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
193
193
|
])], 2),
|
|
194
|
-
|
|
194
|
+
p(O, { class: "size-5" })
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}),
|
|
198
|
-
|
|
198
|
+
p(R, {
|
|
199
199
|
type: "icon",
|
|
200
200
|
onClick: te(c, ["prevent"])
|
|
201
201
|
}, {
|
|
202
202
|
default: x(() => [
|
|
203
|
-
|
|
203
|
+
p(F, { class: "size-5" })
|
|
204
204
|
]),
|
|
205
205
|
_: 1
|
|
206
206
|
})
|
|
207
207
|
]),
|
|
208
208
|
l("div", ul, [
|
|
209
|
-
|
|
209
|
+
p(Xt, {
|
|
210
210
|
left: "unset",
|
|
211
211
|
right: "0",
|
|
212
212
|
top: "0"
|
|
213
213
|
}, {
|
|
214
214
|
activator: x(({ on: X }) => [
|
|
215
|
-
|
|
215
|
+
p(R, {
|
|
216
216
|
type: "icon",
|
|
217
217
|
class: "flex",
|
|
218
218
|
onClick: X.click
|
|
219
219
|
}, {
|
|
220
220
|
default: x(() => [
|
|
221
|
-
|
|
221
|
+
p(B)
|
|
222
222
|
]),
|
|
223
223
|
_: 1
|
|
224
224
|
}, 8, ["onClick"])
|
|
225
225
|
]),
|
|
226
226
|
default: x(() => [
|
|
227
|
-
|
|
227
|
+
p(_t, {
|
|
228
228
|
items: a,
|
|
229
229
|
onClick: r
|
|
230
230
|
}, {
|
|
@@ -242,7 +242,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
242
242
|
]);
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
}), fl = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, vl = { class: "flex-auto text-xs" },
|
|
245
|
+
}), fl = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, vl = { class: "flex-auto text-xs" }, gl = { class: "text-gray-500 dark:text-gray-400 mt-1" }, pl = /* @__PURE__ */ E({
|
|
246
246
|
__name: "CardNotification",
|
|
247
247
|
props: {
|
|
248
248
|
empty: {},
|
|
@@ -262,7 +262,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
262
262
|
l("div", {
|
|
263
263
|
class: j(["absolute left-0 top-0 w-[3px] h-full", o(s.color)])
|
|
264
264
|
}, null, 2),
|
|
265
|
-
|
|
265
|
+
p(R, {
|
|
266
266
|
class: "shrink-0",
|
|
267
267
|
type: "icon",
|
|
268
268
|
onClick: c
|
|
@@ -273,22 +273,22 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
273
273
|
}, [...r[0] || (r[0] = [
|
|
274
274
|
l("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
|
+
p(d, { class: "size-5" })
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
279
|
}),
|
|
280
280
|
l("div", vl, [
|
|
281
281
|
l("div", null, w(s.text), 1),
|
|
282
|
-
l("div",
|
|
282
|
+
l("div", gl, w(J(An)(s.date)) + " (" + w(J(Vn)(s.date)) + ")", 1)
|
|
283
283
|
]),
|
|
284
|
-
|
|
284
|
+
p(R, {
|
|
285
285
|
class: "shrink-0",
|
|
286
286
|
type: "icon",
|
|
287
287
|
size: "sm",
|
|
288
288
|
onClick: i
|
|
289
289
|
}, {
|
|
290
290
|
default: x(() => [
|
|
291
|
-
|
|
291
|
+
p(f, { class: "size-4" })
|
|
292
292
|
]),
|
|
293
293
|
_: 1
|
|
294
294
|
})
|
|
@@ -298,7 +298,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
298
298
|
}), hl = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, yl = {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "flex flex-col gap-2 p-2"
|
|
301
|
-
},
|
|
301
|
+
}, Ed = /* @__PURE__ */ E({
|
|
302
302
|
__name: "AppNotification",
|
|
303
303
|
props: {
|
|
304
304
|
value: { type: Boolean },
|
|
@@ -314,12 +314,12 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
314
314
|
onClick: i
|
|
315
315
|
})) : T("", !0),
|
|
316
316
|
l("aside", {
|
|
317
|
-
class: j([s.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200/70 flex-col overflow-y-auto transition-all duration-350 dark:border-white/10 bg-white/90 backdrop-blur-2xl dark:bg-
|
|
317
|
+
class: j([s.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200/70 flex-col overflow-y-auto transition-all duration-350 dark:border-white/10 bg-white/90 backdrop-blur-2xl dark:bg-night-main/80"])
|
|
318
318
|
}, [
|
|
319
319
|
l("div", hl, [
|
|
320
320
|
M(r.$slots, "header", { isNew: n.value }),
|
|
321
321
|
o.value ? (m(), v("div", yl, [
|
|
322
|
-
|
|
322
|
+
p(Kt, {
|
|
323
323
|
"enter-active-class": "transition-all duration-300 ",
|
|
324
324
|
"enter-from-class": "opacity-0 translate-x-1/2",
|
|
325
325
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -333,10 +333,10 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
|
|
|
333
333
|
class: "relative"
|
|
334
334
|
}, [
|
|
335
335
|
M(r.$slots, "card", { item: f }, () => [
|
|
336
|
-
|
|
336
|
+
p(pl, q({ ref_for: !0 }, f, {
|
|
337
337
|
class: "rounded-md border border-gray-200/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
|
|
338
|
-
onRemove: (
|
|
339
|
-
onRead: (
|
|
338
|
+
onRemove: (g) => c(f),
|
|
339
|
+
onRead: (g) => u(f)
|
|
340
340
|
}), null, 16, ["onRemove", "onRead"])
|
|
341
341
|
])
|
|
342
342
|
]))), 128))
|
|
@@ -357,7 +357,7 @@ function $l(e, t) {
|
|
|
357
357
|
])
|
|
358
358
|
]);
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const Md = /* @__PURE__ */ Cn(bl, [["render", $l]]), wl = {
|
|
361
361
|
viewBox: "0 0 24 24",
|
|
362
362
|
width: "1.2em",
|
|
363
363
|
height: "1.2em"
|
|
@@ -373,7 +373,7 @@ function _l(e, t) {
|
|
|
373
373
|
const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-4 flex flex-col gap-2" }, zl = { class: "size-6 flex-[0_0_24px] opacity-60" }, Tl = ["onClick"], Al = { class: "flex flex-col gap-2" }, Vl = { class: "flex gap-2 ms-8" }, Bl = { class: "size-5 flex-[0_0_24px]" }, El = { class: "flex-1 first-letter:uppercase text-sm" }, Ml = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mt-2"
|
|
376
|
-
}, Ll = { class: "flex flex-col gap-2" }, Il = { class: "flex gap-2 ms-14" }, Ol = { class: "size-5 flex-[0_0_24px]" }, Fl = { class: "flex-1 first-letter:uppercase text-sm" },
|
|
376
|
+
}, Ll = { class: "flex flex-col gap-2" }, Il = { class: "flex gap-2 ms-14" }, Ol = { class: "size-5 flex-[0_0_24px]" }, Fl = { class: "flex-1 first-letter:uppercase text-sm" }, Ld = /* @__PURE__ */ E({
|
|
377
377
|
__name: "AppNav",
|
|
378
378
|
props: {
|
|
379
379
|
menu: { default: () => [] },
|
|
@@ -386,8 +386,8 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
386
386
|
e.isSidebar && s("sidebar", !e.isSidebar), a.value !== r && (a.value = a.value === r ? "" : r);
|
|
387
387
|
}, o = (r) => e.fullPath === r, i = (r) => r ? e.fullPath === r || e.fullPath.startsWith(r) : !1, c = (r, d) => !r.path || d === "/" || r.path === "/" ? !1 : r.path === d || d.includes(r.path), u = (r, d) => (r == null ? void 0 : r.find(
|
|
388
388
|
(f) => {
|
|
389
|
-
var
|
|
390
|
-
return c(f, d) || ((
|
|
389
|
+
var g;
|
|
390
|
+
return c(f, d) || ((g = f.children) == null ? void 0 : g.some(
|
|
391
391
|
(b) => {
|
|
392
392
|
var h;
|
|
393
393
|
return c(b, d) || ((h = b.children) == null ? void 0 : h.some(($) => c($, d)));
|
|
@@ -405,39 +405,39 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
405
405
|
const f = Cl;
|
|
406
406
|
return m(), v("nav", null, [
|
|
407
407
|
l("ul", Sl, [
|
|
408
|
-
(m(!0), v(D, null, H(e.menu, (
|
|
409
|
-
key:
|
|
408
|
+
(m(!0), v(D, null, H(e.menu, (g) => (m(), v("li", {
|
|
409
|
+
key: g.name
|
|
410
410
|
}, [
|
|
411
|
-
(m(), I(Re(
|
|
412
|
-
to:
|
|
413
|
-
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(
|
|
414
|
-
onClick: te((b) => n(
|
|
411
|
+
(m(), I(Re(g.path ? "router-link" : "span"), {
|
|
412
|
+
to: g.path,
|
|
413
|
+
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(g.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
|
|
414
|
+
onClick: te((b) => n(g), ["prevent", "stop"])
|
|
415
415
|
}, {
|
|
416
416
|
default: x(() => [
|
|
417
417
|
l("div", zl, [
|
|
418
|
-
M(r.$slots, "icon", { item:
|
|
418
|
+
M(r.$slots, "icon", { item: g })
|
|
419
419
|
]),
|
|
420
420
|
l("span", {
|
|
421
421
|
class: j(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
|
|
422
|
-
}, w(
|
|
422
|
+
}, w(g.name), 3),
|
|
423
423
|
l("button", {
|
|
424
424
|
class: j(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
|
|
425
|
-
onClick: te((b) => n(
|
|
425
|
+
onClick: te((b) => n(g), ["prevent", "stop"])
|
|
426
426
|
}, [
|
|
427
|
-
|
|
427
|
+
g.children ? (m(), I(f, { key: 0 })) : T("", !0)
|
|
428
428
|
], 10, Tl)
|
|
429
429
|
]),
|
|
430
430
|
_: 2
|
|
431
431
|
}, 1032, ["to", "class", "onClick"])),
|
|
432
|
-
|
|
432
|
+
g.children ? (m(), v("div", {
|
|
433
433
|
key: 0,
|
|
434
|
-
class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value ===
|
|
434
|
+
class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value === g.name ? "block" : "hidden"]])
|
|
435
435
|
}, [
|
|
436
436
|
l("ul", Al, [
|
|
437
|
-
(m(!0), v(D, null, H(
|
|
437
|
+
(m(!0), v(D, null, H(g.children, ({ name: b, path: h, icon: $, children: O }) => (m(), v("li", { key: b }, [
|
|
438
438
|
(m(), I(Re(h ? "router-link" : "span"), {
|
|
439
439
|
to: h,
|
|
440
|
-
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(h) ? "bg-
|
|
440
|
+
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(h) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
|
|
441
441
|
}, {
|
|
442
442
|
default: x(() => [
|
|
443
443
|
l("div", Vl, [
|
|
@@ -458,7 +458,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
458
458
|
}, [
|
|
459
459
|
(m(), I(Re(F.path ? "router-link" : "span"), {
|
|
460
460
|
to: F.path,
|
|
461
|
-
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(F.path) ? "bg-
|
|
461
|
+
class: j(["flex gap-2 items-center px-3 py-2 rounded", o(F.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
|
|
462
462
|
}, {
|
|
463
463
|
default: x(() => [
|
|
464
464
|
l("div", Il, [
|
|
@@ -491,7 +491,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
491
491
|
}, Nl = {
|
|
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
|
-
}, Pl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Hl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" },
|
|
494
|
+
}, Pl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Hl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Id = /* @__PURE__ */ E({
|
|
495
495
|
__name: "AppProgress",
|
|
496
496
|
props: {
|
|
497
497
|
timeout: { default: 5e3 },
|
|
@@ -531,7 +531,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
531
531
|
class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
|
|
532
532
|
onClick: c[0] || (c[0] = (r) => t.value = !1)
|
|
533
533
|
}, [
|
|
534
|
-
|
|
534
|
+
p(u, { class: "size-4" })
|
|
535
535
|
])
|
|
536
536
|
]),
|
|
537
537
|
s.value ? (m(), v("div", {
|
|
@@ -554,7 +554,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}), Ul = { class: "my-4 text-gray-700 dark:text-gray-400" }, Kl = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Wl = { class: "flex gap-2" }, Gl = { class: "text-gray-700 dark:text-gray-400" }, Jl = { class: "flex gap-2" }, Xl = { class: "flex gap-2" }, ql = { class: "text-gray-700 dark:text-gray-400" }, Yl = { class: "flex gap-2" }, Zl = { class: "text-gray-700 dark:text-gray-400" }, Ql = { class: "flex flex-col gap-4 text-sm" }, es = { class: "flex gap-4" },
|
|
557
|
+
}), Ul = { class: "my-4 text-gray-700 dark:text-gray-400" }, Kl = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Wl = { class: "flex gap-2" }, Gl = { class: "text-gray-700 dark:text-gray-400" }, Jl = { class: "flex gap-2" }, Xl = { class: "flex gap-2" }, ql = { class: "text-gray-700 dark:text-gray-400" }, Yl = { class: "flex gap-2" }, Zl = { class: "text-gray-700 dark:text-gray-400" }, Ql = { class: "flex flex-col gap-4 text-sm" }, es = { class: "flex gap-4" }, Od = /* @__PURE__ */ E({
|
|
558
558
|
__name: "BlockInfo",
|
|
559
559
|
props: {
|
|
560
560
|
pkg: {},
|
|
@@ -606,7 +606,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
606
606
|
}), ts = ["onClick"], ns = { class: "mr-2" }, ls = { class: "text-sm" }, ss = { class: "text-gray-400 text-xs" }, as = {
|
|
607
607
|
key: 0,
|
|
608
608
|
class: "flex justify-center"
|
|
609
|
-
}, os = { class: "flex justify-end mt-4" },
|
|
609
|
+
}, os = { class: "flex justify-end mt-4" }, Fd = /* @__PURE__ */ E({
|
|
610
610
|
__name: "BlockScan",
|
|
611
611
|
props: {
|
|
612
612
|
items: { default: () => [] }
|
|
@@ -617,31 +617,31 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
617
617
|
return (i, c) => {
|
|
618
618
|
const u = Sn, r = _t, d = zn, f = R;
|
|
619
619
|
return m(), v("div", null, [
|
|
620
|
-
|
|
620
|
+
p(r, {
|
|
621
621
|
items: e.items,
|
|
622
622
|
class: "bg-transparent! ring-0!"
|
|
623
623
|
}, {
|
|
624
|
-
default: x(({ item:
|
|
624
|
+
default: x(({ item: g }) => [
|
|
625
625
|
l("div", {
|
|
626
626
|
class: "flex items-center w-full",
|
|
627
|
-
onClick: (b) => n(
|
|
627
|
+
onClick: (b) => n(g)
|
|
628
628
|
}, [
|
|
629
629
|
l("div", ns, [
|
|
630
|
-
|
|
630
|
+
p(u, ae(oe(g)), null, 16)
|
|
631
631
|
]),
|
|
632
632
|
l("div", null, [
|
|
633
|
-
l("div", ls, w(
|
|
634
|
-
l("div", ss, w(i.$t("security")) + " : " + w(a[
|
|
633
|
+
l("div", ls, w(g.ssid), 1),
|
|
634
|
+
l("div", ss, w(i.$t("security")) + " : " + w(a[g.encryptionType] || "unknown"), 1)
|
|
635
635
|
])
|
|
636
636
|
], 8, ts)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
}, 8, ["items"]),
|
|
640
640
|
e.items.length ? T("", !0) : (m(), v("div", as, [
|
|
641
|
-
|
|
641
|
+
p(d, { class: "text-cyan-main" })
|
|
642
642
|
])),
|
|
643
643
|
l("div", os, [
|
|
644
|
-
|
|
644
|
+
p(f, {
|
|
645
645
|
color: "blue",
|
|
646
646
|
onClick: o
|
|
647
647
|
}, {
|
|
@@ -654,7 +654,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
654
654
|
]);
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
}), is = { class: "md:flex items-center mb-4" }, rs = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, ds = { class: "md:max-w-50" }, cs = { class: "flex items-center mb-4" }, us = { class: "flex-auto text-gray-600 bg:text-gray-400" }, ms = { class: "flex items-center mb-4" }, fs = { class: "flex-auto text-gray-600 bg:text-gray-400" },
|
|
657
|
+
}), is = { class: "md:flex items-center mb-4" }, rs = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, ds = { class: "md:max-w-50" }, cs = { class: "flex items-center mb-4" }, us = { class: "flex-auto text-gray-600 bg:text-gray-400" }, ms = { class: "flex items-center mb-4" }, fs = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Dd = /* @__PURE__ */ E({
|
|
658
658
|
__name: "BlockService",
|
|
659
659
|
props: {
|
|
660
660
|
locale: {},
|
|
@@ -672,7 +672,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
672
672
|
l("div", is, [
|
|
673
673
|
l("div", rs, w(o.$t("selectLang")), 1),
|
|
674
674
|
l("div", ds, [
|
|
675
|
-
|
|
675
|
+
p(c, {
|
|
676
676
|
"model-value": n(e.locale),
|
|
677
677
|
label: o.$t("lang"),
|
|
678
678
|
items: e.locales,
|
|
@@ -682,7 +682,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
682
682
|
]),
|
|
683
683
|
l("div", cs, [
|
|
684
684
|
l("div", us, w(o.$t("rebootDev")), 1),
|
|
685
|
-
|
|
685
|
+
p(u, {
|
|
686
686
|
class: "min-w-[100px]",
|
|
687
687
|
color: "red",
|
|
688
688
|
outline: "",
|
|
@@ -696,7 +696,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
696
696
|
]),
|
|
697
697
|
l("div", ms, [
|
|
698
698
|
l("div", fs, w(o.$t("resetConf")), 1),
|
|
699
|
-
|
|
699
|
+
p(u, {
|
|
700
700
|
class: "min-w-[100px]",
|
|
701
701
|
color: "red",
|
|
702
702
|
onClick: i[1] || (i[1] = (r) => s("reset", r))
|
|
@@ -710,7 +710,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
710
710
|
], 64);
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
}), vs = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" },
|
|
713
|
+
}), vs = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, gs = { class: "flex flex-col w-full items-center gap-2" }, ps = ["title"], hs = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, ys = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, bs = { class: "flex justify-between w-full text-xs" }, xs = { class: "text-gray-500 dark:text-white/50" }, ks = { class: "text-sm" }, $s = { class: "text-gray-500 dark:text-white/50 text-left" }, ws = { class: "text-right text-xs" }, jd = /* @__PURE__ */ E({
|
|
714
714
|
__name: "BlockStatus",
|
|
715
715
|
props: {
|
|
716
716
|
pkg: {},
|
|
@@ -746,21 +746,21 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
746
746
|
}), Ze(() => {
|
|
747
747
|
t.value = 0, s && clearTimeout(s);
|
|
748
748
|
}), (u, r) => {
|
|
749
|
-
var d, f,
|
|
749
|
+
var d, f, g;
|
|
750
750
|
return m(), v("div", vs, [
|
|
751
|
-
l("div",
|
|
751
|
+
l("div", gs, [
|
|
752
752
|
l("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: `${i.value}%`
|
|
755
755
|
}, [
|
|
756
756
|
l("div", hs, w(i.value) + "%", 1),
|
|
757
757
|
l("div", {
|
|
758
|
-
class: "relative h-4 overflow-hidden rounded-md bg-
|
|
758
|
+
class: "relative h-4 overflow-hidden rounded-md bg-cyan-main transition-all duration-500",
|
|
759
759
|
style: Me(`width: ${i.value}%`)
|
|
760
760
|
}, [
|
|
761
761
|
l("div", ys, w(i.value) + "%", 1)
|
|
762
762
|
], 4)
|
|
763
|
-
], 8,
|
|
763
|
+
], 8, ps),
|
|
764
764
|
l("div", bs, [
|
|
765
765
|
(m(!0), v(D, null, H(n.value, (b) => (m(), v("div", {
|
|
766
766
|
key: b.name,
|
|
@@ -787,7 +787,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
787
787
|
l("div", null, [
|
|
788
788
|
M(u.$slots, "default", {
|
|
789
789
|
home: (d = e.pkg) == null ? void 0 : d.homepage,
|
|
790
|
-
repo: (
|
|
790
|
+
repo: (g = (f = e.pkg) == null ? void 0 : f.repository) == null ? void 0 : g.url
|
|
791
791
|
})
|
|
792
792
|
])
|
|
793
793
|
]);
|
|
@@ -809,7 +809,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
809
809
|
M(n.$slots, "default")
|
|
810
810
|
]));
|
|
811
811
|
}
|
|
812
|
-
}), Ss = { class: "md:flex" }, zs = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" },
|
|
812
|
+
}), Ss = { class: "md:flex" }, zs = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, Rd = /* @__PURE__ */ E({
|
|
813
813
|
__name: "BlockUpdate",
|
|
814
814
|
emits: ["update"],
|
|
815
815
|
setup(e, { emit: t }) {
|
|
@@ -833,9 +833,9 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
833
833
|
key: f,
|
|
834
834
|
class: "mb-4 flex items-center"
|
|
835
835
|
}, [
|
|
836
|
-
|
|
836
|
+
p(Cs, {
|
|
837
837
|
accept: ".bin",
|
|
838
|
-
onChange: (
|
|
838
|
+
onChange: (g) => a[f] = g,
|
|
839
839
|
class: "flex-auto"
|
|
840
840
|
}, {
|
|
841
841
|
default: x(() => [
|
|
@@ -848,11 +848,11 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
|
|
|
848
848
|
]),
|
|
849
849
|
_: 2
|
|
850
850
|
}, 1032, ["onChange"]),
|
|
851
|
-
|
|
851
|
+
p(r, {
|
|
852
852
|
class: "min-w-[100px]",
|
|
853
853
|
color: "blue",
|
|
854
854
|
disabled: !d,
|
|
855
|
-
onClick: (
|
|
855
|
+
onClick: (g) => i(`${f}.bin`, d)
|
|
856
856
|
}, {
|
|
857
857
|
default: x(() => [
|
|
858
858
|
A(w(c.$t("btnUpdate")), 1)
|
|
@@ -876,7 +876,7 @@ function As(e, t) {
|
|
|
876
876
|
}, null, -1)
|
|
877
877
|
])]);
|
|
878
878
|
}
|
|
879
|
-
const Zt = ne({ name: "ri-arrow-drop-right-line", render: As }), Vs = { class: "flex items-center gap-1.5" },
|
|
879
|
+
const Zt = ne({ name: "ri-arrow-drop-right-line", render: As }), Vs = { class: "flex items-center gap-1.5" }, Nd = /* @__PURE__ */ E({
|
|
880
880
|
__name: "BlockBreadcrumb",
|
|
881
881
|
props: {
|
|
882
882
|
items: { default: () => [] }
|
|
@@ -968,7 +968,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
968
968
|
setup(e, { emit: t }) {
|
|
969
969
|
const s = t, a = () => "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", n = L({}), { text: o, copy: i, copied: c, isSupported: u } = On(), r = (b) => {
|
|
970
970
|
n.value[b] = !n.value[b];
|
|
971
|
-
}, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`,
|
|
971
|
+
}, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`, g = (b, h) => {
|
|
972
972
|
s("click", { key: b, path: f(b), isObject: h });
|
|
973
973
|
};
|
|
974
974
|
return (b, h) => {
|
|
@@ -983,7 +983,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
983
983
|
onClick: (ve) => r(X)
|
|
984
984
|
}, [
|
|
985
985
|
d(B) ? (m(), v("div", Rs, [
|
|
986
|
-
|
|
986
|
+
p($, { class: "size-5" })
|
|
987
987
|
])) : T("", !0),
|
|
988
988
|
l("div", Ns, w(X), 1),
|
|
989
989
|
J(u) ? (m(), I(R, {
|
|
@@ -994,7 +994,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
994
994
|
onClick: te((ve) => J(i)(f(X)), ["stop"])
|
|
995
995
|
}, {
|
|
996
996
|
default: x(() => [
|
|
997
|
-
|
|
997
|
+
p(O, { class: "size-5" })
|
|
998
998
|
]),
|
|
999
999
|
_: 1
|
|
1000
1000
|
}, 8, ["onClick"])) : T("", !0),
|
|
@@ -1005,15 +1005,15 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
1005
1005
|
!e.onlyValue && d(B) ? (m(), v(D, { key: 3 }, [
|
|
1006
1006
|
h[1] || (h[1] = l("div", { class: "flex-auto" }, null, -1)),
|
|
1007
1007
|
l("div", Ps, [
|
|
1008
|
-
|
|
1008
|
+
p(R, {
|
|
1009
1009
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1010
1010
|
color: "transparent",
|
|
1011
1011
|
size: "sm",
|
|
1012
1012
|
title: b.$t("add"),
|
|
1013
|
-
onClick: te((ve) =>
|
|
1013
|
+
onClick: te((ve) => g(X, d(B)), ["stop"])
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: x(() => [
|
|
1016
|
-
|
|
1016
|
+
p(F, { class: "size-5" })
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
}, 8, ["title", "onClick"])
|
|
@@ -1021,7 +1021,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
1021
1021
|
], 64)) : T("", !0)
|
|
1022
1022
|
], 10, js),
|
|
1023
1023
|
d(B) ? (m(), v("div", Hs, [
|
|
1024
|
-
dt(
|
|
1024
|
+
dt(p(St, {
|
|
1025
1025
|
class: "flex-auto",
|
|
1026
1026
|
path: f(X),
|
|
1027
1027
|
items: B,
|
|
@@ -1033,15 +1033,15 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
1033
1033
|
])) : (m(), v(D, { key: 1 }, [
|
|
1034
1034
|
h[2] || (h[2] = l("div", { class: "flex-auto gap-3" }, null, -1)),
|
|
1035
1035
|
l("div", Us, w(B), 1),
|
|
1036
|
-
|
|
1036
|
+
p(R, {
|
|
1037
1037
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
1038
1038
|
color: "gray",
|
|
1039
1039
|
size: "sm",
|
|
1040
1040
|
title: b.$t("add"),
|
|
1041
|
-
onClick: te((ve) =>
|
|
1041
|
+
onClick: te((ve) => g(X, d(B)), ["stop"])
|
|
1042
1042
|
}, {
|
|
1043
1043
|
default: x(() => [
|
|
1044
|
-
|
|
1044
|
+
p(F, { class: "size-5" })
|
|
1045
1045
|
]),
|
|
1046
1046
|
_: 1
|
|
1047
1047
|
}, 8, ["title", "onClick"])
|
|
@@ -1064,13 +1064,13 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
1064
1064
|
setup(e, { emit: t }) {
|
|
1065
1065
|
const s = t, a = _(() => [
|
|
1066
1066
|
"left-3.5",
|
|
1067
|
-
e.active ? "top-0 bg-white/80 px-1 text-xs text-gray-500 dark:bg-
|
|
1067
|
+
e.active ? "top-0 bg-white/80 px-1 text-xs text-gray-500 dark:bg-night-light-10/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
|
|
1068
1068
|
]), n = _(() => [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"]);
|
|
1069
1069
|
return (o, i) => {
|
|
1070
1070
|
const c = ct;
|
|
1071
1071
|
return m(), v("div", Ks, [
|
|
1072
1072
|
l("div", {
|
|
1073
|
-
class: j(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-
|
|
1073
|
+
class: j(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-cyan-main/60", n.value])
|
|
1074
1074
|
}, [
|
|
1075
1075
|
l("span", {
|
|
1076
1076
|
class: j(["absolute -translate-y-1/2 rounded transition-all", a.value])
|
|
@@ -1087,7 +1087,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
|
|
|
1087
1087
|
onClick: i[0] || (i[0] = (u) => s("icon", u))
|
|
1088
1088
|
}, [
|
|
1089
1089
|
M(o.$slots, "icon", {}, () => [
|
|
1090
|
-
|
|
1090
|
+
p(c, { class: "size-4" })
|
|
1091
1091
|
])
|
|
1092
1092
|
], 10, Gs))
|
|
1093
1093
|
], 2)
|
|
@@ -1244,7 +1244,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1244
1244
|
onOnIcon: n[2] || (n[2] = (o) => s("pick"))
|
|
1245
1245
|
}, {
|
|
1246
1246
|
icon: x(() => [
|
|
1247
|
-
|
|
1247
|
+
p(Q, {
|
|
1248
1248
|
name: "search",
|
|
1249
1249
|
size: 16
|
|
1250
1250
|
})
|
|
@@ -1270,7 +1270,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1270
1270
|
onClick: n[4] || (n[4] = (o) => s("reset"))
|
|
1271
1271
|
}, {
|
|
1272
1272
|
default: x(() => [
|
|
1273
|
-
|
|
1273
|
+
p(Q, {
|
|
1274
1274
|
name: "refresh",
|
|
1275
1275
|
size: 14
|
|
1276
1276
|
})
|
|
@@ -1316,7 +1316,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1316
1316
|
d !== o.value && (o.value = d);
|
|
1317
1317
|
}
|
|
1318
1318
|
), (r, d) => {
|
|
1319
|
-
const f = Pe,
|
|
1319
|
+
const f = Pe, g = ct;
|
|
1320
1320
|
return m(), I(zt, {
|
|
1321
1321
|
active: !!e.value,
|
|
1322
1322
|
disabled: e.disabled,
|
|
@@ -1328,7 +1328,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1328
1328
|
e.value ? (m(), I(f, {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
class: "size-4"
|
|
1331
|
-
})) : (m(), I(
|
|
1331
|
+
})) : (m(), I(g, {
|
|
1332
1332
|
key: 1,
|
|
1333
1333
|
class: "size-4"
|
|
1334
1334
|
}))
|
|
@@ -1390,7 +1390,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1390
1390
|
}, sa = {
|
|
1391
1391
|
default: "text-gray-900 dark:text-white",
|
|
1392
1392
|
muted: "text-gray-500 dark:text-gray-400",
|
|
1393
|
-
primary: "text-
|
|
1393
|
+
primary: "text-cyan-main",
|
|
1394
1394
|
success: "text-emerald-600 dark:text-emerald-400",
|
|
1395
1395
|
warning: "text-amber-600 dark:text-amber-400",
|
|
1396
1396
|
danger: "text-rose-600 dark:text-rose-400"
|
|
@@ -1501,10 +1501,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1501
1501
|
scale: (t, s = 1, a = 0) => nt(t) * s + a,
|
|
1502
1502
|
round: (t, s = 0) => Number(nt(t).toFixed(s)),
|
|
1503
1503
|
clamp: (t, s, a) => Math.min(a, Math.max(s, nt(t)))
|
|
1504
|
-
}),
|
|
1504
|
+
}), Pd = (e, t, s) => {
|
|
1505
1505
|
const a = { ...At(t), ...s };
|
|
1506
1506
|
return e.slice(0, qe).map((n) => ot(at(n, a, t)));
|
|
1507
|
-
},
|
|
1507
|
+
}, fa = (e, t, s, a) => {
|
|
1508
1508
|
const n = { ...At(s), ...a };
|
|
1509
1509
|
t.slice(0, qe).forEach((c, u) => {
|
|
1510
1510
|
n[xt[u]] = ot(at(c, n, s));
|
|
@@ -1523,15 +1523,15 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1523
1523
|
raw: o,
|
|
1524
1524
|
style: { ...Tt, ...e.style }
|
|
1525
1525
|
};
|
|
1526
|
-
},
|
|
1526
|
+
}, va = (e, t, s, a) => {
|
|
1527
1527
|
var i, c, u, r;
|
|
1528
1528
|
const n = /* @__PURE__ */ new Set([
|
|
1529
1529
|
...Object.keys(e.metrics ?? {}),
|
|
1530
1530
|
...Object.keys(t.metrics ?? {})
|
|
1531
1531
|
]), o = {};
|
|
1532
1532
|
for (const d of n) {
|
|
1533
|
-
const f = ((i = t.metrics) == null ? void 0 : i[d]) ?? ((c = e.metrics) == null ? void 0 : c[d]) ?? [],
|
|
1534
|
-
o[d] = f.slice(0, bt).map((b) =>
|
|
1533
|
+
const f = ((i = t.metrics) == null ? void 0 : i[d]) ?? ((c = e.metrics) == null ? void 0 : c[d]) ?? [], g = ((u = t.metricArgs) == null ? void 0 : u[d]) ?? ((r = e.metricArgs) == null ? void 0 : r[d]) ?? [];
|
|
1534
|
+
o[d] = f.slice(0, bt).map((b) => fa(b, g, s, a));
|
|
1535
1535
|
}
|
|
1536
1536
|
return o;
|
|
1537
1537
|
}, Vt = (e, t, s) => {
|
|
@@ -1543,8 +1543,8 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1543
1543
|
const d = ma(r ?? u ?? o.default, o.type);
|
|
1544
1544
|
n[o.key] = d, a[o.key] = d;
|
|
1545
1545
|
}
|
|
1546
|
-
return n.metrics =
|
|
1547
|
-
}, ga = { class: "glass-inset rounded-xl p-3" },
|
|
1546
|
+
return n.metrics = va(e, t, s, n), n;
|
|
1547
|
+
}, ga = { class: "glass-inset rounded-xl p-3" }, pa = { class: "flex items-center gap-2" }, ha = { class: "min-w-0 flex-1" }, ya = { class: "mt-2 flex flex-col gap-2" }, ba = /* @__PURE__ */ E({
|
|
1548
1548
|
__name: "BlockMetricCard",
|
|
1549
1549
|
props: {
|
|
1550
1550
|
metric: {},
|
|
@@ -1555,9 +1555,9 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1555
1555
|
setup(e, { emit: t }) {
|
|
1556
1556
|
const s = t, a = (n, o) => s("hover", n, o);
|
|
1557
1557
|
return (n, o) => (m(), v("div", ga, [
|
|
1558
|
-
l("div",
|
|
1559
|
-
l("div",
|
|
1560
|
-
|
|
1558
|
+
l("div", pa, [
|
|
1559
|
+
l("div", ha, [
|
|
1560
|
+
p(ie, {
|
|
1561
1561
|
active: "",
|
|
1562
1562
|
"hide-message": "",
|
|
1563
1563
|
"model-value": e.metric.label,
|
|
@@ -1565,7 +1565,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1565
1565
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => s("change", { label: i }))
|
|
1566
1566
|
}, null, 8, ["model-value"])
|
|
1567
1567
|
]),
|
|
1568
|
-
|
|
1568
|
+
p(R, {
|
|
1569
1569
|
type: "icon",
|
|
1570
1570
|
size: "sm",
|
|
1571
1571
|
"aria-label": "Стиль показателя",
|
|
@@ -1573,14 +1573,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1573
1573
|
onClick: o[1] || (o[1] = (i) => s("open-style"))
|
|
1574
1574
|
}, {
|
|
1575
1575
|
default: x(() => [
|
|
1576
|
-
|
|
1576
|
+
p(Q, {
|
|
1577
1577
|
name: "palette",
|
|
1578
1578
|
size: 18
|
|
1579
1579
|
})
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 1
|
|
1582
1582
|
}),
|
|
1583
|
-
|
|
1583
|
+
p(R, {
|
|
1584
1584
|
type: "icon",
|
|
1585
1585
|
size: "sm",
|
|
1586
1586
|
"aria-label": "Удалить показатель",
|
|
@@ -1588,7 +1588,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1588
1588
|
onClick: o[2] || (o[2] = (i) => s("remove"))
|
|
1589
1589
|
}, {
|
|
1590
1590
|
default: x(() => [
|
|
1591
|
-
|
|
1591
|
+
p(Q, {
|
|
1592
1592
|
name: "trash",
|
|
1593
1593
|
size: 14
|
|
1594
1594
|
})
|
|
@@ -1602,14 +1602,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1602
1602
|
onDragstart: o[3] || (o[3] = (i) => s("dragstart", i, e.index)),
|
|
1603
1603
|
onDragend: o[4] || (o[4] = (i) => s("dragend"))
|
|
1604
1604
|
}, [
|
|
1605
|
-
|
|
1605
|
+
p(Q, {
|
|
1606
1606
|
name: "grip",
|
|
1607
1607
|
size: 16
|
|
1608
1608
|
})
|
|
1609
1609
|
], 32)
|
|
1610
1610
|
]),
|
|
1611
|
-
l("div",
|
|
1612
|
-
|
|
1611
|
+
l("div", ya, [
|
|
1612
|
+
p(Xe, {
|
|
1613
1613
|
value: e.metric.value,
|
|
1614
1614
|
args: e.args,
|
|
1615
1615
|
params: [...J(xt)],
|
|
@@ -1618,7 +1618,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1618
1618
|
onChange: o[6] || (o[6] = (i) => s("change", { value: i })),
|
|
1619
1619
|
onHover: a
|
|
1620
1620
|
}, null, 8, ["value", "args", "params"]),
|
|
1621
|
-
|
|
1621
|
+
p(Xe, {
|
|
1622
1622
|
value: e.metric.format,
|
|
1623
1623
|
args: e.args,
|
|
1624
1624
|
params: [...J(xt)],
|
|
@@ -1631,7 +1631,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1631
1631
|
])
|
|
1632
1632
|
]));
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1634
|
+
}), xa = { class: "flex min-h-96 flex-col gap-4" }, ka = { class: "text-sm text-gray-500 dark:text-gray-400" }, $a = { class: "font-medium text-gray-900 dark:text-white" }, wa = { class: "glass-inset rounded-md p-3" }, _a = { class: "grid gap-3 sm:grid-cols-2" }, Ca = { class: "mt-auto flex justify-end" }, Sa = /* @__PURE__ */ E({
|
|
1635
1635
|
__name: "BlockMetricStyleDialog",
|
|
1636
1636
|
props: {
|
|
1637
1637
|
label: {},
|
|
@@ -1645,52 +1645,52 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1645
1645
|
return ((O = h.find((F) => F.value === $)) == null ? void 0 : O.name) ?? "";
|
|
1646
1646
|
}, o = _(() => n(It, a.value.size)), i = _(() => n(Ot, a.value.color)), c = _(() => n(Ft, a.value.weight)), u = _(() => n(Dt, a.value.align)), r = (h) => {
|
|
1647
1647
|
s("update", { ...a.value, ...h });
|
|
1648
|
-
}, d = (h) => r({ size: h.value }), f = (h) => r({ color: h.value }),
|
|
1648
|
+
}, d = (h) => r({ size: h.value }), f = (h) => r({ color: h.value }), g = (h) => r({ weight: h.value }), b = (h) => r({ align: h.value });
|
|
1649
1649
|
return (h, $) => (m(), I(Ae, {
|
|
1650
1650
|
title: "Стиль показателя",
|
|
1651
1651
|
size: "md",
|
|
1652
1652
|
onClose: $[1] || ($[1] = (O) => s("close"))
|
|
1653
1653
|
}, {
|
|
1654
1654
|
default: x(() => [
|
|
1655
|
-
l("div",
|
|
1656
|
-
l("p",
|
|
1655
|
+
l("div", xa, [
|
|
1656
|
+
l("p", ka, [
|
|
1657
1657
|
$[2] || ($[2] = A(" Показатель: ", -1)),
|
|
1658
|
-
l("span",
|
|
1658
|
+
l("span", $a, w(e.label), 1)
|
|
1659
1659
|
]),
|
|
1660
|
-
l("div",
|
|
1660
|
+
l("div", wa, [
|
|
1661
1661
|
$[3] || ($[3] = l("span", { class: "block text-xs text-gray-500 dark:text-gray-400" }, "Предпросмотр", -1)),
|
|
1662
1662
|
l("span", {
|
|
1663
1663
|
class: j(["mt-1 block whitespace-pre", J(yt)(a.value)])
|
|
1664
1664
|
}, w(e.preview || "1 234 кВт·ч"), 3)
|
|
1665
1665
|
]),
|
|
1666
|
-
l("div",
|
|
1667
|
-
|
|
1666
|
+
l("div", _a, [
|
|
1667
|
+
p(he, {
|
|
1668
1668
|
"model-value": o.value,
|
|
1669
1669
|
items: J(It),
|
|
1670
1670
|
label: "Размер",
|
|
1671
1671
|
onChange: d
|
|
1672
1672
|
}, null, 8, ["model-value", "items"]),
|
|
1673
|
-
|
|
1673
|
+
p(he, {
|
|
1674
1674
|
"model-value": i.value,
|
|
1675
1675
|
items: J(Ot),
|
|
1676
1676
|
label: "Цвет",
|
|
1677
1677
|
onChange: f
|
|
1678
1678
|
}, null, 8, ["model-value", "items"]),
|
|
1679
|
-
|
|
1679
|
+
p(he, {
|
|
1680
1680
|
"model-value": c.value,
|
|
1681
1681
|
items: J(Ft),
|
|
1682
1682
|
label: "Начертание",
|
|
1683
|
-
onChange:
|
|
1683
|
+
onChange: g
|
|
1684
1684
|
}, null, 8, ["model-value", "items"]),
|
|
1685
|
-
|
|
1685
|
+
p(he, {
|
|
1686
1686
|
"model-value": u.value,
|
|
1687
1687
|
items: J(Dt),
|
|
1688
1688
|
label: "Выравнивание",
|
|
1689
1689
|
onChange: b
|
|
1690
1690
|
}, null, 8, ["model-value", "items"])
|
|
1691
1691
|
]),
|
|
1692
|
-
l("div",
|
|
1693
|
-
|
|
1692
|
+
l("div", Ca, [
|
|
1693
|
+
p(R, {
|
|
1694
1694
|
variant: "primary",
|
|
1695
1695
|
onClick: $[0] || ($[0] = (O) => s("close"))
|
|
1696
1696
|
}, {
|
|
@@ -1705,28 +1705,28 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}));
|
|
1707
1707
|
}
|
|
1708
|
-
}),
|
|
1708
|
+
}), za = { class: "me-2 flex items-center gap-2" }, Ta = { class: "grid gap-4 md:grid-cols-[180px_minmax(0,1fr)]" }, Aa = {
|
|
1709
1709
|
class: "flex flex-col gap-1",
|
|
1710
1710
|
"aria-label": "Блоки"
|
|
1711
|
-
},
|
|
1711
|
+
}, Va = ["onClick"], Ba = { class: "grid size-8 shrink-0 place-items-center rounded-md border border-gray-300/50 dark:border-white/10" }, Ea = { class: "min-w-0 flex-1 truncate text-sm font-medium" }, Ma = { class: "text-xs text-gray-500 dark:text-gray-400" }, La = { class: "flex max-h-120 min-w-0 flex-col gap-3 overflow-y-auto pe-1 scrollbar" }, Ia = {
|
|
1712
1712
|
key: 1,
|
|
1713
1713
|
class: "glass-inset rounded-xl p-3"
|
|
1714
|
-
},
|
|
1714
|
+
}, Oa = {
|
|
1715
1715
|
key: 0,
|
|
1716
1716
|
class: "flex gap-2 flex-wrap flex-auto px-2 py-1"
|
|
1717
|
-
},
|
|
1717
|
+
}, Fa = { class: "relative group" }, Da = { class: "select-none" }, ja = ["onClick"], Ra = {
|
|
1718
1718
|
key: 2,
|
|
1719
1719
|
class: "flex flex-col gap-2"
|
|
1720
|
-
},
|
|
1720
|
+
}, Na = { class: "flex items-center justify-between gap-2" }, Pa = {
|
|
1721
1721
|
key: 0,
|
|
1722
1722
|
class: "glass-inset rounded-xl p-3 text-sm text-gray-500 dark:text-gray-400"
|
|
1723
|
-
},
|
|
1723
|
+
}, Ha = {
|
|
1724
1724
|
key: 1,
|
|
1725
1725
|
class: "flex flex-col gap-2"
|
|
1726
|
-
},
|
|
1726
|
+
}, Ua = ["onDragover", "onDrop"], Ka = {
|
|
1727
1727
|
key: 3,
|
|
1728
1728
|
class: "glass-inset rounded-xl p-3"
|
|
1729
|
-
},
|
|
1729
|
+
}, Wa = { class: "relative max-h-120 overflow-auto scrollbar" }, tn = /* @__PURE__ */ E({
|
|
1730
1730
|
__name: "BlockDataSettings",
|
|
1731
1731
|
props: {
|
|
1732
1732
|
definition: {},
|
|
@@ -1769,7 +1769,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1769
1769
|
for (const [W, S] of Object.entries(e.definition.metrics ?? {}))
|
|
1770
1770
|
k.metrics[W] || (k.metrics[W] = JSON.parse(JSON.stringify(S)));
|
|
1771
1771
|
return k;
|
|
1772
|
-
}, i = L(o(e.config)), c = L("general"), u = L(!1), r = L(!1), d = L(null), f = L(null),
|
|
1772
|
+
}, i = L(o(e.config)), c = L("general"), u = L(!1), r = L(!1), d = L(null), f = L(null), g = L(null), b = L(null), h = L(null), $ = L(null);
|
|
1773
1773
|
let O = JSON.stringify(i.value), F = null;
|
|
1774
1774
|
const B = _(() => Vt(e.definition, i.value, e.context)), X = _(() => B.value.metrics ?? {}), ve = _(
|
|
1775
1775
|
() => a.map((y) => ({
|
|
@@ -1784,12 +1784,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1784
1784
|
return ((y = Ue.value.find((k) => k.value === ut.value)) == null ? void 0 : y.name) ?? "";
|
|
1785
1785
|
}), Ie = (y) => {
|
|
1786
1786
|
ye.value && _e(ye.value, y.value);
|
|
1787
|
-
}, Oe = _(() => K.value ? Ve.value : []),
|
|
1787
|
+
}, Oe = _(() => K.value ? Ve.value : []), Z = _(() => {
|
|
1788
1788
|
var y;
|
|
1789
1789
|
return V.value ? ((y = i.value.metricArgs) == null ? void 0 : y[c.value]) ?? [] : [];
|
|
1790
|
-
})
|
|
1791
|
-
_(() => fa(Y.value, e.context, B.value));
|
|
1792
|
-
const de = _(() => {
|
|
1790
|
+
}), de = _(() => {
|
|
1793
1791
|
var y;
|
|
1794
1792
|
return V.value ? ((y = i.value.metrics) == null ? void 0 : y[c.value]) ?? [] : [];
|
|
1795
1793
|
});
|
|
@@ -1823,29 +1821,29 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1823
1821
|
}, z = (y) => {
|
|
1824
1822
|
const k = B.value[y];
|
|
1825
1823
|
return k === void 0 ? "—" : typeof k == "boolean" ? k ? "да" : "нет" : String(k);
|
|
1826
|
-
}, N = (y) => `v + ' ${y.unit ?? "ед."}'`,
|
|
1824
|
+
}, N = (y) => `v + ' ${y.unit ?? "ед."}'`, ge = () => {
|
|
1827
1825
|
F && (clearTimeout(F), F = null);
|
|
1828
1826
|
const y = o(i.value), k = JSON.stringify(y);
|
|
1829
1827
|
k !== O && (O = k, s("update:config", y));
|
|
1830
1828
|
};
|
|
1831
1829
|
Te(i, () => {
|
|
1832
|
-
F && clearTimeout(F), F = setTimeout(
|
|
1830
|
+
F && clearTimeout(F), F = setTimeout(ge, 500);
|
|
1833
1831
|
}, { deep: !0 });
|
|
1834
1832
|
const We = () => {
|
|
1835
|
-
|
|
1833
|
+
ge(), s("close");
|
|
1836
1834
|
}, Ge = (y) => {
|
|
1837
1835
|
d.value = { kind: "field", key: y }, r.value = !0;
|
|
1838
1836
|
}, Qe = (y) => {
|
|
1839
|
-
V.value && (
|
|
1837
|
+
V.value && (Z.value.length >= qe || (d.value = { kind: "groupArg", argIndex: Z.value.length }, r.value = !0));
|
|
1840
1838
|
}, ft = ({ path: y }) => {
|
|
1841
1839
|
const k = d.value;
|
|
1842
1840
|
if (!k) return;
|
|
1843
1841
|
if (r.value = !1, k.kind === "field") {
|
|
1844
|
-
const S = e.definition.fields.find((
|
|
1842
|
+
const S = e.definition.fields.find((Y) => Y.key === k.key);
|
|
1845
1843
|
S && _e(S, y);
|
|
1846
1844
|
return;
|
|
1847
1845
|
}
|
|
1848
|
-
const W = [...
|
|
1846
|
+
const W = [...Z.value];
|
|
1849
1847
|
W[k.argIndex] = y, i.value.metricArgs = {
|
|
1850
1848
|
...i.value.metricArgs ?? {},
|
|
1851
1849
|
[c.value]: W.slice(0, qe)
|
|
@@ -1853,10 +1851,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1853
1851
|
}, ue = (y) => {
|
|
1854
1852
|
i.value.metricArgs = {
|
|
1855
1853
|
...i.value.metricArgs ?? {},
|
|
1856
|
-
[c.value]:
|
|
1854
|
+
[c.value]: Z.value.filter((k, W) => W !== y)
|
|
1857
1855
|
};
|
|
1858
1856
|
}, Ce = (y, k) => {
|
|
1859
|
-
|
|
1857
|
+
g.value = y === "enter" ? k : null;
|
|
1860
1858
|
}, P = () => `metric-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}`, Se = () => {
|
|
1861
1859
|
var k;
|
|
1862
1860
|
const y = (k = i.value.metrics) == null ? void 0 : k[c.value];
|
|
@@ -1889,12 +1887,12 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1889
1887
|
W.splice(y, 0, S), i.value.metrics = { ...i.value.metrics ?? {}, [c.value]: W };
|
|
1890
1888
|
}, vn = () => {
|
|
1891
1889
|
h.value = null, $.value = null;
|
|
1892
|
-
},
|
|
1890
|
+
}, gn = (y) => {
|
|
1893
1891
|
var k, W;
|
|
1894
1892
|
return ((W = (k = X.value[c.value]) == null ? void 0 : k.find((S) => S.id === y.id)) == null ? void 0 : W.value) ?? "";
|
|
1895
1893
|
}, tt = (y, k) => {
|
|
1896
1894
|
Object.assign(y, k);
|
|
1897
|
-
},
|
|
1895
|
+
}, pn = () => {
|
|
1898
1896
|
const y = JSON.stringify(i.value, null, 2), k = new Blob([y], { type: "application/json" }), W = URL.createObjectURL(k), S = document.createElement("a");
|
|
1899
1897
|
S.href = W, S.download = `${e.definition.type}.json`, S.click(), URL.revokeObjectURL(W);
|
|
1900
1898
|
}, hn = () => {
|
|
@@ -1905,19 +1903,19 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1905
1903
|
const k = y.target, W = (S = k.files) == null ? void 0 : S[0];
|
|
1906
1904
|
if (W)
|
|
1907
1905
|
try {
|
|
1908
|
-
const
|
|
1909
|
-
if (!Mt(
|
|
1906
|
+
const Y = JSON.parse(await W.text());
|
|
1907
|
+
if (!Mt(Y) || typeof Y.type != "string" || !Mt(Y.bindings)) return;
|
|
1910
1908
|
i.value = {
|
|
1911
1909
|
...i.value,
|
|
1912
|
-
...
|
|
1910
|
+
...Y,
|
|
1913
1911
|
id: i.value.id,
|
|
1914
1912
|
type: e.definition.type
|
|
1915
|
-
},
|
|
1913
|
+
}, ge();
|
|
1916
1914
|
} finally {
|
|
1917
1915
|
k.value = "";
|
|
1918
1916
|
}
|
|
1919
1917
|
};
|
|
1920
|
-
return Ze(
|
|
1918
|
+
return Ze(ge), (y, k) => {
|
|
1921
1919
|
const W = Pe;
|
|
1922
1920
|
return m(), I(Ae, {
|
|
1923
1921
|
title: "Настройка блока",
|
|
@@ -1925,8 +1923,8 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1925
1923
|
onClose: We
|
|
1926
1924
|
}, {
|
|
1927
1925
|
"header-btn": x(() => [
|
|
1928
|
-
l("div",
|
|
1929
|
-
|
|
1926
|
+
l("div", za, [
|
|
1927
|
+
p(R, {
|
|
1930
1928
|
type: "icon",
|
|
1931
1929
|
size: "sm",
|
|
1932
1930
|
"aria-label": "Справка",
|
|
@@ -1934,14 +1932,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1934
1932
|
onClick: k[0] || (k[0] = (S) => u.value = !0)
|
|
1935
1933
|
}, {
|
|
1936
1934
|
default: x(() => [
|
|
1937
|
-
|
|
1935
|
+
p(Q, {
|
|
1938
1936
|
name: "help",
|
|
1939
1937
|
size: 16
|
|
1940
1938
|
})
|
|
1941
1939
|
]),
|
|
1942
1940
|
_: 1
|
|
1943
1941
|
}),
|
|
1944
|
-
|
|
1942
|
+
p(R, {
|
|
1945
1943
|
type: "icon",
|
|
1946
1944
|
size: "sm",
|
|
1947
1945
|
"aria-label": "Импорт",
|
|
@@ -1949,22 +1947,22 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1949
1947
|
onClick: hn
|
|
1950
1948
|
}, {
|
|
1951
1949
|
default: x(() => [
|
|
1952
|
-
|
|
1950
|
+
p(Q, {
|
|
1953
1951
|
name: "upload",
|
|
1954
1952
|
size: 16
|
|
1955
1953
|
})
|
|
1956
1954
|
]),
|
|
1957
1955
|
_: 1
|
|
1958
1956
|
}),
|
|
1959
|
-
|
|
1957
|
+
p(R, {
|
|
1960
1958
|
type: "icon",
|
|
1961
1959
|
size: "sm",
|
|
1962
1960
|
"aria-label": "Экспорт",
|
|
1963
1961
|
title: "Экспорт",
|
|
1964
|
-
onClick:
|
|
1962
|
+
onClick: pn
|
|
1965
1963
|
}, {
|
|
1966
1964
|
default: x(() => [
|
|
1967
|
-
|
|
1965
|
+
p(Q, {
|
|
1968
1966
|
name: "download",
|
|
1969
1967
|
size: 16
|
|
1970
1968
|
})
|
|
@@ -1982,25 +1980,25 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1982
1980
|
class: "hidden",
|
|
1983
1981
|
onChange: yn
|
|
1984
1982
|
}, null, 544),
|
|
1985
|
-
l("div",
|
|
1986
|
-
l("nav",
|
|
1983
|
+
l("div", Ta, [
|
|
1984
|
+
l("nav", Aa, [
|
|
1987
1985
|
(m(!0), v(D, null, H(ve.value, (S) => (m(), v("button", {
|
|
1988
1986
|
key: S.key,
|
|
1989
1987
|
type: "button",
|
|
1990
|
-
class: j(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", c.value === S.key ? "bg-
|
|
1991
|
-
onClick: (
|
|
1988
|
+
class: j(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", c.value === S.key ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
|
|
1989
|
+
onClick: (Y) => c.value = S.key
|
|
1992
1990
|
}, [
|
|
1993
|
-
l("span",
|
|
1994
|
-
|
|
1991
|
+
l("span", Ba, [
|
|
1992
|
+
p(Q, {
|
|
1995
1993
|
name: S.icon,
|
|
1996
1994
|
size: 16
|
|
1997
1995
|
}, null, 8, ["name"])
|
|
1998
1996
|
]),
|
|
1999
|
-
l("span",
|
|
2000
|
-
l("span",
|
|
2001
|
-
], 10,
|
|
1997
|
+
l("span", Ea, w(S.label), 1),
|
|
1998
|
+
l("span", Ma, w(S.count), 1)
|
|
1999
|
+
], 10, Va))), 128))
|
|
2002
2000
|
]),
|
|
2003
|
-
l("div",
|
|
2001
|
+
l("div", La, [
|
|
2004
2002
|
K.value ? (m(!0), v(D, { key: 0 }, H(Oe.value, (S) => (m(), I(Lt, {
|
|
2005
2003
|
key: S.key,
|
|
2006
2004
|
field: S,
|
|
@@ -2010,9 +2008,9 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2010
2008
|
placeholder: z(S.previewKey ?? S.key),
|
|
2011
2009
|
"placeholder-format": N(S),
|
|
2012
2010
|
"show-reset": !1,
|
|
2013
|
-
"onUpdate:modelValue": (
|
|
2014
|
-
"onUpdate:format": (
|
|
2015
|
-
onPick: (
|
|
2011
|
+
"onUpdate:modelValue": (Y) => _e(S, Y),
|
|
2012
|
+
"onUpdate:format": (Y) => G(S, Y),
|
|
2013
|
+
onPick: (Y) => Ge(S.key)
|
|
2016
2014
|
}, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format", "onUpdate:modelValue", "onUpdate:format", "onPick"]))), 128)) : (m(), v(D, { key: 1 }, [
|
|
2017
2015
|
re.value ? (m(), I(Lt, {
|
|
2018
2016
|
key: 0,
|
|
@@ -2027,41 +2025,41 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2027
2025
|
"onUpdate:format": k[2] || (k[2] = (S) => G(re.value, S)),
|
|
2028
2026
|
onPick: k[3] || (k[3] = (S) => Ge(re.value.key))
|
|
2029
2027
|
}, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format"])) : T("", !0),
|
|
2030
|
-
V.value ? (m(), v("section",
|
|
2031
|
-
|
|
2032
|
-
active: !!
|
|
2033
|
-
"icon-disabled":
|
|
2028
|
+
V.value ? (m(), v("section", Ia, [
|
|
2029
|
+
p(zt, {
|
|
2030
|
+
active: !!Z.value.length,
|
|
2031
|
+
"icon-disabled": Z.value.length >= J(qe),
|
|
2034
2032
|
label: "Аргументы",
|
|
2035
2033
|
"icon-label": "Добавить аргумент",
|
|
2036
2034
|
onIcon: k[4] || (k[4] = (S) => Qe())
|
|
2037
2035
|
}, {
|
|
2038
2036
|
default: x(() => [
|
|
2039
|
-
|
|
2040
|
-
(m(!0), v(D, null, H(
|
|
2037
|
+
Z.value.length ? (m(), v("div", Oa, [
|
|
2038
|
+
(m(!0), v(D, null, H(Z.value, (S, Y) => (m(), v("div", {
|
|
2041
2039
|
key: S,
|
|
2042
2040
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2043
2041
|
}, [
|
|
2044
|
-
l("div",
|
|
2045
|
-
l("span",
|
|
2042
|
+
l("div", Fa, [
|
|
2043
|
+
l("span", Da, w(S), 1)
|
|
2046
2044
|
]),
|
|
2047
|
-
|
|
2045
|
+
Y || Z.value.length < 2 ? (m(), v("button", {
|
|
2048
2046
|
key: 0,
|
|
2049
2047
|
type: "button",
|
|
2050
2048
|
class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
|
|
2051
|
-
onClick: (ze) => ue(
|
|
2049
|
+
onClick: (ze) => ue(Y)
|
|
2052
2050
|
}, [
|
|
2053
|
-
|
|
2054
|
-
], 8,
|
|
2051
|
+
p(W, { class: "size-5" })
|
|
2052
|
+
], 8, ja)) : T("", !0)
|
|
2055
2053
|
]))), 128))
|
|
2056
2054
|
])) : T("", !0)
|
|
2057
2055
|
]),
|
|
2058
2056
|
_: 1
|
|
2059
2057
|
}, 8, ["active", "icon-disabled"])
|
|
2060
2058
|
])) : T("", !0),
|
|
2061
|
-
V.value ? (m(), v("section",
|
|
2062
|
-
l("div",
|
|
2059
|
+
V.value ? (m(), v("section", Ra, [
|
|
2060
|
+
l("div", Na, [
|
|
2063
2061
|
k[8] || (k[8] = l("h4", { class: "text-sm font-semibold" }, "Показатели", -1)),
|
|
2064
|
-
|
|
2062
|
+
p(R, {
|
|
2065
2063
|
type: "icon",
|
|
2066
2064
|
size: "sm",
|
|
2067
2065
|
"aria-label": "Добавить показатель",
|
|
@@ -2070,7 +2068,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2070
2068
|
onClick: Se
|
|
2071
2069
|
}, {
|
|
2072
2070
|
default: x(() => [
|
|
2073
|
-
|
|
2071
|
+
p(Q, {
|
|
2074
2072
|
name: "plus",
|
|
2075
2073
|
size: 14
|
|
2076
2074
|
})
|
|
@@ -2078,17 +2076,17 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2078
2076
|
_: 1
|
|
2079
2077
|
}, 8, ["disabled"])
|
|
2080
2078
|
]),
|
|
2081
|
-
de.value.length ? (m(), v("div",
|
|
2082
|
-
(m(!0), v(D, null, H(de.value, (S,
|
|
2079
|
+
de.value.length ? (m(), v("div", Ha, [
|
|
2080
|
+
(m(!0), v(D, null, H(de.value, (S, Y) => (m(), v("div", {
|
|
2083
2081
|
key: S.id,
|
|
2084
|
-
class: j(["rounded-xl transition", { "ring-1 ring-
|
|
2085
|
-
onDragover: te((ze) => et(
|
|
2086
|
-
onDrop: te((ze) => vt(
|
|
2082
|
+
class: j(["rounded-xl transition", { "ring-1 ring-cyan-main/50": $.value === Y }]),
|
|
2083
|
+
onDragover: te((ze) => et(Y), ["prevent"]),
|
|
2084
|
+
onDrop: te((ze) => vt(Y), ["prevent"])
|
|
2087
2085
|
}, [
|
|
2088
|
-
|
|
2086
|
+
p(ba, {
|
|
2089
2087
|
metric: S,
|
|
2090
|
-
index:
|
|
2091
|
-
args:
|
|
2088
|
+
index: Y,
|
|
2089
|
+
args: Z.value,
|
|
2092
2090
|
onRemove: (ze) => $e(S.id),
|
|
2093
2091
|
onOpenStyle: (ze) => fe(S),
|
|
2094
2092
|
onToggleField: (ze) => me(S, ze),
|
|
@@ -2097,11 +2095,11 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2097
2095
|
onChange: (ze) => tt(S, ze),
|
|
2098
2096
|
onHover: Ce
|
|
2099
2097
|
}, null, 8, ["metric", "index", "args", "onRemove", "onOpenStyle", "onToggleField", "onChange"])
|
|
2100
|
-
], 42,
|
|
2101
|
-
])) : (m(), v("p",
|
|
2098
|
+
], 42, Ua))), 128))
|
|
2099
|
+
])) : (m(), v("p", Pa, "Показателей нет. Добавьте первый."))
|
|
2102
2100
|
])) : T("", !0),
|
|
2103
|
-
ye.value ? (m(), v("div",
|
|
2104
|
-
|
|
2101
|
+
ye.value ? (m(), v("div", Ka, [
|
|
2102
|
+
p(he, {
|
|
2105
2103
|
"model-value": Le.value,
|
|
2106
2104
|
items: Ue.value,
|
|
2107
2105
|
label: "Направление",
|
|
@@ -2111,11 +2109,11 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2111
2109
|
], 64))
|
|
2112
2110
|
])
|
|
2113
2111
|
]),
|
|
2114
|
-
f.value ? (m(), I(
|
|
2112
|
+
f.value ? (m(), I(Sa, {
|
|
2115
2113
|
key: 0,
|
|
2116
2114
|
label: f.value.label,
|
|
2117
2115
|
style: Me(f.value.style),
|
|
2118
|
-
preview:
|
|
2116
|
+
preview: gn(f.value),
|
|
2119
2117
|
onUpdate: le,
|
|
2120
2118
|
onClose: k[5] || (k[5] = (S) => f.value = null)
|
|
2121
2119
|
}, null, 8, ["label", "style", "preview"])) : T("", !0),
|
|
@@ -2126,8 +2124,8 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2126
2124
|
onClose: k[6] || (k[6] = (S) => r.value = !1)
|
|
2127
2125
|
}, {
|
|
2128
2126
|
default: x(() => [
|
|
2129
|
-
l("div",
|
|
2130
|
-
|
|
2127
|
+
l("div", Wa, [
|
|
2128
|
+
p(St, {
|
|
2131
2129
|
items: e.context.roots,
|
|
2132
2130
|
onClick: ft
|
|
2133
2131
|
}, null, 8, ["items"])
|
|
@@ -2144,7 +2142,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2144
2142
|
});
|
|
2145
2143
|
};
|
|
2146
2144
|
}
|
|
2147
|
-
}),
|
|
2145
|
+
}), Ga = /* @__PURE__ */ E({
|
|
2148
2146
|
__name: "BlockHost",
|
|
2149
2147
|
props: {
|
|
2150
2148
|
definition: {},
|
|
@@ -2174,10 +2172,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2174
2172
|
}, null, 8, ["definition", "config", "context", "removable"])) : T("", !0)
|
|
2175
2173
|
], 64));
|
|
2176
2174
|
}
|
|
2177
|
-
}),
|
|
2175
|
+
}), Ja = { class: "grid gap-3 sm:grid-cols-2" }, Xa = ["onClick"], qa = { class: "grid size-10 place-items-center rounded-lg border border-cyan-main/20 bg-cyan-main/10 text-cyan-main" }, Ya = { class: "mt-3 block text-base font-semibold" }, Za = {
|
|
2178
2176
|
key: 0,
|
|
2179
2177
|
class: "mt-1 block text-sm text-gray-500 dark:text-gray-400"
|
|
2180
|
-
},
|
|
2178
|
+
}, Qa = {
|
|
2181
2179
|
key: 0,
|
|
2182
2180
|
class: "py-8 text-center text-sm text-gray-500 dark:text-gray-400"
|
|
2183
2181
|
}, Hd = /* @__PURE__ */ E({
|
|
@@ -2194,24 +2192,24 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2194
2192
|
onClose: n[0] || (n[0] = (o) => s("close"))
|
|
2195
2193
|
}, {
|
|
2196
2194
|
default: x(() => [
|
|
2197
|
-
l("div",
|
|
2195
|
+
l("div", Ja, [
|
|
2198
2196
|
(m(!0), v(D, null, H(e.definitions, (o) => (m(), v("button", {
|
|
2199
2197
|
key: o.type,
|
|
2200
2198
|
type: "button",
|
|
2201
|
-
class: "glass-inset flex flex-col items-start rounded-xl p-4 text-left transition hover:border-
|
|
2199
|
+
class: "glass-inset flex flex-col items-start rounded-xl p-4 text-left transition hover:border-cyan-main/30 hover:bg-cyan-main/5",
|
|
2202
2200
|
onClick: (i) => s("select", o.type)
|
|
2203
2201
|
}, [
|
|
2204
|
-
l("span",
|
|
2205
|
-
|
|
2202
|
+
l("span", qa, [
|
|
2203
|
+
p(Q, {
|
|
2206
2204
|
name: o.icon ?? "box",
|
|
2207
2205
|
size: 20
|
|
2208
2206
|
}, null, 8, ["name"])
|
|
2209
2207
|
]),
|
|
2210
|
-
l("span",
|
|
2211
|
-
o.description ? (m(), v("span",
|
|
2212
|
-
], 8,
|
|
2208
|
+
l("span", Ya, w(o.name), 1),
|
|
2209
|
+
o.description ? (m(), v("span", Za, w(o.description), 1)) : T("", !0)
|
|
2210
|
+
], 8, Xa))), 128))
|
|
2213
2211
|
]),
|
|
2214
|
-
e.definitions.length ? T("", !0) : (m(), v("p",
|
|
2212
|
+
e.definitions.length ? T("", !0) : (m(), v("p", Qa, " Пока нет доступных блоков. "))
|
|
2215
2213
|
]),
|
|
2216
2214
|
_: 1
|
|
2217
2215
|
}));
|
|
@@ -2228,7 +2226,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2228
2226
|
emits: ["update:config", "remove"],
|
|
2229
2227
|
setup(e, { emit: t }) {
|
|
2230
2228
|
const s = t, a = _(() => e.provider.createContext(e.source));
|
|
2231
|
-
return (n, o) => (m(), I(
|
|
2229
|
+
return (n, o) => (m(), I(Ga, {
|
|
2232
2230
|
definition: e.definition,
|
|
2233
2231
|
config: e.config,
|
|
2234
2232
|
context: a.value,
|
|
@@ -2237,7 +2235,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2237
2235
|
onRemove: o[1] || (o[1] = (i) => s("remove"))
|
|
2238
2236
|
}, null, 8, ["definition", "config", "context", "removable"]));
|
|
2239
2237
|
}
|
|
2240
|
-
}),
|
|
2238
|
+
}), eo = /* @__PURE__ */ E({
|
|
2241
2239
|
inheritAttrs: !1,
|
|
2242
2240
|
__name: "BlockShell",
|
|
2243
2241
|
props: {
|
|
@@ -2266,10 +2264,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2266
2264
|
}, null, 8, ["definition", "config", "context", "removable"])) : T("", !0)
|
|
2267
2265
|
], 64));
|
|
2268
2266
|
}
|
|
2269
|
-
}),
|
|
2267
|
+
}), to = { class: "flex flex-col gap-3" }, no = {
|
|
2270
2268
|
key: 0,
|
|
2271
2269
|
class: "text-sm text-red-500"
|
|
2272
|
-
},
|
|
2270
|
+
}, lo = { class: "flex justify-end gap-2" }, Kd = /* @__PURE__ */ E({
|
|
2273
2271
|
__name: "BlockImport",
|
|
2274
2272
|
emits: ["close", "import"],
|
|
2275
2273
|
setup(e, { emit: t }) {
|
|
@@ -2299,7 +2297,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2299
2297
|
onClose: r[2] || (r[2] = (d) => s("close"))
|
|
2300
2298
|
}, {
|
|
2301
2299
|
default: x(() => [
|
|
2302
|
-
l("div",
|
|
2300
|
+
l("div", to, [
|
|
2303
2301
|
r[5] || (r[5] = l("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Вставь JSON, который был скопирован кнопкой «Экспорт». ", -1)),
|
|
2304
2302
|
dt(l("textarea", {
|
|
2305
2303
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => a.value = d),
|
|
@@ -2309,9 +2307,9 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2309
2307
|
}, null, 512), [
|
|
2310
2308
|
[$t, a.value]
|
|
2311
2309
|
]),
|
|
2312
|
-
n.value ? (m(), v("p",
|
|
2313
|
-
l("div",
|
|
2314
|
-
|
|
2310
|
+
n.value ? (m(), v("p", no, w(n.value), 1)) : T("", !0),
|
|
2311
|
+
l("div", lo, [
|
|
2312
|
+
p(R, {
|
|
2315
2313
|
color: "gray",
|
|
2316
2314
|
outline: "",
|
|
2317
2315
|
onClick: r[1] || (r[1] = (d) => s("close"))
|
|
@@ -2321,7 +2319,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2321
2319
|
])]),
|
|
2322
2320
|
_: 1
|
|
2323
2321
|
}),
|
|
2324
|
-
|
|
2322
|
+
p(R, {
|
|
2325
2323
|
variant: "primary",
|
|
2326
2324
|
onClick: c
|
|
2327
2325
|
}, {
|
|
@@ -2336,10 +2334,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2336
2334
|
_: 1
|
|
2337
2335
|
}));
|
|
2338
2336
|
}
|
|
2339
|
-
}),
|
|
2337
|
+
}), so = { class: "flex items-center gap-2" }, ao = ["viewBox"], oo = ["id", "d"], io = ["d"], ro = ["d"], co = ["d"], uo = ["dur", "begin", "keyPoints"], mo = ["href"], fo = ["dur", "begin"], vo = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" }, go = { class: "flex items-center gap-2" }, po = { class: "min-w-0 flex-1 truncate text-sm font-semibold" }, ho = {
|
|
2340
2338
|
key: 0,
|
|
2341
2339
|
class: "flex flex-col gap-2"
|
|
2342
|
-
},
|
|
2340
|
+
}, yo = { class: "block text-xs text-gray-500 dark:text-gray-400" }, bo = { class: "col-span-2 row-start-2 grid place-items-center lg:col-span-1 lg:col-start-2 lg:row-span-3 lg:self-center" }, xo = { class: "relative" }, ko = { class: "flex items-center gap-2" }, $o = { class: "grid size-9 place-items-center rounded-lg bg-cyan-main/15" }, wo = { class: "text-sm font-semibold text-gray-800 dark:text-white" }, _o = { class: "mt-3" }, Co = { class: "whitespace-pre-line text-2xl font-bold text-gray-900 dark:text-white" }, So = { class: "ml-1 text-xs text-gray-500 dark:text-gray-400" }, zo = { class: "mt-3 grid grid-cols-2 gap-2" }, To = { class: "min-w-0 truncate text-xs text-gray-500 dark:text-gray-400" }, Ao = { class: "glass-inset mt-2 rounded-md px-3 py-2" }, Vo = { class: "flex items-center justify-between gap-2 text-xs" }, Bo = { class: "whitespace-pre-line font-semibold" }, Eo = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-200/70 dark:bg-white/10" }, Mo = /* @__PURE__ */ E({
|
|
2343
2341
|
__name: "EnergyFlowCard",
|
|
2344
2342
|
props: {
|
|
2345
2343
|
title: { default: "Сетевой инвертор" },
|
|
@@ -2370,12 +2368,12 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2370
2368
|
return ((G = e.metrics) == null ? void 0 : G[U]) ?? [];
|
|
2371
2369
|
}, c = (U, G, z) => {
|
|
2372
2370
|
var Ke;
|
|
2373
|
-
const N = ((Ke = e.metrics) == null ? void 0 : Ke[U]) ?? [],
|
|
2374
|
-
return
|
|
2371
|
+
const N = ((Ke = e.metrics) == null ? void 0 : Ke[U]) ?? [], ge = N.find((We) => We.id === G) ?? N[z];
|
|
2372
|
+
return ge == null ? void 0 : ge.raw;
|
|
2375
2373
|
}, u = (U, G) => {
|
|
2376
2374
|
const z = typeof U == "number" ? U : Number.parseFloat(String(U));
|
|
2377
2375
|
return Number.isFinite(z) ? z : G;
|
|
2378
|
-
}, r = _(() => u(c("solar", "solar-power", 0), e.solarPower)), d = _(() => u(c("grid", "grid-power", 0), e.gridPower)), f = _(() => u(c("battery", "battery-power", 0), e.batteryPower)),
|
|
2376
|
+
}, r = _(() => u(c("solar", "solar-power", 0), e.solarPower)), d = _(() => u(c("grid", "grid-power", 0), e.gridPower)), f = _(() => u(c("battery", "battery-power", 0), e.batteryPower)), g = _(() => u(c("battery", "battery-soc", 1), e.batterySoc)), b = _(() => u(c("house", "house-load", 0), e.loadPower)), h = _(() => r.value > 0 && e.solarFlow !== "idle"), $ = _(() => e.solarFlow === "reverse"), O = _(() => d.value !== 0 || ["import", "export"].includes(e.gridFlow)), F = _(() => f.value !== 0 || ["charge", "discharge"].includes(e.batteryFlow)), B = _(() => e.gridFlow === "export" ? !0 : e.gridFlow === "import" ? !1 : d.value < 0), X = _(() => e.batteryFlow === "charge" ? !0 : e.batteryFlow === "discharge" ? !1 : f.value > 0), ve = _(() => b.value > 0 && e.houseFlow !== "idle"), C = _(() => e.houseFlow !== "reverse"), V = _(() => o(b.value)), Ve = _(() => i("inverter")), re = Fn(), K = _(() => re.value === "reduce"), ye = _(() => [
|
|
2379
2377
|
{ id: "solar", active: h.value, reverse: $.value, speed: a(r.value) },
|
|
2380
2378
|
{ id: "battery", active: F.value, reverse: X.value, speed: a(f.value) },
|
|
2381
2379
|
{ id: "grid", active: O.value, reverse: B.value, speed: a(d.value) },
|
|
@@ -2407,9 +2405,9 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2407
2405
|
icon: "plug",
|
|
2408
2406
|
label: n(e.gridTitle),
|
|
2409
2407
|
metrics: i("grid"),
|
|
2410
|
-
tone: "text-
|
|
2411
|
-
surface: "bg-
|
|
2412
|
-
card: "border-
|
|
2408
|
+
tone: "text-cyan-main",
|
|
2409
|
+
surface: "bg-cyan-main/10",
|
|
2410
|
+
card: "border-cyan-main/25 bg-cyan-main/[0.04]"
|
|
2413
2411
|
},
|
|
2414
2412
|
{
|
|
2415
2413
|
key: "home",
|
|
@@ -2421,7 +2419,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2421
2419
|
surface: "bg-violet-500/10",
|
|
2422
2420
|
card: "border-violet-500/25 bg-violet-500/[0.04]"
|
|
2423
2421
|
}
|
|
2424
|
-
]), Le = L(null), Ie = L(null), Oe = /* @__PURE__ */ new Map(),
|
|
2422
|
+
]), Le = L(null), Ie = L(null), Oe = /* @__PURE__ */ new Map(), Z = L(null);
|
|
2425
2423
|
let de = null;
|
|
2426
2424
|
const mt = (U, G) => {
|
|
2427
2425
|
G instanceof HTMLElement ? Oe.set(U, G) : Oe.delete(U);
|
|
@@ -2433,10 +2431,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2433
2431
|
if (!U || !G) return;
|
|
2434
2432
|
const z = U.getBoundingClientRect();
|
|
2435
2433
|
if (z.width < 2 || z.height < 2) return;
|
|
2436
|
-
const N = Be(G, z),
|
|
2434
|
+
const N = Be(G, z), ge = N.x + N.width / 2, Ke = N.y + N.height / 2, We = ye.value.map((ue) => {
|
|
2437
2435
|
const Ce = Oe.get(ue.id);
|
|
2438
2436
|
if (!Ce) return null;
|
|
2439
|
-
const P = Be(Ce, z), Se = P.x + P.width / 2, $e = P.y + P.height / 2, me =
|
|
2437
|
+
const P = Be(Ce, z), Se = P.x + P.width / 2, $e = P.y + P.height / 2, me = ge - Se, fe = Ke - $e, le = Math.abs(me) >= Math.abs(fe), ee = le ? me > 0 ? "right" : "left" : fe > 0 ? "bottom" : "top", et = ee === "left" ? "right" : ee === "right" ? "left" : ee === "top" ? "bottom" : "top";
|
|
2440
2438
|
return { id: ue.id, rect: P, nodeSide: ee, portSide: et, pos: le ? $e : Se };
|
|
2441
2439
|
}).filter((ue) => ue !== null), Ge = { left: [], right: [], top: [], bottom: [] };
|
|
2442
2440
|
for (const ue of We) Ge[ue.portSide].push(ue);
|
|
@@ -2453,7 +2451,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2453
2451
|
Qe[P.id] = vt;
|
|
2454
2452
|
});
|
|
2455
2453
|
}
|
|
2456
|
-
|
|
2454
|
+
Z.value = { width: z.width, height: z.height, paths: Qe };
|
|
2457
2455
|
}, Fe = () => {
|
|
2458
2456
|
if (de) {
|
|
2459
2457
|
de.disconnect(), Le.value && de.observe(Le.value), Ie.value && de.observe(Ie.value);
|
|
@@ -2466,7 +2464,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2466
2464
|
de == null || de.disconnect(), de = null;
|
|
2467
2465
|
}), (U, G) => (m(), I(Tn, { title: e.title }, {
|
|
2468
2466
|
header: x(() => [
|
|
2469
|
-
l("div",
|
|
2467
|
+
l("div", so, [
|
|
2470
2468
|
l("span", {
|
|
2471
2469
|
class: j(["inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-xs font-medium", e.online ? "border-emerald-500/25 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400" : "border-gray-300/60 bg-gray-500/10 text-gray-500 dark:border-white/10 dark:text-gray-400"])
|
|
2472
2470
|
}, [
|
|
@@ -2484,14 +2482,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2484
2482
|
onClick: G[0] || (G[0] = (z) => s("settings"))
|
|
2485
2483
|
}, {
|
|
2486
2484
|
default: x(() => [
|
|
2487
|
-
|
|
2485
|
+
p(Q, {
|
|
2488
2486
|
name: "settings",
|
|
2489
2487
|
size: 16
|
|
2490
2488
|
})
|
|
2491
2489
|
]),
|
|
2492
2490
|
_: 1
|
|
2493
2491
|
})) : T("", !0),
|
|
2494
|
-
|
|
2492
|
+
p(R, {
|
|
2495
2493
|
type: "icon",
|
|
2496
2494
|
size: "sm",
|
|
2497
2495
|
"aria-label": "Обновить данные",
|
|
@@ -2499,7 +2497,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2499
2497
|
onClick: G[1] || (G[1] = (z) => s("refresh"))
|
|
2500
2498
|
}, {
|
|
2501
2499
|
default: x(() => [
|
|
2502
|
-
|
|
2500
|
+
p(Q, {
|
|
2503
2501
|
name: "refresh",
|
|
2504
2502
|
size: 16
|
|
2505
2503
|
})
|
|
@@ -2514,48 +2512,48 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2514
2512
|
ref: Le,
|
|
2515
2513
|
class: "relative min-h-120 lg:min-h-104"
|
|
2516
2514
|
}, [
|
|
2517
|
-
|
|
2515
|
+
Z.value ? (m(), v("svg", {
|
|
2518
2516
|
key: 0,
|
|
2519
2517
|
class: "pointer-events-none absolute inset-0 size-full",
|
|
2520
|
-
viewBox: `0 0 ${
|
|
2518
|
+
viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
|
|
2521
2519
|
"aria-hidden": "true"
|
|
2522
2520
|
}, [
|
|
2523
2521
|
(m(!0), v(D, null, H(ye.value, (z) => (m(), v("path", {
|
|
2524
2522
|
id: `energy-path-${z.id}`,
|
|
2525
2523
|
key: `rail-${z.id}`,
|
|
2526
2524
|
class: "stroke-current text-gray-400 dark:text-white/20 [stroke-width:1.5] [stroke-linecap:round] [stroke-dasharray:2_6] opacity-45",
|
|
2527
|
-
d:
|
|
2525
|
+
d: Z.value.paths[z.id],
|
|
2528
2526
|
fill: "none"
|
|
2529
|
-
}, null, 8,
|
|
2527
|
+
}, null, 8, oo))), 128)),
|
|
2530
2528
|
(m(!0), v(D, null, H(Ue.value, (z) => (m(), v("g", {
|
|
2531
2529
|
key: `flow-${z.id}`
|
|
2532
2530
|
}, [
|
|
2533
2531
|
l("path", {
|
|
2534
|
-
class: "stroke-[var(--color-
|
|
2535
|
-
d:
|
|
2532
|
+
class: "stroke-[var(--color-cyan-main)] [stroke-width:2.5] [stroke-linecap:round] opacity-55",
|
|
2533
|
+
d: Z.value.paths[z.id],
|
|
2536
2534
|
fill: "none"
|
|
2537
|
-
}, null, 8,
|
|
2535
|
+
}, null, 8, io),
|
|
2538
2536
|
l("path", {
|
|
2539
|
-
class: "stroke-[var(--color-
|
|
2540
|
-
d:
|
|
2537
|
+
class: "stroke-[var(--color-cyan-main)] [stroke-width:10] [stroke-linecap:round] opacity-20 blur-[6px]",
|
|
2538
|
+
d: Z.value.paths[z.id],
|
|
2541
2539
|
fill: "none"
|
|
2542
|
-
}, null, 8,
|
|
2540
|
+
}, null, 8, ro),
|
|
2543
2541
|
l("path", {
|
|
2544
|
-
class: j(["animate-energy-flow stroke-[
|
|
2545
|
-
d:
|
|
2542
|
+
class: j(["animate-energy-flow stroke-[var(--color-neutral-light-30)] [stroke-width:2] [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-[var(--shadow-cyan-glow-xs)] motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
|
|
2543
|
+
d: Z.value.paths[z.id],
|
|
2546
2544
|
style: Me({ animationDuration: `${z.speed}s` }),
|
|
2547
2545
|
fill: "none"
|
|
2548
|
-
}, null, 14,
|
|
2549
|
-
K.value ? T("", !0) : (m(), v(D, { key: 0 }, H([0, 1, 2], (N,
|
|
2546
|
+
}, null, 14, co),
|
|
2547
|
+
K.value ? T("", !0) : (m(), v(D, { key: 0 }, H([0, 1, 2], (N, ge) => l("circle", {
|
|
2550
2548
|
key: `dot-${z.id}-${N}`,
|
|
2551
2549
|
r: "2.6",
|
|
2552
|
-
fill: "
|
|
2550
|
+
fill: "var(--color-neutral-light-30)",
|
|
2553
2551
|
opacity: "0",
|
|
2554
|
-
class: "drop-shadow-[
|
|
2552
|
+
class: "drop-shadow-[var(--shadow-cyan-glow-dot)]"
|
|
2555
2553
|
}, [
|
|
2556
2554
|
l("animateMotion", {
|
|
2557
2555
|
dur: `${z.speed}s`,
|
|
2558
|
-
begin: `${
|
|
2556
|
+
begin: `${ge * z.speed / 3}s`,
|
|
2559
2557
|
repeatCount: "indefinite",
|
|
2560
2558
|
calcMode: "linear",
|
|
2561
2559
|
keyTimes: "0;1",
|
|
@@ -2563,20 +2561,20 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2563
2561
|
}, [
|
|
2564
2562
|
l("mpath", {
|
|
2565
2563
|
href: `#energy-path-${z.id}`
|
|
2566
|
-
}, null, 8,
|
|
2567
|
-
], 8,
|
|
2564
|
+
}, null, 8, mo)
|
|
2565
|
+
], 8, uo),
|
|
2568
2566
|
l("animate", {
|
|
2569
2567
|
attributeName: "opacity",
|
|
2570
2568
|
values: "0;1;1;0",
|
|
2571
2569
|
keyTimes: "0;0.15;0.85;1",
|
|
2572
2570
|
dur: `${z.speed}s`,
|
|
2573
|
-
begin: `${
|
|
2571
|
+
begin: `${ge * z.speed / 3}s`,
|
|
2574
2572
|
repeatCount: "indefinite"
|
|
2575
|
-
}, null, 8,
|
|
2573
|
+
}, null, 8, fo)
|
|
2576
2574
|
])), 64))
|
|
2577
2575
|
]))), 128))
|
|
2578
|
-
], 8,
|
|
2579
|
-
l("div",
|
|
2576
|
+
], 8, ao)) : T("", !0),
|
|
2577
|
+
l("div", vo, [
|
|
2580
2578
|
(m(!0), v(D, null, H(ut.value, (z) => (m(), v("div", {
|
|
2581
2579
|
key: z.key,
|
|
2582
2580
|
ref_for: !0,
|
|
@@ -2584,26 +2582,26 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2584
2582
|
class: j(z.wrapper)
|
|
2585
2583
|
}, [
|
|
2586
2584
|
l("div", {
|
|
2587
|
-
class: j(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-[
|
|
2585
|
+
class: j(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-[var(--shadow-cyan-glow-soft)] lg:max-w-56", z.card])
|
|
2588
2586
|
}, [
|
|
2589
2587
|
l("div", go, [
|
|
2590
2588
|
l("span", {
|
|
2591
2589
|
class: j(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
|
|
2592
2590
|
}, [
|
|
2593
|
-
|
|
2591
|
+
p(Q, {
|
|
2594
2592
|
name: z.icon,
|
|
2595
2593
|
size: 16,
|
|
2596
2594
|
class: j(z.tone)
|
|
2597
2595
|
}, null, 8, ["name", "class"])
|
|
2598
2596
|
], 2),
|
|
2599
|
-
l("span",
|
|
2597
|
+
l("span", po, w(z.label), 1)
|
|
2600
2598
|
]),
|
|
2601
|
-
z.metrics.length ? (m(), v("div",
|
|
2599
|
+
z.metrics.length ? (m(), v("div", ho, [
|
|
2602
2600
|
(m(!0), v(D, null, H(z.metrics, (N) => (m(), v("div", {
|
|
2603
2601
|
key: N.id,
|
|
2604
2602
|
class: "glass-inset rounded-lg px-3 py-2"
|
|
2605
2603
|
}, [
|
|
2606
|
-
l("span",
|
|
2604
|
+
l("span", yo, w(N.label), 1),
|
|
2607
2605
|
l("span", {
|
|
2608
2606
|
class: j(["mt-0.5 block whitespace-pre", J(yt)(N.style)])
|
|
2609
2607
|
}, w(N.value), 3)
|
|
@@ -2611,47 +2609,47 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2611
2609
|
])) : T("", !0)
|
|
2612
2610
|
], 2)
|
|
2613
2611
|
], 2))), 128)),
|
|
2614
|
-
l("div",
|
|
2612
|
+
l("div", bo, [
|
|
2615
2613
|
l("div", {
|
|
2616
2614
|
ref_key: "inverterRef",
|
|
2617
2615
|
ref: Ie,
|
|
2618
|
-
class: "relative w-full max-w-72 rounded-2xl border border-
|
|
2616
|
+
class: "relative w-full max-w-72 rounded-2xl border border-cyan-main/30 bg-cyan-main/10 p-4 text-cyan-main shadow-[var(--shadow-cyan-glow)]"
|
|
2619
2617
|
}, [
|
|
2620
|
-
G[3] || (G[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-
|
|
2621
|
-
l("div",
|
|
2622
|
-
l("div",
|
|
2623
|
-
l("span",
|
|
2624
|
-
|
|
2618
|
+
G[3] || (G[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-cyan-main/15" }, null, -1)),
|
|
2619
|
+
l("div", xo, [
|
|
2620
|
+
l("div", ko, [
|
|
2621
|
+
l("span", $o, [
|
|
2622
|
+
p(Q, {
|
|
2625
2623
|
name: "inverter",
|
|
2626
2624
|
size: 20
|
|
2627
2625
|
})
|
|
2628
2626
|
]),
|
|
2629
|
-
l("span",
|
|
2627
|
+
l("span", wo, w(e.inverterTitle), 1)
|
|
2630
2628
|
]),
|
|
2631
|
-
l("div",
|
|
2632
|
-
l("span",
|
|
2633
|
-
l("span",
|
|
2629
|
+
l("div", _o, [
|
|
2630
|
+
l("span", Co, w(V.value), 1),
|
|
2631
|
+
l("span", So, w(e.loadLabel), 1)
|
|
2634
2632
|
]),
|
|
2635
|
-
l("dl",
|
|
2633
|
+
l("dl", zo, [
|
|
2636
2634
|
(m(!0), v(D, null, H(Ve.value, (z) => (m(), v("div", {
|
|
2637
2635
|
key: z.id,
|
|
2638
2636
|
class: "glass-inset rounded-md px-3 py-2"
|
|
2639
2637
|
}, [
|
|
2640
|
-
l("dt",
|
|
2638
|
+
l("dt", To, w(z.label), 1),
|
|
2641
2639
|
l("dd", {
|
|
2642
2640
|
class: j(["mt-0.5 whitespace-pre", J(yt)(z.style)])
|
|
2643
2641
|
}, w(z.value), 3)
|
|
2644
2642
|
]))), 128))
|
|
2645
2643
|
]),
|
|
2646
|
-
l("div",
|
|
2647
|
-
l("div",
|
|
2644
|
+
l("div", Ao, [
|
|
2645
|
+
l("div", Vo, [
|
|
2648
2646
|
G[2] || (G[2] = l("span", { class: "text-gray-500 dark:text-gray-400" }, "Батарея", -1)),
|
|
2649
|
-
l("span",
|
|
2647
|
+
l("span", Bo, w(g.value) + " %", 1)
|
|
2650
2648
|
]),
|
|
2651
|
-
l("div",
|
|
2649
|
+
l("div", Eo, [
|
|
2652
2650
|
l("div", {
|
|
2653
2651
|
class: "h-full rounded-full bg-emerald-500 transition-all duration-500",
|
|
2654
|
-
style: Me({ width: `${
|
|
2652
|
+
style: Me({ width: `${g.value}%` })
|
|
2655
2653
|
}, null, 4)
|
|
2656
2654
|
])
|
|
2657
2655
|
])
|
|
@@ -2664,10 +2662,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2664
2662
|
_: 1
|
|
2665
2663
|
}, 8, ["title"]));
|
|
2666
2664
|
}
|
|
2667
|
-
}),
|
|
2665
|
+
}), Lo = {
|
|
2668
2666
|
title: "'Сетевой инвертор'",
|
|
2669
2667
|
online: "true"
|
|
2670
|
-
},
|
|
2668
|
+
}, Io = {
|
|
2671
2669
|
solar: [
|
|
2672
2670
|
{ id: "solar-power", label: "Генерация", value: "a", format: "v + ' кВт'" },
|
|
2673
2671
|
{ id: "solar-today", label: "Выработка за день", value: "b", format: "v + ' кВт·ч'" }
|
|
@@ -2692,15 +2690,15 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2692
2690
|
{ id: "inverter-generation", label: "Генерация", value: "c", format: "v + ' кВт'" },
|
|
2693
2691
|
{ id: "inverter-temperature", label: "Температура", value: "d", format: "v + ' °C'" }
|
|
2694
2692
|
]
|
|
2695
|
-
},
|
|
2693
|
+
}, Oo = {
|
|
2696
2694
|
type: "energy-flow",
|
|
2697
2695
|
defaultId: "energy-main",
|
|
2698
2696
|
name: "Сетевой инвертор",
|
|
2699
2697
|
description: "Солнце, сеть, батарея и дом с анимированным перетеканием энергии.",
|
|
2700
2698
|
icon: "bolt",
|
|
2701
|
-
component:
|
|
2702
|
-
defaults:
|
|
2703
|
-
metrics:
|
|
2699
|
+
component: Mo,
|
|
2700
|
+
defaults: Lo,
|
|
2701
|
+
metrics: Io,
|
|
2704
2702
|
fields: [
|
|
2705
2703
|
{ key: "title", plain: !0, block: "general", label: "Заголовок блока", type: "string", default: "Сетевой инвертор" },
|
|
2706
2704
|
{ key: "online", block: "general", label: "Устройство онлайн", type: "boolean", default: !0 },
|
|
@@ -2727,8 +2725,8 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2727
2725
|
emits: ["update:config"],
|
|
2728
2726
|
setup(e, { emit: t }) {
|
|
2729
2727
|
const s = t;
|
|
2730
|
-
return (a, n) => (m(), I(
|
|
2731
|
-
definition: J(
|
|
2728
|
+
return (a, n) => (m(), I(eo, q({
|
|
2729
|
+
definition: J(Oo),
|
|
2732
2730
|
config: e.config,
|
|
2733
2731
|
context: e.context,
|
|
2734
2732
|
editable: e.editable,
|
|
@@ -2737,14 +2735,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2737
2735
|
"onUpdate:config": n[0] || (n[0] = (o) => s("update:config", o))
|
|
2738
2736
|
}), null, 16, ["definition", "config", "context", "editable", "removable"]));
|
|
2739
2737
|
}
|
|
2740
|
-
}),
|
|
2738
|
+
}), Fo = (e, t, s, a) => ({
|
|
2741
2739
|
kind: e,
|
|
2742
2740
|
roots: t,
|
|
2743
2741
|
helpers: s,
|
|
2744
2742
|
meta: a,
|
|
2745
2743
|
get: (n) => Pn(n, t)
|
|
2746
|
-
}),
|
|
2747
|
-
const t =
|
|
2744
|
+
}), Do = (e) => {
|
|
2745
|
+
const t = Fo("device", {
|
|
2748
2746
|
device: e.device ?? {},
|
|
2749
2747
|
ports: e.ports ?? {},
|
|
2750
2748
|
dallas: e.dallas ?? {},
|
|
@@ -2756,36 +2754,36 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2756
2754
|
port: (s) => t.get(`ports.${String(s)}`),
|
|
2757
2755
|
dallas: (s) => t.get(`dallas.${String(s)}`)
|
|
2758
2756
|
}, t;
|
|
2759
|
-
},
|
|
2757
|
+
}, jo = {
|
|
2760
2758
|
id: "vuesp.device",
|
|
2761
2759
|
label: "Устройство vuesp",
|
|
2762
|
-
createContext: (e) =>
|
|
2763
|
-
},
|
|
2760
|
+
createContext: (e) => Do(e)
|
|
2761
|
+
}, Ro = "/tmp/blocks.json", jt = "/fs", No = 1, Po = 8, nn = 10, ln = 4, rt = 512, Ho = 64, Uo = 8192, sn = ["vuesp.blocks", "vuesp.block.energy"], Ko = ["xs", "sm", "base", "lg", "xl"], Wo = ["default", "muted", "primary", "success", "warning", "danger"], Go = ["normal", "medium", "semibold"], Jo = ["left", "right"], xe = (e) => typeof e == "object" && e !== null && !Array.isArray(e), an = (e) => {
|
|
2764
2762
|
if (!xe(e)) return;
|
|
2765
2763
|
const t = {};
|
|
2766
|
-
return typeof e.size == "string" &&
|
|
2767
|
-
},
|
|
2764
|
+
return typeof e.size == "string" && Ko.includes(e.size) && (t.size = e.size), typeof e.color == "string" && Wo.includes(e.color) && (t.color = e.color), typeof e.weight == "string" && Go.includes(e.weight) && (t.weight = e.weight), typeof e.align == "string" && Jo.includes(e.align) && (t.align = e.align), Object.keys(t).length ? t : void 0;
|
|
2765
|
+
}, Xo = (e) => !xe(e) || typeof e.i != "string" || !e.i ? null : {
|
|
2768
2766
|
id: e.i,
|
|
2769
2767
|
label: typeof e.l == "string" ? e.l : "",
|
|
2770
2768
|
value: typeof e.v == "string" ? e.v : "",
|
|
2771
2769
|
format: typeof e.f == "string" ? e.f : "",
|
|
2772
2770
|
style: an(e.s)
|
|
2773
|
-
},
|
|
2771
|
+
}, qo = (e) => {
|
|
2774
2772
|
if (!xe(e)) return;
|
|
2775
2773
|
const t = {};
|
|
2776
2774
|
for (const [s, a] of Object.entries(e))
|
|
2777
2775
|
Array.isArray(a) && (t[s] = a.filter((n) => typeof n == "string").slice(0, ln));
|
|
2778
2776
|
return Object.keys(t).length ? t : void 0;
|
|
2779
|
-
},
|
|
2777
|
+
}, Yo = (e) => {
|
|
2780
2778
|
if (!xe(e)) return;
|
|
2781
2779
|
const t = {};
|
|
2782
2780
|
for (const [s, a] of Object.entries(e)) {
|
|
2783
2781
|
if (!Array.isArray(a)) continue;
|
|
2784
|
-
const n = a.map(
|
|
2782
|
+
const n = a.map(Xo).filter((o) => o !== null).slice(0, nn);
|
|
2785
2783
|
(n.length || Array.isArray(a)) && (t[s] = n);
|
|
2786
2784
|
}
|
|
2787
2785
|
return Object.keys(t).length ? t : void 0;
|
|
2788
|
-
},
|
|
2786
|
+
}, Zo = (e) => {
|
|
2789
2787
|
if (!e) return;
|
|
2790
2788
|
const t = {};
|
|
2791
2789
|
for (const [s, a] of Object.entries(e))
|
|
@@ -2797,23 +2795,23 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2797
2795
|
...n.style && Object.keys(n.style).length ? { s: n.style } : {}
|
|
2798
2796
|
})));
|
|
2799
2797
|
return Object.keys(t).length ? t : void 0;
|
|
2800
|
-
},
|
|
2798
|
+
}, Qo = (e) => ({
|
|
2801
2799
|
id: e.id.slice(0, 64),
|
|
2802
|
-
label: String(e.label ?? "").slice(0,
|
|
2800
|
+
label: String(e.label ?? "").slice(0, Ho),
|
|
2803
2801
|
value: String(e.value ?? "").slice(0, rt),
|
|
2804
2802
|
format: String(e.format ?? "").slice(0, rt),
|
|
2805
2803
|
...e.style ? { style: an(e.style) } : {}
|
|
2806
|
-
}),
|
|
2804
|
+
}), ei = (e) => {
|
|
2807
2805
|
if (!e) return;
|
|
2808
2806
|
const t = {};
|
|
2809
2807
|
for (const [s, a] of Object.entries(e))
|
|
2810
2808
|
Array.isArray(a) && (t[s] = a.slice(0, ln).map((n) => String(n).slice(0, rt)));
|
|
2811
2809
|
return Object.keys(t).length ? t : void 0;
|
|
2812
|
-
},
|
|
2810
|
+
}, ti = (e) => {
|
|
2813
2811
|
if (!e) return;
|
|
2814
2812
|
const t = {};
|
|
2815
2813
|
for (const [s, a] of Object.entries(e))
|
|
2816
|
-
a && (t[s] = a.slice(0, nn).map(
|
|
2814
|
+
a && (t[s] = a.slice(0, nn).map(Qo));
|
|
2817
2815
|
return Object.keys(t).length ? t : void 0;
|
|
2818
2816
|
}, on = (e) => Array.isArray(e) ? e : xe(e) && typeof e.type == "string" && xe(e.bindings) ? [e] : !xe(e) || !Array.isArray(e.b) ? [] : e.b.filter(xe).map((t) => ({
|
|
2819
2817
|
id: String(t.i ?? ""),
|
|
@@ -2821,10 +2819,10 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2821
2819
|
provider: t.p ? String(t.p) : void 0,
|
|
2822
2820
|
bindings: xe(t.m) ? t.m : {},
|
|
2823
2821
|
units: xe(t.u) ? t.u : void 0,
|
|
2824
|
-
metricArgs:
|
|
2825
|
-
metrics:
|
|
2822
|
+
metricArgs: qo(t.A),
|
|
2823
|
+
metrics: Yo(t.g)
|
|
2826
2824
|
})).filter((t) => t.id && t.type), rn = (e) => ({
|
|
2827
|
-
v:
|
|
2825
|
+
v: No,
|
|
2828
2826
|
b: e.map((t) => ({
|
|
2829
2827
|
i: t.id,
|
|
2830
2828
|
t: t.type,
|
|
@@ -2832,21 +2830,21 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2832
2830
|
m: t.bindings,
|
|
2833
2831
|
...t.units && Object.keys(t.units).length ? { u: t.units } : {},
|
|
2834
2832
|
...t.metricArgs && Object.keys(t.metricArgs).length ? { A: t.metricArgs } : {},
|
|
2835
|
-
...t.metrics && Object.keys(t.metrics).length ? { g:
|
|
2833
|
+
...t.metrics && Object.keys(t.metrics).length ? { g: Zo(t.metrics) } : {}
|
|
2836
2834
|
}))
|
|
2837
|
-
}),
|
|
2838
|
-
const t = e.slice(0,
|
|
2835
|
+
}), ni = (e) => {
|
|
2836
|
+
const t = e.slice(0, Po).map((s) => ({
|
|
2839
2837
|
...s,
|
|
2840
2838
|
bindings: Object.fromEntries(
|
|
2841
2839
|
Object.entries(s.bindings).map(([a, n]) => [a, typeof n == "string" ? n.slice(0, rt) : n]).filter(([, a]) => a !== "")
|
|
2842
2840
|
),
|
|
2843
|
-
metricArgs:
|
|
2844
|
-
metrics:
|
|
2841
|
+
metricArgs: ei(s.metricArgs),
|
|
2842
|
+
metrics: ti(s.metrics)
|
|
2845
2843
|
}));
|
|
2846
|
-
for (; t.length > 0 && JSON.stringify(rn(t)).length >
|
|
2844
|
+
for (; t.length > 0 && JSON.stringify(rn(t)).length > Uo; )
|
|
2847
2845
|
t.pop();
|
|
2848
2846
|
return t;
|
|
2849
|
-
},
|
|
2847
|
+
}, li = () => {
|
|
2850
2848
|
for (const e of sn)
|
|
2851
2849
|
try {
|
|
2852
2850
|
const t = localStorage.getItem(e);
|
|
@@ -2856,16 +2854,16 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2856
2854
|
} catch {
|
|
2857
2855
|
}
|
|
2858
2856
|
return [];
|
|
2859
|
-
},
|
|
2857
|
+
}, si = () => {
|
|
2860
2858
|
for (const e of sn)
|
|
2861
2859
|
try {
|
|
2862
2860
|
localStorage.removeItem(e);
|
|
2863
2861
|
} catch {
|
|
2864
2862
|
}
|
|
2865
|
-
},
|
|
2863
|
+
}, ai = (e = Ro) => {
|
|
2866
2864
|
const t = async (a) => {
|
|
2867
2865
|
const n = new FormData();
|
|
2868
|
-
n.append("file[0]", new Blob([JSON.stringify(rn(
|
|
2866
|
+
n.append("file[0]", new Blob([JSON.stringify(rn(ni(a)))], { type: "application/json" }), e);
|
|
2869
2867
|
const o = await fetch(jt, { method: "POST", body: n });
|
|
2870
2868
|
if (!o.ok) throw new Error(`Не удалось сохранить настройки блока: HTTP ${o.status}`);
|
|
2871
2869
|
};
|
|
@@ -2878,16 +2876,16 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2878
2876
|
}
|
|
2879
2877
|
} catch {
|
|
2880
2878
|
}
|
|
2881
|
-
const a =
|
|
2879
|
+
const a = li();
|
|
2882
2880
|
if (a.length)
|
|
2883
2881
|
try {
|
|
2884
|
-
await t(a),
|
|
2882
|
+
await t(a), si();
|
|
2885
2883
|
} catch {
|
|
2886
2884
|
}
|
|
2887
2885
|
return a;
|
|
2888
2886
|
}, write: t };
|
|
2889
|
-
}, Gd =
|
|
2890
|
-
const a = s.provider ??
|
|
2887
|
+
}, Gd = ai(), Jd = (e, t, s = {}) => {
|
|
2888
|
+
const a = s.provider ?? jo, n = s.id ?? e.defaultId ?? e.type, o = L({
|
|
2891
2889
|
id: n,
|
|
2892
2890
|
type: e.type,
|
|
2893
2891
|
provider: a.id,
|
|
@@ -2897,23 +2895,23 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2897
2895
|
}), i = _(() => a.createContext(xn(t))), c = _(() => Vt(e, o.value, i.value)), u = _(() => ({ ...o.value.units ?? {} })), r = async () => {
|
|
2898
2896
|
if (s.storage)
|
|
2899
2897
|
try {
|
|
2900
|
-
const
|
|
2901
|
-
if (!
|
|
2898
|
+
const g = (await s.storage.read()).find((b) => b.id === n);
|
|
2899
|
+
if (!g) return;
|
|
2902
2900
|
o.value = {
|
|
2903
2901
|
...o.value,
|
|
2904
|
-
...
|
|
2902
|
+
...g,
|
|
2905
2903
|
id: n,
|
|
2906
2904
|
type: e.type,
|
|
2907
2905
|
provider: a.id,
|
|
2908
|
-
bindings: { ...o.value.bindings, ...
|
|
2906
|
+
bindings: { ...o.value.bindings, ...g.bindings }
|
|
2909
2907
|
};
|
|
2910
2908
|
} catch {
|
|
2911
2909
|
}
|
|
2912
2910
|
}, d = async (f) => {
|
|
2913
2911
|
if (o.value = f, !!s.storage)
|
|
2914
2912
|
try {
|
|
2915
|
-
const
|
|
2916
|
-
await s.storage.write([...
|
|
2913
|
+
const g = await s.storage.read();
|
|
2914
|
+
await s.storage.write([...g.filter((b) => b.id !== f.id), f]);
|
|
2917
2915
|
} catch {
|
|
2918
2916
|
}
|
|
2919
2917
|
};
|
|
@@ -2925,23 +2923,23 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2925
2923
|
load: r,
|
|
2926
2924
|
update: d
|
|
2927
2925
|
});
|
|
2928
|
-
},
|
|
2926
|
+
}, oi = {
|
|
2929
2927
|
viewBox: "0 0 24 24",
|
|
2930
2928
|
width: "1.2em",
|
|
2931
2929
|
height: "1.2em"
|
|
2932
2930
|
};
|
|
2933
|
-
function
|
|
2934
|
-
return m(), v("svg",
|
|
2931
|
+
function ii(e, t) {
|
|
2932
|
+
return m(), v("svg", oi, [...t[0] || (t[0] = [
|
|
2935
2933
|
l("path", {
|
|
2936
2934
|
fill: "currentColor",
|
|
2937
2935
|
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"
|
|
2938
2936
|
}, null, -1)
|
|
2939
2937
|
])]);
|
|
2940
2938
|
}
|
|
2941
|
-
const
|
|
2939
|
+
const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-auto flex justify-between" }, ci = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, ui = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, mi = {
|
|
2942
2940
|
key: 0,
|
|
2943
2941
|
class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
|
|
2944
|
-
},
|
|
2942
|
+
}, fi = { class: "min-h-60 relative" }, vi = { class: "pt-6" }, gi = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, pi = { class: "text-center text-xl mt-4" }, He = /* @__PURE__ */ E({
|
|
2945
2943
|
__name: "CardBase",
|
|
2946
2944
|
props: {
|
|
2947
2945
|
size: {},
|
|
@@ -2964,13 +2962,13 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
2964
2962
|
const s = e, a = t, n = L(!1), o = _(() => ["button", "dimmer"].includes(s.type || "") && s.value ? "text-amber-500" : "text-gray-400"), i = (f) => a("edit", f), c = (f) => a("clone", f), u = () => n.value = !0, r = (f) => a("open", f), d = (f) => {
|
|
2965
2963
|
n.value = !1, a("close", f);
|
|
2966
2964
|
};
|
|
2967
|
-
return (f,
|
|
2968
|
-
const b = qt, h =
|
|
2965
|
+
return (f, g) => {
|
|
2966
|
+
const b = qt, h = ri;
|
|
2969
2967
|
return m(), v("div", {
|
|
2970
|
-
class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-
|
|
2968
|
+
class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-cyan-main/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_50px_-18px_rgba(40,183,240,0.25)]",
|
|
2971
2969
|
onClick: u
|
|
2972
2970
|
}, [
|
|
2973
|
-
l("div",
|
|
2971
|
+
l("div", di, [
|
|
2974
2972
|
l("div", {
|
|
2975
2973
|
class: j([o.value, "size-8 animate-shake"])
|
|
2976
2974
|
}, [
|
|
@@ -2980,19 +2978,19 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
2980
2978
|
]),
|
|
2981
2979
|
l("div", null, [
|
|
2982
2980
|
M(f.$slots, "body", ae(oe(s)), () => [
|
|
2983
|
-
l("h6",
|
|
2981
|
+
l("h6", ci, [
|
|
2984
2982
|
M(f.$slots, "name", ae(oe(s)), () => [
|
|
2985
2983
|
A(w(s.name), 1)
|
|
2986
2984
|
])
|
|
2987
2985
|
]),
|
|
2988
|
-
l("div",
|
|
2986
|
+
l("div", ui, [
|
|
2989
2987
|
M(f.$slots, "value", ae(oe(s)), () => [
|
|
2990
2988
|
A(w(s.valueTo || s.value), 1)
|
|
2991
2989
|
])
|
|
2992
2990
|
])
|
|
2993
2991
|
])
|
|
2994
2992
|
]),
|
|
2995
|
-
s.icon ? (m(), v("div",
|
|
2993
|
+
s.icon ? (m(), v("div", mi, [
|
|
2996
2994
|
M(f.$slots, "icon", ae(oe(s)))
|
|
2997
2995
|
])) : T("", !0),
|
|
2998
2996
|
n.value ? (m(), I(Ae, {
|
|
@@ -3003,35 +3001,35 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
3003
3001
|
onOpen: r
|
|
3004
3002
|
}, {
|
|
3005
3003
|
"header-btn": x(() => [
|
|
3006
|
-
|
|
3004
|
+
p(R, {
|
|
3007
3005
|
color: "transparent",
|
|
3008
3006
|
onClick: i
|
|
3009
3007
|
}, {
|
|
3010
3008
|
default: x(() => [
|
|
3011
|
-
|
|
3009
|
+
p(b)
|
|
3012
3010
|
]),
|
|
3013
3011
|
_: 1
|
|
3014
3012
|
}),
|
|
3015
|
-
|
|
3013
|
+
p(R, {
|
|
3016
3014
|
color: "transparent",
|
|
3017
3015
|
onClick: c
|
|
3018
3016
|
}, {
|
|
3019
3017
|
default: x(() => [
|
|
3020
|
-
|
|
3018
|
+
p(h, { class: "size-4 text-gray-500" })
|
|
3021
3019
|
]),
|
|
3022
3020
|
_: 1
|
|
3023
3021
|
})
|
|
3024
3022
|
]),
|
|
3025
3023
|
default: x(() => [
|
|
3026
|
-
l("div",
|
|
3027
|
-
l("div",
|
|
3024
|
+
l("div", fi, [
|
|
3025
|
+
l("div", vi, [
|
|
3028
3026
|
l("h3", gi, [
|
|
3029
3027
|
M(f.$slots, "dialog-name", ae(oe(s)), () => [
|
|
3030
3028
|
A(w(s.name), 1)
|
|
3031
3029
|
])
|
|
3032
3030
|
]),
|
|
3033
3031
|
M(f.$slots, "dialog", ae(oe(s))),
|
|
3034
|
-
l("p",
|
|
3032
|
+
l("p", pi, [
|
|
3035
3033
|
M(f.$slots, "dialog-value", ae(oe(s)), () => [
|
|
3036
3034
|
A(w(s.valueTo || s.value), 1)
|
|
3037
3035
|
])
|
|
@@ -3044,20 +3042,20 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
3044
3042
|
]);
|
|
3045
3043
|
};
|
|
3046
3044
|
}
|
|
3047
|
-
}),
|
|
3045
|
+
}), hi = {
|
|
3048
3046
|
viewBox: "0 0 24 24",
|
|
3049
3047
|
width: "1.2em",
|
|
3050
3048
|
height: "1.2em"
|
|
3051
3049
|
};
|
|
3052
|
-
function
|
|
3053
|
-
return m(), v("svg",
|
|
3050
|
+
function yi(e, t) {
|
|
3051
|
+
return m(), v("svg", hi, [...t[0] || (t[0] = [
|
|
3054
3052
|
l("path", {
|
|
3055
3053
|
fill: "currentColor",
|
|
3056
3054
|
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"
|
|
3057
3055
|
}, null, -1)
|
|
3058
3056
|
])]);
|
|
3059
3057
|
}
|
|
3060
|
-
const
|
|
3058
|
+
const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex justify-end" }, ki = { class: "flex justify-center py-4" }, Xd = /* @__PURE__ */ E({
|
|
3061
3059
|
__name: "CardButton",
|
|
3062
3060
|
props: {
|
|
3063
3061
|
size: {},
|
|
@@ -3082,7 +3080,7 @@ const xi = ne({ name: "ri-shut-down-line", render: bi }), ki = { class: "flex ju
|
|
|
3082
3080
|
return { disabled: !!c };
|
|
3083
3081
|
}, o = () => a("setState", !s.value);
|
|
3084
3082
|
return (i, c) => {
|
|
3085
|
-
const u =
|
|
3083
|
+
const u = bi;
|
|
3086
3084
|
return m(), I(He, q(s, {
|
|
3087
3085
|
onClick: c[0] || (c[0] = (r) => a("click", r)),
|
|
3088
3086
|
onEdit: c[1] || (c[1] = (r) => a("edit", r)),
|
|
@@ -3092,28 +3090,28 @@ const xi = ne({ name: "ri-shut-down-line", render: bi }), ki = { class: "flex ju
|
|
|
3092
3090
|
M(i.$slots, "icon", ae(oe(r)))
|
|
3093
3091
|
]),
|
|
3094
3092
|
header: x((r) => [
|
|
3095
|
-
l("div",
|
|
3096
|
-
|
|
3093
|
+
l("div", xi, [
|
|
3094
|
+
p(R, q(n(r), {
|
|
3097
3095
|
type: "icon",
|
|
3098
3096
|
class: s.value ? "text-amber-500" : "text-gray-500",
|
|
3099
3097
|
onClick: te(o, ["stop"])
|
|
3100
3098
|
}), {
|
|
3101
3099
|
default: x(() => [
|
|
3102
|
-
|
|
3100
|
+
p(u, { class: "size-8" })
|
|
3103
3101
|
]),
|
|
3104
3102
|
_: 1
|
|
3105
3103
|
}, 16, ["class"])
|
|
3106
3104
|
])
|
|
3107
3105
|
]),
|
|
3108
3106
|
dialog: x((r) => [
|
|
3109
|
-
l("div",
|
|
3110
|
-
|
|
3107
|
+
l("div", ki, [
|
|
3108
|
+
p(R, q(n(r), {
|
|
3111
3109
|
type: "icon",
|
|
3112
3110
|
class: ["size-18", s.value ? "text-amber-500" : "text-gray-500"],
|
|
3113
3111
|
onClick: te(o, ["stop"])
|
|
3114
3112
|
}), {
|
|
3115
3113
|
default: x(() => [
|
|
3116
|
-
|
|
3114
|
+
p(u, { class: "size-16" })
|
|
3117
3115
|
]),
|
|
3118
3116
|
_: 1
|
|
3119
3117
|
}, 16, ["class"])
|
|
@@ -3123,20 +3121,20 @@ const xi = ne({ name: "ri-shut-down-line", render: bi }), ki = { class: "flex ju
|
|
|
3123
3121
|
}, 16);
|
|
3124
3122
|
};
|
|
3125
3123
|
}
|
|
3126
|
-
}),
|
|
3124
|
+
}), $i = {
|
|
3127
3125
|
viewBox: "0 0 24 24",
|
|
3128
3126
|
width: "1.2em",
|
|
3129
3127
|
height: "1.2em"
|
|
3130
3128
|
};
|
|
3131
|
-
function
|
|
3132
|
-
return m(), v("svg",
|
|
3129
|
+
function wi(e, t) {
|
|
3130
|
+
return m(), v("svg", $i, [...t[0] || (t[0] = [
|
|
3133
3131
|
l("path", {
|
|
3134
3132
|
fill: "currentColor",
|
|
3135
3133
|
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"
|
|
3136
3134
|
}, null, -1)
|
|
3137
3135
|
])]);
|
|
3138
3136
|
}
|
|
3139
|
-
const
|
|
3137
|
+
const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify-center relative mx-2 my-6" }, qd = /* @__PURE__ */ E({
|
|
3140
3138
|
__name: "CardDate",
|
|
3141
3139
|
props: {
|
|
3142
3140
|
size: {},
|
|
@@ -3161,39 +3159,39 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3161
3159
|
const d = (f = r == null ? void 0 : r.target) == null ? void 0 : f.valueAsNumber;
|
|
3162
3160
|
d && a("setState", d / 1e3);
|
|
3163
3161
|
}, c = ({ name: r, value: d, opts: f = {} }) => {
|
|
3164
|
-
const { disabled:
|
|
3165
|
-
return { label: r, modelValue: o(d), disabled:
|
|
3162
|
+
const { disabled: g } = f;
|
|
3163
|
+
return { label: r, modelValue: o(d), disabled: g };
|
|
3166
3164
|
}, u = () => {
|
|
3167
3165
|
var d, f;
|
|
3168
3166
|
const r = (f = (d = n.value) == null ? void 0 : d.$el) == null ? void 0 : f.querySelector("input");
|
|
3169
3167
|
r != null && r.showPicker && r.showPicker();
|
|
3170
3168
|
};
|
|
3171
3169
|
return (r, d) => {
|
|
3172
|
-
const f =
|
|
3170
|
+
const f = _i;
|
|
3173
3171
|
return m(), I(He, q(s, {
|
|
3174
|
-
onClick: d[0] || (d[0] = (
|
|
3175
|
-
onEdit: d[1] || (d[1] = (
|
|
3176
|
-
onClone: d[2] || (d[2] = (
|
|
3172
|
+
onClick: d[0] || (d[0] = (g) => a("click", g)),
|
|
3173
|
+
onEdit: d[1] || (d[1] = (g) => a("edit", g)),
|
|
3174
|
+
onClone: d[2] || (d[2] = (g) => a("clone", g))
|
|
3177
3175
|
}), {
|
|
3178
|
-
icon: x((
|
|
3179
|
-
M(r.$slots, "icon", ae(oe(
|
|
3176
|
+
icon: x((g) => [
|
|
3177
|
+
M(r.$slots, "icon", ae(oe(g)))
|
|
3180
3178
|
]),
|
|
3181
|
-
header: x((
|
|
3179
|
+
header: x((g) => [
|
|
3182
3180
|
l("div", null, [
|
|
3183
|
-
|
|
3181
|
+
p(R, {
|
|
3184
3182
|
type: "icon",
|
|
3185
3183
|
class: "text-gray-500",
|
|
3186
3184
|
onClick: te(u, ["stop"])
|
|
3187
3185
|
}, {
|
|
3188
3186
|
default: x(() => [
|
|
3189
|
-
|
|
3187
|
+
p(f, { class: "size-7" })
|
|
3190
3188
|
]),
|
|
3191
3189
|
_: 1
|
|
3192
3190
|
}),
|
|
3193
|
-
|
|
3191
|
+
p(ie, q({
|
|
3194
3192
|
ref_key: "time",
|
|
3195
3193
|
ref: n
|
|
3196
|
-
}, c(
|
|
3194
|
+
}, c(g), {
|
|
3197
3195
|
type: "datetime-local",
|
|
3198
3196
|
class: "size-0",
|
|
3199
3197
|
hidden: "",
|
|
@@ -3201,9 +3199,9 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3201
3199
|
}), null, 16)
|
|
3202
3200
|
])
|
|
3203
3201
|
]),
|
|
3204
|
-
dialog: x((
|
|
3205
|
-
l("div",
|
|
3206
|
-
|
|
3202
|
+
dialog: x((g) => [
|
|
3203
|
+
l("div", Ci, [
|
|
3204
|
+
p(ie, q(c(g), {
|
|
3207
3205
|
type: "datetime-local",
|
|
3208
3206
|
onChange: i
|
|
3209
3207
|
}), null, 16)
|
|
@@ -3213,15 +3211,15 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3213
3211
|
}, 16);
|
|
3214
3212
|
};
|
|
3215
3213
|
}
|
|
3216
|
-
}),
|
|
3214
|
+
}), Si = { class: "flex justify-end" }, zi = { class: "flex justify-end" }, Ti = {
|
|
3217
3215
|
class: /* @__PURE__ */ j("text-blue-600 dark:text-blue-400")
|
|
3218
|
-
},
|
|
3216
|
+
}, Ai = {
|
|
3219
3217
|
width: "30",
|
|
3220
3218
|
height: "30",
|
|
3221
3219
|
viewBox: "-7.5 -7.5 75 75",
|
|
3222
3220
|
version: "1.1",
|
|
3223
3221
|
style: { transform: "rotate(-90deg)" }
|
|
3224
|
-
},
|
|
3222
|
+
}, Vi = ["stroke-dashoffset"], Bi = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, Yd = /* @__PURE__ */ E({
|
|
3225
3223
|
__name: "CardDimmer",
|
|
3226
3224
|
props: {
|
|
3227
3225
|
size: {},
|
|
@@ -3242,29 +3240,29 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3242
3240
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
3243
3241
|
setup(e, { emit: t }) {
|
|
3244
3242
|
const s = e, a = t, n = L(0), o = ({ opts: d, value: f }) => Math.round(100 * +f / ((d == null ? void 0 : d.max) || 255)), i = ({ opts: d, value: f }) => Math.round(187 - +f / ((d == null ? void 0 : d.max) || 255) * 187), c = ({ value: d, opts: f }) => {
|
|
3245
|
-
const { min:
|
|
3246
|
-
return { min:
|
|
3243
|
+
const { min: g = 0, max: b = 255, step: h = 1, disabled: $ } = f || {};
|
|
3244
|
+
return { min: g, max: b, step: h, value: d, disabled: !!$, class: $ ? "" : "cursor-pointer" };
|
|
3247
3245
|
}, u = (d) => a("setState", +d.target.value || 0), r = ({ value: d }) => {
|
|
3248
3246
|
+d != 0 ? (n.value = +d, a("setState", 0)) : a("setState", d ? 0 : n.value || 255);
|
|
3249
3247
|
};
|
|
3250
3248
|
return (d, f) => (m(), I(He, q(s, {
|
|
3251
|
-
onClick: f[0] || (f[0] = (
|
|
3252
|
-
onEdit: f[1] || (f[1] = (
|
|
3253
|
-
onClone: f[2] || (f[2] = (
|
|
3249
|
+
onClick: f[0] || (f[0] = (g) => a("click", g)),
|
|
3250
|
+
onEdit: f[1] || (f[1] = (g) => a("edit", g)),
|
|
3251
|
+
onClone: f[2] || (f[2] = (g) => a("clone", g))
|
|
3254
3252
|
}), {
|
|
3255
|
-
icon: x((
|
|
3256
|
-
M(d.$slots, "icon", ae(oe(
|
|
3253
|
+
icon: x((g) => [
|
|
3254
|
+
M(d.$slots, "icon", ae(oe(g)))
|
|
3257
3255
|
]),
|
|
3258
|
-
header: x((
|
|
3259
|
-
l("div",
|
|
3260
|
-
l("div",
|
|
3261
|
-
|
|
3256
|
+
header: x((g) => [
|
|
3257
|
+
l("div", Si, [
|
|
3258
|
+
l("div", zi, [
|
|
3259
|
+
p(R, q(c(g), {
|
|
3262
3260
|
type: "icon",
|
|
3263
|
-
onClick: te((b) => r(
|
|
3261
|
+
onClick: te((b) => r(g), ["stop"])
|
|
3264
3262
|
}), {
|
|
3265
3263
|
default: x(() => [
|
|
3266
|
-
l("div",
|
|
3267
|
-
(m(), v("svg",
|
|
3264
|
+
l("div", Ti, [
|
|
3265
|
+
(m(), v("svg", Ai, [
|
|
3268
3266
|
f[3] || (f[3] = l("circle", {
|
|
3269
3267
|
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
3270
3268
|
r: "30",
|
|
@@ -3280,10 +3278,10 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3280
3278
|
stroke: "currentColor",
|
|
3281
3279
|
"stroke-width": "8",
|
|
3282
3280
|
"stroke-linecap": "butt",
|
|
3283
|
-
"stroke-dashoffset": i(
|
|
3281
|
+
"stroke-dashoffset": i(g),
|
|
3284
3282
|
fill: "transparent",
|
|
3285
3283
|
"stroke-dasharray": "187"
|
|
3286
|
-
}, null, 8,
|
|
3284
|
+
}, null, 8, Vi)
|
|
3287
3285
|
]))
|
|
3288
3286
|
])
|
|
3289
3287
|
]),
|
|
@@ -3292,17 +3290,17 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3292
3290
|
])
|
|
3293
3291
|
])
|
|
3294
3292
|
]),
|
|
3295
|
-
dialog: x((
|
|
3293
|
+
dialog: x((g) => [
|
|
3296
3294
|
l("div", {
|
|
3297
|
-
class: j(["flex justify-center relative mx-2 my-6", c(
|
|
3295
|
+
class: j(["flex justify-center relative mx-2 my-6", c(g).disabled ? "opacity-40" : ""])
|
|
3298
3296
|
}, [
|
|
3299
3297
|
f[4] || (f[4] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
|
|
3300
3298
|
l("div", {
|
|
3301
3299
|
class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
|
|
3302
|
-
style: Me(`width: ${o(
|
|
3300
|
+
style: Me(`width: ${o(g)}%`)
|
|
3303
3301
|
}, null, 4),
|
|
3304
|
-
l("div",
|
|
3305
|
-
l("input", q({ type: "range" }, c(
|
|
3302
|
+
l("div", Bi, w(o(g)) + " %", 1),
|
|
3303
|
+
l("input", q({ type: "range" }, c(g), {
|
|
3306
3304
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
3307
3305
|
onChange: u
|
|
3308
3306
|
}), null, 16)
|
|
@@ -3346,7 +3344,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3346
3344
|
_: 3
|
|
3347
3345
|
}, 16));
|
|
3348
3346
|
}
|
|
3349
|
-
}),
|
|
3347
|
+
}), Ei = { class: "flex justify-center relative mx-2 my-6" }, Qd = /* @__PURE__ */ E({
|
|
3350
3348
|
__name: "CardInput",
|
|
3351
3349
|
props: {
|
|
3352
3350
|
size: {},
|
|
@@ -3386,8 +3384,8 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3386
3384
|
M(c.$slots, "icon", ae(oe(d)))
|
|
3387
3385
|
]),
|
|
3388
3386
|
dialog: x((d) => [
|
|
3389
|
-
l("div",
|
|
3390
|
-
|
|
3387
|
+
l("div", Ei, [
|
|
3388
|
+
p(ie, q({
|
|
3391
3389
|
modelValue: n.value,
|
|
3392
3390
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => n.value = f)
|
|
3393
3391
|
}, o(d), {
|
|
@@ -3395,7 +3393,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3395
3393
|
onBlur: i
|
|
3396
3394
|
}), {
|
|
3397
3395
|
icon: x(() => [
|
|
3398
|
-
|
|
3396
|
+
p(r, { class: "size-8" })
|
|
3399
3397
|
]),
|
|
3400
3398
|
_: 1
|
|
3401
3399
|
}, 16, ["modelValue"])
|
|
@@ -3405,20 +3403,20 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3405
3403
|
}, 16);
|
|
3406
3404
|
};
|
|
3407
3405
|
}
|
|
3408
|
-
}),
|
|
3406
|
+
}), Mi = {
|
|
3409
3407
|
viewBox: "0 0 24 24",
|
|
3410
3408
|
width: "1.2em",
|
|
3411
3409
|
height: "1.2em"
|
|
3412
3410
|
};
|
|
3413
|
-
function
|
|
3414
|
-
return m(), v("svg",
|
|
3411
|
+
function Li(e, t) {
|
|
3412
|
+
return m(), v("svg", Mi, [...t[0] || (t[0] = [
|
|
3415
3413
|
l("path", {
|
|
3416
3414
|
fill: "currentColor",
|
|
3417
3415
|
d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
|
|
3418
3416
|
}, null, -1)
|
|
3419
3417
|
])]);
|
|
3420
3418
|
}
|
|
3421
|
-
const
|
|
3419
|
+
const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justify-center py-4" }, ec = /* @__PURE__ */ E({
|
|
3422
3420
|
__name: "CardList",
|
|
3423
3421
|
props: {
|
|
3424
3422
|
size: {},
|
|
@@ -3443,11 +3441,11 @@ const Oi = ne({ name: "ri-list-check", render: Ii }), Fi = { class: "flex justif
|
|
|
3443
3441
|
return Array.isArray(c == null ? void 0 : c.items) && ((r = c == null ? void 0 : c.items.find((d) => d.value == u)) == null ? void 0 : r.name) || u;
|
|
3444
3442
|
}, i = ({ name: c, value: u, opts: r = {} }) => {
|
|
3445
3443
|
var b;
|
|
3446
|
-
const { items: d = [], disabled: f } = r,
|
|
3447
|
-
return { label: c, modelValue:
|
|
3444
|
+
const { items: d = [], disabled: f } = r, g = ((b = d.find((h) => h.value == u)) == null ? void 0 : b.name) || u;
|
|
3445
|
+
return { label: c, modelValue: g, items: d, disabled: !!f };
|
|
3448
3446
|
};
|
|
3449
3447
|
return (c, u) => {
|
|
3450
|
-
const r =
|
|
3448
|
+
const r = Ii;
|
|
3451
3449
|
return m(), I(He, q(s, {
|
|
3452
3450
|
onClick: u[1] || (u[1] = (d) => a("click", d)),
|
|
3453
3451
|
onEdit: u[2] || (u[2] = (d) => a("edit", d)),
|
|
@@ -3467,20 +3465,20 @@ const Oi = ne({ name: "ri-list-check", render: Ii }), Fi = { class: "flex justif
|
|
|
3467
3465
|
onClick: u[0] || (u[0] = te(() => {
|
|
3468
3466
|
}, ["prevent", "stop"]))
|
|
3469
3467
|
}, [
|
|
3470
|
-
|
|
3468
|
+
p(he, q(i(d), {
|
|
3471
3469
|
"is-popup": "",
|
|
3472
3470
|
top: "0",
|
|
3473
3471
|
left: "-115px",
|
|
3474
3472
|
onChange: n
|
|
3475
3473
|
}), {
|
|
3476
3474
|
activator: x(({ on: f }) => [
|
|
3477
|
-
|
|
3475
|
+
p(R, {
|
|
3478
3476
|
type: "icon",
|
|
3479
3477
|
class: "text-gray-500",
|
|
3480
3478
|
onClick: te(f.click, ["stop"])
|
|
3481
3479
|
}, {
|
|
3482
3480
|
default: x(() => [
|
|
3483
|
-
|
|
3481
|
+
p(r, { class: "size-6" })
|
|
3484
3482
|
]),
|
|
3485
3483
|
_: 1
|
|
3486
3484
|
}, 8, ["onClick"])
|
|
@@ -3490,8 +3488,8 @@ const Oi = ne({ name: "ri-list-check", render: Ii }), Fi = { class: "flex justif
|
|
|
3490
3488
|
])
|
|
3491
3489
|
]),
|
|
3492
3490
|
dialog: x((d) => [
|
|
3493
|
-
l("div",
|
|
3494
|
-
|
|
3491
|
+
l("div", Oi, [
|
|
3492
|
+
p(he, q(i(d), {
|
|
3495
3493
|
top: "-50%",
|
|
3496
3494
|
left: "50%",
|
|
3497
3495
|
onChange: n
|
|
@@ -3502,20 +3500,20 @@ const Oi = ne({ name: "ri-list-check", render: Ii }), Fi = { class: "flex justif
|
|
|
3502
3500
|
}, 16);
|
|
3503
3501
|
};
|
|
3504
3502
|
}
|
|
3505
|
-
}),
|
|
3503
|
+
}), Fi = {
|
|
3506
3504
|
viewBox: "0 0 24 24",
|
|
3507
3505
|
width: "1.2em",
|
|
3508
3506
|
height: "1.2em"
|
|
3509
3507
|
};
|
|
3510
|
-
function
|
|
3511
|
-
return m(), v("svg",
|
|
3508
|
+
function Di(e, t) {
|
|
3509
|
+
return m(), v("svg", Fi, [...t[0] || (t[0] = [
|
|
3512
3510
|
l("path", {
|
|
3513
3511
|
fill: "currentColor",
|
|
3514
3512
|
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"
|
|
3515
3513
|
}, null, -1)
|
|
3516
3514
|
])]);
|
|
3517
3515
|
}
|
|
3518
|
-
const
|
|
3516
|
+
const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass-inset rounded-md p-1" }, Ni = { class: "flex gap-1" }, Pi = ["onClick"], Hi = { class: "relative my-4" }, Ui = { key: 0 }, Ki = /* @__PURE__ */ E({
|
|
3519
3517
|
__name: "VTabs",
|
|
3520
3518
|
props: {
|
|
3521
3519
|
value: {},
|
|
@@ -3525,7 +3523,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3525
3523
|
emits: ["click"],
|
|
3526
3524
|
setup(e, { expose: t, emit: s }) {
|
|
3527
3525
|
const a = s, n = L(e.value || 0), o = (c) => [
|
|
3528
|
-
n.value === c ? "bg-
|
|
3526
|
+
n.value === c ? "bg-cyan-main/10 text-cyan-main" : "text-gray-500 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
|
|
3529
3527
|
], i = (c) => {
|
|
3530
3528
|
n.value = c, a("click", c);
|
|
3531
3529
|
};
|
|
@@ -3533,8 +3531,8 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3533
3531
|
setActiveTab: i,
|
|
3534
3532
|
activeTab: n
|
|
3535
3533
|
}), (c, u) => (m(), v("div", null, [
|
|
3536
|
-
l("div",
|
|
3537
|
-
l("div",
|
|
3534
|
+
l("div", Ri, [
|
|
3535
|
+
l("div", Ni, [
|
|
3538
3536
|
(m(!0), v(D, null, H(e.items, (r, d) => (m(), v("div", {
|
|
3539
3537
|
key: d,
|
|
3540
3538
|
class: "relative flex-auto"
|
|
@@ -3556,16 +3554,16 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3556
3554
|
}, w(r.title), 3)
|
|
3557
3555
|
])
|
|
3558
3556
|
], 2)
|
|
3559
|
-
], 8,
|
|
3557
|
+
], 8, Pi)
|
|
3560
3558
|
]))), 128))
|
|
3561
3559
|
])
|
|
3562
3560
|
]),
|
|
3563
|
-
l("div",
|
|
3561
|
+
l("div", Hi, [
|
|
3564
3562
|
(m(!0), v(D, null, H(e.items, (r, d) => (m(), v("div", {
|
|
3565
3563
|
key: d,
|
|
3566
3564
|
class: "tab-panel"
|
|
3567
3565
|
}, [
|
|
3568
|
-
|
|
3566
|
+
p(kt, {
|
|
3569
3567
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
3570
3568
|
"enter-from-class": "transform opacity-0 translate-x-2",
|
|
3571
3569
|
"enter-to-class": "transform opacity-100 translate-x-0",
|
|
@@ -3574,7 +3572,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3574
3572
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
3575
3573
|
}, {
|
|
3576
3574
|
default: x(() => [
|
|
3577
|
-
n.value === d ? (m(), v("div",
|
|
3575
|
+
n.value === d ? (m(), v("div", Ui, [
|
|
3578
3576
|
M(c.$slots, `tab-${d}`)
|
|
3579
3577
|
])) : T("", !0)
|
|
3580
3578
|
]),
|
|
@@ -3584,7 +3582,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3584
3582
|
])
|
|
3585
3583
|
]));
|
|
3586
3584
|
}
|
|
3587
|
-
}),
|
|
3585
|
+
}), Wi = ["checked", "disabled"], Gi = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Ji = /* @__PURE__ */ E({
|
|
3588
3586
|
__name: "VCheckbox",
|
|
3589
3587
|
props: {
|
|
3590
3588
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
@@ -3604,10 +3602,10 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3604
3602
|
type: "checkbox",
|
|
3605
3603
|
checked: !!e.modelValue,
|
|
3606
3604
|
disabled: e.disabled,
|
|
3607
|
-
class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-transparent transition-all checked:border-[var(--
|
|
3605
|
+
class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-transparent transition-all checked:border-[var(--color-blue-main)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
|
|
3608
3606
|
onChange: a
|
|
3609
|
-
}, null, 40,
|
|
3610
|
-
i[0] || (i[0] = l("button", { class: "pointer-events-none absolute left-[10px] top-1/2 -translate-x-1/2 -translate-y-1/2 text-[var(--
|
|
3607
|
+
}, null, 40, Wi),
|
|
3608
|
+
i[0] || (i[0] = l("button", { class: "pointer-events-none absolute left-[10px] top-1/2 -translate-x-1/2 -translate-y-1/2 text-[var(--color-blue-main)] opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 dark:text-white" }, [
|
|
3611
3609
|
l("svg", {
|
|
3612
3610
|
class: "h-3.5 w-3.5",
|
|
3613
3611
|
viewBox: "0 0 20 20",
|
|
@@ -3622,18 +3620,18 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3622
3620
|
})
|
|
3623
3621
|
])
|
|
3624
3622
|
], -1)),
|
|
3625
|
-
l("span",
|
|
3623
|
+
l("span", Gi, [
|
|
3626
3624
|
M(o.$slots, "default")
|
|
3627
3625
|
])
|
|
3628
3626
|
], 2));
|
|
3629
3627
|
}
|
|
3630
|
-
}),
|
|
3628
|
+
}), Xi = { class: "flex flex-col" }, qi = { class: "flex gap-4 mb-6" }, Yi = {
|
|
3631
3629
|
key: 0,
|
|
3632
3630
|
class: "flex gap-4"
|
|
3633
|
-
},
|
|
3631
|
+
}, Zi = {
|
|
3634
3632
|
key: 1,
|
|
3635
3633
|
class: ""
|
|
3636
|
-
},
|
|
3634
|
+
}, Qi = { class: "flex flex-col md:flex-row gap-4" }, er = { class: "flex gap-4" }, tr = { class: "flex justify-between flex-auto" }, nr = ["onClick"], lr = /* @__PURE__ */ E({
|
|
3637
3635
|
__name: "ItemOptions",
|
|
3638
3636
|
props: {
|
|
3639
3637
|
min: { default: 0 },
|
|
@@ -3652,7 +3650,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3652
3650
|
}), c = (h) => e.type === h, u = (h, $) => s("update", h, $), r = (h) => h.map(({ name: $, value: O }) => ({ name: $, value: O })), d = ({ id: h, name: $, value: O }) => n.value = { id: h, name: $, value: O }, f = () => {
|
|
3653
3651
|
const h = o.value;
|
|
3654
3652
|
n.value = { name: `New_${h}`, value: `${h}`, id: h }, u("items", r([...a.value, n.value]));
|
|
3655
|
-
},
|
|
3653
|
+
}, g = (h) => {
|
|
3656
3654
|
n.value.name === h.name && (n.value = { name: "", value: "" }), u("items", r(a.value.filter(($) => $.value !== h.value)));
|
|
3657
3655
|
}, b = Ct(() => {
|
|
3658
3656
|
const h = n.value;
|
|
@@ -3662,9 +3660,9 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3662
3660
|
}, 300);
|
|
3663
3661
|
return (h, $) => {
|
|
3664
3662
|
const O = Pe, F = ct;
|
|
3665
|
-
return m(), v("div",
|
|
3666
|
-
l("div",
|
|
3667
|
-
|
|
3663
|
+
return m(), v("div", Xi, [
|
|
3664
|
+
l("div", qi, [
|
|
3665
|
+
p(Ji, {
|
|
3668
3666
|
modelValue: e.disabled,
|
|
3669
3667
|
"onUpdate:modelValue": $[0] || ($[0] = (B) => u("disabled", B ? 1 : 0))
|
|
3670
3668
|
}, {
|
|
@@ -3674,26 +3672,26 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3674
3672
|
_: 1
|
|
3675
3673
|
}, 8, ["modelValue"])
|
|
3676
3674
|
]),
|
|
3677
|
-
c("dimmer") ? (m(), v("div",
|
|
3678
|
-
|
|
3675
|
+
c("dimmer") ? (m(), v("div", Yi, [
|
|
3676
|
+
p(ie, {
|
|
3679
3677
|
modelValue: e.min,
|
|
3680
3678
|
label: "Min",
|
|
3681
3679
|
"onUpdate:modelValue": $[1] || ($[1] = (B) => u("min", +B))
|
|
3682
3680
|
}, null, 8, ["modelValue"]),
|
|
3683
|
-
|
|
3681
|
+
p(ie, {
|
|
3684
3682
|
modelValue: e.max,
|
|
3685
3683
|
label: "Max",
|
|
3686
3684
|
"onUpdate:modelValue": $[2] || ($[2] = (B) => u("max", +B))
|
|
3687
3685
|
}, null, 8, ["modelValue"]),
|
|
3688
|
-
|
|
3686
|
+
p(ie, {
|
|
3689
3687
|
modelValue: e.step,
|
|
3690
3688
|
label: "Step",
|
|
3691
3689
|
"onUpdate:modelValue": $[3] || ($[3] = (B) => u("step", +B))
|
|
3692
3690
|
}, null, 8, ["modelValue"])
|
|
3693
3691
|
])) : T("", !0),
|
|
3694
|
-
c("list") ? (m(), v("div",
|
|
3695
|
-
l("div",
|
|
3696
|
-
|
|
3692
|
+
c("list") ? (m(), v("div", Zi, [
|
|
3693
|
+
l("div", Qi, [
|
|
3694
|
+
p(ie, {
|
|
3697
3695
|
modelValue: n.value.name,
|
|
3698
3696
|
"onUpdate:modelValue": [
|
|
3699
3697
|
$[4] || ($[4] = (B) => n.value.name = B),
|
|
@@ -3702,7 +3700,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3702
3700
|
disabled: i.value,
|
|
3703
3701
|
label: "Name"
|
|
3704
3702
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
3705
|
-
|
|
3703
|
+
p(ie, {
|
|
3706
3704
|
modelValue: n.value.value,
|
|
3707
3705
|
"onUpdate:modelValue": [
|
|
3708
3706
|
$[5] || ($[5] = (B) => n.value.value = B),
|
|
@@ -3712,8 +3710,8 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3712
3710
|
label: "Value"
|
|
3713
3711
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
3714
3712
|
]),
|
|
3715
|
-
l("div",
|
|
3716
|
-
|
|
3713
|
+
l("div", er, [
|
|
3714
|
+
p(he, {
|
|
3717
3715
|
"model-value": n.value.value,
|
|
3718
3716
|
label: "List",
|
|
3719
3717
|
items: a.value,
|
|
@@ -3722,25 +3720,25 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3722
3720
|
onChange: d
|
|
3723
3721
|
}, {
|
|
3724
3722
|
item: x(({ item: B }) => [
|
|
3725
|
-
l("div",
|
|
3723
|
+
l("div", tr, [
|
|
3726
3724
|
l("span", null, w(B.name), 1),
|
|
3727
3725
|
l("button", {
|
|
3728
3726
|
class: "cursor-pointer size-4",
|
|
3729
|
-
onClick: te((X) =>
|
|
3727
|
+
onClick: te((X) => g(B), ["prevent", "stop"])
|
|
3730
3728
|
}, [
|
|
3731
|
-
|
|
3732
|
-
], 8,
|
|
3729
|
+
p(O)
|
|
3730
|
+
], 8, nr)
|
|
3733
3731
|
])
|
|
3734
3732
|
]),
|
|
3735
3733
|
_: 1
|
|
3736
3734
|
}, 8, ["model-value", "items"]),
|
|
3737
|
-
|
|
3735
|
+
p(R, {
|
|
3738
3736
|
class: "px-4",
|
|
3739
3737
|
color: "blue",
|
|
3740
3738
|
onClick: f
|
|
3741
3739
|
}, {
|
|
3742
3740
|
default: x(() => [
|
|
3743
|
-
|
|
3741
|
+
p(F)
|
|
3744
3742
|
]),
|
|
3745
3743
|
_: 1
|
|
3746
3744
|
})
|
|
@@ -3749,7 +3747,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3749
3747
|
]);
|
|
3750
3748
|
};
|
|
3751
3749
|
}
|
|
3752
|
-
}),
|
|
3750
|
+
}), sr = { class: "flex flex-col" }, ar = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, or = { class: "flex-auto order-1" }, ir = { class: "flex-auto gap-x-2 order-1" }, rr = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, dr = { class: "flex gap-2 items-center" }, cr = { class: "flex flex-col gap-4" }, ur = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, mr = { class: "relative group" }, fr = { class: "select-none" }, vr = ["onClick"], gr = { class: "flex justify-center order-0 md:order-1" }, pr = { class: "flex-[0_0_130px] size-[130px]" }, hr = { class: "flex gap-4 justify-end" }, yr = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, tc = /* @__PURE__ */ E({
|
|
3753
3751
|
__name: "ItemEdit",
|
|
3754
3752
|
props: {
|
|
3755
3753
|
items: {},
|
|
@@ -3783,7 +3781,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3783
3781
|
if (c.value) return !0;
|
|
3784
3782
|
const { id: C, args: V } = n.value;
|
|
3785
3783
|
return !C || !V.length;
|
|
3786
|
-
}),
|
|
3784
|
+
}), g = ({ value: C }) => n.value.icon = C, b = ({ value: C }) => {
|
|
3787
3785
|
const V = C;
|
|
3788
3786
|
n.value.type = V, delete n.value.opts, ["button", "list", "dimmer"].includes(V) && (C === "button" && (n.value.opts = {}), C === "list" && (n.value.opts = { items: [] }), C === "dimmer" && (n.value.opts = { min: 0, max: 255, step: 1 }));
|
|
3789
3787
|
}, h = (C) => {
|
|
@@ -3801,18 +3799,18 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3801
3799
|
var C;
|
|
3802
3800
|
(C = e.item) != null && C.id && (n.value = Mn(e.item));
|
|
3803
3801
|
}), (C, V) => {
|
|
3804
|
-
const Ve =
|
|
3805
|
-
return m(), v("div",
|
|
3806
|
-
l("div",
|
|
3807
|
-
l("div",
|
|
3808
|
-
|
|
3802
|
+
const Ve = ji, re = Pe;
|
|
3803
|
+
return m(), v("div", sr, [
|
|
3804
|
+
l("div", ar, [
|
|
3805
|
+
l("div", or, [
|
|
3806
|
+
p(Ki, {
|
|
3809
3807
|
class: "flex-auto min-h-75",
|
|
3810
3808
|
value: 0,
|
|
3811
3809
|
items: a
|
|
3812
3810
|
}, {
|
|
3813
3811
|
"tab-0": x(() => [
|
|
3814
|
-
l("div",
|
|
3815
|
-
|
|
3812
|
+
l("div", ir, [
|
|
3813
|
+
p(ie, {
|
|
3816
3814
|
modelValue: n.value.id,
|
|
3817
3815
|
"onUpdate:modelValue": V[0] || (V[0] = (K) => n.value.id = K),
|
|
3818
3816
|
label: "ID",
|
|
@@ -3821,12 +3819,12 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3821
3819
|
r.value ? void 0 : {
|
|
3822
3820
|
name: "icon",
|
|
3823
3821
|
fn: x(() => [
|
|
3824
|
-
|
|
3822
|
+
p(R, {
|
|
3825
3823
|
color: "transparent",
|
|
3826
3824
|
onClick: X
|
|
3827
3825
|
}, {
|
|
3828
3826
|
default: x(() => [
|
|
3829
|
-
|
|
3827
|
+
p(Ve)
|
|
3830
3828
|
]),
|
|
3831
3829
|
_: 1
|
|
3832
3830
|
})
|
|
@@ -3834,23 +3832,23 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3834
3832
|
key: "0"
|
|
3835
3833
|
}
|
|
3836
3834
|
]), 1032, ["modelValue", "message"]),
|
|
3837
|
-
|
|
3835
|
+
p(ie, {
|
|
3838
3836
|
modelValue: n.value.name,
|
|
3839
3837
|
"onUpdate:modelValue": V[1] || (V[1] = (K) => n.value.name = K),
|
|
3840
3838
|
label: "Name"
|
|
3841
3839
|
}, null, 8, ["modelValue"]),
|
|
3842
|
-
l("div",
|
|
3843
|
-
|
|
3840
|
+
l("div", rr, [
|
|
3841
|
+
p(he, {
|
|
3844
3842
|
"model-value": n.value.icon,
|
|
3845
3843
|
bottom: "0",
|
|
3846
3844
|
top: "unset",
|
|
3847
3845
|
label: "Icon",
|
|
3848
3846
|
class: "mb-6",
|
|
3849
3847
|
items: e.listIcons,
|
|
3850
|
-
onChange:
|
|
3848
|
+
onChange: g
|
|
3851
3849
|
}, {
|
|
3852
3850
|
item: x(({ item: K }) => [
|
|
3853
|
-
l("div",
|
|
3851
|
+
l("div", dr, [
|
|
3854
3852
|
M(C.$slots, "icon", {
|
|
3855
3853
|
icon: K.value
|
|
3856
3854
|
}),
|
|
@@ -3859,7 +3857,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3859
3857
|
]),
|
|
3860
3858
|
_: 3
|
|
3861
3859
|
}, 8, ["model-value", "items"]),
|
|
3862
|
-
|
|
3860
|
+
p(he, {
|
|
3863
3861
|
"model-value": n.value.type,
|
|
3864
3862
|
bottom: "0",
|
|
3865
3863
|
top: "unset",
|
|
@@ -3871,35 +3869,35 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3871
3869
|
])
|
|
3872
3870
|
]),
|
|
3873
3871
|
"tab-1": x(() => [
|
|
3874
|
-
l("div",
|
|
3875
|
-
|
|
3872
|
+
l("div", cr, [
|
|
3873
|
+
p(zt, {
|
|
3876
3874
|
active: !!n.value.args.length,
|
|
3877
3875
|
disabled: d.value,
|
|
3878
3876
|
label: "Arguments",
|
|
3879
3877
|
onIcon: V[2] || (V[2] = (K) => o.value = !0)
|
|
3880
3878
|
}, {
|
|
3881
3879
|
default: x(() => [
|
|
3882
|
-
l("div",
|
|
3880
|
+
l("div", ur, [
|
|
3883
3881
|
(m(!0), v(D, null, H(n.value.args, (K, ye) => (m(), v("div", {
|
|
3884
3882
|
key: K,
|
|
3885
3883
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
3886
3884
|
}, [
|
|
3887
|
-
l("div",
|
|
3888
|
-
l("span",
|
|
3885
|
+
l("div", mr, [
|
|
3886
|
+
l("span", fr, w(K), 1)
|
|
3889
3887
|
]),
|
|
3890
3888
|
ye || n.value.args.length < 2 ? (m(), v("button", {
|
|
3891
3889
|
key: 0,
|
|
3892
3890
|
class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
|
|
3893
3891
|
onClick: (Ue) => O(K)
|
|
3894
3892
|
}, [
|
|
3895
|
-
|
|
3896
|
-
], 8,
|
|
3893
|
+
p(re, { class: "size-5" })
|
|
3894
|
+
], 8, vr)) : T("", !0)
|
|
3897
3895
|
]))), 128))
|
|
3898
3896
|
])
|
|
3899
3897
|
]),
|
|
3900
3898
|
_: 1
|
|
3901
3899
|
}, 8, ["active", "disabled"]),
|
|
3902
|
-
|
|
3900
|
+
p(Xe, {
|
|
3903
3901
|
value: n.value.set,
|
|
3904
3902
|
args: n.value.args,
|
|
3905
3903
|
prefix: ["v"],
|
|
@@ -3910,7 +3908,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3910
3908
|
onIcon: V[3] || (V[3] = (K) => h("set")),
|
|
3911
3909
|
onChange: V[4] || (V[4] = (K) => B("set", K))
|
|
3912
3910
|
}, null, 8, ["value", "args", "prefix-titles", "argument-title", "disabled"]),
|
|
3913
|
-
|
|
3911
|
+
p(Xe, {
|
|
3914
3912
|
value: n.value.get,
|
|
3915
3913
|
args: n.value.args,
|
|
3916
3914
|
"argument-title": C.$t("dashboard.argument"),
|
|
@@ -3919,7 +3917,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3919
3917
|
onIcon: V[5] || (V[5] = (K) => h("get")),
|
|
3920
3918
|
onChange: V[6] || (V[6] = (K) => B("get", K))
|
|
3921
3919
|
}, null, 8, ["value", "args", "argument-title", "disabled"]),
|
|
3922
|
-
|
|
3920
|
+
p(Xe, {
|
|
3923
3921
|
value: n.value.getTo,
|
|
3924
3922
|
args: n.value.args,
|
|
3925
3923
|
prefix: ["v"],
|
|
@@ -3933,7 +3931,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3933
3931
|
])
|
|
3934
3932
|
]),
|
|
3935
3933
|
"tab-2": x(() => [
|
|
3936
|
-
|
|
3934
|
+
p(lr, q(n.value.opts, {
|
|
3937
3935
|
value: n.value.value,
|
|
3938
3936
|
type: n.value.type,
|
|
3939
3937
|
onUpdate: ve
|
|
@@ -3943,13 +3941,13 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3943
3941
|
})
|
|
3944
3942
|
]),
|
|
3945
3943
|
l("div", gr, [
|
|
3946
|
-
l("div",
|
|
3944
|
+
l("div", pr, [
|
|
3947
3945
|
M(C.$slots, "default", { item: n.value })
|
|
3948
3946
|
])
|
|
3949
3947
|
])
|
|
3950
3948
|
]),
|
|
3951
|
-
l("div",
|
|
3952
|
-
|
|
3949
|
+
l("div", hr, [
|
|
3950
|
+
p(R, {
|
|
3953
3951
|
class: "px-4",
|
|
3954
3952
|
color: "blue",
|
|
3955
3953
|
disabled: f.value,
|
|
@@ -3960,7 +3958,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3960
3958
|
]),
|
|
3961
3959
|
_: 1
|
|
3962
3960
|
}, 8, ["disabled"]),
|
|
3963
|
-
|
|
3961
|
+
p(R, {
|
|
3964
3962
|
class: "px-4",
|
|
3965
3963
|
color: "red",
|
|
3966
3964
|
outline: "",
|
|
@@ -3979,8 +3977,8 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3979
3977
|
onClose: V[11] || (V[11] = (K) => o.value = !1)
|
|
3980
3978
|
}, {
|
|
3981
3979
|
default: x(() => [
|
|
3982
|
-
l("div",
|
|
3983
|
-
|
|
3980
|
+
l("div", yr, [
|
|
3981
|
+
p(St, {
|
|
3984
3982
|
items: e.object,
|
|
3985
3983
|
onlyValue: !r.value,
|
|
3986
3984
|
onClick: F
|
|
@@ -3992,12 +3990,12 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3992
3990
|
]);
|
|
3993
3991
|
};
|
|
3994
3992
|
}
|
|
3995
|
-
}), Rt = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' },
|
|
3993
|
+
}), Rt = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, br = { 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" }, xr = { 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" }, kr = { 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" }, dn = (e) => cn(e);
|
|
3996
3994
|
function Nt(e) {
|
|
3997
3995
|
const t = Array.isArray(e) ? e : [e];
|
|
3998
3996
|
return t.length === 0 ? dn : (s) => t.reduce((a, n, o) => n(a, { html: o > 0 }), s);
|
|
3999
3997
|
}
|
|
4000
|
-
class
|
|
3998
|
+
class $r {
|
|
4001
3999
|
constructor(t, s = {}) {
|
|
4002
4000
|
if (this.lines = null, !t) throw new Error("selector is not defined");
|
|
4003
4001
|
if (this.root = t instanceof Node ? t : document.querySelector(t), !this.root) throw new Error(`element with "${t}" selector is not exist`);
|
|
@@ -4011,7 +4009,7 @@ class wr {
|
|
|
4011
4009
|
const s = this.root.style;
|
|
4012
4010
|
t.forEach((a) => {
|
|
4013
4011
|
this.initialRootStyles[a] = s[a] || "";
|
|
4014
|
-
}), Object.assign(this.root.style, Rt, this.options.styles), Object.assign(this.textarea.style,
|
|
4012
|
+
}), Object.assign(this.root.style, Rt, this.options.styles), Object.assign(this.textarea.style, br), Object.assign(this.pre.style, xr), 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();
|
|
4015
4013
|
}
|
|
4016
4014
|
addTextareaEvents() {
|
|
4017
4015
|
this.handleEvent = (t) => {
|
|
@@ -4047,7 +4045,7 @@ class wr {
|
|
|
4047
4045
|
}
|
|
4048
4046
|
updateLines() {
|
|
4049
4047
|
if (!this.options.lineNumbers) return;
|
|
4050
|
-
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style,
|
|
4048
|
+
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, kr));
|
|
4051
4049
|
const t = this.value.split(`
|
|
4052
4050
|
`), s = t.length.toString().length;
|
|
4053
4051
|
this.root.style.paddingLeft = `${s + 1}ch`, this.lines.innerHTML = t.map((a, n) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${s}ch; text-align: right">${1 + n}</span>`}${`<span style="color: transparent; pointer-events: none">${cn(a)}</span>`}`).join(`
|
|
@@ -4066,16 +4064,16 @@ function lt(e) {
|
|
|
4066
4064
|
function cn(e) {
|
|
4067
4065
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
4068
4066
|
}
|
|
4069
|
-
const Pt = { 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" },
|
|
4067
|
+
const Pt = { 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" }, wr = { add: "=" }, _r = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
|
|
4070
4068
|
function Ye(e, t) {
|
|
4071
|
-
const s = e.split("+").reduce((u, r) => Pt[r] ? (u.modifiers[Pt[r]] = !0, u) : { ...u, key:
|
|
4069
|
+
const s = e.split("+").reduce((u, r) => Pt[r] ? (u.modifiers[Pt[r]] = !0, u) : { ...u, key: wr[r] || r.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), a = Object.keys(s.modifiers).every((u) => s.modifiers[u] ? t[u] : !t[u]);
|
|
4072
4070
|
if (!s.key) return a;
|
|
4073
|
-
const n = t.key != null && t.key.toLowerCase() === s.key, o = (i = s.key, /^[a-z]$/.test(i) ? `key${i}` : /^[0-9]$/.test(i) ? `digit${i}` :
|
|
4071
|
+
const n = t.key != null && t.key.toLowerCase() === s.key, o = (i = s.key, /^[a-z]$/.test(i) ? `key${i}` : /^[0-9]$/.test(i) ? `digit${i}` : _r[i] || null);
|
|
4074
4072
|
var i;
|
|
4075
4073
|
const c = !t.isComposing && o != null && t.code != null && t.code.toLowerCase() === o;
|
|
4076
4074
|
return a && (n || c);
|
|
4077
4075
|
}
|
|
4078
|
-
function
|
|
4076
|
+
function Cr(e = {}) {
|
|
4079
4077
|
const t = Math.max(1, e.limit == null ? 300 : e.limit), s = e.coalesceMs == null ? 300 : e.coalesceMs;
|
|
4080
4078
|
let a = [], n = null, o = null;
|
|
4081
4079
|
const i = (c) => {
|
|
@@ -4088,13 +4086,13 @@ function Sr(e = {}) {
|
|
|
4088
4086
|
if (d) return o = null, a[n].value !== c.value ? void i(c) : (n = Math.min(a.length - 1, n + 1), a[n]);
|
|
4089
4087
|
if (u.type === "keydown") return a[n].value !== c.value ? (o = null, void i(c)) : void (a[n] = c);
|
|
4090
4088
|
if (u.type === "input") {
|
|
4091
|
-
const f = u.timeStamp,
|
|
4092
|
-
if (o = f ?? null,
|
|
4089
|
+
const f = u.timeStamp, g = f != null && o != null && f - o <= s;
|
|
4090
|
+
if (o = f ?? null, g) return void (a[n] = c);
|
|
4093
4091
|
i(c);
|
|
4094
4092
|
}
|
|
4095
4093
|
};
|
|
4096
4094
|
}
|
|
4097
|
-
const
|
|
4095
|
+
const Sr = () => (e, t) => {
|
|
4098
4096
|
const { value: s, selectionStart: a, selectionEnd: n } = e;
|
|
4099
4097
|
if (!Ye("enter", t) || t.type !== "keydown") return;
|
|
4100
4098
|
const o = s.substring(0, a).split(`
|
|
@@ -4104,7 +4102,7 @@ const zr = () => (e, t) => {
|
|
|
4104
4102
|
const c = `
|
|
4105
4103
|
` + i[0];
|
|
4106
4104
|
return { value: s.substring(0, a) + c + s.substring(n), selectionStart: a + c.length, selectionEnd: a + c.length };
|
|
4107
|
-
},
|
|
4105
|
+
}, zr = () => (e, t) => {
|
|
4108
4106
|
if (typeof KeyboardEvent > "u" || !(t instanceof KeyboardEvent) || t.key !== "Enter")
|
|
4109
4107
|
return;
|
|
4110
4108
|
const { value: s, selectionStart: a, selectionEnd: n } = e;
|
|
@@ -4118,22 +4116,22 @@ const zr = () => (e, t) => {
|
|
|
4118
4116
|
const d = s.substring(o, c).trimEnd();
|
|
4119
4117
|
if (d.endsWith(";") || d.length === 0)
|
|
4120
4118
|
return;
|
|
4121
|
-
const f = s.slice(0, c) + ";" + s.slice(c),
|
|
4119
|
+
const f = s.slice(0, c) + ";" + s.slice(c), g = a + 1;
|
|
4122
4120
|
return {
|
|
4123
4121
|
value: f,
|
|
4124
|
-
selectionStart:
|
|
4125
|
-
selectionEnd:
|
|
4122
|
+
selectionStart: g,
|
|
4123
|
+
selectionEnd: g
|
|
4126
4124
|
};
|
|
4127
4125
|
};
|
|
4128
|
-
let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un,
|
|
4129
|
-
const
|
|
4126
|
+
let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un, pe = null, Ne = null;
|
|
4127
|
+
const Tr = (e) => {
|
|
4130
4128
|
const { customSuggestions: t = [], minPrefixLength: s = 1, maxSuggestions: a = 20, tabSize: n = 2, tooltip: o = { enabled: !0 }, i18n: i, renderMenu: c, renderTooltip: u } = e;
|
|
4131
4129
|
if (!c || !u)
|
|
4132
4130
|
throw new Error("renderMenu and renderTooltip are required");
|
|
4133
4131
|
return Bt = [...t].map((r) => i(r)), Et = c, un = u, (r, d) => {
|
|
4134
4132
|
if (typeof KeyboardEvent > "u" || !(d instanceof KeyboardEvent))
|
|
4135
4133
|
return;
|
|
4136
|
-
const { value: f, selectionStart:
|
|
4134
|
+
const { value: f, selectionStart: g } = r, b = d.target;
|
|
4137
4135
|
if (De = b, o.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
|
|
4138
4136
|
setTimeout(() => Ht(b), 100);
|
|
4139
4137
|
}), b.addEventListener("keyup", () => {
|
|
@@ -4146,13 +4144,13 @@ const Ar = (e) => {
|
|
|
4146
4144
|
return d.preventDefault(), se > 0 && (se--, je()), { ...r };
|
|
4147
4145
|
case "Enter":
|
|
4148
4146
|
if (d.preventDefault(), be[se]) {
|
|
4149
|
-
const h =
|
|
4147
|
+
const h = pt(r, be[se]);
|
|
4150
4148
|
return we(), h;
|
|
4151
4149
|
}
|
|
4152
4150
|
return;
|
|
4153
4151
|
case "Tab":
|
|
4154
4152
|
if (d.preventDefault(), be[se]) {
|
|
4155
|
-
const h =
|
|
4153
|
+
const h = pt(r, be[se]);
|
|
4156
4154
|
return we(), h;
|
|
4157
4155
|
}
|
|
4158
4156
|
return;
|
|
@@ -4165,7 +4163,7 @@ const Ar = (e) => {
|
|
|
4165
4163
|
if (F.length < s)
|
|
4166
4164
|
we();
|
|
4167
4165
|
else {
|
|
4168
|
-
const B =
|
|
4166
|
+
const B = gt(F).slice(0, a);
|
|
4169
4167
|
B.length === 0 ? we() : (be = B, se = 0, je());
|
|
4170
4168
|
}
|
|
4171
4169
|
}
|
|
@@ -4177,13 +4175,13 @@ const Ar = (e) => {
|
|
|
4177
4175
|
}
|
|
4178
4176
|
if (Ye("tab", d)) {
|
|
4179
4177
|
d.preventDefault();
|
|
4180
|
-
const h = it(f,
|
|
4178
|
+
const h = it(f, g), $ = f.slice(h, g);
|
|
4181
4179
|
if ($.length > 0) {
|
|
4182
|
-
const X =
|
|
4180
|
+
const X = gt($);
|
|
4183
4181
|
if (X.length > 0)
|
|
4184
|
-
return
|
|
4182
|
+
return pt(r, X[0]);
|
|
4185
4183
|
}
|
|
4186
|
-
const O = " ".repeat(n), F = f.slice(0,
|
|
4184
|
+
const O = " ".repeat(n), F = f.slice(0, g) + O + f.slice(g), B = g + n;
|
|
4187
4185
|
return {
|
|
4188
4186
|
value: F,
|
|
4189
4187
|
selectionStart: B,
|
|
@@ -4198,16 +4196,16 @@ const Ar = (e) => {
|
|
|
4198
4196
|
we();
|
|
4199
4197
|
return;
|
|
4200
4198
|
}
|
|
4201
|
-
let B =
|
|
4199
|
+
let B = gt(F);
|
|
4202
4200
|
if (B = B.slice(0, a), B.length === 0) {
|
|
4203
4201
|
we();
|
|
4204
4202
|
return;
|
|
4205
4203
|
}
|
|
4206
|
-
be = B, se = 0, ce ? je() :
|
|
4204
|
+
be = B, se = 0, ce ? je() : Ar(b, B);
|
|
4207
4205
|
}, 0), { ...r };
|
|
4208
4206
|
};
|
|
4209
4207
|
};
|
|
4210
|
-
function
|
|
4208
|
+
function gt(e) {
|
|
4211
4209
|
const t = e.toLowerCase();
|
|
4212
4210
|
return Bt.filter((s) => {
|
|
4213
4211
|
const a = s.label.toLowerCase();
|
|
@@ -4226,7 +4224,7 @@ function it(e, t) {
|
|
|
4226
4224
|
s--;
|
|
4227
4225
|
return s;
|
|
4228
4226
|
}
|
|
4229
|
-
function
|
|
4227
|
+
function Ar(e, t) {
|
|
4230
4228
|
we(), be = t, se = 0;
|
|
4231
4229
|
const s = mn(e);
|
|
4232
4230
|
ce = Et(t, se, (a) => {
|
|
@@ -4250,7 +4248,7 @@ function je() {
|
|
|
4250
4248
|
zIndex: "10000"
|
|
4251
4249
|
});
|
|
4252
4250
|
}
|
|
4253
|
-
function
|
|
4251
|
+
function pt(e, t) {
|
|
4254
4252
|
const { value: s, selectionStart: a } = e, n = it(s, a), o = t.insert || t.label, i = /\$\{([^}]*)\}/g;
|
|
4255
4253
|
let c = o;
|
|
4256
4254
|
const u = [];
|
|
@@ -4261,18 +4259,18 @@ function gt(e, t) {
|
|
|
4261
4259
|
}
|
|
4262
4260
|
c = o.replace(/\$\{([^}]*)\}/g, "$1");
|
|
4263
4261
|
const d = u[0];
|
|
4264
|
-
let f = n + c.length,
|
|
4262
|
+
let f = n + c.length, g = n + c.length;
|
|
4265
4263
|
if (d) {
|
|
4266
4264
|
let h = 0, $ = 0, O = !1;
|
|
4267
4265
|
for (; $ < o.length && !O; ) {
|
|
4268
4266
|
const F = u.find((B) => B.index === $);
|
|
4269
|
-
F ? (h += F.text.length, $ += F.length, F === d && (f = n + h - F.text.length,
|
|
4267
|
+
F ? (h += F.text.length, $ += F.length, F === d && (f = n + h - F.text.length, g = n + h, O = !0)) : (h++, $++);
|
|
4270
4268
|
}
|
|
4271
4269
|
}
|
|
4272
4270
|
return {
|
|
4273
4271
|
value: s.slice(0, n) + c + s.slice(a),
|
|
4274
4272
|
selectionStart: f,
|
|
4275
|
-
selectionEnd:
|
|
4273
|
+
selectionEnd: g
|
|
4276
4274
|
};
|
|
4277
4275
|
}
|
|
4278
4276
|
function we() {
|
|
@@ -4304,30 +4302,30 @@ function Ht(e) {
|
|
|
4304
4302
|
return;
|
|
4305
4303
|
}
|
|
4306
4304
|
const o = mn(e), i = un(n, o);
|
|
4307
|
-
i.style.opacity = "0",
|
|
4308
|
-
|
|
4305
|
+
i.style.opacity = "0", pe && pe.remove(), pe = i, document.body.appendChild(pe), requestAnimationFrame(() => {
|
|
4306
|
+
pe && (pe.style.opacity = "1");
|
|
4309
4307
|
}), setTimeout(() => Je(), 3e3);
|
|
4310
4308
|
}, 300);
|
|
4311
4309
|
}
|
|
4312
4310
|
function Je() {
|
|
4313
|
-
Ne && (clearTimeout(Ne), Ne = null),
|
|
4314
|
-
|
|
4311
|
+
Ne && (clearTimeout(Ne), Ne = null), pe && (pe.style.opacity = "0", setTimeout(() => {
|
|
4312
|
+
pe && (pe.remove(), pe = null);
|
|
4315
4313
|
}, 150));
|
|
4316
4314
|
}
|
|
4317
4315
|
typeof document < "u" && document.addEventListener("mousedown", (e) => {
|
|
4318
4316
|
const t = e.target;
|
|
4319
|
-
ce && !ce.contains(t) && we(),
|
|
4317
|
+
ce && !ce.contains(t) && we(), pe && !pe.contains(t) && Je();
|
|
4320
4318
|
});
|
|
4321
|
-
const ht = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
4322
|
-
const t = e.filter((c) => c.type !== "var").map((c) => c.label), i = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...
|
|
4319
|
+
const ht = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Vr = ["else", "end", "call", "fade"], Br = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Er = (e) => {
|
|
4320
|
+
const t = e.filter((c) => c.type !== "var").map((c) => c.label), i = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...Vr, ...t])).map(Br).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
|
|
4323
4321
|
return new RegExp(i, "g");
|
|
4324
|
-
},
|
|
4325
|
-
const s =
|
|
4322
|
+
}, Mr = (e) => (t) => {
|
|
4323
|
+
const s = Er(e);
|
|
4326
4324
|
let a = "", n = 0;
|
|
4327
4325
|
for (const o of t.matchAll(s)) {
|
|
4328
|
-
const [i, c, u, r, d, f,
|
|
4326
|
+
const [i, c, u, r, d, f, g, b] = o;
|
|
4329
4327
|
let h = "";
|
|
4330
|
-
c ? h = "comment" : u ? h = "str" : r ? h = "num" : d ? h = "word" : f ? h = "var" :
|
|
4328
|
+
c ? h = "comment" : u ? h = "str" : r ? h = "num" : d ? h = "word" : f ? h = "var" : g ? h = "event" : b && (h = "operator"), a += ht(t.slice(n, o.index)), a += `<span class="tok--${h}">${ht(i)}</span>`, n = o.index + i.length;
|
|
4331
4329
|
}
|
|
4332
4330
|
return a += ht(t.slice(n)), a;
|
|
4333
4331
|
}, fn = {
|
|
@@ -4335,7 +4333,7 @@ const ht = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
4335
4333
|
func: "text-yellow-600 dark:text-yellow-400",
|
|
4336
4334
|
var: "text-cyan-600 dark:text-cyan-400",
|
|
4337
4335
|
event: "text-purple-600 dark:text-purple-400"
|
|
4338
|
-
},
|
|
4336
|
+
}, Lr = (e, t, s) => {
|
|
4339
4337
|
const a = document.createElement("div");
|
|
4340
4338
|
return a.className = `
|
|
4341
4339
|
fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
|
|
@@ -4358,7 +4356,7 @@ const ht = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
4358
4356
|
${n.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${n.description}</span>` : ""}
|
|
4359
4357
|
`, c.addEventListener("click", () => s(o)), a.appendChild(c);
|
|
4360
4358
|
}), a;
|
|
4361
|
-
},
|
|
4359
|
+
}, Ir = (e, t) => {
|
|
4362
4360
|
const s = document.createElement("div");
|
|
4363
4361
|
s.className = `
|
|
4364
4362
|
fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
|
|
@@ -4377,7 +4375,7 @@ const ht = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
4377
4375
|
absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
|
|
4378
4376
|
bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
|
|
4379
4377
|
`, s.appendChild(o), s;
|
|
4380
|
-
},
|
|
4378
|
+
}, Or = [
|
|
4381
4379
|
{ label: "if", type: "word", insert: `if:\${$v0<10};
|
|
4382
4380
|
|
|
4383
4381
|
else;
|
|
@@ -4422,21 +4420,21 @@ end;`, detail: "event(name: string)" },
|
|
|
4422
4420
|
setup(e, { emit: t }) {
|
|
4423
4421
|
const s = t;
|
|
4424
4422
|
let a;
|
|
4425
|
-
const n = [...
|
|
4423
|
+
const n = [...Or, ...e.suggestions];
|
|
4426
4424
|
return Te(
|
|
4427
4425
|
() => e.modelValue,
|
|
4428
4426
|
(o) => {
|
|
4429
4427
|
a.update({ value: o });
|
|
4430
4428
|
}
|
|
4431
4429
|
), ke(() => {
|
|
4432
|
-
a = new
|
|
4430
|
+
a = new $r("#editor", {
|
|
4433
4431
|
value: e.modelValue,
|
|
4434
4432
|
lineNumbers: !0,
|
|
4435
|
-
highlighters: [
|
|
4433
|
+
highlighters: [Mr(n)],
|
|
4436
4434
|
plugins: [
|
|
4435
|
+
Cr(),
|
|
4437
4436
|
Sr(),
|
|
4438
|
-
|
|
4439
|
-
Ar({
|
|
4437
|
+
Tr({
|
|
4440
4438
|
customSuggestions: n,
|
|
4441
4439
|
minPrefixLength: 1,
|
|
4442
4440
|
maxSuggestions: 20,
|
|
@@ -4444,10 +4442,10 @@ end;`, detail: "event(name: string)" },
|
|
|
4444
4442
|
tooltip: {
|
|
4445
4443
|
enabled: !0
|
|
4446
4444
|
},
|
|
4447
|
-
renderMenu:
|
|
4448
|
-
renderTooltip:
|
|
4445
|
+
renderMenu: Lr,
|
|
4446
|
+
renderTooltip: Ir
|
|
4449
4447
|
}),
|
|
4450
|
-
|
|
4448
|
+
zr()
|
|
4451
4449
|
],
|
|
4452
4450
|
styles: { fontSize: "14px" }
|
|
4453
4451
|
}), a.onUpdate((o) => {
|
|
@@ -4462,16 +4460,16 @@ end;`, detail: "event(name: string)" },
|
|
|
4462
4460
|
}, null, -1)
|
|
4463
4461
|
])]));
|
|
4464
4462
|
}
|
|
4465
|
-
}),
|
|
4463
|
+
}), Fr = { class: "max-w-4xl mx-auto" }, Dr = {
|
|
4466
4464
|
key: 0,
|
|
4467
4465
|
class: "text-sm"
|
|
4468
|
-
},
|
|
4466
|
+
}, jr = {
|
|
4469
4467
|
key: 0,
|
|
4470
4468
|
class: "text-gray-500"
|
|
4471
|
-
},
|
|
4469
|
+
}, Rr = {
|
|
4472
4470
|
key: 1,
|
|
4473
4471
|
class: "text-red-600"
|
|
4474
|
-
},
|
|
4472
|
+
}, Nr = ["innerHTML"], Pr = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", Hr = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", lc = /* @__PURE__ */ E({
|
|
4475
4473
|
__name: "ScriptViewDocs",
|
|
4476
4474
|
props: {
|
|
4477
4475
|
lang: { default: "en" }
|
|
@@ -4492,19 +4490,19 @@ end;`, detail: "event(name: string)" },
|
|
|
4492
4490
|
}), d(window.marked);
|
|
4493
4491
|
return;
|
|
4494
4492
|
}
|
|
4495
|
-
const
|
|
4496
|
-
|
|
4493
|
+
const g = document.createElement("script");
|
|
4494
|
+
g.src = Hr, g.async = !0, g.onload = () => {
|
|
4497
4495
|
window.marked ? (window.marked.setOptions({
|
|
4498
4496
|
gfm: !0,
|
|
4499
4497
|
breaks: !0,
|
|
4500
4498
|
headerIds: !1
|
|
4501
4499
|
}), d(window.marked)) : f(new Error("Marked library not found after loading"));
|
|
4502
|
-
},
|
|
4500
|
+
}, g.onerror = () => {
|
|
4503
4501
|
f(new Error("Failed to load Marked library from CDN"));
|
|
4504
|
-
}, document.head.appendChild(
|
|
4502
|
+
}, document.head.appendChild(g);
|
|
4505
4503
|
}), u = (d) => {
|
|
4506
4504
|
const f = d.split(`
|
|
4507
|
-
`),
|
|
4505
|
+
`), g = {};
|
|
4508
4506
|
let b = !0;
|
|
4509
4507
|
for (const h of f) {
|
|
4510
4508
|
if (b && h.startsWith("#")) {
|
|
@@ -4513,10 +4511,10 @@ end;`, detail: "event(name: string)" },
|
|
|
4513
4511
|
}
|
|
4514
4512
|
if (b && h.includes(":")) {
|
|
4515
4513
|
const [$, O] = h.split(":").map((F) => F.trim());
|
|
4516
|
-
$ && O && ($.toLowerCase().includes("version") && (
|
|
4514
|
+
$ && O && ($.toLowerCase().includes("version") && (g.version = O), ($.toLowerCase().includes("обновлено") || $.toLowerCase().includes("updated")) && (g.updated = O));
|
|
4517
4515
|
}
|
|
4518
4516
|
}
|
|
4519
|
-
return
|
|
4517
|
+
return g;
|
|
4520
4518
|
}, r = async (d) => {
|
|
4521
4519
|
if (!i) {
|
|
4522
4520
|
o.value = "error";
|
|
@@ -4524,14 +4522,14 @@ end;`, detail: "event(name: string)" },
|
|
|
4524
4522
|
}
|
|
4525
4523
|
n.value = !0, o.value = null, s.value = "";
|
|
4526
4524
|
try {
|
|
4527
|
-
const f = `${
|
|
4528
|
-
if (!
|
|
4529
|
-
throw new Error(`HTTP ${
|
|
4530
|
-
const b = await
|
|
4525
|
+
const f = `${Pr}${d}.md`, g = await fetch(f);
|
|
4526
|
+
if (!g.ok)
|
|
4527
|
+
throw new Error(`HTTP ${g.status}: ${g.statusText}`);
|
|
4528
|
+
const b = await g.text();
|
|
4531
4529
|
t.value = b, a.value = u(b), s.value = i.parse(b);
|
|
4532
4530
|
} catch (f) {
|
|
4533
|
-
const
|
|
4534
|
-
o.value =
|
|
4531
|
+
const g = f instanceof Error ? f.message : "";
|
|
4532
|
+
o.value = g, console.error("Error loading docs:", f);
|
|
4535
4533
|
} finally {
|
|
4536
4534
|
n.value = !1;
|
|
4537
4535
|
}
|
|
@@ -4545,18 +4543,18 @@ end;`, detail: "event(name: string)" },
|
|
|
4545
4543
|
const f = d instanceof Error ? d.message : "";
|
|
4546
4544
|
o.value = f, console.error("Initialization error:", d);
|
|
4547
4545
|
}
|
|
4548
|
-
}), (d, f) => (m(), v("div",
|
|
4549
|
-
n.value || o.value ? (m(), v("div",
|
|
4550
|
-
n.value ? (m(), v("span",
|
|
4551
|
-
o.value ? (m(), v("span",
|
|
4546
|
+
}), (d, f) => (m(), v("div", Fr, [
|
|
4547
|
+
n.value || o.value ? (m(), v("div", Dr, [
|
|
4548
|
+
n.value ? (m(), v("span", jr, "⏳")) : T("", !0),
|
|
4549
|
+
o.value ? (m(), v("span", Rr, "❌ " + w(o.value), 1)) : T("", !0)
|
|
4552
4550
|
])) : T("", !0),
|
|
4553
4551
|
l("div", {
|
|
4554
4552
|
class: "docs-content",
|
|
4555
4553
|
innerHTML: s.value
|
|
4556
|
-
}, null, 8,
|
|
4554
|
+
}, null, 8, Nr)
|
|
4557
4555
|
]));
|
|
4558
4556
|
}
|
|
4559
|
-
}),
|
|
4557
|
+
}), Ur = { class: "my-4" }, sc = /* @__PURE__ */ E({
|
|
4560
4558
|
__name: "ScriptDialog",
|
|
4561
4559
|
props: {
|
|
4562
4560
|
idScript: {}
|
|
@@ -4575,16 +4573,16 @@ end;`, detail: "event(name: string)" },
|
|
|
4575
4573
|
return ke(() => {
|
|
4576
4574
|
e.idScript || (i.value = "boot");
|
|
4577
4575
|
}), (d, f) => {
|
|
4578
|
-
const
|
|
4579
|
-
return m(), v("div",
|
|
4580
|
-
g
|
|
4576
|
+
const g = ie, b = R;
|
|
4577
|
+
return m(), v("div", Ur, [
|
|
4578
|
+
p(g, q({
|
|
4581
4579
|
modelValue: J(i),
|
|
4582
4580
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => $n(i) ? i.value = h : null)
|
|
4583
4581
|
}, J(c), {
|
|
4584
4582
|
disabled: !e.idScript,
|
|
4585
4583
|
label: d.$t("name")
|
|
4586
4584
|
}), null, 16, ["modelValue", "disabled", "label"]),
|
|
4587
|
-
|
|
4585
|
+
p(b, {
|
|
4588
4586
|
class: "w-full",
|
|
4589
4587
|
color: "blue",
|
|
4590
4588
|
disabled: !J(o),
|
|
@@ -4598,13 +4596,13 @@ end;`, detail: "event(name: string)" },
|
|
|
4598
4596
|
]);
|
|
4599
4597
|
};
|
|
4600
4598
|
}
|
|
4601
|
-
}),
|
|
4599
|
+
}), Kr = ["aria-label"], Wr = { class: "hidden lg:inline" }, Gr = ["aria-label"], Jr = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Xr = ["placeholder"], qr = { class: "max-h-[55vh] overflow-y-auto p-2" }, Yr = ["href"], Zr = { class: "min-w-0" }, Qr = { class: "flex flex-wrap items-baseline gap-2" }, ed = { class: "text-sm font-medium text-gray-900 dark:text-white" }, td = {
|
|
4602
4600
|
key: 0,
|
|
4603
4601
|
class: "text-[10px] uppercase tracking-wider text-gray-400"
|
|
4604
|
-
},
|
|
4602
|
+
}, nd = {
|
|
4605
4603
|
key: 0,
|
|
4606
4604
|
class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
|
|
4607
|
-
},
|
|
4605
|
+
}, ld = {
|
|
4608
4606
|
key: 0,
|
|
4609
4607
|
class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
|
|
4610
4608
|
}, ac = /* @__PURE__ */ E({
|
|
@@ -4643,13 +4641,13 @@ end;`, detail: "event(name: string)" },
|
|
|
4643
4641
|
"aria-label": e.label,
|
|
4644
4642
|
onClick: i
|
|
4645
4643
|
}, [
|
|
4646
|
-
|
|
4644
|
+
p(Q, {
|
|
4647
4645
|
name: "search",
|
|
4648
4646
|
size: 17
|
|
4649
4647
|
}),
|
|
4650
|
-
l("span",
|
|
4648
|
+
l("span", Wr, w(e.label), 1),
|
|
4651
4649
|
d[1] || (d[1] = l("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))
|
|
4652
|
-
], 8,
|
|
4650
|
+
], 8, Kr),
|
|
4653
4651
|
(m(), I(wn, { to: "body" }, [
|
|
4654
4652
|
s.value ? (m(), v("div", {
|
|
4655
4653
|
key: 0,
|
|
@@ -4657,13 +4655,13 @@ end;`, detail: "event(name: string)" },
|
|
|
4657
4655
|
onClick: te(c, ["self"])
|
|
4658
4656
|
}, [
|
|
4659
4657
|
l("div", {
|
|
4660
|
-
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-
|
|
4658
|
+
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-night-light-10/95",
|
|
4661
4659
|
role: "dialog",
|
|
4662
4660
|
"aria-modal": "true",
|
|
4663
4661
|
"aria-label": e.dialogLabel
|
|
4664
4662
|
}, [
|
|
4665
|
-
l("div",
|
|
4666
|
-
|
|
4663
|
+
l("div", Jr, [
|
|
4664
|
+
p(Q, {
|
|
4667
4665
|
name: "search",
|
|
4668
4666
|
size: 18,
|
|
4669
4667
|
class: "shrink-0 text-gray-400"
|
|
@@ -4675,39 +4673,39 @@ end;`, detail: "event(name: string)" },
|
|
|
4675
4673
|
type: "search",
|
|
4676
4674
|
placeholder: e.placeholder,
|
|
4677
4675
|
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"
|
|
4678
|
-
}, null, 8,
|
|
4676
|
+
}, null, 8, Xr), [
|
|
4679
4677
|
[$t, a.value]
|
|
4680
4678
|
]),
|
|
4681
4679
|
d[2] || (d[2] = l("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))
|
|
4682
4680
|
]),
|
|
4683
|
-
l("div",
|
|
4681
|
+
l("div", qr, [
|
|
4684
4682
|
(m(!0), v(D, null, H(o.value, (f) => (m(), v("a", {
|
|
4685
4683
|
key: `${f.group}-${f.to}-${f.title}`,
|
|
4686
4684
|
href: f.to,
|
|
4687
4685
|
class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
|
|
4688
4686
|
onClick: c
|
|
4689
4687
|
}, [
|
|
4690
|
-
|
|
4688
|
+
p(Q, {
|
|
4691
4689
|
name: "arrowRight",
|
|
4692
4690
|
size: 16,
|
|
4693
4691
|
class: "mt-0.5 shrink-0 text-gray-400"
|
|
4694
4692
|
}),
|
|
4695
|
-
l("span",
|
|
4696
|
-
l("span",
|
|
4697
|
-
l("span",
|
|
4698
|
-
f.group ? (m(), v("span",
|
|
4693
|
+
l("span", Zr, [
|
|
4694
|
+
l("span", Qr, [
|
|
4695
|
+
l("span", ed, w(f.title), 1),
|
|
4696
|
+
f.group ? (m(), v("span", td, w(f.group), 1)) : T("", !0)
|
|
4699
4697
|
]),
|
|
4700
|
-
f.description ? (m(), v("span",
|
|
4698
|
+
f.description ? (m(), v("span", nd, w(f.description), 1)) : T("", !0)
|
|
4701
4699
|
])
|
|
4702
|
-
], 8,
|
|
4703
|
-
o.value.length ? T("", !0) : (m(), v("p",
|
|
4700
|
+
], 8, Yr))), 128)),
|
|
4701
|
+
o.value.length ? T("", !0) : (m(), v("p", ld, w(e.emptyText), 1))
|
|
4704
4702
|
])
|
|
4705
|
-
], 8,
|
|
4703
|
+
], 8, Gr)
|
|
4706
4704
|
])) : T("", !0)
|
|
4707
4705
|
]))
|
|
4708
4706
|
], 64));
|
|
4709
4707
|
}
|
|
4710
|
-
}),
|
|
4708
|
+
}), sd = ["aria-label", "title"], oc = /* @__PURE__ */ E({
|
|
4711
4709
|
__name: "VisionThemeToggle",
|
|
4712
4710
|
props: {
|
|
4713
4711
|
labelLight: { default: "Включить светлую тему" },
|
|
@@ -4728,11 +4726,11 @@ end;`, detail: "event(name: string)" },
|
|
|
4728
4726
|
title: t.value === "dark" ? e.titleLight : e.titleDark,
|
|
4729
4727
|
onClick: n[0] || (n[0] = (o) => s(t.value === "dark" ? "light" : "dark"))
|
|
4730
4728
|
}, [
|
|
4731
|
-
|
|
4729
|
+
p(Q, {
|
|
4732
4730
|
name: t.value === "dark" ? "sun" : "moon",
|
|
4733
4731
|
size: 18
|
|
4734
4732
|
}, null, 8, ["name"])
|
|
4735
|
-
], 8,
|
|
4733
|
+
], 8, sd));
|
|
4736
4734
|
}
|
|
4737
4735
|
}), ic = /* @__PURE__ */ E({
|
|
4738
4736
|
__name: "VAutocomplete",
|
|
@@ -4753,7 +4751,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4753
4751
|
"hide-on-click": ""
|
|
4754
4752
|
}), {
|
|
4755
4753
|
activator: x(({ on: c }) => [
|
|
4756
|
-
|
|
4754
|
+
p(ie, {
|
|
4757
4755
|
"model-value": e.modelValue,
|
|
4758
4756
|
name: e.name,
|
|
4759
4757
|
message: e.message,
|
|
@@ -4763,7 +4761,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4763
4761
|
}, null, 8, ["model-value", "name", "message", "label", "onClick"])
|
|
4764
4762
|
]),
|
|
4765
4763
|
default: x(({ on: c, isLgOrLarger: u }) => [
|
|
4766
|
-
|
|
4764
|
+
p(_t, {
|
|
4767
4765
|
items: e.items,
|
|
4768
4766
|
plain: !u,
|
|
4769
4767
|
onClick: (r) => n(c, r)
|
|
@@ -4779,20 +4777,20 @@ end;`, detail: "event(name: string)" },
|
|
|
4779
4777
|
_: 3
|
|
4780
4778
|
}, 16));
|
|
4781
4779
|
}
|
|
4782
|
-
}),
|
|
4780
|
+
}), ad = {
|
|
4783
4781
|
viewBox: "0 0 24 24",
|
|
4784
4782
|
width: "1.2em",
|
|
4785
4783
|
height: "1.2em"
|
|
4786
4784
|
};
|
|
4787
|
-
function
|
|
4788
|
-
return m(), v("svg",
|
|
4785
|
+
function od(e, t) {
|
|
4786
|
+
return m(), v("svg", ad, [...t[0] || (t[0] = [
|
|
4789
4787
|
l("path", {
|
|
4790
4788
|
fill: "currentColor",
|
|
4791
4789
|
d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
|
|
4792
4790
|
}, null, -1)
|
|
4793
4791
|
])]);
|
|
4794
4792
|
}
|
|
4795
|
-
const
|
|
4793
|
+
const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, dd = { class: "p-4" }, rc = /* @__PURE__ */ E({
|
|
4796
4794
|
__name: "VExpansion",
|
|
4797
4795
|
props: {
|
|
4798
4796
|
label: { default: "" },
|
|
@@ -4809,7 +4807,7 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4809
4807
|
return ke(() => {
|
|
4810
4808
|
a();
|
|
4811
4809
|
}), (o, i) => {
|
|
4812
|
-
const c =
|
|
4810
|
+
const c = id;
|
|
4813
4811
|
return m(), v("div", {
|
|
4814
4812
|
ref_key: "root",
|
|
4815
4813
|
ref: t,
|
|
@@ -4823,18 +4821,18 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4823
4821
|
l("div", {
|
|
4824
4822
|
class: j(["transition text-gray-400", { "rotate-x-180": s.value }])
|
|
4825
4823
|
}, [
|
|
4826
|
-
|
|
4824
|
+
p(c, { class: "size-6" })
|
|
4827
4825
|
], 2)
|
|
4828
4826
|
]),
|
|
4829
|
-
l("div",
|
|
4830
|
-
l("div",
|
|
4827
|
+
l("div", rd, [
|
|
4828
|
+
l("div", dd, [
|
|
4831
4829
|
M(o.$slots, "default")
|
|
4832
4830
|
])
|
|
4833
4831
|
])
|
|
4834
4832
|
], 512);
|
|
4835
4833
|
};
|
|
4836
4834
|
}
|
|
4837
|
-
}),
|
|
4835
|
+
}), cd = ["onDragstart", "onDragenter"], ud = {
|
|
4838
4836
|
key: 0,
|
|
4839
4837
|
class: "absolute inset-0 border border-dashed border-blue-600 rounded"
|
|
4840
4838
|
}, dc = /* @__PURE__ */ E({
|
|
@@ -4848,28 +4846,28 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4848
4846
|
const s = t, a = L(null), n = L(0), o = L(-1), i = ({ id: f }) => ({
|
|
4849
4847
|
"opacity-30 scale-105 z-10": a.value === f,
|
|
4850
4848
|
"transition-transform duration-200": a.value !== f
|
|
4851
|
-
}), c = (f,
|
|
4852
|
-
a.value =
|
|
4849
|
+
}), c = (f, g, b) => {
|
|
4850
|
+
a.value = g, n.value = b, f.dataTransfer.effectAllowed = "move";
|
|
4853
4851
|
}, u = (f) => {
|
|
4854
4852
|
a.value !== null && (o.value = f);
|
|
4855
4853
|
}, r = () => {
|
|
4856
4854
|
a.value = null, o.value = -1;
|
|
4857
4855
|
}, d = (f) => {
|
|
4858
4856
|
if (f.preventDefault(), a.value && o.value !== -1) {
|
|
4859
|
-
const
|
|
4860
|
-
if (
|
|
4861
|
-
const h = [...e.items], [$] = h.splice(
|
|
4862
|
-
h.splice(b, 0, $), s("update:items", h), s("order-change", { fromIndex:
|
|
4857
|
+
const g = e.items.findIndex((h) => h[e.itemKey] === a.value), b = o.value;
|
|
4858
|
+
if (g !== b && b !== -1) {
|
|
4859
|
+
const h = [...e.items], [$] = h.splice(g, 1);
|
|
4860
|
+
h.splice(b, 0, $), s("update:items", h), s("order-change", { fromIndex: g, toIndex: b, movedItem: $, newOrder: h });
|
|
4863
4861
|
}
|
|
4864
4862
|
}
|
|
4865
4863
|
o.value = -1;
|
|
4866
4864
|
};
|
|
4867
|
-
return (f,
|
|
4868
|
-
onDragover:
|
|
4865
|
+
return (f, g) => (m(), v("div", {
|
|
4866
|
+
onDragover: g[1] || (g[1] = te(() => {
|
|
4869
4867
|
}, ["prevent"])),
|
|
4870
4868
|
onDrop: d
|
|
4871
4869
|
}, [
|
|
4872
|
-
|
|
4870
|
+
p(Kt, {
|
|
4873
4871
|
"enter-active-class": "transition-all duration-300 ease",
|
|
4874
4872
|
"enter-from-class": "opacity-0 translate-x-8",
|
|
4875
4873
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -4886,7 +4884,7 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4886
4884
|
onDragstart: ($) => c($, b.id, h),
|
|
4887
4885
|
onDragenter: ($) => u(h),
|
|
4888
4886
|
onDragend: r,
|
|
4889
|
-
onDragover:
|
|
4887
|
+
onDragover: g[0] || (g[0] = te(() => {
|
|
4890
4888
|
}, ["prevent"]))
|
|
4891
4889
|
}, [
|
|
4892
4890
|
M(f.$slots, "default", {
|
|
@@ -4895,17 +4893,17 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4895
4893
|
index: h,
|
|
4896
4894
|
isDragging: a.value === b.id
|
|
4897
4895
|
}),
|
|
4898
|
-
o.value === h && a.value !== b.id ? (m(), v("div",
|
|
4899
|
-
], 42,
|
|
4896
|
+
o.value === h && a.value !== b.id ? (m(), v("div", ud)) : T("", !0)
|
|
4897
|
+
], 42, cd))), 128))
|
|
4900
4898
|
]),
|
|
4901
4899
|
_: 3
|
|
4902
4900
|
})
|
|
4903
4901
|
], 32));
|
|
4904
4902
|
}
|
|
4905
|
-
}),
|
|
4903
|
+
}), md = { class: "glass-inset overflow-x-auto rounded-md" }, fd = { class: "min-w-full" }, vd = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, gd = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, pd = { class: "flex items-center" }, hd = { class: "divide-y divide-gray-100 dark:divide-white/5" }, yd = ["onClick"], bd = { class: "flex items-center text-gray-700 dark:text-white/70" }, xd = { key: 1 }, kd = {
|
|
4906
4904
|
class: "py-3 whitespace-nowrap",
|
|
4907
4905
|
colspan: "9"
|
|
4908
|
-
},
|
|
4906
|
+
}, $d = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, cc = /* @__PURE__ */ E({
|
|
4909
4907
|
__name: "VTable",
|
|
4910
4908
|
props: {
|
|
4911
4909
|
headers: { default: () => [] },
|
|
@@ -4914,9 +4912,9 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4914
4912
|
emits: ["click"],
|
|
4915
4913
|
setup(e, { emit: t }) {
|
|
4916
4914
|
const s = t, a = (i, c) => s("click", i, c), n = (i) => (i == null ? void 0 : i.className) || "", o = (i, { key: c }) => i == null ? void 0 : i[c];
|
|
4917
|
-
return (i, c) => (m(), v("div",
|
|
4918
|
-
l("table",
|
|
4919
|
-
l("thead",
|
|
4915
|
+
return (i, c) => (m(), v("div", md, [
|
|
4916
|
+
l("table", fd, [
|
|
4917
|
+
l("thead", vd, [
|
|
4920
4918
|
l("tr", gd, [
|
|
4921
4919
|
(m(!0), v(D, null, H(e.headers, (u, r) => (m(), v("th", {
|
|
4922
4920
|
key: r,
|
|
@@ -4926,22 +4924,22 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4926
4924
|
item: u,
|
|
4927
4925
|
i: r
|
|
4928
4926
|
}, () => [
|
|
4929
|
-
l("div",
|
|
4927
|
+
l("div", pd, w(u.name), 1)
|
|
4930
4928
|
])
|
|
4931
4929
|
], 2))), 128))
|
|
4932
4930
|
])
|
|
4933
4931
|
]),
|
|
4934
|
-
l("tbody",
|
|
4932
|
+
l("tbody", hd, [
|
|
4935
4933
|
e.items.length ? (m(!0), v(D, { key: 0 }, H(e.items, (u, r) => (m(), v("tr", {
|
|
4936
4934
|
key: r,
|
|
4937
|
-
class: "transition-colors hover:bg-
|
|
4935
|
+
class: "transition-colors hover:bg-cyan-main/[0.04] dark:hover:bg-white/[0.04]",
|
|
4938
4936
|
onClick: (d) => a(u, d)
|
|
4939
4937
|
}, [
|
|
4940
4938
|
(m(!0), v(D, null, H(e.headers, (d, f) => (m(), v("td", {
|
|
4941
4939
|
key: f,
|
|
4942
4940
|
class: "py-2 px-4"
|
|
4943
4941
|
}, [
|
|
4944
|
-
l("div",
|
|
4942
|
+
l("div", bd, [
|
|
4945
4943
|
M(i.$slots, d.key, {
|
|
4946
4944
|
item: u,
|
|
4947
4945
|
i: r
|
|
@@ -4950,9 +4948,9 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4950
4948
|
])
|
|
4951
4949
|
])
|
|
4952
4950
|
]))), 128))
|
|
4953
|
-
], 8,
|
|
4954
|
-
l("td",
|
|
4955
|
-
l("div",
|
|
4951
|
+
], 8, yd))), 128)) : (m(), v("tr", xd, [
|
|
4952
|
+
l("td", kd, [
|
|
4953
|
+
l("div", $d, [
|
|
4956
4954
|
M(i.$slots, "empty", {}, () => [
|
|
4957
4955
|
c[0] || (c[0] = A("The list is empty", -1))
|
|
4958
4956
|
])
|
|
@@ -4987,7 +4985,7 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4987
4985
|
}, [
|
|
4988
4986
|
M(o.$slots, "activator")
|
|
4989
4987
|
]),
|
|
4990
|
-
|
|
4988
|
+
p(kt, {
|
|
4991
4989
|
"enter-active-class": "duration-300 ease-out",
|
|
4992
4990
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
4993
4991
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -5004,23 +5002,23 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
5004
5002
|
}
|
|
5005
5003
|
});
|
|
5006
5004
|
export {
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5005
|
+
Vd as AppAside,
|
|
5006
|
+
Bd as AppHeader,
|
|
5007
|
+
Ld as AppNav,
|
|
5008
|
+
Ed as AppNotification,
|
|
5009
|
+
Md as AppOverlay,
|
|
5010
|
+
Id as AppProgress,
|
|
5011
|
+
Nd as BlockBreadcrumb,
|
|
5014
5012
|
tn as BlockDataSettings,
|
|
5015
|
-
|
|
5013
|
+
Ga as BlockHost,
|
|
5016
5014
|
Kd as BlockImport,
|
|
5017
|
-
|
|
5015
|
+
Od as BlockInfo,
|
|
5018
5016
|
Hd as BlockPicker,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5017
|
+
Fd as BlockScan,
|
|
5018
|
+
Dd as BlockService,
|
|
5019
|
+
eo as BlockShell,
|
|
5020
|
+
jd as BlockStatus,
|
|
5021
|
+
Rd as BlockUpdate,
|
|
5024
5022
|
Ud as BlockView,
|
|
5025
5023
|
He as CardBase,
|
|
5026
5024
|
Xd as CardButton,
|
|
@@ -5030,9 +5028,9 @@ export {
|
|
|
5030
5028
|
Qd as CardInput,
|
|
5031
5029
|
ec as CardList,
|
|
5032
5030
|
Tn as CardMain,
|
|
5033
|
-
|
|
5031
|
+
pl as CardNotification,
|
|
5034
5032
|
Tt as DEFAULT_METRIC_STYLE,
|
|
5035
|
-
|
|
5033
|
+
Or as DEFAULT_SUGGESTIONS,
|
|
5036
5034
|
Wd as EnergyFlowBlock,
|
|
5037
5035
|
tc as ItemEdit,
|
|
5038
5036
|
bt as MAX_METRICS,
|
|
@@ -5042,7 +5040,7 @@ export {
|
|
|
5042
5040
|
lc as ScriptViewDocs,
|
|
5043
5041
|
ic as VAutocomplete,
|
|
5044
5042
|
R as VButton,
|
|
5045
|
-
|
|
5043
|
+
Ji as VCheckbox,
|
|
5046
5044
|
Ae as VDialog,
|
|
5047
5045
|
dc as VDragDrop,
|
|
5048
5046
|
Xt as VDropdown,
|
|
@@ -5057,7 +5055,7 @@ export {
|
|
|
5057
5055
|
vc as VPopup,
|
|
5058
5056
|
he as VSelect,
|
|
5059
5057
|
cc as VTable,
|
|
5060
|
-
|
|
5058
|
+
Ki as VTabs,
|
|
5061
5059
|
ie as VTextField,
|
|
5062
5060
|
zt as VTextWrapper,
|
|
5063
5061
|
uc as VTooltip,
|
|
@@ -5065,17 +5063,17 @@ export {
|
|
|
5065
5063
|
Q as VisionIcon,
|
|
5066
5064
|
ac as VisionSearch,
|
|
5067
5065
|
oc as VisionThemeToggle,
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5066
|
+
Fo as createBlockContext,
|
|
5067
|
+
ai as createDeviceBlockStorage,
|
|
5068
|
+
Do as createDeviceContext,
|
|
5071
5069
|
Gd as deviceBlockStorage,
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5070
|
+
jo as deviceProvider,
|
|
5071
|
+
Oo as energyFlowDefinition,
|
|
5072
|
+
Mr as fullHighlighter,
|
|
5075
5073
|
yt as metricClasses,
|
|
5076
5074
|
Vt as resolveBlockBindings,
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5075
|
+
va as resolveBlockMetrics,
|
|
5076
|
+
fa as resolveMetric,
|
|
5077
|
+
Pd as resolveMetricArgValues,
|
|
5080
5078
|
Jd as useBlock
|
|
5081
5079
|
};
|