vue-data-ui 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Arrow-B6gJebT9.js +101 -0
- package/dist/Arrow-C5yj6zwY.cjs +1 -0
- package/dist/BaseIcon-7_g11dRj.js +174 -0
- package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
- package/dist/DataTable-CwaOlAsy.js +127 -0
- package/dist/DataTable-Rm9II-m2.cjs +1 -0
- package/dist/Legend-CxvJTjEm.js +62 -0
- package/dist/Legend-D59FIuMs.cjs +1 -0
- package/dist/Shape-CVItL3vh.cjs +1 -0
- package/dist/Shape-CjLV0scA.js +107 -0
- package/dist/Slicer-Bxg5niHl.js +156 -0
- package/dist/Slicer-Cdss5Rus.cjs +1 -0
- package/dist/Title-2iks1ziC.js +46 -0
- package/dist/Title-Bb-A5OSV.cjs +1 -0
- package/dist/Tooltip-C3phqKuU.js +94 -0
- package/dist/Tooltip-C_UE6y-E.cjs +1 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/index-p5gfZSvB.cjs +4 -0
- package/dist/index-uOtklCCx.js +10268 -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/useNestedProp-2kIU-7On.cjs +1 -0
- package/dist/useNestedProp-BgWkUab_.js +13 -0
- package/dist/usePrinter-B6xQCyL-.js +464 -0
- package/dist/usePrinter-fZlsJid8.cjs +1 -0
- package/dist/useResponsive-B3TrDDIG.cjs +1 -0
- package/dist/useResponsive-NZB-WLRF.js +187 -0
- package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
- package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +62 -61
- package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
- package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
- package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
- package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
- package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
- package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
- package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
- package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
- package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
- package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
- package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
- package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
- package/dist/vue-ui-cursor-C96IChA3.js +229 -0
- package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
- package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
- package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
- package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
- package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
- package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
- package/dist/vue-ui-donut-B9iXisHK.js +743 -0
- package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
- package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
- package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
- package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
- package/dist/vue-ui-flow-BTivYoGd.js +454 -0
- package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
- package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
- package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
- package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
- package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
- package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
- package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
- package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
- package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
- package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
- package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
- package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
- package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
- package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
- package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
- package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
- package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
- package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
- package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
- package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
- package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
- package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
- package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
- package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
- package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
- package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
- package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
- package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
- package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
- package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
- package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
- package/dist/vue-ui-rings-CsUngX_F.js +510 -0
- package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
- package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
- package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
- package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
- package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
- package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
- package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
- package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
- package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
- package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
- package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
- package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
- package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
- package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
- package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
- package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
- package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
- package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
- package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
- package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
- package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
- package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
- package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
- package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
- package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
- package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
- package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
- package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
- package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
- package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
- package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
- package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
- package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
- package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
- package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
- package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
- package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
- package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
- package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
- package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
- package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
- package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
- package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
- package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
- package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
- package/package.json +1 -1
- package/dist/index-BcMihqI4.cjs +0 -843
- package/dist/index-C7FeCQ7K.js +0 -57303
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { computed as m, ref as f, onMounted as Z, onBeforeUnmount as fe, openBlock as o, createElementBlock as r, normalizeClass as J, normalizeStyle as F, createVNode as K, createCommentVNode as g, createBlock as I, unref as y, createSlots as ge, withCtx as _, renderSlot as $, normalizeProps as me, guardReactiveProps as pe, Fragment as C, renderList as w, createElementVNode as n, toDisplayString as L, createTextVNode as Q, nextTick as _e } from "vue";
|
|
2
|
+
import { u as xe, c as ee, t as ke, o as Ce, e as te, g as we, z as $e, f as z, X as le, l as ae, h as se, n as Le, q as ze } from "./index-uOtklCCx.js";
|
|
3
|
+
import { t as Xe, u as Ae } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Se } from "./Title-2iks1ziC.js";
|
|
5
|
+
import { u as Ne, U as Te } from "./usePrinter-B6xQCyL-.js";
|
|
6
|
+
import { D as Pe } from "./DataTable-CwaOlAsy.js";
|
|
7
|
+
import Ge from "./vue-ui-skeleton-BM9rwmxY.js";
|
|
8
|
+
import { L as Me } from "./Legend-CxvJTjEm.js";
|
|
9
|
+
import De from "./vue-ui-accordion-HJPf7My0.js";
|
|
10
|
+
import { u as oe } from "./useNestedProp-BgWkUab_.js";
|
|
11
|
+
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Ie = ["id"], Oe = ["xmlns", "viewBox"], Ve = { key: 0 }, Ee = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], We = { key: 1 }, He = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Be = { key: 2 }, Ue = ["x", "y", "font-size", "fill", "font-weight"], je = ["x", "y", "font-size", "fill"], qe = { key: 3 }, Ye = ["x", "y", "font-size", "fill", "font-weight"], Ze = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], et = ["id"], tt = ["stop-color"], lt = ["stop-color"], at = ["stop-color"], st = ["id"], ot = ["stop-color"], rt = ["stop-color"], nt = ["id"], ut = ["stop-color"], it = ["stop-color"], ct = { key: 0 }, dt = ["d", "fill"], vt = { key: 1 }, ht = ["x", "y", "height", "width", "fill"], yt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ft = { key: 2 }, gt = ["x", "y", "fill", "font-size"], mt = { key: 3 }, pt = ["x", "y", "fill", "font-size"], _t = ["xmlns", "height", "width"], xt = ["fill"], kt = ["innerHTML"], Ct = {
|
|
13
|
+
__name: "vue-ui-dumbbell",
|
|
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: ["selectDatapoint"],
|
|
29
|
+
setup(re, { expose: ne, emit: wt }) {
|
|
30
|
+
const p = re, { vue_ui_dumbbell: ue } = xe(), X = m({
|
|
31
|
+
get() {
|
|
32
|
+
return !!p.dataset && p.dataset.length;
|
|
33
|
+
},
|
|
34
|
+
set(l) {
|
|
35
|
+
return l;
|
|
36
|
+
}
|
|
37
|
+
}), d = f(ee()), E = f(0), S = f(null), W = f(null), H = f(null), e = m(() => {
|
|
38
|
+
const l = oe({
|
|
39
|
+
userConfig: p.config,
|
|
40
|
+
defaultConfig: ue
|
|
41
|
+
});
|
|
42
|
+
return l.theme ? {
|
|
43
|
+
...oe({
|
|
44
|
+
userConfig: ke.vue_ui_dumbbell[l.theme] || p.config,
|
|
45
|
+
defaultConfig: l
|
|
46
|
+
})
|
|
47
|
+
} : l;
|
|
48
|
+
}), N = f(null);
|
|
49
|
+
Z(() => {
|
|
50
|
+
if (Ce(p.dataset) ? te({
|
|
51
|
+
componentName: "VueUiDumbbell",
|
|
52
|
+
type: "dataset"
|
|
53
|
+
}) : p.dataset.forEach((l, u) => {
|
|
54
|
+
we({
|
|
55
|
+
datasetObject: l,
|
|
56
|
+
requiredAttributes: ["name", "start", "end"]
|
|
57
|
+
}).forEach((t) => {
|
|
58
|
+
X.value = !1, te({
|
|
59
|
+
componentName: "VueUiDumbbell",
|
|
60
|
+
type: "datasetSerieAttribute",
|
|
61
|
+
property: t,
|
|
62
|
+
index: u
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}), e.value.responsive) {
|
|
66
|
+
const l = Xe(() => {
|
|
67
|
+
const { width: u, height: t } = Ae({
|
|
68
|
+
chart: S.value,
|
|
69
|
+
title: e.value.style.chart.title.text ? W.value : null,
|
|
70
|
+
legend: e.value.style.chart.legend.show ? H.value : null
|
|
71
|
+
});
|
|
72
|
+
P.value = u, v.value = t / p.dataset.length, h.value = G();
|
|
73
|
+
});
|
|
74
|
+
N.value = new ResizeObserver(l), N.value.observe(S.value.parentNode);
|
|
75
|
+
}
|
|
76
|
+
}), fe(() => {
|
|
77
|
+
N.value && N.value.disconnect();
|
|
78
|
+
});
|
|
79
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: R, generateImage: B } = Ne({
|
|
80
|
+
elementId: `dumbbell_${d.value}`,
|
|
81
|
+
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
82
|
+
}), T = f({
|
|
83
|
+
showTable: e.value.table.show
|
|
84
|
+
}), x = m(() => p.dataset.map((l, u) => ({
|
|
85
|
+
...l,
|
|
86
|
+
id: ee()
|
|
87
|
+
}))), O = m(() => ({
|
|
88
|
+
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
89
|
+
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
90
|
+
})), i = m(() => $e(O.value.min < 0 ? O.value.min : 0, O.value.max, e.value.style.chart.grid.scaleSteps)), v = f(e.value.style.chart.rowHeight), P = f(e.value.style.chart.width), a = m(() => {
|
|
91
|
+
const l = v.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, s = i.value.ticks.length * (P.value / i.value.ticks.length);
|
|
92
|
+
return {
|
|
93
|
+
left: e.value.style.chart.padding.left,
|
|
94
|
+
right: u - e.value.style.chart.padding.right,
|
|
95
|
+
top: e.value.style.chart.padding.top,
|
|
96
|
+
bottom: t - e.value.style.chart.padding.bottom,
|
|
97
|
+
width: P.value,
|
|
98
|
+
height: l * p.dataset.length,
|
|
99
|
+
rowHeight: l,
|
|
100
|
+
absoluteHeight: t,
|
|
101
|
+
absoluteWidth: u,
|
|
102
|
+
widthPlotReference: s
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
function G() {
|
|
106
|
+
return x.value.map((l, u) => {
|
|
107
|
+
const t = a.value.left + (l.start + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, s = a.value.left + (l.end + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, c = t + (s - t) / 2;
|
|
108
|
+
return {
|
|
109
|
+
...l,
|
|
110
|
+
startX: t,
|
|
111
|
+
endX: s,
|
|
112
|
+
centerX: c,
|
|
113
|
+
y: a.value.top + u * v.value + v.value / 2,
|
|
114
|
+
endVal: l.start
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
const h = f([]), U = f(null), de = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
119
|
+
Z(() => {
|
|
120
|
+
h.value = G();
|
|
121
|
+
let l = h.value.map((t) => t.start).reduce((t, s) => t + s, 0);
|
|
122
|
+
function u() {
|
|
123
|
+
const t = x.value.map((s) => s.end - s.start);
|
|
124
|
+
l >= de.value ? (cancelAnimationFrame(U.value), h.value = G()) : (h.value = h.value.map((s, c) => {
|
|
125
|
+
s.endVal += t[c] * (e.value.animationSpeed / 100);
|
|
126
|
+
const b = a.value.left + (s.start + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, D = a.value.left + (s.endVal + Math.abs(i.value.min)) / (i.value.max + Math.abs(i.value.min)) * a.value.widthPlotReference, V = b + (D - b) / 2;
|
|
127
|
+
return {
|
|
128
|
+
...s,
|
|
129
|
+
startX: b,
|
|
130
|
+
endX: D,
|
|
131
|
+
centerX: V,
|
|
132
|
+
y: a.value.top + c * v.value + v.value / 2,
|
|
133
|
+
endVal: s.endVal
|
|
134
|
+
};
|
|
135
|
+
}), l = h.value.map((s) => s.endVal).reduce((s, c) => s + c, 0), U.value = requestAnimationFrame(u));
|
|
136
|
+
}
|
|
137
|
+
e.value.useAnimation ? u() : h.value = G();
|
|
138
|
+
});
|
|
139
|
+
const j = m(() => [
|
|
140
|
+
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${d.value})` : e.value.style.chart.plots.startColor },
|
|
141
|
+
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${d.value})` : e.value.style.chart.plots.endColor }
|
|
142
|
+
]), ve = m(() => ({
|
|
143
|
+
cy: "donut-div-legend",
|
|
144
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
145
|
+
color: e.value.style.chart.legend.color,
|
|
146
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
147
|
+
paddingBottom: 12,
|
|
148
|
+
paddingTop: 12,
|
|
149
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
150
|
+
})), k = m(() => {
|
|
151
|
+
const l = h.value.map((t) => ({
|
|
152
|
+
name: t.name
|
|
153
|
+
})), u = h.value.map((t) => ({
|
|
154
|
+
start: t.start,
|
|
155
|
+
end: t.end
|
|
156
|
+
}));
|
|
157
|
+
return { head: l, body: u };
|
|
158
|
+
}), M = m(() => {
|
|
159
|
+
const l = [
|
|
160
|
+
e.value.table.columnNames.series,
|
|
161
|
+
e.value.table.columnNames.start,
|
|
162
|
+
e.value.table.columnNames.end,
|
|
163
|
+
e.value.table.columnNames.progression
|
|
164
|
+
], u = k.value.head.map((c, b) => {
|
|
165
|
+
const D = z({
|
|
166
|
+
p: e.value.style.chart.labels.prefix,
|
|
167
|
+
v: k.value.body[b].start,
|
|
168
|
+
s: e.value.style.chart.labels.suffix,
|
|
169
|
+
r: e.value.table.td.roundingValue
|
|
170
|
+
}), V = z({
|
|
171
|
+
p: e.value.style.chart.labels.prefix,
|
|
172
|
+
v: k.value.body[b].end,
|
|
173
|
+
s: e.value.style.chart.labels.suffix,
|
|
174
|
+
r: e.value.table.td.roundingValue
|
|
175
|
+
}), be = z({
|
|
176
|
+
v: 100 * (k.value.body[b].end / k.value.body[b].start - 1),
|
|
177
|
+
s: "%",
|
|
178
|
+
r: e.value.table.td.roundingPercentage
|
|
179
|
+
});
|
|
180
|
+
return [
|
|
181
|
+
{ name: c.name },
|
|
182
|
+
D,
|
|
183
|
+
V,
|
|
184
|
+
be
|
|
185
|
+
];
|
|
186
|
+
}), t = {
|
|
187
|
+
th: {
|
|
188
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
189
|
+
color: e.value.table.th.color,
|
|
190
|
+
outline: e.value.table.th.outline
|
|
191
|
+
},
|
|
192
|
+
td: {
|
|
193
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
194
|
+
color: e.value.table.td.color,
|
|
195
|
+
outline: e.value.table.td.outline
|
|
196
|
+
},
|
|
197
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
198
|
+
};
|
|
199
|
+
return {
|
|
200
|
+
colNames: [
|
|
201
|
+
e.value.table.columnNames.series,
|
|
202
|
+
e.value.table.columnNames.start,
|
|
203
|
+
e.value.table.columnNames.end,
|
|
204
|
+
e.value.table.columnNames.progression
|
|
205
|
+
],
|
|
206
|
+
head: l,
|
|
207
|
+
body: u,
|
|
208
|
+
config: t
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
function q() {
|
|
212
|
+
_e(() => {
|
|
213
|
+
const l = k.value.head.map((s, c) => [[
|
|
214
|
+
s.name
|
|
215
|
+
], [k.value.body[c].start], [k.value.body[c].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = Le(u);
|
|
216
|
+
ze({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
const A = f(!1);
|
|
220
|
+
function he(l) {
|
|
221
|
+
A.value = l, E.value += 1;
|
|
222
|
+
}
|
|
223
|
+
function ye() {
|
|
224
|
+
return h.value;
|
|
225
|
+
}
|
|
226
|
+
function Y() {
|
|
227
|
+
T.value.showTable = !T.value.showTable;
|
|
228
|
+
}
|
|
229
|
+
return ne({
|
|
230
|
+
getData: ye,
|
|
231
|
+
generatePdf: R,
|
|
232
|
+
generateCsv: q,
|
|
233
|
+
generateImage: B,
|
|
234
|
+
toggleTable: Y
|
|
235
|
+
}), (l, u) => (o(), r("div", {
|
|
236
|
+
ref_key: "dumbbellChart",
|
|
237
|
+
ref: S,
|
|
238
|
+
class: J(`vue-ui-dumbbell ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
239
|
+
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};${e.value.responsive ? "height:100%" : ""}`),
|
|
240
|
+
id: `dumbbell_${d.value}`
|
|
241
|
+
}, [
|
|
242
|
+
e.value.style.chart.title.text ? (o(), r("div", {
|
|
243
|
+
key: 0,
|
|
244
|
+
ref_key: "chartTitle",
|
|
245
|
+
ref: W,
|
|
246
|
+
style: F(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
247
|
+
}, [
|
|
248
|
+
K(Se, {
|
|
249
|
+
config: {
|
|
250
|
+
title: {
|
|
251
|
+
cy: "donut-div-title",
|
|
252
|
+
...e.value.style.chart.title
|
|
253
|
+
},
|
|
254
|
+
subtitle: {
|
|
255
|
+
cy: "donut-div-subtitle",
|
|
256
|
+
...e.value.style.chart.title.subtitle
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}, null, 8, ["config"])
|
|
260
|
+
], 4)) : g("", !0),
|
|
261
|
+
e.value.userOptions.show && X.value ? (o(), I(Te, {
|
|
262
|
+
ref: "details",
|
|
263
|
+
key: `user_option_${E.value}`,
|
|
264
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
265
|
+
color: e.value.style.chart.color,
|
|
266
|
+
isPrinting: y(ie),
|
|
267
|
+
isImaging: y(ce),
|
|
268
|
+
uid: d.value,
|
|
269
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
270
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
271
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
272
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
273
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
274
|
+
isFullscreen: A.value,
|
|
275
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
276
|
+
chartElement: S.value,
|
|
277
|
+
onToggleFullscreen: he,
|
|
278
|
+
onGeneratePdf: y(R),
|
|
279
|
+
onGenerateCsv: q,
|
|
280
|
+
onGenerateImage: y(B),
|
|
281
|
+
onToggleTable: Y
|
|
282
|
+
}, ge({ _: 2 }, [
|
|
283
|
+
l.$slots.optionPdf ? {
|
|
284
|
+
name: "optionPdf",
|
|
285
|
+
fn: _(() => [
|
|
286
|
+
$(l.$slots, "optionPdf", {}, void 0, !0)
|
|
287
|
+
]),
|
|
288
|
+
key: "0"
|
|
289
|
+
} : void 0,
|
|
290
|
+
l.$slots.optionCsv ? {
|
|
291
|
+
name: "optionCsv",
|
|
292
|
+
fn: _(() => [
|
|
293
|
+
$(l.$slots, "optionCsv", {}, void 0, !0)
|
|
294
|
+
]),
|
|
295
|
+
key: "1"
|
|
296
|
+
} : void 0,
|
|
297
|
+
l.$slots.optionImg ? {
|
|
298
|
+
name: "optionImg",
|
|
299
|
+
fn: _(() => [
|
|
300
|
+
$(l.$slots, "optionImg", {}, void 0, !0)
|
|
301
|
+
]),
|
|
302
|
+
key: "2"
|
|
303
|
+
} : void 0,
|
|
304
|
+
l.$slots.optionTable ? {
|
|
305
|
+
name: "optionTable",
|
|
306
|
+
fn: _(() => [
|
|
307
|
+
$(l.$slots, "optionTable", {}, void 0, !0)
|
|
308
|
+
]),
|
|
309
|
+
key: "3"
|
|
310
|
+
} : void 0,
|
|
311
|
+
l.$slots.optionFullscreen ? {
|
|
312
|
+
name: "optionFullscreen",
|
|
313
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
314
|
+
$(l.$slots, "optionFullscreen", me(pe({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
315
|
+
]),
|
|
316
|
+
key: "4"
|
|
317
|
+
} : void 0
|
|
318
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
319
|
+
X.value ? (o(), r("svg", {
|
|
320
|
+
key: 2,
|
|
321
|
+
xmlns: y(le),
|
|
322
|
+
class: J({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
323
|
+
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
324
|
+
style: F(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
325
|
+
}, [
|
|
326
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", Ve, [
|
|
327
|
+
(o(!0), r(C, null, w(i.value.ticks, (t, s) => (o(), r("line", {
|
|
328
|
+
x1: a.value.left + s * a.value.width / (i.value.ticks.length - 1),
|
|
329
|
+
x2: a.value.left + s * a.value.width / (i.value.ticks.length - 1),
|
|
330
|
+
y1: a.value.top,
|
|
331
|
+
y2: a.value.bottom,
|
|
332
|
+
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
333
|
+
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
334
|
+
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
335
|
+
}, null, 8, Ee))), 256))
|
|
336
|
+
])) : g("", !0),
|
|
337
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", We, [
|
|
338
|
+
(o(!0), r(C, null, w(x.value, (t, s) => (o(), r("line", {
|
|
339
|
+
x1: a.value.left,
|
|
340
|
+
x2: a.value.right,
|
|
341
|
+
y1: a.value.top + s * v.value,
|
|
342
|
+
y2: a.value.top + s * v.value,
|
|
343
|
+
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
344
|
+
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
345
|
+
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
346
|
+
}, null, 8, He))), 256)),
|
|
347
|
+
n("line", {
|
|
348
|
+
x1: a.value.left,
|
|
349
|
+
x2: a.value.right,
|
|
350
|
+
y1: a.value.bottom,
|
|
351
|
+
y2: a.value.bottom,
|
|
352
|
+
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
353
|
+
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
354
|
+
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
355
|
+
}, null, 8, Re)
|
|
356
|
+
])) : g("", !0),
|
|
357
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", Be, [
|
|
358
|
+
(o(!0), r(C, null, w(x.value, (t, s) => (o(), r("text", {
|
|
359
|
+
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
360
|
+
y: a.value.top + s * v.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? v.value / 3 : v.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
361
|
+
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
362
|
+
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
363
|
+
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
364
|
+
"text-anchor": "end"
|
|
365
|
+
}, L(t.name), 9, Ue))), 256)),
|
|
366
|
+
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(C, { key: 0 }, w(x.value, (t, s) => (o(), r("text", {
|
|
367
|
+
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
368
|
+
y: a.value.top + s * v.value + v.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
369
|
+
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
370
|
+
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
371
|
+
"text-anchor": "end"
|
|
372
|
+
}, L(y(z)({
|
|
373
|
+
v: 100 * (t.end / t.start - 1),
|
|
374
|
+
s: "%",
|
|
375
|
+
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
376
|
+
})), 9, je))), 256)) : g("", !0)
|
|
377
|
+
])) : g("", !0),
|
|
378
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", qe, [
|
|
379
|
+
(o(!0), r(C, null, w(i.value.ticks, (t, s) => (o(), r("text", {
|
|
380
|
+
x: a.value.left + s * (a.value.width / (i.value.ticks.length - 1)),
|
|
381
|
+
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
382
|
+
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
383
|
+
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
384
|
+
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
385
|
+
"text-anchor": "middle"
|
|
386
|
+
}, L(y(z)({
|
|
387
|
+
p: e.value.style.chart.labels.prefix,
|
|
388
|
+
v: t,
|
|
389
|
+
s: e.value.style.chart.labels.suffix,
|
|
390
|
+
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
391
|
+
})), 9, Ye))), 256))
|
|
392
|
+
])) : g("", !0),
|
|
393
|
+
n("defs", null, [
|
|
394
|
+
n("radialGradient", {
|
|
395
|
+
id: `start_grad_${d.value}`,
|
|
396
|
+
fy: "30%"
|
|
397
|
+
}, [
|
|
398
|
+
n("stop", {
|
|
399
|
+
offset: "10%",
|
|
400
|
+
"stop-color": y(ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
401
|
+
}, null, 8, Je),
|
|
402
|
+
n("stop", {
|
|
403
|
+
offset: "90%",
|
|
404
|
+
"stop-color": y(se)(e.value.style.chart.plots.startColor, 0.1)
|
|
405
|
+
}, null, 8, Ke),
|
|
406
|
+
n("stop", {
|
|
407
|
+
offset: "100%",
|
|
408
|
+
"stop-color": e.value.style.chart.plots.startColor
|
|
409
|
+
}, null, 8, Qe)
|
|
410
|
+
], 8, Ze),
|
|
411
|
+
n("radialGradient", {
|
|
412
|
+
id: `end_grad_${d.value}`,
|
|
413
|
+
fy: "30%"
|
|
414
|
+
}, [
|
|
415
|
+
n("stop", {
|
|
416
|
+
offset: "10%",
|
|
417
|
+
"stop-color": y(ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
418
|
+
}, null, 8, tt),
|
|
419
|
+
n("stop", {
|
|
420
|
+
offset: "90%",
|
|
421
|
+
"stop-color": y(se)(e.value.style.chart.plots.endColor, 0.1)
|
|
422
|
+
}, null, 8, lt),
|
|
423
|
+
n("stop", {
|
|
424
|
+
offset: "100%",
|
|
425
|
+
"stop-color": e.value.style.chart.plots.endColor
|
|
426
|
+
}, null, 8, at)
|
|
427
|
+
], 8, et)
|
|
428
|
+
]),
|
|
429
|
+
(o(!0), r(C, null, w(h.value, (t, s) => (o(), r("g", null, [
|
|
430
|
+
n("defs", null, [
|
|
431
|
+
n("linearGradient", {
|
|
432
|
+
id: `grad_positive_${d.value}`,
|
|
433
|
+
x1: "0%",
|
|
434
|
+
x2: "100%",
|
|
435
|
+
y1: "0%",
|
|
436
|
+
y2: "0%"
|
|
437
|
+
}, [
|
|
438
|
+
n("stop", {
|
|
439
|
+
offset: "0%",
|
|
440
|
+
"stop-color": e.value.style.chart.plots.startColor
|
|
441
|
+
}, null, 8, ot),
|
|
442
|
+
n("stop", {
|
|
443
|
+
offset: "100%",
|
|
444
|
+
"stop-color": e.value.style.chart.plots.endColor
|
|
445
|
+
}, null, 8, rt)
|
|
446
|
+
], 8, st),
|
|
447
|
+
n("linearGradient", {
|
|
448
|
+
id: `grad_negative_${d.value}`,
|
|
449
|
+
x1: "0%",
|
|
450
|
+
x2: "100%",
|
|
451
|
+
y1: "0%",
|
|
452
|
+
y2: "0%"
|
|
453
|
+
}, [
|
|
454
|
+
n("stop", {
|
|
455
|
+
offset: "0%",
|
|
456
|
+
"stop-color": e.value.style.chart.plots.endColor
|
|
457
|
+
}, null, 8, ut),
|
|
458
|
+
n("stop", {
|
|
459
|
+
offset: "100%",
|
|
460
|
+
"stop-color": e.value.style.chart.plots.startColor
|
|
461
|
+
}, null, 8, it)
|
|
462
|
+
], 8, nt)
|
|
463
|
+
]),
|
|
464
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", ct, [
|
|
465
|
+
n("path", {
|
|
466
|
+
d: `M
|
|
467
|
+
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
468
|
+
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
469
|
+
${t.endX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
470
|
+
L ${t.endX},${t.y - e.value.style.chart.plots.radius / 2}
|
|
471
|
+
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
472
|
+
${t.startX},${t.y - e.value.style.chart.plots.radius / 2}
|
|
473
|
+
Z
|
|
474
|
+
`,
|
|
475
|
+
fill: t.endX > t.startX ? `url(#grad_positive_${d.value})` : `url(#grad_negative_${d.value})`
|
|
476
|
+
}, null, 8, dt)
|
|
477
|
+
])) : (o(), r("g", vt, [
|
|
478
|
+
n("rect", {
|
|
479
|
+
x: t.endX > t.startX ? t.startX : t.endX,
|
|
480
|
+
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
481
|
+
height: e.value.style.chart.plots.link.strokeWidth,
|
|
482
|
+
width: Math.abs(t.endX - t.startX),
|
|
483
|
+
fill: t.endX > t.startX ? `url(#grad_positive_${d.value})` : `url(#grad_negative_${d.value})`
|
|
484
|
+
}, null, 8, ht)
|
|
485
|
+
])),
|
|
486
|
+
n("circle", {
|
|
487
|
+
cx: t.startX,
|
|
488
|
+
cy: t.y,
|
|
489
|
+
r: e.value.style.chart.plots.radius,
|
|
490
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${d.value})` : e.value.style.chart.plots.startColor,
|
|
491
|
+
stroke: e.value.style.chart.plots.stroke,
|
|
492
|
+
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
493
|
+
}, null, 8, yt),
|
|
494
|
+
n("circle", {
|
|
495
|
+
cx: t.endX,
|
|
496
|
+
cy: t.y,
|
|
497
|
+
r: e.value.style.chart.plots.radius,
|
|
498
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${d.value})` : e.value.style.chart.plots.endColor,
|
|
499
|
+
stroke: e.value.style.chart.plots.stroke,
|
|
500
|
+
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
501
|
+
}, null, 8, bt),
|
|
502
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", ft, [
|
|
503
|
+
(o(!0), r(C, null, w(h.value, (c, b) => (o(), r("text", {
|
|
504
|
+
x: c.startX,
|
|
505
|
+
y: a.value.top + (b + 1) * v.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
506
|
+
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
507
|
+
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
508
|
+
"text-anchor": "middle"
|
|
509
|
+
}, L(y(z)({
|
|
510
|
+
p: e.value.style.chart.labels.prefix,
|
|
511
|
+
v: c.start,
|
|
512
|
+
s: e.value.style.chart.labels.suffix,
|
|
513
|
+
r: e.value.style.chart.labels.startLabels.rounding
|
|
514
|
+
})), 9, gt))), 256))
|
|
515
|
+
])) : g("", !0),
|
|
516
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", mt, [
|
|
517
|
+
(o(!0), r(C, null, w(h.value, (c, b) => (o(), r("text", {
|
|
518
|
+
x: c.endX,
|
|
519
|
+
y: a.value.top + b * v.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
520
|
+
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
521
|
+
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
522
|
+
"text-anchor": "middle"
|
|
523
|
+
}, L(y(z)({
|
|
524
|
+
p: e.value.style.chart.labels.prefix,
|
|
525
|
+
v: c.end,
|
|
526
|
+
s: e.value.style.chart.labels.suffix,
|
|
527
|
+
r: e.value.style.chart.labels.endLabels.rounding
|
|
528
|
+
})), 9, pt))), 256))
|
|
529
|
+
])) : g("", !0)
|
|
530
|
+
]))), 256)),
|
|
531
|
+
$(l.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
532
|
+
], 14, Oe)) : g("", !0),
|
|
533
|
+
X.value ? g("", !0) : (o(), I(Ge, {
|
|
534
|
+
key: 3,
|
|
535
|
+
config: {
|
|
536
|
+
type: "dumbbell",
|
|
537
|
+
style: {
|
|
538
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
539
|
+
dumbbell: {
|
|
540
|
+
color: "#CCCCCC"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}, null, 8, ["config"])),
|
|
545
|
+
n("div", {
|
|
546
|
+
ref_key: "chartLegend",
|
|
547
|
+
ref: H
|
|
548
|
+
}, [
|
|
549
|
+
e.value.style.chart.legend.show && X.value ? (o(), I(Me, {
|
|
550
|
+
key: 0,
|
|
551
|
+
legendSet: j.value,
|
|
552
|
+
config: ve.value
|
|
553
|
+
}, {
|
|
554
|
+
item: _(({ legend: t }) => [
|
|
555
|
+
n("div", {
|
|
556
|
+
style: F(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
557
|
+
}, [
|
|
558
|
+
(o(), r("svg", {
|
|
559
|
+
xmlns: y(le),
|
|
560
|
+
viewBox: "0 0 20 20",
|
|
561
|
+
height: e.value.style.chart.legend.fontSize,
|
|
562
|
+
width: e.value.style.chart.legend.fontSize
|
|
563
|
+
}, [
|
|
564
|
+
n("circle", {
|
|
565
|
+
cx: 10,
|
|
566
|
+
cy: 10,
|
|
567
|
+
r: 9,
|
|
568
|
+
fill: t.color
|
|
569
|
+
}, null, 8, xt)
|
|
570
|
+
], 8, _t)),
|
|
571
|
+
Q(" " + L(t.name), 1)
|
|
572
|
+
], 4)
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
}, 8, ["legendSet", "config"])) : $(l.$slots, "legend", {
|
|
576
|
+
key: 1,
|
|
577
|
+
legend: j.value
|
|
578
|
+
}, void 0, !0)
|
|
579
|
+
], 512),
|
|
580
|
+
X.value ? (o(), I(De, {
|
|
581
|
+
key: 4,
|
|
582
|
+
hideDetails: "",
|
|
583
|
+
config: {
|
|
584
|
+
open: T.value.showTable,
|
|
585
|
+
maxHeight: 1e4,
|
|
586
|
+
body: {
|
|
587
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
588
|
+
color: e.value.style.chart.color
|
|
589
|
+
},
|
|
590
|
+
head: {
|
|
591
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
592
|
+
color: e.value.style.chart.color
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}, {
|
|
596
|
+
content: _(() => [
|
|
597
|
+
K(Pe, {
|
|
598
|
+
colNames: M.value.colNames,
|
|
599
|
+
head: M.value.head,
|
|
600
|
+
body: M.value.body,
|
|
601
|
+
config: M.value.config,
|
|
602
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
603
|
+
onClose: u[0] || (u[0] = (t) => T.value.showTable = !1)
|
|
604
|
+
}, {
|
|
605
|
+
th: _(({ th: t }) => [
|
|
606
|
+
n("div", {
|
|
607
|
+
innerHTML: t,
|
|
608
|
+
style: { display: "flex", "align-items": "center" }
|
|
609
|
+
}, null, 8, kt)
|
|
610
|
+
]),
|
|
611
|
+
td: _(({ td: t }) => [
|
|
612
|
+
Q(L(t.name || t), 1)
|
|
613
|
+
]),
|
|
614
|
+
_: 1
|
|
615
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
}, 8, ["config"])) : g("", !0)
|
|
619
|
+
], 14, Ie));
|
|
620
|
+
}
|
|
621
|
+
}, Dt = /* @__PURE__ */ Fe(Ct, [["__scopeId", "data-v-576f289b"]]);
|
|
622
|
+
export {
|
|
623
|
+
Dt as default
|
|
624
|
+
};
|