vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { defineAsyncComponent as k, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as ke } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineAsyncComponent as k, computed as g, onMounted as Ue, ref as n, watch as We, createElementBlock as i, openBlock as r, unref as o, normalizeStyle as M, normalizeClass as B, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as de, createSlots as He, withCtx as d, normalizeProps as P, guardReactiveProps as S, createElementVNode as _, Fragment as he, renderList as ge, toDisplayString as A, createTextVNode as Xe, nextTick as je } from "vue";
|
|
2
|
+
import { u as Ye, o as qe, e as pe, g as Je, c as ye, t as Ke, p as G, a as Qe, b as Ze, G as fe, d as et, M as tt, f as C, X as lt, i as be, x as me, q as at, r as ot, y as st } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { u as ke } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { u as rt } from "./usePrinter-C9qkgv0r.js";
|
|
5
|
+
import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import it from "./img-ku4zevVD.js";
|
|
8
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const vt = ["id"], dt = {
|
|
9
10
|
key: 1,
|
|
10
11
|
ref: "noTitle",
|
|
11
12
|
class: "vue-data-ui-no-title-space",
|
|
12
13
|
style: "height:36px; width: 100%;background:transparent"
|
|
13
|
-
},
|
|
14
|
+
}, ht = {
|
|
14
15
|
key: 2,
|
|
15
16
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
16
|
-
},
|
|
17
|
+
}, gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["id"], ft = ["stdDeviation"], bt = ["d", "stroke", "stroke-width"], mt = ["d", "stroke", "stroke-width"], kt = ["filter"], wt = ["d", "stroke", "stroke-width"], Ct = ["d", "stroke-width", "onMouseenter", "onClick"], $t = {
|
|
17
18
|
key: 5,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, xt = ["onClick"], Tt = {
|
|
20
21
|
key: 8,
|
|
21
22
|
ref: "source",
|
|
22
23
|
dir: "auto"
|
|
23
|
-
},
|
|
24
|
+
}, Ot = ["innerHTML"], Pt = {
|
|
24
25
|
__name: "vue-ui-galaxy",
|
|
25
26
|
props: {
|
|
26
27
|
config: {
|
|
@@ -37,33 +38,33 @@ const it = ["id"], ct = {
|
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
emits: ["selectLegend", "selectDatapoint"],
|
|
40
|
-
setup(
|
|
41
|
-
const xe = k(() => import("./vue-ui-accordion-
|
|
42
|
-
|
|
41
|
+
setup(we, { expose: Ce, emit: $e }) {
|
|
42
|
+
const xe = k(() => import("./vue-ui-accordion-DgZK-qDz.js")), Te = k(() => import("./DataTable-CgL0Rz0x.js")), Oe = k(() => import("./Legend-CYbP3Kfg.js")), Pe = k(() => import("./PackageVersion-CAkNkiIG.js")), Se = k(() => import("./PenAndPaper-Cx1-5zdD.js")), _e = k(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ne = k(() => import("./Title-pVYRzQXY.js")), Le = k(() => import("./Tooltip-NwATo4ZJ.js")), Ie = k(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_galaxy: Ae } = Ye(), f = we, F = g(() => !!f.dataset && f.dataset.length);
|
|
43
|
+
Ue(() => {
|
|
43
44
|
X();
|
|
44
45
|
});
|
|
45
46
|
function X() {
|
|
46
|
-
|
|
47
|
+
qe(f.dataset) ? pe({
|
|
47
48
|
componentName: "VueUiGalaxy",
|
|
48
49
|
type: "dataset"
|
|
49
|
-
}) : f.dataset.forEach((t,
|
|
50
|
-
|
|
50
|
+
}) : f.dataset.forEach((t, a) => {
|
|
51
|
+
Je({
|
|
51
52
|
datasetObject: t,
|
|
52
53
|
requiredAttributes: ["name", "values"]
|
|
53
54
|
}).forEach((l) => {
|
|
54
|
-
|
|
55
|
+
pe({
|
|
55
56
|
componentName: "VueUiGalaxy",
|
|
56
57
|
type: "datasetSerieAttribute",
|
|
57
58
|
property: l,
|
|
58
|
-
index:
|
|
59
|
+
index: a
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
+
const N = n(ye()), T = n(null), Fe = n(null), D = n(!1), R = n(""), b = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = g({
|
|
64
65
|
get: () => ee(),
|
|
65
66
|
set: (t) => t
|
|
66
|
-
}), { userOptionsVisible:
|
|
67
|
+
}), { userOptionsVisible: z, setUserOptionsVisibility: K, keepUserOptionState: Q } = ut({ config: e.value }), { svgRef: Z } = nt({ config: e.value.style.chart.title });
|
|
67
68
|
function ee() {
|
|
68
69
|
const t = ke({
|
|
69
70
|
userConfig: f.config,
|
|
@@ -71,45 +72,45 @@ const it = ["id"], ct = {
|
|
|
71
72
|
});
|
|
72
73
|
return t.theme ? {
|
|
73
74
|
...ke({
|
|
74
|
-
userConfig:
|
|
75
|
+
userConfig: Qe.vue_ui_galaxy[t.theme] || f.config,
|
|
75
76
|
defaultConfig: t
|
|
76
77
|
}),
|
|
77
|
-
customPalette:
|
|
78
|
+
customPalette: Ke[t.theme] || G
|
|
78
79
|
} : t;
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
e.value = ee(),
|
|
81
|
+
We(() => f.config, (t) => {
|
|
82
|
+
e.value = ee(), z.value = !e.value.userOptions.showOnChartHover, X(), Y.value += 1, q.value += 1, J.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;
|
|
82
83
|
}, { deep: !0 });
|
|
83
|
-
const { isPrinting: te, isImaging: le, generatePdf:
|
|
84
|
-
elementId: `galaxy_${
|
|
84
|
+
const { isPrinting: te, isImaging: le, generatePdf: ae, generateImage: oe } = rt({
|
|
85
|
+
elementId: `galaxy_${N.value}`,
|
|
85
86
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
86
87
|
options: e.value.userOptions.print
|
|
87
|
-
}), Ve =
|
|
88
|
+
}), Ve = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = g(() => Ze(e.value.customPalette)), p = n({
|
|
88
89
|
dataLabels: {
|
|
89
90
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
90
91
|
},
|
|
91
92
|
showTable: e.value.table.show,
|
|
92
93
|
showTooltip: e.value.style.chart.tooltip.show
|
|
93
|
-
}),
|
|
94
|
+
}), L = n({
|
|
94
95
|
height: 180,
|
|
95
96
|
// or 250 if non fibo
|
|
96
97
|
width: 250
|
|
97
98
|
}), se = $e, y = n([]);
|
|
98
|
-
function
|
|
99
|
-
y.value.includes(t.id) ? y.value = y.value.filter((
|
|
100
|
-
name:
|
|
101
|
-
color:
|
|
102
|
-
value:
|
|
99
|
+
function U(t) {
|
|
100
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), se("selectLegend", I.value.map((a) => ({
|
|
101
|
+
name: a.name,
|
|
102
|
+
color: a.color,
|
|
103
|
+
value: a.value
|
|
103
104
|
})));
|
|
104
105
|
}
|
|
105
|
-
const $ =
|
|
106
|
+
const $ = g(() => f.dataset.map((t, a) => ({
|
|
106
107
|
name: t.name,
|
|
107
|
-
color:
|
|
108
|
+
color: et(t.color) || Ee.value[a] || G[a] || G[a % G.length],
|
|
108
109
|
value: t.values ? fe(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
109
110
|
absoluteValues: fe(t.values),
|
|
110
|
-
id:
|
|
111
|
-
seriesIndex:
|
|
112
|
-
})).sort((t,
|
|
111
|
+
id: ye(),
|
|
112
|
+
seriesIndex: a
|
|
113
|
+
})).sort((t, a) => a.value - t.value));
|
|
113
114
|
function Me() {
|
|
114
115
|
return $.value.map((t) => ({
|
|
115
116
|
name: t.name,
|
|
@@ -117,44 +118,44 @@ const it = ["id"], ct = {
|
|
|
117
118
|
value: t.value
|
|
118
119
|
}));
|
|
119
120
|
}
|
|
120
|
-
const m =
|
|
121
|
+
const m = g(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Be = n(190), re = g(() => $.value.filter((t) => !y.value.includes(t.id))), I = g(() => {
|
|
121
122
|
const t = [];
|
|
122
|
-
for (let
|
|
123
|
-
const l = re.value[
|
|
124
|
-
let s = l.value / m.value *
|
|
125
|
-
|
|
123
|
+
for (let a = 0; a < re.value.length; a += 1) {
|
|
124
|
+
const l = re.value[a];
|
|
125
|
+
let s = l.value / m.value * Be.value;
|
|
126
|
+
a > 0 && t.length && (s += t[a - 1].points), t.push({
|
|
126
127
|
points: s,
|
|
127
128
|
...l,
|
|
128
|
-
seriesIndex:
|
|
129
|
+
seriesIndex: a,
|
|
129
130
|
proportion: l.value / m.value,
|
|
130
|
-
path:
|
|
131
|
+
path: tt({
|
|
131
132
|
points: s,
|
|
132
133
|
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
133
134
|
startY: 90 + e.value.style.chart.layout.arcs.offsetY
|
|
134
135
|
})
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
|
-
return t.filter((
|
|
138
|
-
}),
|
|
139
|
-
function
|
|
140
|
-
|
|
138
|
+
return t.filter((a, l) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
139
|
+
}), O = n(!1);
|
|
140
|
+
function ue(t) {
|
|
141
|
+
O.value = t, j.value += 1;
|
|
141
142
|
}
|
|
142
|
-
const
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
const W = n(null);
|
|
144
|
+
function Ge({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
145
|
+
W.value = {
|
|
145
146
|
datapoint: t,
|
|
146
147
|
seriesIndex: l,
|
|
147
148
|
series: $.value,
|
|
148
149
|
config: e.value
|
|
149
150
|
}, D.value = s, b.value = t.id;
|
|
150
151
|
let u = "";
|
|
151
|
-
const
|
|
152
|
-
me(
|
|
152
|
+
const h = e.value.style.chart.tooltip.customFormat;
|
|
153
|
+
me(h) && st(() => h({
|
|
153
154
|
seriesIndex: l,
|
|
154
155
|
datapoint: t,
|
|
155
156
|
series: $.value,
|
|
156
157
|
config: e.value
|
|
157
|
-
})) ?
|
|
158
|
+
})) ? R.value = h({
|
|
158
159
|
seriesIndex: l,
|
|
159
160
|
datapoint: t,
|
|
160
161
|
series: $.value,
|
|
@@ -162,67 +163,67 @@ const it = ["id"], ct = {
|
|
|
162
163
|
}) : (u += `<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>`, u += `<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 && (u += `<b>${be(
|
|
163
164
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
164
165
|
t.value,
|
|
165
|
-
|
|
166
|
+
C({
|
|
166
167
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
167
168
|
v: t.value,
|
|
168
169
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
169
170
|
r: e.value.style.chart.tooltip.roundingValue
|
|
170
171
|
}),
|
|
171
172
|
{ datapoint: t, seriesIndex: l }
|
|
172
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${
|
|
173
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${C({
|
|
173
174
|
v: t.proportion * 100,
|
|
174
175
|
s: "%",
|
|
175
176
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
176
|
-
})})</span></div>` : u += `<b>${
|
|
177
|
+
})})</span></div>` : u += `<b>${C({
|
|
177
178
|
v: t.proportion * 100,
|
|
178
179
|
s: "%",
|
|
179
180
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
180
|
-
})}</b></div>`),
|
|
181
|
+
})}</b></div>`), R.value = `<div>${u}</div>`);
|
|
181
182
|
}
|
|
182
|
-
const
|
|
183
|
+
const ne = g(() => $.value.map((t, a) => ({
|
|
183
184
|
...t,
|
|
184
185
|
proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, u) => s + u, 0)).reduce((l, s) => l + s, 0),
|
|
185
186
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
186
187
|
shape: t.shape || "circle",
|
|
187
|
-
segregate: () =>
|
|
188
|
+
segregate: () => U(t),
|
|
188
189
|
isSegregated: y.value.includes(t.id)
|
|
189
|
-
}))),
|
|
190
|
+
}))), De = g(() => ({
|
|
190
191
|
cy: "galaxy-div-legend",
|
|
191
192
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
192
193
|
color: e.value.style.chart.legend.color,
|
|
193
194
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
194
195
|
paddingBottom: 12,
|
|
195
196
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
196
|
-
})),
|
|
197
|
-
const t =
|
|
197
|
+
})), w = g(() => {
|
|
198
|
+
const t = I.value.map((l) => ({
|
|
198
199
|
name: l.name,
|
|
199
200
|
color: l.color
|
|
200
|
-
})),
|
|
201
|
-
return { head: t, body:
|
|
201
|
+
})), a = I.value.map((l) => l.value);
|
|
202
|
+
return { head: t, body: a };
|
|
202
203
|
});
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
-
const
|
|
204
|
+
function ie(t = null) {
|
|
205
|
+
je(() => {
|
|
206
|
+
const a = w.value.head.map((u, h) => [[
|
|
206
207
|
u.name
|
|
207
|
-
], [
|
|
208
|
+
], [w.value.body[h]], [isNaN(w.value.body[h] / m.value) ? "-" : w.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = at(l);
|
|
208
209
|
t ? t(s) : ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
209
210
|
});
|
|
210
211
|
}
|
|
211
|
-
const
|
|
212
|
+
const V = g(() => {
|
|
212
213
|
const t = [
|
|
213
214
|
' <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>',
|
|
214
|
-
|
|
215
|
+
C({ 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 }),
|
|
215
216
|
"100%"
|
|
216
|
-
],
|
|
217
|
-
const
|
|
217
|
+
], a = w.value.head.map((u, h) => {
|
|
218
|
+
const ze = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
218
219
|
return [
|
|
219
220
|
{
|
|
220
221
|
color: u.color,
|
|
221
222
|
name: u.name
|
|
222
223
|
},
|
|
223
|
-
|
|
224
|
-
isNaN(
|
|
225
|
-
v:
|
|
224
|
+
ze,
|
|
225
|
+
isNaN(w.value.body[h] / m.value) ? "-" : C({
|
|
226
|
+
v: w.value.body[h] / m.value * 100,
|
|
226
227
|
s: "%",
|
|
227
228
|
r: e.value.table.td.roundingPercentage
|
|
228
229
|
})
|
|
@@ -247,48 +248,62 @@ const it = ["id"], ct = {
|
|
|
247
248
|
e.value.table.columnNames.percentage
|
|
248
249
|
],
|
|
249
250
|
head: t,
|
|
250
|
-
body:
|
|
251
|
+
body: a,
|
|
251
252
|
config: l
|
|
252
253
|
};
|
|
253
254
|
});
|
|
254
|
-
function
|
|
255
|
+
function ce() {
|
|
255
256
|
p.value.showTable = !p.value.showTable;
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
+
function ve() {
|
|
258
259
|
p.value.showTooltip = !p.value.showTooltip;
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
+
const E = n(!1);
|
|
261
262
|
function H() {
|
|
262
|
-
|
|
263
|
+
E.value = !E.value;
|
|
264
|
+
}
|
|
265
|
+
async function Re({ scale: t = 2 } = {}) {
|
|
266
|
+
if (!T.value) return;
|
|
267
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: h } = await it({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
268
|
+
return {
|
|
269
|
+
imageUri: u,
|
|
270
|
+
base64: h,
|
|
271
|
+
title: e.value.style.chart.title.text,
|
|
272
|
+
width: a,
|
|
273
|
+
height: l,
|
|
274
|
+
aspectRatio: s
|
|
275
|
+
};
|
|
263
276
|
}
|
|
264
|
-
return
|
|
277
|
+
return Ce({
|
|
265
278
|
getData: Me,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
279
|
+
getImage: Re,
|
|
280
|
+
generatePdf: ae,
|
|
281
|
+
generateCsv: ie,
|
|
282
|
+
generateImage: oe,
|
|
283
|
+
toggleTable: ce,
|
|
284
|
+
toggleTooltip: ve,
|
|
285
|
+
toggleAnnotator: H,
|
|
286
|
+
toggleFullscreen: ue
|
|
287
|
+
}), (t, a) => (r(), i("div", {
|
|
273
288
|
ref_key: "galaxyChart",
|
|
274
|
-
ref:
|
|
275
|
-
class:
|
|
276
|
-
style:
|
|
277
|
-
id: `galaxy_${
|
|
278
|
-
onMouseenter:
|
|
279
|
-
onMouseleave:
|
|
289
|
+
ref: T,
|
|
290
|
+
class: B(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
291
|
+
style: M(`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}`),
|
|
292
|
+
id: `galaxy_${N.value}`,
|
|
293
|
+
onMouseenter: a[3] || (a[3] = () => o(K)(!0)),
|
|
294
|
+
onMouseleave: a[4] || (a[4] = () => o(K)(!1))
|
|
280
295
|
}, [
|
|
281
|
-
e.value.userOptions.buttons.annotator ? (r(), x(
|
|
296
|
+
e.value.userOptions.buttons.annotator ? (r(), x(o(Se), {
|
|
282
297
|
key: 0,
|
|
283
|
-
svgRef:
|
|
298
|
+
svgRef: o(Z),
|
|
284
299
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
285
300
|
color: e.value.style.chart.color,
|
|
286
|
-
active:
|
|
301
|
+
active: E.value,
|
|
287
302
|
onClose: H
|
|
288
303
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
289
|
-
Ve.value ? (r(), i("div",
|
|
290
|
-
e.value.style.chart.title.text ? (r(), i("div",
|
|
291
|
-
(r(), x(
|
|
304
|
+
Ve.value ? (r(), i("div", dt, null, 512)) : c("", !0),
|
|
305
|
+
e.value.style.chart.title.text ? (r(), i("div", ht, [
|
|
306
|
+
(r(), x(o(Ne), {
|
|
292
307
|
key: `title_${Y.value}`,
|
|
293
308
|
config: {
|
|
294
309
|
title: {
|
|
@@ -302,15 +317,15 @@ const it = ["id"], ct = {
|
|
|
302
317
|
}
|
|
303
318
|
}, null, 8, ["config"]))
|
|
304
319
|
])) : c("", !0),
|
|
305
|
-
e.value.userOptions.show &&
|
|
320
|
+
e.value.userOptions.show && F.value && (o(Q) || o(z)) ? (r(), x(o(Ie), {
|
|
306
321
|
ref_key: "details",
|
|
307
322
|
ref: Fe,
|
|
308
323
|
key: `user_option_${j.value}`,
|
|
309
324
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
310
325
|
color: e.value.style.chart.color,
|
|
311
|
-
isPrinting:
|
|
312
|
-
isImaging:
|
|
313
|
-
uid:
|
|
326
|
+
isPrinting: o(te),
|
|
327
|
+
isImaging: o(le),
|
|
328
|
+
uid: N.value,
|
|
314
329
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
315
330
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
316
331
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -318,28 +333,29 @@ const it = ["id"], ct = {
|
|
|
318
333
|
hasTable: e.value.userOptions.buttons.table,
|
|
319
334
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
320
335
|
isTooltip: p.value.showTooltip,
|
|
321
|
-
isFullscreen:
|
|
336
|
+
isFullscreen: O.value,
|
|
322
337
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
323
|
-
chartElement:
|
|
338
|
+
chartElement: T.value,
|
|
324
339
|
position: e.value.userOptions.position,
|
|
325
340
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
326
|
-
isAnnotation:
|
|
341
|
+
isAnnotation: E.value,
|
|
327
342
|
callbacks: e.value.userOptions.callbacks,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
343
|
+
printScale: e.value.userOptions.print.scale,
|
|
344
|
+
onToggleFullscreen: ue,
|
|
345
|
+
onGeneratePdf: o(ae),
|
|
346
|
+
onGenerateCsv: ie,
|
|
347
|
+
onGenerateImage: o(oe),
|
|
348
|
+
onToggleTable: ce,
|
|
349
|
+
onToggleTooltip: ve,
|
|
334
350
|
onToggleAnnotator: H,
|
|
335
|
-
style:
|
|
336
|
-
visibility:
|
|
351
|
+
style: M({
|
|
352
|
+
visibility: o(Q) ? o(z) ? "visible" : "hidden" : "visible"
|
|
337
353
|
})
|
|
338
354
|
}, He({ _: 2 }, [
|
|
339
355
|
t.$slots.menuIcon ? {
|
|
340
356
|
name: "menuIcon",
|
|
341
357
|
fn: d(({ isOpen: l, color: s }) => [
|
|
342
|
-
v(t.$slots, "menuIcon",
|
|
358
|
+
v(t.$slots, "menuIcon", P(S({ isOpen: l, color: s })), void 0, !0)
|
|
343
359
|
]),
|
|
344
360
|
key: "0"
|
|
345
361
|
} : void 0,
|
|
@@ -381,55 +397,55 @@ const it = ["id"], ct = {
|
|
|
381
397
|
t.$slots.optionFullscreen ? {
|
|
382
398
|
name: "optionFullscreen",
|
|
383
399
|
fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
384
|
-
v(t.$slots, "optionFullscreen",
|
|
400
|
+
v(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
385
401
|
]),
|
|
386
402
|
key: "6"
|
|
387
403
|
} : void 0,
|
|
388
404
|
t.$slots.optionAnnotator ? {
|
|
389
405
|
name: "optionAnnotator",
|
|
390
406
|
fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
391
|
-
v(t.$slots, "optionAnnotator",
|
|
407
|
+
v(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
392
408
|
]),
|
|
393
409
|
key: "7"
|
|
394
410
|
} : void 0
|
|
395
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
396
|
-
|
|
411
|
+
]), 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),
|
|
412
|
+
F.value ? (r(), i("svg", {
|
|
397
413
|
key: 4,
|
|
398
414
|
ref_key: "svgRef",
|
|
399
415
|
ref: Z,
|
|
400
|
-
xmlns:
|
|
401
|
-
class:
|
|
402
|
-
viewBox: `0 0 ${
|
|
403
|
-
style:
|
|
416
|
+
xmlns: o(lt),
|
|
417
|
+
class: B({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
418
|
+
viewBox: `0 0 ${L.value.width} ${L.value.height}`,
|
|
419
|
+
style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
404
420
|
}, [
|
|
405
|
-
|
|
421
|
+
de(o(Pe)),
|
|
406
422
|
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
407
423
|
key: 0,
|
|
408
424
|
x: 0,
|
|
409
425
|
y: 0,
|
|
410
|
-
width:
|
|
411
|
-
height:
|
|
426
|
+
width: L.value.width,
|
|
427
|
+
height: L.value.height,
|
|
412
428
|
style: {
|
|
413
429
|
pointerEvents: "none"
|
|
414
430
|
}
|
|
415
431
|
}, [
|
|
416
432
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
417
|
-
], 8,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
id: `blur_${
|
|
433
|
+
], 8, pt)) : c("", !0),
|
|
434
|
+
_("defs", null, [
|
|
435
|
+
_("filter", {
|
|
436
|
+
id: `blur_${N.value}`,
|
|
421
437
|
x: "-50%",
|
|
422
438
|
y: "-50%",
|
|
423
439
|
width: "200%",
|
|
424
440
|
height: "200%"
|
|
425
441
|
}, [
|
|
426
|
-
|
|
442
|
+
_("feGaussianBlur", {
|
|
427
443
|
in: "SourceGraphic",
|
|
428
444
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
429
|
-
}, null, 8,
|
|
430
|
-
], 8,
|
|
445
|
+
}, null, 8, ft)
|
|
446
|
+
], 8, yt)
|
|
431
447
|
]),
|
|
432
|
-
(r(!0), i(
|
|
448
|
+
(r(!0), i(he, null, ge(I.value, (l) => (r(), i("g", null, [
|
|
433
449
|
l.value ? (r(), i("path", {
|
|
434
450
|
key: 0,
|
|
435
451
|
d: l.path,
|
|
@@ -437,7 +453,7 @@ const it = ["id"], ct = {
|
|
|
437
453
|
stroke: e.value.style.chart.backgroundColor,
|
|
438
454
|
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
439
455
|
"stroke-linecap": "round"
|
|
440
|
-
}, null, 8,
|
|
456
|
+
}, null, 8, bt)) : c("", !0),
|
|
441
457
|
l.value ? (r(), i("path", {
|
|
442
458
|
key: 1,
|
|
443
459
|
d: l.path,
|
|
@@ -445,23 +461,23 @@ const it = ["id"], ct = {
|
|
|
445
461
|
stroke: l.color,
|
|
446
462
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
447
463
|
"stroke-linecap": "round",
|
|
448
|
-
class:
|
|
449
|
-
}, null, 10,
|
|
464
|
+
class: B(`${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
465
|
+
}, null, 10, mt)) : c("", !0),
|
|
450
466
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), i("g", {
|
|
451
467
|
key: 2,
|
|
452
|
-
filter: `url(#blur_${
|
|
468
|
+
filter: `url(#blur_${N.value})`
|
|
453
469
|
}, [
|
|
454
|
-
|
|
470
|
+
_("path", {
|
|
455
471
|
d: l.path,
|
|
456
472
|
fill: "none",
|
|
457
473
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
458
474
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
459
475
|
"stroke-linecap": "round",
|
|
460
|
-
class:
|
|
461
|
-
}, null, 10,
|
|
462
|
-
], 8,
|
|
476
|
+
class: B(`vue-ui-galaxy-gradient ${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
477
|
+
}, null, 10, wt)
|
|
478
|
+
], 8, kt)) : c("", !0)
|
|
463
479
|
]))), 256)),
|
|
464
|
-
(r(!0), i(
|
|
480
|
+
(r(!0), i(he, null, ge(I.value, (l, s) => (r(), i("g", null, [
|
|
465
481
|
l.value ? (r(), i("path", {
|
|
466
482
|
key: 0,
|
|
467
483
|
d: l.path,
|
|
@@ -469,23 +485,23 @@ const it = ["id"], ct = {
|
|
|
469
485
|
stroke: "transparent",
|
|
470
486
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
471
487
|
"stroke-linecap": "round",
|
|
472
|
-
onMouseenter: (u) =>
|
|
488
|
+
onMouseenter: (u) => Ge({
|
|
473
489
|
datapoint: l,
|
|
474
490
|
seriesIndex: l.seriesIndex,
|
|
475
491
|
show: !0
|
|
476
492
|
}),
|
|
477
|
-
onMouseleave:
|
|
493
|
+
onMouseleave: a[0] || (a[0] = (u) => {
|
|
478
494
|
D.value = !1, b.value = null;
|
|
479
495
|
}),
|
|
480
496
|
onClick: (u) => se("selectDatapoint", l)
|
|
481
|
-
}, null, 40,
|
|
497
|
+
}, null, 40, Ct)) : c("", !0)
|
|
482
498
|
]))), 256)),
|
|
483
|
-
v(t.$slots, "svg", { svg:
|
|
484
|
-
], 14,
|
|
485
|
-
t.$slots.watermark ? (r(), i("div",
|
|
486
|
-
v(t.$slots, "watermark",
|
|
499
|
+
v(t.$slots, "svg", { svg: L.value }, void 0, !0)
|
|
500
|
+
], 14, gt)) : c("", !0),
|
|
501
|
+
t.$slots.watermark ? (r(), i("div", $t, [
|
|
502
|
+
v(t.$slots, "watermark", P(S({ isPrinting: o(te) || o(le) })), void 0, !0)
|
|
487
503
|
])) : c("", !0),
|
|
488
|
-
|
|
504
|
+
F.value ? c("", !0) : (r(), x(o(_e), {
|
|
489
505
|
key: 6,
|
|
490
506
|
config: {
|
|
491
507
|
type: "galaxy",
|
|
@@ -497,42 +513,39 @@ const it = ["id"], ct = {
|
|
|
497
513
|
}
|
|
498
514
|
}
|
|
499
515
|
}, null, 8, ["config"])),
|
|
500
|
-
e.value.style.chart.legend.show ? (r(), x(
|
|
516
|
+
e.value.style.chart.legend.show ? (r(), x(o(Oe), {
|
|
501
517
|
key: `legend_${J.value}`,
|
|
502
|
-
legendSet:
|
|
503
|
-
config:
|
|
504
|
-
onClickMarker:
|
|
518
|
+
legendSet: ne.value,
|
|
519
|
+
config: De.value,
|
|
520
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => U(l))
|
|
505
521
|
}, {
|
|
506
522
|
item: d(({ legend: l, index: s }) => [
|
|
507
|
-
|
|
508
|
-
onClick: (u) =>
|
|
509
|
-
style:
|
|
510
|
-
},
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
526
|
-
})) + ") ", 1))
|
|
527
|
-
], 12, wt)
|
|
523
|
+
_("div", {
|
|
524
|
+
onClick: (u) => U(l),
|
|
525
|
+
style: M(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
526
|
+
}, A(l.name) + A(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + A(e.value.style.chart.legend.showValue ? o(be)(
|
|
527
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
528
|
+
l.value,
|
|
529
|
+
o(C)({
|
|
530
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
531
|
+
v: l.value,
|
|
532
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
533
|
+
r: e.value.style.chart.legend.roundingValue
|
|
534
|
+
}),
|
|
535
|
+
{ datapoint: l, seriesIndex: s }
|
|
536
|
+
) : "") + " " + A(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) ? "-" : o(C)({
|
|
537
|
+
v: l.value / m.value * 100,
|
|
538
|
+
s: "%",
|
|
539
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
540
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, xt)
|
|
528
541
|
]),
|
|
529
542
|
_: 1
|
|
530
543
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
531
|
-
v(t.$slots, "legend", { legend:
|
|
544
|
+
v(t.$slots, "legend", { legend: ne.value }, void 0, !0),
|
|
532
545
|
t.$slots.source ? (r(), i("div", Tt, [
|
|
533
546
|
v(t.$slots, "source", {}, void 0, !0)
|
|
534
547
|
], 512)) : c("", !0),
|
|
535
|
-
|
|
548
|
+
de(o(Le), {
|
|
536
549
|
show: p.value.showTooltip && D.value,
|
|
537
550
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
538
551
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -543,20 +556,20 @@ const it = ["id"], ct = {
|
|
|
543
556
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
544
557
|
position: e.value.style.chart.tooltip.position,
|
|
545
558
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
546
|
-
parent:
|
|
547
|
-
content:
|
|
548
|
-
isFullscreen:
|
|
549
|
-
isCustom:
|
|
559
|
+
parent: T.value,
|
|
560
|
+
content: R.value,
|
|
561
|
+
isFullscreen: O.value,
|
|
562
|
+
isCustom: o(me)(e.value.style.chart.tooltip.customFormat)
|
|
550
563
|
}, {
|
|
551
564
|
"tooltip-before": d(() => [
|
|
552
|
-
v(t.$slots, "tooltip-before",
|
|
565
|
+
v(t.$slots, "tooltip-before", P(S({ ...W.value })), void 0, !0)
|
|
553
566
|
]),
|
|
554
567
|
"tooltip-after": d(() => [
|
|
555
|
-
v(t.$slots, "tooltip-after",
|
|
568
|
+
v(t.$slots, "tooltip-after", P(S({ ...W.value })), void 0, !0)
|
|
556
569
|
]),
|
|
557
570
|
_: 3
|
|
558
571
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
559
|
-
|
|
572
|
+
F.value ? (r(), x(o(xe), {
|
|
560
573
|
key: 9,
|
|
561
574
|
hideDetails: "",
|
|
562
575
|
config: {
|
|
@@ -573,32 +586,32 @@ const it = ["id"], ct = {
|
|
|
573
586
|
}
|
|
574
587
|
}, {
|
|
575
588
|
content: d(() => [
|
|
576
|
-
(r(), x(
|
|
589
|
+
(r(), x(o(Te), {
|
|
577
590
|
key: `table_${q.value}`,
|
|
578
|
-
colNames:
|
|
579
|
-
head:
|
|
580
|
-
body:
|
|
581
|
-
config:
|
|
591
|
+
colNames: V.value.colNames,
|
|
592
|
+
head: V.value.head,
|
|
593
|
+
body: V.value.body,
|
|
594
|
+
config: V.value.config,
|
|
582
595
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
583
|
-
onClose:
|
|
596
|
+
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
584
597
|
}, {
|
|
585
598
|
th: d(({ th: l }) => [
|
|
586
|
-
|
|
599
|
+
_("div", {
|
|
587
600
|
innerHTML: l,
|
|
588
601
|
style: { display: "flex", "align-items": "center" }
|
|
589
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, Ot)
|
|
590
603
|
]),
|
|
591
604
|
td: d(({ td: l }) => [
|
|
592
|
-
|
|
605
|
+
Xe(A(l.name || l), 1)
|
|
593
606
|
]),
|
|
594
607
|
_: 1
|
|
595
608
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
596
609
|
]),
|
|
597
610
|
_: 1
|
|
598
611
|
}, 8, ["config"])) : c("", !0)
|
|
599
|
-
], 46,
|
|
612
|
+
], 46, vt));
|
|
600
613
|
}
|
|
601
|
-
},
|
|
614
|
+
}, Et = /* @__PURE__ */ ct(Pt, [["__scopeId", "data-v-de094a3d"]]);
|
|
602
615
|
export {
|
|
603
|
-
|
|
616
|
+
Et as default
|
|
604
617
|
};
|