vuesp-components 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ 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 }
|
|
@@ -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 },
|
|
@@ -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 },
|
|
@@ -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: () => [] },
|
|
@@ -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 },
|
|
@@ -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: () => [] }
|
|
@@ -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: {},
|
|
@@ -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]" }, ps = { class: "flex flex-col w-full items-center gap-2" }, gs = ["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" },
|
|
713
|
+
}), vs = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, ps = { class: "flex flex-col w-full items-center gap-2" }, gs = ["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: {},
|
|
@@ -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 }) {
|
|
@@ -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: () => [] }
|
|
@@ -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,7 +1523,7 @@ 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 ?? {}),
|
|
@@ -1531,7 +1531,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1531
1531
|
]), o = {};
|
|
1532
1532
|
for (const d of n) {
|
|
1533
1533
|
const f = ((i = t.metrics) == null ? void 0 : i[d]) ?? ((c = e.metrics) == null ? void 0 : c[d]) ?? [], p = ((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) =>
|
|
1534
|
+
o[d] = f.slice(0, bt).map((b) => fa(b, p, 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
|
-
},
|
|
1546
|
+
return n.metrics = va(e, t, s, n), n;
|
|
1547
|
+
}, pa = { class: "glass-inset rounded-xl p-3" }, ga = { 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: {},
|
|
@@ -1554,9 +1554,9 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1554
1554
|
emits: ["remove", "open-style", "toggle-field", "dragstart", "dragend", "change", "hover"],
|
|
1555
1555
|
setup(e, { emit: t }) {
|
|
1556
1556
|
const s = t, a = (n, o) => s("hover", n, o);
|
|
1557
|
-
return (n, o) => (m(), v("div",
|
|
1558
|
-
l("div",
|
|
1559
|
-
l("div",
|
|
1557
|
+
return (n, o) => (m(), v("div", pa, [
|
|
1558
|
+
l("div", ga, [
|
|
1559
|
+
l("div", ha, [
|
|
1560
1560
|
g(ie, {
|
|
1561
1561
|
active: "",
|
|
1562
1562
|
"hide-message": "",
|
|
@@ -1608,7 +1608,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1608
1608
|
})
|
|
1609
1609
|
], 32)
|
|
1610
1610
|
]),
|
|
1611
|
-
l("div",
|
|
1611
|
+
l("div", ya, [
|
|
1612
1612
|
g(Xe, {
|
|
1613
1613
|
value: e.metric.value,
|
|
1614
1614
|
args: e.args,
|
|
@@ -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: {},
|
|
@@ -1652,18 +1652,18 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
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",
|
|
1666
|
+
l("div", _a, [
|
|
1667
1667
|
g(he, {
|
|
1668
1668
|
"model-value": o.value,
|
|
1669
1669
|
items: J(It),
|
|
@@ -1689,7 +1689,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1689
1689
|
onChange: b
|
|
1690
1690
|
}, null, 8, ["model-value", "items"])
|
|
1691
1691
|
]),
|
|
1692
|
-
l("div",
|
|
1692
|
+
l("div", Ca, [
|
|
1693
1693
|
g(R, {
|
|
1694
1694
|
variant: "primary",
|
|
1695
1695
|
onClick: $[0] || ($[0] = (O) => s("close"))
|
|
@@ -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: {},
|
|
@@ -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
|
});
|
|
@@ -1836,16 +1834,16 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
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,7 +1851,7 @@ 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
|
p.value = y === "enter" ? k : null;
|
|
@@ -1905,11 +1903,11 @@ 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
|
}, pe();
|
|
@@ -1925,7 +1923,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
1925
1923
|
onClose: We
|
|
1926
1924
|
}, {
|
|
1927
1925
|
"header-btn": x(() => [
|
|
1928
|
-
l("div",
|
|
1926
|
+
l("div", za, [
|
|
1929
1927
|
g(R, {
|
|
1930
1928
|
type: "icon",
|
|
1931
1929
|
size: "sm",
|
|
@@ -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
1988
|
class: j(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", c.value === S.key ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
|
|
1991
|
-
onClick: (
|
|
1989
|
+
onClick: (Y) => c.value = S.key
|
|
1992
1990
|
}, [
|
|
1993
|
-
l("span",
|
|
1991
|
+
l("span", Ba, [
|
|
1994
1992
|
g(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,39 +2025,39 @@ 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",
|
|
2028
|
+
V.value ? (m(), v("section", Ia, [
|
|
2031
2029
|
g(zt, {
|
|
2032
|
-
active: !!
|
|
2033
|
-
"icon-disabled":
|
|
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
2051
|
g(W, { class: "size-5" })
|
|
2054
|
-
], 8,
|
|
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
|
g(R, {
|
|
2065
2063
|
type: "icon",
|
|
@@ -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-primary/50": $.value ===
|
|
2085
|
-
onDragover: te((ze) => et(
|
|
2086
|
-
onDrop: te((ze) => vt(
|
|
2082
|
+
class: j(["rounded-xl transition", { "ring-1 ring-primary/50": $.value === Y }]),
|
|
2083
|
+
onDragover: te((ze) => et(Y), ["prevent"]),
|
|
2084
|
+
onDrop: te((ze) => vt(Y), ["prevent"])
|
|
2087
2085
|
}, [
|
|
2088
|
-
g(
|
|
2086
|
+
g(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,10 +2095,10 @@ 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",
|
|
2101
|
+
ye.value ? (m(), v("div", Ka, [
|
|
2104
2102
|
g(he, {
|
|
2105
2103
|
"model-value": Le.value,
|
|
2106
2104
|
items: Ue.value,
|
|
@@ -2111,7 +2109,7 @@ 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),
|
|
@@ -2126,7 +2124,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2126
2124
|
onClose: k[6] || (k[6] = (S) => r.value = !1)
|
|
2127
2125
|
}, {
|
|
2128
2126
|
default: x(() => [
|
|
2129
|
-
l("div",
|
|
2127
|
+
l("div", Wa, [
|
|
2130
2128
|
g(St, {
|
|
2131
2129
|
items: e.context.roots,
|
|
2132
2130
|
onClick: ft
|
|
@@ -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-primary/20 bg-primary/10 text-primary" }, 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
2199
|
class: "glass-inset flex flex-col items-start rounded-xl p-4 text-left transition hover:border-primary/30 hover:bg-primary/5",
|
|
2202
2200
|
onClick: (i) => s("select", o.type)
|
|
2203
2201
|
}, [
|
|
2204
|
-
l("span",
|
|
2202
|
+
l("span", qa, [
|
|
2205
2203
|
g(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,8 +2307,8 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2309
2307
|
}, null, 512), [
|
|
2310
2308
|
[$t, a.value]
|
|
2311
2309
|
]),
|
|
2312
|
-
n.value ? (m(), v("p",
|
|
2313
|
-
l("div",
|
|
2310
|
+
n.value ? (m(), v("p", no, w(n.value), 1)) : T("", !0),
|
|
2311
|
+
l("div", lo, [
|
|
2314
2312
|
g(R, {
|
|
2315
2313
|
color: "gray",
|
|
2316
2314
|
outline: "",
|
|
@@ -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)]" }, po = { class: "flex items-center gap-2" }, go = { 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-primary/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: "Сетевой инвертор" },
|
|
@@ -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);
|
|
@@ -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
|
}, [
|
|
@@ -2514,38 +2512,38 @@ 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
2532
|
class: "stroke-[var(--color-primary)] [stroke-width:2.5] [stroke-linecap:round] opacity-55",
|
|
2535
|
-
d:
|
|
2533
|
+
d: Z.value.paths[z.id],
|
|
2536
2534
|
fill: "none"
|
|
2537
|
-
}, null, 8,
|
|
2535
|
+
}, null, 8, io),
|
|
2538
2536
|
l("path", {
|
|
2539
2537
|
class: "stroke-[var(--color-primary)] [stroke-width:10] [stroke-linecap:round] opacity-20 blur-[6px]",
|
|
2540
|
-
d:
|
|
2538
|
+
d: Z.value.paths[z.id],
|
|
2541
2539
|
fill: "none"
|
|
2542
|
-
}, null, 8,
|
|
2540
|
+
}, null, 8, ro),
|
|
2543
2541
|
l("path", {
|
|
2544
2542
|
class: j(["animate-energy-flow stroke-[#d6f6ff] [stroke-width:2] [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-[0_0_4px_rgba(40,183,240,0.55)] motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
|
|
2545
|
-
d:
|
|
2543
|
+
d: Z.value.paths[z.id],
|
|
2546
2544
|
style: Me({ animationDuration: `${z.speed}s` }),
|
|
2547
2545
|
fill: "none"
|
|
2548
|
-
}, null, 14,
|
|
2546
|
+
}, null, 14, co),
|
|
2549
2547
|
K.value ? T("", !0) : (m(), v(D, { key: 0 }, H([0, 1, 2], (N, pe) => l("circle", {
|
|
2550
2548
|
key: `dot-${z.id}-${N}`,
|
|
2551
2549
|
r: "2.6",
|
|
@@ -2563,8 +2561,8 @@ 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",
|
|
@@ -2572,11 +2570,11 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2572
2570
|
dur: `${z.speed}s`,
|
|
2573
2571
|
begin: `${pe * 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,
|
|
@@ -2586,7 +2584,7 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2586
2584
|
l("div", {
|
|
2587
2585
|
class: j(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-[0_0_60px_-40px_rgba(40,183,240,0.35)] lg:max-w-56", z.card])
|
|
2588
2586
|
}, [
|
|
2589
|
-
l("div",
|
|
2587
|
+
l("div", po, [
|
|
2590
2588
|
l("span", {
|
|
2591
2589
|
class: j(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
|
|
2592
2590
|
}, [
|
|
@@ -2596,14 +2594,14 @@ v + ' кВт·ч<br>выработка за день'`),
|
|
|
2596
2594
|
class: j(z.tone)
|
|
2597
2595
|
}, null, 8, ["name", "class"])
|
|
2598
2596
|
], 2),
|
|
2599
|
-
l("span",
|
|
2597
|
+
l("span", go, 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,44 +2609,44 @@ 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
2616
|
class: "relative w-full max-w-72 rounded-2xl border border-primary/30 bg-primary/10 p-4 text-primary shadow-[0_0_70px_-24px_rgba(40,183,240,0.9)]"
|
|
2619
2617
|
}, [
|
|
2620
2618
|
G[3] || (G[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-primary/15" }, null, -1)),
|
|
2621
|
-
l("div",
|
|
2622
|
-
l("div",
|
|
2623
|
-
l("span",
|
|
2619
|
+
l("div", xo, [
|
|
2620
|
+
l("div", ko, [
|
|
2621
|
+
l("span", $o, [
|
|
2624
2622
|
g(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(p.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
2652
|
style: Me({ width: `${p.value}%` })
|
|
@@ -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,
|
|
@@ -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" }, pi = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, gi = { class: "text-center text-xl mt-4" }, He = /* @__PURE__ */ E({
|
|
2945
2943
|
__name: "CardBase",
|
|
2946
2944
|
props: {
|
|
2947
2945
|
size: {},
|
|
@@ -2965,12 +2963,12 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
2965
2963
|
n.value = !1, a("close", f);
|
|
2966
2964
|
};
|
|
2967
2965
|
return (f, p) => {
|
|
2968
|
-
const b = qt, h =
|
|
2966
|
+
const b = qt, h = ri;
|
|
2969
2967
|
return m(), v("div", {
|
|
2970
2968
|
class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_50px_-18px_rgba(40,183,240,0.25)]",
|
|
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, {
|
|
@@ -3023,15 +3021,15 @@ const di = ne({ name: "ri-file-copy2-line", render: ri }), ci = { class: "flex-a
|
|
|
3023
3021
|
})
|
|
3024
3022
|
]),
|
|
3025
3023
|
default: x(() => [
|
|
3026
|
-
l("div",
|
|
3027
|
-
l("div",
|
|
3028
|
-
l("h3",
|
|
3024
|
+
l("div", fi, [
|
|
3025
|
+
l("div", vi, [
|
|
3026
|
+
l("h3", pi, [
|
|
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", gi, [
|
|
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,7 +3090,7 @@ 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",
|
|
3093
|
+
l("div", xi, [
|
|
3096
3094
|
g(R, q(n(r), {
|
|
3097
3095
|
type: "icon",
|
|
3098
3096
|
class: s.value ? "text-amber-500" : "text-gray-500",
|
|
@@ -3106,7 +3104,7 @@ const xi = ne({ name: "ri-shut-down-line", render: bi }), ki = { class: "flex ju
|
|
|
3106
3104
|
])
|
|
3107
3105
|
]),
|
|
3108
3106
|
dialog: x((r) => [
|
|
3109
|
-
l("div",
|
|
3107
|
+
l("div", ki, [
|
|
3110
3108
|
g(R, q(n(r), {
|
|
3111
3109
|
type: "icon",
|
|
3112
3110
|
class: ["size-18", s.value ? "text-amber-500" : "text-gray-500"],
|
|
@@ -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: {},
|
|
@@ -3169,7 +3167,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
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
3172
|
onClick: d[0] || (d[0] = (p) => a("click", p)),
|
|
3175
3173
|
onEdit: d[1] || (d[1] = (p) => a("edit", p)),
|
|
@@ -3202,7 +3200,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3202
3200
|
])
|
|
3203
3201
|
]),
|
|
3204
3202
|
dialog: x((p) => [
|
|
3205
|
-
l("div",
|
|
3203
|
+
l("div", Ci, [
|
|
3206
3204
|
g(ie, q(c(p), {
|
|
3207
3205
|
type: "datetime-local",
|
|
3208
3206
|
onChange: i
|
|
@@ -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: {},
|
|
@@ -3256,15 +3254,15 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3256
3254
|
M(d.$slots, "icon", ae(oe(p)))
|
|
3257
3255
|
]),
|
|
3258
3256
|
header: x((p) => [
|
|
3259
|
-
l("div",
|
|
3260
|
-
l("div",
|
|
3257
|
+
l("div", Si, [
|
|
3258
|
+
l("div", zi, [
|
|
3261
3259
|
g(R, q(c(p), {
|
|
3262
3260
|
type: "icon",
|
|
3263
3261
|
onClick: te((b) => r(p), ["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",
|
|
@@ -3283,7 +3281,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
3283
3281
|
"stroke-dashoffset": i(p),
|
|
3284
3282
|
fill: "transparent",
|
|
3285
3283
|
"stroke-dasharray": "187"
|
|
3286
|
-
}, null, 8,
|
|
3284
|
+
}, null, 8, Vi)
|
|
3287
3285
|
]))
|
|
3288
3286
|
])
|
|
3289
3287
|
]),
|
|
@@ -3301,7 +3299,7 @@ const Ci = ne({ name: "ri-time-line", render: _i }), Si = { class: "flex justify
|
|
|
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
3300
|
style: Me(`width: ${o(p)}%`)
|
|
3303
3301
|
}, null, 4),
|
|
3304
|
-
l("div",
|
|
3302
|
+
l("div", Bi, w(o(p)) + " %", 1),
|
|
3305
3303
|
l("input", q({ type: "range" }, c(p), {
|
|
3306
3304
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
3307
3305
|
onChange: u
|
|
@@ -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,7 +3384,7 @@ 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",
|
|
3387
|
+
l("div", Ei, [
|
|
3390
3388
|
g(ie, q({
|
|
3391
3389
|
modelValue: n.value,
|
|
3392
3390
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => n.value = f)
|
|
@@ -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: {},
|
|
@@ -3447,7 +3445,7 @@ const Oi = ne({ name: "ri-list-check", render: Ii }), Fi = { class: "flex justif
|
|
|
3447
3445
|
return { label: c, modelValue: p, 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)),
|
|
@@ -3490,7 +3488,7 @@ 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",
|
|
3491
|
+
l("div", Oi, [
|
|
3494
3492
|
g(he, q(i(d), {
|
|
3495
3493
|
top: "-50%",
|
|
3496
3494
|
left: "50%",
|
|
@@ -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: {},
|
|
@@ -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,11 +3554,11 @@ 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"
|
|
@@ -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 },
|
|
@@ -3606,7 +3604,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3606
3604
|
disabled: e.disabled,
|
|
3607
3605
|
class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-transparent transition-all checked:border-[var(--accent-blue)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
|
|
3608
3606
|
onChange: a
|
|
3609
|
-
}, null, 40,
|
|
3607
|
+
}, null, 40, Wi),
|
|
3610
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(--accent-blue)] 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",
|
|
@@ -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 },
|
|
@@ -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
|
-
g(
|
|
3663
|
+
return m(), v("div", Xi, [
|
|
3664
|
+
l("div", qi, [
|
|
3665
|
+
g(Ji, {
|
|
3668
3666
|
modelValue: e.disabled,
|
|
3669
3667
|
"onUpdate:modelValue": $[0] || ($[0] = (B) => u("disabled", B ? 1 : 0))
|
|
3670
3668
|
}, {
|
|
@@ -3674,7 +3672,7 @@ 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",
|
|
3675
|
+
c("dimmer") ? (m(), v("div", Yi, [
|
|
3678
3676
|
g(ie, {
|
|
3679
3677
|
modelValue: e.min,
|
|
3680
3678
|
label: "Min",
|
|
@@ -3691,8 +3689,8 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
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",
|
|
3692
|
+
c("list") ? (m(), v("div", Zi, [
|
|
3693
|
+
l("div", Qi, [
|
|
3696
3694
|
g(ie, {
|
|
3697
3695
|
modelValue: n.value.name,
|
|
3698
3696
|
"onUpdate:modelValue": [
|
|
@@ -3712,7 +3710,7 @@ 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",
|
|
3713
|
+
l("div", er, [
|
|
3716
3714
|
g(he, {
|
|
3717
3715
|
"model-value": n.value.value,
|
|
3718
3716
|
label: "List",
|
|
@@ -3722,14 +3720,14 @@ 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
3727
|
onClick: te((X) => p(B), ["prevent", "stop"])
|
|
3730
3728
|
}, [
|
|
3731
3729
|
g(O)
|
|
3732
|
-
], 8,
|
|
3730
|
+
], 8, nr)
|
|
3733
3731
|
])
|
|
3734
3732
|
]),
|
|
3735
3733
|
_: 1
|
|
@@ -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"], pr = { class: "flex justify-center order-0 md:order-1" }, gr = { 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: {},
|
|
@@ -3801,17 +3799,17 @@ 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
|
-
g(
|
|
3802
|
+
const Ve = ji, re = Pe;
|
|
3803
|
+
return m(), v("div", sr, [
|
|
3804
|
+
l("div", ar, [
|
|
3805
|
+
l("div", or, [
|
|
3806
|
+
g(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",
|
|
3812
|
+
l("div", ir, [
|
|
3815
3813
|
g(ie, {
|
|
3816
3814
|
modelValue: n.value.id,
|
|
3817
3815
|
"onUpdate:modelValue": V[0] || (V[0] = (K) => n.value.id = K),
|
|
@@ -3839,7 +3837,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
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",
|
|
3840
|
+
l("div", rr, [
|
|
3843
3841
|
g(he, {
|
|
3844
3842
|
"model-value": n.value.icon,
|
|
3845
3843
|
bottom: "0",
|
|
@@ -3850,7 +3848,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3850
3848
|
onChange: p
|
|
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
|
}),
|
|
@@ -3871,7 +3869,7 @@ 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",
|
|
3872
|
+
l("div", cr, [
|
|
3875
3873
|
g(zt, {
|
|
3876
3874
|
active: !!n.value.args.length,
|
|
3877
3875
|
disabled: d.value,
|
|
@@ -3879,13 +3877,13 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
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,
|
|
@@ -3893,7 +3891,7 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3893
3891
|
onClick: (Ue) => O(K)
|
|
3894
3892
|
}, [
|
|
3895
3893
|
g(re, { class: "size-5" })
|
|
3896
|
-
], 8,
|
|
3894
|
+
], 8, vr)) : T("", !0)
|
|
3897
3895
|
]))), 128))
|
|
3898
3896
|
])
|
|
3899
3897
|
]),
|
|
@@ -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
|
-
g(
|
|
3934
|
+
g(lr, q(n.value.opts, {
|
|
3937
3935
|
value: n.value.value,
|
|
3938
3936
|
type: n.value.type,
|
|
3939
3937
|
onUpdate: ve
|
|
@@ -3942,13 +3940,13 @@ const Ri = ne({ name: "ri-menu-search-line", render: ji }), Ni = { class: "glass
|
|
|
3942
3940
|
_: 3
|
|
3943
3941
|
})
|
|
3944
3942
|
]),
|
|
3945
|
-
l("div",
|
|
3946
|
-
l("div",
|
|
3943
|
+
l("div", pr, [
|
|
3944
|
+
l("div", gr, [
|
|
3947
3945
|
M(C.$slots, "default", { item: n.value })
|
|
3948
3946
|
])
|
|
3949
3947
|
])
|
|
3950
3948
|
]),
|
|
3951
|
-
l("div",
|
|
3949
|
+
l("div", hr, [
|
|
3952
3950
|
g(R, {
|
|
3953
3951
|
class: "px-4",
|
|
3954
3952
|
color: "blue",
|
|
@@ -3979,7 +3977,7 @@ 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",
|
|
3980
|
+
l("div", yr, [
|
|
3983
3981
|
g(St, {
|
|
3984
3982
|
items: e.object,
|
|
3985
3983
|
onlyValue: !r.value,
|
|
@@ -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) => {
|
|
@@ -4094,7 +4092,7 @@ function Sr(e = {}) {
|
|
|
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;
|
|
@@ -4126,7 +4124,7 @@ const zr = () => (e, t) => {
|
|
|
4126
4124
|
};
|
|
4127
4125
|
};
|
|
4128
4126
|
let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un, ge = null, Ne = null;
|
|
4129
|
-
const
|
|
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");
|
|
@@ -4203,7 +4201,7 @@ const Ar = (e) => {
|
|
|
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
|
};
|
|
@@ -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) => {
|
|
@@ -4318,11 +4316,11 @@ typeof document < "u" && document.addEventListener("mousedown", (e) => {
|
|
|
4318
4316
|
const t = e.target;
|
|
4319
4317
|
ce && !ce.contains(t) && we(), ge && !ge.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
4326
|
const [i, c, u, r, d, f, p, b] = o;
|
|
@@ -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" }
|
|
@@ -4493,7 +4491,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4493
4491
|
return;
|
|
4494
4492
|
}
|
|
4495
4493
|
const p = document.createElement("script");
|
|
4496
|
-
p.src =
|
|
4494
|
+
p.src = Hr, p.async = !0, p.onload = () => {
|
|
4497
4495
|
window.marked ? (window.marked.setOptions({
|
|
4498
4496
|
gfm: !0,
|
|
4499
4497
|
breaks: !0,
|
|
@@ -4524,7 +4522,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4524
4522
|
}
|
|
4525
4523
|
n.value = !0, o.value = null, s.value = "";
|
|
4526
4524
|
try {
|
|
4527
|
-
const f = `${
|
|
4525
|
+
const f = `${Pr}${d}.md`, p = await fetch(f);
|
|
4528
4526
|
if (!p.ok)
|
|
4529
4527
|
throw new Error(`HTTP ${p.status}: ${p.statusText}`);
|
|
4530
4528
|
const b = await p.text();
|
|
@@ -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: {}
|
|
@@ -4576,7 +4574,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4576
4574
|
e.idScript || (i.value = "boot");
|
|
4577
4575
|
}), (d, f) => {
|
|
4578
4576
|
const p = ie, b = R;
|
|
4579
|
-
return m(), v("div",
|
|
4577
|
+
return m(), v("div", Ur, [
|
|
4580
4578
|
g(p, q({
|
|
4581
4579
|
modelValue: J(i),
|
|
4582
4580
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => $n(i) ? i.value = h : null)
|
|
@@ -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({
|
|
@@ -4647,9 +4645,9 @@ end;`, detail: "event(name: string)" },
|
|
|
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,
|
|
@@ -4662,7 +4660,7 @@ end;`, detail: "event(name: string)" },
|
|
|
4662
4660
|
"aria-modal": "true",
|
|
4663
4661
|
"aria-label": e.dialogLabel
|
|
4664
4662
|
}, [
|
|
4665
|
-
l("div",
|
|
4663
|
+
l("div", Jr, [
|
|
4666
4664
|
g(Q, {
|
|
4667
4665
|
name: "search",
|
|
4668
4666
|
size: 18,
|
|
@@ -4675,12 +4673,12 @@ 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,
|
|
@@ -4692,22 +4690,22 @@ end;`, detail: "event(name: string)" },
|
|
|
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: "Включить светлую тему" },
|
|
@@ -4732,7 +4730,7 @@ end;`, detail: "event(name: string)" },
|
|
|
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",
|
|
@@ -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,
|
|
@@ -4826,15 +4824,15 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
4826
4824
|
g(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({
|
|
@@ -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" }, pd = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, gd = { 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,10 +4912,10 @@ 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",
|
|
4920
|
-
l("tr",
|
|
4915
|
+
return (i, c) => (m(), v("div", md, [
|
|
4916
|
+
l("table", fd, [
|
|
4917
|
+
l("thead", vd, [
|
|
4918
|
+
l("tr", pd, [
|
|
4921
4919
|
(m(!0), v(D, null, H(e.headers, (u, r) => (m(), v("th", {
|
|
4922
4920
|
key: r,
|
|
4923
4921
|
class: j(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", n(u)])
|
|
@@ -4926,12 +4924,12 @@ 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", gd, 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
4935
|
class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
|
|
@@ -4941,7 +4939,7 @@ const rd = ne({ name: "ri-arrow-drop-down-line", render: id }), dd = { class: "v
|
|
|
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
|
])
|
|
@@ -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,
|
|
@@ -5032,7 +5030,7 @@ export {
|
|
|
5032
5030
|
Tn as CardMain,
|
|
5033
5031
|
gl 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
|
};
|