vue-data-ui 3.0.23 → 3.1.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/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -0,0 +1,744 @@
|
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as ht, onMounted as pt, watch as Oe, createElementBlock as v, openBlock as n, unref as u, normalizeStyle as R, normalizeClass as G, createBlock as T, createCommentVNode as c, createElementVNode as k, createVNode as te, createSlots as Ie, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as L, Fragment as Le, renderList as De, Teleport as gt, toDisplayString as D, resolveDynamicComponent as yt, mergeProps as ft, createTextVNode as Ae, nextTick as Ne } from "vue";
|
|
2
|
+
import { u as bt, c as Fe, t as mt, o as kt, f as Be, g as wt, a as Ct, p as H, b as $t, d as xt, G as Ve, e as Tt, M as Pt, i as P, X as _t, k as Me, y as Ee, v as St, w as Ot, z as It } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as Lt, u as Dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as At, B as Nt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as We } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Mt from "./img-gBDz7xQQ.js";
|
|
10
|
+
import Et from "./Title-Dz-j6ERs.js";
|
|
11
|
+
import Wt from "./Legend-8_V5egWW.js";
|
|
12
|
+
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "height"], Xt = ["id"], Yt = ["stdDeviation"], jt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Jt = ["filter"], Kt = ["d", "stroke", "stroke-width"], Qt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Zt = {
|
|
14
|
+
key: 4,
|
|
15
|
+
class: "vue-data-ui-watermark"
|
|
16
|
+
}, el = ["id"], tl = ["onClick"], ll = ["innerHTML"], al = {
|
|
17
|
+
__name: "vue-ui-galaxy",
|
|
18
|
+
props: {
|
|
19
|
+
config: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default() {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dataset: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default() {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["selectLegend", "selectDatapoint"],
|
|
33
|
+
setup(ze, { expose: Re, emit: Ge }) {
|
|
34
|
+
const He = x(() => import("./Tooltip-BTGOEC7w.js")), Ue = x(() => import("./BaseIcon-DLesaZpW.js")), Xe = x(() => import("./vue-ui-accordion-B5QeV3BK.js")), Ye = x(() => import("./DataTable-BAf4Obr9.js")), je = x(() => import("./PenAndPaper-B6OvfyHH.js")), qe = x(() => import("./UserOptions-CsDlFB0L.js")), Je = x(() => import("./PackageVersion-Cv_ypT0N.js")), Ke = x(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_galaxy: Qe } = bt(), w = ze, f = o(Fe()), b = o(null), Ze = o(null), U = o(!1), X = o(""), _ = o(null), le = o(0), ae = o(0), oe = o(0), se = o(0), ue = o(null), ne = o(null), re = o(null), ie = o(null), A = o(null), V = o(null), ve = o(!1), N = o(null), ce = i(() => !!w.dataset && w.dataset.length), e = o(q()), { loading: Y, FINAL_DATASET: de } = At({
|
|
35
|
+
...ht(w),
|
|
36
|
+
FINAL_CONFIG: e,
|
|
37
|
+
prepareConfig: q,
|
|
38
|
+
callback: () => {
|
|
39
|
+
Promise.resolve().then(async () => {
|
|
40
|
+
await Ne(), g.value.showTable = e.value.table.show;
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
skeletonDataset: [
|
|
44
|
+
{ name: "_", values: [21], color: "#DBDBDB" },
|
|
45
|
+
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
46
|
+
{ name: "_", values: [8], color: "#ADADAD" }
|
|
47
|
+
],
|
|
48
|
+
skeletonConfig: mt({
|
|
49
|
+
defaultConfig: e.value,
|
|
50
|
+
userConfig: {
|
|
51
|
+
userOptions: { show: !1 },
|
|
52
|
+
table: { show: !1 },
|
|
53
|
+
useCssAnimation: !1,
|
|
54
|
+
style: {
|
|
55
|
+
chart: {
|
|
56
|
+
backgroundColor: "#99999930",
|
|
57
|
+
legend: {
|
|
58
|
+
backgroundColor: "transparent"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
pt(() => {
|
|
66
|
+
ve.value = !0, pe();
|
|
67
|
+
});
|
|
68
|
+
const he = i(() => !!e.value.debug);
|
|
69
|
+
function pe() {
|
|
70
|
+
if (kt(w.dataset) ? Be({
|
|
71
|
+
componentName: "VueUiGalaxy",
|
|
72
|
+
type: "dataset",
|
|
73
|
+
debug: he.value
|
|
74
|
+
}) : w.dataset.forEach((t, a) => {
|
|
75
|
+
wt({
|
|
76
|
+
datasetObject: t,
|
|
77
|
+
requiredAttributes: ["name", "values"]
|
|
78
|
+
}).forEach((l) => {
|
|
79
|
+
Be({
|
|
80
|
+
componentName: "VueUiGalaxy",
|
|
81
|
+
type: "datasetSerieAttribute",
|
|
82
|
+
property: l,
|
|
83
|
+
index: a,
|
|
84
|
+
debug: he.value
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}), e.value.responsive) {
|
|
88
|
+
const t = Lt(() => {
|
|
89
|
+
const { width: a, height: l } = Dt({
|
|
90
|
+
chart: b.value,
|
|
91
|
+
title: e.value.style.chart.title.text ? ue.value : null,
|
|
92
|
+
legend: e.value.style.chart.legend.show ? ne.value : null,
|
|
93
|
+
noTitle: ie.value,
|
|
94
|
+
source: re.value
|
|
95
|
+
});
|
|
96
|
+
requestAnimationFrame(() => {
|
|
97
|
+
M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = b.value.parentNode, A.value.observe(V.value);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const { userOptionsVisible: j, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Bt({ config: e.value }), { svgRef: fe } = Vt({ config: e.value.style.chart.title });
|
|
104
|
+
function q() {
|
|
105
|
+
const t = We({
|
|
106
|
+
userConfig: w.config,
|
|
107
|
+
defaultConfig: Qe
|
|
108
|
+
});
|
|
109
|
+
return t.theme ? {
|
|
110
|
+
...We({
|
|
111
|
+
userConfig: $t.vue_ui_galaxy[t.theme] || w.config,
|
|
112
|
+
defaultConfig: t
|
|
113
|
+
}),
|
|
114
|
+
customPalette: Ct[t.theme] || H
|
|
115
|
+
} : t;
|
|
116
|
+
}
|
|
117
|
+
Oe(() => w.config, (t) => {
|
|
118
|
+
e.value = q(), j.value = !e.value.userOptions.showOnChartHover, pe(), ae.value += 1, oe.value += 1, se.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
119
|
+
}, { deep: !0 });
|
|
120
|
+
const { isPrinting: be, isImaging: me, generatePdf: ke, generateImage: we } = Ft({
|
|
121
|
+
elementId: `galaxy_${f.value}`,
|
|
122
|
+
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
123
|
+
options: e.value.userOptions.print
|
|
124
|
+
}), et = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), tt = i(() => xt(e.value.customPalette)), g = o({
|
|
125
|
+
dataLabels: {
|
|
126
|
+
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
127
|
+
},
|
|
128
|
+
showTable: e.value.table.show,
|
|
129
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
130
|
+
}), M = o(250), E = o(180), lt = o(0), at = o(0), C = i(() => ({
|
|
131
|
+
width: M.value,
|
|
132
|
+
height: E.value,
|
|
133
|
+
viewBox: `${lt.value} ${at.value} ${M.value} ${E.value}`
|
|
134
|
+
})), Ce = Ge, y = o([]);
|
|
135
|
+
function J(t) {
|
|
136
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), Ce("selectLegend", F.value.map((a) => ({
|
|
137
|
+
name: a.name,
|
|
138
|
+
color: a.color,
|
|
139
|
+
value: a.value
|
|
140
|
+
})));
|
|
141
|
+
}
|
|
142
|
+
const S = i(() => de.value.map((t, a) => ({
|
|
143
|
+
name: t.name,
|
|
144
|
+
color: Tt(t.color) || tt.value[a] || H[a] || H[a % H.length],
|
|
145
|
+
value: t.values ? Ve(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
146
|
+
absoluteValues: Ve(t.values),
|
|
147
|
+
id: Fe()
|
|
148
|
+
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
149
|
+
...t,
|
|
150
|
+
absoluteIndex: a
|
|
151
|
+
})));
|
|
152
|
+
function ot() {
|
|
153
|
+
return S.value.map((t) => ({
|
|
154
|
+
name: t.name,
|
|
155
|
+
color: t.color,
|
|
156
|
+
value: t.value
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
const m = i(() => S.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), $e = o(190), xe = i(() => S.value.filter((t) => !y.value.includes(t.id))), st = i(
|
|
160
|
+
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
161
|
+
), ut = i(() => Pt({
|
|
162
|
+
maxPoints: $e.value,
|
|
163
|
+
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
164
|
+
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
165
|
+
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
166
|
+
startX: C.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
|
|
167
|
+
startY: C.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
168
|
+
boxWidth: C.value.width,
|
|
169
|
+
boxHeight: C.value.height,
|
|
170
|
+
padding: st.value
|
|
171
|
+
})), F = i(() => {
|
|
172
|
+
const t = [];
|
|
173
|
+
for (let a = 0; a < xe.value.length; a += 1) {
|
|
174
|
+
const l = xe.value[a], s = l.value / m.value * $e.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
175
|
+
t.push({
|
|
176
|
+
points: s,
|
|
177
|
+
...l,
|
|
178
|
+
seriesIndex: a,
|
|
179
|
+
proportion: l.value / m.value,
|
|
180
|
+
path: ut.value(s)
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
184
|
+
});
|
|
185
|
+
function K(t) {
|
|
186
|
+
const a = Math.min(M.value, E.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
187
|
+
return {
|
|
188
|
+
border: s / 180 * a,
|
|
189
|
+
path: r / 180 * a,
|
|
190
|
+
blur: h / 180 * a
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
const O = o(!1);
|
|
194
|
+
function Te(t) {
|
|
195
|
+
O.value = t, le.value += 1;
|
|
196
|
+
}
|
|
197
|
+
const Q = o(null);
|
|
198
|
+
function nt(t) {
|
|
199
|
+
U.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
200
|
+
}
|
|
201
|
+
function rt(t) {
|
|
202
|
+
Ce("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
203
|
+
}
|
|
204
|
+
function it({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
205
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Q.value = {
|
|
206
|
+
datapoint: t,
|
|
207
|
+
seriesIndex: l,
|
|
208
|
+
series: S.value,
|
|
209
|
+
config: e.value
|
|
210
|
+
}, U.value = s, _.value = t.id;
|
|
211
|
+
let r = "";
|
|
212
|
+
const h = e.value.style.chart.tooltip.customFormat;
|
|
213
|
+
Ee(h) && It(() => h({
|
|
214
|
+
seriesIndex: l,
|
|
215
|
+
datapoint: t,
|
|
216
|
+
series: S.value,
|
|
217
|
+
config: e.value
|
|
218
|
+
})) ? X.value = h({
|
|
219
|
+
seriesIndex: l,
|
|
220
|
+
datapoint: t,
|
|
221
|
+
series: S.value,
|
|
222
|
+
config: e.value
|
|
223
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Me(
|
|
224
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
225
|
+
t.value,
|
|
226
|
+
P({
|
|
227
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
228
|
+
v: t.value,
|
|
229
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
230
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
231
|
+
}),
|
|
232
|
+
{ datapoint: t, seriesIndex: l }
|
|
233
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${P({
|
|
234
|
+
v: t.proportion * 100,
|
|
235
|
+
s: "%",
|
|
236
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
237
|
+
})})</span></div>` : r += `<b>${P({
|
|
238
|
+
v: t.proportion * 100,
|
|
239
|
+
s: "%",
|
|
240
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
241
|
+
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
242
|
+
}
|
|
243
|
+
const Pe = i(() => S.value.map((t, a) => ({
|
|
244
|
+
...t,
|
|
245
|
+
proportion: (t.value || 0) / de.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
246
|
+
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
247
|
+
shape: t.shape || "circle",
|
|
248
|
+
segregate: () => J(t),
|
|
249
|
+
isSegregated: y.value.includes(t.id)
|
|
250
|
+
}))), vt = i(() => ({
|
|
251
|
+
cy: "galaxy-div-legend",
|
|
252
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
253
|
+
color: e.value.style.chart.legend.color,
|
|
254
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
255
|
+
paddingBottom: 12,
|
|
256
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
257
|
+
})), $ = i(() => {
|
|
258
|
+
const t = F.value.map((l) => ({
|
|
259
|
+
name: l.name,
|
|
260
|
+
color: l.color
|
|
261
|
+
})), a = F.value.map((l) => l.value);
|
|
262
|
+
return { head: t, body: a };
|
|
263
|
+
});
|
|
264
|
+
function Z(t = null) {
|
|
265
|
+
Ne(() => {
|
|
266
|
+
const a = $.value.head.map((r, h) => [[
|
|
267
|
+
r.name
|
|
268
|
+
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = St(l);
|
|
269
|
+
t ? t(s) : Ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
const W = i(() => {
|
|
273
|
+
const t = [
|
|
274
|
+
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
275
|
+
P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
276
|
+
"100%"
|
|
277
|
+
], a = $.value.head.map((r, h) => {
|
|
278
|
+
const dt = P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
279
|
+
return [
|
|
280
|
+
{
|
|
281
|
+
color: r.color,
|
|
282
|
+
name: r.name
|
|
283
|
+
},
|
|
284
|
+
dt,
|
|
285
|
+
isNaN($.value.body[h] / m.value) ? "-" : P({
|
|
286
|
+
v: $.value.body[h] / m.value * 100,
|
|
287
|
+
s: "%",
|
|
288
|
+
r: e.value.table.td.roundingPercentage
|
|
289
|
+
})
|
|
290
|
+
];
|
|
291
|
+
}), l = {
|
|
292
|
+
th: {
|
|
293
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
294
|
+
color: e.value.table.th.color,
|
|
295
|
+
outline: e.value.table.th.outline
|
|
296
|
+
},
|
|
297
|
+
td: {
|
|
298
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
299
|
+
color: e.value.table.td.color,
|
|
300
|
+
outline: e.value.table.td.outline
|
|
301
|
+
},
|
|
302
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
303
|
+
};
|
|
304
|
+
return {
|
|
305
|
+
colNames: [
|
|
306
|
+
e.value.table.columnNames.series,
|
|
307
|
+
e.value.table.columnNames.value,
|
|
308
|
+
e.value.table.columnNames.percentage
|
|
309
|
+
],
|
|
310
|
+
head: t,
|
|
311
|
+
body: a,
|
|
312
|
+
config: l
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
function _e() {
|
|
316
|
+
g.value.showTable = !g.value.showTable;
|
|
317
|
+
}
|
|
318
|
+
function Se() {
|
|
319
|
+
g.value.showTooltip = !g.value.showTooltip;
|
|
320
|
+
}
|
|
321
|
+
const z = o(!1);
|
|
322
|
+
function ee() {
|
|
323
|
+
z.value = !z.value;
|
|
324
|
+
}
|
|
325
|
+
async function ct({ scale: t = 2 } = {}) {
|
|
326
|
+
if (!b.value) return;
|
|
327
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Mt({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
328
|
+
return {
|
|
329
|
+
imageUri: r,
|
|
330
|
+
base64: h,
|
|
331
|
+
title: e.value.style.chart.title.text,
|
|
332
|
+
width: a,
|
|
333
|
+
height: l,
|
|
334
|
+
aspectRatio: s
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
const B = i(() => {
|
|
338
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = g.value.showTable;
|
|
339
|
+
return {
|
|
340
|
+
component: t ? Ke : Xe,
|
|
341
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
342
|
+
props: t ? {
|
|
343
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
344
|
+
color: e.value.table.th.color,
|
|
345
|
+
headerColor: e.value.table.th.color,
|
|
346
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
347
|
+
isFullscreen: O.value,
|
|
348
|
+
fullscreenParent: b.value,
|
|
349
|
+
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
350
|
+
} : {
|
|
351
|
+
hideDetails: !0,
|
|
352
|
+
config: {
|
|
353
|
+
open: a,
|
|
354
|
+
maxHeight: 1e4,
|
|
355
|
+
body: {
|
|
356
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
|
+
color: e.value.style.chart.color
|
|
358
|
+
},
|
|
359
|
+
head: {
|
|
360
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
361
|
+
color: e.value.style.chart.color
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
return Oe(() => g.value.showTable, (t) => {
|
|
368
|
+
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
369
|
+
}), Re({
|
|
370
|
+
getData: ot,
|
|
371
|
+
getImage: ct,
|
|
372
|
+
generatePdf: ke,
|
|
373
|
+
generateCsv: Z,
|
|
374
|
+
generateImage: we,
|
|
375
|
+
toggleTable: _e,
|
|
376
|
+
toggleTooltip: Se,
|
|
377
|
+
toggleAnnotator: ee,
|
|
378
|
+
toggleFullscreen: Te
|
|
379
|
+
}), (t, a) => (n(), v("div", {
|
|
380
|
+
ref_key: "galaxyChart",
|
|
381
|
+
ref: b,
|
|
382
|
+
class: G(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
|
|
383
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
384
|
+
id: `galaxy_${f.value}`,
|
|
385
|
+
onMouseenter: a[4] || (a[4] = () => u(ge)(!0)),
|
|
386
|
+
onMouseleave: a[5] || (a[5] = () => u(ge)(!1))
|
|
387
|
+
}, [
|
|
388
|
+
e.value.userOptions.buttons.annotator ? (n(), T(u(je), {
|
|
389
|
+
key: 0,
|
|
390
|
+
svgRef: u(fe),
|
|
391
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
|
+
color: e.value.style.chart.color,
|
|
393
|
+
active: z.value,
|
|
394
|
+
onClose: ee
|
|
395
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
396
|
+
et.value ? (n(), v("div", {
|
|
397
|
+
key: 1,
|
|
398
|
+
ref_key: "noTitle",
|
|
399
|
+
ref: ie,
|
|
400
|
+
class: "vue-data-ui-no-title-space",
|
|
401
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
402
|
+
}, null, 512)) : c("", !0),
|
|
403
|
+
e.value.style.chart.title.text ? (n(), v("div", {
|
|
404
|
+
key: 2,
|
|
405
|
+
ref_key: "chartTitle",
|
|
406
|
+
ref: ue,
|
|
407
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
408
|
+
}, [
|
|
409
|
+
(n(), T(Et, {
|
|
410
|
+
key: `title_${ae.value}`,
|
|
411
|
+
config: {
|
|
412
|
+
title: {
|
|
413
|
+
cy: "galaxy-div-title",
|
|
414
|
+
...e.value.style.chart.title
|
|
415
|
+
},
|
|
416
|
+
subtitle: {
|
|
417
|
+
cy: "galaxy-div-subtitle",
|
|
418
|
+
...e.value.style.chart.title.subtitle
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}, null, 8, ["config"]))
|
|
422
|
+
], 512)) : c("", !0),
|
|
423
|
+
k("div", {
|
|
424
|
+
id: `legend-top-${f.value}`
|
|
425
|
+
}, null, 8, Gt),
|
|
426
|
+
e.value.userOptions.show && ce.value && (u(ye) || u(j)) ? (n(), T(u(qe), {
|
|
427
|
+
ref_key: "details",
|
|
428
|
+
ref: Ze,
|
|
429
|
+
key: `user_option_${le.value}`,
|
|
430
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
431
|
+
color: e.value.style.chart.color,
|
|
432
|
+
isPrinting: u(be),
|
|
433
|
+
isImaging: u(me),
|
|
434
|
+
uid: f.value,
|
|
435
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
436
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
437
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
438
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
439
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
440
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
441
|
+
isTooltip: g.value.showTooltip,
|
|
442
|
+
isFullscreen: O.value,
|
|
443
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
444
|
+
chartElement: b.value,
|
|
445
|
+
position: e.value.userOptions.position,
|
|
446
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
447
|
+
isAnnotation: z.value,
|
|
448
|
+
callbacks: e.value.userOptions.callbacks,
|
|
449
|
+
printScale: e.value.userOptions.print.scale,
|
|
450
|
+
onToggleFullscreen: Te,
|
|
451
|
+
onGeneratePdf: u(ke),
|
|
452
|
+
onGenerateCsv: Z,
|
|
453
|
+
onGenerateImage: u(we),
|
|
454
|
+
onToggleTable: _e,
|
|
455
|
+
onToggleTooltip: Se,
|
|
456
|
+
onToggleAnnotator: ee,
|
|
457
|
+
style: R({
|
|
458
|
+
visibility: u(ye) ? u(j) ? "visible" : "hidden" : "visible"
|
|
459
|
+
})
|
|
460
|
+
}, Ie({ _: 2 }, [
|
|
461
|
+
t.$slots.menuIcon ? {
|
|
462
|
+
name: "menuIcon",
|
|
463
|
+
fn: d(({ isOpen: l, color: s }) => [
|
|
464
|
+
p(t.$slots, "menuIcon", I(L({ isOpen: l, color: s })), void 0, !0)
|
|
465
|
+
]),
|
|
466
|
+
key: "0"
|
|
467
|
+
} : void 0,
|
|
468
|
+
t.$slots.optionTooltip ? {
|
|
469
|
+
name: "optionTooltip",
|
|
470
|
+
fn: d(() => [
|
|
471
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
472
|
+
]),
|
|
473
|
+
key: "1"
|
|
474
|
+
} : void 0,
|
|
475
|
+
t.$slots.optionPdf ? {
|
|
476
|
+
name: "optionPdf",
|
|
477
|
+
fn: d(() => [
|
|
478
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
479
|
+
]),
|
|
480
|
+
key: "2"
|
|
481
|
+
} : void 0,
|
|
482
|
+
t.$slots.optionCsv ? {
|
|
483
|
+
name: "optionCsv",
|
|
484
|
+
fn: d(() => [
|
|
485
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
486
|
+
]),
|
|
487
|
+
key: "3"
|
|
488
|
+
} : void 0,
|
|
489
|
+
t.$slots.optionImg ? {
|
|
490
|
+
name: "optionImg",
|
|
491
|
+
fn: d(() => [
|
|
492
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
493
|
+
]),
|
|
494
|
+
key: "4"
|
|
495
|
+
} : void 0,
|
|
496
|
+
t.$slots.optionTable ? {
|
|
497
|
+
name: "optionTable",
|
|
498
|
+
fn: d(() => [
|
|
499
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
500
|
+
]),
|
|
501
|
+
key: "5"
|
|
502
|
+
} : void 0,
|
|
503
|
+
t.$slots.optionFullscreen ? {
|
|
504
|
+
name: "optionFullscreen",
|
|
505
|
+
fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
506
|
+
p(t.$slots, "optionFullscreen", I(L({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
507
|
+
]),
|
|
508
|
+
key: "6"
|
|
509
|
+
} : void 0,
|
|
510
|
+
t.$slots.optionAnnotator ? {
|
|
511
|
+
name: "optionAnnotator",
|
|
512
|
+
fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
513
|
+
p(t.$slots, "optionAnnotator", I(L({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
514
|
+
]),
|
|
515
|
+
key: "7"
|
|
516
|
+
} : void 0
|
|
517
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
518
|
+
(n(), v("svg", {
|
|
519
|
+
ref_key: "svgRef",
|
|
520
|
+
ref: fe,
|
|
521
|
+
xmlns: u(_t),
|
|
522
|
+
class: G({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
523
|
+
viewBox: C.value.viewBox,
|
|
524
|
+
style: R(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
525
|
+
}, [
|
|
526
|
+
te(u(Je)),
|
|
527
|
+
t.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
528
|
+
key: 0,
|
|
529
|
+
x: 0,
|
|
530
|
+
y: 0,
|
|
531
|
+
width: C.value.width,
|
|
532
|
+
height: C.value.height,
|
|
533
|
+
style: {
|
|
534
|
+
pointerEvents: "none"
|
|
535
|
+
}
|
|
536
|
+
}, [
|
|
537
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
538
|
+
], 8, Ut)) : c("", !0),
|
|
539
|
+
k("defs", null, [
|
|
540
|
+
k("filter", {
|
|
541
|
+
id: `blur_${f.value}`,
|
|
542
|
+
x: "-50%",
|
|
543
|
+
y: "-50%",
|
|
544
|
+
width: "200%",
|
|
545
|
+
height: "200%"
|
|
546
|
+
}, [
|
|
547
|
+
k("feGaussianBlur", {
|
|
548
|
+
in: "SourceGraphic",
|
|
549
|
+
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
550
|
+
}, null, 8, Yt)
|
|
551
|
+
], 8, Xt)
|
|
552
|
+
]),
|
|
553
|
+
(n(!0), v(Le, null, De(F.value, (l) => (n(), v("g", null, [
|
|
554
|
+
l.value ? (n(), v("path", {
|
|
555
|
+
key: 0,
|
|
556
|
+
d: l.path,
|
|
557
|
+
fill: "none",
|
|
558
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
559
|
+
"stroke-width": K(l).border,
|
|
560
|
+
"stroke-linecap": "round"
|
|
561
|
+
}, null, 8, jt)) : c("", !0),
|
|
562
|
+
l.value ? (n(), v("path", {
|
|
563
|
+
key: 1,
|
|
564
|
+
d: l.path,
|
|
565
|
+
fill: "none",
|
|
566
|
+
stroke: l.color,
|
|
567
|
+
"stroke-width": K(l).path,
|
|
568
|
+
"stroke-linecap": "round",
|
|
569
|
+
class: G(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
570
|
+
}, null, 10, qt)) : c("", !0),
|
|
571
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), v("g", {
|
|
572
|
+
key: 2,
|
|
573
|
+
filter: `url(#blur_${f.value})`
|
|
574
|
+
}, [
|
|
575
|
+
k("path", {
|
|
576
|
+
d: l.path,
|
|
577
|
+
fill: "none",
|
|
578
|
+
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
579
|
+
"stroke-width": K(l).blur,
|
|
580
|
+
"stroke-linecap": "round",
|
|
581
|
+
class: G(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
582
|
+
}, null, 10, Kt)
|
|
583
|
+
], 8, Jt)) : c("", !0)
|
|
584
|
+
]))), 256)),
|
|
585
|
+
(n(!0), v(Le, null, De(F.value, (l, s) => (n(), v("g", null, [
|
|
586
|
+
l.value ? (n(), v("path", {
|
|
587
|
+
key: 0,
|
|
588
|
+
d: l.path,
|
|
589
|
+
fill: "none",
|
|
590
|
+
stroke: "transparent",
|
|
591
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
592
|
+
"stroke-linecap": "round",
|
|
593
|
+
onMouseenter: (r) => it({
|
|
594
|
+
datapoint: l,
|
|
595
|
+
seriesIndex: l.seriesIndex,
|
|
596
|
+
show: !0
|
|
597
|
+
}),
|
|
598
|
+
onMouseleave: (r) => nt(l),
|
|
599
|
+
onClick: (r) => rt(l)
|
|
600
|
+
}, null, 40, Qt)) : c("", !0)
|
|
601
|
+
]))), 256)),
|
|
602
|
+
p(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
603
|
+
], 14, Ht)),
|
|
604
|
+
t.$slots.watermark ? (n(), v("div", Zt, [
|
|
605
|
+
p(t.$slots, "watermark", I(L({ isPrinting: u(be) || u(me) })), void 0, !0)
|
|
606
|
+
])) : c("", !0),
|
|
607
|
+
k("div", {
|
|
608
|
+
id: `legend-bottom-${f.value}`
|
|
609
|
+
}, null, 8, el),
|
|
610
|
+
ve.value ? (n(), T(gt, {
|
|
611
|
+
key: 5,
|
|
612
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
613
|
+
}, [
|
|
614
|
+
k("div", {
|
|
615
|
+
ref_key: "chartLegend",
|
|
616
|
+
ref: ne
|
|
617
|
+
}, [
|
|
618
|
+
e.value.style.chart.legend.show ? (n(), T(Wt, {
|
|
619
|
+
key: `legend_${se.value}`,
|
|
620
|
+
legendSet: Pe.value,
|
|
621
|
+
config: vt.value,
|
|
622
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
|
|
623
|
+
}, {
|
|
624
|
+
item: d(({ legend: l, index: s }) => [
|
|
625
|
+
u(Y) ? c("", !0) : (n(), v("div", {
|
|
626
|
+
key: 0,
|
|
627
|
+
onClick: (r) => J(l),
|
|
628
|
+
style: R(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
629
|
+
}, D(l.name) + D(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + D(e.value.style.chart.legend.showValue ? u(Me)(
|
|
630
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
631
|
+
l.value,
|
|
632
|
+
u(P)({
|
|
633
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
634
|
+
v: l.value,
|
|
635
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
636
|
+
r: e.value.style.chart.legend.roundingValue
|
|
637
|
+
}),
|
|
638
|
+
{ datapoint: l, seriesIndex: s }
|
|
639
|
+
) : "") + " " + D(e.value.style.chart.legend.showPercentage ? y.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / m.value) ? "-" : u(P)({
|
|
640
|
+
v: l.value / m.value * 100,
|
|
641
|
+
s: "%",
|
|
642
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
643
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, tl))
|
|
644
|
+
]),
|
|
645
|
+
_: 1
|
|
646
|
+
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
647
|
+
p(t.$slots, "legend", { legend: Pe.value }, void 0, !0)
|
|
648
|
+
], 512)
|
|
649
|
+
], 8, ["to"])) : c("", !0),
|
|
650
|
+
t.$slots.source ? (n(), v("div", {
|
|
651
|
+
key: 6,
|
|
652
|
+
ref_key: "source",
|
|
653
|
+
ref: re,
|
|
654
|
+
dir: "auto"
|
|
655
|
+
}, [
|
|
656
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
657
|
+
], 512)) : c("", !0),
|
|
658
|
+
te(u(He), {
|
|
659
|
+
show: g.value.showTooltip && U.value,
|
|
660
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
661
|
+
color: e.value.style.chart.tooltip.color,
|
|
662
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
663
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
664
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
665
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
666
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
667
|
+
position: e.value.style.chart.tooltip.position,
|
|
668
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
669
|
+
parent: b.value,
|
|
670
|
+
content: X.value,
|
|
671
|
+
isFullscreen: O.value,
|
|
672
|
+
isCustom: u(Ee)(e.value.style.chart.tooltip.customFormat),
|
|
673
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
674
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
675
|
+
}, {
|
|
676
|
+
"tooltip-before": d(() => [
|
|
677
|
+
p(t.$slots, "tooltip-before", I(L({ ...Q.value })), void 0, !0)
|
|
678
|
+
]),
|
|
679
|
+
"tooltip-after": d(() => [
|
|
680
|
+
p(t.$slots, "tooltip-after", I(L({ ...Q.value })), void 0, !0)
|
|
681
|
+
]),
|
|
682
|
+
_: 3
|
|
683
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
684
|
+
ce.value ? (n(), T(yt(B.value.component), ft({ key: 7 }, B.value.props, {
|
|
685
|
+
ref_key: "tableUnit",
|
|
686
|
+
ref: N,
|
|
687
|
+
onClose: a[3] || (a[3] = (l) => g.value.showTable = !1)
|
|
688
|
+
}), Ie({
|
|
689
|
+
content: d(() => [
|
|
690
|
+
(n(), T(u(Ye), {
|
|
691
|
+
key: `table_${oe.value}`,
|
|
692
|
+
colNames: W.value.colNames,
|
|
693
|
+
head: W.value.head,
|
|
694
|
+
body: W.value.body,
|
|
695
|
+
config: W.value.config,
|
|
696
|
+
title: e.value.table.useDialog ? "" : B.value.title,
|
|
697
|
+
withCloseButton: !e.value.table.useDialog,
|
|
698
|
+
onClose: a[2] || (a[2] = (l) => g.value.showTable = !1)
|
|
699
|
+
}, {
|
|
700
|
+
th: d(({ th: l }) => [
|
|
701
|
+
k("div", {
|
|
702
|
+
innerHTML: l,
|
|
703
|
+
style: { display: "flex", "align-items": "center" }
|
|
704
|
+
}, null, 8, ll)
|
|
705
|
+
]),
|
|
706
|
+
td: d(({ td: l }) => [
|
|
707
|
+
Ae(D(l.name || l), 1)
|
|
708
|
+
]),
|
|
709
|
+
_: 1
|
|
710
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
711
|
+
]),
|
|
712
|
+
_: 2
|
|
713
|
+
}, [
|
|
714
|
+
e.value.table.useDialog ? {
|
|
715
|
+
name: "title",
|
|
716
|
+
fn: d(() => [
|
|
717
|
+
Ae(D(B.value.title), 1)
|
|
718
|
+
]),
|
|
719
|
+
key: "0"
|
|
720
|
+
} : void 0,
|
|
721
|
+
e.value.table.useDialog ? {
|
|
722
|
+
name: "actions",
|
|
723
|
+
fn: d(() => [
|
|
724
|
+
k("button", {
|
|
725
|
+
tabindex: "0",
|
|
726
|
+
class: "vue-ui-user-options-button",
|
|
727
|
+
onClick: a[1] || (a[1] = (l) => Z(e.value.userOptions.callbacks.csv))
|
|
728
|
+
}, [
|
|
729
|
+
te(u(Ue), {
|
|
730
|
+
name: "excel",
|
|
731
|
+
stroke: B.value.props.color
|
|
732
|
+
}, null, 8, ["stroke"])
|
|
733
|
+
])
|
|
734
|
+
]),
|
|
735
|
+
key: "1"
|
|
736
|
+
} : void 0
|
|
737
|
+
]), 1040)) : c("", !0),
|
|
738
|
+
u(Y) ? (n(), T(Nt, { key: 8 })) : c("", !0)
|
|
739
|
+
], 46, Rt));
|
|
740
|
+
}
|
|
741
|
+
}, yl = /* @__PURE__ */ zt(al, [["__scopeId", "data-v-7ec3c806"]]);
|
|
742
|
+
export {
|
|
743
|
+
yl as default
|
|
744
|
+
};
|