vue-data-ui 3.1.1 → 3.1.3
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-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
- package/dist/Legend-5qvgVkrY.js +85 -0
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
- package/dist/Title-CqYBs02Y.js +88 -0
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
- package/dist/pdf-BG8PiGFH.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -3
- package/dist/types/vue-data-ui.d.ts +28 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
- package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
- package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
- package/package.json +1 -1
- package/dist/Legend-8_V5egWW.js +0 -72
- package/dist/Title-Dz-j6ERs.js +0 -61
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as Lt, u 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
|
|
11
|
-
import Wt from "./Legend-
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Ne, Teleport as ft, toDisplayString as L, resolveDynamicComponent as yt, mergeProps as bt, createTextVNode as Fe, nextTick as Be } from "vue";
|
|
2
|
+
import { u as mt, c as Ve, t as kt, o as wt, f as Me, g as Ct, a as $t, p as H, b as xt, d as Tt, G as Ee, e as _t, M as Pt, i as _, X as Ot, k as Re, y as We, v as St, w as It, z as Dt } from "./index-CaxArMHL.js";
|
|
3
|
+
import { t as Lt, u as At } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nt, B as Ft } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Bt } from "./usePrinter-BYtPmEo8.js";
|
|
6
|
+
import { u as ze } from "./useNestedProp-tWT02_6S.js";
|
|
7
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Et from "./img-DSrvx9J6.js";
|
|
10
|
+
import Rt from "./Title-CqYBs02Y.js";
|
|
11
|
+
import Wt from "./Legend-5qvgVkrY.js";
|
|
12
12
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const
|
|
13
|
+
const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Yt = ["id"], jt = ["stdDeviation"], qt = ["d", "stroke", "stroke-width"], Jt = ["d", "stroke", "stroke-width"], Kt = ["filter"], Qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], el = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, tl = ["id"], ll = ["onClick"], al = ["innerHTML"], ol = {
|
|
17
17
|
__name: "vue-ui-galaxy",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,14 +30,14 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
...
|
|
33
|
+
setup(Ge, { expose: He, emit: Ue }) {
|
|
34
|
+
const Xe = x(() => import("./Tooltip-CP0tVHAf.js")), Ye = x(() => import("./BaseIcon-BcOSijbz.js")), je = x(() => import("./vue-ui-accordion-DUlNpLir.js")), qe = x(() => import("./DataTable-Cm8Tt9PQ.js")), Je = x(() => import("./PenAndPaper-CyH7Ip2i.js")), Ke = x(() => import("./UserOptions-ZmwlARCV.js")), Qe = x(() => import("./PackageVersion-0XlRFsI_.js")), Ze = x(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_galaxy: et } = mt(), w = Ge, y = o(Ve()), b = o(null), U = o(!1), X = o(""), P = o(null), ae = o(0), oe = o(0), se = o(0), ue = o(0), ne = o(null), re = o(null), ie = o(null), ce = o(null), A = o(null), V = o(null), ve = o(!1), N = o(null), Y = o(null), de = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: he } = Nt({
|
|
35
|
+
...pt(w),
|
|
36
36
|
FINAL_CONFIG: e,
|
|
37
|
-
prepareConfig:
|
|
37
|
+
prepareConfig: J,
|
|
38
38
|
callback: () => {
|
|
39
39
|
Promise.resolve().then(async () => {
|
|
40
|
-
await
|
|
40
|
+
await Be(), g.value.showTable = e.value.table.show;
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
43
|
skeletonDataset: [
|
|
@@ -45,7 +45,7 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
45
45
|
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
46
46
|
{ name: "_", values: [8], color: "#ADADAD" }
|
|
47
47
|
],
|
|
48
|
-
skeletonConfig:
|
|
48
|
+
skeletonConfig: kt({
|
|
49
49
|
defaultConfig: e.value,
|
|
50
50
|
userConfig: {
|
|
51
51
|
userOptions: { show: !1 },
|
|
@@ -62,36 +62,36 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
62
62
|
}
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
ve.value = !0,
|
|
65
|
+
gt(() => {
|
|
66
|
+
ve.value = !0, ge();
|
|
67
67
|
});
|
|
68
|
-
const
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
68
|
+
const pe = i(() => !!e.value.debug);
|
|
69
|
+
function ge() {
|
|
70
|
+
if (wt(w.dataset) ? Me({
|
|
71
71
|
componentName: "VueUiGalaxy",
|
|
72
72
|
type: "dataset",
|
|
73
|
-
debug:
|
|
73
|
+
debug: pe.value
|
|
74
74
|
}) : w.dataset.forEach((t, a) => {
|
|
75
|
-
|
|
75
|
+
Ct({
|
|
76
76
|
datasetObject: t,
|
|
77
77
|
requiredAttributes: ["name", "values"]
|
|
78
78
|
}).forEach((l) => {
|
|
79
|
-
|
|
79
|
+
Me({
|
|
80
80
|
componentName: "VueUiGalaxy",
|
|
81
81
|
type: "datasetSerieAttribute",
|
|
82
82
|
property: l,
|
|
83
83
|
index: a,
|
|
84
|
-
debug:
|
|
84
|
+
debug: pe.value
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
}), e.value.responsive) {
|
|
88
88
|
const t = Lt(() => {
|
|
89
|
-
const { width: a, height: l } =
|
|
89
|
+
const { width: a, height: l } = At({
|
|
90
90
|
chart: b.value,
|
|
91
|
-
title: e.value.style.chart.title.text ?
|
|
92
|
-
legend: e.value.style.chart.legend.show ?
|
|
93
|
-
noTitle:
|
|
94
|
-
source:
|
|
91
|
+
title: e.value.style.chart.title.text ? ne.value : null,
|
|
92
|
+
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
93
|
+
noTitle: ce.value,
|
|
94
|
+
source: ie.value
|
|
95
95
|
});
|
|
96
96
|
requestAnimationFrame(() => {
|
|
97
97
|
M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
@@ -100,66 +100,66 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
100
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
101
|
}
|
|
102
102
|
}
|
|
103
|
-
const { userOptionsVisible:
|
|
104
|
-
function
|
|
105
|
-
const t =
|
|
103
|
+
const { userOptionsVisible: q, setUserOptionsVisibility: fe, keepUserOptionState: ye } = Vt({ config: e.value }), { svgRef: be } = Mt({ config: e.value.style.chart.title });
|
|
104
|
+
function J() {
|
|
105
|
+
const t = ze({
|
|
106
106
|
userConfig: w.config,
|
|
107
|
-
defaultConfig:
|
|
107
|
+
defaultConfig: et
|
|
108
108
|
});
|
|
109
109
|
return t.theme ? {
|
|
110
|
-
...
|
|
111
|
-
userConfig:
|
|
110
|
+
...ze({
|
|
111
|
+
userConfig: xt.vue_ui_galaxy[t.theme] || w.config,
|
|
112
112
|
defaultConfig: t
|
|
113
113
|
}),
|
|
114
|
-
customPalette:
|
|
114
|
+
customPalette: $t[t.theme] || H
|
|
115
115
|
} : t;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
e.value =
|
|
117
|
+
De(() => w.config, (t) => {
|
|
118
|
+
e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ge(), oe.value += 1, se.value += 1, ue.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
119
|
}, { deep: !0 });
|
|
120
|
-
const { isPrinting:
|
|
121
|
-
elementId: `galaxy_${
|
|
120
|
+
const { isPrinting: me, isImaging: ke, generatePdf: we, generateImage: Ce } = Bt({
|
|
121
|
+
elementId: `galaxy_${y.value}`,
|
|
122
122
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
123
123
|
options: e.value.userOptions.print
|
|
124
|
-
}),
|
|
124
|
+
}), tt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = i(() => Tt(e.value.customPalette)), g = o({
|
|
125
125
|
dataLabels: {
|
|
126
126
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
127
127
|
},
|
|
128
128
|
showTable: e.value.table.show,
|
|
129
129
|
showTooltip: e.value.style.chart.tooltip.show
|
|
130
|
-
}), M = o(250), E = o(180),
|
|
130
|
+
}), M = o(250), E = o(180), at = o(0), ot = o(0), C = i(() => ({
|
|
131
131
|
width: M.value,
|
|
132
132
|
height: E.value,
|
|
133
|
-
viewBox: `${
|
|
134
|
-
})),
|
|
135
|
-
function
|
|
136
|
-
|
|
133
|
+
viewBox: `${at.value} ${ot.value} ${M.value} ${E.value}`
|
|
134
|
+
})), $e = Ue, f = o([]);
|
|
135
|
+
function K(t) {
|
|
136
|
+
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend", F.value.map((a) => ({
|
|
137
137
|
name: a.name,
|
|
138
138
|
color: a.color,
|
|
139
139
|
value: a.value
|
|
140
140
|
})));
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const O = i(() => he.value.map((t, a) => ({
|
|
143
143
|
name: t.name,
|
|
144
|
-
color:
|
|
145
|
-
value: t.values ?
|
|
146
|
-
absoluteValues:
|
|
147
|
-
id:
|
|
144
|
+
color: _t(t.color) || lt.value[a] || H[a] || H[a % H.length],
|
|
145
|
+
value: t.values ? Ee(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
146
|
+
absoluteValues: Ee(t.values),
|
|
147
|
+
id: Ve()
|
|
148
148
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
149
149
|
...t,
|
|
150
150
|
absoluteIndex: a
|
|
151
151
|
})));
|
|
152
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function st() {
|
|
153
|
+
return O.value.map((t) => ({
|
|
154
154
|
name: t.name,
|
|
155
155
|
color: t.color,
|
|
156
156
|
value: t.value
|
|
157
157
|
}));
|
|
158
158
|
}
|
|
159
|
-
const m = i(() =>
|
|
159
|
+
const m = i(() => O.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), xe = o(190), Te = i(() => O.value.filter((t) => !f.value.includes(t.id))), ut = i(
|
|
160
160
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
161
|
-
),
|
|
162
|
-
maxPoints:
|
|
161
|
+
), nt = i(() => Pt({
|
|
162
|
+
maxPoints: xe.value,
|
|
163
163
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
164
164
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
165
165
|
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
@@ -167,86 +167,86 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
167
167
|
startY: C.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
168
168
|
boxWidth: C.value.width,
|
|
169
169
|
boxHeight: C.value.height,
|
|
170
|
-
padding:
|
|
170
|
+
padding: ut.value
|
|
171
171
|
})), F = i(() => {
|
|
172
172
|
const t = [];
|
|
173
|
-
for (let a = 0; a <
|
|
174
|
-
const l =
|
|
173
|
+
for (let a = 0; a < Te.value.length; a += 1) {
|
|
174
|
+
const l = Te.value[a], s = l.value / m.value * xe.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
175
175
|
t.push({
|
|
176
176
|
points: s,
|
|
177
177
|
...l,
|
|
178
178
|
seriesIndex: a,
|
|
179
179
|
proportion: l.value / m.value,
|
|
180
|
-
path:
|
|
180
|
+
path: nt.value(s)
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
return t.filter((a) => !
|
|
183
|
+
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
184
184
|
});
|
|
185
|
-
function
|
|
186
|
-
const a = Math.min(M.value, E.value), l =
|
|
185
|
+
function Q(t) {
|
|
186
|
+
const a = Math.min(M.value, E.value), l = P.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
187
|
return {
|
|
188
188
|
border: s / 180 * a,
|
|
189
189
|
path: r / 180 * a,
|
|
190
190
|
blur: h / 180 * a
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
|
|
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 });
|
|
193
|
+
const S = o(!1);
|
|
194
|
+
function _e(t) {
|
|
195
|
+
S.value = t, ae.value += 1;
|
|
200
196
|
}
|
|
197
|
+
const Z = o(null);
|
|
201
198
|
function rt(t) {
|
|
202
|
-
|
|
199
|
+
U.value = !1, P.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
200
|
+
}
|
|
201
|
+
function it(t) {
|
|
202
|
+
$e("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }),
|
|
204
|
+
function ct({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
205
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
206
206
|
datapoint: t,
|
|
207
207
|
seriesIndex: l,
|
|
208
|
-
series:
|
|
208
|
+
series: O.value,
|
|
209
209
|
config: e.value
|
|
210
|
-
}, U.value = s,
|
|
210
|
+
}, U.value = s, P.value = t.id;
|
|
211
211
|
let r = "";
|
|
212
212
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
213
|
-
|
|
213
|
+
We(h) && Dt(() => h({
|
|
214
214
|
seriesIndex: l,
|
|
215
215
|
datapoint: t,
|
|
216
|
-
series:
|
|
216
|
+
series: O.value,
|
|
217
217
|
config: e.value
|
|
218
218
|
})) ? X.value = h({
|
|
219
219
|
seriesIndex: l,
|
|
220
220
|
datapoint: t,
|
|
221
|
-
series:
|
|
221
|
+
series: O.value,
|
|
222
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>${
|
|
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>${Re(
|
|
224
224
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
225
225
|
t.value,
|
|
226
|
-
|
|
226
|
+
_({
|
|
227
227
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
228
228
|
v: t.value,
|
|
229
229
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
230
230
|
r: e.value.style.chart.tooltip.roundingValue
|
|
231
231
|
}),
|
|
232
232
|
{ datapoint: t, seriesIndex: l }
|
|
233
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
233
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${_({
|
|
234
234
|
v: t.proportion * 100,
|
|
235
235
|
s: "%",
|
|
236
236
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
237
|
-
})})</span></div>` : r += `<b>${
|
|
237
|
+
})})</span></div>` : r += `<b>${_({
|
|
238
238
|
v: t.proportion * 100,
|
|
239
239
|
s: "%",
|
|
240
240
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
241
241
|
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
242
242
|
}
|
|
243
|
-
const Pe = i(() =>
|
|
243
|
+
const Pe = i(() => O.value.map((t, a) => ({
|
|
244
244
|
...t,
|
|
245
|
-
proportion: (t.value || 0) /
|
|
246
|
-
opacity:
|
|
245
|
+
proportion: (t.value || 0) / he.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
246
|
+
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
247
247
|
shape: t.shape || "circle",
|
|
248
|
-
segregate: () =>
|
|
249
|
-
isSegregated:
|
|
248
|
+
segregate: () => K(t),
|
|
249
|
+
isSegregated: f.value.includes(t.id)
|
|
250
250
|
}))), vt = i(() => ({
|
|
251
251
|
cy: "galaxy-div-legend",
|
|
252
252
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -261,28 +261,28 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
261
261
|
})), a = F.value.map((l) => l.value);
|
|
262
262
|
return { head: t, body: a };
|
|
263
263
|
});
|
|
264
|
-
function
|
|
265
|
-
|
|
264
|
+
function ee(t = null) {
|
|
265
|
+
Be(() => {
|
|
266
266
|
const a = $.value.head.map((r, h) => [[
|
|
267
267
|
r.name
|
|
268
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) :
|
|
269
|
+
t ? t(s) : It({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const R = i(() => {
|
|
273
273
|
const t = [
|
|
274
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
|
-
|
|
275
|
+
_({ 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
276
|
"100%"
|
|
277
277
|
], a = $.value.head.map((r, h) => {
|
|
278
|
-
const
|
|
278
|
+
const ht = _({ 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
279
|
return [
|
|
280
280
|
{
|
|
281
281
|
color: r.color,
|
|
282
282
|
name: r.name
|
|
283
283
|
},
|
|
284
|
-
|
|
285
|
-
isNaN($.value.body[h] / m.value) ? "-" :
|
|
284
|
+
ht,
|
|
285
|
+
isNaN($.value.body[h] / m.value) ? "-" : _({
|
|
286
286
|
v: $.value.body[h] / m.value * 100,
|
|
287
287
|
s: "%",
|
|
288
288
|
r: e.value.table.td.roundingPercentage
|
|
@@ -312,19 +312,19 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
312
312
|
config: l
|
|
313
313
|
};
|
|
314
314
|
});
|
|
315
|
-
function
|
|
315
|
+
function Oe() {
|
|
316
316
|
g.value.showTable = !g.value.showTable;
|
|
317
317
|
}
|
|
318
318
|
function Se() {
|
|
319
319
|
g.value.showTooltip = !g.value.showTooltip;
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
|
|
321
|
+
const W = o(!1);
|
|
322
|
+
function te() {
|
|
323
|
+
W.value = !W.value;
|
|
324
324
|
}
|
|
325
|
-
async function
|
|
325
|
+
async function dt({ scale: t = 2 } = {}) {
|
|
326
326
|
if (!b.value) return;
|
|
327
|
-
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await
|
|
327
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Et({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
328
328
|
return {
|
|
329
329
|
imageUri: r,
|
|
330
330
|
base64: h,
|
|
@@ -337,14 +337,14 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
337
337
|
const B = i(() => {
|
|
338
338
|
const t = e.value.table.useDialog && !e.value.table.show, a = g.value.showTable;
|
|
339
339
|
return {
|
|
340
|
-
component: t ?
|
|
340
|
+
component: t ? Ze : je,
|
|
341
341
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
342
342
|
props: t ? {
|
|
343
343
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
344
344
|
color: e.value.table.th.color,
|
|
345
345
|
headerColor: e.value.table.th.color,
|
|
346
346
|
headerBg: e.value.table.th.backgroundColor,
|
|
347
|
-
isFullscreen:
|
|
347
|
+
isFullscreen: S.value,
|
|
348
348
|
fullscreenParent: b.value,
|
|
349
349
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
350
350
|
} : {
|
|
@@ -364,50 +364,54 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
});
|
|
367
|
-
|
|
367
|
+
De(() => g.value.showTable, (t) => {
|
|
368
368
|
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
369
|
-
})
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
369
|
+
});
|
|
370
|
+
function Ie() {
|
|
371
|
+
g.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
372
|
+
}
|
|
373
|
+
return He({
|
|
374
|
+
getData: st,
|
|
375
|
+
getImage: dt,
|
|
376
|
+
generatePdf: we,
|
|
377
|
+
generateCsv: ee,
|
|
378
|
+
generateImage: Ce,
|
|
379
|
+
toggleTable: Oe,
|
|
376
380
|
toggleTooltip: Se,
|
|
377
|
-
toggleAnnotator:
|
|
378
|
-
toggleFullscreen:
|
|
379
|
-
}), (t, a) => (n(),
|
|
381
|
+
toggleAnnotator: te,
|
|
382
|
+
toggleFullscreen: _e
|
|
383
|
+
}), (t, a) => (n(), c("div", {
|
|
380
384
|
ref_key: "galaxyChart",
|
|
381
385
|
ref: b,
|
|
382
|
-
class: G(`vue-ui-galaxy ${
|
|
383
|
-
style:
|
|
384
|
-
id: `galaxy_${
|
|
385
|
-
onMouseenter: a[
|
|
386
|
-
onMouseleave: a[
|
|
386
|
+
class: G(`vue-ui-galaxy ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
|
|
387
|
+
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}`),
|
|
388
|
+
id: `galaxy_${y.value}`,
|
|
389
|
+
onMouseenter: a[2] || (a[2] = () => u(fe)(!0)),
|
|
390
|
+
onMouseleave: a[3] || (a[3] = () => u(fe)(!1))
|
|
387
391
|
}, [
|
|
388
|
-
e.value.userOptions.buttons.annotator ? (n(), T(u(
|
|
392
|
+
e.value.userOptions.buttons.annotator ? (n(), T(u(Je), {
|
|
389
393
|
key: 0,
|
|
390
|
-
svgRef: u(
|
|
394
|
+
svgRef: u(be),
|
|
391
395
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
396
|
color: e.value.style.chart.color,
|
|
393
|
-
active:
|
|
394
|
-
onClose:
|
|
395
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
396
|
-
|
|
397
|
+
active: W.value,
|
|
398
|
+
onClose: te
|
|
399
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
400
|
+
tt.value ? (n(), c("div", {
|
|
397
401
|
key: 1,
|
|
398
402
|
ref_key: "noTitle",
|
|
399
|
-
ref:
|
|
403
|
+
ref: ce,
|
|
400
404
|
class: "vue-data-ui-no-title-space",
|
|
401
405
|
style: "height:36px; width: 100%;background:transparent"
|
|
402
|
-
}, null, 512)) :
|
|
403
|
-
e.value.style.chart.title.text ? (n(),
|
|
406
|
+
}, null, 512)) : v("", !0),
|
|
407
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
404
408
|
key: 2,
|
|
405
409
|
ref_key: "chartTitle",
|
|
406
|
-
ref:
|
|
410
|
+
ref: ne,
|
|
407
411
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
408
412
|
}, [
|
|
409
|
-
(n(), T(
|
|
410
|
-
key: `title_${
|
|
413
|
+
(n(), T(Rt, {
|
|
414
|
+
key: `title_${oe.value}`,
|
|
411
415
|
config: {
|
|
412
416
|
title: {
|
|
413
417
|
cy: "galaxy-div-title",
|
|
@@ -419,19 +423,19 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
419
423
|
}
|
|
420
424
|
}
|
|
421
425
|
}, null, 8, ["config"]))
|
|
422
|
-
], 512)) :
|
|
426
|
+
], 512)) : v("", !0),
|
|
423
427
|
k("div", {
|
|
424
|
-
id: `legend-top-${
|
|
425
|
-
}, null, 8,
|
|
426
|
-
e.value.userOptions.show &&
|
|
427
|
-
ref_key: "
|
|
428
|
-
ref:
|
|
429
|
-
key: `user_option_${
|
|
428
|
+
id: `legend-top-${y.value}`
|
|
429
|
+
}, null, 8, Ht),
|
|
430
|
+
e.value.userOptions.show && de.value && (u(ye) || u(q)) ? (n(), T(u(Ke), {
|
|
431
|
+
ref_key: "userOptionsRef",
|
|
432
|
+
ref: Y,
|
|
433
|
+
key: `user_option_${ae.value}`,
|
|
430
434
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
431
435
|
color: e.value.style.chart.color,
|
|
432
|
-
isPrinting: u(
|
|
433
|
-
isImaging: u(
|
|
434
|
-
uid:
|
|
436
|
+
isPrinting: u(me),
|
|
437
|
+
isImaging: u(ke),
|
|
438
|
+
uid: y.value,
|
|
435
439
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
436
440
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
437
441
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -439,29 +443,30 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
439
443
|
hasTable: e.value.userOptions.buttons.table,
|
|
440
444
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
441
445
|
isTooltip: g.value.showTooltip,
|
|
442
|
-
isFullscreen:
|
|
446
|
+
isFullscreen: S.value,
|
|
443
447
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
444
448
|
chartElement: b.value,
|
|
445
449
|
position: e.value.userOptions.position,
|
|
446
450
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
447
|
-
isAnnotation:
|
|
451
|
+
isAnnotation: W.value,
|
|
448
452
|
callbacks: e.value.userOptions.callbacks,
|
|
449
453
|
printScale: e.value.userOptions.print.scale,
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
454
|
+
tableDialog: e.value.table.useDialog,
|
|
455
|
+
onToggleFullscreen: _e,
|
|
456
|
+
onGeneratePdf: u(we),
|
|
457
|
+
onGenerateCsv: ee,
|
|
458
|
+
onGenerateImage: u(Ce),
|
|
459
|
+
onToggleTable: Oe,
|
|
455
460
|
onToggleTooltip: Se,
|
|
456
|
-
onToggleAnnotator:
|
|
457
|
-
style:
|
|
458
|
-
visibility: u(ye) ? u(
|
|
461
|
+
onToggleAnnotator: te,
|
|
462
|
+
style: z({
|
|
463
|
+
visibility: u(ye) ? u(q) ? "visible" : "hidden" : "visible"
|
|
459
464
|
})
|
|
460
|
-
},
|
|
465
|
+
}, Le({ _: 2 }, [
|
|
461
466
|
t.$slots.menuIcon ? {
|
|
462
467
|
name: "menuIcon",
|
|
463
468
|
fn: d(({ isOpen: l, color: s }) => [
|
|
464
|
-
p(t.$slots, "menuIcon", I(
|
|
469
|
+
p(t.$slots, "menuIcon", I(D({ isOpen: l, color: s })), void 0, !0)
|
|
465
470
|
]),
|
|
466
471
|
key: "0"
|
|
467
472
|
} : void 0,
|
|
@@ -503,28 +508,28 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
503
508
|
t.$slots.optionFullscreen ? {
|
|
504
509
|
name: "optionFullscreen",
|
|
505
510
|
fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
506
|
-
p(t.$slots, "optionFullscreen", I(
|
|
511
|
+
p(t.$slots, "optionFullscreen", I(D({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
507
512
|
]),
|
|
508
513
|
key: "6"
|
|
509
514
|
} : void 0,
|
|
510
515
|
t.$slots.optionAnnotator ? {
|
|
511
516
|
name: "optionAnnotator",
|
|
512
517
|
fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
513
|
-
p(t.$slots, "optionAnnotator", I(
|
|
518
|
+
p(t.$slots, "optionAnnotator", I(D({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
514
519
|
]),
|
|
515
520
|
key: "7"
|
|
516
521
|
} : 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"])) :
|
|
518
|
-
(n(),
|
|
522
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
523
|
+
(n(), c("svg", {
|
|
519
524
|
ref_key: "svgRef",
|
|
520
|
-
ref:
|
|
521
|
-
xmlns: u(
|
|
522
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
525
|
+
ref: be,
|
|
526
|
+
xmlns: u(Ot),
|
|
527
|
+
class: G({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
523
528
|
viewBox: C.value.viewBox,
|
|
524
|
-
style:
|
|
529
|
+
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
525
530
|
}, [
|
|
526
|
-
|
|
527
|
-
t.$slots["chart-background"] ? (n(),
|
|
531
|
+
le(u(Qe)),
|
|
532
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
528
533
|
key: 0,
|
|
529
534
|
x: 0,
|
|
530
535
|
y: 0,
|
|
@@ -535,10 +540,10 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
535
540
|
}
|
|
536
541
|
}, [
|
|
537
542
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
538
|
-
], 8,
|
|
543
|
+
], 8, Xt)) : v("", !0),
|
|
539
544
|
k("defs", null, [
|
|
540
545
|
k("filter", {
|
|
541
|
-
id: `blur_${
|
|
546
|
+
id: `blur_${y.value}`,
|
|
542
547
|
x: "-50%",
|
|
543
548
|
y: "-50%",
|
|
544
549
|
width: "200%",
|
|
@@ -547,115 +552,115 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
547
552
|
k("feGaussianBlur", {
|
|
548
553
|
in: "SourceGraphic",
|
|
549
554
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
550
|
-
}, null, 8,
|
|
551
|
-
], 8,
|
|
555
|
+
}, null, 8, jt)
|
|
556
|
+
], 8, Yt)
|
|
552
557
|
]),
|
|
553
|
-
(n(!0),
|
|
554
|
-
l.value ? (n(),
|
|
558
|
+
(n(!0), c(Ae, null, Ne(F.value, (l) => (n(), c("g", null, [
|
|
559
|
+
l.value ? (n(), c("path", {
|
|
555
560
|
key: 0,
|
|
556
561
|
d: l.path,
|
|
557
562
|
fill: "none",
|
|
558
563
|
stroke: e.value.style.chart.backgroundColor,
|
|
559
|
-
"stroke-width":
|
|
564
|
+
"stroke-width": Q(l).border,
|
|
560
565
|
"stroke-linecap": "round"
|
|
561
|
-
}, null, 8,
|
|
562
|
-
l.value ? (n(),
|
|
566
|
+
}, null, 8, qt)) : v("", !0),
|
|
567
|
+
l.value ? (n(), c("path", {
|
|
563
568
|
key: 1,
|
|
564
569
|
d: l.path,
|
|
565
570
|
fill: "none",
|
|
566
571
|
stroke: l.color,
|
|
567
|
-
"stroke-width":
|
|
572
|
+
"stroke-width": Q(l).path,
|
|
568
573
|
"stroke-linecap": "round",
|
|
569
|
-
class: G(`${
|
|
570
|
-
}, null, 10,
|
|
571
|
-
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(),
|
|
574
|
+
class: G(`${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
575
|
+
}, null, 10, Jt)) : v("", !0),
|
|
576
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
|
|
572
577
|
key: 2,
|
|
573
|
-
filter: `url(#blur_${
|
|
578
|
+
filter: `url(#blur_${y.value})`
|
|
574
579
|
}, [
|
|
575
580
|
k("path", {
|
|
576
581
|
d: l.path,
|
|
577
582
|
fill: "none",
|
|
578
583
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
579
|
-
"stroke-width":
|
|
584
|
+
"stroke-width": Q(l).blur,
|
|
580
585
|
"stroke-linecap": "round",
|
|
581
|
-
class: G(`vue-ui-galaxy-gradient ${
|
|
582
|
-
}, null, 10,
|
|
583
|
-
], 8,
|
|
586
|
+
class: G(`vue-ui-galaxy-gradient ${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
587
|
+
}, null, 10, Qt)
|
|
588
|
+
], 8, Kt)) : v("", !0)
|
|
584
589
|
]))), 256)),
|
|
585
|
-
(n(!0),
|
|
586
|
-
l.value ? (n(),
|
|
590
|
+
(n(!0), c(Ae, null, Ne(F.value, (l, s) => (n(), c("g", null, [
|
|
591
|
+
l.value ? (n(), c("path", {
|
|
587
592
|
key: 0,
|
|
588
593
|
d: l.path,
|
|
589
594
|
fill: "none",
|
|
590
595
|
stroke: "transparent",
|
|
591
596
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
592
597
|
"stroke-linecap": "round",
|
|
593
|
-
onMouseenter: (r) =>
|
|
598
|
+
onMouseenter: (r) => ct({
|
|
594
599
|
datapoint: l,
|
|
595
600
|
seriesIndex: l.seriesIndex,
|
|
596
601
|
show: !0
|
|
597
602
|
}),
|
|
598
|
-
onMouseleave: (r) =>
|
|
599
|
-
onClick: (r) =>
|
|
600
|
-
}, null, 40,
|
|
603
|
+
onMouseleave: (r) => rt(l),
|
|
604
|
+
onClick: (r) => it(l)
|
|
605
|
+
}, null, 40, Zt)) : v("", !0)
|
|
601
606
|
]))), 256)),
|
|
602
607
|
p(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
603
|
-
], 14,
|
|
604
|
-
t.$slots.watermark ? (n(),
|
|
605
|
-
p(t.$slots, "watermark", I(
|
|
606
|
-
])) :
|
|
608
|
+
], 14, Ut)),
|
|
609
|
+
t.$slots.watermark ? (n(), c("div", el, [
|
|
610
|
+
p(t.$slots, "watermark", I(D({ isPrinting: u(me) || u(ke) })), void 0, !0)
|
|
611
|
+
])) : v("", !0),
|
|
607
612
|
k("div", {
|
|
608
|
-
id: `legend-bottom-${
|
|
609
|
-
}, null, 8,
|
|
610
|
-
ve.value ? (n(), T(
|
|
613
|
+
id: `legend-bottom-${y.value}`
|
|
614
|
+
}, null, 8, tl),
|
|
615
|
+
ve.value ? (n(), T(ft, {
|
|
611
616
|
key: 5,
|
|
612
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
617
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
613
618
|
}, [
|
|
614
619
|
k("div", {
|
|
615
620
|
ref_key: "chartLegend",
|
|
616
|
-
ref:
|
|
621
|
+
ref: re
|
|
617
622
|
}, [
|
|
618
623
|
e.value.style.chart.legend.show ? (n(), T(Wt, {
|
|
619
|
-
key: `legend_${
|
|
624
|
+
key: `legend_${ue.value}`,
|
|
620
625
|
legendSet: Pe.value,
|
|
621
626
|
config: vt.value,
|
|
622
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) =>
|
|
627
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => K(l))
|
|
623
628
|
}, {
|
|
624
629
|
item: d(({ legend: l, index: s }) => [
|
|
625
|
-
u(
|
|
630
|
+
u(j) ? v("", !0) : (n(), c("div", {
|
|
626
631
|
key: 0,
|
|
627
|
-
onClick: (r) =>
|
|
628
|
-
style:
|
|
629
|
-
},
|
|
632
|
+
onClick: (r) => K(l),
|
|
633
|
+
style: z(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
634
|
+
}, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(Re)(
|
|
630
635
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
631
636
|
l.value,
|
|
632
|
-
u(
|
|
637
|
+
u(_)({
|
|
633
638
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
634
639
|
v: l.value,
|
|
635
640
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
636
641
|
r: e.value.style.chart.legend.roundingValue
|
|
637
642
|
}),
|
|
638
643
|
{ datapoint: l, seriesIndex: s }
|
|
639
|
-
) : "") + " " +
|
|
644
|
+
) : "") + " " + L(e.value.style.chart.legend.showPercentage ? f.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(_)({
|
|
640
645
|
v: l.value / m.value * 100,
|
|
641
646
|
s: "%",
|
|
642
647
|
r: e.value.style.chart.legend.roundingPercentage
|
|
643
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
648
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ll))
|
|
644
649
|
]),
|
|
645
650
|
_: 1
|
|
646
|
-
}, 8, ["legendSet", "config"])) :
|
|
651
|
+
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
647
652
|
p(t.$slots, "legend", { legend: Pe.value }, void 0, !0)
|
|
648
653
|
], 512)
|
|
649
|
-
], 8, ["to"])) :
|
|
650
|
-
t.$slots.source ? (n(),
|
|
654
|
+
], 8, ["to"])) : v("", !0),
|
|
655
|
+
t.$slots.source ? (n(), c("div", {
|
|
651
656
|
key: 6,
|
|
652
657
|
ref_key: "source",
|
|
653
|
-
ref:
|
|
658
|
+
ref: ie,
|
|
654
659
|
dir: "auto"
|
|
655
660
|
}, [
|
|
656
661
|
p(t.$slots, "source", {}, void 0, !0)
|
|
657
|
-
], 512)) :
|
|
658
|
-
|
|
662
|
+
], 512)) : v("", !0),
|
|
663
|
+
le(u(Xe), {
|
|
659
664
|
show: g.value.showTooltip && U.value,
|
|
660
665
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
661
666
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -668,43 +673,43 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
668
673
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
669
674
|
parent: b.value,
|
|
670
675
|
content: X.value,
|
|
671
|
-
isFullscreen:
|
|
672
|
-
isCustom: u(
|
|
676
|
+
isFullscreen: S.value,
|
|
677
|
+
isCustom: u(We)(e.value.style.chart.tooltip.customFormat),
|
|
673
678
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
674
679
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
675
680
|
}, {
|
|
676
681
|
"tooltip-before": d(() => [
|
|
677
|
-
p(t.$slots, "tooltip-before", I(
|
|
682
|
+
p(t.$slots, "tooltip-before", I(D({ ...Z.value })), void 0, !0)
|
|
678
683
|
]),
|
|
679
684
|
"tooltip-after": d(() => [
|
|
680
|
-
p(t.$slots, "tooltip-after", I(
|
|
685
|
+
p(t.$slots, "tooltip-after", I(D({ ...Z.value })), void 0, !0)
|
|
681
686
|
]),
|
|
682
687
|
_: 3
|
|
683
688
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
684
|
-
|
|
689
|
+
de.value ? (n(), T(yt(B.value.component), bt({ key: 7 }, B.value.props, {
|
|
685
690
|
ref_key: "tableUnit",
|
|
686
691
|
ref: N,
|
|
687
|
-
onClose:
|
|
688
|
-
}),
|
|
692
|
+
onClose: Ie
|
|
693
|
+
}), Le({
|
|
689
694
|
content: d(() => [
|
|
690
|
-
(n(), T(u(
|
|
691
|
-
key: `table_${
|
|
692
|
-
colNames:
|
|
693
|
-
head:
|
|
694
|
-
body:
|
|
695
|
-
config:
|
|
695
|
+
(n(), T(u(qe), {
|
|
696
|
+
key: `table_${se.value}`,
|
|
697
|
+
colNames: R.value.colNames,
|
|
698
|
+
head: R.value.head,
|
|
699
|
+
body: R.value.body,
|
|
700
|
+
config: R.value.config,
|
|
696
701
|
title: e.value.table.useDialog ? "" : B.value.title,
|
|
697
702
|
withCloseButton: !e.value.table.useDialog,
|
|
698
|
-
onClose:
|
|
703
|
+
onClose: Ie
|
|
699
704
|
}, {
|
|
700
705
|
th: d(({ th: l }) => [
|
|
701
706
|
k("div", {
|
|
702
707
|
innerHTML: l,
|
|
703
708
|
style: { display: "flex", "align-items": "center" }
|
|
704
|
-
}, null, 8,
|
|
709
|
+
}, null, 8, al)
|
|
705
710
|
]),
|
|
706
711
|
td: d(({ td: l }) => [
|
|
707
|
-
|
|
712
|
+
Fe(L(l.name || l), 1)
|
|
708
713
|
]),
|
|
709
714
|
_: 1
|
|
710
715
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -714,7 +719,7 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
714
719
|
e.value.table.useDialog ? {
|
|
715
720
|
name: "title",
|
|
716
721
|
fn: d(() => [
|
|
717
|
-
|
|
722
|
+
Fe(L(B.value.title), 1)
|
|
718
723
|
]),
|
|
719
724
|
key: "0"
|
|
720
725
|
} : void 0,
|
|
@@ -724,9 +729,9 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
724
729
|
k("button", {
|
|
725
730
|
tabindex: "0",
|
|
726
731
|
class: "vue-ui-user-options-button",
|
|
727
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
732
|
+
onClick: a[1] || (a[1] = (l) => ee(e.value.userOptions.callbacks.csv))
|
|
728
733
|
}, [
|
|
729
|
-
|
|
734
|
+
le(u(Ye), {
|
|
730
735
|
name: "excel",
|
|
731
736
|
stroke: B.value.props.color
|
|
732
737
|
}, null, 8, ["stroke"])
|
|
@@ -734,11 +739,11 @@ const Rt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Ut = ["width", "heigh
|
|
|
734
739
|
]),
|
|
735
740
|
key: "1"
|
|
736
741
|
} : void 0
|
|
737
|
-
]), 1040)) :
|
|
738
|
-
u(
|
|
739
|
-
], 46,
|
|
742
|
+
]), 1040)) : v("", !0),
|
|
743
|
+
u(j) ? (n(), T(Ft, { key: 8 })) : v("", !0)
|
|
744
|
+
], 46, Gt));
|
|
740
745
|
}
|
|
741
|
-
}, yl = /* @__PURE__ */ zt(
|
|
746
|
+
}, yl = /* @__PURE__ */ zt(ol, [["__scopeId", "data-v-77ff178d"]]);
|
|
742
747
|
export {
|
|
743
748
|
yl as default
|
|
744
749
|
};
|