vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { useCssVars as Je, defineAsyncComponent as p, computed as k, onMounted as Ke, ref as c, watch as et, createElementBlock as y, openBlock as i, unref as s, normalizeStyle as R, normalizeClass as pe, createBlock as $, createCommentVNode as f, createVNode as S, createSlots as tt, withCtx as d, renderSlot as u, normalizeProps as w, guardReactiveProps as T, createElementVNode as _, Fragment as ot, renderList as lt, createTextVNode as st, toDisplayString as at, nextTick as nt } from "vue";
|
|
2
|
+
import { u as rt, o as it, e as ut, c as fe, t as ct, p as ge, a as dt, b as vt, Q as ht, X as pt, l as ft, R as gt, d as me, q as mt, r as yt, x as bt, y as kt } from "./index-CobsZUkv.js";
|
|
3
|
+
import { u as ye } from "./useNestedProp-BwL5wmVa.js";
|
|
4
|
+
import { u as Ct } from "./usePrinter-DPh6U_Qk.js";
|
|
5
|
+
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { u as Tt } from "./usePanZoom-BQMvRXEQ.js";
|
|
8
|
+
import Ot from "./img-utitT2Gd.js";
|
|
9
|
+
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const At = ["id"], It = {
|
|
10
11
|
key: 1,
|
|
11
12
|
ref: "noTitle",
|
|
12
13
|
class: "vue-data-ui-no-title-space",
|
|
13
14
|
style: "height:36px; width: 100%;background:transparent"
|
|
14
|
-
},
|
|
15
|
+
}, Nt = {
|
|
15
16
|
key: 2,
|
|
16
17
|
style: "width:100%;background:transparent;"
|
|
17
|
-
},
|
|
18
|
+
}, Ft = ["xmlns", "viewBox"], St = ["width", "height"], _t = ["id"], Lt = ["stop-color"], Dt = ["stop-color"], Bt = {
|
|
18
19
|
key: 5,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
21
|
+
}, Rt = {
|
|
21
22
|
key: 6,
|
|
22
23
|
"data-dom-to-png-ignore": "",
|
|
23
24
|
class: "reset-wrapper"
|
|
24
|
-
},
|
|
25
|
+
}, Ut = {
|
|
25
26
|
key: 8,
|
|
26
27
|
ref: "source",
|
|
27
28
|
dir: "auto"
|
|
28
|
-
},
|
|
29
|
+
}, Et = ["innerHTML"], xt = {
|
|
29
30
|
__name: "vue-ui-molecule",
|
|
30
31
|
props: {
|
|
31
32
|
config: {
|
|
@@ -42,125 +43,125 @@ const Ot = ["id"], Pt = {
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
emits: ["selectNode"],
|
|
45
|
-
setup(
|
|
46
|
-
|
|
47
|
-
"
|
|
46
|
+
setup(be, { expose: ke, emit: Ce }) {
|
|
47
|
+
Je((t) => ({
|
|
48
|
+
"6620eef8": t.slicerColor
|
|
48
49
|
}));
|
|
49
|
-
const
|
|
50
|
-
|
|
50
|
+
const $e = p(() => import("./vue-ui-accordion-UewqY6OI.js")), we = p(() => import("./BaseIcon-D9Tz8ARD.js")), Te = p(() => import("./DataTable-Dt-TIOyY.js")), Oe = p(() => import("./PackageVersion-C-4Ee8BQ.js")), Pe = p(() => import("./PenAndPaper-Cde-wJ3N.js")), Ae = p(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ie = p(() => import("./RecursiveLabels-NTMB9w5C.js")), Ne = p(() => import("./RecursiveLinks-ld_gDZH4.js")), Fe = p(() => import("./vue-ui-skeleton-8s4xts8z.js")), Se = p(() => import("./Title-DpERl1yr.js")), _e = p(() => import("./Tooltip-DA0bYKFG.js")), Le = p(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_molecule: De } = rt(), C = be, Be = Ce, L = k(() => !!C.dataset && C.dataset.length);
|
|
51
|
+
Ke(() => {
|
|
51
52
|
W();
|
|
52
53
|
});
|
|
53
54
|
function W() {
|
|
54
|
-
|
|
55
|
+
it(C.dataset) && ut({
|
|
55
56
|
componentName: "VueUiMolecule",
|
|
56
57
|
type: "dataset"
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
const
|
|
60
|
+
const U = c(fe()), Re = c(null), E = c(!1), D = c(""), O = c(null), X = c(0), j = c(0), Y = c(0), e = k({
|
|
60
61
|
get: () => Q(),
|
|
61
62
|
set: (t) => t
|
|
62
|
-
}), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } =
|
|
63
|
+
}), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = $t({ config: e.value }), { svgRef: z } = wt({ config: e.value.style.chart.title });
|
|
63
64
|
function Q() {
|
|
64
|
-
const t =
|
|
65
|
+
const t = ye({
|
|
65
66
|
userConfig: C.config,
|
|
66
|
-
defaultConfig:
|
|
67
|
+
defaultConfig: De
|
|
67
68
|
});
|
|
68
69
|
return t.theme ? {
|
|
69
|
-
...
|
|
70
|
-
userConfig:
|
|
70
|
+
...ye({
|
|
71
|
+
userConfig: dt.vue_ui_molecule[t.theme] || C.config,
|
|
71
72
|
defaultConfig: t
|
|
72
73
|
}),
|
|
73
|
-
customPalette:
|
|
74
|
+
customPalette: ct[t.theme] || ge
|
|
74
75
|
} : t;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
et(() => C.config, (t) => {
|
|
77
78
|
e.value = Q(), x.value = !e.value.userOptions.showOnChartHover, W(), j.value += 1, Y.value += 1, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
78
79
|
}, { deep: !0 });
|
|
79
|
-
const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } =
|
|
80
|
-
elementId: `cluster_${
|
|
80
|
+
const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } = Ct({
|
|
81
|
+
elementId: `cluster_${U.value}`,
|
|
81
82
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
82
83
|
options: e.value.userOptions.print
|
|
83
|
-
}),
|
|
84
|
+
}), Ue = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = k(() => vt(e.value.customPalette)), h = c({
|
|
84
85
|
showTable: e.value.table.show,
|
|
85
86
|
showDataLabels: !0,
|
|
86
87
|
showTooltip: e.value.style.chart.tooltip.show
|
|
87
88
|
});
|
|
88
|
-
function oe(t,
|
|
89
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes,
|
|
89
|
+
function oe(t, l = 0) {
|
|
90
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes, l + 1) : l;
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function xe() {
|
|
92
93
|
const t = oe(C.dataset);
|
|
93
|
-
let
|
|
94
|
+
let l = 100, o = l;
|
|
94
95
|
for (let n = 0; n < t; n += 1)
|
|
95
|
-
|
|
96
|
+
l /= 1, o += l;
|
|
96
97
|
return {
|
|
97
98
|
height: o,
|
|
98
99
|
width: o
|
|
99
100
|
};
|
|
100
101
|
}
|
|
101
|
-
const v = c(
|
|
102
|
+
const v = c(xe());
|
|
102
103
|
c(`0 0 ${v.value.width} ${v.value.height}`);
|
|
103
|
-
function le(t,
|
|
104
|
+
function le(t, l = { x: -v.value.width / 2.43, y: v.value.height / 2 }, o = v.value.width / 1.1, n = 24, a = 0, r = 0, g = "#BBBBBB", G = 0) {
|
|
104
105
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
105
|
-
const
|
|
106
|
-
plot:
|
|
106
|
+
const Qe = gt({
|
|
107
|
+
plot: l,
|
|
107
108
|
radius: o,
|
|
108
109
|
sides: t.length,
|
|
109
110
|
rotation: a
|
|
110
111
|
});
|
|
111
|
-
return t.forEach((m,
|
|
112
|
-
const
|
|
113
|
-
let M =
|
|
112
|
+
return t.forEach((m, de) => {
|
|
113
|
+
const ve = Qe.coordinates[de], he = m.color ? (() => {
|
|
114
|
+
let M = me(m.color);
|
|
114
115
|
return M.startsWith("#") ? M : `#${M}`;
|
|
115
116
|
})() : null;
|
|
116
|
-
let
|
|
117
|
-
|
|
117
|
+
let A;
|
|
118
|
+
he ? A = he : G === 0 ? A = g : G === 1 ? (A = Ee.value[r] || ge[r] || g, r += 1) : A = g, m.polygonPath = { coordinates: [ve] }, m.circleRadius = n, m.color = A, m.uid = fe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
|
|
118
119
|
m.nodes,
|
|
119
|
-
|
|
120
|
+
ve,
|
|
120
121
|
o / 2.9,
|
|
121
122
|
n / 2.2,
|
|
122
|
-
a + Math.PI *
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
a + Math.PI * de / m.nodes.length,
|
|
124
|
+
r,
|
|
125
|
+
A,
|
|
125
126
|
G + 1
|
|
126
127
|
));
|
|
127
128
|
}), t;
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
-
const
|
|
130
|
+
function ze(t) {
|
|
131
|
+
const l = /* @__PURE__ */ new Set();
|
|
131
132
|
function o(a) {
|
|
132
|
-
a.forEach((
|
|
133
|
-
if (!
|
|
134
|
-
let g =
|
|
135
|
-
/^#?[0-9A-F]{6}$/i.test(g) || (g =
|
|
133
|
+
a.forEach((r) => {
|
|
134
|
+
if (!r.color) return;
|
|
135
|
+
let g = r.color;
|
|
136
|
+
/^#?[0-9A-F]{6}$/i.test(g) || (g = me(g)), g.startsWith("#") || (g = `#${g}`), l.add(g), Array.isArray(r.nodes) && r.nodes.length && o(r.nodes);
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
o(t);
|
|
139
140
|
const n = {};
|
|
140
|
-
return Array.from(
|
|
141
|
-
const
|
|
142
|
-
n[a] = `gradient_${
|
|
141
|
+
return Array.from(l).forEach((a) => {
|
|
142
|
+
const r = a.slice(1);
|
|
143
|
+
n[a] = `gradient_${r}`;
|
|
143
144
|
}), n;
|
|
144
145
|
}
|
|
145
|
-
const
|
|
146
|
-
const t =
|
|
146
|
+
const He = k(() => ze(b.value)), b = k(() => {
|
|
147
|
+
const t = ht(C.dataset);
|
|
147
148
|
return le(t);
|
|
148
149
|
}), H = c(null);
|
|
149
|
-
function
|
|
150
|
+
function Ve(t) {
|
|
150
151
|
H.value = {
|
|
151
152
|
datapoint: t,
|
|
152
153
|
seriesIndex: -1,
|
|
153
154
|
series: b.value,
|
|
154
155
|
config: e.value
|
|
155
156
|
};
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
157
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
158
|
+
if (bt(l) && kt(() => l({
|
|
158
159
|
seriesIndex: -1,
|
|
159
160
|
datapoint: t,
|
|
160
161
|
series: b.value,
|
|
161
162
|
config: e.value
|
|
162
163
|
})))
|
|
163
|
-
|
|
164
|
+
D.value = l({
|
|
164
165
|
seriesIndex: -1,
|
|
165
166
|
// well, ok
|
|
166
167
|
datapoint: t,
|
|
@@ -169,34 +170,34 @@ const Ot = ["id"], Pt = {
|
|
|
169
170
|
});
|
|
170
171
|
else {
|
|
171
172
|
let o = "";
|
|
172
|
-
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>`),
|
|
173
|
+
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>`), D.value = `<div style="font-family:inherit">${o}</div>`;
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
|
-
const se = c(null),
|
|
176
|
-
function Ve(t) {
|
|
177
|
-
se.value = t, t ? (U.value = !0, He(t), A.value = t.uid) : (U.value = !1, L.value = "", A.value = null);
|
|
178
|
-
}
|
|
176
|
+
const se = c(null), I = c(null);
|
|
179
177
|
function Ge(t) {
|
|
180
|
-
|
|
178
|
+
se.value = t, t ? (E.value = !0, Ve(t), I.value = t.uid) : (E.value = !1, D.value = "", I.value = null);
|
|
179
|
+
}
|
|
180
|
+
function Me(t) {
|
|
181
|
+
const l = [];
|
|
181
182
|
function o(n) {
|
|
182
183
|
n.forEach((a) => {
|
|
183
|
-
const
|
|
184
|
+
const r = {
|
|
184
185
|
name: a.name,
|
|
185
186
|
details: a.details || "-",
|
|
186
187
|
ancestor: a.ancestor && a.ancestor.name || "-",
|
|
187
188
|
color: a.color || ""
|
|
188
189
|
};
|
|
189
|
-
|
|
190
|
+
l.push(r), a.nodes && a.nodes.length > 0 && o(a.nodes, a.name);
|
|
190
191
|
});
|
|
191
192
|
}
|
|
192
|
-
return o(t),
|
|
193
|
+
return o(t), l;
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
+
const We = k(() => Me(b.value)), P = k(() => {
|
|
195
196
|
const t = [
|
|
196
197
|
e.value.table.translations.nodeName,
|
|
197
198
|
e.value.table.translations.details,
|
|
198
199
|
e.value.table.translations.ancestor
|
|
199
|
-
],
|
|
200
|
+
], l = We.value.map((a, r) => [
|
|
200
201
|
{
|
|
201
202
|
color: a.color,
|
|
202
203
|
name: a.name
|
|
@@ -222,77 +223,91 @@ const Ot = ["id"], Pt = {
|
|
|
222
223
|
];
|
|
223
224
|
return {
|
|
224
225
|
head: t,
|
|
225
|
-
body:
|
|
226
|
+
body: l,
|
|
226
227
|
config: o,
|
|
227
228
|
colNames: n
|
|
228
229
|
};
|
|
229
230
|
});
|
|
230
231
|
function ae(t = null) {
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
t ? t(n) :
|
|
232
|
+
nt(() => {
|
|
233
|
+
const l = P.value.body.map((a, r) => [[a[0].name], [a[1]], [a[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...P.value.head]]].concat(l), n = mt(o);
|
|
234
|
+
t ? t(n) : yt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
234
235
|
});
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function Xe() {
|
|
237
238
|
return b.value;
|
|
238
239
|
}
|
|
239
|
-
const
|
|
240
|
-
function
|
|
241
|
-
|
|
240
|
+
const N = c(!1);
|
|
241
|
+
function ne(t) {
|
|
242
|
+
N.value = t, X.value += 1;
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function re() {
|
|
244
245
|
h.value.showTable = !h.value.showTable;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function ie() {
|
|
247
248
|
h.value.showDataLabels = !h.value.showDataLabels;
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function ue() {
|
|
250
251
|
h.value.showTooltip = !h.value.showTooltip;
|
|
251
252
|
}
|
|
252
|
-
const
|
|
253
|
+
const F = c(!1);
|
|
253
254
|
function V() {
|
|
254
|
-
|
|
255
|
+
F.value = !F.value;
|
|
255
256
|
}
|
|
256
|
-
const je = k(() => !
|
|
257
|
+
const je = k(() => !F.value), { viewBox: B, resetZoom: ce, isZoom: Ye } = Tt(z, {
|
|
257
258
|
x: 0,
|
|
258
259
|
y: 0,
|
|
259
260
|
width: v.value.width <= 0 ? 10 : v.value.width,
|
|
260
261
|
height: v.value.height <= 0 ? 10 : v.value.height
|
|
261
262
|
}, e.value.style.chart.zoom.speed, je);
|
|
262
263
|
function Ze(t) {
|
|
263
|
-
|
|
264
|
+
Be("selectNode", t);
|
|
265
|
+
}
|
|
266
|
+
async function qe({ scale: t = 2 } = {}) {
|
|
267
|
+
if (!O.value) return;
|
|
268
|
+
const { width: l, height: o } = O.value.getBoundingClientRect(), n = l / o, { imageUri: a, base64: r } = await Ot({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
269
|
+
return {
|
|
270
|
+
imageUri: a,
|
|
271
|
+
base64: r,
|
|
272
|
+
title: e.value.style.chart.title.text,
|
|
273
|
+
width: l,
|
|
274
|
+
height: o,
|
|
275
|
+
aspectRatio: n
|
|
276
|
+
};
|
|
264
277
|
}
|
|
265
|
-
return
|
|
266
|
-
getData:
|
|
278
|
+
return ke({
|
|
279
|
+
getData: Xe,
|
|
280
|
+
getImage: qe,
|
|
267
281
|
generatePdf: ee,
|
|
268
282
|
generateCsv: ae,
|
|
269
283
|
generateImage: te,
|
|
270
|
-
toggleTable:
|
|
271
|
-
toggleLabels:
|
|
272
|
-
toggleTooltip:
|
|
273
|
-
toggleAnnotator: V
|
|
274
|
-
|
|
284
|
+
toggleTable: re,
|
|
285
|
+
toggleLabels: ie,
|
|
286
|
+
toggleTooltip: ue,
|
|
287
|
+
toggleAnnotator: V,
|
|
288
|
+
toggleFullscreen: ne
|
|
289
|
+
}), (t, l) => (i(), y("div", {
|
|
275
290
|
ref_key: "moleculeChart",
|
|
276
|
-
ref:
|
|
277
|
-
class:
|
|
278
|
-
style:
|
|
279
|
-
id: `cluster_${
|
|
280
|
-
onMouseleave:
|
|
281
|
-
se.value = null,
|
|
291
|
+
ref: O,
|
|
292
|
+
class: pe(`vue-ui-molecule ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
293
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
294
|
+
id: `cluster_${U.value}`,
|
|
295
|
+
onMouseleave: l[2] || (l[2] = (o) => {
|
|
296
|
+
se.value = null, I.value = null, s(Z)(!1);
|
|
282
297
|
}),
|
|
283
|
-
onMouseenter:
|
|
298
|
+
onMouseenter: l[3] || (l[3] = () => s(Z)(!0))
|
|
284
299
|
}, [
|
|
285
|
-
e.value.userOptions.buttons.annotator ? (
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (i(), $(s(Pe), {
|
|
286
301
|
key: 0,
|
|
287
|
-
svgRef:
|
|
302
|
+
svgRef: s(z),
|
|
288
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
289
304
|
color: e.value.style.chart.color,
|
|
290
|
-
active:
|
|
305
|
+
active: F.value,
|
|
291
306
|
onClose: V
|
|
292
307
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
293
|
-
|
|
294
|
-
e.value.style.chart.title.text ? (
|
|
295
|
-
(
|
|
308
|
+
Ue.value ? (i(), y("div", It, null, 512)) : f("", !0),
|
|
309
|
+
e.value.style.chart.title.text ? (i(), y("div", Nt, [
|
|
310
|
+
(i(), $(s(Se), {
|
|
296
311
|
key: `title_${j.value}`,
|
|
297
312
|
config: {
|
|
298
313
|
title: {
|
|
@@ -306,15 +321,15 @@ const Ot = ["id"], Pt = {
|
|
|
306
321
|
}
|
|
307
322
|
}, null, 8, ["config"]))
|
|
308
323
|
])) : f("", !0),
|
|
309
|
-
e.value.userOptions.show &&
|
|
324
|
+
e.value.userOptions.show && L.value && (s(q) || s(x)) ? (i(), $(s(Le), {
|
|
310
325
|
ref_key: "details",
|
|
311
|
-
ref:
|
|
326
|
+
ref: Re,
|
|
312
327
|
key: `user_options_${X.value}`,
|
|
313
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
314
329
|
color: e.value.style.chart.color,
|
|
315
|
-
isPrinting:
|
|
316
|
-
isImaging:
|
|
317
|
-
uid:
|
|
330
|
+
isPrinting: s(J),
|
|
331
|
+
isImaging: s(K),
|
|
332
|
+
uid: U.value,
|
|
318
333
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
319
334
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
320
335
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -324,99 +339,99 @@ const Ot = ["id"], Pt = {
|
|
|
324
339
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
325
340
|
isTooltip: h.value.showTooltip,
|
|
326
341
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
327
|
-
chartElement:
|
|
342
|
+
chartElement: O.value,
|
|
328
343
|
position: e.value.userOptions.position,
|
|
329
344
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
330
|
-
isAnnotation:
|
|
345
|
+
isAnnotation: F.value,
|
|
331
346
|
callbacks: e.value.userOptions.callbacks,
|
|
332
347
|
printScale: e.value.userOptions.print.scale,
|
|
333
|
-
onToggleFullscreen:
|
|
334
|
-
onGeneratePdf:
|
|
348
|
+
onToggleFullscreen: ne,
|
|
349
|
+
onGeneratePdf: s(ee),
|
|
335
350
|
onGenerateCsv: ae,
|
|
336
|
-
onGenerateImage:
|
|
337
|
-
onToggleTable:
|
|
338
|
-
onToggleLabels:
|
|
339
|
-
onToggleTooltip:
|
|
351
|
+
onGenerateImage: s(te),
|
|
352
|
+
onToggleTable: re,
|
|
353
|
+
onToggleLabels: ie,
|
|
354
|
+
onToggleTooltip: ue,
|
|
340
355
|
onToggleAnnotator: V,
|
|
341
|
-
style:
|
|
342
|
-
visibility:
|
|
356
|
+
style: R({
|
|
357
|
+
visibility: s(q) ? s(x) ? "visible" : "hidden" : "visible"
|
|
343
358
|
})
|
|
344
|
-
},
|
|
359
|
+
}, tt({ _: 2 }, [
|
|
345
360
|
t.$slots.menuIcon ? {
|
|
346
361
|
name: "menuIcon",
|
|
347
362
|
fn: d(({ isOpen: o, color: n }) => [
|
|
348
|
-
|
|
363
|
+
u(t.$slots, "menuIcon", w(T({ isOpen: o, color: n })), void 0, !0)
|
|
349
364
|
]),
|
|
350
365
|
key: "0"
|
|
351
366
|
} : void 0,
|
|
352
367
|
t.$slots.optionTooltip ? {
|
|
353
368
|
name: "optionTooltip",
|
|
354
369
|
fn: d(() => [
|
|
355
|
-
|
|
370
|
+
u(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
356
371
|
]),
|
|
357
372
|
key: "1"
|
|
358
373
|
} : void 0,
|
|
359
374
|
t.$slots.optionPdf ? {
|
|
360
375
|
name: "optionPdf",
|
|
361
376
|
fn: d(() => [
|
|
362
|
-
|
|
377
|
+
u(t.$slots, "optionPdf", {}, void 0, !0)
|
|
363
378
|
]),
|
|
364
379
|
key: "2"
|
|
365
380
|
} : void 0,
|
|
366
381
|
t.$slots.optionCsv ? {
|
|
367
382
|
name: "optionCsv",
|
|
368
383
|
fn: d(() => [
|
|
369
|
-
|
|
384
|
+
u(t.$slots, "optionCsv", {}, void 0, !0)
|
|
370
385
|
]),
|
|
371
386
|
key: "3"
|
|
372
387
|
} : void 0,
|
|
373
388
|
t.$slots.optionImg ? {
|
|
374
389
|
name: "optionImg",
|
|
375
390
|
fn: d(() => [
|
|
376
|
-
|
|
391
|
+
u(t.$slots, "optionImg", {}, void 0, !0)
|
|
377
392
|
]),
|
|
378
393
|
key: "4"
|
|
379
394
|
} : void 0,
|
|
380
395
|
t.$slots.optionTable ? {
|
|
381
396
|
name: "optionTable",
|
|
382
397
|
fn: d(() => [
|
|
383
|
-
|
|
398
|
+
u(t.$slots, "optionTable", {}, void 0, !0)
|
|
384
399
|
]),
|
|
385
400
|
key: "5"
|
|
386
401
|
} : void 0,
|
|
387
402
|
t.$slots.optionLabels ? {
|
|
388
403
|
name: "optionLabels",
|
|
389
404
|
fn: d(() => [
|
|
390
|
-
|
|
405
|
+
u(t.$slots, "optionLabels", {}, void 0, !0)
|
|
391
406
|
]),
|
|
392
407
|
key: "6"
|
|
393
408
|
} : void 0,
|
|
394
409
|
t.$slots.optionFullscreen ? {
|
|
395
410
|
name: "optionFullscreen",
|
|
396
411
|
fn: d(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
397
|
-
|
|
412
|
+
u(t.$slots, "optionFullscreen", w(T({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
398
413
|
]),
|
|
399
414
|
key: "7"
|
|
400
415
|
} : void 0,
|
|
401
416
|
t.$slots.optionAnnotator ? {
|
|
402
417
|
name: "optionAnnotator",
|
|
403
418
|
fn: d(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
404
|
-
|
|
419
|
+
u(t.$slots, "optionAnnotator", w(T({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
405
420
|
]),
|
|
406
421
|
key: "8"
|
|
407
422
|
} : void 0
|
|
408
423
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
409
|
-
|
|
424
|
+
L.value ? (i(), y("svg", {
|
|
410
425
|
key: 4,
|
|
411
426
|
ref_key: "svgRef",
|
|
412
427
|
ref: z,
|
|
413
|
-
xmlns:
|
|
414
|
-
viewBox: `${
|
|
415
|
-
class:
|
|
416
|
-
style:
|
|
428
|
+
xmlns: s(pt),
|
|
429
|
+
viewBox: `${s(B).x} ${s(B).y} ${s(B).width} ${s(B).height}`,
|
|
430
|
+
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
431
|
+
style: R(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
417
432
|
}, [
|
|
418
|
-
|
|
419
|
-
t.$slots["chart-background"] ? (
|
|
433
|
+
S(s(Oe)),
|
|
434
|
+
t.$slots["chart-background"] ? (i(), y("foreignObject", {
|
|
420
435
|
key: 0,
|
|
421
436
|
x: 0,
|
|
422
437
|
y: 0,
|
|
@@ -426,10 +441,10 @@ const Ot = ["id"], Pt = {
|
|
|
426
441
|
pointerEvents: "none"
|
|
427
442
|
}
|
|
428
443
|
}, [
|
|
429
|
-
|
|
430
|
-
], 8,
|
|
431
|
-
|
|
432
|
-
(
|
|
444
|
+
u(t.$slots, "chart-background", {}, void 0, !0)
|
|
445
|
+
], 8, St)) : f("", !0),
|
|
446
|
+
_("defs", null, [
|
|
447
|
+
(i(!0), y(ot, null, lt(Object.keys(He.value), (o) => (i(), y("radialGradient", {
|
|
433
448
|
id: `gradient_${o}`,
|
|
434
449
|
cx: "50%",
|
|
435
450
|
cy: "30%",
|
|
@@ -437,65 +452,65 @@ const Ot = ["id"], Pt = {
|
|
|
437
452
|
fx: "50%",
|
|
438
453
|
fy: "50%"
|
|
439
454
|
}, [
|
|
440
|
-
|
|
455
|
+
_("stop", {
|
|
441
456
|
offset: "0%",
|
|
442
|
-
"stop-color":
|
|
443
|
-
}, null, 8,
|
|
444
|
-
|
|
457
|
+
"stop-color": s(ft)(o, 0.5)
|
|
458
|
+
}, null, 8, Lt),
|
|
459
|
+
_("stop", {
|
|
445
460
|
offset: "100%",
|
|
446
461
|
"stop-color": o
|
|
447
|
-
}, null, 8,
|
|
448
|
-
], 8,
|
|
462
|
+
}, null, 8, Dt)
|
|
463
|
+
], 8, _t))), 256))
|
|
449
464
|
]),
|
|
450
|
-
|
|
465
|
+
S(s(Ne), {
|
|
451
466
|
dataset: b.value,
|
|
452
467
|
color: e.value.style.chart.links.stroke,
|
|
453
468
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
454
469
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
455
|
-
|
|
470
|
+
S(s(Ae), {
|
|
456
471
|
dataset: b.value,
|
|
457
|
-
hoveredUid:
|
|
472
|
+
hoveredUid: I.value,
|
|
458
473
|
stroke: e.value.style.chart.nodes.stroke,
|
|
459
474
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
460
475
|
onClick: Ze,
|
|
461
|
-
onHover:
|
|
476
|
+
onHover: Ge
|
|
462
477
|
}, {
|
|
463
478
|
node: d(({ node: o }) => [
|
|
464
|
-
|
|
479
|
+
u(t.$slots, "node", w(T({ node: o })), void 0, !0)
|
|
465
480
|
]),
|
|
466
481
|
_: 3
|
|
467
482
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
468
|
-
h.value.showDataLabels ? (
|
|
483
|
+
h.value.showDataLabels ? (i(), $(s(Ie), {
|
|
469
484
|
key: 1,
|
|
470
485
|
dataset: b.value,
|
|
471
486
|
color: e.value.style.chart.color,
|
|
472
|
-
hoveredUid:
|
|
487
|
+
hoveredUid: I.value
|
|
473
488
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0),
|
|
474
|
-
|
|
475
|
-
], 14,
|
|
476
|
-
t.$slots.watermark ? (
|
|
477
|
-
|
|
489
|
+
u(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
490
|
+
], 14, Ft)) : f("", !0),
|
|
491
|
+
t.$slots.watermark ? (i(), y("div", Bt, [
|
|
492
|
+
u(t.$slots, "watermark", w(T({ isPrinting: s(J) || s(K) })), void 0, !0)
|
|
478
493
|
])) : f("", !0),
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
494
|
+
s(Ye) ? (i(), y("div", Rt, [
|
|
495
|
+
u(t.$slots, "reset-action", { reset: s(ce) }, () => [
|
|
496
|
+
_("button", {
|
|
482
497
|
"data-cy-reset": "",
|
|
483
498
|
tabindex: "0",
|
|
484
499
|
role: "button",
|
|
485
500
|
class: "vue-data-ui-refresh-button",
|
|
486
|
-
style:
|
|
501
|
+
style: R({
|
|
487
502
|
background: e.value.style.chart.backgroundColor
|
|
488
503
|
}),
|
|
489
|
-
onClick:
|
|
504
|
+
onClick: l[0] || (l[0] = (o) => s(ce)(!0))
|
|
490
505
|
}, [
|
|
491
|
-
|
|
506
|
+
S(s(we), {
|
|
492
507
|
name: "refresh",
|
|
493
508
|
stroke: e.value.style.chart.color
|
|
494
509
|
}, null, 8, ["stroke"])
|
|
495
510
|
], 4)
|
|
496
511
|
], !0)
|
|
497
512
|
])) : f("", !0),
|
|
498
|
-
|
|
513
|
+
L.value ? f("", !0) : (i(), $(s(Fe), {
|
|
499
514
|
key: 7,
|
|
500
515
|
config: {
|
|
501
516
|
type: "molecule",
|
|
@@ -507,11 +522,11 @@ const Ot = ["id"], Pt = {
|
|
|
507
522
|
}
|
|
508
523
|
}
|
|
509
524
|
}, null, 8, ["config"])),
|
|
510
|
-
t.$slots.source ? (
|
|
511
|
-
|
|
525
|
+
t.$slots.source ? (i(), y("div", Ut, [
|
|
526
|
+
u(t.$slots, "source", {}, void 0, !0)
|
|
512
527
|
], 512)) : f("", !0),
|
|
513
|
-
|
|
514
|
-
show: h.value.showTooltip &&
|
|
528
|
+
S(s(_e), {
|
|
529
|
+
show: h.value.showTooltip && E.value,
|
|
515
530
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
516
531
|
color: e.value.style.chart.tooltip.color,
|
|
517
532
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -521,20 +536,20 @@ const Ot = ["id"], Pt = {
|
|
|
521
536
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
522
537
|
position: e.value.style.chart.tooltip.position,
|
|
523
538
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
524
|
-
parent:
|
|
525
|
-
content:
|
|
526
|
-
isFullscreen:
|
|
539
|
+
parent: O.value,
|
|
540
|
+
content: D.value,
|
|
541
|
+
isFullscreen: N.value,
|
|
527
542
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
528
543
|
}, {
|
|
529
544
|
"tooltip-before": d(() => [
|
|
530
|
-
|
|
545
|
+
u(t.$slots, "tooltip-before", w(T({ ...H.value })), void 0, !0)
|
|
531
546
|
]),
|
|
532
547
|
"tooltip-after": d(() => [
|
|
533
|
-
|
|
548
|
+
u(t.$slots, "tooltip-after", w(T({ ...H.value })), void 0, !0)
|
|
534
549
|
]),
|
|
535
550
|
_: 3
|
|
536
551
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
537
|
-
|
|
552
|
+
L.value ? (i(), $(s($e), {
|
|
538
553
|
key: 9,
|
|
539
554
|
hideDetails: "",
|
|
540
555
|
config: {
|
|
@@ -551,32 +566,32 @@ const Ot = ["id"], Pt = {
|
|
|
551
566
|
}
|
|
552
567
|
}, {
|
|
553
568
|
content: d(() => [
|
|
554
|
-
(
|
|
569
|
+
(i(), $(s(Te), {
|
|
555
570
|
key: `table_${Y.value}`,
|
|
556
|
-
colNames:
|
|
557
|
-
head:
|
|
558
|
-
body:
|
|
559
|
-
config:
|
|
571
|
+
colNames: P.value.colNames,
|
|
572
|
+
head: P.value.head,
|
|
573
|
+
body: P.value.body,
|
|
574
|
+
config: P.value.config,
|
|
560
575
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
561
|
-
onClose:
|
|
576
|
+
onClose: l[1] || (l[1] = (o) => h.value.showTable = !1)
|
|
562
577
|
}, {
|
|
563
578
|
th: d(({ th: o }) => [
|
|
564
|
-
|
|
579
|
+
_("div", {
|
|
565
580
|
innerHTML: o,
|
|
566
581
|
style: { display: "flex", "align-items": "center" }
|
|
567
|
-
}, null, 8,
|
|
582
|
+
}, null, 8, Et)
|
|
568
583
|
]),
|
|
569
584
|
td: d(({ td: o }) => [
|
|
570
|
-
|
|
585
|
+
st(at(o.name || o), 1)
|
|
571
586
|
]),
|
|
572
587
|
_: 1
|
|
573
588
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
574
589
|
]),
|
|
575
590
|
_: 1
|
|
576
591
|
}, 8, ["config"])) : f("", !0)
|
|
577
|
-
], 46,
|
|
592
|
+
], 46, At));
|
|
578
593
|
}
|
|
579
|
-
},
|
|
594
|
+
}, Zt = /* @__PURE__ */ Pt(xt, [["__scopeId", "data-v-4132977f"]]);
|
|
580
595
|
export {
|
|
581
|
-
|
|
596
|
+
Zt as default
|
|
582
597
|
};
|