vue-data-ui 3.0.0-next.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
import { useCssVars as nt, defineAsyncComponent as m, computed as y, onMounted as rt, ref as i, toRefs as it, watch as Q, nextTick as x, createElementBlock as C, openBlock as u, unref as l, normalizeStyle as E, normalizeClass as Ae, createBlock as k, createCommentVNode as g, createVNode as N, createSlots as ut, withCtx as d, renderSlot as c, normalizeProps as w, guardReactiveProps as $, createElementVNode as L, Fragment as ct, renderList as dt, createTextVNode as vt, toDisplayString as pt } from "vue";
|
|
2
|
+
import { u as ht, o as ft, f as mt, c as ke, t as gt, a as Ct, p as we, b as bt, d as yt, Q as At, X as kt, l as wt, R as $t, e as $e, v as Tt, w as _t, y as Ot, z as It } from "./index-BtNwOUja.js";
|
|
3
|
+
import { u as Pt, B as Ft } from "./useLoading-D7YHNtLX.js";
|
|
4
|
+
import { u as Nt } from "./usePrinter-DUNjpQNe.js";
|
|
5
|
+
import { u as Te } from "./useNestedProp-f2H3m6Yj.js";
|
|
6
|
+
import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as St } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Dt from "./img-DrR839Ot.js";
|
|
9
|
+
import { u as Bt } from "./usePanZoom-BVca3eMk.js";
|
|
10
|
+
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Et = ["id"], Rt = {
|
|
12
|
+
key: 1,
|
|
13
|
+
ref: "noTitle",
|
|
14
|
+
class: "vue-data-ui-no-title-space",
|
|
15
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
16
|
+
}, Ut = {
|
|
17
|
+
key: 2,
|
|
18
|
+
style: "width:100%;background:transparent;"
|
|
19
|
+
}, zt = ["xmlns", "viewBox"], Ht = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Gt = ["stop-color"], Wt = {
|
|
20
|
+
key: 4,
|
|
21
|
+
class: "vue-data-ui-watermark"
|
|
22
|
+
}, Xt = {
|
|
23
|
+
key: 5,
|
|
24
|
+
"data-dom-to-png-ignore": "",
|
|
25
|
+
class: "reset-wrapper"
|
|
26
|
+
}, jt = {
|
|
27
|
+
key: 6,
|
|
28
|
+
ref: "source",
|
|
29
|
+
dir: "auto"
|
|
30
|
+
}, Yt = ["innerHTML"], Zt = {
|
|
31
|
+
__name: "vue-ui-molecule",
|
|
32
|
+
props: {
|
|
33
|
+
config: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default() {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
dataset: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default() {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
emits: ["selectNode"],
|
|
47
|
+
setup(_e, { expose: Oe, emit: Ie }) {
|
|
48
|
+
nt((t) => ({
|
|
49
|
+
"00aed812": t.slicerColor
|
|
50
|
+
}));
|
|
51
|
+
const Pe = m(() => import("./Title-BGu6gEd2.js")), Fe = m(() => import("./Tooltip-Bh2zYSoM.js")), Ne = m(() => import("./BaseIcon-CXtL10fo.js")), Le = m(() => import("./vue-ui-accordion-BKUrAowe.js")), Se = m(() => import("./DataTable-BSSXpM7w.js")), De = m(() => import("./PenAndPaper-D3zudcNI.js")), Be = m(() => import("./UserOptions-Ck8fz9f4.js")), xe = m(() => import("./PackageVersion-CJ6Vd7V5.js")), Ee = m(() => import("./RecursiveLinks-00zGWPf9.js")), Re = m(() => import("./RecursiveLabels-Bgcv0pzu.js")), Ue = m(() => import("./RecursiveCircles-BcLb1aRS.js")), { vue_ui_molecule: ze } = ht(), A = _e, He = Ie, q = y(() => !!A.dataset && A.dataset.length);
|
|
52
|
+
rt(() => {
|
|
53
|
+
J();
|
|
54
|
+
});
|
|
55
|
+
const Me = y(() => e.value.debug);
|
|
56
|
+
function J() {
|
|
57
|
+
ft(A.dataset) && mt({
|
|
58
|
+
componentName: "VueUiMolecule",
|
|
59
|
+
type: "dataset",
|
|
60
|
+
debug: Me.value
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
const R = i(ke()), Ve = i(null), U = i(!1), S = i(""), T = i(null), K = i(0), ee = i(0), te = i(0), e = i(G()), { loading: z, FINAL_DATASET: H } = Pt({
|
|
64
|
+
...it(A),
|
|
65
|
+
FINAL_CONFIG: e,
|
|
66
|
+
prepareConfig: G,
|
|
67
|
+
skeletonDataset: [
|
|
68
|
+
{
|
|
69
|
+
name: "_",
|
|
70
|
+
color: "#CACACA",
|
|
71
|
+
nodes: [
|
|
72
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
73
|
+
{ name: "_", color: "#CACACA" },
|
|
74
|
+
{ name: "_", color: "#CACACA" },
|
|
75
|
+
{ name: "_", color: "#CACACA" }
|
|
76
|
+
] },
|
|
77
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
78
|
+
{ name: "_", color: "#CACACA" },
|
|
79
|
+
{ name: "_", color: "#CACACA" },
|
|
80
|
+
{ name: "_", color: "#CACACA" }
|
|
81
|
+
] },
|
|
82
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
83
|
+
{ name: "_", color: "#CACACA" },
|
|
84
|
+
{ name: "_", color: "#CACACA" },
|
|
85
|
+
{ name: "_", color: "#CACACA" }
|
|
86
|
+
] },
|
|
87
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
88
|
+
{ name: "_", color: "#CACACA" },
|
|
89
|
+
{ name: "_", color: "#CACACA" },
|
|
90
|
+
{ name: "_", color: "#CACACA" }
|
|
91
|
+
] },
|
|
92
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
93
|
+
{ name: "_", color: "#CACACA" },
|
|
94
|
+
{ name: "_", color: "#CACACA" },
|
|
95
|
+
{ name: "_", color: "#CACACA" }
|
|
96
|
+
] },
|
|
97
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
98
|
+
{ name: "_", color: "#CACACA" },
|
|
99
|
+
{ name: "_", color: "#CACACA" },
|
|
100
|
+
{ name: "_", color: "#CACACA" }
|
|
101
|
+
] }
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
skeletonConfig: gt({
|
|
106
|
+
defaultConfig: e.value,
|
|
107
|
+
userConfig: {
|
|
108
|
+
userOptions: { show: !1 },
|
|
109
|
+
table: { show: !1 },
|
|
110
|
+
style: {
|
|
111
|
+
chart: {
|
|
112
|
+
backgroundColor: "#99999930",
|
|
113
|
+
nodes: { stroke: "#6A6A6A" },
|
|
114
|
+
links: { stroke: "#6A6A6A80" }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
}), { userOptionsVisible: M, setUserOptionsVisibility: oe, keepUserOptionState: le } = Lt({ config: e.value }), { svgRef: V } = St({ config: e.value.style.chart.title });
|
|
120
|
+
function G() {
|
|
121
|
+
const t = Te({
|
|
122
|
+
userConfig: A.config,
|
|
123
|
+
defaultConfig: ze
|
|
124
|
+
});
|
|
125
|
+
return t.theme ? {
|
|
126
|
+
...Te({
|
|
127
|
+
userConfig: bt.vue_ui_molecule[t.theme] || A.config,
|
|
128
|
+
defaultConfig: t
|
|
129
|
+
}),
|
|
130
|
+
customPalette: Ct[t.theme] || we
|
|
131
|
+
} : t;
|
|
132
|
+
}
|
|
133
|
+
Q(() => A.config, (t) => {
|
|
134
|
+
e.value = G(), M.value = !e.value.userOptions.showOnChartHover, J(), ee.value += 1, te.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
135
|
+
}, { deep: !0 });
|
|
136
|
+
const ae = i(0), Ge = () => {
|
|
137
|
+
ae.value += 1;
|
|
138
|
+
};
|
|
139
|
+
Q([() => z.value, () => H.value], async ([t]) => {
|
|
140
|
+
t || (await x(), p.value = ce(), await x(), Ge(), await x(), ot({ x: 0, y: 0, width: 400, height: 400 }), j(!1));
|
|
141
|
+
}, { flush: "post", deep: !1 });
|
|
142
|
+
const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ie } = Nt({
|
|
143
|
+
elementId: `cluster_${R.value}`,
|
|
144
|
+
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
145
|
+
options: e.value.userOptions.print
|
|
146
|
+
}), We = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = y(() => yt(e.value.customPalette)), v = i({
|
|
147
|
+
showTable: e.value.table.show,
|
|
148
|
+
showDataLabels: !0,
|
|
149
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
150
|
+
});
|
|
151
|
+
Q(e, () => {
|
|
152
|
+
v.value = {
|
|
153
|
+
showTable: e.value.table.show,
|
|
154
|
+
showDataLabels: !0,
|
|
155
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
156
|
+
};
|
|
157
|
+
}, { immediate: !0 });
|
|
158
|
+
function ue(t, a = 0) {
|
|
159
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? ue(t[0].nodes, a + 1) : a;
|
|
160
|
+
}
|
|
161
|
+
function ce() {
|
|
162
|
+
const t = ue(H.value);
|
|
163
|
+
let a = 100, o = a;
|
|
164
|
+
for (let n = 0; n < t; n += 1)
|
|
165
|
+
a /= 1, o += a;
|
|
166
|
+
return {
|
|
167
|
+
height: o,
|
|
168
|
+
width: o
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const p = i(ce());
|
|
172
|
+
function de(t, a = { x: -p.value.width / 2.43, y: p.value.height / 2 }, o = p.value.width / 1.1, n = 24, s = 0, r = 0, h = "#BBBBBB", Y = 0) {
|
|
173
|
+
if (!Array.isArray(t) || t.length === 0) return t;
|
|
174
|
+
const st = $t({
|
|
175
|
+
plot: a,
|
|
176
|
+
radius: o,
|
|
177
|
+
sides: t.length,
|
|
178
|
+
rotation: s
|
|
179
|
+
});
|
|
180
|
+
return t.forEach((f, Ce) => {
|
|
181
|
+
const be = st.coordinates[Ce], ye = f.color ? (() => {
|
|
182
|
+
let Z = $e(f.color);
|
|
183
|
+
return Z.startsWith("#") ? Z : `#${Z}`;
|
|
184
|
+
})() : null;
|
|
185
|
+
let O;
|
|
186
|
+
ye ? O = ye : Y === 0 ? O = h : Y === 1 ? (O = Xe.value[r] || we[r] || h, r += 1) : O = h, f.polygonPath = { coordinates: [be] }, f.circleRadius = n, f.color = O, f.uid = ke(), Array.isArray(f.nodes) && f.nodes.length && (f.nodes = de(
|
|
187
|
+
f.nodes,
|
|
188
|
+
be,
|
|
189
|
+
o / 2.9,
|
|
190
|
+
n / 2.2,
|
|
191
|
+
s + Math.PI * Ce / f.nodes.length,
|
|
192
|
+
r,
|
|
193
|
+
O,
|
|
194
|
+
Y + 1
|
|
195
|
+
));
|
|
196
|
+
}), t;
|
|
197
|
+
}
|
|
198
|
+
function je(t) {
|
|
199
|
+
const a = /* @__PURE__ */ new Set();
|
|
200
|
+
function o(s) {
|
|
201
|
+
s.forEach((r) => {
|
|
202
|
+
if (!r.color) return;
|
|
203
|
+
let h = r.color;
|
|
204
|
+
/^#?[0-9A-F]{6}$/i.test(h) || (h = $e(h)), h.startsWith("#") || (h = `#${h}`), a.add(h), Array.isArray(r.nodes) && r.nodes.length && o(r.nodes);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
o(t);
|
|
208
|
+
const n = {};
|
|
209
|
+
return Array.from(a).forEach((s) => {
|
|
210
|
+
const r = s.slice(1);
|
|
211
|
+
n[s] = `gradient_${r}`;
|
|
212
|
+
}), n;
|
|
213
|
+
}
|
|
214
|
+
const Ye = y(() => je(b.value)), b = y(() => {
|
|
215
|
+
const t = At(H.value);
|
|
216
|
+
return de(t);
|
|
217
|
+
}), W = i(null);
|
|
218
|
+
function Ze(t) {
|
|
219
|
+
W.value = {
|
|
220
|
+
datapoint: t,
|
|
221
|
+
seriesIndex: -1,
|
|
222
|
+
series: b.value,
|
|
223
|
+
config: e.value
|
|
224
|
+
};
|
|
225
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
226
|
+
if (Ot(a) && It(() => a({
|
|
227
|
+
seriesIndex: -1,
|
|
228
|
+
datapoint: t,
|
|
229
|
+
series: b.value,
|
|
230
|
+
config: e.value
|
|
231
|
+
})))
|
|
232
|
+
S.value = a({
|
|
233
|
+
seriesIndex: -1,
|
|
234
|
+
// well, ok
|
|
235
|
+
datapoint: t,
|
|
236
|
+
series: b.value,
|
|
237
|
+
config: e.value
|
|
238
|
+
});
|
|
239
|
+
else {
|
|
240
|
+
let o = "";
|
|
241
|
+
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), S.value = `<div style="font-family:inherit">${o}</div>`;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const D = i(null), I = i(null), ve = i(null);
|
|
245
|
+
function Qe(t) {
|
|
246
|
+
ve.value = D.value, D.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ve.value || D.value, seriesIndex: -1 }), t ? (U.value = !0, Ze(t), I.value = t.uid) : (U.value = !1, S.value = "", I.value = null);
|
|
247
|
+
}
|
|
248
|
+
function qe(t) {
|
|
249
|
+
const a = [];
|
|
250
|
+
function o(n) {
|
|
251
|
+
n.forEach((s) => {
|
|
252
|
+
const r = {
|
|
253
|
+
name: s.name,
|
|
254
|
+
details: s.details || "-",
|
|
255
|
+
ancestor: s.ancestor && s.ancestor.name || "-",
|
|
256
|
+
color: s.color || ""
|
|
257
|
+
};
|
|
258
|
+
a.push(r), s.nodes && s.nodes.length > 0 && o(s.nodes, s.name);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
return o(t), a;
|
|
262
|
+
}
|
|
263
|
+
const Je = y(() => qe(b.value)), _ = y(() => {
|
|
264
|
+
const t = [
|
|
265
|
+
e.value.table.translations.nodeName,
|
|
266
|
+
e.value.table.translations.details,
|
|
267
|
+
e.value.table.translations.ancestor
|
|
268
|
+
], a = Je.value.map((s, r) => [
|
|
269
|
+
{
|
|
270
|
+
color: s.color,
|
|
271
|
+
name: s.name
|
|
272
|
+
},
|
|
273
|
+
s.details,
|
|
274
|
+
s.ancestor || ""
|
|
275
|
+
]), o = {
|
|
276
|
+
th: {
|
|
277
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
278
|
+
color: e.value.table.th.color,
|
|
279
|
+
outline: e.value.table.th.outline
|
|
280
|
+
},
|
|
281
|
+
td: {
|
|
282
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
283
|
+
color: e.value.table.td.color,
|
|
284
|
+
outline: e.value.table.td.outline
|
|
285
|
+
},
|
|
286
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
287
|
+
}, n = [
|
|
288
|
+
e.value.table.translations.nodeName,
|
|
289
|
+
e.value.table.translations.details,
|
|
290
|
+
e.value.table.translations.ancestor
|
|
291
|
+
];
|
|
292
|
+
return {
|
|
293
|
+
head: t,
|
|
294
|
+
body: a,
|
|
295
|
+
config: o,
|
|
296
|
+
colNames: n
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
function pe(t = null) {
|
|
300
|
+
x(() => {
|
|
301
|
+
const a = _.value.body.map((s, r) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(a), n = Tt(o);
|
|
302
|
+
t ? t(n) : _t({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
function Ke() {
|
|
306
|
+
return b.value;
|
|
307
|
+
}
|
|
308
|
+
const P = i(!1);
|
|
309
|
+
function he(t) {
|
|
310
|
+
P.value = t, K.value += 1;
|
|
311
|
+
}
|
|
312
|
+
function fe() {
|
|
313
|
+
v.value.showTable = !v.value.showTable;
|
|
314
|
+
}
|
|
315
|
+
function me() {
|
|
316
|
+
v.value.showDataLabels = !v.value.showDataLabels;
|
|
317
|
+
}
|
|
318
|
+
function ge() {
|
|
319
|
+
v.value.showTooltip = !v.value.showTooltip;
|
|
320
|
+
}
|
|
321
|
+
const F = i(!1);
|
|
322
|
+
function X() {
|
|
323
|
+
F.value = !F.value;
|
|
324
|
+
}
|
|
325
|
+
const et = y(() => !F.value), { viewBox: B, resetZoom: j, isZoom: tt, setInitialViewBox: ot } = Bt(V, {
|
|
326
|
+
x: 0,
|
|
327
|
+
y: 0,
|
|
328
|
+
width: Math.max(10, p.value.width),
|
|
329
|
+
height: Math.max(10, p.value.height)
|
|
330
|
+
}, e.value.style.chart.zoom.speed, et);
|
|
331
|
+
function lt(t) {
|
|
332
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), He("selectNode", t);
|
|
333
|
+
}
|
|
334
|
+
async function at({ scale: t = 2 } = {}) {
|
|
335
|
+
if (!T.value) return;
|
|
336
|
+
const { width: a, height: o } = T.value.getBoundingClientRect(), n = a / o, { imageUri: s, base64: r } = await Dt({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
337
|
+
return {
|
|
338
|
+
imageUri: s,
|
|
339
|
+
base64: r,
|
|
340
|
+
title: e.value.style.chart.title.text,
|
|
341
|
+
width: a,
|
|
342
|
+
height: o,
|
|
343
|
+
aspectRatio: n
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
return Oe({
|
|
347
|
+
getData: Ke,
|
|
348
|
+
getImage: at,
|
|
349
|
+
generatePdf: re,
|
|
350
|
+
generateCsv: pe,
|
|
351
|
+
generateImage: ie,
|
|
352
|
+
toggleTable: fe,
|
|
353
|
+
toggleLabels: me,
|
|
354
|
+
toggleTooltip: ge,
|
|
355
|
+
toggleAnnotator: X,
|
|
356
|
+
toggleFullscreen: he
|
|
357
|
+
}), (t, a) => (u(), C("div", {
|
|
358
|
+
ref_key: "moleculeChart",
|
|
359
|
+
ref: T,
|
|
360
|
+
class: Ae(`vue-ui-molecule ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
361
|
+
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
362
|
+
id: `cluster_${R.value}`,
|
|
363
|
+
onMouseleave: a[2] || (a[2] = (o) => {
|
|
364
|
+
D.value = null, I.value = null, l(oe)(!1);
|
|
365
|
+
}),
|
|
366
|
+
onMouseenter: a[3] || (a[3] = () => l(oe)(!0))
|
|
367
|
+
}, [
|
|
368
|
+
e.value.userOptions.buttons.annotator ? (u(), k(l(De), {
|
|
369
|
+
key: 0,
|
|
370
|
+
svgRef: l(V),
|
|
371
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
372
|
+
color: e.value.style.chart.color,
|
|
373
|
+
active: F.value,
|
|
374
|
+
onClose: X
|
|
375
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
376
|
+
We.value ? (u(), C("div", Rt, null, 512)) : g("", !0),
|
|
377
|
+
e.value.style.chart.title.text ? (u(), C("div", Ut, [
|
|
378
|
+
(u(), k(l(Pe), {
|
|
379
|
+
key: `title_${ee.value}`,
|
|
380
|
+
config: {
|
|
381
|
+
title: {
|
|
382
|
+
cy: "molecule-div-title",
|
|
383
|
+
...e.value.style.chart.title
|
|
384
|
+
},
|
|
385
|
+
subtitle: {
|
|
386
|
+
cy: "molecule-div-subtitle",
|
|
387
|
+
...e.value.style.chart.title.subtitle
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}, null, 8, ["config"]))
|
|
391
|
+
])) : g("", !0),
|
|
392
|
+
e.value.userOptions.show && q.value && (l(le) || l(M)) ? (u(), k(l(Be), {
|
|
393
|
+
ref_key: "details",
|
|
394
|
+
ref: Ve,
|
|
395
|
+
key: `user_options_${K.value}`,
|
|
396
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
|
+
color: e.value.style.chart.color,
|
|
398
|
+
isPrinting: l(se),
|
|
399
|
+
isImaging: l(ne),
|
|
400
|
+
uid: R.value,
|
|
401
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
402
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
403
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
404
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
405
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
406
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
407
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
408
|
+
isTooltip: v.value.showTooltip,
|
|
409
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
410
|
+
chartElement: T.value,
|
|
411
|
+
position: e.value.userOptions.position,
|
|
412
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
413
|
+
isAnnotation: F.value,
|
|
414
|
+
callbacks: e.value.userOptions.callbacks,
|
|
415
|
+
printScale: e.value.userOptions.print.scale,
|
|
416
|
+
onToggleFullscreen: he,
|
|
417
|
+
onGeneratePdf: l(re),
|
|
418
|
+
onGenerateCsv: pe,
|
|
419
|
+
onGenerateImage: l(ie),
|
|
420
|
+
onToggleTable: fe,
|
|
421
|
+
onToggleLabels: me,
|
|
422
|
+
onToggleTooltip: ge,
|
|
423
|
+
onToggleAnnotator: X,
|
|
424
|
+
style: E({
|
|
425
|
+
visibility: l(le) ? l(M) ? "visible" : "hidden" : "visible"
|
|
426
|
+
})
|
|
427
|
+
}, ut({ _: 2 }, [
|
|
428
|
+
t.$slots.menuIcon ? {
|
|
429
|
+
name: "menuIcon",
|
|
430
|
+
fn: d(({ isOpen: o, color: n }) => [
|
|
431
|
+
c(t.$slots, "menuIcon", w($({ isOpen: o, color: n })), void 0, !0)
|
|
432
|
+
]),
|
|
433
|
+
key: "0"
|
|
434
|
+
} : void 0,
|
|
435
|
+
t.$slots.optionTooltip ? {
|
|
436
|
+
name: "optionTooltip",
|
|
437
|
+
fn: d(() => [
|
|
438
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
439
|
+
]),
|
|
440
|
+
key: "1"
|
|
441
|
+
} : void 0,
|
|
442
|
+
t.$slots.optionPdf ? {
|
|
443
|
+
name: "optionPdf",
|
|
444
|
+
fn: d(() => [
|
|
445
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
446
|
+
]),
|
|
447
|
+
key: "2"
|
|
448
|
+
} : void 0,
|
|
449
|
+
t.$slots.optionCsv ? {
|
|
450
|
+
name: "optionCsv",
|
|
451
|
+
fn: d(() => [
|
|
452
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
key: "3"
|
|
455
|
+
} : void 0,
|
|
456
|
+
t.$slots.optionImg ? {
|
|
457
|
+
name: "optionImg",
|
|
458
|
+
fn: d(() => [
|
|
459
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
460
|
+
]),
|
|
461
|
+
key: "4"
|
|
462
|
+
} : void 0,
|
|
463
|
+
t.$slots.optionTable ? {
|
|
464
|
+
name: "optionTable",
|
|
465
|
+
fn: d(() => [
|
|
466
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
467
|
+
]),
|
|
468
|
+
key: "5"
|
|
469
|
+
} : void 0,
|
|
470
|
+
t.$slots.optionLabels ? {
|
|
471
|
+
name: "optionLabels",
|
|
472
|
+
fn: d(() => [
|
|
473
|
+
c(t.$slots, "optionLabels", {}, void 0, !0)
|
|
474
|
+
]),
|
|
475
|
+
key: "6"
|
|
476
|
+
} : void 0,
|
|
477
|
+
t.$slots.optionFullscreen ? {
|
|
478
|
+
name: "optionFullscreen",
|
|
479
|
+
fn: d(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
480
|
+
c(t.$slots, "optionFullscreen", w($({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
key: "7"
|
|
483
|
+
} : void 0,
|
|
484
|
+
t.$slots.optionAnnotator ? {
|
|
485
|
+
name: "optionAnnotator",
|
|
486
|
+
fn: d(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
487
|
+
c(t.$slots, "optionAnnotator", w($({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
488
|
+
]),
|
|
489
|
+
key: "8"
|
|
490
|
+
} : void 0
|
|
491
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
492
|
+
(u(), C("svg", {
|
|
493
|
+
ref_key: "svgRef",
|
|
494
|
+
ref: V,
|
|
495
|
+
key: `svg_${ae.value}`,
|
|
496
|
+
xmlns: l(kt),
|
|
497
|
+
viewBox: `${l(B).x} ${l(B).y} ${l(B).width} ${l(B).height}`,
|
|
498
|
+
class: Ae({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
499
|
+
style: E(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
500
|
+
}, [
|
|
501
|
+
N(l(xe)),
|
|
502
|
+
t.$slots["chart-background"] ? (u(), C("foreignObject", {
|
|
503
|
+
key: 0,
|
|
504
|
+
x: 0,
|
|
505
|
+
y: 0,
|
|
506
|
+
width: p.value.width <= 0 ? 10 : p.value.width,
|
|
507
|
+
height: p.value.height <= 0 ? 10 : p.value.height,
|
|
508
|
+
style: {
|
|
509
|
+
pointerEvents: "none"
|
|
510
|
+
}
|
|
511
|
+
}, [
|
|
512
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
513
|
+
], 8, Ht)) : g("", !0),
|
|
514
|
+
L("defs", null, [
|
|
515
|
+
(u(!0), C(ct, null, dt(Object.keys(Ye.value), (o) => (u(), C("radialGradient", {
|
|
516
|
+
id: `gradient_${o}`,
|
|
517
|
+
cx: "50%",
|
|
518
|
+
cy: "30%",
|
|
519
|
+
r: "50%",
|
|
520
|
+
fx: "50%",
|
|
521
|
+
fy: "50%"
|
|
522
|
+
}, [
|
|
523
|
+
L("stop", {
|
|
524
|
+
offset: "0%",
|
|
525
|
+
"stop-color": l(wt)(o, 0.5)
|
|
526
|
+
}, null, 8, Vt),
|
|
527
|
+
L("stop", {
|
|
528
|
+
offset: "100%",
|
|
529
|
+
"stop-color": o
|
|
530
|
+
}, null, 8, Gt)
|
|
531
|
+
], 8, Mt))), 256))
|
|
532
|
+
]),
|
|
533
|
+
N(l(Ee), {
|
|
534
|
+
dataset: b.value,
|
|
535
|
+
color: e.value.style.chart.links.stroke,
|
|
536
|
+
backgroundColor: e.value.style.chart.backgroundColor
|
|
537
|
+
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
538
|
+
N(l(Ue), {
|
|
539
|
+
dataset: b.value,
|
|
540
|
+
hoveredUid: I.value,
|
|
541
|
+
stroke: e.value.style.chart.nodes.stroke,
|
|
542
|
+
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
543
|
+
onClick: lt,
|
|
544
|
+
onHover: Qe
|
|
545
|
+
}, {
|
|
546
|
+
node: d(({ node: o }) => [
|
|
547
|
+
c(t.$slots, "node", w($({ node: o })), void 0, !0)
|
|
548
|
+
]),
|
|
549
|
+
_: 3
|
|
550
|
+
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
551
|
+
v.value.showDataLabels && !l(z) ? (u(), k(l(Re), {
|
|
552
|
+
key: 1,
|
|
553
|
+
dataset: b.value,
|
|
554
|
+
color: e.value.style.chart.color,
|
|
555
|
+
hoveredUid: I.value
|
|
556
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : g("", !0),
|
|
557
|
+
c(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
558
|
+
], 14, zt)),
|
|
559
|
+
t.$slots.watermark ? (u(), C("div", Wt, [
|
|
560
|
+
c(t.$slots, "watermark", w($({ isPrinting: l(se) || l(ne) })), void 0, !0)
|
|
561
|
+
])) : g("", !0),
|
|
562
|
+
l(tt) ? (u(), C("div", Xt, [
|
|
563
|
+
c(t.$slots, "reset-action", { reset: l(j) }, () => [
|
|
564
|
+
L("button", {
|
|
565
|
+
"data-cy-reset": "",
|
|
566
|
+
tabindex: "0",
|
|
567
|
+
role: "button",
|
|
568
|
+
class: "vue-data-ui-refresh-button",
|
|
569
|
+
style: E({
|
|
570
|
+
background: e.value.style.chart.backgroundColor
|
|
571
|
+
}),
|
|
572
|
+
onClick: a[0] || (a[0] = (o) => l(j)(!0))
|
|
573
|
+
}, [
|
|
574
|
+
N(l(Ne), {
|
|
575
|
+
name: "refresh",
|
|
576
|
+
stroke: e.value.style.chart.color
|
|
577
|
+
}, null, 8, ["stroke"])
|
|
578
|
+
], 4)
|
|
579
|
+
], !0)
|
|
580
|
+
])) : g("", !0),
|
|
581
|
+
t.$slots.source ? (u(), C("div", jt, [
|
|
582
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
583
|
+
], 512)) : g("", !0),
|
|
584
|
+
N(l(Fe), {
|
|
585
|
+
show: v.value.showTooltip && U.value,
|
|
586
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
587
|
+
color: e.value.style.chart.tooltip.color,
|
|
588
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
589
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
590
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
591
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
592
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
593
|
+
position: e.value.style.chart.tooltip.position,
|
|
594
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
595
|
+
parent: T.value,
|
|
596
|
+
content: S.value,
|
|
597
|
+
isFullscreen: P.value,
|
|
598
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
599
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
600
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
601
|
+
}, {
|
|
602
|
+
"tooltip-before": d(() => [
|
|
603
|
+
c(t.$slots, "tooltip-before", w($({ ...W.value })), void 0, !0)
|
|
604
|
+
]),
|
|
605
|
+
"tooltip-after": d(() => [
|
|
606
|
+
c(t.$slots, "tooltip-after", w($({ ...W.value })), void 0, !0)
|
|
607
|
+
]),
|
|
608
|
+
_: 3
|
|
609
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
610
|
+
q.value ? (u(), k(l(Le), {
|
|
611
|
+
key: 7,
|
|
612
|
+
hideDetails: "",
|
|
613
|
+
config: {
|
|
614
|
+
open: v.value.showTable,
|
|
615
|
+
maxHeight: 1e4,
|
|
616
|
+
body: {
|
|
617
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
618
|
+
color: e.value.style.chart.color
|
|
619
|
+
},
|
|
620
|
+
head: {
|
|
621
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
622
|
+
color: e.value.style.chart.color
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}, {
|
|
626
|
+
content: d(() => [
|
|
627
|
+
(u(), k(l(Se), {
|
|
628
|
+
key: `table_${te.value}`,
|
|
629
|
+
colNames: _.value.colNames,
|
|
630
|
+
head: _.value.head,
|
|
631
|
+
body: _.value.body,
|
|
632
|
+
config: _.value.config,
|
|
633
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
634
|
+
onClose: a[1] || (a[1] = (o) => v.value.showTable = !1)
|
|
635
|
+
}, {
|
|
636
|
+
th: d(({ th: o }) => [
|
|
637
|
+
L("div", {
|
|
638
|
+
innerHTML: o,
|
|
639
|
+
style: { display: "flex", "align-items": "center" }
|
|
640
|
+
}, null, 8, Yt)
|
|
641
|
+
]),
|
|
642
|
+
td: d(({ td: o }) => [
|
|
643
|
+
vt(pt(o.name || o), 1)
|
|
644
|
+
]),
|
|
645
|
+
_: 1
|
|
646
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
647
|
+
]),
|
|
648
|
+
_: 1
|
|
649
|
+
}, 8, ["config"])) : g("", !0),
|
|
650
|
+
l(z) ? (u(), k(Ft, { key: 8 })) : g("", !0)
|
|
651
|
+
], 46, Et));
|
|
652
|
+
}
|
|
653
|
+
}, no = /* @__PURE__ */ xt(Zt, [["__scopeId", "data-v-8a23b240"]]);
|
|
654
|
+
export {
|
|
655
|
+
no as default
|
|
656
|
+
};
|