vue-data-ui 3.0.2 → 3.0.4
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-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { defineAsyncComponent as $, ref as s, computed as d, toRefs as nt, onMounted as rt, watch as it, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as z, normalizeClass as R, createBlock as x, createCommentVNode as c, createElementVNode as T, createVNode as _e, createSlots as ct, withCtx as g, renderSlot as h, normalizeProps as I, guardReactiveProps as L, Fragment as Se, renderList as Pe, Teleport as vt, toDisplayString as F, createTextVNode as dt, nextTick as ht } from "vue";
|
|
2
|
+
import { u as gt, c as Oe, t as pt, o as yt, f as Ie, g as ft, a as bt, p as W, b as mt, d as kt, G as Le, e as wt, M as Ct, i as _, X as $t, k as Ae, y as Ne, v as xt, w as Tt, z as _t } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { t as St, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ot, B as It } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as Lt } from "./usePrinter-DX7efa1s.js";
|
|
6
|
+
import { u as Fe } from "./useNestedProp-04aFeUYu.js";
|
|
7
|
+
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ft from "./img-Ctts6JQb.js";
|
|
10
|
+
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Dt = ["id"], Bt = ["id"], Mt = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], Rt = ["stdDeviation"], Wt = ["d", "stroke", "stroke-width"], Gt = ["d", "stroke", "stroke-width"], Ht = ["filter"], Ut = ["d", "stroke", "stroke-width"], Xt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Yt = {
|
|
12
12
|
key: 4,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, jt = ["id"], qt = ["onClick"], Jt = ["innerHTML"], Kt = {
|
|
15
15
|
__name: "vue-ui-galaxy",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -28,9 +28,9 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectLegend", "selectDatapoint"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
...
|
|
31
|
+
setup(Ve, { expose: De, emit: Be }) {
|
|
32
|
+
const Me = $(() => import("./Title-B55R8CAZ.js")), Ee = $(() => import("./Legend-DcDSkq99.js")), ze = $(() => import("./vue-ui-accordion-D46i_gkB.js")), Re = $(() => import("./DataTable-rj9-mAwF.js")), We = $(() => import("./Tooltip-BMOddG-M.js")), Ge = $(() => import("./PenAndPaper-BJ0hcgsa.js")), He = $(() => import("./UserOptions-DVzyjG-W.js")), Ue = $(() => import("./PackageVersion-5ZjKSIei.js")), { vue_ui_galaxy: Xe } = gt(), m = Ve, f = s(Oe()), k = s(null), Ye = s(null), G = s(!1), H = s(""), S = s(null), Q = s(0), Z = s(0), ee = s(0), te = s(0), le = s(null), ae = s(null), oe = s(null), se = s(null), A = s(null), V = s(null), ue = s(!1), ne = d(() => !!m.dataset && m.dataset.length), e = s(Y()), { loading: U, FINAL_DATASET: re } = Ot({
|
|
33
|
+
...nt(m),
|
|
34
34
|
FINAL_CONFIG: e,
|
|
35
35
|
prepareConfig: Y,
|
|
36
36
|
skeletonDataset: [
|
|
@@ -38,7 +38,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
38
38
|
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
39
39
|
{ name: "_", values: [8], color: "#ADADAD" }
|
|
40
40
|
],
|
|
41
|
-
skeletonConfig:
|
|
41
|
+
skeletonConfig: pt({
|
|
42
42
|
defaultConfig: e.value,
|
|
43
43
|
userConfig: {
|
|
44
44
|
userOptions: { show: !1 },
|
|
@@ -55,32 +55,32 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
rt(() => {
|
|
59
|
+
ue.value = !0, ce();
|
|
60
60
|
});
|
|
61
|
-
const
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
61
|
+
const ie = d(() => !!e.value.debug);
|
|
62
|
+
function ce() {
|
|
63
|
+
if (yt(m.dataset) ? Ie({
|
|
64
64
|
componentName: "VueUiGalaxy",
|
|
65
65
|
type: "dataset",
|
|
66
|
-
debug:
|
|
67
|
-
}) :
|
|
68
|
-
|
|
66
|
+
debug: ie.value
|
|
67
|
+
}) : m.dataset.forEach((t, a) => {
|
|
68
|
+
ft({
|
|
69
69
|
datasetObject: t,
|
|
70
70
|
requiredAttributes: ["name", "values"]
|
|
71
71
|
}).forEach((l) => {
|
|
72
|
-
|
|
72
|
+
Ie({
|
|
73
73
|
componentName: "VueUiGalaxy",
|
|
74
74
|
type: "datasetSerieAttribute",
|
|
75
75
|
property: l,
|
|
76
76
|
index: a,
|
|
77
|
-
debug:
|
|
77
|
+
debug: ie.value
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
}), e.value.responsive) {
|
|
81
|
-
const t =
|
|
82
|
-
const { width: a, height: l } =
|
|
83
|
-
chart:
|
|
81
|
+
const t = St(() => {
|
|
82
|
+
const { width: a, height: l } = Pt({
|
|
83
|
+
chart: k.value,
|
|
84
84
|
title: e.value.style.chart.title.text ? le.value : null,
|
|
85
85
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
86
86
|
noTitle: se.value,
|
|
@@ -90,193 +90,193 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
90
90
|
D.value = Math.max(0.1, a), B.value = Math.max(0.1, l - 12);
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value =
|
|
93
|
+
A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = k.value.parentNode, A.value.observe(V.value);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const { userOptionsVisible: X, setUserOptionsVisibility:
|
|
96
|
+
const { userOptionsVisible: X, setUserOptionsVisibility: ve, keepUserOptionState: de } = At({ config: e.value }), { svgRef: he } = Nt({ config: e.value.style.chart.title });
|
|
97
97
|
function Y() {
|
|
98
|
-
const t =
|
|
99
|
-
userConfig:
|
|
100
|
-
defaultConfig:
|
|
98
|
+
const t = Fe({
|
|
99
|
+
userConfig: m.config,
|
|
100
|
+
defaultConfig: Xe
|
|
101
101
|
});
|
|
102
102
|
return t.theme ? {
|
|
103
|
-
...
|
|
104
|
-
userConfig:
|
|
103
|
+
...Fe({
|
|
104
|
+
userConfig: mt.vue_ui_galaxy[t.theme] || m.config,
|
|
105
105
|
defaultConfig: t
|
|
106
106
|
}),
|
|
107
|
-
customPalette:
|
|
107
|
+
customPalette: bt[t.theme] || W
|
|
108
108
|
} : t;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
e.value = Y(), X.value = !e.value.userOptions.showOnChartHover,
|
|
110
|
+
it(() => m.config, (t) => {
|
|
111
|
+
e.value = Y(), X.value = !e.value.userOptions.showOnChartHover, ce(), Z.value += 1, ee.value += 1, te.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
112
112
|
}, { deep: !0 });
|
|
113
|
-
const { isPrinting:
|
|
114
|
-
elementId: `galaxy_${
|
|
113
|
+
const { isPrinting: ge, isImaging: pe, generatePdf: ye, generateImage: fe } = Lt({
|
|
114
|
+
elementId: `galaxy_${f.value}`,
|
|
115
115
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
116
116
|
options: e.value.userOptions.print
|
|
117
|
-
}),
|
|
117
|
+
}), je = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = d(() => kt(e.value.customPalette)), p = s({
|
|
118
118
|
dataLabels: {
|
|
119
119
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
120
120
|
},
|
|
121
121
|
showTable: e.value.table.show,
|
|
122
122
|
showTooltip: e.value.style.chart.tooltip.show
|
|
123
|
-
}), D =
|
|
123
|
+
}), D = s(250), B = s(180), Je = s(0), Ke = s(0), w = d(() => ({
|
|
124
124
|
width: D.value,
|
|
125
125
|
height: B.value,
|
|
126
|
-
viewBox: `${
|
|
127
|
-
})),
|
|
126
|
+
viewBox: `${Je.value} ${Ke.value} ${D.value} ${B.value}`
|
|
127
|
+
})), be = Be, y = s([]);
|
|
128
128
|
function j(t) {
|
|
129
|
-
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id),
|
|
129
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), be("selectLegend", N.value.map((a) => ({
|
|
130
130
|
name: a.name,
|
|
131
131
|
color: a.color,
|
|
132
132
|
value: a.value
|
|
133
133
|
})));
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const P = d(() => re.value.map((t, a) => ({
|
|
136
136
|
name: t.name,
|
|
137
|
-
color:
|
|
138
|
-
value: t.values ?
|
|
139
|
-
absoluteValues:
|
|
137
|
+
color: wt(t.color) || qe.value[a] || W[a] || W[a % W.length],
|
|
138
|
+
value: t.values ? Le(t.values).reduce((l, u) => l + u, 0) : 0,
|
|
139
|
+
absoluteValues: Le(t.values),
|
|
140
140
|
id: Oe()
|
|
141
141
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
142
142
|
...t,
|
|
143
143
|
absoluteIndex: a
|
|
144
144
|
})));
|
|
145
|
-
function
|
|
146
|
-
return
|
|
145
|
+
function Qe() {
|
|
146
|
+
return P.value.map((t) => ({
|
|
147
147
|
name: t.name,
|
|
148
148
|
color: t.color,
|
|
149
149
|
value: t.value
|
|
150
150
|
}));
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const b = d(() => P.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), me = s(190), ke = d(() => P.value.filter((t) => !y.value.includes(t.id))), Ze = d(
|
|
153
153
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
154
|
-
),
|
|
155
|
-
maxPoints:
|
|
154
|
+
), et = d(() => Ct({
|
|
155
|
+
maxPoints: me.value,
|
|
156
156
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
157
157
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
158
158
|
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
159
|
-
startX:
|
|
160
|
-
startY:
|
|
161
|
-
boxWidth:
|
|
162
|
-
boxHeight:
|
|
163
|
-
padding:
|
|
164
|
-
})), N =
|
|
159
|
+
startX: w.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
|
|
160
|
+
startY: w.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
161
|
+
boxWidth: w.value.width,
|
|
162
|
+
boxHeight: w.value.height,
|
|
163
|
+
padding: Ze.value
|
|
164
|
+
})), N = d(() => {
|
|
165
165
|
const t = [];
|
|
166
|
-
for (let a = 0; a <
|
|
167
|
-
const l =
|
|
166
|
+
for (let a = 0; a < ke.value.length; a += 1) {
|
|
167
|
+
const l = ke.value[a], u = l.value / b.value * me.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
168
168
|
t.push({
|
|
169
|
-
points:
|
|
169
|
+
points: u,
|
|
170
170
|
...l,
|
|
171
171
|
seriesIndex: a,
|
|
172
|
-
proportion: l.value /
|
|
173
|
-
path:
|
|
172
|
+
proportion: l.value / b.value,
|
|
173
|
+
path: et.value(u)
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
177
177
|
});
|
|
178
178
|
function q(t) {
|
|
179
|
-
const a = Math.min(D.value, B.value), l =
|
|
179
|
+
const a = Math.min(D.value, B.value), l = S.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, u = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, v = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
180
180
|
return {
|
|
181
|
-
border:
|
|
181
|
+
border: u / 180 * a,
|
|
182
182
|
path: r / 180 * a,
|
|
183
|
-
blur:
|
|
183
|
+
blur: v / 180 * a
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
const J = u(null);
|
|
191
|
-
function et(t) {
|
|
192
|
-
G.value = !1, x.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
186
|
+
const O = s(!1);
|
|
187
|
+
function we(t) {
|
|
188
|
+
O.value = t, Q.value += 1;
|
|
193
189
|
}
|
|
190
|
+
const J = s(null);
|
|
194
191
|
function tt(t) {
|
|
195
|
-
|
|
192
|
+
G.value = !1, S.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
193
|
+
}
|
|
194
|
+
function lt(t) {
|
|
195
|
+
be("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function at({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: u = !1 }) {
|
|
198
198
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), J.value = {
|
|
199
199
|
datapoint: t,
|
|
200
200
|
seriesIndex: l,
|
|
201
|
-
series:
|
|
201
|
+
series: P.value,
|
|
202
202
|
config: e.value
|
|
203
|
-
}, G.value =
|
|
203
|
+
}, G.value = u, S.value = t.id;
|
|
204
204
|
let r = "";
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
const v = e.value.style.chart.tooltip.customFormat;
|
|
206
|
+
Ne(v) && _t(() => v({
|
|
207
207
|
seriesIndex: l,
|
|
208
208
|
datapoint: t,
|
|
209
|
-
series:
|
|
209
|
+
series: P.value,
|
|
210
210
|
config: e.value
|
|
211
|
-
})) ? H.value =
|
|
211
|
+
})) ? H.value = v({
|
|
212
212
|
seriesIndex: l,
|
|
213
213
|
datapoint: t,
|
|
214
|
-
series:
|
|
214
|
+
series: P.value,
|
|
215
215
|
config: e.value
|
|
216
|
-
}) : (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>${
|
|
216
|
+
}) : (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>${Ae(
|
|
217
217
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
218
218
|
t.value,
|
|
219
|
-
|
|
219
|
+
_({
|
|
220
220
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
221
221
|
v: t.value,
|
|
222
222
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
223
223
|
r: e.value.style.chart.tooltip.roundingValue
|
|
224
224
|
}),
|
|
225
225
|
{ datapoint: t, seriesIndex: l }
|
|
226
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
226
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${_({
|
|
227
227
|
v: t.proportion * 100,
|
|
228
228
|
s: "%",
|
|
229
229
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
230
|
-
})})</span></div>` : r += `<b>${
|
|
230
|
+
})})</span></div>` : r += `<b>${_({
|
|
231
231
|
v: t.proportion * 100,
|
|
232
232
|
s: "%",
|
|
233
233
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
234
234
|
})}</b></div>`), H.value = `<div>${r}</div>`);
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const Ce = d(() => P.value.map((t, a) => ({
|
|
237
237
|
...t,
|
|
238
|
-
proportion: (t.value || 0) /
|
|
238
|
+
proportion: (t.value || 0) / re.value.map((l) => (l.values || []).reduce((u, r) => u + r, 0)).reduce((l, u) => l + u, 0),
|
|
239
239
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
240
240
|
shape: t.shape || "circle",
|
|
241
241
|
segregate: () => j(t),
|
|
242
242
|
isSegregated: y.value.includes(t.id)
|
|
243
|
-
}))),
|
|
243
|
+
}))), ot = d(() => ({
|
|
244
244
|
cy: "galaxy-div-legend",
|
|
245
245
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
246
246
|
color: e.value.style.chart.legend.color,
|
|
247
247
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
248
248
|
paddingBottom: 12,
|
|
249
249
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
250
|
-
})),
|
|
250
|
+
})), C = d(() => {
|
|
251
251
|
const t = N.value.map((l) => ({
|
|
252
252
|
name: l.name,
|
|
253
253
|
color: l.color
|
|
254
254
|
})), a = N.value.map((l) => l.value);
|
|
255
255
|
return { head: t, body: a };
|
|
256
256
|
});
|
|
257
|
-
function
|
|
258
|
-
|
|
259
|
-
const a =
|
|
257
|
+
function $e(t = null) {
|
|
258
|
+
ht(() => {
|
|
259
|
+
const a = C.value.head.map((r, v) => [[
|
|
260
260
|
r.name
|
|
261
|
-
], [
|
|
262
|
-
t ? t(
|
|
261
|
+
], [C.value.body[v]], [isNaN(C.value.body[v] / b.value) ? "-" : C.value.body[v] / b.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), u = xt(l);
|
|
262
|
+
t ? t(u) : Tt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
const M =
|
|
265
|
+
const M = d(() => {
|
|
266
266
|
const t = [
|
|
267
267
|
' <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>',
|
|
268
|
-
|
|
268
|
+
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
269
269
|
"100%"
|
|
270
|
-
], a =
|
|
271
|
-
const
|
|
270
|
+
], a = C.value.head.map((r, v) => {
|
|
271
|
+
const ut = _({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
272
272
|
return [
|
|
273
273
|
{
|
|
274
274
|
color: r.color,
|
|
275
275
|
name: r.name
|
|
276
276
|
},
|
|
277
|
-
|
|
278
|
-
isNaN(
|
|
279
|
-
v:
|
|
277
|
+
ut,
|
|
278
|
+
isNaN(C.value.body[v] / b.value) ? "-" : _({
|
|
279
|
+
v: C.value.body[v] / b.value * 100,
|
|
280
280
|
s: "%",
|
|
281
281
|
r: e.value.table.td.roundingPercentage
|
|
282
282
|
})
|
|
@@ -305,69 +305,69 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
305
305
|
config: l
|
|
306
306
|
};
|
|
307
307
|
});
|
|
308
|
-
function
|
|
308
|
+
function xe() {
|
|
309
309
|
p.value.showTable = !p.value.showTable;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Te() {
|
|
312
312
|
p.value.showTooltip = !p.value.showTooltip;
|
|
313
313
|
}
|
|
314
|
-
const E =
|
|
314
|
+
const E = s(!1);
|
|
315
315
|
function K() {
|
|
316
316
|
E.value = !E.value;
|
|
317
317
|
}
|
|
318
|
-
async function
|
|
319
|
-
if (!
|
|
320
|
-
const { width: a, height: l } =
|
|
318
|
+
async function st({ scale: t = 2 } = {}) {
|
|
319
|
+
if (!k.value) return;
|
|
320
|
+
const { width: a, height: l } = k.value.getBoundingClientRect(), u = a / l, { imageUri: r, base64: v } = await Ft({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
321
321
|
return {
|
|
322
322
|
imageUri: r,
|
|
323
|
-
base64:
|
|
323
|
+
base64: v,
|
|
324
324
|
title: e.value.style.chart.title.text,
|
|
325
325
|
width: a,
|
|
326
326
|
height: l,
|
|
327
|
-
aspectRatio:
|
|
327
|
+
aspectRatio: u
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
return
|
|
331
|
-
getData:
|
|
332
|
-
getImage:
|
|
333
|
-
generatePdf:
|
|
334
|
-
generateCsv:
|
|
335
|
-
generateImage:
|
|
336
|
-
toggleTable:
|
|
337
|
-
toggleTooltip:
|
|
330
|
+
return De({
|
|
331
|
+
getData: Qe,
|
|
332
|
+
getImage: st,
|
|
333
|
+
generatePdf: ye,
|
|
334
|
+
generateCsv: $e,
|
|
335
|
+
generateImage: fe,
|
|
336
|
+
toggleTable: xe,
|
|
337
|
+
toggleTooltip: Te,
|
|
338
338
|
toggleAnnotator: K,
|
|
339
|
-
toggleFullscreen:
|
|
339
|
+
toggleFullscreen: we
|
|
340
340
|
}), (t, a) => (n(), i("div", {
|
|
341
341
|
ref_key: "galaxyChart",
|
|
342
|
-
ref:
|
|
343
|
-
class: R(`vue-ui-galaxy ${
|
|
342
|
+
ref: k,
|
|
343
|
+
class: R(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${o(U) ? "loading" : ""}`),
|
|
344
344
|
style: z(`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}`),
|
|
345
|
-
id: `galaxy_${
|
|
346
|
-
onMouseenter: a[2] || (a[2] = () => o(
|
|
347
|
-
onMouseleave: a[3] || (a[3] = () => o(
|
|
345
|
+
id: `galaxy_${f.value}`,
|
|
346
|
+
onMouseenter: a[2] || (a[2] = () => o(ve)(!0)),
|
|
347
|
+
onMouseleave: a[3] || (a[3] = () => o(ve)(!1))
|
|
348
348
|
}, [
|
|
349
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
349
|
+
e.value.userOptions.buttons.annotator ? (n(), x(o(Ge), {
|
|
350
350
|
key: 0,
|
|
351
|
-
svgRef: o(
|
|
351
|
+
svgRef: o(he),
|
|
352
352
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
353
353
|
color: e.value.style.chart.color,
|
|
354
354
|
active: E.value,
|
|
355
355
|
onClose: K
|
|
356
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
357
|
-
|
|
356
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
357
|
+
je.value ? (n(), i("div", {
|
|
358
358
|
key: 1,
|
|
359
359
|
ref_key: "noTitle",
|
|
360
360
|
ref: se,
|
|
361
361
|
class: "vue-data-ui-no-title-space",
|
|
362
362
|
style: "height:36px; width: 100%;background:transparent"
|
|
363
|
-
}, null, 512)) :
|
|
363
|
+
}, null, 512)) : c("", !0),
|
|
364
364
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
365
365
|
key: 2,
|
|
366
366
|
ref_key: "chartTitle",
|
|
367
367
|
ref: le,
|
|
368
368
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
369
369
|
}, [
|
|
370
|
-
(n(),
|
|
370
|
+
(n(), x(o(Me), {
|
|
371
371
|
key: `title_${Z.value}`,
|
|
372
372
|
config: {
|
|
373
373
|
title: {
|
|
@@ -380,16 +380,19 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}, null, 8, ["config"]))
|
|
383
|
-
], 512)) :
|
|
384
|
-
|
|
383
|
+
], 512)) : c("", !0),
|
|
384
|
+
T("div", {
|
|
385
|
+
id: `legend-top-${f.value}`
|
|
386
|
+
}, null, 8, Bt),
|
|
387
|
+
e.value.userOptions.show && ne.value && (o(de) || o(X)) ? (n(), x(o(He), {
|
|
385
388
|
ref_key: "details",
|
|
386
|
-
ref:
|
|
389
|
+
ref: Ye,
|
|
387
390
|
key: `user_option_${Q.value}`,
|
|
388
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
389
392
|
color: e.value.style.chart.color,
|
|
390
|
-
isPrinting: o(
|
|
391
|
-
isImaging: o(
|
|
392
|
-
uid:
|
|
393
|
+
isPrinting: o(ge),
|
|
394
|
+
isImaging: o(pe),
|
|
395
|
+
uid: f.value,
|
|
393
396
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
394
397
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
395
398
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -397,29 +400,29 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
397
400
|
hasTable: e.value.userOptions.buttons.table,
|
|
398
401
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
399
402
|
isTooltip: p.value.showTooltip,
|
|
400
|
-
isFullscreen:
|
|
403
|
+
isFullscreen: O.value,
|
|
401
404
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
402
|
-
chartElement:
|
|
405
|
+
chartElement: k.value,
|
|
403
406
|
position: e.value.userOptions.position,
|
|
404
407
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
405
408
|
isAnnotation: E.value,
|
|
406
409
|
callbacks: e.value.userOptions.callbacks,
|
|
407
410
|
printScale: e.value.userOptions.print.scale,
|
|
408
|
-
onToggleFullscreen:
|
|
409
|
-
onGeneratePdf: o(
|
|
410
|
-
onGenerateCsv:
|
|
411
|
-
onGenerateImage: o(
|
|
412
|
-
onToggleTable:
|
|
413
|
-
onToggleTooltip:
|
|
411
|
+
onToggleFullscreen: we,
|
|
412
|
+
onGeneratePdf: o(ye),
|
|
413
|
+
onGenerateCsv: $e,
|
|
414
|
+
onGenerateImage: o(fe),
|
|
415
|
+
onToggleTable: xe,
|
|
416
|
+
onToggleTooltip: Te,
|
|
414
417
|
onToggleAnnotator: K,
|
|
415
418
|
style: z({
|
|
416
|
-
visibility: o(
|
|
419
|
+
visibility: o(de) ? o(X) ? "visible" : "hidden" : "visible"
|
|
417
420
|
})
|
|
418
|
-
},
|
|
421
|
+
}, ct({ _: 2 }, [
|
|
419
422
|
t.$slots.menuIcon ? {
|
|
420
423
|
name: "menuIcon",
|
|
421
|
-
fn: g(({ isOpen: l, color:
|
|
422
|
-
h(t.$slots, "menuIcon",
|
|
424
|
+
fn: g(({ isOpen: l, color: u }) => [
|
|
425
|
+
h(t.$slots, "menuIcon", I(L({ isOpen: l, color: u })), void 0, !0)
|
|
423
426
|
]),
|
|
424
427
|
key: "0"
|
|
425
428
|
} : void 0,
|
|
@@ -460,53 +463,53 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
460
463
|
} : void 0,
|
|
461
464
|
t.$slots.optionFullscreen ? {
|
|
462
465
|
name: "optionFullscreen",
|
|
463
|
-
fn: g(({ toggleFullscreen: l, isFullscreen:
|
|
464
|
-
h(t.$slots, "optionFullscreen",
|
|
466
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
467
|
+
h(t.$slots, "optionFullscreen", I(L({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
465
468
|
]),
|
|
466
469
|
key: "6"
|
|
467
470
|
} : void 0,
|
|
468
471
|
t.$slots.optionAnnotator ? {
|
|
469
472
|
name: "optionAnnotator",
|
|
470
|
-
fn: g(({ toggleAnnotator: l, isAnnotator:
|
|
471
|
-
h(t.$slots, "optionAnnotator",
|
|
473
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
474
|
+
h(t.$slots, "optionAnnotator", I(L({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
472
475
|
]),
|
|
473
476
|
key: "7"
|
|
474
477
|
} : void 0
|
|
475
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
478
|
+
]), 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),
|
|
476
479
|
(n(), i("svg", {
|
|
477
480
|
ref_key: "svgRef",
|
|
478
|
-
ref:
|
|
479
|
-
xmlns: o(
|
|
480
|
-
class: R({ "vue-data-ui-fullscreen--on":
|
|
481
|
-
viewBox:
|
|
481
|
+
ref: he,
|
|
482
|
+
xmlns: o($t),
|
|
483
|
+
class: R({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
484
|
+
viewBox: w.value.viewBox,
|
|
482
485
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
483
486
|
}, [
|
|
484
|
-
|
|
487
|
+
_e(o(Ue)),
|
|
485
488
|
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
486
489
|
key: 0,
|
|
487
490
|
x: 0,
|
|
488
491
|
y: 0,
|
|
489
|
-
width:
|
|
490
|
-
height:
|
|
492
|
+
width: w.value.width,
|
|
493
|
+
height: w.value.height,
|
|
491
494
|
style: {
|
|
492
495
|
pointerEvents: "none"
|
|
493
496
|
}
|
|
494
497
|
}, [
|
|
495
498
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
496
|
-
], 8,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
id: `blur_${
|
|
499
|
+
], 8, Et)) : c("", !0),
|
|
500
|
+
T("defs", null, [
|
|
501
|
+
T("filter", {
|
|
502
|
+
id: `blur_${f.value}`,
|
|
500
503
|
x: "-50%",
|
|
501
504
|
y: "-50%",
|
|
502
505
|
width: "200%",
|
|
503
506
|
height: "200%"
|
|
504
507
|
}, [
|
|
505
|
-
|
|
508
|
+
T("feGaussianBlur", {
|
|
506
509
|
in: "SourceGraphic",
|
|
507
510
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
508
|
-
}, null, 8,
|
|
509
|
-
], 8,
|
|
511
|
+
}, null, 8, Rt)
|
|
512
|
+
], 8, zt)
|
|
510
513
|
]),
|
|
511
514
|
(n(!0), i(Se, null, Pe(N.value, (l) => (n(), i("g", null, [
|
|
512
515
|
l.value ? (n(), i("path", {
|
|
@@ -516,7 +519,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
516
519
|
stroke: e.value.style.chart.backgroundColor,
|
|
517
520
|
"stroke-width": q(l).border,
|
|
518
521
|
"stroke-linecap": "round"
|
|
519
|
-
}, null, 8,
|
|
522
|
+
}, null, 8, Wt)) : c("", !0),
|
|
520
523
|
l.value ? (n(), i("path", {
|
|
521
524
|
key: 1,
|
|
522
525
|
d: l.path,
|
|
@@ -524,23 +527,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
524
527
|
stroke: l.color,
|
|
525
528
|
"stroke-width": q(l).path,
|
|
526
529
|
"stroke-linecap": "round",
|
|
527
|
-
class: R(`${
|
|
528
|
-
}, null, 10,
|
|
530
|
+
class: R(`${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
531
|
+
}, null, 10, Gt)) : c("", !0),
|
|
529
532
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), i("g", {
|
|
530
533
|
key: 2,
|
|
531
|
-
filter: `url(#blur_${
|
|
534
|
+
filter: `url(#blur_${f.value})`
|
|
532
535
|
}, [
|
|
533
|
-
|
|
536
|
+
T("path", {
|
|
534
537
|
d: l.path,
|
|
535
538
|
fill: "none",
|
|
536
539
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
537
540
|
"stroke-width": q(l).blur,
|
|
538
541
|
"stroke-linecap": "round",
|
|
539
|
-
class: R(`vue-ui-galaxy-gradient ${
|
|
540
|
-
}, null, 10,
|
|
541
|
-
], 8,
|
|
542
|
+
class: R(`vue-ui-galaxy-gradient ${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
543
|
+
}, null, 10, Ut)
|
|
544
|
+
], 8, Ht)) : c("", !0)
|
|
542
545
|
]))), 256)),
|
|
543
|
-
(n(!0), i(Se, null, Pe(N.value, (l,
|
|
546
|
+
(n(!0), i(Se, null, Pe(N.value, (l, u) => (n(), i("g", null, [
|
|
544
547
|
l.value ? (n(), i("path", {
|
|
545
548
|
key: 0,
|
|
546
549
|
d: l.path,
|
|
@@ -548,64 +551,72 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
548
551
|
stroke: "transparent",
|
|
549
552
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
550
553
|
"stroke-linecap": "round",
|
|
551
|
-
onMouseenter: (r) =>
|
|
554
|
+
onMouseenter: (r) => at({
|
|
552
555
|
datapoint: l,
|
|
553
556
|
seriesIndex: l.seriesIndex,
|
|
554
557
|
show: !0
|
|
555
558
|
}),
|
|
556
|
-
onMouseleave: (r) =>
|
|
557
|
-
onClick: (r) =>
|
|
558
|
-
}, null, 40,
|
|
559
|
+
onMouseleave: (r) => tt(l),
|
|
560
|
+
onClick: (r) => lt(l)
|
|
561
|
+
}, null, 40, Xt)) : c("", !0)
|
|
559
562
|
]))), 256)),
|
|
560
|
-
h(t.$slots, "svg", { svg:
|
|
561
|
-
], 14,
|
|
562
|
-
t.$slots.watermark ? (n(), i("div",
|
|
563
|
-
h(t.$slots, "watermark",
|
|
564
|
-
])) :
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
563
|
+
h(t.$slots, "svg", { svg: w.value }, void 0, !0)
|
|
564
|
+
], 14, Mt)),
|
|
565
|
+
t.$slots.watermark ? (n(), i("div", Yt, [
|
|
566
|
+
h(t.$slots, "watermark", I(L({ isPrinting: o(ge) || o(pe) })), void 0, !0)
|
|
567
|
+
])) : c("", !0),
|
|
568
|
+
T("div", {
|
|
569
|
+
id: `legend-bottom-${f.value}`
|
|
570
|
+
}, null, 8, jt),
|
|
571
|
+
ue.value ? (n(), x(vt, {
|
|
572
|
+
key: 5,
|
|
573
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
568
574
|
}, [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
575
|
+
T("div", {
|
|
576
|
+
ref_key: "chartLegend",
|
|
577
|
+
ref: ae
|
|
578
|
+
}, [
|
|
579
|
+
e.value.style.chart.legend.show ? (n(), x(o(Ee), {
|
|
580
|
+
key: `legend_${te.value}`,
|
|
581
|
+
legendSet: Ce.value,
|
|
582
|
+
config: ot.value,
|
|
583
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => j(l))
|
|
584
|
+
}, {
|
|
585
|
+
item: g(({ legend: l, index: u }) => [
|
|
586
|
+
o(U) ? c("", !0) : (n(), i("div", {
|
|
587
|
+
key: 0,
|
|
588
|
+
onClick: (r) => j(l),
|
|
589
|
+
style: z(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
590
|
+
}, F(l.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? o(Ae)(
|
|
591
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
592
|
+
l.value,
|
|
593
|
+
o(_)({
|
|
594
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
595
|
+
v: l.value,
|
|
596
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
597
|
+
r: e.value.style.chart.legend.roundingValue
|
|
598
|
+
}),
|
|
599
|
+
{ datapoint: l, seriesIndex: u }
|
|
600
|
+
) : "") + " " + F(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 / b.value) ? "-" : o(_)({
|
|
601
|
+
v: l.value / b.value * 100,
|
|
602
|
+
s: "%",
|
|
603
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
604
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, qt))
|
|
605
|
+
]),
|
|
606
|
+
_: 1
|
|
607
|
+
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
608
|
+
h(t.$slots, "legend", { legend: Ce.value }, void 0, !0)
|
|
609
|
+
], 512)
|
|
610
|
+
], 8, ["to"])) : c("", !0),
|
|
600
611
|
t.$slots.source ? (n(), i("div", {
|
|
601
|
-
key:
|
|
612
|
+
key: 6,
|
|
602
613
|
ref_key: "source",
|
|
603
614
|
ref: oe,
|
|
604
615
|
dir: "auto"
|
|
605
616
|
}, [
|
|
606
617
|
h(t.$slots, "source", {}, void 0, !0)
|
|
607
|
-
], 512)) :
|
|
608
|
-
|
|
618
|
+
], 512)) : c("", !0),
|
|
619
|
+
_e(o(We), {
|
|
609
620
|
show: p.value.showTooltip && G.value,
|
|
610
621
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
611
622
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -616,23 +627,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
616
627
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
617
628
|
position: e.value.style.chart.tooltip.position,
|
|
618
629
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
619
|
-
parent:
|
|
630
|
+
parent: k.value,
|
|
620
631
|
content: H.value,
|
|
621
|
-
isFullscreen:
|
|
622
|
-
isCustom: o(
|
|
632
|
+
isFullscreen: O.value,
|
|
633
|
+
isCustom: o(Ne)(e.value.style.chart.tooltip.customFormat),
|
|
623
634
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
624
635
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
625
636
|
}, {
|
|
626
637
|
"tooltip-before": g(() => [
|
|
627
|
-
h(t.$slots, "tooltip-before",
|
|
638
|
+
h(t.$slots, "tooltip-before", I(L({ ...J.value })), void 0, !0)
|
|
628
639
|
]),
|
|
629
640
|
"tooltip-after": g(() => [
|
|
630
|
-
h(t.$slots, "tooltip-after",
|
|
641
|
+
h(t.$slots, "tooltip-after", I(L({ ...J.value })), void 0, !0)
|
|
631
642
|
]),
|
|
632
643
|
_: 3
|
|
633
644
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
634
|
-
|
|
635
|
-
key:
|
|
645
|
+
ne.value ? (n(), x(o(ze), {
|
|
646
|
+
key: 7,
|
|
636
647
|
hideDetails: "",
|
|
637
648
|
config: {
|
|
638
649
|
open: p.value.showTable,
|
|
@@ -648,7 +659,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
648
659
|
}
|
|
649
660
|
}, {
|
|
650
661
|
content: g(() => [
|
|
651
|
-
(n(),
|
|
662
|
+
(n(), x(o(Re), {
|
|
652
663
|
key: `table_${ee.value}`,
|
|
653
664
|
colNames: M.value.colNames,
|
|
654
665
|
head: M.value.head,
|
|
@@ -658,23 +669,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
|
|
|
658
669
|
onClose: a[1] || (a[1] = (l) => p.value.showTable = !1)
|
|
659
670
|
}, {
|
|
660
671
|
th: g(({ th: l }) => [
|
|
661
|
-
|
|
672
|
+
T("div", {
|
|
662
673
|
innerHTML: l,
|
|
663
674
|
style: { display: "flex", "align-items": "center" }
|
|
664
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, Jt)
|
|
665
676
|
]),
|
|
666
677
|
td: g(({ td: l }) => [
|
|
667
|
-
|
|
678
|
+
dt(F(l.name || l), 1)
|
|
668
679
|
]),
|
|
669
680
|
_: 1
|
|
670
681
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
671
682
|
]),
|
|
672
683
|
_: 1
|
|
673
|
-
}, 8, ["config"])) :
|
|
674
|
-
o(U) ? (n(),
|
|
675
|
-
], 46,
|
|
684
|
+
}, 8, ["config"])) : c("", !0),
|
|
685
|
+
o(U) ? (n(), x(It, { key: 8 })) : c("", !0)
|
|
686
|
+
], 46, Dt));
|
|
676
687
|
}
|
|
677
|
-
},
|
|
688
|
+
}, rl = /* @__PURE__ */ Vt(Kt, [["__scopeId", "data-v-f08fb5f3"]]);
|
|
678
689
|
export {
|
|
679
|
-
|
|
690
|
+
rl as default
|
|
680
691
|
};
|