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,618 @@
|
|
|
1
|
+
import { computed as d, ref as c, onMounted as Te, onBeforeUnmount as Le, openBlock as s, createElementBlock as i, normalizeClass as O, normalizeStyle as V, createVNode as q, createCommentVNode as v, createBlock as B, unref as m, createSlots as Se, withCtx as y, renderSlot as g, normalizeProps as Y, guardReactiveProps as K, Fragment as b, renderList as C, createElementVNode as x, toDisplayString as $, mergeProps as Pe, createTextVNode as ze, nextTick as Ae } from "vue";
|
|
2
|
+
import { u as Ne, c as Q, t as Oe, a as Fe, p as T, o as We, e as Z, g as ve, b as Me, d as he, z as Ie, f as H, X as De, l as Ge, h as Ee, v as de, w as Ve, n as Be, q as He, B as Re } from "./index-BMCvLyab.js";
|
|
3
|
+
import { t as Ue, u as Xe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as je } from "./Title-BNPZwnkp.js";
|
|
5
|
+
import { u as Je, U as qe } from "./usePrinter-BuuBz5JR.js";
|
|
6
|
+
import { _ as Ye } from "./Tooltip-ZnJAz6dl.js";
|
|
7
|
+
import { D as Ke } from "./DataTable-CaB7GIwQ.js";
|
|
8
|
+
import Qe from "./vue-ui-skeleton-BisWX1sO.js";
|
|
9
|
+
import { _ as Ze } from "./Shape-CQT4S7N-.js";
|
|
10
|
+
import et from "./vue-ui-accordion-CLlVxx3Q.js";
|
|
11
|
+
import { u as pe } from "./useNestedProp-CkP8xhG_.js";
|
|
12
|
+
import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = { key: 0 }, rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ut = { key: 1 }, it = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vt = ["x", "y", "fill", "font-size"], ht = ["x", "y", "font-size", "fill"], dt = ["fill", "font-size", "transform"], pt = ["fill", "font-size", "x", "y"], yt = ["x1", "x2", "y1", "y2", "stroke"], ft = ["cx", "cy", "fill"], bt = ["cx", "cy", "fill"], mt = ["id"], gt = ["stop-color"], xt = ["stop-color"], kt = ["stop-color"], Ct = { key: 0 }, wt = ["x", "y", "font-size", "fill"], _t = ["innerHTML"], $t = {
|
|
14
|
+
__name: "vue-ui-strip-plot",
|
|
15
|
+
props: {
|
|
16
|
+
config: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default() {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
dataset: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default() {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["selectDatapoint"],
|
|
30
|
+
setup(ye, { expose: fe, emit: be }) {
|
|
31
|
+
const f = ye, { vue_ui_strip_plot: me } = Ne(), w = d({
|
|
32
|
+
get() {
|
|
33
|
+
return !!f.dataset && f.dataset.length;
|
|
34
|
+
},
|
|
35
|
+
set(t) {
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
}), R = c(Q()), ee = c(0), U = c(!1), X = c(""), P = c(null), te = c(null), le = c(!1), e = d(() => {
|
|
39
|
+
const t = pe({
|
|
40
|
+
userConfig: f.config,
|
|
41
|
+
defaultConfig: me
|
|
42
|
+
});
|
|
43
|
+
return t.theme ? {
|
|
44
|
+
...pe({
|
|
45
|
+
userConfig: Oe.vue_ui_strip_plot[t.theme] || f.config,
|
|
46
|
+
defaultConfig: t
|
|
47
|
+
}),
|
|
48
|
+
customPalette: Fe[t.theme] || T
|
|
49
|
+
} : t;
|
|
50
|
+
}), F = c(null);
|
|
51
|
+
Te(() => {
|
|
52
|
+
if (We(f.dataset) ? Z({
|
|
53
|
+
componentName: "VueUiStripPlot",
|
|
54
|
+
type: "dataset"
|
|
55
|
+
}) : f.dataset.forEach((t, o) => {
|
|
56
|
+
ve({
|
|
57
|
+
datasetObject: t,
|
|
58
|
+
requiredAttributes: ["name", "plots"]
|
|
59
|
+
}).forEach((l) => {
|
|
60
|
+
w.value = !1, Z({
|
|
61
|
+
componentName: "VueUiStripPlot",
|
|
62
|
+
type: "datasetSerieAttribute",
|
|
63
|
+
property: l,
|
|
64
|
+
index: o
|
|
65
|
+
});
|
|
66
|
+
}), t.plots && t.plots.forEach((l, r) => {
|
|
67
|
+
ve({
|
|
68
|
+
datasetObject: l,
|
|
69
|
+
requiredAttributes: ["name", "value"]
|
|
70
|
+
}).forEach((u) => {
|
|
71
|
+
w.value = !1, Z({
|
|
72
|
+
componentName: "VueUiStripPlot",
|
|
73
|
+
type: "datasetSerieAttribute",
|
|
74
|
+
property: u,
|
|
75
|
+
index: `${o},${r}`
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}), e.value.responsive) {
|
|
80
|
+
const t = Ue(() => {
|
|
81
|
+
const { width: o, height: l } = Xe({
|
|
82
|
+
chart: P.value,
|
|
83
|
+
title: e.value.style.chart.title.text ? te.value : null
|
|
84
|
+
});
|
|
85
|
+
W.value = l, L.value.width = o, L.value.height = l, A.value = (o - p.value.left - p.value.right) / f.dataset.length, M.value = Re({
|
|
86
|
+
relator: Math.min(l, o),
|
|
87
|
+
adjuster: 600,
|
|
88
|
+
source: e.value.style.chart.plots.radius,
|
|
89
|
+
threshold: 6,
|
|
90
|
+
fallback: 6
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
F.value = new ResizeObserver(t), F.value.observe(P.value.parentNode);
|
|
94
|
+
}
|
|
95
|
+
le.value = !0, setTimeout(() => {
|
|
96
|
+
z.value = !1;
|
|
97
|
+
}, ke.value * 50);
|
|
98
|
+
}), Le(() => {
|
|
99
|
+
F.value && F.value.disconnect();
|
|
100
|
+
});
|
|
101
|
+
const { isPrinting: ge, isImaging: xe, generatePdf: ae, generateImage: oe } = Je({
|
|
102
|
+
elementId: `strip-plot_${R.value}`,
|
|
103
|
+
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot"
|
|
104
|
+
}), se = d(() => Me(e.value.customPalette)), z = c(e.value.useCssAnimation), h = c({
|
|
105
|
+
showTable: e.value.table.show,
|
|
106
|
+
dataLabels: {
|
|
107
|
+
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
108
|
+
},
|
|
109
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
110
|
+
}), p = c({
|
|
111
|
+
top: e.value.style.chart.padding.top,
|
|
112
|
+
bottom: e.value.style.chart.padding.bottom,
|
|
113
|
+
left: e.value.style.chart.padding.left,
|
|
114
|
+
right: e.value.style.chart.padding.right
|
|
115
|
+
}), A = c(e.value.style.chart.stripWidth), W = c(e.value.style.chart.height), M = c(e.value.style.chart.plots.radius), L = c({
|
|
116
|
+
width: A.value * f.dataset.length + p.value.left + p.value.right,
|
|
117
|
+
height: e.value.style.chart.height
|
|
118
|
+
}), a = d(() => {
|
|
119
|
+
const t = A.value * f.dataset.length + p.value.left + p.value.right;
|
|
120
|
+
return {
|
|
121
|
+
left: p.value.left,
|
|
122
|
+
right: t - p.value.right,
|
|
123
|
+
top: p.value.top,
|
|
124
|
+
bottom: W.value - p.value.bottom,
|
|
125
|
+
width: A.value * f.dataset.length,
|
|
126
|
+
height: W.value - p.value.top - p.value.bottom,
|
|
127
|
+
stripWidth: A.value,
|
|
128
|
+
absoluteHeight: W.value,
|
|
129
|
+
absoluteWidth: t
|
|
130
|
+
};
|
|
131
|
+
}), I = d(() => w.value ? f.dataset.map((t, o) => {
|
|
132
|
+
const l = Q();
|
|
133
|
+
return {
|
|
134
|
+
...t,
|
|
135
|
+
id: l,
|
|
136
|
+
color: t.color ? he(t.color) : se.value[o] || T[o] || T[o % T.length],
|
|
137
|
+
plots: t.plots.map((r) => ({
|
|
138
|
+
...r,
|
|
139
|
+
parentId: l,
|
|
140
|
+
color: t.color ? he(t.color) : se.value[o] || T[o] || T[o % T.length],
|
|
141
|
+
id: Q()
|
|
142
|
+
})).sort((r, u) => r.value - u.value)
|
|
143
|
+
};
|
|
144
|
+
}) : null), k = d(() => (I.value || []).map((t, o) => ({
|
|
145
|
+
...t,
|
|
146
|
+
plots: t.plots.map((l) => ({
|
|
147
|
+
...l,
|
|
148
|
+
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
149
|
+
}))
|
|
150
|
+
}))), ke = d(() => Math.max(...k.value.map((t) => t.plots.length))), j = d(() => {
|
|
151
|
+
const t = k.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
152
|
+
return {
|
|
153
|
+
max: Math.max(...t),
|
|
154
|
+
min: Math.min(...t)
|
|
155
|
+
};
|
|
156
|
+
}), _ = d(() => Ie(j.value.min < 0 ? j.value.min : 0, j.value.max, e.value.style.chart.grid.scaleSteps)), Ce = d(() => (k.value || []).map((t, o) => ({
|
|
157
|
+
...t,
|
|
158
|
+
plots: t.plots.map((l) => ({
|
|
159
|
+
...l,
|
|
160
|
+
y: a.value.bottom - (l.value + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min)) * a.value.height
|
|
161
|
+
}))
|
|
162
|
+
}))), re = d(() => _.value.ticks.map((t) => ({
|
|
163
|
+
y: a.value.bottom - a.value.height * ((t + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min))),
|
|
164
|
+
x1: a.value.left,
|
|
165
|
+
x2: a.value.right,
|
|
166
|
+
value: t
|
|
167
|
+
}))), J = c(null), n = c(null);
|
|
168
|
+
function we({ datapoint: t, seriesIndex: o }) {
|
|
169
|
+
J.value = { datapoint: t, seriesIndex: o, config: e.value, series: I.value }, U.value = !0, n.value = t;
|
|
170
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
171
|
+
if (de(l) && Ve(() => l({
|
|
172
|
+
seriesIndex: o,
|
|
173
|
+
datapoint: t,
|
|
174
|
+
series: I.value,
|
|
175
|
+
config: e.value
|
|
176
|
+
})))
|
|
177
|
+
X.value = l({
|
|
178
|
+
seriesIndex: o,
|
|
179
|
+
datapoint: t,
|
|
180
|
+
series: I.value,
|
|
181
|
+
config: e.value
|
|
182
|
+
});
|
|
183
|
+
else {
|
|
184
|
+
let r = "";
|
|
185
|
+
r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, r += `<div>${H({
|
|
186
|
+
p: e.value.style.chart.labels.prefix,
|
|
187
|
+
v: t.value,
|
|
188
|
+
s: e.value.style.chart.labels.suffix,
|
|
189
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
190
|
+
})}</div>`, X.value = `<div>${r}</div>`;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const D = d(() => {
|
|
194
|
+
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, u) => u.value - r.value).map((r) => ({
|
|
195
|
+
name: `${l.name} - ${r.name}`,
|
|
196
|
+
color: r.color
|
|
197
|
+
}))), o = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, u) => u.value - r.value).map((r) => r.value));
|
|
198
|
+
return { head: t, body: o };
|
|
199
|
+
});
|
|
200
|
+
function ue() {
|
|
201
|
+
Ae(() => {
|
|
202
|
+
const t = D.value.head.map((r, u) => [[
|
|
203
|
+
r.name
|
|
204
|
+
], [D.value.body[u]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(t), l = Be(o);
|
|
205
|
+
He({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
const G = d(() => {
|
|
209
|
+
const t = [
|
|
210
|
+
e.value.table.columnNames.series,
|
|
211
|
+
e.value.table.columnNames.value
|
|
212
|
+
], o = D.value.head.map((u, S) => {
|
|
213
|
+
const E = H({
|
|
214
|
+
p: e.value.style.chart.labels.prefix,
|
|
215
|
+
v: D.value.body[S],
|
|
216
|
+
s: e.value.style.chart.labels.suffix,
|
|
217
|
+
r: e.value.table.td.roundingValue
|
|
218
|
+
});
|
|
219
|
+
return [
|
|
220
|
+
{
|
|
221
|
+
color: u.color,
|
|
222
|
+
name: u.name
|
|
223
|
+
},
|
|
224
|
+
E
|
|
225
|
+
];
|
|
226
|
+
}), l = {
|
|
227
|
+
th: {
|
|
228
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
229
|
+
color: e.value.table.th.color,
|
|
230
|
+
outline: e.value.table.th.outline
|
|
231
|
+
},
|
|
232
|
+
td: {
|
|
233
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
234
|
+
color: e.value.table.td.color,
|
|
235
|
+
outline: e.value.table.td.outline
|
|
236
|
+
},
|
|
237
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
238
|
+
};
|
|
239
|
+
return {
|
|
240
|
+
colNames: [
|
|
241
|
+
e.value.table.columnNames.series,
|
|
242
|
+
e.value.table.columnNames.value
|
|
243
|
+
],
|
|
244
|
+
head: t,
|
|
245
|
+
body: o,
|
|
246
|
+
config: l
|
|
247
|
+
};
|
|
248
|
+
}), N = c(!1);
|
|
249
|
+
function _e(t) {
|
|
250
|
+
N.value = t, ee.value += 1;
|
|
251
|
+
}
|
|
252
|
+
function $e() {
|
|
253
|
+
return k.value;
|
|
254
|
+
}
|
|
255
|
+
function ie() {
|
|
256
|
+
h.value.showTable = !h.value.showTable;
|
|
257
|
+
}
|
|
258
|
+
function ne() {
|
|
259
|
+
h.value.dataLabels.show = !h.value.dataLabels.show;
|
|
260
|
+
}
|
|
261
|
+
function ce() {
|
|
262
|
+
h.value.showTooltip = !h.value.showTooltip;
|
|
263
|
+
}
|
|
264
|
+
return fe({
|
|
265
|
+
getData: $e,
|
|
266
|
+
generatePdf: ae,
|
|
267
|
+
generateCsv: ue,
|
|
268
|
+
generateImage: oe,
|
|
269
|
+
toggleTable: ie,
|
|
270
|
+
toggleLabels: ne,
|
|
271
|
+
toggleTooltip: ce
|
|
272
|
+
}), (t, o) => (s(), i("div", {
|
|
273
|
+
ref_key: "stripPlotChart",
|
|
274
|
+
ref: P,
|
|
275
|
+
class: O(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
276
|
+
style: V(`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%" : ""}`),
|
|
277
|
+
id: `strip-plot_${R.value}`
|
|
278
|
+
}, [
|
|
279
|
+
e.value.style.chart.title.text ? (s(), i("div", {
|
|
280
|
+
key: 0,
|
|
281
|
+
ref_key: "chartTitle",
|
|
282
|
+
ref: te,
|
|
283
|
+
style: V(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
284
|
+
}, [
|
|
285
|
+
q(je, {
|
|
286
|
+
config: {
|
|
287
|
+
title: {
|
|
288
|
+
cy: "donut-div-title",
|
|
289
|
+
...e.value.style.chart.title
|
|
290
|
+
},
|
|
291
|
+
subtitle: {
|
|
292
|
+
cy: "donut-div-subtitle",
|
|
293
|
+
...e.value.style.chart.title.subtitle
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}, null, 8, ["config"])
|
|
297
|
+
], 4)) : v("", !0),
|
|
298
|
+
e.value.userOptions.show && w.value ? (s(), B(qe, {
|
|
299
|
+
ref: "details",
|
|
300
|
+
key: `user_option_${ee.value}`,
|
|
301
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
302
|
+
color: e.value.style.chart.color,
|
|
303
|
+
isPrinting: m(ge),
|
|
304
|
+
isImaging: m(xe),
|
|
305
|
+
uid: R.value,
|
|
306
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
307
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
308
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
309
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
310
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
311
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
312
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
313
|
+
isTooltip: h.value.showTooltip,
|
|
314
|
+
isFullscreen: N.value,
|
|
315
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
316
|
+
chartElement: P.value,
|
|
317
|
+
onToggleFullscreen: _e,
|
|
318
|
+
onGeneratePdf: m(ae),
|
|
319
|
+
onGenerateCsv: ue,
|
|
320
|
+
onGenerateImage: m(oe),
|
|
321
|
+
onToggleTable: ie,
|
|
322
|
+
onToggleLabels: ne,
|
|
323
|
+
onToggleTooltip: ce
|
|
324
|
+
}, Se({ _: 2 }, [
|
|
325
|
+
t.$slots.optionTooltip ? {
|
|
326
|
+
name: "optionTooltip",
|
|
327
|
+
fn: y(() => [
|
|
328
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
329
|
+
]),
|
|
330
|
+
key: "0"
|
|
331
|
+
} : void 0,
|
|
332
|
+
t.$slots.optionPdf ? {
|
|
333
|
+
name: "optionPdf",
|
|
334
|
+
fn: y(() => [
|
|
335
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
336
|
+
]),
|
|
337
|
+
key: "1"
|
|
338
|
+
} : void 0,
|
|
339
|
+
t.$slots.optionCsv ? {
|
|
340
|
+
name: "optionCsv",
|
|
341
|
+
fn: y(() => [
|
|
342
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
343
|
+
]),
|
|
344
|
+
key: "2"
|
|
345
|
+
} : void 0,
|
|
346
|
+
t.$slots.optionImg ? {
|
|
347
|
+
name: "optionImg",
|
|
348
|
+
fn: y(() => [
|
|
349
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
350
|
+
]),
|
|
351
|
+
key: "3"
|
|
352
|
+
} : void 0,
|
|
353
|
+
t.$slots.optionTable ? {
|
|
354
|
+
name: "optionTable",
|
|
355
|
+
fn: y(() => [
|
|
356
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
357
|
+
]),
|
|
358
|
+
key: "4"
|
|
359
|
+
} : void 0,
|
|
360
|
+
t.$slots.optionLabels ? {
|
|
361
|
+
name: "optionLabels",
|
|
362
|
+
fn: y(() => [
|
|
363
|
+
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
364
|
+
]),
|
|
365
|
+
key: "5"
|
|
366
|
+
} : void 0,
|
|
367
|
+
t.$slots.optionFullscreen ? {
|
|
368
|
+
name: "optionFullscreen",
|
|
369
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
370
|
+
g(t.$slots, "optionFullscreen", Y(K({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
371
|
+
]),
|
|
372
|
+
key: "6"
|
|
373
|
+
} : void 0
|
|
374
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
375
|
+
w.value ? (s(), i("svg", {
|
|
376
|
+
key: 2,
|
|
377
|
+
xmlns: m(De),
|
|
378
|
+
class: O({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
379
|
+
viewBox: `0 0 ${L.value.width <= 0 ? 10 : L.value.width} ${L.value.height <= 0 ? 10 : L.value.height}`,
|
|
380
|
+
style: V(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};`)
|
|
381
|
+
}, [
|
|
382
|
+
e.value.style.chart.grid.show ? (s(), i("g", ot, [
|
|
383
|
+
e.value.style.chart.grid.horizontalGrid.show ? (s(), i("g", st, [
|
|
384
|
+
(s(!0), i(b, null, C(re.value, (l) => (s(), i("line", {
|
|
385
|
+
x1: l.x1,
|
|
386
|
+
x2: l.x2,
|
|
387
|
+
y1: l.y,
|
|
388
|
+
y2: l.y,
|
|
389
|
+
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
390
|
+
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
391
|
+
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
392
|
+
"stroke-linecap": "round"
|
|
393
|
+
}, null, 8, rt))), 256))
|
|
394
|
+
])) : v("", !0),
|
|
395
|
+
e.value.style.chart.grid.verticalGrid.show ? (s(), i("g", ut, [
|
|
396
|
+
(s(!0), i(b, null, C(k.value, (l, r) => (s(), i("line", {
|
|
397
|
+
x1: a.value.left + (r + 1) * a.value.stripWidth,
|
|
398
|
+
x2: a.value.left + (r + 1) * a.value.stripWidth,
|
|
399
|
+
y1: a.value.top,
|
|
400
|
+
y2: a.value.bottom,
|
|
401
|
+
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
402
|
+
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
403
|
+
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
404
|
+
"stroke-linecap": "round"
|
|
405
|
+
}, null, 8, it))), 256))
|
|
406
|
+
])) : v("", !0),
|
|
407
|
+
x("line", {
|
|
408
|
+
x1: a.value.left,
|
|
409
|
+
x2: a.value.left,
|
|
410
|
+
y1: a.value.top,
|
|
411
|
+
y2: a.value.bottom,
|
|
412
|
+
stroke: e.value.style.chart.grid.stroke,
|
|
413
|
+
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
414
|
+
"stroke-linecap": "round"
|
|
415
|
+
}, null, 8, nt),
|
|
416
|
+
x("line", {
|
|
417
|
+
x1: a.value.left,
|
|
418
|
+
x2: a.value.right,
|
|
419
|
+
y1: a.value.bottom,
|
|
420
|
+
y2: a.value.bottom,
|
|
421
|
+
stroke: e.value.style.chart.grid.stroke,
|
|
422
|
+
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
423
|
+
"stroke-linecap": "round"
|
|
424
|
+
}, null, 8, ct)
|
|
425
|
+
])) : v("", !0),
|
|
426
|
+
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), i(b, { key: 1 }, C(re.value, (l) => (s(), i("text", {
|
|
427
|
+
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
428
|
+
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
429
|
+
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
430
|
+
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
431
|
+
"text-anchor": "end"
|
|
432
|
+
}, $(m(H)({
|
|
433
|
+
p: e.value.style.chart.labels.prefix,
|
|
434
|
+
v: l.value,
|
|
435
|
+
s: e.value.style.chart.labels.suffix,
|
|
436
|
+
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
437
|
+
})), 9, vt))), 256)) : v("", !0),
|
|
438
|
+
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), i(b, { key: 2 }, C(k.value, (l, r) => (s(), i("text", {
|
|
439
|
+
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
440
|
+
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
441
|
+
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
442
|
+
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
443
|
+
"text-anchor": "middle"
|
|
444
|
+
}, $(l.name), 9, ht))), 256)) : v("", !0),
|
|
445
|
+
e.value.style.chart.labels.axis.yLabel ? (s(), i("text", {
|
|
446
|
+
key: 3,
|
|
447
|
+
fill: e.value.style.chart.labels.axis.color,
|
|
448
|
+
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
449
|
+
transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
|
|
450
|
+
"text-anchor": "middle"
|
|
451
|
+
}, $(e.value.style.chart.labels.axis.yLabel), 9, dt)) : v("", !0),
|
|
452
|
+
e.value.style.chart.labels.axis.xLabel ? (s(), i("text", {
|
|
453
|
+
key: 4,
|
|
454
|
+
fill: e.value.style.chart.labels.axis.color,
|
|
455
|
+
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
456
|
+
x: a.value.left + a.value.width / 2,
|
|
457
|
+
y: a.value.absoluteHeight,
|
|
458
|
+
"text-anchor": "middle"
|
|
459
|
+
}, $(e.value.style.chart.labels.axis.xLabel), 9, pt)) : v("", !0),
|
|
460
|
+
n.value ? (s(), i(b, { key: 5 }, [
|
|
461
|
+
x("line", {
|
|
462
|
+
x1: a.value.left,
|
|
463
|
+
x2: a.value.right,
|
|
464
|
+
y1: n.value.y,
|
|
465
|
+
y2: n.value.y,
|
|
466
|
+
stroke: n.value.color,
|
|
467
|
+
"stroke-width": 1,
|
|
468
|
+
class: O({ "select-circle": e.value.useCssAnimation })
|
|
469
|
+
}, null, 10, yt),
|
|
470
|
+
x("circle", {
|
|
471
|
+
cx: a.value.left,
|
|
472
|
+
cy: n.value.y,
|
|
473
|
+
r: 3,
|
|
474
|
+
fill: n.value.color,
|
|
475
|
+
class: O({ "select-circle": e.value.useCssAnimation })
|
|
476
|
+
}, null, 10, ft),
|
|
477
|
+
x("circle", {
|
|
478
|
+
cx: a.value.right,
|
|
479
|
+
cy: n.value.y,
|
|
480
|
+
r: 3,
|
|
481
|
+
fill: n.value.color,
|
|
482
|
+
class: O({ "select-circle": e.value.useCssAnimation })
|
|
483
|
+
}, null, 10, bt)
|
|
484
|
+
], 64)) : v("", !0),
|
|
485
|
+
x("defs", null, [
|
|
486
|
+
(s(!0), i(b, null, C(k.value, (l) => (s(), i("radialGradient", {
|
|
487
|
+
id: l.id,
|
|
488
|
+
fy: "30%"
|
|
489
|
+
}, [
|
|
490
|
+
x("stop", {
|
|
491
|
+
offset: "10%",
|
|
492
|
+
"stop-color": m(Ge)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
493
|
+
}, null, 8, gt),
|
|
494
|
+
x("stop", {
|
|
495
|
+
offset: "90%",
|
|
496
|
+
"stop-color": m(Ee)(l.color, 0.1)
|
|
497
|
+
}, null, 8, xt),
|
|
498
|
+
x("stop", {
|
|
499
|
+
offset: "100%",
|
|
500
|
+
"stop-color": l.color
|
|
501
|
+
}, null, 8, kt)
|
|
502
|
+
], 8, mt))), 256))
|
|
503
|
+
]),
|
|
504
|
+
(s(!0), i(b, null, C(Ce.value, (l, r) => (s(), i(b, null, [
|
|
505
|
+
(s(!0), i(b, null, C(l.plots, (u, S) => (s(), B(Ze, Pe({
|
|
506
|
+
plot: { x: u.x, y: le.value ? u.y : a.value.top },
|
|
507
|
+
radius: n.value && n.value.id === u.id ? M.value * 1.5 : M.value,
|
|
508
|
+
shape: e.value.style.chart.plots.shape,
|
|
509
|
+
stroke: e.value.style.chart.plots.stroke,
|
|
510
|
+
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
511
|
+
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
512
|
+
onMouseenter: (E) => we({ datapoint: u, seriesIndex: S }),
|
|
513
|
+
onMouseleave: o[0] || (o[0] = (E) => {
|
|
514
|
+
U.value = !1, n.value = null;
|
|
515
|
+
}),
|
|
516
|
+
onClick: (E) => be("selectDatapoint", u),
|
|
517
|
+
style: `transition: all 0.2s ease-in-out; opacity:${n.value ? n.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${z.value ? `transition-delay:${S * 50}ms` : ""}`,
|
|
518
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && z.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !z.value }
|
|
519
|
+
}, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
520
|
+
h.value.dataLabels.show ? (s(), i("g", Ct, [
|
|
521
|
+
(s(!0), i(b, null, C(l.plots, (u, S) => (s(), i(b, null, [
|
|
522
|
+
S === l.plots.length - 1 || n.value && n.value.id === u.id && !h.value.showTooltip ? (s(), i("text", {
|
|
523
|
+
key: 0,
|
|
524
|
+
x: u.x,
|
|
525
|
+
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - M.value * (n.value && n.value.id === u.id && !h.value.showTooltip ? 2 : 1.5),
|
|
526
|
+
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
527
|
+
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
528
|
+
"text-anchor": "middle",
|
|
529
|
+
style: V(`opacity:${e.value.useCssAnimation && z.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
530
|
+
}, $(u.name) + " " + $(e.value.style.chart.labels.bestPlotLabel.showValue ? m(H)({
|
|
531
|
+
p: `(${e.value.style.chart.labels.prefix}`,
|
|
532
|
+
v: u.value,
|
|
533
|
+
s: `${e.value.style.chart.labels.suffix})`,
|
|
534
|
+
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
535
|
+
}) : ""), 13, wt)) : v("", !0)
|
|
536
|
+
], 64))), 256))
|
|
537
|
+
])) : v("", !0)
|
|
538
|
+
], 64))), 256)),
|
|
539
|
+
g(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
540
|
+
], 14, at)) : v("", !0),
|
|
541
|
+
w.value ? v("", !0) : (s(), B(Qe, {
|
|
542
|
+
key: 3,
|
|
543
|
+
config: {
|
|
544
|
+
type: "stripPlot",
|
|
545
|
+
style: {
|
|
546
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
547
|
+
stripPlot: {
|
|
548
|
+
color: "#CCCCCC"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}, null, 8, ["config"])),
|
|
553
|
+
q(Ye, {
|
|
554
|
+
show: h.value.showTooltip && U.value,
|
|
555
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
556
|
+
color: e.value.style.chart.tooltip.color,
|
|
557
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
558
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
559
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
560
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
561
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
562
|
+
parent: P.value,
|
|
563
|
+
content: X.value,
|
|
564
|
+
isCustom: m(de)(e.value.style.chart.tooltip.customFormat)
|
|
565
|
+
}, {
|
|
566
|
+
"tooltip-before": y(() => [
|
|
567
|
+
g(t.$slots, "tooltip-before", Y(K({ ...J.value })), void 0, !0)
|
|
568
|
+
]),
|
|
569
|
+
"tooltip-after": y(() => [
|
|
570
|
+
g(t.$slots, "tooltip-after", Y(K({ ...J.value })), void 0, !0)
|
|
571
|
+
]),
|
|
572
|
+
_: 3
|
|
573
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
|
|
574
|
+
w.value ? (s(), B(et, {
|
|
575
|
+
key: 4,
|
|
576
|
+
hideDetails: "",
|
|
577
|
+
config: {
|
|
578
|
+
open: h.value.showTable,
|
|
579
|
+
maxHeight: 1e4,
|
|
580
|
+
body: {
|
|
581
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
582
|
+
color: e.value.style.chart.color
|
|
583
|
+
},
|
|
584
|
+
head: {
|
|
585
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
586
|
+
color: e.value.style.chart.color
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}, {
|
|
590
|
+
content: y(() => [
|
|
591
|
+
q(Ke, {
|
|
592
|
+
colNames: G.value.colNames,
|
|
593
|
+
head: G.value.head,
|
|
594
|
+
body: G.value.body,
|
|
595
|
+
config: G.value.config,
|
|
596
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
597
|
+
onClose: o[1] || (o[1] = (l) => h.value.showTable = !1)
|
|
598
|
+
}, {
|
|
599
|
+
th: y(({ th: l }) => [
|
|
600
|
+
x("div", {
|
|
601
|
+
innerHTML: l,
|
|
602
|
+
style: { display: "flex", "align-items": "center" }
|
|
603
|
+
}, null, 8, _t)
|
|
604
|
+
]),
|
|
605
|
+
td: y(({ td: l }) => [
|
|
606
|
+
ze($(l.name || l), 1)
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
610
|
+
]),
|
|
611
|
+
_: 1
|
|
612
|
+
}, 8, ["config"])) : v("", !0)
|
|
613
|
+
], 14, lt));
|
|
614
|
+
}
|
|
615
|
+
}, Dt = /* @__PURE__ */ tt($t, [["__scopeId", "data-v-548755c9"]]);
|
|
616
|
+
export {
|
|
617
|
+
Dt as default
|
|
618
|
+
};
|