vuesp-components 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{VDialog.vue_vue_type_script_setup_true_lang-DSrvFSFT.js → CardMain.vue_vue_type_style_index_0_lang-jUPno8E0.js} +79 -76
- package/dist/components/block/data/BlockDataHelp.vue.d.ts +7 -0
- package/dist/components/block/data/BlockDataHelp.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockDataSettings.vue.d.ts +17 -0
- package/dist/components/block/data/BlockDataSettings.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockFieldCard.vue.d.ts +23 -0
- package/dist/components/block/data/BlockFieldCard.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockHost.vue.d.ts +16 -0
- package/dist/components/block/data/BlockHost.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockImport.vue.d.ts +10 -0
- package/dist/components/block/data/BlockImport.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockMetricCard.vue.d.ts +25 -0
- package/dist/components/block/data/BlockMetricCard.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockMetricStyleDialog.vue.d.ts +15 -0
- package/dist/components/block/data/BlockMetricStyleDialog.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockPicker.vue.d.ts +13 -0
- package/dist/components/block/data/BlockPicker.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockShell.vue.d.ts +15 -0
- package/dist/components/block/data/BlockShell.vue.d.ts.map +1 -0
- package/dist/components/block/data/BlockView.vue.d.ts +18 -0
- package/dist/components/block/data/BlockView.vue.d.ts.map +1 -0
- package/dist/components/block/data/context.d.ts +10 -0
- package/dist/components/block/data/context.d.ts.map +1 -0
- package/dist/components/block/data/deviceStorage.d.ts +8 -0
- package/dist/components/block/data/deviceStorage.d.ts.map +1 -0
- package/dist/components/block/data/metricStyles.d.ts +24 -0
- package/dist/components/block/data/metricStyles.d.ts.map +1 -0
- package/dist/components/block/data/provider.d.ts +7 -0
- package/dist/components/block/data/provider.d.ts.map +1 -0
- package/dist/components/block/data/resolver.d.ts +9 -0
- package/dist/components/block/data/resolver.d.ts.map +1 -0
- package/dist/components/block/data/types.d.ts +87 -0
- package/dist/components/block/data/types.d.ts.map +1 -0
- package/dist/components/block/data/useBlock.d.ts +95 -0
- package/dist/components/block/data/useBlock.d.ts.map +1 -0
- package/dist/components/block/index.d.ts +17 -2
- package/dist/components/block/index.d.ts.map +1 -1
- package/dist/components/block/presets/energy-flow/EnergyFlowBlock.vue.d.ts +14 -0
- package/dist/components/block/presets/energy-flow/EnergyFlowBlock.vue.d.ts.map +1 -0
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts +34 -0
- package/dist/components/block/presets/energy-flow/EnergyFlowCard.vue.d.ts.map +1 -0
- package/dist/components/block/presets/energy-flow/definition.d.ts +3 -0
- package/dist/components/block/presets/energy-flow/definition.d.ts.map +1 -0
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts.map +1 -1
- package/dist/components/index.es.js +3462 -1897
- package/dist/components/ui/func/VFunc.vue.d.ts +0 -2
- package/dist/components/ui/func/VFunc.vue.d.ts.map +1 -1
- package/dist/components/ui/func/types.d.ts +4 -1
- package/dist/components/ui/func/types.d.ts.map +1 -1
- package/dist/components/ui/text-wrapper/VTextWrapper.vue.d.ts.map +1 -1
- package/dist/components/ui/text-wrapper/types.d.ts +2 -0
- package/dist/components/ui/text-wrapper/types.d.ts.map +1 -1
- package/dist/components/ui/vision/VisionIcon.vue.d.ts.map +1 -1
- package/dist/composables/index.es.js +1 -1
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.es.js +30 -34
- package/dist/index.es.js +1 -1
- package/dist/paths-CbO4FuTv.js +15 -0
- package/dist/style.css +1 -1
- package/dist/theme.css +7 -0
- package/dist/{useDialog-ALG4kFE7.js → useDialog-BdpYSys6.js} +40 -34
- package/package.json +1 -1
- package/dist/components/block/energy/EnergyFlowBlock.vue.d.ts +0 -8
- package/dist/components/block/energy/EnergyFlowBlock.vue.d.ts.map +0 -1
- package/dist/components/block/energy/types.d.ts +0 -16
- package/dist/components/block/energy/types.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as i, createStaticVNode as Z, createElementVNode as r, defineComponent as V, computed as g, normalizeClass as x, resolveComponent as ee, createBlock as B, resolveDynamicComponent as W, mergeProps as A, withCtx as z, renderSlot as p, createCommentVNode as w, markRaw as F, shallowRef as N, Teleport as _, createVNode as S, Transition as I, unref as c, withModifiers as L, normalizeStyle as H, ref as q, withDirectives as te, Fragment as T, renderList as P, createTextVNode as R, toDisplayString as O, withKeys as ae, createPropsRestProxy as le, normalizeProps as oe, guardReactiveProps as se } from "vue";
|
|
2
|
-
import { u as K, a as ne, b as U, c as G } from "./useDialog-
|
|
2
|
+
import { u as K, a as ne, b as U, c as G } from "./useDialog-BdpYSys6.js";
|
|
3
3
|
const J = (e, a) => {
|
|
4
4
|
const l = e.__vccOpts || e;
|
|
5
5
|
for (const [b, n] of a)
|
|
@@ -77,7 +77,7 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
77
77
|
setup(e, { emit: a }) {
|
|
78
78
|
const l = a, b = (h) => {
|
|
79
79
|
e.disabled || l("click", h);
|
|
80
|
-
}, n = ee("RouterLink"), t = g(() => e.to ? n : e.href ? "a" : "button"), s = g(() => e.type === "submit" || e.type === "reset" ? e.type : "button"),
|
|
80
|
+
}, n = ee("RouterLink"), t = g(() => e.to ? n : e.href ? "a" : "button"), s = g(() => e.type === "submit" || e.type === "reset" ? e.type : "button"), M = g(() => e.type === "icon"), y = {
|
|
81
81
|
green: "border border-green-500/20 bg-green-500/10 text-green-600 dark:text-green-400",
|
|
82
82
|
red: "border border-red-500/20 bg-red-500/10 text-red-600 dark:text-red-400",
|
|
83
83
|
gray: "border border-gray-200/70 bg-white/50 text-gray-700 dark:border-white/10 dark:bg-white/[0.05] dark:text-white/70",
|
|
@@ -127,7 +127,7 @@ const Xe = /* @__PURE__ */ J(de, [["render", he]]), ve = /* @__PURE__ */ V({
|
|
|
127
127
|
xl: "size-14"
|
|
128
128
|
}, u = g(() => {
|
|
129
129
|
const h = [fe];
|
|
130
|
-
return
|
|
130
|
+
return M.value ? h.push("border border-gray-200/70 dark:border-white/10", d[e.size]) : e.variant ? h.push(m[e.variant], C[e.size]) : h.push(e.outline ? v[e.color] : y[e.color], E[e.size]), e.block && h.push("w-full"), e.disabled && h.push("pointer-events-none opacity-40"), h;
|
|
131
131
|
});
|
|
132
132
|
return (h, $) => (o(), B(W(t.value), A(h.$attrs, {
|
|
133
133
|
href: e.href || void 0,
|
|
@@ -173,7 +173,7 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
173
173
|
},
|
|
174
174
|
emits: ["close", "click", "open"],
|
|
175
175
|
setup(e, { emit: a }) {
|
|
176
|
-
const l = a, { show: b, overlay: n, onClose: t, onOpen: s } = K(l),
|
|
176
|
+
const l = a, { show: b, overlay: n, onClose: t, onOpen: s } = K(l), M = N(null), y = N(null), { opacity: v, transform: m } = ne(M, y, t), d = { click: ($) => {
|
|
177
177
|
l("click", $);
|
|
178
178
|
}, open: s, set: ($) => {
|
|
179
179
|
$ ? s() : t(new Event("hide"));
|
|
@@ -186,7 +186,7 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
186
186
|
full: "h-[calc(100dvh-24px-16px)] md:h-[calc(100dvh-100px-16px)]",
|
|
187
187
|
screen: "h-[calc(100dvh-16px)]"
|
|
188
188
|
}));
|
|
189
|
-
return ($,
|
|
189
|
+
return ($, k) => {
|
|
190
190
|
const D = X, f = Q;
|
|
191
191
|
return o(), B(_, { to: "body" }, [
|
|
192
192
|
S(I, {
|
|
@@ -208,11 +208,11 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
210
210
|
style: H({ opacity: c(v) }),
|
|
211
|
-
onClick:
|
|
211
|
+
onClick: k[0] || (k[0] = //@ts-ignore
|
|
212
212
|
(...j) => c(t) && c(t)(...j)),
|
|
213
|
-
onWheel:
|
|
213
|
+
onWheel: k[1] || (k[1] = L(() => {
|
|
214
214
|
}, ["prevent"])),
|
|
215
|
-
onTouchmove:
|
|
215
|
+
onTouchmove: k[2] || (k[2] = L(() => {
|
|
216
216
|
}, ["prevent"]))
|
|
217
217
|
}, null, 36)) : w("", !0),
|
|
218
218
|
r("div", {
|
|
@@ -221,13 +221,13 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
221
221
|
}, [
|
|
222
222
|
r("div", {
|
|
223
223
|
ref_key: "target",
|
|
224
|
-
ref:
|
|
224
|
+
ref: M,
|
|
225
225
|
class: "flex justify-center py-3 md:pb-6",
|
|
226
|
-
onWheel:
|
|
226
|
+
onWheel: k[3] || (k[3] = L(() => {
|
|
227
227
|
}, ["prevent"])),
|
|
228
|
-
onTouchmove:
|
|
228
|
+
onTouchmove: k[4] || (k[4] = L(() => {
|
|
229
229
|
}, ["prevent"]))
|
|
230
|
-
}, [...
|
|
230
|
+
}, [...k[5] || (k[5] = [
|
|
231
231
|
r("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
|
|
232
232
|
])], 544),
|
|
233
233
|
r("div", ge, [
|
|
@@ -286,7 +286,7 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
286
286
|
},
|
|
287
287
|
emits: ["click", "show", "close"],
|
|
288
288
|
setup(e, { emit: a }) {
|
|
289
|
-
const l = a, n = U(G).greaterOrEqual("lg"), t = q(!1), s = g(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })),
|
|
289
|
+
const l = a, n = U(G).greaterOrEqual("lg"), t = q(!1), s = g(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), M = (u) => {
|
|
290
290
|
n.value && t.value && m(u);
|
|
291
291
|
}, y = (u) => {
|
|
292
292
|
l("click", t.value), !e.disabled && (t.value ? e.hideOnClick && m(u) : v(u));
|
|
@@ -349,10 +349,10 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
349
349
|
_: 3
|
|
350
350
|
}, 8, ["title"])) : w("", !0)
|
|
351
351
|
])), [
|
|
352
|
-
[c(xe),
|
|
352
|
+
[c(xe), M]
|
|
353
353
|
]);
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), Me = ["onClick"], ke = /* @__PURE__ */ V({
|
|
356
356
|
__name: "VList",
|
|
357
357
|
props: {
|
|
358
358
|
items: {},
|
|
@@ -367,12 +367,12 @@ const X = F({ name: "ri-close-line", render: me }), ge = { class: "flex items-ce
|
|
|
367
367
|
(o(!0), i(T, null, P(e.items, (s) => (o(), i("li", {
|
|
368
368
|
key: s.name,
|
|
369
369
|
class: "flex min-h-[40px] w-full cursor-pointer items-center whitespace-nowrap border-b border-gray-100 px-4 last:border-b-0 hover:bg-primary/10 dark:border-white/5 dark:hover:bg-white/[0.06]",
|
|
370
|
-
onClick: (
|
|
370
|
+
onClick: (M) => b(s, M)
|
|
371
371
|
}, [
|
|
372
372
|
p(n.$slots, "default", { item: s }, () => [
|
|
373
373
|
R(O(s.name), 1)
|
|
374
374
|
])
|
|
375
|
-
], 8,
|
|
375
|
+
], 8, Me))), 128))
|
|
376
376
|
], 2));
|
|
377
377
|
}
|
|
378
378
|
}), ze = { class: "relative flex items-end gap-0.5 w-10" }, Ce = ["title"], $e = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, Ye = /* @__PURE__ */ V({
|
|
@@ -429,6 +429,8 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
429
429
|
check: ["M20 6 9 17l-5-5"],
|
|
430
430
|
plus: ["M12 5v14", "M5 12h14"],
|
|
431
431
|
dots: ["M5 12h.01", "M12 12h.01", "M19 12h.01"],
|
|
432
|
+
grip: ["M9 6h.01", "M15 6h.01", "M9 12h.01", "M15 12h.01", "M9 18h.01", "M15 18h.01"],
|
|
433
|
+
palette: ["M12 21a9 9 0 1 1 0-18c4 0 7 2.3 7 5.5 0 2.2-1.8 3.5-4 3.5h-2a2 2 0 0 0-1 3.7", "M7.5 10.5h.01", "M10 7.5h.01", "M14 7.5h.01", "M16.5 10.5h.01"],
|
|
432
434
|
logout: ["M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", "M16 17l5-5-5-5", "M21 12H9"],
|
|
433
435
|
sun: ["M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10", "M12 1v2", "M12 21v2", "M4.2 4.2l1.4 1.4", "M18.4 18.4l1.4 1.4", "M1 12h2", "M21 12h2", "M4.2 19.8l1.4-1.4", "M18.4 5.6l1.4-1.4"],
|
|
434
436
|
moon: ["M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8"],
|
|
@@ -441,6 +443,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
441
443
|
chevronDown: ["M6 9l6 6 6-6"],
|
|
442
444
|
refresh: ["M21 12a9 9 0 1 1-3-6.7", "M21 3v6h-6"],
|
|
443
445
|
download: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"],
|
|
446
|
+
upload: ["M12 21V9", "M7 14l5-5 5 5", "M5 3h14"],
|
|
444
447
|
edit: ["M12 20h9", "M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"],
|
|
445
448
|
trash: ["M3 6h18", "M8 6V4h8v2", "M19 6l-1 15H6L5 6", "M10 11v6", "M14 11v6"],
|
|
446
449
|
calendar: ["M4 5h16v16H4z", "M16 3v4", "M8 3v4", "M4 10h16"],
|
|
@@ -500,7 +503,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
500
503
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
501
504
|
e.error ? "!border-red-400/70 ring-1 ring-red-400/25 hover:!border-red-400" : "",
|
|
502
505
|
e.disabled ? "border-gray-300 opacity-40 dark:border-gray-700" : "border-gray-300/80 hover:border-gray-400/80 dark:border-white/10 dark:hover:border-white/20"
|
|
503
|
-
]),
|
|
506
|
+
]), M = g(() => b[e.component]), y = (f) => f || f === 0, v = g(() => n.value || y(e.modelValue) || e.active), m = g(() => e.icon ? "left-11" : "left-3.5"), E = g(() => [
|
|
504
507
|
m.value,
|
|
505
508
|
v.value ? Ae : "",
|
|
506
509
|
v.value ? "top-0 bg-white/80 px-1 text-xs text-gray-500 dark:bg-[#0b1538]/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
|
|
@@ -508,7 +511,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
508
511
|
n.value = !1, l("blur", f);
|
|
509
512
|
}, u = (f) => {
|
|
510
513
|
n.value = !0, l("focus", f);
|
|
511
|
-
}, h = ({ target: f }) => l("update:modelValue", f.value), $ = (f) => l("enter", f),
|
|
514
|
+
}, h = ({ target: f }) => l("update:modelValue", f.value), $ = (f) => l("enter", f), k = (f) => l("click", f), D = (f) => {
|
|
512
515
|
e.disabled || l("on-icon", f);
|
|
513
516
|
};
|
|
514
517
|
return (f, j) => (o(), i("div", He, [
|
|
@@ -532,12 +535,12 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
532
535
|
readonly: e.readonly,
|
|
533
536
|
rows: C.value ? null : "2",
|
|
534
537
|
wrap: C.value ? null : "soft",
|
|
535
|
-
class:
|
|
538
|
+
class: M.value,
|
|
536
539
|
"aria-invalid": t.value ? !0 : void 0,
|
|
537
540
|
onFocus: u,
|
|
538
541
|
onBlur: d,
|
|
539
542
|
onInput: h,
|
|
540
|
-
onClick:
|
|
543
|
+
onClick: k,
|
|
541
544
|
onKeypress: ae($, ["enter"])
|
|
542
545
|
}), null, 16, ["value", "placeholder", "disabled", "type", "readonly", "rows", "wrap", "class", "aria-invalid"])),
|
|
543
546
|
f.$slots.icon ? (o(), i("button", {
|
|
@@ -586,7 +589,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
586
589
|
b("change", t), s == null || s.set(!1);
|
|
587
590
|
}
|
|
588
591
|
return (t, s) => {
|
|
589
|
-
const
|
|
592
|
+
const M = Le;
|
|
590
593
|
return o(), B(we, A(l, {
|
|
591
594
|
"hide-on-click": !1,
|
|
592
595
|
class: "relative"
|
|
@@ -604,7 +607,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
604
607
|
onOnIcon: y.click
|
|
605
608
|
}, {
|
|
606
609
|
icon: z(() => [
|
|
607
|
-
S(
|
|
610
|
+
S(M, {
|
|
608
611
|
class: x(["transition duration-300", v ? "rotate-180" : ""])
|
|
609
612
|
}, null, 8, ["class"])
|
|
610
613
|
]),
|
|
@@ -615,7 +618,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
615
618
|
default: z(({ on: y, isLgOrLarger: v }) => [
|
|
616
619
|
r("div", Te, [
|
|
617
620
|
e.label ? (o(), i("h4", Pe, O(e.label), 1)) : w("", !0),
|
|
618
|
-
S(
|
|
621
|
+
S(ke, {
|
|
619
622
|
items: e.items,
|
|
620
623
|
plain: !v,
|
|
621
624
|
class: x(["lg:max-h-50 lg:overflow-y-auto lg:overscroll-contain", { scrollbar: v }]),
|
|
@@ -634,52 +637,10 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
634
637
|
}, 16);
|
|
635
638
|
};
|
|
636
639
|
}
|
|
637
|
-
}), Re = {
|
|
638
|
-
key: 0,
|
|
639
|
-
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-white/5 before:bg-primary before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
|
|
640
|
-
}, je = {
|
|
641
|
-
key: 1,
|
|
642
|
-
class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-[#060b28]/75 z-10 opacity-50"
|
|
643
|
-
}, Ne = {
|
|
644
|
-
key: 2,
|
|
645
|
-
class: "mb-4 flex items-center justify-between gap-3"
|
|
646
|
-
}, We = {
|
|
647
|
-
key: 0,
|
|
648
|
-
class: "text-lg font-semibold text-gray-800 dark:text-white"
|
|
649
|
-
}, Fe = { class: "ml-auto" }, _e = ["inert", "aria-disabled"], et = /* @__PURE__ */ V({
|
|
650
|
-
__name: "CardMain",
|
|
651
|
-
props: {
|
|
652
|
-
title: { default: "" },
|
|
653
|
-
loading: { type: Boolean, default: !1 },
|
|
654
|
-
disabled: { type: Boolean, default: !1 },
|
|
655
|
-
padded: { type: Boolean, default: !0 }
|
|
656
|
-
},
|
|
657
|
-
setup(e) {
|
|
658
|
-
const a = g(() => e.padded ? "p-5 sm:p-6" : "");
|
|
659
|
-
return (l, b) => (o(), i("div", {
|
|
660
|
-
class: x(["glass-panel relative transition-all duration-300 hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)]", [a.value, { "overflow-hidden": e.loading }]])
|
|
661
|
-
}, [
|
|
662
|
-
e.loading ? (o(), i("div", Re)) : w("", !0),
|
|
663
|
-
e.loading ? (o(), i("div", je)) : w("", !0),
|
|
664
|
-
e.title || l.$slots.header ? (o(), i("div", Ne, [
|
|
665
|
-
e.title ? (o(), i("h3", We, O(e.title), 1)) : w("", !0),
|
|
666
|
-
r("div", Fe, [
|
|
667
|
-
p(l.$slots, "header")
|
|
668
|
-
])
|
|
669
|
-
])) : w("", !0),
|
|
670
|
-
r("div", {
|
|
671
|
-
class: "max-w-full",
|
|
672
|
-
inert: e.disabled,
|
|
673
|
-
"aria-disabled": e.disabled || void 0
|
|
674
|
-
}, [
|
|
675
|
-
p(l.$slots, "default")
|
|
676
|
-
], 8, _e)
|
|
677
|
-
], 2));
|
|
678
|
-
}
|
|
679
|
-
}), qe = { class: "text-title-md uppercase font-bold flex-auto" }, Ke = { class: "px-4 pb-4 md:px-6" }, Ue = {
|
|
640
|
+
}), Re = { class: "text-title-md uppercase font-bold flex-auto" }, je = { class: "px-4 pb-4 md:px-6" }, Ne = {
|
|
680
641
|
key: 0,
|
|
681
642
|
class: "text-title-md uppercase font-bold"
|
|
682
|
-
},
|
|
643
|
+
}, et = /* @__PURE__ */ V({
|
|
683
644
|
__name: "VDialog",
|
|
684
645
|
props: {
|
|
685
646
|
title: {},
|
|
@@ -693,7 +654,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
693
654
|
},
|
|
694
655
|
emits: ["close", "click", "open"],
|
|
695
656
|
setup(e, { expose: a, emit: l }) {
|
|
696
|
-
const b = l, n = U(G), { show: t, onClose: s, onOpen:
|
|
657
|
+
const b = l, n = U(G), { show: t, onClose: s, onOpen: M } = K(b, e.timeout), y = {
|
|
697
658
|
sm: "max-w-full md:max-w-[330px] max-md:h-full",
|
|
698
659
|
md: "max-w-full md:max-w-[672px] max-md:h-full",
|
|
699
660
|
lg: "max-w-full md:max-w-[960px] max-md:h-full",
|
|
@@ -719,7 +680,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
719
680
|
"leave-active-class": "duration-200 ease-in",
|
|
720
681
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
721
682
|
"leave-to-class": "transform opacity-0 -translate-y-2",
|
|
722
|
-
onAfterEnter: c(
|
|
683
|
+
onAfterEnter: c(M)
|
|
723
684
|
}, {
|
|
724
685
|
default: z(() => [
|
|
725
686
|
c(t) ? (o(), i("div", {
|
|
@@ -746,7 +707,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
746
707
|
onTouchmove: d[2] || (d[2] = L(() => {
|
|
747
708
|
}, ["prevent"]))
|
|
748
709
|
}, [
|
|
749
|
-
r("h4",
|
|
710
|
+
r("h4", Re, O(e.title), 1),
|
|
750
711
|
p(C.$slots, "header-btn", { close: c(s) }),
|
|
751
712
|
S(Q, {
|
|
752
713
|
color: "transparent",
|
|
@@ -782,7 +743,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
782
743
|
p(C.$slots, "header-btn", { close: c(s) })
|
|
783
744
|
]),
|
|
784
745
|
default: z(({ close: h }) => [
|
|
785
|
-
r("div",
|
|
746
|
+
r("div", je, [
|
|
786
747
|
r("div", {
|
|
787
748
|
class: x(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
788
749
|
onWheel: d[5] || (d[5] = L(() => {
|
|
@@ -790,7 +751,7 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
790
751
|
onTouchmove: d[6] || (d[6] = L(() => {
|
|
791
752
|
}, ["prevent"]))
|
|
792
753
|
}, [
|
|
793
|
-
e.title ? (o(), i("h4",
|
|
754
|
+
e.title ? (o(), i("h4", Ne, O(e.title), 1)) : w("", !0)
|
|
794
755
|
], 34),
|
|
795
756
|
p(C.$slots, "default", { close: h })
|
|
796
757
|
])
|
|
@@ -799,17 +760,59 @@ const Le = F({ name: "ri-arrow-down-s-line", render: Be }), Se = ["width", "heig
|
|
|
799
760
|
}, 8, ["size", "onClose"]));
|
|
800
761
|
};
|
|
801
762
|
}
|
|
763
|
+
}), We = {
|
|
764
|
+
key: 0,
|
|
765
|
+
class: "loader-line w-full absolute top-0 left-0 h-[3px] bg-gray-100 dark:bg-white/5 before:bg-primary before:h-1 rounded-xl z-20 before:absolute before:w-[40%] before:-left-1/2 before:content-[''] before:animate-[lineAnim_1s_linear_infinite]"
|
|
766
|
+
}, Fe = {
|
|
767
|
+
key: 1,
|
|
768
|
+
class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-[#060b28]/75 z-10 opacity-50"
|
|
769
|
+
}, _e = {
|
|
770
|
+
key: 2,
|
|
771
|
+
class: "mb-4 flex items-center justify-between gap-3"
|
|
772
|
+
}, qe = {
|
|
773
|
+
key: 0,
|
|
774
|
+
class: "text-lg font-semibold text-gray-800 dark:text-white"
|
|
775
|
+
}, Ke = { class: "ml-auto" }, Ue = ["inert", "aria-disabled"], tt = /* @__PURE__ */ V({
|
|
776
|
+
__name: "CardMain",
|
|
777
|
+
props: {
|
|
778
|
+
title: { default: "" },
|
|
779
|
+
loading: { type: Boolean, default: !1 },
|
|
780
|
+
disabled: { type: Boolean, default: !1 },
|
|
781
|
+
padded: { type: Boolean, default: !0 }
|
|
782
|
+
},
|
|
783
|
+
setup(e) {
|
|
784
|
+
const a = g(() => e.padded ? "p-5 sm:p-6" : "");
|
|
785
|
+
return (l, b) => (o(), i("div", {
|
|
786
|
+
class: x(["glass-panel relative transition-all duration-300 hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_60px_-18px_rgba(40,183,240,0.25)]", [a.value, { "overflow-hidden": e.loading }]])
|
|
787
|
+
}, [
|
|
788
|
+
e.loading ? (o(), i("div", We)) : w("", !0),
|
|
789
|
+
e.loading ? (o(), i("div", Fe)) : w("", !0),
|
|
790
|
+
e.title || l.$slots.header ? (o(), i("div", _e, [
|
|
791
|
+
e.title ? (o(), i("h3", qe, O(e.title), 1)) : w("", !0),
|
|
792
|
+
r("div", Ke, [
|
|
793
|
+
p(l.$slots, "header")
|
|
794
|
+
])
|
|
795
|
+
])) : w("", !0),
|
|
796
|
+
r("div", {
|
|
797
|
+
class: "max-w-full",
|
|
798
|
+
inert: e.disabled,
|
|
799
|
+
"aria-disabled": e.disabled || void 0
|
|
800
|
+
}, [
|
|
801
|
+
p(l.$slots, "default")
|
|
802
|
+
], 8, Ue)
|
|
803
|
+
], 2));
|
|
804
|
+
}
|
|
802
805
|
});
|
|
803
806
|
export {
|
|
804
807
|
Qe as V,
|
|
805
|
-
|
|
808
|
+
et as _,
|
|
806
809
|
Xe as a,
|
|
807
|
-
|
|
810
|
+
tt as b,
|
|
808
811
|
xe as c,
|
|
809
812
|
Ye as d,
|
|
810
813
|
Ze as e,
|
|
811
814
|
Ie as f,
|
|
812
|
-
|
|
815
|
+
ke as g,
|
|
813
816
|
we as h,
|
|
814
817
|
ve as i,
|
|
815
818
|
Q as j,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
close: () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=BlockDataHelp.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockDataHelp.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockDataHelp.vue"],"names":[],"mappings":";;;;;AAmUA,wBAOG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBlockConfig, IBlockContext, IBlockDefinition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
definition: IBlockDefinition;
|
|
4
|
+
config: IBlockConfig;
|
|
5
|
+
context: IBlockContext;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
"update:config": (config: IBlockConfig) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
"onUpdate:config"?: ((config: IBlockConfig) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
fileInput: HTMLInputElement;
|
|
15
|
+
}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=BlockDataSettings.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockDataSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockDataSettings.vue"],"names":[],"mappings":"AA8iBA,OAAO,KAAK,EAAoB,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAiE,MAAM,SAAS,CAAC;AAiB9J,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;;;;;;;;;;AA0lCF,wBASG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IBlockField } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
field: IBlockField;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
formatValue?: string;
|
|
6
|
+
hasFormat?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
placeholderFormat?: string;
|
|
9
|
+
showReset?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
reset: () => any;
|
|
13
|
+
"update:modelValue": (value: string) => any;
|
|
14
|
+
"update:format": (value: string) => any;
|
|
15
|
+
pick: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onReset?: (() => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
|
+
"onUpdate:format"?: ((value: string) => any) | undefined;
|
|
20
|
+
onPick?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=BlockFieldCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockFieldCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockFieldCard.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;;;;;;;AAkOF,wBAQG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IBlockConfig, IBlockContext, IBlockDefinition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
definition: IBlockDefinition;
|
|
4
|
+
config: IBlockConfig;
|
|
5
|
+
context: IBlockContext;
|
|
6
|
+
removable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
remove: () => any;
|
|
10
|
+
"update:config": (config: IBlockConfig) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRemove?: (() => any) | undefined;
|
|
13
|
+
"onUpdate:config"?: ((config: IBlockConfig) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=BlockHost.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockHost.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockHost.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQ7E,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;;;AAqHF,wBAOG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBlockConfig } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
close: () => any;
|
|
4
|
+
import: (config: IBlockConfig) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
onClose?: (() => any) | undefined;
|
|
7
|
+
onImport?: ((config: IBlockConfig) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=BlockImport.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockImport.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockImport.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;;;;;;;;AAmL5C,wBAOG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IBlockMetric } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
metric: IBlockMetric;
|
|
4
|
+
index: number;
|
|
5
|
+
args: string[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
change: (patch: Partial<IBlockMetric>) => any;
|
|
9
|
+
dragend: () => any;
|
|
10
|
+
dragstart: (event: DragEvent, index: number) => any;
|
|
11
|
+
remove: () => any;
|
|
12
|
+
"open-style": () => any;
|
|
13
|
+
"toggle-field": (field: "value" | "format") => any;
|
|
14
|
+
hover: (event: string, index: number) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onChange?: ((patch: Partial<IBlockMetric>) => any) | undefined;
|
|
17
|
+
onDragend?: (() => any) | undefined;
|
|
18
|
+
onDragstart?: ((event: DragEvent, index: number) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
|
+
"onOpen-style"?: (() => any) | undefined;
|
|
21
|
+
"onToggle-field"?: ((field: "value" | "format") => any) | undefined;
|
|
22
|
+
onHover?: ((event: string, index: number) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=BlockMetricCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockMetricCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockMetricCard.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAS5C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;;;;;;;;;;;;;;;;;;AAwQF,wBAQG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IMetricStyle } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
style?: IMetricStyle;
|
|
5
|
+
preview?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
update: (style: IMetricStyle) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onUpdate?: ((style: IMetricStyle) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=BlockMetricStyleDialog.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockMetricStyleDialog.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockMetricStyleDialog.vue"],"names":[],"mappings":"AAAA,OAoGO,KAAK,EAAE,YAAY,EAAsD,MAAM,SAAS,CAAC;AAiBhG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;;;AA4OF,wBAQG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBlockDefinition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
definitions: IBlockDefinition[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
close: () => any;
|
|
7
|
+
select: (type: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onSelect?: ((type: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=BlockPicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockPicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockPicker.vue"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAKhD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACjC,CAAC;;;;;;;;AAiHF,wBAQG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBlockConfig, IBlockContext, IBlockDefinition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
definition: IBlockDefinition;
|
|
4
|
+
config: IBlockConfig;
|
|
5
|
+
context: IBlockContext;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
removable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:config": (config: IBlockConfig) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:config"?: ((config: IBlockConfig) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=BlockShell.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockShell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockShell.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQ7E,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;AAwGF,wBAOG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IBlockProvider } from './provider';
|
|
2
|
+
import { IBlockConfig, IBlockDefinition } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
definition: IBlockDefinition;
|
|
5
|
+
config: IBlockConfig;
|
|
6
|
+
provider: IBlockProvider;
|
|
7
|
+
source: unknown;
|
|
8
|
+
removable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
remove: () => any;
|
|
12
|
+
"update:config": (config: IBlockConfig) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onRemove?: (() => any) | undefined;
|
|
15
|
+
"onUpdate:config"?: ((config: IBlockConfig) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=BlockView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/BlockView.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAM9D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;;;AAiFF,wBAQG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBlockProvider } from './provider';
|
|
2
|
+
import { IBlockContext } from './types';
|
|
3
|
+
export declare const createBlockContext: (kind: IBlockContext["kind"], roots: Record<string, unknown>, helpers?: IBlockContext["helpers"], meta?: Record<string, unknown>) => IBlockContext;
|
|
4
|
+
/**
|
|
5
|
+
* vuesp device state: main from the WebSocket store.
|
|
6
|
+
* The same roots are used by the hub, so block configs can be shared.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createDeviceContext: (main: Record<string, unknown>) => IBlockContext;
|
|
9
|
+
export declare const deviceProvider: IBlockProvider;
|
|
10
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,kBAAkB,GAC7B,MAAM,aAAa,CAAC,MAAM,CAAC,EAC3B,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,UAAU,aAAa,CAAC,SAAS,CAAC,EAClC,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,aAMD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,aAgBnE,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAI5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBlockStorage } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Block settings stored on a vuesp device via the /fs endpoint.
|
|
4
|
+
* The compact format is designed for LittleFS: short keys and hard limits.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createDeviceBlockStorage: (filePath?: string) => IBlockStorage;
|
|
7
|
+
export declare const deviceBlockStorage: IBlockStorage;
|
|
8
|
+
//# sourceMappingURL=deviceStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceStorage.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/deviceStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgD,aAAa,EAAgB,MAAM,SAAS,CAAC;AAiPzG;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,iBAA4B,KAAG,aAoCvE,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAA6B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IMetricStyle, MetricAlign, MetricColor, MetricSize, MetricWeight } from './types';
|
|
2
|
+
export declare const DEFAULT_METRIC_STYLE: Required<IMetricStyle>;
|
|
3
|
+
export declare const METRIC_SIZE_CLASS: Record<MetricSize, string>;
|
|
4
|
+
export declare const METRIC_COLOR_CLASS: Record<MetricColor, string>;
|
|
5
|
+
export declare const METRIC_WEIGHT_CLASS: Record<MetricWeight, string>;
|
|
6
|
+
export declare const METRIC_ALIGN_CLASS: Record<MetricAlign, string>;
|
|
7
|
+
export declare const METRIC_SIZE_OPTIONS: Array<{
|
|
8
|
+
value: MetricSize;
|
|
9
|
+
name: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const METRIC_COLOR_OPTIONS: Array<{
|
|
12
|
+
value: MetricColor;
|
|
13
|
+
name: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const METRIC_WEIGHT_OPTIONS: Array<{
|
|
16
|
+
value: MetricWeight;
|
|
17
|
+
name: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const METRIC_ALIGN_OPTIONS: Array<{
|
|
20
|
+
value: MetricAlign;
|
|
21
|
+
name: string;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const metricClasses: (style?: IMetricStyle) => string;
|
|
24
|
+
//# sourceMappingURL=metricStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/metricStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhG,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,YAAY,CAKvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAMxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAO1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAI5D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAG1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM1E,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAO5E,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAI9E,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAG5E,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,YAAY,KAAG,MASpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/components/block/data/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAAC;CAC/C"}
|