@opengis/bi 1.2.25 → 1.2.26
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/bi.js +13 -12
- package/dist/bi.umd.cjs +49 -49
- package/dist/{import-file-CDgZ5DVo.js → import-file-CmkUI20t.js} +508 -516
- package/dist/{vs-funnel-bar-DqAvALNw.js → vs-funnel-bar-Bm8btLrA.js} +1 -1
- package/dist/{vs-list-BpJ1x8Jt.js → vs-list-CmnCSjGF.js} +1 -1
- package/dist/{vs-map-Bv1DE5Cy.js → vs-map-3A5t9VTQ.js} +2 -2
- package/dist/{vs-map-cluster-Bi6VgdLb.js → vs-map-cluster-DKZhfi6w.js} +2 -2
- package/dist/{vs-number-DcNzw794.js → vs-number-BM6bcbqf.js} +1 -1
- package/dist/{vs-table-BNtAxSD5.js → vs-table-CYix8IRT.js} +1 -1
- package/dist/{vs-text-BrR4ghm-.js → vs-text-gU23_bK6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var P = (s, e, t) =>
|
|
4
|
-
import { h as
|
|
1
|
+
var ds = Object.defineProperty;
|
|
2
|
+
var us = (s, e, t) => e in s ? ds(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var P = (s, e, t) => us(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { h as Ke, defineComponent as ge, ref as I, computed as F, onUnmounted as Ue, createElementBlock as y, openBlock as p, Fragment as U, createElementVNode as h, createCommentVNode as A, createTextVNode as X, toDisplayString as W, renderList as Z, mergeModels as Be, useModel as Ut, withDirectives as Gt, normalizeClass as ee, vModelCheckbox as hs, defineAsyncComponent as M, onMounted as le, watch as te, normalizeStyle as Ge, createBlock as N, createVNode as T, unref as E, resolveDynamicComponent as Ht, createStaticVNode as ps, mergeProps as he, resolveComponent as J, withCtx as j, Teleport as fs, Transition as gs, withModifiers as ms, renderSlot as St, getCurrentInstance as me, onErrorCaptured as bs, inject as Zt, vModelText as xs, provide as Qe, readonly as ys } from "vue";
|
|
5
|
+
import { useRouter as we, useRoute as ws } from "vue-router";
|
|
5
6
|
/**
|
|
6
7
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
7
8
|
*
|
|
@@ -20,7 +21,7 @@ const vs = (s) => {
|
|
|
20
21
|
* This source code is licensed under the ISC license.
|
|
21
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
23
|
*/
|
|
23
|
-
const
|
|
24
|
+
const Rt = (s) => s === "";
|
|
24
25
|
/**
|
|
25
26
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
26
27
|
*
|
|
@@ -88,7 +89,7 @@ const Ds = ({
|
|
|
88
89
|
size: n = ze.width,
|
|
89
90
|
color: o = ze.stroke,
|
|
90
91
|
...l
|
|
91
|
-
}, { slots: c }) =>
|
|
92
|
+
}, { slots: c }) => Ke(
|
|
92
93
|
"svg",
|
|
93
94
|
{
|
|
94
95
|
...ze,
|
|
@@ -96,7 +97,7 @@ const Ds = ({
|
|
|
96
97
|
width: n,
|
|
97
98
|
height: n,
|
|
98
99
|
stroke: o,
|
|
99
|
-
"stroke-width":
|
|
100
|
+
"stroke-width": Rt(t) || Rt(a) || t === !0 || a === !0 ? Number(r || i || ze["stroke-width"]) * 24 / Number(n) : r || i || ze["stroke-width"],
|
|
100
101
|
class: ks(
|
|
101
102
|
"lucide",
|
|
102
103
|
l.class,
|
|
@@ -104,7 +105,7 @@ const Ds = ({
|
|
|
104
105
|
),
|
|
105
106
|
...!c.default && !vs(l) && { "aria-hidden": "true" }
|
|
106
107
|
},
|
|
107
|
-
[...e.map((u) =>
|
|
108
|
+
[...e.map((u) => Ke(...u)), ...c.default ? [c.default()] : []]
|
|
108
109
|
);
|
|
109
110
|
/**
|
|
110
111
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
@@ -112,7 +113,7 @@ const Ds = ({
|
|
|
112
113
|
* This source code is licensed under the ISC license.
|
|
113
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
115
|
*/
|
|
115
|
-
const se = (s, e) => (t, { slots: a, attrs: r }) =>
|
|
116
|
+
const se = (s, e) => (t, { slots: a, attrs: r }) => Ke(
|
|
116
117
|
Ds,
|
|
117
118
|
{
|
|
118
119
|
...r,
|
|
@@ -198,7 +199,7 @@ const Rs = se("layout-grid", [
|
|
|
198
199
|
* This source code is licensed under the ISC license.
|
|
199
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
200
201
|
*/
|
|
201
|
-
const
|
|
202
|
+
const Ls = se("pencil", [
|
|
202
203
|
[
|
|
203
204
|
"path",
|
|
204
205
|
{
|
|
@@ -224,7 +225,7 @@ const Qt = se("plus", [
|
|
|
224
225
|
* This source code is licensed under the ISC license.
|
|
225
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
227
|
*/
|
|
227
|
-
const
|
|
228
|
+
const Vs = se("save", [
|
|
228
229
|
[
|
|
229
230
|
"path",
|
|
230
231
|
{
|
|
@@ -241,7 +242,7 @@ const Ls = se("save", [
|
|
|
241
242
|
* This source code is licensed under the ISC license.
|
|
242
243
|
* See the LICENSE file in the root directory of this source tree.
|
|
243
244
|
*/
|
|
244
|
-
const
|
|
245
|
+
const Vt = se("search", [
|
|
245
246
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
246
247
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
247
248
|
]);
|
|
@@ -282,7 +283,7 @@ const Ns = se("trash-2", [
|
|
|
282
283
|
const Es = se("x", [
|
|
283
284
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
284
285
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
285
|
-
]),
|
|
286
|
+
]), Xe = {
|
|
286
287
|
week: "Тиждень",
|
|
287
288
|
month: "Місяць",
|
|
288
289
|
quarter: "Квартал",
|
|
@@ -313,7 +314,7 @@ const Es = se("x", [
|
|
|
313
314
|
r.value = !r.value, r.value ? setTimeout(() => {
|
|
314
315
|
document.addEventListener("click", u);
|
|
315
316
|
}, 200) : document.removeEventListener("click", u);
|
|
316
|
-
}, v = (g) => (
|
|
317
|
+
}, v = (g) => (Xe == null ? void 0 : Xe[g]) ?? g;
|
|
317
318
|
return Ue(() => {
|
|
318
319
|
document.removeEventListener("click", u);
|
|
319
320
|
}), (g, b) => (p(), y(U, null, [
|
|
@@ -393,7 +394,7 @@ const Es = se("x", [
|
|
|
393
394
|
}),
|
|
394
395
|
emits: /* @__PURE__ */ Be(["update:is-enabled"], ["update:modelValue"]),
|
|
395
396
|
setup(s, { emit: e }) {
|
|
396
|
-
const t = e, a =
|
|
397
|
+
const t = e, a = Ut(s, "modelValue"), r = () => {
|
|
397
398
|
t("update:is-enabled", a);
|
|
398
399
|
};
|
|
399
400
|
return (i, n) => (p(), y("div", As, [
|
|
@@ -401,13 +402,13 @@ const Es = se("x", [
|
|
|
401
402
|
key: 0,
|
|
402
403
|
class: ee(["transition-colors", { "text-blue-500": !a.value }])
|
|
403
404
|
}, W(s.leftLabel), 3)) : A("", !0),
|
|
404
|
-
|
|
405
|
+
Gt(h("input", {
|
|
405
406
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => a.value = o),
|
|
406
407
|
type: "checkbox",
|
|
407
408
|
class: "relative w-11 h-6 p-px bg-gray-100 border-transparent text-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-blue-600 disabled:opacity-50 disabled:pointer-events-none checked:bg-none checked:text-blue-600 checked:border-blue-600 focus:checked:border-blue-600 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-600 before:inline-block before:size-5 before:bg-white checked:before:bg-blue-200 before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:h-5 before:w-5 before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-blue-200",
|
|
408
409
|
onChange: r
|
|
409
410
|
}, null, 544), [
|
|
410
|
-
[
|
|
411
|
+
[hs, a.value]
|
|
411
412
|
]),
|
|
412
413
|
s.rightLabel ? (p(), y("div", {
|
|
413
414
|
key: 1,
|
|
@@ -428,24 +429,24 @@ function Us(s, e) {
|
|
|
428
429
|
], -1)
|
|
429
430
|
])]);
|
|
430
431
|
}
|
|
431
|
-
const Gs = /* @__PURE__ */ Q(qs, [["render", Us]]),
|
|
432
|
-
"bi-bar": M(() => Promise.resolve().then(() =>
|
|
433
|
-
"bi-number": M(() => import("./vs-number-
|
|
434
|
-
"bi-text": M(() => import("./vs-text-
|
|
435
|
-
"bi-listbar": M(() => Promise.resolve().then(() =>
|
|
436
|
-
"bi-pie": M(() => Promise.resolve().then(() =>
|
|
437
|
-
"bi-donut": M(() => Promise.resolve().then(() =>
|
|
438
|
-
"bi-line": M(() => Promise.resolve().then(() =>
|
|
439
|
-
"bi-stat": M(() => Promise.resolve().then(() =>
|
|
440
|
-
"bi-pivot": M(() => Promise.resolve().then(() =>
|
|
441
|
-
"bi-progress": M(() => Promise.resolve().then(() =>
|
|
442
|
-
"bi-funnel": M(() => import("./vs-funnel-bar-
|
|
443
|
-
"bi-map": M(() => import("./vs-map-
|
|
444
|
-
"bi-cluster": M(() => import("./vs-map-cluster-
|
|
445
|
-
"bi-table": M(() => import("./vs-table-
|
|
432
|
+
const Gs = /* @__PURE__ */ Q(qs, [["render", Us]]), Wt = {
|
|
433
|
+
"bi-bar": M(() => Promise.resolve().then(() => Jn)),
|
|
434
|
+
"bi-number": M(() => import("./vs-number-BM6bcbqf.js")),
|
|
435
|
+
"bi-text": M(() => import("./vs-text-gU23_bK6.js")),
|
|
436
|
+
"bi-listbar": M(() => Promise.resolve().then(() => Yi)),
|
|
437
|
+
"bi-pie": M(() => Promise.resolve().then(() => li)),
|
|
438
|
+
"bi-donut": M(() => Promise.resolve().then(() => ai)),
|
|
439
|
+
"bi-line": M(() => Promise.resolve().then(() => pi)),
|
|
440
|
+
"bi-stat": M(() => Promise.resolve().then(() => Ii)),
|
|
441
|
+
"bi-pivot": M(() => Promise.resolve().then(() => go)),
|
|
442
|
+
"bi-progress": M(() => Promise.resolve().then(() => Fi)),
|
|
443
|
+
"bi-funnel": M(() => import("./vs-funnel-bar-Bm8btLrA.js")),
|
|
444
|
+
"bi-map": M(() => import("./vs-map-3A5t9VTQ.js")),
|
|
445
|
+
"bi-cluster": M(() => import("./vs-map-cluster-DKZhfi6w.js")),
|
|
446
|
+
"bi-table": M(() => import("./vs-table-CYix8IRT.js"))
|
|
446
447
|
};
|
|
447
448
|
let Xt = "/api";
|
|
448
|
-
function
|
|
449
|
+
function He(s) {
|
|
449
450
|
Xt = s || "/api";
|
|
450
451
|
}
|
|
451
452
|
function Hs(s, e) {
|
|
@@ -492,7 +493,7 @@ const H = {
|
|
|
492
493
|
}, Zs = {
|
|
493
494
|
key: 0,
|
|
494
495
|
class: "text-[16px] flex max-w-full items-center min-h-0 justify-between h-fit shrink-0"
|
|
495
|
-
}, Qs = { class: "flex items-center justify-between w-full gap-2" }, Xs = { class: "flex items-center gap-2 min-w-0" },
|
|
496
|
+
}, Qs = { class: "flex items-center justify-between w-full gap-2" }, Xs = { class: "flex items-center gap-2 min-w-0" }, Ys = { class: "text-gray-800 inline-block line-clamp-1 font-semibold" }, Js = { class: "flex flex-col justify-end" }, Ks = {
|
|
496
497
|
key: 0,
|
|
497
498
|
class: "flex items-center justify-end w-full gap-2"
|
|
498
499
|
}, ea = { class: "w-full h-full" }, Oe = /* @__PURE__ */ ge({
|
|
@@ -529,7 +530,7 @@ const H = {
|
|
|
529
530
|
}));
|
|
530
531
|
}), g = F(() => {
|
|
531
532
|
const w = u.value ? `bi-${u.value}` : "";
|
|
532
|
-
return w && w in
|
|
533
|
+
return w && w in Wt ? Wt[w] : null;
|
|
533
534
|
});
|
|
534
535
|
function b(w, d) {
|
|
535
536
|
var x, _;
|
|
@@ -546,7 +547,7 @@ const H = {
|
|
|
546
547
|
w += `&${_.name}=${_.option}`;
|
|
547
548
|
}), (x = (d = i.value) == null ? void 0 : d.getDataFromURL) == null || x.call(d, w);
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
+
function L() {
|
|
550
551
|
const w = n.value;
|
|
551
552
|
if (w != null && w.getDataURL) {
|
|
552
553
|
const d = w.getDataURL({
|
|
@@ -558,7 +559,7 @@ const H = {
|
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
561
|
return le(() => {
|
|
561
|
-
t.prefix &&
|
|
562
|
+
t.prefix && He(t.prefix);
|
|
562
563
|
}), te(
|
|
563
564
|
() => t.filterURl,
|
|
564
565
|
(w) => {
|
|
@@ -588,10 +589,10 @@ const H = {
|
|
|
588
589
|
["text", "cluster", "map"].includes(u.value) ? A("", !0) : (p(), y("div", Zs, [
|
|
589
590
|
h("div", Qs, [
|
|
590
591
|
h("div", Xs, [
|
|
591
|
-
h("span",
|
|
592
|
+
h("span", Ys, W(c.value), 1)
|
|
592
593
|
]),
|
|
593
|
-
h("div",
|
|
594
|
-
(x = v.value) != null && x.length ? (p(), y("span",
|
|
594
|
+
h("div", Js, [
|
|
595
|
+
(x = v.value) != null && x.length ? (p(), y("span", Ks, [
|
|
595
596
|
(p(!0), y(U, null, Z((_ = v.value) == null ? void 0 : _.filter(
|
|
596
597
|
(m) => (m == null ? void 0 : m.options) && (m == null ? void 0 : m.name) !== "export"
|
|
597
598
|
), (m) => {
|
|
@@ -617,7 +618,7 @@ const H = {
|
|
|
617
618
|
key: 0,
|
|
618
619
|
type: "button",
|
|
619
620
|
class: "h-[32px] w-[32px] rounded-lg hover:bg-gray-100 duration-100 flex items-center justify-center",
|
|
620
|
-
onClick:
|
|
621
|
+
onClick: L
|
|
621
622
|
}, [
|
|
622
623
|
T(E(zs), {
|
|
623
624
|
size: 16,
|
|
@@ -629,7 +630,7 @@ const H = {
|
|
|
629
630
|
])
|
|
630
631
|
])),
|
|
631
632
|
h("div", ea, [
|
|
632
|
-
g.value ? (p(), N(
|
|
633
|
+
g.value ? (p(), N(Ht(g.value), {
|
|
633
634
|
key: 0,
|
|
634
635
|
ref_key: "chartRef",
|
|
635
636
|
ref: i,
|
|
@@ -659,7 +660,7 @@ const H = {
|
|
|
659
660
|
return (e, t) => (p(), y("div", ta, [
|
|
660
661
|
h("div", null, [
|
|
661
662
|
h("div", sa, [
|
|
662
|
-
t[0] || (t[0] =
|
|
663
|
+
t[0] || (t[0] = ps('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
|
|
663
664
|
h("div", aa, [
|
|
664
665
|
h("p", ra, W(s.title), 1),
|
|
665
666
|
h("p", na, W(s.text), 1)
|
|
@@ -685,7 +686,7 @@ const H = {
|
|
|
685
686
|
title: "Фільтри вимкнено (v3-filter видалено)"
|
|
686
687
|
};
|
|
687
688
|
function da(s, e, t, a, r, i) {
|
|
688
|
-
const n =
|
|
689
|
+
const n = J("filterIcon");
|
|
689
690
|
return p(), y("div", la, [
|
|
690
691
|
t.filterScheme ? (p(), y("button", ca, [
|
|
691
692
|
T(n),
|
|
@@ -708,7 +709,7 @@ const ua = /* @__PURE__ */ Q(oa, [["render", da]]), ha = {
|
|
|
708
709
|
};
|
|
709
710
|
function xa(s, e, t, a, r, i) {
|
|
710
711
|
var o, l, c;
|
|
711
|
-
const n =
|
|
712
|
+
const n = J("VsFilterHeader");
|
|
712
713
|
return p(), y("div", pa, [
|
|
713
714
|
h("div", fa, [
|
|
714
715
|
h("h1", ga, W((o = t.dashboardData) == null ? void 0 : o.title), 1),
|
|
@@ -722,19 +723,10 @@ function xa(s, e, t, a, r, i) {
|
|
|
722
723
|
])) : A("", !0)
|
|
723
724
|
]);
|
|
724
725
|
}
|
|
725
|
-
const ya = /* @__PURE__ */ Q(ha, [["render", xa]])
|
|
726
|
-
var Kt = {};
|
|
727
|
-
const wa = Symbol(Kt.NODE_ENV !== "production" ? "router" : ""), va = Symbol(Kt.NODE_ENV !== "production" ? "route location" : "");
|
|
728
|
-
function we() {
|
|
729
|
-
return He(wa);
|
|
730
|
-
}
|
|
731
|
-
function ka(s) {
|
|
732
|
-
return He(va);
|
|
733
|
-
}
|
|
734
|
-
const $a = {
|
|
726
|
+
const ya = /* @__PURE__ */ Q(ha, [["render", xa]]), wa = {
|
|
735
727
|
key: 0,
|
|
736
728
|
class: "text-gray-400 shrink-0"
|
|
737
|
-
},
|
|
729
|
+
}, va = ["onClick"], ka = ["onClick"], $a = {
|
|
738
730
|
key: 4,
|
|
739
731
|
class: "text-gray-900 font-medium truncate"
|
|
740
732
|
}, Yt = {
|
|
@@ -753,20 +745,20 @@ const $a = {
|
|
|
753
745
|
t != null && t.push ? t.push(i) : typeof i == "string" && (window != null && window.location) && (window.location.href = i);
|
|
754
746
|
}
|
|
755
747
|
return (i, n) => {
|
|
756
|
-
const o =
|
|
748
|
+
const o = J("router-link");
|
|
757
749
|
return p(), y("nav", {
|
|
758
750
|
class: ee(["flex items-center gap-2 text-sm text-gray-600", s.compact ? "py-1" : "py-6"]),
|
|
759
751
|
"aria-label": "Breadcrumb"
|
|
760
752
|
}, [
|
|
761
753
|
(p(!0), y(U, null, Z(a.value, (l, c) => (p(), y(U, { key: c }, [
|
|
762
|
-
c > 0 ? (p(), y("span",
|
|
754
|
+
c > 0 ? (p(), y("span", wa, [
|
|
763
755
|
T(E(Cs), { class: "w-4 h-4" })
|
|
764
756
|
])) : A("", !0),
|
|
765
757
|
typeof l.onClick == "function" ? (p(), y("span", {
|
|
766
758
|
key: 1,
|
|
767
759
|
class: "hover:text-gray-900 transition-colors cursor-pointer",
|
|
768
760
|
onClick: (u) => l.onClick()
|
|
769
|
-
}, W(l.label), 9,
|
|
761
|
+
}, W(l.label), 9, va)) : E(t) && l.to ? (p(), N(o, {
|
|
770
762
|
key: 2,
|
|
771
763
|
to: l.to,
|
|
772
764
|
class: "hover:text-gray-900 transition-colors"
|
|
@@ -779,12 +771,12 @@ const $a = {
|
|
|
779
771
|
key: 3,
|
|
780
772
|
class: "hover:text-gray-900 transition-colors cursor-pointer",
|
|
781
773
|
onClick: (u) => r(l.to)
|
|
782
|
-
}, W(l.label), 9,
|
|
774
|
+
}, W(l.label), 9, ka)) : (p(), y("span", $a, W(l.label), 1))
|
|
783
775
|
], 64))), 128))
|
|
784
776
|
], 2);
|
|
785
777
|
};
|
|
786
778
|
}
|
|
787
|
-
},
|
|
779
|
+
}, _a = {
|
|
788
780
|
components: { VsWidget: Oe, VsNewNodata: Pe, VsHeader: ya, VsBreadcrumbs: Yt },
|
|
789
781
|
props: ["id", "prefix"],
|
|
790
782
|
data() {
|
|
@@ -798,7 +790,7 @@ const $a = {
|
|
|
798
790
|
};
|
|
799
791
|
},
|
|
800
792
|
async mounted() {
|
|
801
|
-
|
|
793
|
+
He(this.prefix || "/api"), await this.fetchData();
|
|
802
794
|
},
|
|
803
795
|
methods: {
|
|
804
796
|
async fetchData() {
|
|
@@ -833,12 +825,12 @@ const $a = {
|
|
|
833
825
|
}), this.filterURl += e);
|
|
834
826
|
}
|
|
835
827
|
}
|
|
836
|
-
},
|
|
837
|
-
function
|
|
828
|
+
}, Da = { class: "w-full pb-8 overflow-y-auto mx-auto" }, Ca = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
|
|
829
|
+
function za(s, e, t, a, r, i) {
|
|
838
830
|
var l;
|
|
839
|
-
const n =
|
|
840
|
-
return p(), y("div",
|
|
841
|
-
h("div",
|
|
831
|
+
const n = J("VsNewNodata"), o = J("VsWidget");
|
|
832
|
+
return p(), y("div", Da, [
|
|
833
|
+
h("div", Ca, [
|
|
842
834
|
r.error || !r.dashboardData ? (p(), N(n, {
|
|
843
835
|
key: 0,
|
|
844
836
|
class: "col-span-12"
|
|
@@ -868,21 +860,21 @@ function Sa(s, e, t, a, r, i) {
|
|
|
868
860
|
])
|
|
869
861
|
]);
|
|
870
862
|
}
|
|
871
|
-
const
|
|
872
|
-
var
|
|
863
|
+
const yo = /* @__PURE__ */ Q(_a, [["render", za]]);
|
|
864
|
+
var Ta = /* @__PURE__ */ ((s) => (s.Dashboard = "/dashboard", s.BiPlatform = "/bi-platform", s.EditorBase = "/editor", s.AllDashboards = "/dashboards", s.DashboardByName = "/dashboards/:name", s))(Ta || {}), Nt;
|
|
873
865
|
((s) => {
|
|
874
866
|
((e) => {
|
|
875
867
|
e.Bar = "bar", e.ListBar = "listbar", e.Number = "number", e.Text = "text", e.Pie = "pie", e.Heatmap = "heatmap", e.Calendar = "calendar", e.Line = "line", e.Stat = "stat", e.Pivot = "pivot", e.Funnel = "funnel", e.Progress = "progress";
|
|
876
868
|
})(s.Types || (s.Types = {}));
|
|
877
|
-
})(
|
|
878
|
-
var
|
|
879
|
-
const
|
|
869
|
+
})(Nt || (Nt = {}));
|
|
870
|
+
var Y = /* @__PURE__ */ ((s) => (s.AllDashboards = "all-dashboards", s.BiPlatform = "bi-platform", s.Dashboard = "dashboard", s.Erobota = "erobota", s.Datatest = "datatest", s.Sourcedate = "sourcedate", s.Widgetwidget = "widgetwidget", s.Test = "test", s.Demo = "demo", s.Crm = "crm", s.Editor = "editor", s.EditorDashboard = "editor-dashboard", s.EditorWidget = "editor-widget", s.Editordetails = "editordetails", s.Dbtables = "dbtables", s.Biviewer = "biviewer", s.Biviewerinner = "biviewerinner", s.Bieditor = "bieditor", s.Bieditorinner = "bieditorinner", s))(Y || {});
|
|
871
|
+
const Ia = {
|
|
880
872
|
key: 0,
|
|
881
873
|
class: "vs-modal-wrapper fixed inset-0 flex items-center justify-center p-4"
|
|
882
|
-
},
|
|
874
|
+
}, Sa = { class: "flex items-center justify-between shrink-0 py-2.5 px-4 border-b border-gray-200 dark:border-[#454545]" }, Ra = { class: "font-medium text-gray-800 dark:text-white" }, La = { class: "vs-modal-content flex-1 min-h-0 overflow-auto p-4" }, Va = {
|
|
883
875
|
key: 0,
|
|
884
876
|
class: "shrink-0 border-t border-gray-200 dark:border-neutral-700"
|
|
885
|
-
},
|
|
877
|
+
}, Wa = {
|
|
886
878
|
__name: "vs-modal",
|
|
887
879
|
props: {
|
|
888
880
|
visible: { type: Boolean, default: !1 },
|
|
@@ -904,14 +896,14 @@ const Va = {
|
|
|
904
896
|
window.addEventListener("keydown", n);
|
|
905
897
|
}), Ue(() => {
|
|
906
898
|
window.removeEventListener("keydown", n);
|
|
907
|
-
}), (o, l) => (p(), N(
|
|
908
|
-
s.visible ? (p(), y("div",
|
|
899
|
+
}), (o, l) => (p(), N(fs, { to: s.teleport }, [
|
|
900
|
+
s.visible ? (p(), y("div", Ia, [
|
|
909
901
|
h("div", {
|
|
910
902
|
class: "absolute inset-0 bg-black/50",
|
|
911
903
|
"aria-hidden": "true",
|
|
912
904
|
onMousedown: l[0] || (l[0] = (c) => s.closeClickBack && c.target === c.currentTarget && i())
|
|
913
905
|
}, null, 32),
|
|
914
|
-
T(
|
|
906
|
+
T(gs, {
|
|
915
907
|
name: "vs-modal",
|
|
916
908
|
appear: ""
|
|
917
909
|
}, {
|
|
@@ -921,11 +913,11 @@ const Va = {
|
|
|
921
913
|
class: ee(["vs-modal-panel relative flex flex-col bg-white dark:bg-[#1A1A1A] rounded-xl shadow-xl max-h-[85vh] min-w-0 border border-gray-200 dark:border-[#454545]", r.value]),
|
|
922
914
|
role: "dialog",
|
|
923
915
|
"aria-modal": "true",
|
|
924
|
-
onMousedown: l[1] || (l[1] =
|
|
916
|
+
onMousedown: l[1] || (l[1] = ms(() => {
|
|
925
917
|
}, ["stop"]))
|
|
926
918
|
}, [
|
|
927
|
-
h("div",
|
|
928
|
-
h("h3",
|
|
919
|
+
h("div", Sa, [
|
|
920
|
+
h("h3", Ra, W(s.title), 1),
|
|
929
921
|
h("button", {
|
|
930
922
|
type: "button",
|
|
931
923
|
class: "size-8 inline-flex justify-center items-center rounded-full bg-gray-100 text-gray-800 hover:bg-gray-200 dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-300",
|
|
@@ -948,11 +940,11 @@ const Va = {
|
|
|
948
940
|
], -1)
|
|
949
941
|
])])
|
|
950
942
|
]),
|
|
951
|
-
h("div",
|
|
952
|
-
|
|
943
|
+
h("div", La, [
|
|
944
|
+
St(o.$slots, "default", {}, void 0, !0)
|
|
953
945
|
]),
|
|
954
|
-
o.$slots.footer ? (p(), y("div",
|
|
955
|
-
|
|
946
|
+
o.$slots.footer ? (p(), y("div", Va, [
|
|
947
|
+
St(o.$slots, "footer", {}, void 0, !0)
|
|
956
948
|
])) : A("", !0)
|
|
957
949
|
], 34)) : A("", !0)
|
|
958
950
|
]),
|
|
@@ -961,12 +953,12 @@ const Va = {
|
|
|
961
953
|
])) : A("", !0)
|
|
962
954
|
], 8, ["to"]));
|
|
963
955
|
}
|
|
964
|
-
},
|
|
956
|
+
}, Le = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-5722a50f"]]), Na = {
|
|
965
957
|
__name: "icon-plus",
|
|
966
958
|
setup(s) {
|
|
967
959
|
return (e, t) => (p(), N(E(Qt), he(e.$attrs, { size: 24 }), null, 16));
|
|
968
960
|
}
|
|
969
|
-
},
|
|
961
|
+
}, Ea = { class: "mb-4 overflow-auto scrollbar max-h-96" }, ja = {
|
|
970
962
|
__name: "vs-editor-create-widget",
|
|
971
963
|
props: {
|
|
972
964
|
columns: {
|
|
@@ -1001,15 +993,15 @@ const Va = {
|
|
|
1001
993
|
message: "Віджет успішно створено"
|
|
1002
994
|
}), await i("update-data"), l.value = {}, o.value = !1;
|
|
1003
995
|
} catch ($) {
|
|
1004
|
-
const
|
|
996
|
+
const L = ($ == null ? void 0 : $.message) || "При спробі створити віджет сталася помилка. Перевірте обов'язкові поля (зокрема Type).";
|
|
1005
997
|
r == null || r({
|
|
1006
998
|
type: "error",
|
|
1007
999
|
title: "Помилка!",
|
|
1008
|
-
message:
|
|
1000
|
+
message: L
|
|
1009
1001
|
});
|
|
1010
1002
|
}
|
|
1011
1003
|
}, g = F(() => {
|
|
1012
|
-
var k, $,
|
|
1004
|
+
var k, $, L, w;
|
|
1013
1005
|
return {
|
|
1014
1006
|
title: {
|
|
1015
1007
|
type: "text",
|
|
@@ -1039,7 +1031,7 @@ const Va = {
|
|
|
1039
1031
|
style: { size: "xs" },
|
|
1040
1032
|
options: [
|
|
1041
1033
|
{ id: "count", label: "count" },
|
|
1042
|
-
...(w = (
|
|
1034
|
+
...(w = (L = n.columns) == null ? void 0 : L.filter((d) => (d == null ? void 0 : d.type) === "numeric" || (d == null ? void 0 : d.type) === "double precision")) == null ? void 0 : w.map(({ name: d, type: x }) => ({
|
|
1043
1035
|
id: d,
|
|
1044
1036
|
text: d,
|
|
1045
1037
|
type: x
|
|
@@ -1149,9 +1141,9 @@ const Va = {
|
|
|
1149
1141
|
};
|
|
1150
1142
|
});
|
|
1151
1143
|
return (k, $) => {
|
|
1152
|
-
const
|
|
1144
|
+
const L = J("VsPopover");
|
|
1153
1145
|
return p(), y("div", null, [
|
|
1154
|
-
s.inline ? A("", !0) : (p(), N(
|
|
1146
|
+
s.inline ? A("", !0) : (p(), N(L, {
|
|
1155
1147
|
key: 0,
|
|
1156
1148
|
placement: "right",
|
|
1157
1149
|
trigger: "hover"
|
|
@@ -1162,7 +1154,7 @@ const Va = {
|
|
|
1162
1154
|
class: "z-50 flex items-center justify-center h-[50px] !w-[50px] text-2xl text-white transition-colors bg-blue-500 rounded-full cursor-pointer hover:bg-blue-700",
|
|
1163
1155
|
onClick: u
|
|
1164
1156
|
}, [
|
|
1165
|
-
T(
|
|
1157
|
+
T(Na, {
|
|
1166
1158
|
height: "20",
|
|
1167
1159
|
width: "20"
|
|
1168
1160
|
})
|
|
@@ -1174,7 +1166,7 @@ const Va = {
|
|
|
1174
1166
|
]),
|
|
1175
1167
|
_: 1
|
|
1176
1168
|
})),
|
|
1177
|
-
T(
|
|
1169
|
+
T(Le, {
|
|
1178
1170
|
teleport: "#modal",
|
|
1179
1171
|
visible: o.value,
|
|
1180
1172
|
title: "Створити віджет",
|
|
@@ -1194,7 +1186,7 @@ const Va = {
|
|
|
1194
1186
|
])
|
|
1195
1187
|
]),
|
|
1196
1188
|
default: j(() => [
|
|
1197
|
-
h("div",
|
|
1189
|
+
h("div", Ea, [
|
|
1198
1190
|
T(E(a), {
|
|
1199
1191
|
ref_key: "form",
|
|
1200
1192
|
ref: c,
|
|
@@ -1214,12 +1206,12 @@ const Va = {
|
|
|
1214
1206
|
setup(s) {
|
|
1215
1207
|
return (e, t) => (p(), N(E(Ns), he(e.$attrs, { size: 24 }), null, 16));
|
|
1216
1208
|
}
|
|
1217
|
-
},
|
|
1209
|
+
}, Kt = {
|
|
1218
1210
|
__name: "edit",
|
|
1219
1211
|
setup(s) {
|
|
1220
|
-
return (e, t) => (p(), N(E(
|
|
1212
|
+
return (e, t) => (p(), N(E(Ls), he(e.$attrs, { size: 24 }), null, 16));
|
|
1221
1213
|
}
|
|
1222
|
-
},
|
|
1214
|
+
}, Ba = { class: "space-y-4" }, Oa = {
|
|
1223
1215
|
__name: "vs-editor-form-style",
|
|
1224
1216
|
props: {
|
|
1225
1217
|
widgetName: { type: String },
|
|
@@ -1283,7 +1275,7 @@ const Va = {
|
|
|
1283
1275
|
}
|
|
1284
1276
|
}, k = (C = n.data) == null ? void 0 : C.style, $ = I(
|
|
1285
1277
|
k != null && k.label ? { ...k.label } : { show: f.label }
|
|
1286
|
-
),
|
|
1278
|
+
), L = I(
|
|
1287
1279
|
k != null && k.legend ? { ...k.legend } : { show: f.legend }
|
|
1288
1280
|
), w = I(
|
|
1289
1281
|
k != null && k.tooltip ? { ...k.tooltip } : { show: f.tooltip }
|
|
@@ -1291,19 +1283,19 @@ const Va = {
|
|
|
1291
1283
|
const z = new CustomEvent(`update-style-${n.widgetName}`);
|
|
1292
1284
|
z.chartId = n.widgetName, z.options = {
|
|
1293
1285
|
options: {
|
|
1294
|
-
legend:
|
|
1286
|
+
legend: L.value,
|
|
1295
1287
|
tooltip: w.value,
|
|
1296
1288
|
label: $.value
|
|
1297
1289
|
},
|
|
1298
1290
|
seriesOptions: $.value
|
|
1299
1291
|
}, window.dispatchEvent(z);
|
|
1300
1292
|
};
|
|
1301
|
-
te($, d, { deep: !0 }), te(
|
|
1293
|
+
te($, d, { deep: !0 }), te(L, d, { deep: !0 }), te(w, d, { deep: !0 });
|
|
1302
1294
|
const x = async () => {
|
|
1303
1295
|
try {
|
|
1304
1296
|
await H.put(`/bi-dashboard/${l.value}/${n.widgetName}`, {
|
|
1305
1297
|
style: {
|
|
1306
|
-
legend:
|
|
1298
|
+
legend: L.value,
|
|
1307
1299
|
tooltip: w.value,
|
|
1308
1300
|
label: $.value
|
|
1309
1301
|
}
|
|
@@ -1311,7 +1303,7 @@ const Va = {
|
|
|
1311
1303
|
const z = new CustomEvent(`update-style-${n.widgetName}`);
|
|
1312
1304
|
z.chartId = n.widgetName, z.options = {
|
|
1313
1305
|
options: {
|
|
1314
|
-
legend:
|
|
1306
|
+
legend: L.value,
|
|
1315
1307
|
tooltip: w.value,
|
|
1316
1308
|
label: $.value
|
|
1317
1309
|
},
|
|
@@ -1332,7 +1324,7 @@ const Va = {
|
|
|
1332
1324
|
return le(() => {
|
|
1333
1325
|
const z = new URLSearchParams(window.top.location.search);
|
|
1334
1326
|
o.value = z.get("dashboard"), d();
|
|
1335
|
-
}), e({ requestUpdateWidget: x }), (z, R) => (p(), y("div",
|
|
1327
|
+
}), e({ requestUpdateWidget: x }), (z, R) => (p(), y("div", Ba, [
|
|
1336
1328
|
T(E(a), {
|
|
1337
1329
|
schema: v,
|
|
1338
1330
|
values: $.value,
|
|
@@ -1341,8 +1333,8 @@ const Va = {
|
|
|
1341
1333
|
}, null, 8, ["values"]),
|
|
1342
1334
|
T(E(a), {
|
|
1343
1335
|
schema: g,
|
|
1344
|
-
values:
|
|
1345
|
-
"onUpdate:values": R[1] || (R[1] = (q) =>
|
|
1336
|
+
values: L.value,
|
|
1337
|
+
"onUpdate:values": R[1] || (R[1] = (q) => L.value = q),
|
|
1346
1338
|
class: "p-0"
|
|
1347
1339
|
}, null, 8, ["values"]),
|
|
1348
1340
|
T(E(a), {
|
|
@@ -1354,7 +1346,7 @@ const Va = {
|
|
|
1354
1346
|
]));
|
|
1355
1347
|
}
|
|
1356
1348
|
};
|
|
1357
|
-
function
|
|
1349
|
+
function tt() {
|
|
1358
1350
|
return {
|
|
1359
1351
|
async: !1,
|
|
1360
1352
|
breaks: !1,
|
|
@@ -1368,39 +1360,39 @@ function st() {
|
|
|
1368
1360
|
walkTokens: null
|
|
1369
1361
|
};
|
|
1370
1362
|
}
|
|
1371
|
-
let be =
|
|
1372
|
-
function
|
|
1363
|
+
let be = tt();
|
|
1364
|
+
function es(s) {
|
|
1373
1365
|
be = s;
|
|
1374
1366
|
}
|
|
1375
|
-
const
|
|
1367
|
+
const ts = /[&<>"']/, Pa = new RegExp(ts.source, "g"), ss = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Aa = new RegExp(ss.source, "g"), Fa = {
|
|
1376
1368
|
"&": "&",
|
|
1377
1369
|
"<": "<",
|
|
1378
1370
|
">": ">",
|
|
1379
1371
|
'"': """,
|
|
1380
1372
|
"'": "'"
|
|
1381
|
-
},
|
|
1382
|
-
function
|
|
1373
|
+
}, Et = (s) => Fa[s];
|
|
1374
|
+
function K(s, e) {
|
|
1383
1375
|
if (e) {
|
|
1384
|
-
if (
|
|
1385
|
-
return s.replace(
|
|
1386
|
-
} else if (
|
|
1387
|
-
return s.replace(
|
|
1376
|
+
if (ts.test(s))
|
|
1377
|
+
return s.replace(Pa, Et);
|
|
1378
|
+
} else if (ss.test(s))
|
|
1379
|
+
return s.replace(Aa, Et);
|
|
1388
1380
|
return s;
|
|
1389
1381
|
}
|
|
1390
|
-
const
|
|
1382
|
+
const qa = /(^|[^\[])\^/g;
|
|
1391
1383
|
function O(s, e) {
|
|
1392
1384
|
let t = typeof s == "string" ? s : s.source;
|
|
1393
1385
|
e = e || "";
|
|
1394
1386
|
const a = {
|
|
1395
1387
|
replace: (r, i) => {
|
|
1396
1388
|
let n = typeof i == "string" ? i : i.source;
|
|
1397
|
-
return n = n.replace(
|
|
1389
|
+
return n = n.replace(qa, "$1"), t = t.replace(r, n), a;
|
|
1398
1390
|
},
|
|
1399
1391
|
getRegex: () => new RegExp(t, e)
|
|
1400
1392
|
};
|
|
1401
1393
|
return a;
|
|
1402
1394
|
}
|
|
1403
|
-
function
|
|
1395
|
+
function jt(s) {
|
|
1404
1396
|
try {
|
|
1405
1397
|
s = encodeURI(s).replace(/%25/g, "%");
|
|
1406
1398
|
} catch {
|
|
@@ -1409,7 +1401,7 @@ function Bt(s) {
|
|
|
1409
1401
|
return s;
|
|
1410
1402
|
}
|
|
1411
1403
|
const Se = { exec: () => null };
|
|
1412
|
-
function
|
|
1404
|
+
function Bt(s, e) {
|
|
1413
1405
|
const t = s.replace(/\|/g, (i, n, o) => {
|
|
1414
1406
|
let l = !1, c = n;
|
|
1415
1407
|
for (; --c >= 0 && o[c] === "\\"; )
|
|
@@ -1436,7 +1428,7 @@ function Te(s, e, t) {
|
|
|
1436
1428
|
r++;
|
|
1437
1429
|
return s.slice(0, a - r);
|
|
1438
1430
|
}
|
|
1439
|
-
function
|
|
1431
|
+
function Ma(s, e) {
|
|
1440
1432
|
if (s.indexOf(e[1]) === -1)
|
|
1441
1433
|
return -1;
|
|
1442
1434
|
let t = 0;
|
|
@@ -1449,8 +1441,8 @@ function Ha(s, e) {
|
|
|
1449
1441
|
return a;
|
|
1450
1442
|
return -1;
|
|
1451
1443
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const r = e.href, i = e.title ?
|
|
1444
|
+
function Ot(s, e, t, a) {
|
|
1445
|
+
const r = e.href, i = e.title ? K(e.title) : null, n = s[1].replace(/\\([\[\]])/g, "$1");
|
|
1454
1446
|
if (s[0].charAt(0) !== "!") {
|
|
1455
1447
|
a.state.inLink = !0;
|
|
1456
1448
|
const o = {
|
|
@@ -1468,10 +1460,10 @@ function Pt(s, e, t, a) {
|
|
|
1468
1460
|
raw: t,
|
|
1469
1461
|
href: r,
|
|
1470
1462
|
title: i,
|
|
1471
|
-
text:
|
|
1463
|
+
text: K(n)
|
|
1472
1464
|
};
|
|
1473
1465
|
}
|
|
1474
|
-
function
|
|
1466
|
+
function Ua(s, e) {
|
|
1475
1467
|
const t = s.match(/^(\s+)(?:```)/);
|
|
1476
1468
|
if (t === null)
|
|
1477
1469
|
return e;
|
|
@@ -1519,7 +1511,7 @@ class Ae {
|
|
|
1519
1511
|
fences(e) {
|
|
1520
1512
|
const t = this.rules.block.fences.exec(e);
|
|
1521
1513
|
if (t) {
|
|
1522
|
-
const a = t[0], r =
|
|
1514
|
+
const a = t[0], r = Ua(a, t[3] || "");
|
|
1523
1515
|
return {
|
|
1524
1516
|
type: "code",
|
|
1525
1517
|
raw: a,
|
|
@@ -1629,16 +1621,16 @@ ${f}` : f;
|
|
|
1629
1621
|
break;
|
|
1630
1622
|
c = t[0], e = e.substring(c.length);
|
|
1631
1623
|
let f = t[2].split(`
|
|
1632
|
-
`, 1)[0].replace(/^\t+/, (
|
|
1624
|
+
`, 1)[0].replace(/^\t+/, (L) => " ".repeat(3 * L.length)), v = e.split(`
|
|
1633
1625
|
`, 1)[0], g = !f.trim(), b = 0;
|
|
1634
1626
|
if (this.options.pedantic ? (b = 2, u = f.trimStart()) : g ? b = t[1].length + 1 : (b = t[2].search(/[^ ]/), b = b > 4 ? 1 : b, u = f.slice(b), b += t[1].length), g && /^[ \t]*$/.test(v) && (c += v + `
|
|
1635
1627
|
`, e = e.substring(v.length + 1), l = !0), !l) {
|
|
1636
|
-
const
|
|
1628
|
+
const L = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), w = new RegExp(`^ {0,${Math.min(3, b - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), d = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:\`\`\`|~~~)`), x = new RegExp(`^ {0,${Math.min(3, b - 1)}}#`), _ = new RegExp(`^ {0,${Math.min(3, b - 1)}}<(?:[a-z].*>|!--)`, "i");
|
|
1637
1629
|
for (; e; ) {
|
|
1638
1630
|
const D = e.split(`
|
|
1639
1631
|
`, 1)[0];
|
|
1640
1632
|
let m;
|
|
1641
|
-
if (v = D, this.options.pedantic ? (v = v.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), m = v) : m = v.replace(/\t/g, " "), d.test(v) || x.test(v) || _.test(v) ||
|
|
1633
|
+
if (v = D, this.options.pedantic ? (v = v.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), m = v) : m = v.replace(/\t/g, " "), d.test(v) || x.test(v) || _.test(v) || L.test(v) || w.test(v))
|
|
1642
1634
|
break;
|
|
1643
1635
|
if (m.search(/[^ ]/) >= b || !v.trim())
|
|
1644
1636
|
u += `
|
|
@@ -1705,7 +1697,7 @@ ${f}` : f;
|
|
|
1705
1697
|
const t = this.rules.block.table.exec(e);
|
|
1706
1698
|
if (!t || !/[:|]/.test(t[2]))
|
|
1707
1699
|
return;
|
|
1708
|
-
const a =
|
|
1700
|
+
const a = Bt(t[1]), r = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
|
|
1709
1701
|
`) : [], n = {
|
|
1710
1702
|
type: "table",
|
|
1711
1703
|
raw: t[0],
|
|
@@ -1724,7 +1716,7 @@ ${f}` : f;
|
|
|
1724
1716
|
align: n.align[o]
|
|
1725
1717
|
});
|
|
1726
1718
|
for (const o of i)
|
|
1727
|
-
n.rows.push(
|
|
1719
|
+
n.rows.push(Bt(o, n.header.length).map((l, c) => ({
|
|
1728
1720
|
text: l,
|
|
1729
1721
|
tokens: this.lexer.inline(l),
|
|
1730
1722
|
header: !1,
|
|
@@ -1773,7 +1765,7 @@ ${f}` : f;
|
|
|
1773
1765
|
return {
|
|
1774
1766
|
type: "escape",
|
|
1775
1767
|
raw: t[0],
|
|
1776
|
-
text:
|
|
1768
|
+
text: K(t[1])
|
|
1777
1769
|
};
|
|
1778
1770
|
}
|
|
1779
1771
|
tag(e) {
|
|
@@ -1799,7 +1791,7 @@ ${f}` : f;
|
|
|
1799
1791
|
if ((a.length - n.length) % 2 === 0)
|
|
1800
1792
|
return;
|
|
1801
1793
|
} else {
|
|
1802
|
-
const n =
|
|
1794
|
+
const n = Ma(t[2], "()");
|
|
1803
1795
|
if (n > -1) {
|
|
1804
1796
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + n;
|
|
1805
1797
|
t[2] = t[2].substring(0, n), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
|
@@ -1811,7 +1803,7 @@ ${f}` : f;
|
|
|
1811
1803
|
n && (r = n[1], i = n[3]);
|
|
1812
1804
|
} else
|
|
1813
1805
|
i = t[3] ? t[3].slice(1, -1) : "";
|
|
1814
|
-
return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(a) ? r = r.slice(1) : r = r.slice(1, -1)),
|
|
1806
|
+
return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(a) ? r = r.slice(1) : r = r.slice(1, -1)), Ot(t, {
|
|
1815
1807
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1816
1808
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1817
1809
|
}, t[0], this.lexer);
|
|
@@ -1829,7 +1821,7 @@ ${f}` : f;
|
|
|
1829
1821
|
text: n
|
|
1830
1822
|
};
|
|
1831
1823
|
}
|
|
1832
|
-
return
|
|
1824
|
+
return Ot(a, i, a[0], this.lexer);
|
|
1833
1825
|
}
|
|
1834
1826
|
}
|
|
1835
1827
|
emStrong(e, t, a = "") {
|
|
@@ -1878,7 +1870,7 @@ ${f}` : f;
|
|
|
1878
1870
|
if (t) {
|
|
1879
1871
|
let a = t[2].replace(/\n/g, " ");
|
|
1880
1872
|
const r = /[^ ]/.test(a), i = /^ /.test(a) && / $/.test(a);
|
|
1881
|
-
return r && i && (a = a.substring(1, a.length - 1)), a =
|
|
1873
|
+
return r && i && (a = a.substring(1, a.length - 1)), a = K(a, !0), {
|
|
1882
1874
|
type: "codespan",
|
|
1883
1875
|
raw: t[0],
|
|
1884
1876
|
text: a
|
|
@@ -1907,7 +1899,7 @@ ${f}` : f;
|
|
|
1907
1899
|
const t = this.rules.inline.autolink.exec(e);
|
|
1908
1900
|
if (t) {
|
|
1909
1901
|
let a, r;
|
|
1910
|
-
return t[2] === "@" ? (a =
|
|
1902
|
+
return t[2] === "@" ? (a = K(t[1]), r = "mailto:" + a) : (a = K(t[1]), r = a), {
|
|
1911
1903
|
type: "link",
|
|
1912
1904
|
raw: t[0],
|
|
1913
1905
|
text: a,
|
|
@@ -1928,13 +1920,13 @@ ${f}` : f;
|
|
|
1928
1920
|
if (t = this.rules.inline.url.exec(e)) {
|
|
1929
1921
|
let r, i;
|
|
1930
1922
|
if (t[2] === "@")
|
|
1931
|
-
r =
|
|
1923
|
+
r = K(t[0]), i = "mailto:" + r;
|
|
1932
1924
|
else {
|
|
1933
1925
|
let n;
|
|
1934
1926
|
do
|
|
1935
1927
|
n = t[0], t[0] = ((a = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : a[0]) ?? "";
|
|
1936
1928
|
while (n !== t[0]);
|
|
1937
|
-
r =
|
|
1929
|
+
r = K(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
|
|
1938
1930
|
}
|
|
1939
1931
|
return {
|
|
1940
1932
|
type: "link",
|
|
@@ -1955,7 +1947,7 @@ ${f}` : f;
|
|
|
1955
1947
|
const t = this.rules.inline.text.exec(e);
|
|
1956
1948
|
if (t) {
|
|
1957
1949
|
let a;
|
|
1958
|
-
return this.lexer.state.inRawBlock ? a = t[0] : a =
|
|
1950
|
+
return this.lexer.state.inRawBlock ? a = t[0] : a = K(t[0]), {
|
|
1959
1951
|
type: "text",
|
|
1960
1952
|
raw: t[0],
|
|
1961
1953
|
text: a
|
|
@@ -1963,79 +1955,79 @@ ${f}` : f;
|
|
|
1963
1955
|
}
|
|
1964
1956
|
}
|
|
1965
1957
|
}
|
|
1966
|
-
const
|
|
1967
|
-
blockquote:
|
|
1968
|
-
code:
|
|
1969
|
-
def:
|
|
1970
|
-
fences:
|
|
1971
|
-
heading:
|
|
1958
|
+
const Ga = /^(?:[ \t]*(?:\n|$))+/, Ha = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, We = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, as = /(?:[*+-]|\d{1,9}[.)])/, rs = O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, as).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), st = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Xa = /^[^\n]+/, at = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ya = O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", at).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ja = O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, as).getRegex(), Ze = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ka = O("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", rt).replace("tag", Ze).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ns = O(st).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex(), er = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ns).getRegex(), nt = {
|
|
1959
|
+
blockquote: er,
|
|
1960
|
+
code: Ha,
|
|
1961
|
+
def: Ya,
|
|
1962
|
+
fences: Za,
|
|
1963
|
+
heading: Qa,
|
|
1972
1964
|
hr: We,
|
|
1973
|
-
html:
|
|
1974
|
-
lheading:
|
|
1975
|
-
list:
|
|
1976
|
-
newline:
|
|
1977
|
-
paragraph:
|
|
1965
|
+
html: Ka,
|
|
1966
|
+
lheading: rs,
|
|
1967
|
+
list: Ja,
|
|
1968
|
+
newline: Ga,
|
|
1969
|
+
paragraph: ns,
|
|
1978
1970
|
table: Se,
|
|
1979
|
-
text:
|
|
1980
|
-
},
|
|
1981
|
-
...
|
|
1982
|
-
table:
|
|
1983
|
-
paragraph: O(
|
|
1984
|
-
},
|
|
1985
|
-
...
|
|
1986
|
-
html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
|
1971
|
+
text: Xa
|
|
1972
|
+
}, Pt = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex(), tr = {
|
|
1973
|
+
...nt,
|
|
1974
|
+
table: Pt,
|
|
1975
|
+
paragraph: O(st).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex()
|
|
1976
|
+
}, sr = {
|
|
1977
|
+
...nt,
|
|
1978
|
+
html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", rt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
1987
1979
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
1988
1980
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
1989
1981
|
fences: Se,
|
|
1990
1982
|
// fences not supported
|
|
1991
1983
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
1992
|
-
paragraph: O(
|
|
1993
|
-
]`).replace("lheading",
|
|
1994
|
-
},
|
|
1984
|
+
paragraph: O(st).replace("hr", We).replace("heading", ` *#{1,6} *[^
|
|
1985
|
+
]`).replace("lheading", rs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
1986
|
+
}, is = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ar = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, os = /^( {2,}|\\)\n(?!\s*$)/, rr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ne = "\\p{P}\\p{S}", nr = O(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ne).getRegex(), ir = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, or = O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ne).getRegex(), lr = O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ne).getRegex(), cr = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ne).getRegex(), dr = O(/\\([punct])/, "gu").replace(/punct/g, Ne).getRegex(), ur = O(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), hr = O(rt).replace("(?:-->|$)", "-->").getRegex(), pr = O("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", hr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Fe = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, fr = O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Fe).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ls = O(/^!?\[(label)\]\[(ref)\]/).replace("label", Fe).replace("ref", at).getRegex(), cs = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", at).getRegex(), gr = O("reflink|nolink(?!\\()", "g").replace("reflink", ls).replace("nolink", cs).getRegex(), it = {
|
|
1995
1987
|
_backpedal: Se,
|
|
1996
1988
|
// only used for GFM url
|
|
1997
|
-
anyPunctuation:
|
|
1998
|
-
autolink:
|
|
1999
|
-
blockSkip:
|
|
2000
|
-
br:
|
|
2001
|
-
code:
|
|
1989
|
+
anyPunctuation: dr,
|
|
1990
|
+
autolink: ur,
|
|
1991
|
+
blockSkip: ir,
|
|
1992
|
+
br: os,
|
|
1993
|
+
code: ar,
|
|
2002
1994
|
del: Se,
|
|
2003
|
-
emStrongLDelim:
|
|
2004
|
-
emStrongRDelimAst:
|
|
2005
|
-
emStrongRDelimUnd:
|
|
2006
|
-
escape:
|
|
2007
|
-
link:
|
|
2008
|
-
nolink:
|
|
2009
|
-
punctuation:
|
|
2010
|
-
reflink:
|
|
2011
|
-
reflinkSearch:
|
|
2012
|
-
tag:
|
|
2013
|
-
text:
|
|
1995
|
+
emStrongLDelim: or,
|
|
1996
|
+
emStrongRDelimAst: lr,
|
|
1997
|
+
emStrongRDelimUnd: cr,
|
|
1998
|
+
escape: is,
|
|
1999
|
+
link: fr,
|
|
2000
|
+
nolink: cs,
|
|
2001
|
+
punctuation: nr,
|
|
2002
|
+
reflink: ls,
|
|
2003
|
+
reflinkSearch: gr,
|
|
2004
|
+
tag: pr,
|
|
2005
|
+
text: rr,
|
|
2014
2006
|
url: Se
|
|
2015
|
-
},
|
|
2016
|
-
...
|
|
2007
|
+
}, mr = {
|
|
2008
|
+
...it,
|
|
2017
2009
|
link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", Fe).getRegex(),
|
|
2018
2010
|
reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Fe).getRegex()
|
|
2019
|
-
},
|
|
2020
|
-
...
|
|
2021
|
-
escape: O(
|
|
2011
|
+
}, et = {
|
|
2012
|
+
...it,
|
|
2013
|
+
escape: O(is).replace("])", "~|])").getRegex(),
|
|
2022
2014
|
url: O(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
2023
2015
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
2024
2016
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
2025
2017
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
2026
|
-
},
|
|
2027
|
-
...
|
|
2028
|
-
br: O(
|
|
2029
|
-
text: O(
|
|
2018
|
+
}, br = {
|
|
2019
|
+
...et,
|
|
2020
|
+
br: O(os).replace("{2,}", "*").getRegex(),
|
|
2021
|
+
text: O(et.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
2030
2022
|
}, je = {
|
|
2031
|
-
normal:
|
|
2032
|
-
gfm:
|
|
2033
|
-
pedantic:
|
|
2023
|
+
normal: nt,
|
|
2024
|
+
gfm: tr,
|
|
2025
|
+
pedantic: sr
|
|
2034
2026
|
}, Ie = {
|
|
2035
|
-
normal:
|
|
2036
|
-
gfm:
|
|
2037
|
-
breaks:
|
|
2038
|
-
pedantic:
|
|
2027
|
+
normal: it,
|
|
2028
|
+
gfm: et,
|
|
2029
|
+
breaks: br,
|
|
2030
|
+
pedantic: mr
|
|
2039
2031
|
};
|
|
2040
2032
|
class ae {
|
|
2041
2033
|
constructor(e) {
|
|
@@ -2274,8 +2266,8 @@ class qe {
|
|
|
2274
2266
|
var n;
|
|
2275
2267
|
const r = (n = (t || "").match(/^\S*/)) == null ? void 0 : n[0], i = e.replace(/\n$/, "") + `
|
|
2276
2268
|
`;
|
|
2277
|
-
return r ? '<pre><code class="language-' +
|
|
2278
|
-
` : "<pre><code>" + (a ? i :
|
|
2269
|
+
return r ? '<pre><code class="language-' + K(r) + '">' + (a ? i : K(i, !0)) + `</code></pre>
|
|
2270
|
+
` : "<pre><code>" + (a ? i : K(i, !0)) + `</code></pre>
|
|
2279
2271
|
`;
|
|
2280
2272
|
}
|
|
2281
2273
|
blockquote({ tokens: e }) {
|
|
@@ -2374,7 +2366,7 @@ ${e}</tr>
|
|
|
2374
2366
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
2375
2367
|
}
|
|
2376
2368
|
link({ href: e, title: t, tokens: a }) {
|
|
2377
|
-
const r = this.parser.parseInline(a), i =
|
|
2369
|
+
const r = this.parser.parseInline(a), i = jt(e);
|
|
2378
2370
|
if (i === null)
|
|
2379
2371
|
return r;
|
|
2380
2372
|
e = i;
|
|
@@ -2382,7 +2374,7 @@ ${e}</tr>
|
|
|
2382
2374
|
return t && (n += ' title="' + t + '"'), n += ">" + r + "</a>", n;
|
|
2383
2375
|
}
|
|
2384
2376
|
image({ href: e, title: t, text: a }) {
|
|
2385
|
-
const r =
|
|
2377
|
+
const r = jt(e);
|
|
2386
2378
|
if (r === null)
|
|
2387
2379
|
return a;
|
|
2388
2380
|
e = r;
|
|
@@ -2393,7 +2385,7 @@ ${e}</tr>
|
|
|
2393
2385
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : e.text;
|
|
2394
2386
|
}
|
|
2395
2387
|
}
|
|
2396
|
-
class
|
|
2388
|
+
class ot {
|
|
2397
2389
|
// no need for block level renderers
|
|
2398
2390
|
strong({ text: e }) {
|
|
2399
2391
|
return e;
|
|
@@ -2428,7 +2420,7 @@ class re {
|
|
|
2428
2420
|
P(this, "options");
|
|
2429
2421
|
P(this, "renderer");
|
|
2430
2422
|
P(this, "textRenderer");
|
|
2431
|
-
this.options = e || be, this.options.renderer = this.options.renderer || new qe(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
2423
|
+
this.options = e || be, this.options.renderer = this.options.renderer || new qe(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ot();
|
|
2432
2424
|
}
|
|
2433
2425
|
/**
|
|
2434
2426
|
* Static Parse Method
|
|
@@ -2627,15 +2619,15 @@ P(Re, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
|
2627
2619
|
"postprocess",
|
|
2628
2620
|
"processAllTokens"
|
|
2629
2621
|
]));
|
|
2630
|
-
class
|
|
2622
|
+
class xr {
|
|
2631
2623
|
constructor(...e) {
|
|
2632
|
-
P(this, "defaults",
|
|
2624
|
+
P(this, "defaults", tt());
|
|
2633
2625
|
P(this, "options", this.setOptions);
|
|
2634
2626
|
P(this, "parse", this.parseMarkdown(!0));
|
|
2635
2627
|
P(this, "parseInline", this.parseMarkdown(!1));
|
|
2636
2628
|
P(this, "Parser", re);
|
|
2637
2629
|
P(this, "Renderer", qe);
|
|
2638
|
-
P(this, "TextRenderer",
|
|
2630
|
+
P(this, "TextRenderer", ot);
|
|
2639
2631
|
P(this, "Lexer", ae);
|
|
2640
2632
|
P(this, "Tokenizer", Ae);
|
|
2641
2633
|
P(this, "Hooks", Re);
|
|
@@ -2791,7 +2783,7 @@ class vr {
|
|
|
2791
2783
|
return (a) => {
|
|
2792
2784
|
if (a.message += `
|
|
2793
2785
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
2794
|
-
const r = "<p>An error occurred:</p><pre>" +
|
|
2786
|
+
const r = "<p>An error occurred:</p><pre>" + K(a.message + "", !0) + "</pre>";
|
|
2795
2787
|
return t ? Promise.resolve(r) : r;
|
|
2796
2788
|
}
|
|
2797
2789
|
if (t)
|
|
@@ -2800,17 +2792,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
2800
2792
|
};
|
|
2801
2793
|
}
|
|
2802
2794
|
}
|
|
2803
|
-
const fe = new
|
|
2795
|
+
const fe = new xr();
|
|
2804
2796
|
function B(s, e) {
|
|
2805
2797
|
return fe.parse(s, e);
|
|
2806
2798
|
}
|
|
2807
2799
|
B.options = B.setOptions = function(s) {
|
|
2808
|
-
return fe.setOptions(s), B.defaults = fe.defaults,
|
|
2800
|
+
return fe.setOptions(s), B.defaults = fe.defaults, es(B.defaults), B;
|
|
2809
2801
|
};
|
|
2810
|
-
B.getDefaults =
|
|
2802
|
+
B.getDefaults = tt;
|
|
2811
2803
|
B.defaults = be;
|
|
2812
2804
|
B.use = function(...s) {
|
|
2813
|
-
return fe.use(...s), B.defaults = fe.defaults,
|
|
2805
|
+
return fe.use(...s), B.defaults = fe.defaults, es(B.defaults), B;
|
|
2814
2806
|
};
|
|
2815
2807
|
B.walkTokens = function(s, e) {
|
|
2816
2808
|
return fe.walkTokens(s, e);
|
|
@@ -2819,7 +2811,7 @@ B.parseInline = fe.parseInline;
|
|
|
2819
2811
|
B.Parser = re;
|
|
2820
2812
|
B.parser = re.parse;
|
|
2821
2813
|
B.Renderer = qe;
|
|
2822
|
-
B.TextRenderer =
|
|
2814
|
+
B.TextRenderer = ot;
|
|
2823
2815
|
B.Lexer = ae;
|
|
2824
2816
|
B.lexer = ae.lex;
|
|
2825
2817
|
B.Tokenizer = Ae;
|
|
@@ -2832,7 +2824,7 @@ B.walkTokens;
|
|
|
2832
2824
|
B.parseInline;
|
|
2833
2825
|
re.parse;
|
|
2834
2826
|
ae.lex;
|
|
2835
|
-
const
|
|
2827
|
+
const yr = { class: "space-y-4" }, wr = {
|
|
2836
2828
|
__name: "vs-editor-form-data",
|
|
2837
2829
|
props: {
|
|
2838
2830
|
widgetName: { type: String },
|
|
@@ -2843,7 +2835,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
2843
2835
|
},
|
|
2844
2836
|
emits: ["update-dashboard"],
|
|
2845
2837
|
setup(s, { expose: e, emit: t }) {
|
|
2846
|
-
var _, D, m, C, z, R, q, ne, ie, de, ve, ke, $e, _e, De, G, ue, Ce, dt, ut, ht, pt, ft, gt, mt, bt, xt, yt, wt, vt, kt, $t, _t, Dt, Ct, zt, Tt
|
|
2838
|
+
var _, D, m, C, z, R, q, ne, ie, de, ve, ke, $e, _e, De, G, ue, Ce, ct, dt, ut, ht, pt, ft, gt, mt, bt, xt, yt, wt, vt, kt, $t, _t, Dt, Ct, zt, Tt;
|
|
2847
2839
|
const a = M(() => import("@opengis/form")), { $notify: r } = me().proxy, i = t, n = s, o = typeof window < "u" ? new URLSearchParams(window.top.location.search) : null, l = I((o == null ? void 0 : o.get("dashboard")) || null), c = I([]), u = F(() => {
|
|
2848
2840
|
const S = n.columns ?? [];
|
|
2849
2841
|
return S.length ? S : c.value;
|
|
@@ -2853,20 +2845,20 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
2853
2845
|
const S = f.value;
|
|
2854
2846
|
if (!(u.value.length || !S || !n.widgetName))
|
|
2855
2847
|
try {
|
|
2856
|
-
const
|
|
2857
|
-
Array.isArray(
|
|
2848
|
+
const V = await H.get(`/bi-data?dashboard=${S}&widget=${n.widgetName}`);
|
|
2849
|
+
Array.isArray(V == null ? void 0 : V.columns) && V.columns.length && (c.value = V.columns);
|
|
2858
2850
|
} catch {
|
|
2859
2851
|
}
|
|
2860
2852
|
}
|
|
2861
|
-
const g = (S) => (S == null ? void 0 : S.name) != null ? { id: S.name, text: S.title || S.name } : null, b = (S) => Array.isArray(S) ? [...S].sort((
|
|
2862
|
-
const xe =
|
|
2863
|
-
return xe && !
|
|
2853
|
+
const g = (S) => (S == null ? void 0 : S.name) != null ? { id: S.name, text: S.title || S.name } : null, b = (S) => Array.isArray(S) ? [...S].sort((V, oe) => {
|
|
2854
|
+
const xe = V.text && V.text !== V.id, It = oe.text && oe.text !== oe.id;
|
|
2855
|
+
return xe && !It ? -1 : !xe && It ? 1 : (V.text || "").localeCompare(oe.text || "", void 0, { sensitivity: "base" });
|
|
2864
2856
|
}) : S, k = F(() => {
|
|
2865
2857
|
const S = (u.value ?? []).filter(
|
|
2866
|
-
(
|
|
2858
|
+
(V) => (V == null ? void 0 : V.type) == "text" || (V == null ? void 0 : V.type) === "date" || (V == null ? void 0 : V.type) === "timestamp without time zone" || (V == null ? void 0 : V.type) === "boolean" || (V == null ? void 0 : V.type) === "integer"
|
|
2867
2859
|
).map(g).filter(Boolean);
|
|
2868
2860
|
return b(S);
|
|
2869
|
-
}), $ = F(() => `${n.widgetName}-${k.value.length}-${(u.value ?? []).length}`),
|
|
2861
|
+
}), $ = F(() => `${n.widgetName}-${k.value.length}-${(u.value ?? []).length}`), L = F(() => ({
|
|
2870
2862
|
text: {
|
|
2871
2863
|
type: "Text",
|
|
2872
2864
|
label: "Текст",
|
|
@@ -2972,13 +2964,13 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
2972
2964
|
granularity: ((ve = (de = n.data) == null ? void 0 : de.data) == null ? void 0 : ve.granularity) || ((ke = n.data) == null ? void 0 : ke.granularity) || null,
|
|
2973
2965
|
type: ((_e = ($e = n.data) == null ? void 0 : $e.data) == null ? void 0 : _e.type) || ((De = n.data) == null ? void 0 : De.type) || null,
|
|
2974
2966
|
groupby: ((ue = (G = n.data) == null ? void 0 : G.data) == null ? void 0 : ue.groupby) || n.data.groupby || null,
|
|
2975
|
-
fx: ((
|
|
2976
|
-
query: ((
|
|
2977
|
-
y_type: ((
|
|
2978
|
-
tableSQL: ((
|
|
2979
|
-
cls: ((
|
|
2980
|
-
text: ((
|
|
2981
|
-
table: ((
|
|
2967
|
+
fx: ((ct = (Ce = n.data) == null ? void 0 : Ce.data) == null ? void 0 : ct.fx) || ((dt = n.data) == null ? void 0 : dt.fx) || null,
|
|
2968
|
+
query: ((ht = (ut = n.data) == null ? void 0 : ut.data) == null ? void 0 : ht.query) || ((pt = n.data) == null ? void 0 : pt.query) || null,
|
|
2969
|
+
y_type: ((gt = (ft = n.data) == null ? void 0 : ft.data) == null ? void 0 : gt.y_type) || ((mt = n.data) == null ? void 0 : mt.y_type) || null,
|
|
2970
|
+
tableSQL: ((xt = (bt = n.data) == null ? void 0 : bt.data) == null ? void 0 : xt.tableSQL) || ((yt = n.data) == null ? void 0 : yt.tableSQL) || null,
|
|
2971
|
+
cls: ((vt = (wt = n.data) == null ? void 0 : wt.data) == null ? void 0 : vt.cls) || ((kt = n.data) == null ? void 0 : kt.cls) || null,
|
|
2972
|
+
text: ((_t = ($t = n.data) == null ? void 0 : $t.data) == null ? void 0 : _t.text) || ((Dt = n.data) == null ? void 0 : Dt.text) || null,
|
|
2973
|
+
table: ((zt = (Ct = n.data) == null ? void 0 : Ct.data) == null ? void 0 : zt.table) || ((Tt = n.data) == null ? void 0 : Tt.table) || null
|
|
2982
2974
|
}), d = async () => {
|
|
2983
2975
|
try {
|
|
2984
2976
|
await H.put(`/bi-dashboard/${f.value}/${n.widgetName}`, {
|
|
@@ -2988,8 +2980,8 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
2988
2980
|
Object.entries(w.value).forEach(([oe, xe]) => {
|
|
2989
2981
|
S += `&${oe}=${xe}`;
|
|
2990
2982
|
});
|
|
2991
|
-
const
|
|
2992
|
-
|
|
2983
|
+
const V = new CustomEvent(`update-data-${n.widgetName}`);
|
|
2984
|
+
V.filterUrl = S, window.dispatchEvent(V), i("update-dashboard"), r({
|
|
2993
2985
|
type: "success",
|
|
2994
2986
|
title: "Успішно!",
|
|
2995
2987
|
message: "Дані успішно оновлено"
|
|
@@ -3007,8 +2999,8 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3007
2999
|
Object.entries(w.value).forEach(([oe, xe]) => {
|
|
3008
3000
|
S += `&${oe}=${xe}`;
|
|
3009
3001
|
});
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3002
|
+
const V = new CustomEvent(`update-data-${n.widgetName}`);
|
|
3003
|
+
V.filterUrl = S, window.dispatchEvent(V), i("update-dashboard");
|
|
3012
3004
|
} catch {
|
|
3013
3005
|
await r({
|
|
3014
3006
|
type: "error",
|
|
@@ -3025,16 +3017,16 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3025
3017
|
c.value = [], v();
|
|
3026
3018
|
},
|
|
3027
3019
|
{ immediate: !0 }
|
|
3028
|
-
), e({ requestUpdateWidget: d }), (S,
|
|
3020
|
+
), e({ requestUpdateWidget: d }), (S, V) => (p(), y("div", yr, [
|
|
3029
3021
|
(p(), N(E(a), {
|
|
3030
3022
|
key: $.value,
|
|
3031
|
-
schema:
|
|
3023
|
+
schema: L.value,
|
|
3032
3024
|
values: w.value,
|
|
3033
|
-
"onUpdate:values":
|
|
3025
|
+
"onUpdate:values": V[0] || (V[0] = (oe) => w.value = oe)
|
|
3034
3026
|
}, null, 8, ["schema", "values"]))
|
|
3035
3027
|
]));
|
|
3036
3028
|
}
|
|
3037
|
-
},
|
|
3029
|
+
}, vr = { class: "space-y-4" }, kr = {
|
|
3038
3030
|
__name: "vs-editor-form-yaml",
|
|
3039
3031
|
props: {
|
|
3040
3032
|
yamlValue: { type: null, default: () => "" },
|
|
@@ -3046,7 +3038,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3046
3038
|
const a = typeof window < "u" ? window.echarts : null, r = M(
|
|
3047
3039
|
() => import("@opengis/form").then((g) => g.VsInputMonaco)
|
|
3048
3040
|
), i = I(null), { $notify: n } = me().proxy, o = t, l = s, c = (g, { dimensions: b, source: k }) => {
|
|
3049
|
-
const $ = g.getOption(), { data:
|
|
3041
|
+
const $ = g.getOption(), { data: L, ...w } = ($ == null ? void 0 : $.series)[0], [, ...d] = b || [], x = d.map((_, D) => ({
|
|
3050
3042
|
...($ == null ? void 0 : $.series[D]) || {},
|
|
3051
3043
|
data: k.map((m) => m[D + 1]),
|
|
3052
3044
|
name: _
|
|
@@ -3097,7 +3089,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3097
3089
|
return le(() => {
|
|
3098
3090
|
const g = new URLSearchParams(window.top.location.search);
|
|
3099
3091
|
i.value = g.get("dashboard");
|
|
3100
|
-
}), e({ requestUpdateWidget: v }), (g, b) => (p(), y("div",
|
|
3092
|
+
}), e({ requestUpdateWidget: v }), (g, b) => (p(), y("div", vr, [
|
|
3101
3093
|
T(E(r), {
|
|
3102
3094
|
modelValue: f.value,
|
|
3103
3095
|
"onUpdate:modelValue": b[0] || (b[0] = (k) => f.value = k),
|
|
@@ -3108,7 +3100,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3108
3100
|
}, null, 8, ["modelValue"])
|
|
3109
3101
|
]));
|
|
3110
3102
|
}
|
|
3111
|
-
},
|
|
3103
|
+
}, $r = { class: "pt-[10px]" }, _r = {
|
|
3112
3104
|
__name: "vs-editor-form-controls",
|
|
3113
3105
|
props: {
|
|
3114
3106
|
widgetName: { type: String },
|
|
@@ -3155,8 +3147,8 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3155
3147
|
const f = new URLSearchParams(window.top.location.search);
|
|
3156
3148
|
n.value = f.get("dashboard");
|
|
3157
3149
|
}), (f, v) => {
|
|
3158
|
-
const g =
|
|
3159
|
-
return p(), y("div",
|
|
3150
|
+
const g = J("VsButton");
|
|
3151
|
+
return p(), y("div", $r, [
|
|
3160
3152
|
T(g, {
|
|
3161
3153
|
class: "ml-[10px] mb-[10px]",
|
|
3162
3154
|
type: "plain",
|
|
@@ -3175,15 +3167,15 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3175
3167
|
]);
|
|
3176
3168
|
};
|
|
3177
3169
|
}
|
|
3178
|
-
},
|
|
3179
|
-
"vs-editor-form-style":
|
|
3180
|
-
"vs-editor-form-data":
|
|
3181
|
-
"vs-editor-form-yaml":
|
|
3182
|
-
"vs-editor-form-controls":
|
|
3183
|
-
},
|
|
3170
|
+
}, At = {
|
|
3171
|
+
"vs-editor-form-style": Oa,
|
|
3172
|
+
"vs-editor-form-data": wr,
|
|
3173
|
+
"vs-editor-form-yaml": kr,
|
|
3174
|
+
"vs-editor-form-controls": _r
|
|
3175
|
+
}, Dr = {
|
|
3184
3176
|
key: 0,
|
|
3185
3177
|
class: "p-4 text-sm text-amber-700 bg-amber-50 rounded-lg"
|
|
3186
|
-
},
|
|
3178
|
+
}, Ft = {
|
|
3187
3179
|
__name: "editor-tab-error-boundary",
|
|
3188
3180
|
props: {
|
|
3189
3181
|
tabComponent: { type: Object, default: null },
|
|
@@ -3198,13 +3190,13 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3198
3190
|
}
|
|
3199
3191
|
e({ save: r });
|
|
3200
3192
|
const i = I(!1);
|
|
3201
|
-
return
|
|
3193
|
+
return bs((n, o, l) => (console.error("Editor tab error:", n, l), i.value = !0, !1)), te(
|
|
3202
3194
|
() => t.tabComponent,
|
|
3203
3195
|
() => {
|
|
3204
3196
|
i.value = !1;
|
|
3205
3197
|
},
|
|
3206
3198
|
{ immediate: !0 }
|
|
3207
|
-
), (n, o) => i.value ? (p(), y("div",
|
|
3199
|
+
), (n, o) => i.value ? (p(), y("div", Dr, " Помилка завантаження вмісту. Переключіть таб або оновіть сторінку. ")) : (p(), N(Ht(s.tabComponent), he({
|
|
3208
3200
|
ref_key: "tabRef",
|
|
3209
3201
|
ref: a,
|
|
3210
3202
|
key: s.tabKey || "tab"
|
|
@@ -3212,16 +3204,16 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3212
3204
|
onUpdateDashboard: o[0] || (o[0] = (l) => n.$emit("update-dashboard"))
|
|
3213
3205
|
}), null, 16));
|
|
3214
3206
|
}
|
|
3215
|
-
},
|
|
3207
|
+
}, Cr = { class: "h-full flex flex-col bg-white shrink-0 !w-[400px] border rounded-xl overflow-hidden border-gray-200" }, zr = {
|
|
3216
3208
|
key: 0,
|
|
3217
3209
|
class: "flex flex-col min-h-0 flex-1"
|
|
3218
|
-
},
|
|
3210
|
+
}, Tr = { class: "flex items-center border-b border-gray-200 bg-white shrink-0 px-4 h-[49px]" }, Ir = { class: "flex items-center gap-6 min-w-0 -mb-[14px]" }, Sr = ["onClick"], Rr = {
|
|
3219
3211
|
key: 0,
|
|
3220
3212
|
class: "absolute bottom-0 left-0 right-0 h-0.5 bg-blue-600 rounded-full"
|
|
3221
|
-
},
|
|
3213
|
+
}, Lr = { class: "flex items-center gap-1 ml-auto shrink-0" }, Vr = {
|
|
3222
3214
|
key: 1,
|
|
3223
3215
|
class: "flex-1 min-h-0 overflow-auto px-4 py-4 [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
|
3224
|
-
},
|
|
3216
|
+
}, Wr = { key: 0 }, Nr = { key: 1 }, Er = { class: "p-4" }, jr = { class: "flex justify-end mt-4 gap-x-3" }, Br = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, Or = {
|
|
3225
3217
|
__name: "vs-editor-forms",
|
|
3226
3218
|
props: /* @__PURE__ */ Be({
|
|
3227
3219
|
selectedWidgetData: {
|
|
@@ -3244,7 +3236,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3244
3236
|
emits: /* @__PURE__ */ Be(["update-data"], ["update:selectedWidget"]),
|
|
3245
3237
|
setup(s, { emit: e }) {
|
|
3246
3238
|
var x, _;
|
|
3247
|
-
const t = M(() => import("@opengis/form")), a = (_ = (x = me()) == null ? void 0 : x.proxy) == null ? void 0 : _.$notify, r = we(), i = e, n = I(null), o = s, l = I(!1), c = I(!0), u = I(!1), f = I({}), v =
|
|
3239
|
+
const t = M(() => import("@opengis/form")), a = (_ = (x = me()) == null ? void 0 : x.proxy) == null ? void 0 : _.$notify, r = we(), i = e, n = I(null), o = s, l = I(!1), c = I(!0), u = I(!1), f = I({}), v = Ut(s, "selectedWidget"), g = [
|
|
3248
3240
|
"table",
|
|
3249
3241
|
"text",
|
|
3250
3242
|
"number",
|
|
@@ -3257,8 +3249,8 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3257
3249
|
try {
|
|
3258
3250
|
await H.delete(
|
|
3259
3251
|
`/bi-dashboard/${o.selectedDashboard}/${o.selectedWidgetData.name}`
|
|
3260
|
-
), r.hasRoute(
|
|
3261
|
-
name:
|
|
3252
|
+
), r.hasRoute(Y.EditorDashboard) ? r.push({
|
|
3253
|
+
name: Y.EditorDashboard,
|
|
3262
3254
|
params: { dashboardId: o.selectedDashboard }
|
|
3263
3255
|
}) : v.value = "", i("update-data"), l.value = !1, a({
|
|
3264
3256
|
type: "success",
|
|
@@ -3285,7 +3277,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3285
3277
|
((C = o.selectedWidgetData) == null ? void 0 : C.type) || ((R = (z = o.selectedWidgetData) == null ? void 0 : z.data) == null ? void 0 : R.type)
|
|
3286
3278
|
)) : !0;
|
|
3287
3279
|
});
|
|
3288
|
-
}),
|
|
3280
|
+
}), L = () => {
|
|
3289
3281
|
var D, m, C, z, R, q, ne, ie, de;
|
|
3290
3282
|
f.value = {
|
|
3291
3283
|
title: (D = o.selectedWidgetData) == null ? void 0 : D.title,
|
|
@@ -3406,12 +3398,12 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3406
3398
|
};
|
|
3407
3399
|
return (D, m) => {
|
|
3408
3400
|
var z, R, q, ne, ie, de, ve, ke, $e, _e, De;
|
|
3409
|
-
const C =
|
|
3401
|
+
const C = J("VsPopover");
|
|
3410
3402
|
return p(), y(U, null, [
|
|
3411
|
-
h("div",
|
|
3412
|
-
s.selectedWidgetData ? (p(), y("div",
|
|
3413
|
-
h("div",
|
|
3414
|
-
h("nav",
|
|
3403
|
+
h("div", Cr, [
|
|
3404
|
+
s.selectedWidgetData ? (p(), y("div", zr, [
|
|
3405
|
+
h("div", Tr, [
|
|
3406
|
+
h("nav", Ir, [
|
|
3415
3407
|
(p(!0), y(U, null, Z($.value, (G) => (p(), y("button", {
|
|
3416
3408
|
key: G.id,
|
|
3417
3409
|
type: "button",
|
|
@@ -3419,10 +3411,10 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3419
3411
|
onClick: (ue) => b.value = G.id
|
|
3420
3412
|
}, [
|
|
3421
3413
|
X(W(G.label) + " ", 1),
|
|
3422
|
-
b.value === G.id ? (p(), y("span",
|
|
3423
|
-
], 10,
|
|
3414
|
+
b.value === G.id ? (p(), y("span", Rr)) : A("", !0)
|
|
3415
|
+
], 10, Sr))), 128))
|
|
3424
3416
|
]),
|
|
3425
|
-
h("div",
|
|
3417
|
+
h("div", Lr, [
|
|
3426
3418
|
T(C, {
|
|
3427
3419
|
placement: "left",
|
|
3428
3420
|
trigger: "hover"
|
|
@@ -3437,7 +3429,7 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3437
3429
|
return (Ce = (ue = n.value) == null ? void 0 : ue.save) == null ? void 0 : Ce.call(ue);
|
|
3438
3430
|
})
|
|
3439
3431
|
}, [
|
|
3440
|
-
T(E(
|
|
3432
|
+
T(E(Vs), { class: "h-4 w-4" })
|
|
3441
3433
|
])
|
|
3442
3434
|
]),
|
|
3443
3435
|
default: j(() => [
|
|
@@ -3453,9 +3445,9 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3453
3445
|
h("button", {
|
|
3454
3446
|
type: "button",
|
|
3455
3447
|
class: "h-8 w-8 flex items-center justify-center rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
|
|
3456
|
-
onClick:
|
|
3448
|
+
onClick: L
|
|
3457
3449
|
}, [
|
|
3458
|
-
T(
|
|
3450
|
+
T(Kt, { class: "h-4 w-4" })
|
|
3459
3451
|
])
|
|
3460
3452
|
]),
|
|
3461
3453
|
default: j(() => [
|
|
@@ -3487,13 +3479,13 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3487
3479
|
key: 0,
|
|
3488
3480
|
title: (R = s.currentWidgetData) == null ? void 0 : R.title,
|
|
3489
3481
|
text: (q = s.currentWidgetData) == null ? void 0 : q.message
|
|
3490
|
-
}, null, 8, ["title", "text"])) : (p(), y("div",
|
|
3491
|
-
c.value && s.currentWidgetData ? (p(), y("div",
|
|
3492
|
-
T(
|
|
3482
|
+
}, null, 8, ["title", "text"])) : (p(), y("div", Vr, [
|
|
3483
|
+
c.value && s.currentWidgetData ? (p(), y("div", Wr, [
|
|
3484
|
+
T(Ft, {
|
|
3493
3485
|
ref_key: "tabPanelRef",
|
|
3494
3486
|
ref: n,
|
|
3495
3487
|
"tab-key": b.value,
|
|
3496
|
-
"tab-component": E(
|
|
3488
|
+
"tab-component": E(At)["vs-editor-form-" + b.value],
|
|
3497
3489
|
widgetName: (ne = s.selectedWidgetData) == null ? void 0 : ne.name,
|
|
3498
3490
|
dashboardId: s.selectedDashboard,
|
|
3499
3491
|
yamlValue: ((ie = s.selectedWidgetData) == null ? void 0 : ie.yml) || "",
|
|
@@ -3502,12 +3494,12 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3502
3494
|
columns: (ve = s.currentWidgetData) == null ? void 0 : ve.columns,
|
|
3503
3495
|
onUpdateDashboard: m[2] || (m[2] = (G) => D.$emit("update-data"))
|
|
3504
3496
|
}, null, 8, ["tab-key", "tab-component", "widgetName", "dashboardId", "yamlValue", "data", "controls", "columns"])
|
|
3505
|
-
])) : (p(), y("div",
|
|
3506
|
-
T(
|
|
3497
|
+
])) : (p(), y("div", Nr, [
|
|
3498
|
+
T(Ft, {
|
|
3507
3499
|
ref_key: "tabPanelRef",
|
|
3508
3500
|
ref: n,
|
|
3509
3501
|
"tab-key": b.value,
|
|
3510
|
-
"tab-component": E(
|
|
3502
|
+
"tab-component": E(At)["vs-editor-form-" + b.value],
|
|
3511
3503
|
widgetName: (ke = s.selectedWidgetData) == null ? void 0 : ke.name,
|
|
3512
3504
|
dashboardId: s.selectedDashboard,
|
|
3513
3505
|
yamlValue: (($e = s.selectedWidgetData) == null ? void 0 : $e.yml) || "",
|
|
@@ -3517,16 +3509,16 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3517
3509
|
onUpdateDashboard: m[3] || (m[3] = (G) => D.$emit("update-data"))
|
|
3518
3510
|
}, null, 8, ["tab-key", "tab-component", "widgetName", "dashboardId", "yamlValue", "data", "controls", "columns"])
|
|
3519
3511
|
])),
|
|
3520
|
-
T(
|
|
3512
|
+
T(Le, {
|
|
3521
3513
|
teleport: "#modal",
|
|
3522
3514
|
visible: l.value,
|
|
3523
3515
|
title: "Ви впевнені?",
|
|
3524
3516
|
onClose: m[5] || (m[5] = (G) => l.value = !1)
|
|
3525
3517
|
}, {
|
|
3526
3518
|
default: j(() => [
|
|
3527
|
-
h("div",
|
|
3519
|
+
h("div", Er, [
|
|
3528
3520
|
m[12] || (m[12] = h("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей віджет? ", -1)),
|
|
3529
|
-
h("div",
|
|
3521
|
+
h("div", jr, [
|
|
3530
3522
|
h("button", {
|
|
3531
3523
|
type: "button",
|
|
3532
3524
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
|
@@ -3550,14 +3542,14 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3550
3542
|
class: "p-4"
|
|
3551
3543
|
}))
|
|
3552
3544
|
]),
|
|
3553
|
-
T(
|
|
3545
|
+
T(Le, {
|
|
3554
3546
|
teleport: "#modal",
|
|
3555
3547
|
visible: u.value,
|
|
3556
3548
|
title: "Редагувати віджет",
|
|
3557
3549
|
onClose: m[8] || (m[8] = (G) => u.value = !1)
|
|
3558
3550
|
}, {
|
|
3559
3551
|
footer: j(() => [
|
|
3560
|
-
h("div",
|
|
3552
|
+
h("div", Br, [
|
|
3561
3553
|
h("button", {
|
|
3562
3554
|
style: { border: "1px solid #000" },
|
|
3563
3555
|
onClick: m[7] || (m[7] = (G) => u.value = !1),
|
|
@@ -3582,10 +3574,10 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3582
3574
|
], 64);
|
|
3583
3575
|
};
|
|
3584
3576
|
}
|
|
3585
|
-
},
|
|
3577
|
+
}, Pr = { class: "overflow-hidden flex flex-col min-h-[480px]" }, Ar = { class: "flex-1 flex min-h-0 gap-4" }, Fr = { class: "flex-1 min-w-0 pb-4 overflow-auto bg-gray-50/50" }, qr = {
|
|
3586
3578
|
key: 1,
|
|
3587
3579
|
class: "flex items-center justify-center h-full"
|
|
3588
|
-
},
|
|
3580
|
+
}, Mr = { class: "w-[400px] shrink-0 flex flex-col" }, Ur = {
|
|
3589
3581
|
__name: "vs-widget-editor-panel",
|
|
3590
3582
|
props: {
|
|
3591
3583
|
selectedWidget: { type: String, default: "" },
|
|
@@ -3621,9 +3613,9 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3621
3613
|
get: () => t.selectedWidget,
|
|
3622
3614
|
set: (l) => a("update:selectedWidget", l)
|
|
3623
3615
|
});
|
|
3624
|
-
return (l, c) => (p(), y("div",
|
|
3625
|
-
h("div",
|
|
3626
|
-
h("div",
|
|
3616
|
+
return (l, c) => (p(), y("div", Pr, [
|
|
3617
|
+
h("div", Ar, [
|
|
3618
|
+
h("div", Fr, [
|
|
3627
3619
|
r.value ? (p(), N(Oe, {
|
|
3628
3620
|
key: 0,
|
|
3629
3621
|
dashboard: s.selectedDashboard,
|
|
@@ -3633,12 +3625,12 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3633
3625
|
"prefetched-data": r.value,
|
|
3634
3626
|
"filter-u-rl": void 0,
|
|
3635
3627
|
class: "max-h-full"
|
|
3636
|
-
}, null, 8, ["dashboard", "widget", "selected-widget", "dashboard-widgets", "prefetched-data"])) : (p(), y("div",
|
|
3628
|
+
}, null, 8, ["dashboard", "widget", "selected-widget", "dashboard-widgets", "prefetched-data"])) : (p(), y("div", qr, [...c[1] || (c[1] = [
|
|
3637
3629
|
h("span", { class: "text-sm text-gray-400" }, "Завантаження...", -1)
|
|
3638
3630
|
])]))
|
|
3639
3631
|
]),
|
|
3640
|
-
h("div",
|
|
3641
|
-
T(
|
|
3632
|
+
h("div", Mr, [
|
|
3633
|
+
T(Or, {
|
|
3642
3634
|
selectedWidget: o.value,
|
|
3643
3635
|
"onUpdate:selectedWidget": c[0] || (c[0] = (u) => o.value = u),
|
|
3644
3636
|
selectedWidgetData: s.selectedWidgetData,
|
|
@@ -3650,30 +3642,30 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3650
3642
|
])
|
|
3651
3643
|
]));
|
|
3652
3644
|
}
|
|
3653
|
-
},
|
|
3645
|
+
}, Gr = {
|
|
3654
3646
|
__name: "icon-grid",
|
|
3655
3647
|
setup(s) {
|
|
3656
3648
|
return (e, t) => (p(), N(E(Rs), he(e.$attrs, { size: 24 }), null, 16));
|
|
3657
3649
|
}
|
|
3658
|
-
},
|
|
3650
|
+
}, Hr = {
|
|
3659
3651
|
__name: "icon-table",
|
|
3660
3652
|
setup(s) {
|
|
3661
3653
|
return (e, t) => (p(), N(E(Ws), he(e.$attrs, { size: 24 }), null, 16));
|
|
3662
3654
|
}
|
|
3663
|
-
},
|
|
3655
|
+
}, Zr = {
|
|
3664
3656
|
__name: "icon-more",
|
|
3665
3657
|
setup(s) {
|
|
3666
3658
|
return (e, t) => (p(), N(E(Ts), he(e.$attrs, { size: 24 }), null, 16));
|
|
3667
3659
|
}
|
|
3668
|
-
},
|
|
3660
|
+
}, Qr = M(() => import("@opengis/form")), Xr = {
|
|
3669
3661
|
components: {
|
|
3670
|
-
VsModal:
|
|
3671
|
-
VForm:
|
|
3662
|
+
VsModal: Le,
|
|
3663
|
+
VForm: Qr,
|
|
3672
3664
|
deleteIcon: Jt,
|
|
3673
|
-
editIcon:
|
|
3674
|
-
IconGrid:
|
|
3675
|
-
IconMore:
|
|
3676
|
-
IconTable:
|
|
3665
|
+
editIcon: Kt,
|
|
3666
|
+
IconGrid: Gr,
|
|
3667
|
+
IconMore: Zr,
|
|
3668
|
+
IconTable: Hr
|
|
3677
3669
|
},
|
|
3678
3670
|
watch: {
|
|
3679
3671
|
dashboardData: {
|
|
@@ -3871,14 +3863,14 @@ const kr = { class: "space-y-4" }, $r = {
|
|
|
3871
3863
|
document.body.click();
|
|
3872
3864
|
}
|
|
3873
3865
|
}
|
|
3874
|
-
},
|
|
3866
|
+
}, Yr = {
|
|
3875
3867
|
key: 0,
|
|
3876
3868
|
class: "flex items-center gap-4"
|
|
3877
|
-
},
|
|
3878
|
-
function
|
|
3879
|
-
const n =
|
|
3869
|
+
}, Jr = { class: "h-[30px] w-[30px] flex items-center justify-center" }, Kr = { class: "flex flex-col items-start -ml-2 -mr-2" }, en = { class: "p-4" }, tn = { class: "flex justify-end mt-4 gap-x-3" }, sn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, an = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" };
|
|
3870
|
+
function rn(s, e, t, a, r, i) {
|
|
3871
|
+
const n = J("IconGrid"), o = J("VsPopover"), l = J("IconMore"), c = J("VsModal"), u = J("VForm");
|
|
3880
3872
|
return p(), y("div", null, [
|
|
3881
|
-
t.selected ? (p(), y("div",
|
|
3873
|
+
t.selected ? (p(), y("div", Yr, [
|
|
3882
3874
|
T(o, {
|
|
3883
3875
|
placement: "left",
|
|
3884
3876
|
trigger: "hover"
|
|
@@ -3903,12 +3895,12 @@ function ln(s, e, t, a, r, i) {
|
|
|
3903
3895
|
reference: j(() => [
|
|
3904
3896
|
T(o, { placement: "bottom-left" }, {
|
|
3905
3897
|
reference: j(() => [
|
|
3906
|
-
h("button",
|
|
3898
|
+
h("button", Jr, [
|
|
3907
3899
|
T(l, { class: "h-[20px]" })
|
|
3908
3900
|
])
|
|
3909
3901
|
]),
|
|
3910
3902
|
default: j(() => [
|
|
3911
|
-
h("div",
|
|
3903
|
+
h("div", Kr, [
|
|
3912
3904
|
h("button", {
|
|
3913
3905
|
onClick: e[1] || (e[1] = (f) => {
|
|
3914
3906
|
i.closePopover(), r.isFormEdit = !0;
|
|
@@ -3940,9 +3932,9 @@ function ln(s, e, t, a, r, i) {
|
|
|
3940
3932
|
onClose: e[5] || (e[5] = (f) => r.isDeleteConfirm = !1)
|
|
3941
3933
|
}, {
|
|
3942
3934
|
default: j(() => [
|
|
3943
|
-
h("div",
|
|
3935
|
+
h("div", en, [
|
|
3944
3936
|
e[16] || (e[16] = h("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей дашборд? ", -1)),
|
|
3945
|
-
h("div",
|
|
3937
|
+
h("div", tn, [
|
|
3946
3938
|
h("button", {
|
|
3947
3939
|
type: "button",
|
|
3948
3940
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
|
@@ -3965,7 +3957,7 @@ function ln(s, e, t, a, r, i) {
|
|
|
3965
3957
|
onClose: e[9] || (e[9] = (f) => r.isFormEdit = !1)
|
|
3966
3958
|
}, {
|
|
3967
3959
|
footer: j(() => [
|
|
3968
|
-
h("div",
|
|
3960
|
+
h("div", sn, [
|
|
3969
3961
|
h("button", {
|
|
3970
3962
|
style: { border: "1px solid #000" },
|
|
3971
3963
|
onClick: e[7] || (e[7] = (f) => r.isFormEdit = !1),
|
|
@@ -3994,7 +3986,7 @@ function ln(s, e, t, a, r, i) {
|
|
|
3994
3986
|
onClose: e[13] || (e[13] = (f) => r.isFormGrid = !1)
|
|
3995
3987
|
}, {
|
|
3996
3988
|
footer: j(() => [
|
|
3997
|
-
h("div",
|
|
3989
|
+
h("div", an, [
|
|
3998
3990
|
h("button", {
|
|
3999
3991
|
style: { border: "1px solid #000" },
|
|
4000
3992
|
onClick: e[11] || (e[11] = (f) => r.isFormGrid = !1),
|
|
@@ -4018,16 +4010,16 @@ function ln(s, e, t, a, r, i) {
|
|
|
4018
4010
|
}, 8, ["visible"])
|
|
4019
4011
|
]);
|
|
4020
4012
|
}
|
|
4021
|
-
const
|
|
4013
|
+
const nn = /* @__PURE__ */ Q(Xr, [["render", rn]]), on = { class: "flex-1 min-w-0 flex flex-col overflow-auto" }, ln = { class: "max-w-7xl mx-auto px-6 w-full flex flex-col min-h-0 flex-1" }, cn = { class: "relative z-10 shrink-0 mt-4 mb-6" }, dn = { class: "flex items-center text-sm text-gray-600" }, un = {
|
|
4022
4014
|
key: 0,
|
|
4023
4015
|
class: "flex items-center justify-between gap-4 mt-3"
|
|
4024
|
-
},
|
|
4016
|
+
}, hn = { class: "min-w-0" }, pn = { class: "text-2xl font-bold text-gray-900" }, fn = {
|
|
4025
4017
|
key: 0,
|
|
4026
4018
|
class: "mt-1.5 text-sm text-gray-600"
|
|
4027
|
-
},
|
|
4019
|
+
}, gn = { class: "flex items-center shrink-0" }, mn = {
|
|
4028
4020
|
key: 1,
|
|
4029
4021
|
class: "grid flex-grow w-full grid-cols-12 gap-4 py-4 pr-[15px] min-h-0 overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
|
4030
|
-
},
|
|
4022
|
+
}, bn = {
|
|
4031
4023
|
__name: "vs-editor",
|
|
4032
4024
|
props: {
|
|
4033
4025
|
prefix: String,
|
|
@@ -4038,8 +4030,8 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4038
4030
|
emits: ["back"],
|
|
4039
4031
|
setup(s, { emit: e }) {
|
|
4040
4032
|
const t = s;
|
|
4041
|
-
|
|
4042
|
-
const a = e, r = we(), i = F(() => r.hasRoute(
|
|
4033
|
+
He(t.prefix || "/api");
|
|
4034
|
+
const a = e, r = we(), i = F(() => r.hasRoute(Y.EditorWidget)), n = Zt("biClearDashboard", null), o = I(t.initialDashboardId || ""), l = I(t.initialWidgetId || ""), c = I(null), u = I(null), f = I(null);
|
|
4043
4035
|
te(() => t.initialWidgetId, (w) => {
|
|
4044
4036
|
l.value = w || "";
|
|
4045
4037
|
});
|
|
@@ -4064,26 +4056,26 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4064
4056
|
);
|
|
4065
4057
|
function b(w) {
|
|
4066
4058
|
i.value ? r.push({
|
|
4067
|
-
name:
|
|
4059
|
+
name: Y.EditorWidget,
|
|
4068
4060
|
params: { dashboardId: o.value, widgetId: w }
|
|
4069
4061
|
}) : l.value = w;
|
|
4070
4062
|
}
|
|
4071
4063
|
function k() {
|
|
4072
4064
|
i.value ? r.push({
|
|
4073
|
-
name:
|
|
4065
|
+
name: Y.EditorDashboard,
|
|
4074
4066
|
params: { dashboardId: o.value }
|
|
4075
4067
|
}) : l.value = "";
|
|
4076
4068
|
}
|
|
4077
4069
|
function $() {
|
|
4078
|
-
i.value ? r.push({ name:
|
|
4070
|
+
i.value ? r.push({ name: Y.Editor }) : (typeof n == "function" && n(), a("back"));
|
|
4079
4071
|
}
|
|
4080
|
-
const
|
|
4072
|
+
const L = F(() => {
|
|
4081
4073
|
var x, _, D, m, C;
|
|
4082
|
-
const d = [i.value ? { label: "Дашборди", to: { name:
|
|
4074
|
+
const d = [i.value ? { label: "Дашборди", to: { name: Y.Editor } } : { label: "Дашборди", onClick: $ }];
|
|
4083
4075
|
if ((x = c.value) != null && x.title || o.value) {
|
|
4084
4076
|
const z = ((_ = c.value) == null ? void 0 : _.title) || o.value || "Редактор";
|
|
4085
4077
|
!!l.value ? d.push(
|
|
4086
|
-
i.value ? { label: z, to: { name:
|
|
4078
|
+
i.value ? { label: z, to: { name: Y.EditorDashboard, params: { dashboardId: o.value } } } : { label: z, onClick: () => {
|
|
4087
4079
|
l.value = "";
|
|
4088
4080
|
} }
|
|
4089
4081
|
) : d.push({ label: z });
|
|
@@ -4104,21 +4096,21 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4104
4096
|
return p(), y("div", {
|
|
4105
4097
|
class: ee(["flex w-full h-full", [s.customClass]])
|
|
4106
4098
|
}, [
|
|
4107
|
-
h("div",
|
|
4108
|
-
h("div",
|
|
4109
|
-
h("div",
|
|
4110
|
-
h("div",
|
|
4099
|
+
h("div", on, [
|
|
4100
|
+
h("div", ln, [
|
|
4101
|
+
h("div", cn, [
|
|
4102
|
+
h("div", dn, [
|
|
4111
4103
|
T(Yt, {
|
|
4112
|
-
items:
|
|
4104
|
+
items: L.value,
|
|
4113
4105
|
compact: ""
|
|
4114
4106
|
}, null, 8, ["items"])
|
|
4115
4107
|
]),
|
|
4116
|
-
o.value && c.value ? (p(), y("div",
|
|
4117
|
-
h("div",
|
|
4118
|
-
h("h1",
|
|
4119
|
-
c.value.description ? (p(), y("p",
|
|
4108
|
+
o.value && c.value ? (p(), y("div", un, [
|
|
4109
|
+
h("div", hn, [
|
|
4110
|
+
h("h1", pn, W(c.value.title || o.value), 1),
|
|
4111
|
+
c.value.description ? (p(), y("p", fn, W(c.value.description), 1)) : A("", !0)
|
|
4120
4112
|
]),
|
|
4121
|
-
h("div",
|
|
4113
|
+
h("div", gn, [
|
|
4122
4114
|
l.value ? (p(), y("button", {
|
|
4123
4115
|
key: 0,
|
|
4124
4116
|
type: "button",
|
|
@@ -4128,7 +4120,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4128
4120
|
T(E(Es), { class: "w-4 h-4" }),
|
|
4129
4121
|
d[5] || (d[5] = X(" Закрити ", -1))
|
|
4130
4122
|
])) : (p(), y(U, { key: 1 }, [
|
|
4131
|
-
T(
|
|
4123
|
+
T(nn, {
|
|
4132
4124
|
selected: o.value,
|
|
4133
4125
|
"onUpdate:selected": d[0] || (d[0] = (D) => o.value = D),
|
|
4134
4126
|
dashboardData: c.value,
|
|
@@ -4148,7 +4140,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4148
4140
|
h("span", { class: "leading-none" }, "+", -1),
|
|
4149
4141
|
X(" Створити віджет ", -1)
|
|
4150
4142
|
])]),
|
|
4151
|
-
o.value ? (p(), N(
|
|
4143
|
+
o.value ? (p(), N(ja, {
|
|
4152
4144
|
key: 0,
|
|
4153
4145
|
ref_key: "createWidgetRef",
|
|
4154
4146
|
ref: f,
|
|
@@ -4161,7 +4153,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4161
4153
|
])
|
|
4162
4154
|
])) : A("", !0)
|
|
4163
4155
|
]),
|
|
4164
|
-
l.value && c.value ? (p(), N(
|
|
4156
|
+
l.value && c.value ? (p(), N(Ur, {
|
|
4165
4157
|
key: 0,
|
|
4166
4158
|
"selected-widget": l.value,
|
|
4167
4159
|
"onUpdate:selectedWidget": d[2] || (d[2] = (D) => l.value = D),
|
|
@@ -4170,7 +4162,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4170
4162
|
"selected-dashboard": o.value,
|
|
4171
4163
|
"dashboard-widgets": c.value.widgets || [],
|
|
4172
4164
|
onUpdateData: v
|
|
4173
|
-
}, null, 8, ["selected-widget", "selected-widget-data", "current-widget-data", "selected-dashboard", "dashboard-widgets"])) : (p(), y("div",
|
|
4165
|
+
}, null, 8, ["selected-widget", "selected-widget-data", "current-widget-data", "selected-dashboard", "dashboard-widgets"])) : (p(), y("div", mn, [
|
|
4174
4166
|
c.value ? (p(!0), y(U, { key: 1 }, Z(c.value.panels, (D, m) => {
|
|
4175
4167
|
var C;
|
|
4176
4168
|
return p(), y("div", {
|
|
@@ -4213,7 +4205,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4213
4205
|
], 2);
|
|
4214
4206
|
};
|
|
4215
4207
|
}
|
|
4216
|
-
},
|
|
4208
|
+
}, xn = /* @__PURE__ */ Q(bn, [["__scopeId", "data-v-f586e5b0"]]), yn = { class: "w-full h-screen" }, wn = /* @__PURE__ */ ge({
|
|
4217
4209
|
__name: "vs-editor-page",
|
|
4218
4210
|
props: {
|
|
4219
4211
|
prefix: { default: "/api" },
|
|
@@ -4222,8 +4214,8 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4222
4214
|
},
|
|
4223
4215
|
emits: ["back"],
|
|
4224
4216
|
setup(s) {
|
|
4225
|
-
return (e, t) => (p(), y("div",
|
|
4226
|
-
T(
|
|
4217
|
+
return (e, t) => (p(), y("div", yn, [
|
|
4218
|
+
T(xn, {
|
|
4227
4219
|
customClass: "h-full w-full",
|
|
4228
4220
|
prefix: s.prefix,
|
|
4229
4221
|
"initial-dashboard-id": s.dashboardId,
|
|
@@ -4232,17 +4224,17 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4232
4224
|
}, null, 8, ["prefix", "initial-dashboard-id", "initial-widget-id"])
|
|
4233
4225
|
]));
|
|
4234
4226
|
}
|
|
4235
|
-
}),
|
|
4227
|
+
}), vn = { class: "relative group h-full" }, kn = { class: "flex items-start gap-3 flex-1 min-h-0" }, $n = { class: "p-2 bg-blue-50 rounded-lg group-hover:bg-blue-100 transition-colors shrink-0" }, _n = { class: "flex-1 min-w-0 flex flex-col min-h-0" }, Dn = { class: "font-semibold text-gray-900 mb-1 truncate" }, Cn = {
|
|
4236
4228
|
key: 0,
|
|
4237
4229
|
class: "text-sm text-gray-600 mb-2 line-clamp-2 min-h-10"
|
|
4238
|
-
},
|
|
4230
|
+
}, zn = {
|
|
4239
4231
|
key: 1,
|
|
4240
4232
|
class: "text-sm text-gray-600 mb-2 line-clamp-2 min-h-10 invisible",
|
|
4241
4233
|
"aria-hidden": "true"
|
|
4242
|
-
},
|
|
4234
|
+
}, Tn = {
|
|
4243
4235
|
key: 2,
|
|
4244
4236
|
class: "text-sm text-gray-400 mt-1 shrink-0"
|
|
4245
|
-
},
|
|
4237
|
+
}, In = {
|
|
4246
4238
|
__name: "dashboard-card",
|
|
4247
4239
|
props: {
|
|
4248
4240
|
title: String,
|
|
@@ -4257,37 +4249,37 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4257
4249
|
setup(s) {
|
|
4258
4250
|
const e = s, t = we(), a = I(!1);
|
|
4259
4251
|
function r() {
|
|
4260
|
-
e.dashboardRouteName && (t.hasRoute(
|
|
4261
|
-
name:
|
|
4252
|
+
e.dashboardRouteName && (t.hasRoute(Y.EditorDashboard) ? t.push({
|
|
4253
|
+
name: Y.EditorDashboard,
|
|
4262
4254
|
params: { dashboardId: e.dashboardRouteName }
|
|
4263
4255
|
}) : e.onOpenEditor ? e.onOpenEditor(e.dashboardRouteName) : t.push({ path: "/editor", query: { dashboard: e.dashboardRouteName } }));
|
|
4264
4256
|
}
|
|
4265
4257
|
function i(n) {
|
|
4266
4258
|
n.target.closest(".dashboard-card-menu") || (a.value = !1);
|
|
4267
4259
|
}
|
|
4268
|
-
return le(() => document.addEventListener("click", i)), Ue(() => document.removeEventListener("click", i)), (n, o) => (p(), y("div",
|
|
4260
|
+
return le(() => document.addEventListener("click", i)), Ue(() => document.removeEventListener("click", i)), (n, o) => (p(), y("div", vn, [
|
|
4269
4261
|
h("button", {
|
|
4270
4262
|
type: "button",
|
|
4271
4263
|
class: "w-full h-full bg-white border border-gray-200 rounded-lg p-6 hover:shadow-md hover:border-blue-200 transition-all text-left animate-fade-in flex flex-col",
|
|
4272
4264
|
onClick: r
|
|
4273
4265
|
}, [
|
|
4274
|
-
h("div",
|
|
4275
|
-
h("div",
|
|
4266
|
+
h("div", kn, [
|
|
4267
|
+
h("div", $n, [
|
|
4276
4268
|
T(E(Ss), {
|
|
4277
4269
|
size: 24,
|
|
4278
4270
|
class: "w-5 h-5 text-blue-600"
|
|
4279
4271
|
})
|
|
4280
4272
|
]),
|
|
4281
|
-
h("div",
|
|
4282
|
-
h("h3",
|
|
4283
|
-
s.description ? (p(), y("p",
|
|
4284
|
-
s.widgetCount != null ? (p(), y("p",
|
|
4273
|
+
h("div", _n, [
|
|
4274
|
+
h("h3", Dn, W(s.title), 1),
|
|
4275
|
+
s.description ? (p(), y("p", Cn, W(s.description), 1)) : (p(), y("p", zn, " ")),
|
|
4276
|
+
s.widgetCount != null ? (p(), y("p", Tn, W(s.widgetCount) + " віджетів ", 1)) : A("", !0)
|
|
4285
4277
|
])
|
|
4286
4278
|
])
|
|
4287
4279
|
])
|
|
4288
4280
|
]));
|
|
4289
4281
|
}
|
|
4290
|
-
},
|
|
4282
|
+
}, Sn = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-716ced89"]]), Rn = [
|
|
4291
4283
|
{ type: "Text", key: "name", label: "Назва", validators: ["required"], original: { type: "Text", ua: "Назва", col: 8 } },
|
|
4292
4284
|
{ type: "Text", key: "title", label: "Заголовок", validators: ["required"], original: { type: "Text", ua: "Титул", col: 8 } },
|
|
4293
4285
|
{ type: "Text", key: "description", label: "Опис", original: { type: "Text", ua: "Назва", col: 8 } },
|
|
@@ -4297,26 +4289,26 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
|
|
|
4297
4289
|
{ type: "Text", key: "category", label: "Категорія", original: { type: "Text", ua: "Категорія", col: 8 } },
|
|
4298
4290
|
{ type: "Switcher", key: "public", label: "Публічний", original: { type: "Text", ua: "Назва", col: 8 } }
|
|
4299
4291
|
];
|
|
4300
|
-
function
|
|
4292
|
+
function Ln(s) {
|
|
4301
4293
|
return !Array.isArray(s) || s.length === 0 ? {} : s.reduce((e, t) => {
|
|
4302
4294
|
if (!t || t.key == null) return e;
|
|
4303
4295
|
const { key: a, ...r } = t;
|
|
4304
4296
|
return e[a] = r, e;
|
|
4305
4297
|
}, {});
|
|
4306
4298
|
}
|
|
4307
|
-
const
|
|
4299
|
+
const Vn = { class: "flex-1 bg-gray-50" }, Wn = { class: "max-w-7xl mx-auto px-6 py-8" }, Nn = { class: "mb-6" }, En = { class: "flex items-center justify-between mb-6" }, jn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, Bn = { class: "flex items-center space-x-4" }, On = { class: "flex-1 relative" }, Pn = {
|
|
4308
4300
|
key: 0,
|
|
4309
4301
|
class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"
|
|
4310
|
-
},
|
|
4302
|
+
}, An = {
|
|
4311
4303
|
key: 1,
|
|
4312
4304
|
class: "flex flex-col items-center justify-center py-20 text-center"
|
|
4313
|
-
},
|
|
4305
|
+
}, Fn = { class: "mt-1 text-sm text-gray-400" }, qn = { class: "font-medium text-gray-500" }, Mn = /* @__PURE__ */ ge({
|
|
4314
4306
|
__name: "all-dashboards-page",
|
|
4315
4307
|
props: {
|
|
4316
4308
|
prefix: {}
|
|
4317
4309
|
},
|
|
4318
4310
|
setup(s) {
|
|
4319
|
-
const e = M(() => import("@opengis/form")), t =
|
|
4311
|
+
const e = M(() => import("@opengis/form")), t = Ln(Rn), a = I([]), r = I([]), i = we(), n = Zt("biSetDashboard", void 0), o = s, l = I(null), c = I(!1), u = I({}), f = I(""), v = F(() => {
|
|
4320
4312
|
const d = f.value.trim().toLowerCase();
|
|
4321
4313
|
return d ? a.value.filter((x) => x.title.toLowerCase().includes(d)) : a.value;
|
|
4322
4314
|
});
|
|
@@ -4349,8 +4341,8 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4349
4341
|
type: "success",
|
|
4350
4342
|
title: "Успішно!",
|
|
4351
4343
|
message: "Дашборд створено успішно"
|
|
4352
|
-
}), i.hasRoute(
|
|
4353
|
-
name:
|
|
4344
|
+
}), i.hasRoute(Y.EditorDashboard) ? i.push({
|
|
4345
|
+
name: Y.EditorDashboard,
|
|
4354
4346
|
params: { dashboardId: C }
|
|
4355
4347
|
}) : n ? n(C) : await g();
|
|
4356
4348
|
} catch {
|
|
@@ -4362,7 +4354,7 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4362
4354
|
}
|
|
4363
4355
|
}
|
|
4364
4356
|
le(() => {
|
|
4365
|
-
|
|
4357
|
+
He(o.prefix || "/api"), g();
|
|
4366
4358
|
});
|
|
4367
4359
|
const k = I(1), $ = () => {
|
|
4368
4360
|
const d = window.innerWidth;
|
|
@@ -4373,19 +4365,19 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4373
4365
|
}), Ue(() => {
|
|
4374
4366
|
window.removeEventListener("resize", $);
|
|
4375
4367
|
});
|
|
4376
|
-
const
|
|
4368
|
+
const L = (d) => d ? d.trim().length > 70 ? 2 : 1 : 0, w = (d) => {
|
|
4377
4369
|
const x = k.value || 1, D = Math.floor(d / x) * x, m = D + x, C = v.value.slice(D, m);
|
|
4378
4370
|
let z = 0;
|
|
4379
4371
|
for (const R of C) {
|
|
4380
|
-
const q =
|
|
4372
|
+
const q = L(R.description ?? null);
|
|
4381
4373
|
if (q > z && (z = q), z === 2) break;
|
|
4382
4374
|
}
|
|
4383
4375
|
return z;
|
|
4384
4376
|
};
|
|
4385
|
-
return I("grid"), (d, x) => (p(), y("div",
|
|
4386
|
-
h("div",
|
|
4387
|
-
h("div",
|
|
4388
|
-
h("div",
|
|
4377
|
+
return I("grid"), (d, x) => (p(), y("div", Vn, [
|
|
4378
|
+
h("div", Wn, [
|
|
4379
|
+
h("div", Nn, [
|
|
4380
|
+
h("div", En, [
|
|
4389
4381
|
x[6] || (x[6] = h("div", null, [
|
|
4390
4382
|
h("h1", { class: "text-3xl font-bold text-gray-900" }, "Дашборди"),
|
|
4391
4383
|
h("p", { class: "mt-2 text-gray-600" }, " Керуйте та переглядайте свої аналітичні дашборди ")
|
|
@@ -4402,14 +4394,14 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4402
4394
|
x[5] || (x[5] = h("span", null, "Новий дашборд", -1))
|
|
4403
4395
|
])
|
|
4404
4396
|
]),
|
|
4405
|
-
T(
|
|
4397
|
+
T(Le, {
|
|
4406
4398
|
teleport: "#modal",
|
|
4407
4399
|
visible: c.value,
|
|
4408
4400
|
title: "Створити дашборд",
|
|
4409
4401
|
onClose: x[3] || (x[3] = (_) => c.value = !1)
|
|
4410
4402
|
}, {
|
|
4411
4403
|
footer: j(() => [
|
|
4412
|
-
h("div",
|
|
4404
|
+
h("div", jn, [
|
|
4413
4405
|
h("button", {
|
|
4414
4406
|
type: "button",
|
|
4415
4407
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border border-gray-200 rounded-lg hover:bg-gray-100 duration-300",
|
|
@@ -4433,29 +4425,29 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4433
4425
|
]),
|
|
4434
4426
|
_: 1
|
|
4435
4427
|
}, 8, ["visible"]),
|
|
4436
|
-
h("div",
|
|
4437
|
-
h("div",
|
|
4438
|
-
T(E(
|
|
4428
|
+
h("div", Bn, [
|
|
4429
|
+
h("div", On, [
|
|
4430
|
+
T(E(Vt), {
|
|
4439
4431
|
size: 24,
|
|
4440
4432
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
|
|
4441
4433
|
}),
|
|
4442
|
-
|
|
4434
|
+
Gt(h("input", {
|
|
4443
4435
|
"onUpdate:modelValue": x[4] || (x[4] = (_) => f.value = _),
|
|
4444
4436
|
type: "text",
|
|
4445
4437
|
placeholder: "Пошук дашбордів...",
|
|
4446
4438
|
class: "w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
4447
4439
|
}, null, 512), [
|
|
4448
|
-
[
|
|
4440
|
+
[xs, f.value]
|
|
4449
4441
|
])
|
|
4450
4442
|
])
|
|
4451
4443
|
])
|
|
4452
4444
|
]),
|
|
4453
|
-
v.value.length ? (p(), y("div",
|
|
4445
|
+
v.value.length ? (p(), y("div", Pn, [
|
|
4454
4446
|
(p(!0), y(U, null, Z(v.value, (_, D) => (p(), y("div", {
|
|
4455
4447
|
key: _.routeName,
|
|
4456
4448
|
class: "cursor-pointer h-full"
|
|
4457
4449
|
}, [
|
|
4458
|
-
T(
|
|
4450
|
+
T(Sn, {
|
|
4459
4451
|
title: _.title,
|
|
4460
4452
|
description: _.description,
|
|
4461
4453
|
modified: _.modified,
|
|
@@ -4465,29 +4457,29 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4465
4457
|
"on-open-editor": E(n)
|
|
4466
4458
|
}, null, 8, ["title", "description", "modified", "name", "reserveLines", "dashboard-route-name", "on-open-editor"])
|
|
4467
4459
|
]))), 128))
|
|
4468
|
-
])) : (p(), y("div",
|
|
4469
|
-
T(E(
|
|
4460
|
+
])) : (p(), y("div", An, [
|
|
4461
|
+
T(E(Vt), {
|
|
4470
4462
|
size: 48,
|
|
4471
4463
|
class: "text-gray-300 mb-4"
|
|
4472
4464
|
}),
|
|
4473
4465
|
x[9] || (x[9] = h("p", { class: "text-lg font-medium text-gray-500" }, "Дашбордів не знайдено", -1)),
|
|
4474
|
-
h("p",
|
|
4466
|
+
h("p", Fn, [
|
|
4475
4467
|
x[7] || (x[7] = X(" За запитом «", -1)),
|
|
4476
|
-
h("span",
|
|
4468
|
+
h("span", qn, W(f.value), 1),
|
|
4477
4469
|
x[8] || (x[8] = X("» нічого не знайдено. Спробуйте змінити пошуковий запит. ", -1))
|
|
4478
4470
|
])
|
|
4479
4471
|
]))
|
|
4480
4472
|
])
|
|
4481
4473
|
]));
|
|
4482
4474
|
}
|
|
4483
|
-
}),
|
|
4475
|
+
}), wo = /* @__PURE__ */ ge({
|
|
4484
4476
|
__name: "editor-root-page",
|
|
4485
4477
|
props: {
|
|
4486
4478
|
prefix: { default: "/api" }
|
|
4487
4479
|
},
|
|
4488
4480
|
setup(s) {
|
|
4489
|
-
const e = s, t = F(() => e.prefix), a = we(), r =
|
|
4490
|
-
() => a.hasRoute(
|
|
4481
|
+
const e = s, t = F(() => e.prefix), a = we(), r = ws(), i = F(
|
|
4482
|
+
() => a.hasRoute(Y.EditorDashboard)
|
|
4491
4483
|
), n = I("");
|
|
4492
4484
|
le(() => {
|
|
4493
4485
|
var l;
|
|
@@ -4497,19 +4489,19 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
|
|
|
4497
4489
|
}
|
|
4498
4490
|
});
|
|
4499
4491
|
const o = F(() => n.value.length > 0);
|
|
4500
|
-
return
|
|
4492
|
+
return Qe("biSetDashboard", (l) => {
|
|
4501
4493
|
n.value = l || "";
|
|
4502
|
-
}),
|
|
4494
|
+
}), Qe("biClearDashboard", () => {
|
|
4503
4495
|
n.value = "";
|
|
4504
|
-
}),
|
|
4505
|
-
const u =
|
|
4496
|
+
}), Qe("biSelectedDashboardId", ys(n)), (l, c) => {
|
|
4497
|
+
const u = J("router-view");
|
|
4506
4498
|
return i.value ? (p(), N(u, { key: 0 })) : (p(), y(U, { key: 1 }, [
|
|
4507
|
-
o.value ? (p(), N(
|
|
4499
|
+
o.value ? (p(), N(wn, {
|
|
4508
4500
|
key: `editor-${n.value}`,
|
|
4509
4501
|
prefix: t.value,
|
|
4510
4502
|
"dashboard-id": n.value,
|
|
4511
4503
|
onBack: c[0] || (c[0] = (f) => n.value = "")
|
|
4512
|
-
}, null, 8, ["prefix", "dashboard-id"])) : (p(), N(
|
|
4504
|
+
}, null, 8, ["prefix", "dashboard-id"])) : (p(), N(Mn, {
|
|
4513
4505
|
key: 0,
|
|
4514
4506
|
prefix: t.value
|
|
4515
4507
|
}, null, 8, ["prefix"]))
|
|
@@ -4523,15 +4515,15 @@ function ce(s, e) {
|
|
|
4523
4515
|
const a = Number(t);
|
|
4524
4516
|
return Number.isNaN(a) ? String(t) : new Intl.NumberFormat("en", e ?? { notation: "compact" }).format(a);
|
|
4525
4517
|
}
|
|
4526
|
-
function
|
|
4518
|
+
function lt(s) {
|
|
4527
4519
|
if (!(s != null && s.includes("T"))) return s ?? "";
|
|
4528
4520
|
const [e, t, a] = s.split("T")[0].split("-");
|
|
4529
4521
|
return `${a}.${t}.${e}`;
|
|
4530
4522
|
}
|
|
4531
|
-
function
|
|
4523
|
+
function vo(s) {
|
|
4532
4524
|
return Intl.NumberFormat("en").format(s ?? 0);
|
|
4533
4525
|
}
|
|
4534
|
-
class
|
|
4526
|
+
class Un {
|
|
4535
4527
|
static getTooltipOptions(e = !0) {
|
|
4536
4528
|
return {
|
|
4537
4529
|
show: e,
|
|
@@ -4546,7 +4538,7 @@ class Zn {
|
|
|
4546
4538
|
};
|
|
4547
4539
|
}
|
|
4548
4540
|
}
|
|
4549
|
-
const
|
|
4541
|
+
const Gn = {
|
|
4550
4542
|
show_label: !1,
|
|
4551
4543
|
show_legend: !1,
|
|
4552
4544
|
label: null,
|
|
@@ -4555,14 +4547,14 @@ const Qn = {
|
|
|
4555
4547
|
color: null,
|
|
4556
4548
|
title: null
|
|
4557
4549
|
};
|
|
4558
|
-
function
|
|
4550
|
+
function Hn() {
|
|
4559
4551
|
const s = "0123456789ABCDEF";
|
|
4560
4552
|
let e = "#";
|
|
4561
4553
|
for (let t = 0; t < 6; t += 1)
|
|
4562
4554
|
e += s[Math.floor(Math.random() * 16)];
|
|
4563
4555
|
return e;
|
|
4564
4556
|
}
|
|
4565
|
-
function
|
|
4557
|
+
function Ve(s = Gn) {
|
|
4566
4558
|
var t, a, r;
|
|
4567
4559
|
const e = {
|
|
4568
4560
|
label: {
|
|
@@ -4581,7 +4573,7 @@ function Le(s = Qn) {
|
|
|
4581
4573
|
};
|
|
4582
4574
|
return (s != null && s.colors || s != null && s.color) && (e.color = (s == null ? void 0 : s.colors) || (s == null ? void 0 : s.color) || null), e;
|
|
4583
4575
|
}
|
|
4584
|
-
function
|
|
4576
|
+
function qt(s) {
|
|
4585
4577
|
return {
|
|
4586
4578
|
color: "#9ca3af",
|
|
4587
4579
|
fontSize: 10,
|
|
@@ -4595,7 +4587,7 @@ function Mt(s) {
|
|
|
4595
4587
|
rotate: (s == null ? void 0 : s.rotate) ?? 0
|
|
4596
4588
|
};
|
|
4597
4589
|
}
|
|
4598
|
-
const
|
|
4590
|
+
const Mt = [
|
|
4599
4591
|
"#d3c7e6",
|
|
4600
4592
|
"#bedae3",
|
|
4601
4593
|
"#f8e9cb",
|
|
@@ -4743,14 +4735,14 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4743
4735
|
shadowColor: "transparent",
|
|
4744
4736
|
padding: [0, 0, 0, 0],
|
|
4745
4737
|
borderWidth: 0,
|
|
4746
|
-
position: (k, $,
|
|
4738
|
+
position: (k, $, L, w, d) => {
|
|
4747
4739
|
const [x, _] = k, [D, m] = d.contentSize, [C, z] = d.viewSize;
|
|
4748
4740
|
let R = x + 14, q = _ - m / 2;
|
|
4749
4741
|
return R + D > C && (R = x - D - 14), R < 0 && (R = 0), q + m > z && (q = z - m), q < 0 && (q = 0), [R, q];
|
|
4750
4742
|
},
|
|
4751
4743
|
formatter: (k) => {
|
|
4752
4744
|
var m;
|
|
4753
|
-
const
|
|
4745
|
+
const L = (m = k[0]) == null ? void 0 : m.axisValue, w = L ? this.formatDate(L) : "N/A", d = [...k].filter((C) => {
|
|
4754
4746
|
var z;
|
|
4755
4747
|
return parseFloat(C == null ? void 0 : C.data) || ((z = C == null ? void 0 : C.data) == null ? void 0 : z.value);
|
|
4756
4748
|
}).sort((C, z) => {
|
|
@@ -4785,11 +4777,11 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4785
4777
|
type: e ? "category" : "value",
|
|
4786
4778
|
name: ((n = (i = this.styleData) == null ? void 0 : i.x_axis) == null ? void 0 : n.name) || "",
|
|
4787
4779
|
axisLabel: {
|
|
4788
|
-
...
|
|
4780
|
+
...qt((o = this.styleData) == null ? void 0 : o.x_axis),
|
|
4789
4781
|
formatter: (k) => {
|
|
4790
|
-
var
|
|
4782
|
+
var L, w;
|
|
4791
4783
|
const $ = this.formatDate(k);
|
|
4792
|
-
return ((w = (
|
|
4784
|
+
return ((w = (L = this.styleData) == null ? void 0 : L.x_axis) == null ? void 0 : w.overflow) === "ellipsis" && $.length > 10 ? `${$.slice(0, 10)}...` : $;
|
|
4793
4785
|
}
|
|
4794
4786
|
}
|
|
4795
4787
|
},
|
|
@@ -4797,10 +4789,10 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4797
4789
|
data: t != null && t.length ? t : null,
|
|
4798
4790
|
type: t ? "category" : "value",
|
|
4799
4791
|
name: ((c = (l = this.styleData) == null ? void 0 : l.y_axis) == null ? void 0 : c.name) || "",
|
|
4800
|
-
axisLabel:
|
|
4792
|
+
axisLabel: qt((u = this.styleData) == null ? void 0 : u.y_axis)
|
|
4801
4793
|
},
|
|
4802
4794
|
series: s != null && s.length ? s : null,
|
|
4803
|
-
...
|
|
4795
|
+
...Ve(this.styleData),
|
|
4804
4796
|
grid: {
|
|
4805
4797
|
bottom: "0%",
|
|
4806
4798
|
right: "0%",
|
|
@@ -4835,7 +4827,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4835
4827
|
...r,
|
|
4836
4828
|
...e.options,
|
|
4837
4829
|
tooltip: {
|
|
4838
|
-
...
|
|
4830
|
+
...Un.getTooltipOptions(e.options.tooltip.show)
|
|
4839
4831
|
}
|
|
4840
4832
|
});
|
|
4841
4833
|
},
|
|
@@ -4864,7 +4856,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4864
4856
|
) : e;
|
|
4865
4857
|
}
|
|
4866
4858
|
}
|
|
4867
|
-
},
|
|
4859
|
+
}, Zn = {
|
|
4868
4860
|
name: "VsBar",
|
|
4869
4861
|
mixins: [pe],
|
|
4870
4862
|
data() {
|
|
@@ -4912,7 +4904,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
4912
4904
|
)
|
|
4913
4905
|
);
|
|
4914
4906
|
let o;
|
|
4915
|
-
this.dimensions[0].includes("date") ? o = n.map((v) =>
|
|
4907
|
+
this.dimensions[0].includes("date") ? o = n.map((v) => lt(v)) : o = [...n];
|
|
4916
4908
|
let l, c;
|
|
4917
4909
|
((e = this.styleData) == null ? void 0 : e.horizontal) === !0 ? c = [...o] : l = [...o];
|
|
4918
4910
|
const u = this.sourceData.filter(
|
|
@@ -5016,18 +5008,18 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
|
|
|
5016
5008
|
];
|
|
5017
5009
|
}
|
|
5018
5010
|
}
|
|
5019
|
-
},
|
|
5020
|
-
function
|
|
5011
|
+
}, Qn = ["id"];
|
|
5012
|
+
function Xn(s, e, t, a, r, i) {
|
|
5021
5013
|
return p(), y("div", {
|
|
5022
5014
|
id: i.uniqueID,
|
|
5023
5015
|
ref: "chart",
|
|
5024
5016
|
class: "h-full w-full min-h-[200px]"
|
|
5025
|
-
}, null, 8,
|
|
5017
|
+
}, null, 8, Qn);
|
|
5026
5018
|
}
|
|
5027
|
-
const
|
|
5019
|
+
const Yn = /* @__PURE__ */ Q(Zn, [["render", Xn]]), Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5028
5020
|
__proto__: null,
|
|
5029
|
-
default:
|
|
5030
|
-
}, Symbol.toStringTag, { value: "Module" })), Ye = typeof window < "u" ? window.echarts : null,
|
|
5021
|
+
default: Yn
|
|
5022
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = typeof window < "u" ? window.echarts : null, Kn = {
|
|
5031
5023
|
name: "VsPie",
|
|
5032
5024
|
props: ["currentWidget"],
|
|
5033
5025
|
mixins: [pe],
|
|
@@ -5125,7 +5117,7 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
|
|
|
5125
5117
|
radius: v,
|
|
5126
5118
|
center: ["50%", "60%"],
|
|
5127
5119
|
height: "75%",
|
|
5128
|
-
...
|
|
5120
|
+
...Ve(this.styleData),
|
|
5129
5121
|
data: c
|
|
5130
5122
|
}
|
|
5131
5123
|
] };
|
|
@@ -5167,7 +5159,7 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
|
|
|
5167
5159
|
backgroundColor: "transparent"
|
|
5168
5160
|
},
|
|
5169
5161
|
series: s,
|
|
5170
|
-
...
|
|
5162
|
+
...Ve(this.styleData || {}),
|
|
5171
5163
|
title: {
|
|
5172
5164
|
text: ce(r),
|
|
5173
5165
|
left: "center",
|
|
@@ -5188,18 +5180,18 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
|
|
|
5188
5180
|
}
|
|
5189
5181
|
}
|
|
5190
5182
|
}
|
|
5191
|
-
},
|
|
5192
|
-
function
|
|
5183
|
+
}, ei = ["id"];
|
|
5184
|
+
function ti(s, e, t, a, r, i) {
|
|
5193
5185
|
return p(), y("div", {
|
|
5194
5186
|
id: i.uniqueID,
|
|
5195
5187
|
ref: "chart",
|
|
5196
5188
|
class: "h-full min-h-[200px] flex items-center"
|
|
5197
|
-
}, null, 8,
|
|
5189
|
+
}, null, 8, ei);
|
|
5198
5190
|
}
|
|
5199
|
-
const
|
|
5191
|
+
const si = /* @__PURE__ */ Q(Kn, [["render", ti]]), ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5200
5192
|
__proto__: null,
|
|
5201
|
-
default:
|
|
5202
|
-
}, Symbol.toStringTag, { value: "Module" })), Je = typeof window < "u" ? window.echarts : null,
|
|
5193
|
+
default: si
|
|
5194
|
+
}, Symbol.toStringTag, { value: "Module" })), Je = typeof window < "u" ? window.echarts : null, ri = {
|
|
5203
5195
|
name: "VsPie",
|
|
5204
5196
|
props: ["currentWidget"],
|
|
5205
5197
|
mixins: [pe],
|
|
@@ -5293,7 +5285,7 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
|
|
|
5293
5285
|
radius: f,
|
|
5294
5286
|
center: ["50%", "60%"],
|
|
5295
5287
|
height: "75%",
|
|
5296
|
-
...
|
|
5288
|
+
...Ve(this.styleData),
|
|
5297
5289
|
data: l
|
|
5298
5290
|
}
|
|
5299
5291
|
] };
|
|
@@ -5329,7 +5321,7 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
|
|
|
5329
5321
|
backgroundColor: "transparent"
|
|
5330
5322
|
},
|
|
5331
5323
|
series: s,
|
|
5332
|
-
...
|
|
5324
|
+
...Ve(this.styleData || {})
|
|
5333
5325
|
};
|
|
5334
5326
|
this.chartInstance.setOption(r), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
|
|
5335
5327
|
var i;
|
|
@@ -5340,18 +5332,18 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
|
|
|
5340
5332
|
}
|
|
5341
5333
|
}
|
|
5342
5334
|
}
|
|
5343
|
-
},
|
|
5344
|
-
function
|
|
5335
|
+
}, ni = ["id"];
|
|
5336
|
+
function ii(s, e, t, a, r, i) {
|
|
5345
5337
|
return p(), y("div", {
|
|
5346
5338
|
id: i.uniqueID,
|
|
5347
5339
|
ref: "chart",
|
|
5348
5340
|
class: "h-full min-h-[200px] flex items-center"
|
|
5349
|
-
}, null, 8,
|
|
5341
|
+
}, null, 8, ni);
|
|
5350
5342
|
}
|
|
5351
|
-
const
|
|
5343
|
+
const oi = /* @__PURE__ */ Q(ri, [["render", ii]]), li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5352
5344
|
__proto__: null,
|
|
5353
|
-
default:
|
|
5354
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5345
|
+
default: oi
|
|
5346
|
+
}, Symbol.toStringTag, { value: "Module" })), ci = {
|
|
5355
5347
|
name: "VsLine",
|
|
5356
5348
|
mixins: [pe],
|
|
5357
5349
|
data() {
|
|
@@ -5383,7 +5375,7 @@ const di = /* @__PURE__ */ Q(oi, [["render", ci]]), ui = /* @__PURE__ */ Object.
|
|
|
5383
5375
|
new Set(this.sourceData.map((n) => n[this.dimensions[0]]))
|
|
5384
5376
|
);
|
|
5385
5377
|
let a;
|
|
5386
|
-
this.dimensions[0].includes("date") ? a = t.map((n) =>
|
|
5378
|
+
this.dimensions[0].includes("date") ? a = t.map((n) => lt(n)) : a = [...t];
|
|
5387
5379
|
const r = this.sourceData.map(
|
|
5388
5380
|
(n) => parseFloat(n[this.dimensions[1]])
|
|
5389
5381
|
);
|
|
@@ -5408,18 +5400,18 @@ const di = /* @__PURE__ */ Q(oi, [["render", ci]]), ui = /* @__PURE__ */ Object.
|
|
|
5408
5400
|
}
|
|
5409
5401
|
}
|
|
5410
5402
|
}
|
|
5411
|
-
},
|
|
5412
|
-
function
|
|
5403
|
+
}, di = ["id"];
|
|
5404
|
+
function ui(s, e, t, a, r, i) {
|
|
5413
5405
|
return p(), y("div", {
|
|
5414
5406
|
id: r.uniqueID,
|
|
5415
5407
|
ref: "chart",
|
|
5416
5408
|
style: { height: "400px" }
|
|
5417
|
-
}, null, 8,
|
|
5409
|
+
}, null, 8, di);
|
|
5418
5410
|
}
|
|
5419
|
-
const
|
|
5411
|
+
const hi = /* @__PURE__ */ Q(ci, [["render", ui]]), pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5420
5412
|
__proto__: null,
|
|
5421
|
-
default:
|
|
5422
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5413
|
+
default: hi
|
|
5414
|
+
}, Symbol.toStringTag, { value: "Module" })), fi = {
|
|
5423
5415
|
name: "VsStat",
|
|
5424
5416
|
mixins: [pe],
|
|
5425
5417
|
data() {
|
|
@@ -5444,7 +5436,7 @@ const gi = /* @__PURE__ */ Q(hi, [["render", fi]]), mi = /* @__PURE__ */ Object.
|
|
|
5444
5436
|
this.columns = Object.keys(this.sourceData[0]);
|
|
5445
5437
|
const s = this.getValues();
|
|
5446
5438
|
this.sumValue = s.reduce((e, t) => e + t, 0), this.sourceData.forEach((e, t) => {
|
|
5447
|
-
e.color = t <
|
|
5439
|
+
e.color = t < Mt.length - 1 ? Mt[t] : Hn();
|
|
5448
5440
|
});
|
|
5449
5441
|
},
|
|
5450
5442
|
formattedValue(s) {
|
|
@@ -5452,15 +5444,15 @@ const gi = /* @__PURE__ */ Q(hi, [["render", fi]]), mi = /* @__PURE__ */ Object.
|
|
|
5452
5444
|
return ce(e);
|
|
5453
5445
|
}
|
|
5454
5446
|
}
|
|
5455
|
-
},
|
|
5447
|
+
}, gi = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, mi = { class: "flex flex-col justify-between w-full h-full" }, bi = { class: "w-full h-full pb-6 space-y-4" }, xi = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, yi = ["onMouseover"], wi = {
|
|
5456
5448
|
key: 0,
|
|
5457
5449
|
class: "absolute top-[-1] left-1/2 transform -translate-x-1/2 -translate-y-full bg-black text-white rounded px-2 py-1"
|
|
5458
|
-
},
|
|
5459
|
-
function
|
|
5460
|
-
return p(), y("div",
|
|
5461
|
-
h("div",
|
|
5462
|
-
h("div",
|
|
5463
|
-
h("div",
|
|
5450
|
+
}, vi = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, ki = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, $i = { class: "flex items-center" }, _i = { class: "text-sm text-gray-800" }, Di = { class: "text-end" }, Ci = { class: "text-sm text-gray-500" };
|
|
5451
|
+
function zi(s, e, t, a, r, i) {
|
|
5452
|
+
return p(), y("div", gi, [
|
|
5453
|
+
h("div", mi, [
|
|
5454
|
+
h("div", bi, [
|
|
5455
|
+
h("div", xi, [
|
|
5464
5456
|
(p(!0), y(U, null, Z(s.sourceData, (n, o) => {
|
|
5465
5457
|
var l, c, u, f;
|
|
5466
5458
|
return p(), y("div", {
|
|
@@ -5475,22 +5467,22 @@ function Si(s, e, t, a, r, i) {
|
|
|
5475
5467
|
onMouseover: (v) => r.showTooltip = o,
|
|
5476
5468
|
onMouseleave: e[0] || (e[0] = (v) => r.showTooltip = -1)
|
|
5477
5469
|
}, [
|
|
5478
|
-
r.showTooltip > -1 ? (p(), y("div",
|
|
5479
|
-
], 46,
|
|
5470
|
+
r.showTooltip > -1 ? (p(), y("div", wi, W(s.sourceData[r.showTooltip][r.columns[0]]) + " " + W((parseFloat((f = (c = s.sourceData) == null ? void 0 : c[r.showTooltip]) == null ? void 0 : f[(u = r.columns) == null ? void 0 : u[1]]) / r.sumValue * 100).toFixed(2)) + "% ", 1)) : A("", !0)
|
|
5471
|
+
], 46, yi);
|
|
5480
5472
|
}), 256))
|
|
5481
5473
|
]),
|
|
5482
|
-
h("ul",
|
|
5474
|
+
h("ul", vi, [
|
|
5483
5475
|
(p(!0), y(U, null, Z(s.sourceData, (n) => {
|
|
5484
5476
|
var o, l;
|
|
5485
|
-
return p(), y("li",
|
|
5486
|
-
h("div",
|
|
5477
|
+
return p(), y("li", ki, [
|
|
5478
|
+
h("div", $i, [
|
|
5487
5479
|
h("span", {
|
|
5488
5480
|
class: ee(["shrink-0 size-2.5 inline-block rounded-sm me-2.5 min-w-[10px] w-[10px] h-[10px] min-h-[10px]", `bg-[${n.color}]`])
|
|
5489
5481
|
}, null, 2),
|
|
5490
|
-
h("span",
|
|
5482
|
+
h("span", _i, W((n == null ? void 0 : n[(o = r.columns) == null ? void 0 : o[0]]) || "Не визначено"), 1)
|
|
5491
5483
|
]),
|
|
5492
|
-
h("div",
|
|
5493
|
-
h("span",
|
|
5484
|
+
h("div", Di, [
|
|
5485
|
+
h("span", Ci, W(i.formattedValue(n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[1]]) || "-"), 1)
|
|
5494
5486
|
])
|
|
5495
5487
|
]);
|
|
5496
5488
|
}), 256))
|
|
@@ -5499,10 +5491,10 @@ function Si(s, e, t, a, r, i) {
|
|
|
5499
5491
|
])
|
|
5500
5492
|
]);
|
|
5501
5493
|
}
|
|
5502
|
-
const
|
|
5494
|
+
const Ti = /* @__PURE__ */ Q(fi, [["render", zi]]), Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5503
5495
|
__proto__: null,
|
|
5504
|
-
default:
|
|
5505
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5496
|
+
default: Ti
|
|
5497
|
+
}, Symbol.toStringTag, { value: "Module" })), Si = {
|
|
5506
5498
|
name: "VsProgressBar",
|
|
5507
5499
|
mixins: [pe],
|
|
5508
5500
|
data() {
|
|
@@ -5532,24 +5524,24 @@ const Ri = /* @__PURE__ */ Q(bi, [["render", Si]]), Vi = /* @__PURE__ */ Object.
|
|
|
5532
5524
|
return ce(s);
|
|
5533
5525
|
}
|
|
5534
5526
|
}
|
|
5535
|
-
},
|
|
5527
|
+
}, Ri = {
|
|
5536
5528
|
key: 0,
|
|
5537
5529
|
class: "flex flex-col h-full pt-[16px] rounded-xl"
|
|
5538
|
-
},
|
|
5530
|
+
}, Li = { class: "h-full pt-0 pb-6 space-y-4" }, Vi = { class: "h-full space-y-4 custom-scrollbar" }, Wi = { class: "flex items-center justify-between mr-2 gap-x-2" }, Ni = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, Ei = { class: "text-sm text-gray-800" }, ji = {
|
|
5539
5531
|
class: "flex justify-end",
|
|
5540
5532
|
role: "progressbar",
|
|
5541
5533
|
"aria-valuenow": "100",
|
|
5542
5534
|
"aria-valuemin": "0",
|
|
5543
5535
|
"aria-valuemax": "100"
|
|
5544
|
-
},
|
|
5545
|
-
function
|
|
5546
|
-
return r.columns ? (p(), y("div",
|
|
5547
|
-
h("div",
|
|
5548
|
-
h("ul",
|
|
5549
|
-
(p(!0), y(U, null, Z(s.sourceData, (n, o) => (p(), y("li",
|
|
5550
|
-
h("div",
|
|
5551
|
-
h("span",
|
|
5552
|
-
h("div",
|
|
5536
|
+
}, Bi = { class: "min-w-[60px] text-end" }, Oi = { class: "text-sm text-gray-500" };
|
|
5537
|
+
function Pi(s, e, t, a, r, i) {
|
|
5538
|
+
return r.columns ? (p(), y("div", Ri, [
|
|
5539
|
+
h("div", Li, [
|
|
5540
|
+
h("ul", Vi, [
|
|
5541
|
+
(p(!0), y(U, null, Z(s.sourceData, (n, o) => (p(), y("li", Wi, [
|
|
5542
|
+
h("div", Ni, [
|
|
5543
|
+
h("span", Ei, W(n[r.columns[0]]), 1),
|
|
5544
|
+
h("div", ji, [
|
|
5553
5545
|
h("div", {
|
|
5554
5546
|
class: "h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",
|
|
5555
5547
|
style: Ge({
|
|
@@ -5558,18 +5550,18 @@ function qi(s, e, t, a, r, i) {
|
|
|
5558
5550
|
}, null, 4)
|
|
5559
5551
|
])
|
|
5560
5552
|
]),
|
|
5561
|
-
h("div",
|
|
5562
|
-
h("span",
|
|
5553
|
+
h("div", Bi, [
|
|
5554
|
+
h("span", Oi, W(i.formattedValue(n[r.columns[1]])), 1)
|
|
5563
5555
|
])
|
|
5564
5556
|
]))), 256))
|
|
5565
5557
|
])
|
|
5566
5558
|
])
|
|
5567
5559
|
])) : A("", !0);
|
|
5568
5560
|
}
|
|
5569
|
-
const
|
|
5561
|
+
const Ai = /* @__PURE__ */ Q(Si, [["render", Pi]]), Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5570
5562
|
__proto__: null,
|
|
5571
|
-
default:
|
|
5572
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5563
|
+
default: Ai
|
|
5564
|
+
}, Symbol.toStringTag, { value: "Module" })), qi = {
|
|
5573
5565
|
name: "VsListbar",
|
|
5574
5566
|
mixins: [pe],
|
|
5575
5567
|
props: ["source"],
|
|
@@ -5607,18 +5599,18 @@ const Mi = /* @__PURE__ */ Q(Li, [["render", qi]]), Ui = /* @__PURE__ */ Object.
|
|
|
5607
5599
|
return `${s / this.maxValue * 100}%`;
|
|
5608
5600
|
}
|
|
5609
5601
|
}
|
|
5610
|
-
},
|
|
5611
|
-
function
|
|
5612
|
-
return p(), y("div",
|
|
5613
|
-
h("ul",
|
|
5602
|
+
}, Mi = { class: "h-full pt-[20px] list-bar" }, Ui = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, Gi = { class: "relative w-full truncate" }, Hi = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, Zi = { class: "text-[14px] text-gray-500" };
|
|
5603
|
+
function Qi(s, e, t, a, r, i) {
|
|
5604
|
+
return p(), y("div", Mi, [
|
|
5605
|
+
h("ul", Ui, [
|
|
5614
5606
|
(p(!0), y(U, null, Z(s.sourceData, (n, o) => {
|
|
5615
5607
|
var l, c, u;
|
|
5616
5608
|
return p(), y("li", {
|
|
5617
5609
|
key: o,
|
|
5618
5610
|
class: "flex items-center justify-between w-full gap-x-2"
|
|
5619
5611
|
}, [
|
|
5620
|
-
h("div",
|
|
5621
|
-
h("span",
|
|
5612
|
+
h("div", Gi, [
|
|
5613
|
+
h("span", Hi, W((n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[0]]) || "Без категорії"), 1),
|
|
5622
5614
|
h("div", {
|
|
5623
5615
|
class: ee(["absolute inset-y-0 h-full rounded start-0", n != null && n[(c = r.columns) == null ? void 0 : c[0]] ? "bg-indigo-100" : "bg-gray-100"]),
|
|
5624
5616
|
style: Ge({ width: i.getWidth(n == null ? void 0 : n[(u = r.columns) == null ? void 0 : u[1]]) })
|
|
@@ -5628,17 +5620,17 @@ function Yi(s, e, t, a, r, i) {
|
|
|
5628
5620
|
key: v,
|
|
5629
5621
|
class: "w-20 mr-2 text-end"
|
|
5630
5622
|
}, [
|
|
5631
|
-
h("span",
|
|
5623
|
+
h("span", Zi, W(i.formattedValue(n == null ? void 0 : n[f])), 1)
|
|
5632
5624
|
]))), 128))
|
|
5633
5625
|
]);
|
|
5634
5626
|
}), 128))
|
|
5635
5627
|
])
|
|
5636
5628
|
]);
|
|
5637
5629
|
}
|
|
5638
|
-
const
|
|
5630
|
+
const Xi = /* @__PURE__ */ Q(qi, [["render", Qi]]), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5639
5631
|
__proto__: null,
|
|
5640
|
-
default:
|
|
5641
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5632
|
+
default: Xi
|
|
5633
|
+
}, Symbol.toStringTag, { value: "Module" })), Ji = {
|
|
5642
5634
|
name: "VsPivotTable",
|
|
5643
5635
|
mixins: [pe],
|
|
5644
5636
|
data() {
|
|
@@ -5663,7 +5655,7 @@ const Ji = /* @__PURE__ */ Q(Gi, [["render", Yi]]), eo = /* @__PURE__ */ Object.
|
|
|
5663
5655
|
const s = Array.from(
|
|
5664
5656
|
new Set(this.sourceData.map((e) => e[this.dimensions[0]]))
|
|
5665
5657
|
);
|
|
5666
|
-
this.dimensions[0].includes("date") ? this.xs = s.map((e) =>
|
|
5658
|
+
this.dimensions[0].includes("date") ? this.xs = s.map((e) => lt(e)) : this.xs = [...s], this.products = this.dimensions.filter((e, t) => t != 0), this.values = this.products.map((e, t) => ({
|
|
5667
5659
|
name: e,
|
|
5668
5660
|
data: this.sourceData.filter((a) => parseFloat(a[e])).map((a) => ce(parseFloat(a[e])))
|
|
5669
5661
|
}));
|
|
@@ -5672,37 +5664,37 @@ const Ji = /* @__PURE__ */ Q(Gi, [["render", Yi]]), eo = /* @__PURE__ */ Object.
|
|
|
5672
5664
|
}
|
|
5673
5665
|
}
|
|
5674
5666
|
}
|
|
5675
|
-
},
|
|
5667
|
+
}, Ki = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, eo = { class: "overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 custom-scrollbar" }, to = { class: "inline-block min-w-full align-middle" }, so = { class: "min-w-full divide-y divide-gray-200" }, ao = { class: "space-x-2" }, ro = {
|
|
5676
5668
|
scope: "col",
|
|
5677
5669
|
class: "xl:min-w-[120px] min-w-48"
|
|
5678
|
-
},
|
|
5679
|
-
function
|
|
5680
|
-
return p(), y("div",
|
|
5681
|
-
h("div",
|
|
5682
|
-
h("div",
|
|
5683
|
-
h("table",
|
|
5670
|
+
}, no = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, io = { class: "divide-y divide-gray-200 text-[12px]" }, oo = { class: "py-3 size-px whitespace-nowrap" }, lo = { class: "flex items-center gap-x-3" }, co = { class: "font-medium text-gray-800" }, uo = { class: "py-3 size-px whitespace-nowrap" }, ho = { class: "text-gray-600" };
|
|
5671
|
+
function po(s, e, t, a, r, i) {
|
|
5672
|
+
return p(), y("div", Ki, [
|
|
5673
|
+
h("div", eo, [
|
|
5674
|
+
h("div", to, [
|
|
5675
|
+
h("table", so, [
|
|
5684
5676
|
h("thead", null, [
|
|
5685
|
-
h("tr",
|
|
5677
|
+
h("tr", ao, [
|
|
5686
5678
|
e[0] || (e[0] = h("th", {
|
|
5687
5679
|
scope: "col",
|
|
5688
5680
|
class: "min-w-[200px]"
|
|
5689
5681
|
}, [
|
|
5690
5682
|
h("div", { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" })
|
|
5691
5683
|
], -1)),
|
|
5692
|
-
(p(!0), y(U, null, Z(r.xs, (n) => (p(), y("th",
|
|
5693
|
-
h("div",
|
|
5684
|
+
(p(!0), y(U, null, Z(r.xs, (n) => (p(), y("th", ro, [
|
|
5685
|
+
h("div", no, W(n), 1)
|
|
5694
5686
|
]))), 256))
|
|
5695
5687
|
])
|
|
5696
5688
|
]),
|
|
5697
|
-
(p(!0), y(U, null, Z(r.values, (n) => (p(), y("tbody",
|
|
5689
|
+
(p(!0), y(U, null, Z(r.values, (n) => (p(), y("tbody", io, [
|
|
5698
5690
|
h("tr", null, [
|
|
5699
|
-
h("td",
|
|
5700
|
-
h("div",
|
|
5701
|
-
h("span",
|
|
5691
|
+
h("td", oo, [
|
|
5692
|
+
h("div", lo, [
|
|
5693
|
+
h("span", co, W(n.name), 1)
|
|
5702
5694
|
])
|
|
5703
5695
|
]),
|
|
5704
|
-
(p(!0), y(U, null, Z(r.xs, (o, l) => (p(), y("td",
|
|
5705
|
-
h("span",
|
|
5696
|
+
(p(!0), y(U, null, Z(r.xs, (o, l) => (p(), y("td", uo, [
|
|
5697
|
+
h("span", ho, W(n.data[l]), 1)
|
|
5706
5698
|
]))), 256))
|
|
5707
5699
|
])
|
|
5708
5700
|
]))), 256))
|
|
@@ -5711,36 +5703,36 @@ function mo(s, e, t, a, r, i) {
|
|
|
5711
5703
|
])
|
|
5712
5704
|
]);
|
|
5713
5705
|
}
|
|
5714
|
-
const
|
|
5706
|
+
const fo = /* @__PURE__ */ Q(Ji, [["render", po]]), go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5715
5707
|
__proto__: null,
|
|
5716
|
-
default:
|
|
5708
|
+
default: fo
|
|
5717
5709
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5718
5710
|
export {
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5711
|
+
Y as R,
|
|
5712
|
+
Ta as U,
|
|
5713
|
+
Yn as V,
|
|
5722
5714
|
Es as X,
|
|
5723
5715
|
Q as _,
|
|
5724
|
-
|
|
5725
|
-
|
|
5716
|
+
Ve as a,
|
|
5717
|
+
lt as b,
|
|
5726
5718
|
pe as c,
|
|
5727
5719
|
ce as d,
|
|
5728
5720
|
se as e,
|
|
5729
|
-
|
|
5721
|
+
vo as f,
|
|
5730
5722
|
H as g,
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5723
|
+
Hr as h,
|
|
5724
|
+
Gr as i,
|
|
5725
|
+
Mn as j,
|
|
5726
|
+
wn as k,
|
|
5727
|
+
wo as l,
|
|
5736
5728
|
B as m,
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5729
|
+
oi as n,
|
|
5730
|
+
hi as o,
|
|
5731
|
+
Ti as p,
|
|
5732
|
+
Ai as q,
|
|
5733
|
+
Xi as r,
|
|
5734
|
+
fo as s,
|
|
5735
|
+
yo as t,
|
|
5744
5736
|
Oe as u,
|
|
5745
|
-
|
|
5737
|
+
si as v
|
|
5746
5738
|
};
|