vue-data-ui 2.3.3 → 2.3.5
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 +19 -15
- package/dist/Arrow-BSOdhAJO.cjs +1 -0
- package/dist/Arrow-BjDVSrfA.js +101 -0
- package/dist/BaseIcon-BoKtpbrI.cjs +1 -0
- package/dist/BaseIcon-vmmfWlyR.js +174 -0
- package/dist/DataTable-CaB7GIwQ.js +127 -0
- package/dist/DataTable-ssrNbONo.cjs +1 -0
- package/dist/Legend-DHpoRTAE.js +62 -0
- package/dist/Legend-Dl5IYoxK.cjs +1 -0
- package/dist/Shape-CQT4S7N-.js +107 -0
- package/dist/Shape-CaF4pvOn.cjs +1 -0
- package/dist/Slicer-Bdb1BlrC.js +156 -0
- package/dist/Slicer-QC8nTm24.cjs +1 -0
- package/dist/Title-BNPZwnkp.js +46 -0
- package/dist/Title-Cj_xubjI.cjs +1 -0
- package/dist/Tooltip-CdJ5hegk.cjs +1 -0
- package/dist/Tooltip-ZnJAz6dl.js +94 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/documentation/installation.md +14 -13
- package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/index-BMCvLyab.js +10369 -0
- package/dist/index-BkomIE9L.cjs +4 -0
- package/dist/{index.es-ypwniJN8.js → index.es-YufTdp0y.js} +1 -1
- package/dist/{index.es-Dnua3tHc.cjs → index.es-uyeSCnWE.cjs} +1 -1
- package/dist/jspdf.es.min-C660YX78.js +8038 -0
- package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
- package/dist/pdf-97UbtKC2.js +44 -0
- package/dist/pdf-Cz3729tZ.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +105 -5
- package/dist/types/vue-data-ui.d.ts +105 -5
- package/dist/useNestedProp-BMxXyPbW.cjs +1 -0
- package/dist/useNestedProp-CkP8xhG_.js +13 -0
- package/dist/usePrinter-BuuBz5JR.js +513 -0
- package/dist/usePrinter-r6uHYEcR.cjs +1 -0
- package/dist/useResponsive-B3TrDDIG.cjs +1 -0
- package/dist/useResponsive-NZB-WLRF.js +187 -0
- package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
- package/dist/vue-data-ui-DxeO0iaC.js +254 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +61 -59
- package/dist/vue-ui-3d-bar-32wM0tiX.js +1085 -0
- package/dist/vue-ui-3d-bar-CgB0fLQT.cjs +19 -0
- package/dist/vue-ui-accordion-CLlVxx3Q.js +77 -0
- package/dist/vue-ui-accordion-SXsobrUt.cjs +1 -0
- package/dist/vue-ui-age-pyramid-D_CY99xF.js +596 -0
- package/dist/vue-ui-age-pyramid-DqiwcOIr.cjs +1 -0
- package/dist/vue-ui-annotator-DvP-IxDm.js +2177 -0
- package/dist/vue-ui-annotator-mntqd3q_.cjs +371 -0
- package/dist/vue-ui-candlestick-C-5u3i-1.js +657 -0
- package/dist/vue-ui-candlestick-C_TvUQvH.cjs +2 -0
- package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
- package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
- package/dist/vue-ui-chestnut-DhWlw2MD.cjs +6 -0
- package/dist/vue-ui-chestnut-DylSfYMB.js +1051 -0
- package/dist/vue-ui-cursor-B04HJQVl.cjs +1 -0
- package/dist/vue-ui-cursor-DTYEMgbU.js +229 -0
- package/dist/vue-ui-dashboard-Bd0-cmSZ.js +232 -0
- package/dist/vue-ui-dashboard-DFIYwP1s.cjs +1 -0
- package/dist/vue-ui-digits-CW5qNMIk.js +153 -0
- package/dist/vue-ui-digits-Ced5mBJZ.cjs +1 -0
- package/dist/vue-ui-donut-DIhhgvWp.cjs +1 -0
- package/dist/vue-ui-donut-EeVmrVJs.js +743 -0
- package/dist/vue-ui-donut-evolution-BN08Y2hy.js +799 -0
- package/dist/vue-ui-donut-evolution-Ct6KAzs-.cjs +1 -0
- package/dist/vue-ui-dumbbell-BMlxS1Nq.js +624 -0
- package/dist/vue-ui-dumbbell-pextarqH.cjs +9 -0
- package/dist/vue-ui-flow-BXVsbmyb.cjs +1 -0
- package/dist/vue-ui-flow-CHmkgfyb.js +454 -0
- package/dist/vue-ui-galaxy-D4xyd-J1.cjs +1 -0
- package/dist/vue-ui-galaxy-kiVOZOBz.js +485 -0
- package/dist/vue-ui-gauge-BcO-z97J.js +466 -0
- package/dist/vue-ui-gauge-DPFBsbFj.cjs +1 -0
- package/dist/vue-ui-heatmap-DBOKYaJz.cjs +1 -0
- package/dist/vue-ui-heatmap-DD-Bzddj.js +598 -0
- package/dist/vue-ui-kpi-BEgf5yDv.cjs +1 -0
- package/dist/vue-ui-kpi-BS0o7zb9.js +54 -0
- package/dist/vue-ui-mini-loader-Bm5EJxtG.cjs +1 -0
- package/dist/vue-ui-mini-loader-DJEvG6ju.js +131 -0
- package/dist/vue-ui-molecule-DdwnFEBJ.js +750 -0
- package/dist/vue-ui-molecule-DzUqcaxd.cjs +1 -0
- package/dist/vue-ui-mood-radar-B9Gczs_Z.js +548 -0
- package/dist/vue-ui-mood-radar-DbB7m4Ku.cjs +1 -0
- package/dist/vue-ui-nested-donuts-BSINf8hd.cjs +16 -0
- package/dist/vue-ui-nested-donuts-CVQ1CaXo.js +771 -0
- package/dist/vue-ui-onion-D3-6Tv4u.cjs +1 -0
- package/dist/vue-ui-onion-Ut75t7hB.js +554 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bjo09ZTX.js +651 -0
- package/dist/vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs +8 -0
- package/dist/vue-ui-quadrant-CzCvejGn.cjs +1 -0
- package/dist/vue-ui-quadrant-Du9PKvlO.js +1178 -0
- package/dist/vue-ui-quick-chart-BsxsPbjz.cjs +13 -0
- package/dist/vue-ui-quick-chart-u0cPmD3q.js +1310 -0
- package/dist/vue-ui-radar-CBrpuE5r.js +614 -0
- package/dist/vue-ui-radar-DIpCrj1h.cjs +1 -0
- package/dist/vue-ui-rating-CaeGGlCw.js +271 -0
- package/dist/vue-ui-rating-D8fJC8Yt.cjs +1 -0
- package/dist/vue-ui-relation-circle-5DNf880s.js +304 -0
- package/dist/vue-ui-relation-circle-Ky3nPk6S.cjs +1 -0
- package/dist/vue-ui-rings-CffZ4T2S.cjs +1 -0
- package/dist/vue-ui-rings-IE3IdNRF.js +510 -0
- package/dist/vue-ui-scatter-C4GCZm0V.js +874 -0
- package/dist/vue-ui-scatter-TsX5dW9l.cjs +1 -0
- package/dist/vue-ui-screenshot-Bl3oooKI.js +160 -0
- package/dist/vue-ui-screenshot-Bzpg6yof.cjs +3 -0
- package/dist/vue-ui-skeleton-BisWX1sO.js +2064 -0
- package/dist/vue-ui-skeleton-JmGp11-u.cjs +41 -0
- package/dist/vue-ui-smiley-BhSrt9f-.cjs +2 -0
- package/dist/vue-ui-smiley-Sth2pqG1.js +763 -0
- package/dist/vue-ui-spark-trend-C8NSz4l8.cjs +1 -0
- package/dist/vue-ui-spark-trend-DAqO0TW2.js +246 -0
- package/dist/vue-ui-sparkbar-B0zX7NU7.js +242 -0
- package/dist/vue-ui-sparkbar-hL1Q6ObK.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CWR8zJnU.js +157 -0
- package/dist/vue-ui-sparkgauge-tbVqaLCK.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-Dv-lml4g.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-DxqCtDpw.js +244 -0
- package/dist/vue-ui-sparkline-B6pvaBY_.cjs +1 -0
- package/dist/vue-ui-sparkline-BpL1jn7F.js +333 -0
- package/dist/vue-ui-sparkstackbar-BzbuBNIV.js +244 -0
- package/dist/vue-ui-sparkstackbar-CQ2TEi4p.cjs +1 -0
- package/dist/vue-ui-strip-plot-DCC6F4VM.cjs +1 -0
- package/dist/vue-ui-strip-plot-DCcbD6UE.js +618 -0
- package/dist/vue-ui-table-CFqIWfxl.js +1430 -0
- package/dist/vue-ui-table-CseaFWgX.cjs +14 -0
- package/dist/vue-ui-table-heatmap-Bwut-V1D.cjs +1 -0
- package/dist/vue-ui-table-heatmap-Bz8KYDxr.js +237 -0
- package/dist/vue-ui-table-sparkline-CJBU3y8-.cjs +1 -0
- package/dist/vue-ui-table-sparkline-z29ND2lq.js +420 -0
- package/dist/vue-ui-thermometer-BNAITzJa.js +385 -0
- package/dist/vue-ui-thermometer-DM2IKhqN.cjs +1 -0
- package/dist/vue-ui-timer-DLfXuW8T.cjs +64 -0
- package/dist/vue-ui-timer-DV6lQVHU.js +453 -0
- package/dist/vue-ui-tiremarks-B1bd1jPf.cjs +1 -0
- package/dist/vue-ui-tiremarks-WyQPg7yo.js +249 -0
- package/dist/vue-ui-treemap-BZGmoDHb.cjs +1 -0
- package/dist/vue-ui-treemap-DKmBhzV-.js +722 -0
- package/dist/vue-ui-vertical-bar-Bi-0rRN3.cjs +4 -0
- package/dist/vue-ui-vertical-bar-C-ySfrhJ.js +737 -0
- package/dist/vue-ui-waffle-CGRWu-da.js +638 -0
- package/dist/vue-ui-waffle-VLYkR-YZ.cjs +1 -0
- package/dist/vue-ui-wheel-D2q5vy5V.cjs +1 -0
- package/dist/vue-ui-wheel-Pj9OPk9f.js +227 -0
- package/dist/vue-ui-word-cloud-8Vr-jo1p.js +346 -0
- package/dist/vue-ui-word-cloud-Ba4BjatU.cjs +1 -0
- package/dist/vue-ui-xy-C4QW5Lfl.cjs +3 -0
- package/dist/vue-ui-xy-canvas-Be-Da_0x.cjs +9 -0
- package/dist/vue-ui-xy-canvas-DnLWrf0e.js +1006 -0
- package/dist/vue-ui-xy-qToggEfh.js +2064 -0
- package/package.json +1 -1
- package/dist/index-BcMihqI4.cjs +0 -843
- package/dist/index-C7FeCQ7K.js +0 -57303
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
import { computed as v, onMounted as be, ref as u, openBlock as r, createElementBlock as n, normalizeClass as N, normalizeStyle as F, createVNode as W, createCommentVNode as d, createBlock as S, unref as C, createSlots as me, withCtx as i, renderSlot as h, normalizeProps as z, guardReactiveProps as A, createElementVNode as x, Fragment as Q, renderList as Z, createTextVNode as ee, toDisplayString as I, nextTick as ke } from "vue";
|
|
2
|
+
import { u as Ce, o as xe, e as te, g as we, c as le, t as $e, a as Te, p as L, b as _e, d as Pe, F as Ne, f as O, X as Fe, v as ae, w as Se, n as Ie, q as Le } from "./index-BMCvLyab.js";
|
|
3
|
+
import { L as Oe } from "./Legend-DHpoRTAE.js";
|
|
4
|
+
import { _ as Ee } from "./Title-BNPZwnkp.js";
|
|
5
|
+
import { _ as Ve } from "./Tooltip-ZnJAz6dl.js";
|
|
6
|
+
import { D as Be } from "./DataTable-CaB7GIwQ.js";
|
|
7
|
+
import { u as De, U as Ge } from "./usePrinter-BuuBz5JR.js";
|
|
8
|
+
import Me from "./vue-ui-skeleton-BisWX1sO.js";
|
|
9
|
+
import We from "./vue-ui-accordion-CLlVxx3Q.js";
|
|
10
|
+
import { u as oe } from "./useNestedProp-CkP8xhG_.js";
|
|
11
|
+
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Ae = ["id"], He = ["xmlns", "viewBox"], Ue = ["id"], Xe = ["stdDeviation"], Re = ["d", "stroke", "stroke-width"], je = ["d", "stroke", "stroke-width"], qe = ["filter"], Ye = ["d", "stroke", "stroke-width"], Je = ["d", "stroke-width", "onMouseenter", "onClick"], Ke = ["onClick"], Qe = { key: 0 }, Ze = { key: 1 }, et = ["innerHTML"], tt = {
|
|
13
|
+
__name: "vue-ui-galaxy",
|
|
14
|
+
props: {
|
|
15
|
+
config: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default() {
|
|
18
|
+
return {};
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
dataset: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default() {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["selectLegend", "selectDatapoint"],
|
|
29
|
+
setup(se, { expose: re, emit: H }) {
|
|
30
|
+
const f = se, { vue_ui_galaxy: ue } = Ce(), _ = v(() => !!f.dataset && f.dataset.length);
|
|
31
|
+
be(() => {
|
|
32
|
+
xe(f.dataset) ? te({
|
|
33
|
+
componentName: "VueUiGalaxy",
|
|
34
|
+
type: "dataset"
|
|
35
|
+
}) : f.dataset.forEach((t, a) => {
|
|
36
|
+
we({
|
|
37
|
+
datasetObject: t,
|
|
38
|
+
requiredAttributes: ["name", "values"]
|
|
39
|
+
}).forEach((l) => {
|
|
40
|
+
te({
|
|
41
|
+
componentName: "VueUiGalaxy",
|
|
42
|
+
type: "datasetSerieAttribute",
|
|
43
|
+
property: l,
|
|
44
|
+
index: a
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const w = u(le()), E = u(null), ne = u(null), V = u(!1), B = u(""), g = u(null), U = u(0), e = v(() => {
|
|
50
|
+
const t = oe({
|
|
51
|
+
userConfig: f.config,
|
|
52
|
+
defaultConfig: ue
|
|
53
|
+
});
|
|
54
|
+
return t.theme ? {
|
|
55
|
+
...oe({
|
|
56
|
+
userConfig: $e.vue_ui_galaxy[t.theme] || f.config,
|
|
57
|
+
defaultConfig: t
|
|
58
|
+
}),
|
|
59
|
+
customPalette: Te[t.theme] || L
|
|
60
|
+
} : t;
|
|
61
|
+
}), { isPrinting: ie, isImaging: ce, generatePdf: X, generateImage: R } = De({
|
|
62
|
+
elementId: `galaxy_${w.value}`,
|
|
63
|
+
fileName: e.value.style.chart.title.text || "vue-ui-galaxy"
|
|
64
|
+
}), ve = v(() => _e(e.value.customPalette)), p = u({
|
|
65
|
+
dataLabels: {
|
|
66
|
+
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
67
|
+
},
|
|
68
|
+
showTable: e.value.table.show,
|
|
69
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
70
|
+
}), D = u({
|
|
71
|
+
height: 180,
|
|
72
|
+
// or 250 if non fibo
|
|
73
|
+
width: 250
|
|
74
|
+
}), c = u([]);
|
|
75
|
+
function G(t) {
|
|
76
|
+
c.value.includes(t.id) ? c.value = c.value.filter((a) => a !== t.id) : c.value.push(t.id), H("selectLegend", $.value.map((a) => ({
|
|
77
|
+
name: a.name,
|
|
78
|
+
color: a.color,
|
|
79
|
+
value: a.value
|
|
80
|
+
})));
|
|
81
|
+
}
|
|
82
|
+
const m = v(() => f.dataset.map((t, a) => ({
|
|
83
|
+
name: t.name,
|
|
84
|
+
color: Pe(t.color) || ve.value[a] || L[a] || L[a % L.length],
|
|
85
|
+
value: t.values ? t.values.reduce((l, o) => l + o, 0) : 0,
|
|
86
|
+
absoluteValues: t.values || [0],
|
|
87
|
+
id: le(),
|
|
88
|
+
seriesIndex: a
|
|
89
|
+
})).sort((t, a) => a.value - t.value));
|
|
90
|
+
function de() {
|
|
91
|
+
return m.value.map((t) => ({
|
|
92
|
+
name: t.name,
|
|
93
|
+
color: t.color,
|
|
94
|
+
value: t.value
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
const y = v(() => m.value.filter((t) => !c.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), he = u(190), j = v(() => m.value.filter((t) => !c.value.includes(t.id))), $ = v(() => {
|
|
98
|
+
const t = [];
|
|
99
|
+
for (let a = 0; a < j.value.length; a += 1) {
|
|
100
|
+
const l = j.value[a];
|
|
101
|
+
let o = l.value / y.value * he.value;
|
|
102
|
+
a > 0 && t.length && (o += t[a - 1].points), t.push({
|
|
103
|
+
points: o,
|
|
104
|
+
...l,
|
|
105
|
+
seriesIndex: a,
|
|
106
|
+
proportion: l.value / y.value,
|
|
107
|
+
path: Ne({
|
|
108
|
+
points: o,
|
|
109
|
+
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
110
|
+
startY: 90 + e.value.style.chart.layout.arcs.offsetY
|
|
111
|
+
})
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return t.filter((a, l) => !c.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
115
|
+
}), T = u(!1);
|
|
116
|
+
function ge(t) {
|
|
117
|
+
T.value = t, U.value += 1;
|
|
118
|
+
}
|
|
119
|
+
const M = u(null);
|
|
120
|
+
function ye({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
121
|
+
M.value = {
|
|
122
|
+
datapoint: t,
|
|
123
|
+
seriesIndex: l,
|
|
124
|
+
series: m.value,
|
|
125
|
+
config: e.value
|
|
126
|
+
}, V.value = o, g.value = t.id;
|
|
127
|
+
let s = "";
|
|
128
|
+
const k = e.value.style.chart.tooltip.customFormat;
|
|
129
|
+
ae(k) && Se(() => k({
|
|
130
|
+
seriesIndex: l,
|
|
131
|
+
datapoint: t,
|
|
132
|
+
series: m.value,
|
|
133
|
+
config: e.value
|
|
134
|
+
})) ? B.value = k({
|
|
135
|
+
seriesIndex: l,
|
|
136
|
+
datapoint: t,
|
|
137
|
+
series: m.value,
|
|
138
|
+
config: e.value
|
|
139
|
+
}) : (s += `<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>`, s += `<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 && (s += `<b>${O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: t.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.tooltip.roundingValue })}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${(t.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%)</span></div>` : s += `<b>${(t.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%</b></div>`), B.value = `<div>${s}</div>`);
|
|
140
|
+
}
|
|
141
|
+
const q = v(() => m.value.map((t, a) => ({
|
|
142
|
+
...t,
|
|
143
|
+
proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((o, s) => o + s, 0)).reduce((l, o) => l + o, 0),
|
|
144
|
+
opacity: c.value.includes(t.id) ? 0.5 : 1,
|
|
145
|
+
shape: t.shape || "circle",
|
|
146
|
+
segregate: () => G(t),
|
|
147
|
+
isSegregated: c.value.includes(t.id)
|
|
148
|
+
}))), fe = v(() => ({
|
|
149
|
+
cy: "galaxy-div-legend",
|
|
150
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
151
|
+
color: e.value.style.chart.legend.color,
|
|
152
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
153
|
+
paddingBottom: 12,
|
|
154
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
155
|
+
})), b = v(() => {
|
|
156
|
+
const t = $.value.map((l) => ({
|
|
157
|
+
name: l.name,
|
|
158
|
+
color: l.color
|
|
159
|
+
})), a = $.value.map((l) => l.value);
|
|
160
|
+
return { head: t, body: a };
|
|
161
|
+
});
|
|
162
|
+
function Y() {
|
|
163
|
+
ke(() => {
|
|
164
|
+
const t = b.value.head.map((o, s) => [[
|
|
165
|
+
o.name
|
|
166
|
+
], [b.value.body[s]], [isNaN(b.value.body[s] / y.value) ? "-" : b.value.body[s] / y.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ie(a);
|
|
167
|
+
Le({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
const P = v(() => {
|
|
171
|
+
const t = [
|
|
172
|
+
' <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>',
|
|
173
|
+
O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: y.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
174
|
+
"100%"
|
|
175
|
+
], a = b.value.head.map((s, k) => {
|
|
176
|
+
const pe = O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value.body[k], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
177
|
+
return [
|
|
178
|
+
{
|
|
179
|
+
color: s.color,
|
|
180
|
+
name: s.name
|
|
181
|
+
},
|
|
182
|
+
pe,
|
|
183
|
+
isNaN(b.value.body[k] / y.value) ? "-" : (b.value.body[k] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
184
|
+
];
|
|
185
|
+
}), l = {
|
|
186
|
+
th: {
|
|
187
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
188
|
+
color: e.value.table.th.color,
|
|
189
|
+
outline: e.value.table.th.outline
|
|
190
|
+
},
|
|
191
|
+
td: {
|
|
192
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
193
|
+
color: e.value.table.td.color,
|
|
194
|
+
outline: e.value.table.td.outline
|
|
195
|
+
},
|
|
196
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
197
|
+
};
|
|
198
|
+
return {
|
|
199
|
+
colNames: [
|
|
200
|
+
e.value.table.columnNames.series,
|
|
201
|
+
e.value.table.columnNames.value,
|
|
202
|
+
e.value.table.columnNames.percentage
|
|
203
|
+
],
|
|
204
|
+
head: t,
|
|
205
|
+
body: a,
|
|
206
|
+
config: l
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
function J() {
|
|
210
|
+
p.value.showTable = !p.value.showTable;
|
|
211
|
+
}
|
|
212
|
+
function K() {
|
|
213
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
214
|
+
}
|
|
215
|
+
return re({
|
|
216
|
+
getData: de,
|
|
217
|
+
generatePdf: X,
|
|
218
|
+
generateCsv: Y,
|
|
219
|
+
generateImage: R,
|
|
220
|
+
toggleTable: J,
|
|
221
|
+
toggleTooltip: K
|
|
222
|
+
}), (t, a) => (r(), n("div", {
|
|
223
|
+
ref_key: "galaxyChart",
|
|
224
|
+
ref: E,
|
|
225
|
+
class: N(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
226
|
+
style: F(`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}`),
|
|
227
|
+
id: `galaxy_${w.value}`
|
|
228
|
+
}, [
|
|
229
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
230
|
+
key: 0,
|
|
231
|
+
style: F(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
232
|
+
}, [
|
|
233
|
+
W(Ee, {
|
|
234
|
+
config: {
|
|
235
|
+
title: {
|
|
236
|
+
cy: "galaxy-div-title",
|
|
237
|
+
...e.value.style.chart.title
|
|
238
|
+
},
|
|
239
|
+
subtitle: {
|
|
240
|
+
cy: "galaxy-div-subtitle",
|
|
241
|
+
...e.value.style.chart.title.subtitle
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}, null, 8, ["config"])
|
|
245
|
+
], 4)) : d("", !0),
|
|
246
|
+
e.value.userOptions.show && _.value ? (r(), S(Ge, {
|
|
247
|
+
ref_key: "details",
|
|
248
|
+
ref: ne,
|
|
249
|
+
key: `user_option_${U.value}`,
|
|
250
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
251
|
+
color: e.value.style.chart.color,
|
|
252
|
+
isPrinting: C(ie),
|
|
253
|
+
isImaging: C(ce),
|
|
254
|
+
uid: w.value,
|
|
255
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
256
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
257
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
258
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
259
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
260
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
261
|
+
isTooltip: p.value.showTooltip,
|
|
262
|
+
isFullscreen: T.value,
|
|
263
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
264
|
+
chartElement: E.value,
|
|
265
|
+
onToggleFullscreen: ge,
|
|
266
|
+
onGeneratePdf: C(X),
|
|
267
|
+
onGenerateCsv: Y,
|
|
268
|
+
onGenerateImage: C(R),
|
|
269
|
+
onToggleTable: J,
|
|
270
|
+
onToggleTooltip: K
|
|
271
|
+
}, me({ _: 2 }, [
|
|
272
|
+
t.$slots.optionTooltip ? {
|
|
273
|
+
name: "optionTooltip",
|
|
274
|
+
fn: i(() => [
|
|
275
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
276
|
+
]),
|
|
277
|
+
key: "0"
|
|
278
|
+
} : void 0,
|
|
279
|
+
t.$slots.optionPdf ? {
|
|
280
|
+
name: "optionPdf",
|
|
281
|
+
fn: i(() => [
|
|
282
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
283
|
+
]),
|
|
284
|
+
key: "1"
|
|
285
|
+
} : void 0,
|
|
286
|
+
t.$slots.optionCsv ? {
|
|
287
|
+
name: "optionCsv",
|
|
288
|
+
fn: i(() => [
|
|
289
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
290
|
+
]),
|
|
291
|
+
key: "2"
|
|
292
|
+
} : void 0,
|
|
293
|
+
t.$slots.optionImg ? {
|
|
294
|
+
name: "optionImg",
|
|
295
|
+
fn: i(() => [
|
|
296
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
297
|
+
]),
|
|
298
|
+
key: "3"
|
|
299
|
+
} : void 0,
|
|
300
|
+
t.$slots.optionTable ? {
|
|
301
|
+
name: "optionTable",
|
|
302
|
+
fn: i(() => [
|
|
303
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
304
|
+
]),
|
|
305
|
+
key: "4"
|
|
306
|
+
} : void 0,
|
|
307
|
+
t.$slots.optionFullscreen ? {
|
|
308
|
+
name: "optionFullscreen",
|
|
309
|
+
fn: i(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
310
|
+
h(t.$slots, "optionFullscreen", z(A({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
311
|
+
]),
|
|
312
|
+
key: "5"
|
|
313
|
+
} : void 0
|
|
314
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
315
|
+
_.value ? (r(), n("svg", {
|
|
316
|
+
key: 2,
|
|
317
|
+
xmlns: C(Fe),
|
|
318
|
+
class: N({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
319
|
+
viewBox: `0 0 ${D.value.width} ${D.value.height}`,
|
|
320
|
+
style: F(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
321
|
+
}, [
|
|
322
|
+
x("defs", null, [
|
|
323
|
+
x("filter", {
|
|
324
|
+
id: `blur_${w.value}`,
|
|
325
|
+
x: "-50%",
|
|
326
|
+
y: "-50%",
|
|
327
|
+
width: "200%",
|
|
328
|
+
height: "200%"
|
|
329
|
+
}, [
|
|
330
|
+
x("feGaussianBlur", {
|
|
331
|
+
in: "SourceGraphic",
|
|
332
|
+
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
333
|
+
}, null, 8, Xe)
|
|
334
|
+
], 8, Ue)
|
|
335
|
+
]),
|
|
336
|
+
(r(!0), n(Q, null, Z($.value, (l) => (r(), n("g", null, [
|
|
337
|
+
l.value ? (r(), n("path", {
|
|
338
|
+
key: 0,
|
|
339
|
+
d: l.path,
|
|
340
|
+
fill: "none",
|
|
341
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
342
|
+
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
343
|
+
"stroke-linecap": "round"
|
|
344
|
+
}, null, 8, Re)) : d("", !0),
|
|
345
|
+
l.value ? (r(), n("path", {
|
|
346
|
+
key: 1,
|
|
347
|
+
d: l.path,
|
|
348
|
+
fill: "none",
|
|
349
|
+
stroke: l.color,
|
|
350
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
351
|
+
"stroke-linecap": "round",
|
|
352
|
+
class: N(`${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
353
|
+
}, null, 10, je)) : d("", !0),
|
|
354
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), n("g", {
|
|
355
|
+
key: 2,
|
|
356
|
+
filter: `url(#blur_${w.value})`
|
|
357
|
+
}, [
|
|
358
|
+
x("path", {
|
|
359
|
+
d: l.path,
|
|
360
|
+
fill: "none",
|
|
361
|
+
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
362
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
363
|
+
"stroke-linecap": "round",
|
|
364
|
+
class: N(`vue-ui-galaxy-gradient ${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
365
|
+
}, null, 10, Ye)
|
|
366
|
+
], 8, qe)) : d("", !0)
|
|
367
|
+
]))), 256)),
|
|
368
|
+
(r(!0), n(Q, null, Z($.value, (l, o) => (r(), n("g", null, [
|
|
369
|
+
l.value ? (r(), n("path", {
|
|
370
|
+
key: 0,
|
|
371
|
+
d: l.path,
|
|
372
|
+
fill: "none",
|
|
373
|
+
stroke: "transparent",
|
|
374
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
375
|
+
"stroke-linecap": "round",
|
|
376
|
+
onMouseenter: (s) => ye({
|
|
377
|
+
datapoint: l,
|
|
378
|
+
relativeIndex: o,
|
|
379
|
+
seriesIndex: l.seriesIndex,
|
|
380
|
+
show: !0
|
|
381
|
+
}),
|
|
382
|
+
onMouseleave: a[0] || (a[0] = (s) => {
|
|
383
|
+
V.value = !1, g.value = null;
|
|
384
|
+
}),
|
|
385
|
+
onClick: (s) => H("selectDatapoint", l)
|
|
386
|
+
}, null, 40, Je)) : d("", !0)
|
|
387
|
+
]))), 256)),
|
|
388
|
+
h(t.$slots, "svg", { svg: D.value }, void 0, !0)
|
|
389
|
+
], 14, He)) : d("", !0),
|
|
390
|
+
_.value ? d("", !0) : (r(), S(Me, {
|
|
391
|
+
key: 3,
|
|
392
|
+
config: {
|
|
393
|
+
type: "galaxy",
|
|
394
|
+
style: {
|
|
395
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
396
|
+
galaxy: {
|
|
397
|
+
color: "#CCCCCC"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}, null, 8, ["config"])),
|
|
402
|
+
e.value.style.chart.legend.show ? (r(), S(Oe, {
|
|
403
|
+
key: 4,
|
|
404
|
+
legendSet: q.value,
|
|
405
|
+
config: fe.value,
|
|
406
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l))
|
|
407
|
+
}, {
|
|
408
|
+
item: i(({ legend: l, index: o }) => [
|
|
409
|
+
x("div", {
|
|
410
|
+
onClick: (s) => G(l),
|
|
411
|
+
style: F(`opacity:${c.value.includes(l.id) ? 0.5 : 1}`)
|
|
412
|
+
}, [
|
|
413
|
+
ee(I(l.name) + ": " + I(C(O)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: l.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.legend.roundingValue })) + " ", 1),
|
|
414
|
+
c.value.includes(l.id) ? (r(), n("span", Ze, " ( - % ) ")) : (r(), n("span", Qe, " (" + I(isNaN(l.value / y.value) ? "-" : (l.value / y.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
415
|
+
], 12, Ke)
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
419
|
+
h(t.$slots, "legend", { legend: q.value }, void 0, !0),
|
|
420
|
+
W(Ve, {
|
|
421
|
+
show: p.value.showTooltip && V.value,
|
|
422
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
423
|
+
color: e.value.style.chart.tooltip.color,
|
|
424
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
425
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
426
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
427
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
428
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
429
|
+
parent: E.value,
|
|
430
|
+
content: B.value,
|
|
431
|
+
isCustom: C(ae)(e.value.style.chart.tooltip.customFormat)
|
|
432
|
+
}, {
|
|
433
|
+
"tooltip-before": i(() => [
|
|
434
|
+
h(t.$slots, "tooltip-before", z(A({ ...M.value })), void 0, !0)
|
|
435
|
+
]),
|
|
436
|
+
"tooltip-after": i(() => [
|
|
437
|
+
h(t.$slots, "tooltip-after", z(A({ ...M.value })), void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
_: 3
|
|
440
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
|
|
441
|
+
_.value ? (r(), S(We, {
|
|
442
|
+
key: 5,
|
|
443
|
+
hideDetails: "",
|
|
444
|
+
config: {
|
|
445
|
+
open: p.value.showTable,
|
|
446
|
+
maxHeight: 1e4,
|
|
447
|
+
body: {
|
|
448
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
449
|
+
color: e.value.style.chart.color
|
|
450
|
+
},
|
|
451
|
+
head: {
|
|
452
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
453
|
+
color: e.value.style.chart.color
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}, {
|
|
457
|
+
content: i(() => [
|
|
458
|
+
W(Be, {
|
|
459
|
+
colNames: P.value.colNames,
|
|
460
|
+
head: P.value.head,
|
|
461
|
+
body: P.value.body,
|
|
462
|
+
config: P.value.config,
|
|
463
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
464
|
+
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
465
|
+
}, {
|
|
466
|
+
th: i(({ th: l }) => [
|
|
467
|
+
x("div", {
|
|
468
|
+
innerHTML: l,
|
|
469
|
+
style: { display: "flex", "align-items": "center" }
|
|
470
|
+
}, null, 8, et)
|
|
471
|
+
]),
|
|
472
|
+
td: i(({ td: l }) => [
|
|
473
|
+
ee(I(l.name || l), 1)
|
|
474
|
+
]),
|
|
475
|
+
_: 1
|
|
476
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
}, 8, ["config"])) : d("", !0)
|
|
480
|
+
], 14, Ae));
|
|
481
|
+
}
|
|
482
|
+
}, ht = /* @__PURE__ */ ze(tt, [["__scopeId", "data-v-53c416de"]]);
|
|
483
|
+
export {
|
|
484
|
+
ht as default
|
|
485
|
+
};
|