vue-data-ui 2.3.2 → 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-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
- package/dist/{index.es-w_iDpZ-o.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-C6KVJkgd.cjs +0 -843
- package/dist/index-bDBuMYfe.js +0 -57303
|
@@ -0,0 +1,1178 @@
|
|
|
1
|
+
import { computed as g, ref as h, onMounted as Re, onBeforeUnmount as Ve, watch as He, openBlock as o, createElementBlock as i, normalizeClass as z, normalizeStyle as k, createVNode as Z, createCommentVNode as c, createBlock as D, unref as _, createSlots as Oe, withCtx as $, renderSlot as S, normalizeProps as ue, guardReactiveProps as oe, createElementVNode as v, Fragment as w, renderList as W, toDisplayString as m, createTextVNode as Ie, nextTick as De } from "vue";
|
|
2
|
+
import { u as Ee, c as qe, t as Ue, a as Ge, p as se, o as Qe, e as F, b as Je, r as K, d as je, X as Ze, s as Ke, N as et, C as tt, v as lt, w as at, n as ut, q as ot } from "./index-uOtklCCx.js";
|
|
3
|
+
import { t as st, u as rt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as it } from "./Title-2iks1ziC.js";
|
|
5
|
+
import { u as nt, U as vt } from "./usePrinter-B6xQCyL-.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-C3phqKuU.js";
|
|
7
|
+
import { _ as _e } from "./Shape-CjLV0scA.js";
|
|
8
|
+
import { L as ct } from "./Legend-CxvJTjEm.js";
|
|
9
|
+
import { D as ht } from "./DataTable-CwaOlAsy.js";
|
|
10
|
+
import yt from "./vue-ui-skeleton-BM9rwmxY.js";
|
|
11
|
+
import bt from "./vue-ui-accordion-HJPf7My0.js";
|
|
12
|
+
import { u as Se } from "./useNestedProp-BgWkUab_.js";
|
|
13
|
+
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const pt = ["id"], gt = ["xmlns", "viewBox", "id"], mt = ["id"], xt = ["stop-color"], $t = ["stop-color"], kt = { key: 0 }, Lt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], qt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], _t = { key: 1 }, St = ["points", "fill"], Ct = ["points", "fill"], zt = ["points", "fill"], Tt = ["points", "fill"], Wt = { key: 2 }, Xt = ["y", "fill", "font-size"], Yt = ["x", "y", "fill", "font-size"], Mt = ["x", "y", "fill", "font-size"], Nt = ["y", "fill", "font-size"], At = { key: 3 }, Bt = ["x", "y", "font-size", "fill"], Ft = ["x", "y", "font-size", "fill"], Pt = ["x", "y", "font-size", "fill"], Rt = ["id", "font-size", "transform", "fill"], Vt = ["id", "font-size", "transform", "fill"], Ht = ["id", "font-size", "transform", "fill"], Ot = { key: 4 }, It = ["fill", "points"], Dt = ["x", "y", "width", "height"], Et = ["x", "y", "width", "height"], Ut = ["x", "y", "width", "height"], Gt = ["x", "y", "width", "height"], Qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], jt = { key: 0 }, Zt = ["x", "y", "onMouseover", "onClick"], Kt = {
|
|
15
|
+
key: 7,
|
|
16
|
+
class: "vue-ui-dna"
|
|
17
|
+
}, el = ["points", "fill"], tl = ["points", "fill"], ll = ["points", "fill"], al = ["points", "fill"], ul = { key: 8 }, ol = ["x", "y", "font-size", "fill", "font-weight"], sl = { key: 9 }, rl = ["x", "y", "fill"], il = ["x", "y", "fill"], nl = ["x", "y", "fill"], vl = ["x", "y", "fill"], dl = ["stroke", "d"], cl = ["stroke", "d"], hl = ["onClick"], yl = {
|
|
18
|
+
key: 0,
|
|
19
|
+
height: "14",
|
|
20
|
+
width: "14",
|
|
21
|
+
viewBox: "0 0 20 20"
|
|
22
|
+
}, bl = ["innerHTML"], fl = {
|
|
23
|
+
__name: "vue-ui-quadrant",
|
|
24
|
+
props: {
|
|
25
|
+
config: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
dataset: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default() {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
39
|
+
setup(Ce, { expose: ze, emit: ee }) {
|
|
40
|
+
const X = Ce, { vue_ui_quadrant: Te } = Ee(), E = g(() => !!X.dataset && X.dataset.length), C = h(qe()), We = h(null), U = h(!1), te = h(""), re = h(0), f = h(!1), P = h(null), ie = h(null), ne = h(null), t = g(() => {
|
|
41
|
+
const l = Se({
|
|
42
|
+
userConfig: X.config,
|
|
43
|
+
defaultConfig: Te
|
|
44
|
+
});
|
|
45
|
+
return l.theme ? {
|
|
46
|
+
...Se({
|
|
47
|
+
userConfig: Ue.vue_ui_quadrant[l.theme] || X.config,
|
|
48
|
+
defaultConfig: l
|
|
49
|
+
}),
|
|
50
|
+
customPalette: Ge[l.theme] || se
|
|
51
|
+
} : l;
|
|
52
|
+
}), G = h(null);
|
|
53
|
+
Re(() => {
|
|
54
|
+
if (Qe(X.dataset) ? F({
|
|
55
|
+
componentName: "VueUiQuadrant",
|
|
56
|
+
type: "dataset"
|
|
57
|
+
}) : X.dataset.forEach((l, u) => {
|
|
58
|
+
[null, void 0].includes(l.name) && F({
|
|
59
|
+
componentName: "VueUiQuadrant",
|
|
60
|
+
type: "datasetSerieAttribute",
|
|
61
|
+
property: "name",
|
|
62
|
+
index: u
|
|
63
|
+
}), [null, void 0].includes(l.series) ? F({
|
|
64
|
+
componentName: "VueUiQuadrant",
|
|
65
|
+
type: "datasetSerieAttribute",
|
|
66
|
+
property: "series",
|
|
67
|
+
index: u
|
|
68
|
+
}) : l.series.forEach((a, s) => {
|
|
69
|
+
[null, void 0].includes(a.name) && F({
|
|
70
|
+
componentName: "VueUiQuadrant",
|
|
71
|
+
type: "datasetSerieAttribute",
|
|
72
|
+
property: "name",
|
|
73
|
+
key: "series",
|
|
74
|
+
index: s
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
}), t.value.responsive) {
|
|
78
|
+
const l = st(() => {
|
|
79
|
+
const { width: u, height: a } = rt({
|
|
80
|
+
chart: P.value,
|
|
81
|
+
title: t.value.style.chart.title.text ? ie.value : null,
|
|
82
|
+
legend: t.value.style.chart.legend.show ? ne.value : null
|
|
83
|
+
});
|
|
84
|
+
p.value = 48, e.value.height = a, e.value.usableHeight = a - p.value * 2, e.value.width = u, e.value.usableWidth = u - p.value * 2, e.value.top = p.value, e.value.left = p.value, e.value.right = u - p.value, e.value.bottom = a - p.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = p.value;
|
|
85
|
+
});
|
|
86
|
+
G.value = new ResizeObserver(l), G.value.observe(P.value.parentNode);
|
|
87
|
+
}
|
|
88
|
+
}), Ve(() => {
|
|
89
|
+
G.value && G.value.disconnect();
|
|
90
|
+
});
|
|
91
|
+
const { isPrinting: Xe, isImaging: Ye, generatePdf: ve, generateImage: de } = nt({
|
|
92
|
+
elementId: `vue-ui-quadrant_${C.value}`,
|
|
93
|
+
fileName: t.value.style.chart.title.text || "vue-ui-quadrant"
|
|
94
|
+
}), ce = g(() => Je(t.value.customPalette)), L = h({
|
|
95
|
+
plotLabels: {
|
|
96
|
+
show: t.value.style.chart.layout.labels.plotLabels.show
|
|
97
|
+
},
|
|
98
|
+
showTable: t.value.table.show,
|
|
99
|
+
showTooltip: t.value.style.chart.tooltip.show
|
|
100
|
+
}), p = h(48), e = h({
|
|
101
|
+
height: t.value.style.chart.height,
|
|
102
|
+
usableHeight: t.value.style.chart.height - p.value * 2,
|
|
103
|
+
width: t.value.style.chart.width,
|
|
104
|
+
usableWidth: t.value.style.chart.width - p.value * 2,
|
|
105
|
+
top: p.value,
|
|
106
|
+
left: p.value,
|
|
107
|
+
right: t.value.style.chart.width - p.value,
|
|
108
|
+
bottom: t.value.style.chart.height - p.value,
|
|
109
|
+
centerX: t.value.style.chart.width / 2,
|
|
110
|
+
centerY: t.value.style.chart.height - t.value.style.chart.height / 2,
|
|
111
|
+
padding: p.value
|
|
112
|
+
}), d = h({
|
|
113
|
+
...JSON.parse(JSON.stringify(e.value)),
|
|
114
|
+
startX: 0,
|
|
115
|
+
startY: 0
|
|
116
|
+
});
|
|
117
|
+
He(() => e.value, (l) => {
|
|
118
|
+
l && (d.value = {
|
|
119
|
+
...JSON.parse(JSON.stringify(e.value)),
|
|
120
|
+
startX: 0,
|
|
121
|
+
startY: 0
|
|
122
|
+
});
|
|
123
|
+
}, { deep: !0 });
|
|
124
|
+
const n = h(null), A = g(() => {
|
|
125
|
+
switch (n.value) {
|
|
126
|
+
case "TL":
|
|
127
|
+
return {
|
|
128
|
+
x: d.value.startX + d.value.width / 2,
|
|
129
|
+
y: d.value.height,
|
|
130
|
+
text: t.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
|
|
131
|
+
fontSize: t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
132
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
133
|
+
bold: t.value.style.chart.layout.labels.quadrantLabels.tl.bold
|
|
134
|
+
};
|
|
135
|
+
case "TR":
|
|
136
|
+
return {
|
|
137
|
+
x: d.value.startX + d.value.width / 2,
|
|
138
|
+
y: d.value.height,
|
|
139
|
+
text: t.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
|
|
140
|
+
fontSize: t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
141
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
142
|
+
bold: t.value.style.chart.layout.labels.quadrantLabels.tr.bold
|
|
143
|
+
};
|
|
144
|
+
case "BR":
|
|
145
|
+
return {
|
|
146
|
+
x: d.value.startX + d.value.width / 2,
|
|
147
|
+
y: d.value.height * 1.678,
|
|
148
|
+
text: t.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
|
|
149
|
+
fontSize: t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
150
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
151
|
+
bold: t.value.style.chart.layout.labels.quadrantLabels.br.bold
|
|
152
|
+
};
|
|
153
|
+
case "BL":
|
|
154
|
+
return {
|
|
155
|
+
x: d.value.startX + d.value.width / 2,
|
|
156
|
+
y: d.value.height * 1.678,
|
|
157
|
+
text: t.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
|
|
158
|
+
fontSize: t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
159
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
160
|
+
bold: t.value.style.chart.layout.labels.quadrantLabels.bl.bold
|
|
161
|
+
};
|
|
162
|
+
default:
|
|
163
|
+
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
164
|
+
}
|
|
165
|
+
}), Me = h(null), Q = h(!1);
|
|
166
|
+
function R({ targetX: l, targetY: u, targetW: a, targetH: s, side: r }) {
|
|
167
|
+
n.value && O(r);
|
|
168
|
+
const y = {
|
|
169
|
+
x: l - d.value.startX,
|
|
170
|
+
y: u - d.value.startY,
|
|
171
|
+
w: a - d.value.width,
|
|
172
|
+
h: s - d.value.height
|
|
173
|
+
}, b = t.value.zoomAnimationFrames;
|
|
174
|
+
let T = 0;
|
|
175
|
+
function we() {
|
|
176
|
+
Q.value = !0, d.value.startX += y.x / b, d.value.startY += y.y / b, d.value.width += y.w / b, d.value.height += y.h / b, T += 1, T < b ? Me.value = requestAnimationFrame(we) : Q.value = !1;
|
|
177
|
+
}
|
|
178
|
+
we();
|
|
179
|
+
}
|
|
180
|
+
function Y(l) {
|
|
181
|
+
if (!Q.value)
|
|
182
|
+
if (f.value && n.value === l)
|
|
183
|
+
R({
|
|
184
|
+
targetX: 0,
|
|
185
|
+
targetY: 0,
|
|
186
|
+
targetW: e.value.width,
|
|
187
|
+
targetH: e.value.height
|
|
188
|
+
}), n.value = null, f.value = !1;
|
|
189
|
+
else {
|
|
190
|
+
switch (n.value = l, l) {
|
|
191
|
+
case "TL":
|
|
192
|
+
R({
|
|
193
|
+
targetX: 0,
|
|
194
|
+
targetY: 0,
|
|
195
|
+
targetW: e.value.width / 2 + e.value.left,
|
|
196
|
+
targetH: e.value.height / 2 + e.value.top,
|
|
197
|
+
side: "tl"
|
|
198
|
+
});
|
|
199
|
+
break;
|
|
200
|
+
case "TR":
|
|
201
|
+
R({
|
|
202
|
+
targetX: e.value.width / 2 - e.value.left,
|
|
203
|
+
targetY: 0,
|
|
204
|
+
targetW: e.value.width / 2 + e.value.left,
|
|
205
|
+
targetH: e.value.height / 2 + e.value.top,
|
|
206
|
+
side: "tr"
|
|
207
|
+
});
|
|
208
|
+
break;
|
|
209
|
+
case "BR":
|
|
210
|
+
R({
|
|
211
|
+
targetX: e.value.width / 2 - e.value.left,
|
|
212
|
+
targetY: e.value.height / 2 - e.value.top,
|
|
213
|
+
targetW: e.value.width / 2 + e.value.left,
|
|
214
|
+
targetH: e.value.height / 2 + e.value.top,
|
|
215
|
+
side: "br"
|
|
216
|
+
});
|
|
217
|
+
break;
|
|
218
|
+
case "BL":
|
|
219
|
+
R({
|
|
220
|
+
targetX: 0,
|
|
221
|
+
targetY: e.value.height / 2 - e.value.top,
|
|
222
|
+
targetW: e.value.width / 2 + e.value.left,
|
|
223
|
+
targetH: e.value.height / 2 + e.value.top,
|
|
224
|
+
side: "bl"
|
|
225
|
+
});
|
|
226
|
+
break;
|
|
227
|
+
default:
|
|
228
|
+
d.value.startX = 0, d.value.startY = 0, d.value.width = e.value.width, d.value.height = e.value.height;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
f.value = !0;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const Ne = g(() => {
|
|
235
|
+
const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, s = [];
|
|
236
|
+
for (let r = 0; r < l; r += 1)
|
|
237
|
+
s.push({
|
|
238
|
+
x: e.value.padding + u * r,
|
|
239
|
+
y: a + e.value.usableHeight * (r / l / 2),
|
|
240
|
+
height: e.value.usableHeight * (1 - r / l),
|
|
241
|
+
width: e.value.usableWidth * (1 - r / l),
|
|
242
|
+
opacity: K[Math.round((r + 1) / l * 20)]
|
|
243
|
+
});
|
|
244
|
+
return s;
|
|
245
|
+
}), M = g(() => {
|
|
246
|
+
let l = t.value.style.chart.layout.grid.xAxis.max, u = t.value.style.chart.layout.grid.xAxis.min, a = t.value.style.chart.layout.grid.yAxis.max, s = t.value.style.chart.layout.grid.yAxis.min;
|
|
247
|
+
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...B.value.flatMap((r) => r.series.map((y) => y.x))), u = Math.min(...B.value.flatMap((r) => r.series.map((y) => y.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...B.value.flatMap((r) => r.series.map((y) => y.y))), s = Math.min(...B.value.flatMap((r) => r.series.map((y) => y.y)))), {
|
|
248
|
+
x: {
|
|
249
|
+
max: l,
|
|
250
|
+
min: u
|
|
251
|
+
},
|
|
252
|
+
y: {
|
|
253
|
+
max: a,
|
|
254
|
+
min: s
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}), N = h([]), B = g(() => X.dataset.map((l, u) => ({
|
|
258
|
+
...l,
|
|
259
|
+
id: `cat_${u}_${C.value}`,
|
|
260
|
+
color: je(l.color) || ce.value[u] || se[u]
|
|
261
|
+
}))), Ae = g(() => B.value.filter((l) => !N.value.includes(l.id))), Be = g(() => B.value.map((l, u) => ({
|
|
262
|
+
...l,
|
|
263
|
+
shape: l.shape || "circle",
|
|
264
|
+
series: l.series.map((a) => ({
|
|
265
|
+
...a,
|
|
266
|
+
x: he(a.x),
|
|
267
|
+
y: ye(a.y),
|
|
268
|
+
xValue: a.x,
|
|
269
|
+
yValue: a.y,
|
|
270
|
+
quadrantSide: fe({ x: a.x, y: a.y }),
|
|
271
|
+
categoryName: l.name,
|
|
272
|
+
shape: l.shape,
|
|
273
|
+
color: l.color
|
|
274
|
+
}))
|
|
275
|
+
}))), q = g(() => (X.dataset.forEach((l, u) => {
|
|
276
|
+
l.series.forEach((a, s) => {
|
|
277
|
+
[null, void 0].includes(a.x) && F({
|
|
278
|
+
componentName: "VueUiQuadrant",
|
|
279
|
+
type: "datasetSerieAttribute",
|
|
280
|
+
property: "x",
|
|
281
|
+
key: "series",
|
|
282
|
+
index: s
|
|
283
|
+
}), [null, void 0].includes(a.y) && F({
|
|
284
|
+
componentName: "VueUiQuadrant",
|
|
285
|
+
type: "datasetSerieAttribute",
|
|
286
|
+
property: "y",
|
|
287
|
+
key: "series",
|
|
288
|
+
index: s
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
}), Ae.value.map((l, u) => ({
|
|
292
|
+
...l,
|
|
293
|
+
shape: l.shape || "circle",
|
|
294
|
+
color: l.color || ce.value[u] || se[u],
|
|
295
|
+
series: l.series.map((a) => ({
|
|
296
|
+
...a,
|
|
297
|
+
x: he(a.x),
|
|
298
|
+
y: ye(a.y),
|
|
299
|
+
xValue: a.x,
|
|
300
|
+
yValue: a.y,
|
|
301
|
+
quadrantSide: fe({ x: a.x, y: a.y }),
|
|
302
|
+
categoryName: l.name,
|
|
303
|
+
shape: l.shape,
|
|
304
|
+
color: l.color,
|
|
305
|
+
uid: qe()
|
|
306
|
+
}))
|
|
307
|
+
}))));
|
|
308
|
+
function he(l) {
|
|
309
|
+
if (l >= 0) {
|
|
310
|
+
const u = l / M.value.x.max;
|
|
311
|
+
return e.value.centerX + e.value.usableWidth / 2 * u;
|
|
312
|
+
} else {
|
|
313
|
+
const u = Math.abs(l) / Math.abs(M.value.x.min);
|
|
314
|
+
return e.value.centerX - e.value.usableWidth / 2 * u;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
function ye(l) {
|
|
318
|
+
if (l >= 0) {
|
|
319
|
+
const u = l / M.value.y.max;
|
|
320
|
+
return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
|
|
321
|
+
} else {
|
|
322
|
+
const u = Math.abs(l) / Math.abs(M.value.y.min);
|
|
323
|
+
return e.value.centerY - (1 - e.value.usableHeight / 2 * u);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
const J = g(() => {
|
|
327
|
+
const l = q.value.flatMap((b) => b.series.map((T) => ({
|
|
328
|
+
x: T.xValue,
|
|
329
|
+
y: T.yValue,
|
|
330
|
+
name: T.name,
|
|
331
|
+
category: T.categoryName,
|
|
332
|
+
quadrantSide: T.quadrantSide,
|
|
333
|
+
sideName: t.value.style.chart.layout.labels.quadrantLabels[T.quadrantSide].text,
|
|
334
|
+
color: b.color,
|
|
335
|
+
shape: b.shape
|
|
336
|
+
}))), u = t.value.style.chart.layout.grid.xAxis.name || "x", a = t.value.style.chart.layout.grid.yAxis.name || "y", s = [t.value.translations.category, t.value.translations.item, u, a, t.value.translations.side], r = l.map((b) => [b.category, b.name, b.x, b.y, b.sideName || b.quadrantSide]), y = l.map((b) => ({
|
|
337
|
+
shape: b.shape,
|
|
338
|
+
color: b.color
|
|
339
|
+
}));
|
|
340
|
+
return { head: s, body: r, itsShapes: y, tableData: l };
|
|
341
|
+
}), j = g(() => {
|
|
342
|
+
const l = J.value.head, u = J.value.tableData.map((s) => [
|
|
343
|
+
{
|
|
344
|
+
shape: s.shape,
|
|
345
|
+
color: s.color,
|
|
346
|
+
name: s.category
|
|
347
|
+
},
|
|
348
|
+
s.name,
|
|
349
|
+
s.x,
|
|
350
|
+
s.y,
|
|
351
|
+
s.sideName || s.quadrantSide
|
|
352
|
+
]), a = {
|
|
353
|
+
th: {
|
|
354
|
+
backgroundColor: t.value.table.th.backgroundColor,
|
|
355
|
+
color: t.value.table.th.color,
|
|
356
|
+
outline: t.value.table.th.outline
|
|
357
|
+
},
|
|
358
|
+
td: {
|
|
359
|
+
backgroundColor: t.value.table.td.backgroundColor,
|
|
360
|
+
color: t.value.table.td.color,
|
|
361
|
+
outline: t.value.table.td.outline
|
|
362
|
+
},
|
|
363
|
+
breakpoint: t.value.table.responsiveBreakpoint
|
|
364
|
+
};
|
|
365
|
+
return { head: l, body: u, config: a, colNames: l };
|
|
366
|
+
});
|
|
367
|
+
function le(l) {
|
|
368
|
+
N.value.includes(l) ? N.value = N.value.filter((a) => a !== l) : N.value.push(l);
|
|
369
|
+
const u = me();
|
|
370
|
+
ee("selectLegend", u);
|
|
371
|
+
}
|
|
372
|
+
const be = g(() => Be.value.map((l) => ({
|
|
373
|
+
name: l.name,
|
|
374
|
+
shape: l.shape,
|
|
375
|
+
color: l.color,
|
|
376
|
+
id: l.id,
|
|
377
|
+
opacity: N.value.includes(l.id) ? 0.5 : 1,
|
|
378
|
+
segregate: () => le(l.id),
|
|
379
|
+
isSegregated: N.value.includes(l.id)
|
|
380
|
+
}))), Fe = g(() => ({
|
|
381
|
+
cy: "quadrant-div-legend",
|
|
382
|
+
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
383
|
+
color: t.value.style.chart.legend.color,
|
|
384
|
+
fontSize: t.value.style.chart.legend.fontSize,
|
|
385
|
+
paddingBottom: 12,
|
|
386
|
+
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
387
|
+
}));
|
|
388
|
+
function fe(l) {
|
|
389
|
+
switch (!0) {
|
|
390
|
+
case (l.x >= 0 && l.y >= 0):
|
|
391
|
+
return "tr";
|
|
392
|
+
case (l.x >= 0 && l.y < 0):
|
|
393
|
+
return "br";
|
|
394
|
+
case (l.x < 0 && l.y < 0):
|
|
395
|
+
return "bl";
|
|
396
|
+
case (l.x < 0 && l.y >= 0):
|
|
397
|
+
return "tl";
|
|
398
|
+
default:
|
|
399
|
+
return "";
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
const V = h(null), H = h(null), ae = h(null);
|
|
403
|
+
function pe(l, u, a) {
|
|
404
|
+
V.value = u.uid, H.value = {
|
|
405
|
+
color: l.color,
|
|
406
|
+
shape: l.shape
|
|
407
|
+
}, ae.value = {
|
|
408
|
+
datapoint: u,
|
|
409
|
+
seriesIndex: a,
|
|
410
|
+
series: q.value,
|
|
411
|
+
config: t.value
|
|
412
|
+
}, U.value = !0;
|
|
413
|
+
const s = t.value.style.chart.tooltip.customFormat;
|
|
414
|
+
if (lt(s) && at(() => s({
|
|
415
|
+
seriesIndex: a,
|
|
416
|
+
datapoint: u,
|
|
417
|
+
series: q.value,
|
|
418
|
+
config: t.value
|
|
419
|
+
})))
|
|
420
|
+
te.value = s({
|
|
421
|
+
seriesIndex: a,
|
|
422
|
+
datapoint: u,
|
|
423
|
+
series: q.value,
|
|
424
|
+
config: t.value
|
|
425
|
+
});
|
|
426
|
+
else {
|
|
427
|
+
let r = "";
|
|
428
|
+
u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${u.xValue.toFixed(t.value.style.chart.tooltip.roundingValue)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${u.yValue.toFixed(t.value.style.chart.tooltip.roundingValue)}</b></div>`, te.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function ge(l, u) {
|
|
432
|
+
const a = {
|
|
433
|
+
category: l.name,
|
|
434
|
+
shape: l.shape,
|
|
435
|
+
itemName: u.name,
|
|
436
|
+
x: u.xValue,
|
|
437
|
+
y: u.yValue,
|
|
438
|
+
quadrantSide: u.quadrantSide,
|
|
439
|
+
sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
440
|
+
};
|
|
441
|
+
ee("selectPlot", a);
|
|
442
|
+
}
|
|
443
|
+
function O(l) {
|
|
444
|
+
if (!l) return;
|
|
445
|
+
const u = q.value.flatMap((s) => s.series.filter((r) => r.quadrantSide === l).map((r) => ({
|
|
446
|
+
category: r.categoryName,
|
|
447
|
+
itemName: r.name,
|
|
448
|
+
x: r.xValue,
|
|
449
|
+
y: r.yValue
|
|
450
|
+
}))), a = {
|
|
451
|
+
quadrantSide: l,
|
|
452
|
+
sideName: t.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
453
|
+
items: [...u]
|
|
454
|
+
};
|
|
455
|
+
ee("selectSide", a);
|
|
456
|
+
}
|
|
457
|
+
const x = g(() => ({
|
|
458
|
+
TL: {
|
|
459
|
+
tl: {
|
|
460
|
+
x: e.value.left + e.value.usableWidth / 4 - 20,
|
|
461
|
+
y: 0,
|
|
462
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
463
|
+
},
|
|
464
|
+
tr: {
|
|
465
|
+
x: e.value.left + e.value.usableWidth / 4,
|
|
466
|
+
y: 0,
|
|
467
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
468
|
+
},
|
|
469
|
+
br: {
|
|
470
|
+
x: e.value.left + e.value.usableWidth / 4,
|
|
471
|
+
y: 20,
|
|
472
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
473
|
+
},
|
|
474
|
+
bl: {
|
|
475
|
+
x: e.value.left + e.value.usableWidth / 4 - 20,
|
|
476
|
+
y: 20,
|
|
477
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
478
|
+
},
|
|
479
|
+
crosshairs: {
|
|
480
|
+
horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},20 ${e.value.left + e.value.usableWidth / 4 + 20},20`,
|
|
481
|
+
vertical: `M ${e.value.left + e.value.usableWidth / 4},0 ${e.value.left + e.value.usableWidth / 4},40`
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
TR: {
|
|
485
|
+
tl: {
|
|
486
|
+
x: e.value.centerX + e.value.usableWidth / 4 - 20,
|
|
487
|
+
y: 0,
|
|
488
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
489
|
+
},
|
|
490
|
+
tr: {
|
|
491
|
+
x: e.value.centerX + e.value.usableWidth / 4,
|
|
492
|
+
y: 0,
|
|
493
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
494
|
+
},
|
|
495
|
+
br: {
|
|
496
|
+
x: e.value.centerX + e.value.usableWidth / 4,
|
|
497
|
+
y: 20,
|
|
498
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
499
|
+
},
|
|
500
|
+
bl: {
|
|
501
|
+
x: e.value.centerX + e.value.usableWidth / 4 - 20,
|
|
502
|
+
y: 20,
|
|
503
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
504
|
+
},
|
|
505
|
+
crosshairs: {
|
|
506
|
+
horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},20 ${e.value.centerX + e.value.usableWidth / 4 + 20},20`,
|
|
507
|
+
vertical: `M ${e.value.centerX + e.value.usableWidth / 4},0 ${e.value.centerX + e.value.usableWidth / 4},40`
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
BR: {
|
|
511
|
+
tl: {
|
|
512
|
+
x: e.value.centerX + e.value.usableWidth / 4 - 20,
|
|
513
|
+
y: e.value.centerY - 48,
|
|
514
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
515
|
+
},
|
|
516
|
+
tr: {
|
|
517
|
+
x: e.value.centerX + e.value.usableWidth / 4,
|
|
518
|
+
y: e.value.centerY - 48,
|
|
519
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
520
|
+
},
|
|
521
|
+
br: {
|
|
522
|
+
x: e.value.centerX + e.value.usableWidth / 4,
|
|
523
|
+
y: e.value.centerY - 28,
|
|
524
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
525
|
+
},
|
|
526
|
+
bl: {
|
|
527
|
+
x: e.value.centerX + e.value.usableWidth / 4 - 20,
|
|
528
|
+
y: e.value.centerY - 28,
|
|
529
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
530
|
+
},
|
|
531
|
+
crosshairs: {
|
|
532
|
+
horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.centerX + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
|
|
533
|
+
vertical: `M ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 8}`
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
BL: {
|
|
537
|
+
tl: {
|
|
538
|
+
x: e.value.left + e.value.usableWidth / 4 - 20,
|
|
539
|
+
y: e.value.centerY - 48,
|
|
540
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
541
|
+
},
|
|
542
|
+
tr: {
|
|
543
|
+
x: e.value.left + e.value.usableWidth / 4,
|
|
544
|
+
y: e.value.centerY - 48,
|
|
545
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
546
|
+
},
|
|
547
|
+
br: {
|
|
548
|
+
x: e.value.left + e.value.usableWidth / 4,
|
|
549
|
+
y: e.value.centerY - 28,
|
|
550
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
551
|
+
},
|
|
552
|
+
bl: {
|
|
553
|
+
x: e.value.left + e.value.usableWidth / 4 - 20,
|
|
554
|
+
y: e.value.centerY - 28,
|
|
555
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
556
|
+
},
|
|
557
|
+
crosshairs: {
|
|
558
|
+
horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.left + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
|
|
559
|
+
vertical: `M ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 8}`
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}));
|
|
563
|
+
function me() {
|
|
564
|
+
return q.value.map((l) => ({
|
|
565
|
+
color: l.color,
|
|
566
|
+
name: l.name,
|
|
567
|
+
shape: l.shape,
|
|
568
|
+
series: l.series.map((u) => ({
|
|
569
|
+
name: u.name,
|
|
570
|
+
x: u.xValue,
|
|
571
|
+
y: u.yValue,
|
|
572
|
+
quadrantSide: u.quadrantSide,
|
|
573
|
+
sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
574
|
+
}))
|
|
575
|
+
}));
|
|
576
|
+
}
|
|
577
|
+
function xe() {
|
|
578
|
+
De(() => {
|
|
579
|
+
const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u = J.value.head, a = J.value.body, s = l.concat([u]).concat(a), r = ut(s);
|
|
580
|
+
ot({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
const I = h(!1);
|
|
584
|
+
function Pe(l) {
|
|
585
|
+
I.value = l, re.value += 1;
|
|
586
|
+
}
|
|
587
|
+
function $e() {
|
|
588
|
+
L.value.showTable = !L.value.showTable;
|
|
589
|
+
}
|
|
590
|
+
function ke() {
|
|
591
|
+
L.value.plotLabels.show = !L.value.plotLabels.show;
|
|
592
|
+
}
|
|
593
|
+
function Le() {
|
|
594
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
595
|
+
}
|
|
596
|
+
return ze({
|
|
597
|
+
getData: me,
|
|
598
|
+
generatePdf: ve,
|
|
599
|
+
generateCsv: xe,
|
|
600
|
+
generateImage: de,
|
|
601
|
+
toggleTable: $e,
|
|
602
|
+
toggleLabels: ke,
|
|
603
|
+
toggleTooltip: Le
|
|
604
|
+
}), (l, u) => (o(), i("div", {
|
|
605
|
+
class: z(`vue-ui-quadrant ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
606
|
+
ref_key: "quadrantChart",
|
|
607
|
+
ref: P,
|
|
608
|
+
id: `vue-ui-quadrant_${C.value}`,
|
|
609
|
+
style: k(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text ? "" : "padding-top: 36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`)
|
|
610
|
+
}, [
|
|
611
|
+
t.value.style.chart.title.text ? (o(), i("div", {
|
|
612
|
+
key: 0,
|
|
613
|
+
ref_key: "chartTitle",
|
|
614
|
+
ref: ie,
|
|
615
|
+
style: k(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
616
|
+
}, [
|
|
617
|
+
Z(it, {
|
|
618
|
+
config: {
|
|
619
|
+
title: {
|
|
620
|
+
cy: "quadrant-title",
|
|
621
|
+
...t.value.style.chart.title
|
|
622
|
+
},
|
|
623
|
+
subtitle: {
|
|
624
|
+
cy: "quadrant-subtitle",
|
|
625
|
+
...t.value.style.chart.title.subtitle
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}, null, 8, ["config"])
|
|
629
|
+
], 4)) : c("", !0),
|
|
630
|
+
t.value.userOptions.show && E.value ? (o(), D(vt, {
|
|
631
|
+
ref_key: "details",
|
|
632
|
+
ref: We,
|
|
633
|
+
key: `user_options_${re.value}`,
|
|
634
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
635
|
+
color: t.value.style.chart.color,
|
|
636
|
+
isImaging: _(Ye),
|
|
637
|
+
isPrinting: _(Xe),
|
|
638
|
+
uid: C.value,
|
|
639
|
+
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
640
|
+
hasPdf: t.value.userOptions.buttons.pdf,
|
|
641
|
+
hasImg: t.value.userOptions.buttons.img,
|
|
642
|
+
hasXls: t.value.userOptions.buttons.csv,
|
|
643
|
+
hasTable: t.value.userOptions.buttons.table,
|
|
644
|
+
hasLabel: t.value.userOptions.buttons.labels,
|
|
645
|
+
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
646
|
+
isFullscreen: I.value,
|
|
647
|
+
isTooltip: L.value.showTooltip,
|
|
648
|
+
titles: { ...t.value.userOptions.buttonTitles },
|
|
649
|
+
chartElement: P.value,
|
|
650
|
+
onToggleFullscreen: Pe,
|
|
651
|
+
onGeneratePdf: _(ve),
|
|
652
|
+
onGenerateCsv: xe,
|
|
653
|
+
onGenerateImage: _(de),
|
|
654
|
+
onToggleTable: $e,
|
|
655
|
+
onToggleLabels: ke,
|
|
656
|
+
onToggleTooltip: Le
|
|
657
|
+
}, Oe({ _: 2 }, [
|
|
658
|
+
l.$slots.optionTooltip ? {
|
|
659
|
+
name: "optionTooltip",
|
|
660
|
+
fn: $(() => [
|
|
661
|
+
S(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
662
|
+
]),
|
|
663
|
+
key: "0"
|
|
664
|
+
} : void 0,
|
|
665
|
+
l.$slots.optionPdf ? {
|
|
666
|
+
name: "optionPdf",
|
|
667
|
+
fn: $(() => [
|
|
668
|
+
S(l.$slots, "optionPdf", {}, void 0, !0)
|
|
669
|
+
]),
|
|
670
|
+
key: "1"
|
|
671
|
+
} : void 0,
|
|
672
|
+
l.$slots.optionCsv ? {
|
|
673
|
+
name: "optionCsv",
|
|
674
|
+
fn: $(() => [
|
|
675
|
+
S(l.$slots, "optionCsv", {}, void 0, !0)
|
|
676
|
+
]),
|
|
677
|
+
key: "2"
|
|
678
|
+
} : void 0,
|
|
679
|
+
l.$slots.optionImg ? {
|
|
680
|
+
name: "optionImg",
|
|
681
|
+
fn: $(() => [
|
|
682
|
+
S(l.$slots, "optionImg", {}, void 0, !0)
|
|
683
|
+
]),
|
|
684
|
+
key: "3"
|
|
685
|
+
} : void 0,
|
|
686
|
+
l.$slots.optionTable ? {
|
|
687
|
+
name: "optionTable",
|
|
688
|
+
fn: $(() => [
|
|
689
|
+
S(l.$slots, "optionTable", {}, void 0, !0)
|
|
690
|
+
]),
|
|
691
|
+
key: "4"
|
|
692
|
+
} : void 0,
|
|
693
|
+
l.$slots.optionLabels ? {
|
|
694
|
+
name: "optionLabels",
|
|
695
|
+
fn: $(() => [
|
|
696
|
+
S(l.$slots, "optionLabels", {}, void 0, !0)
|
|
697
|
+
]),
|
|
698
|
+
key: "5"
|
|
699
|
+
} : void 0,
|
|
700
|
+
l.$slots.optionFullscreen ? {
|
|
701
|
+
name: "optionFullscreen",
|
|
702
|
+
fn: $(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
703
|
+
S(l.$slots, "optionFullscreen", ue(oe({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
704
|
+
]),
|
|
705
|
+
key: "6"
|
|
706
|
+
} : void 0
|
|
707
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
708
|
+
E.value ? (o(), i("svg", {
|
|
709
|
+
key: 2,
|
|
710
|
+
xmlns: _(Ze),
|
|
711
|
+
class: z({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
712
|
+
viewBox: `${d.value.startX} ${d.value.startY} ${d.value.width} ${d.value.height}`,
|
|
713
|
+
style: k(`max-width:100%;overflow:${f.value ? "hidden" : "visible"};background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`),
|
|
714
|
+
id: `svg_${C.value}`
|
|
715
|
+
}, [
|
|
716
|
+
v("defs", null, [
|
|
717
|
+
(o(!0), i(w, null, W(q.value, (a, s) => (o(), i("radialGradient", {
|
|
718
|
+
cx: "50%",
|
|
719
|
+
cy: "50%",
|
|
720
|
+
r: "50%",
|
|
721
|
+
fx: "50%",
|
|
722
|
+
fy: "50%",
|
|
723
|
+
id: `quadrant_gradient_${C.value}_${s}`
|
|
724
|
+
}, [
|
|
725
|
+
v("stop", {
|
|
726
|
+
offset: "0%",
|
|
727
|
+
"stop-color": `${_(Ke)(a.color, 0.05)}${_(K)[t.value.style.chart.layout.areas.opacity]}`
|
|
728
|
+
}, null, 8, xt),
|
|
729
|
+
v("stop", {
|
|
730
|
+
offset: "100%",
|
|
731
|
+
"stop-color": a.color + _(K)[t.value.style.chart.layout.areas.opacity]
|
|
732
|
+
}, null, 8, $t)
|
|
733
|
+
], 8, mt))), 256))
|
|
734
|
+
]),
|
|
735
|
+
t.value.style.chart.layout.grid.graduations.show ? (o(), i("g", kt, [
|
|
736
|
+
(o(!0), i(w, null, W(Ne.value, (a) => (o(), i("rect", {
|
|
737
|
+
fill: t.value.style.chart.layout.grid.graduations.fill ? `${t.value.style.chart.layout.grid.graduations.color}${a.opacity}` : "none",
|
|
738
|
+
x: a.x,
|
|
739
|
+
y: a.y,
|
|
740
|
+
height: a.height <= 0 ? 1e-3 : a.height,
|
|
741
|
+
width: a.width <= 0 ? 1e-3 : a.width,
|
|
742
|
+
"stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
743
|
+
stroke: t.value.style.chart.layout.grid.graduations.stroke,
|
|
744
|
+
rx: t.value.style.chart.layout.grid.graduations.roundingForce
|
|
745
|
+
}, null, 8, Lt))), 256))
|
|
746
|
+
])) : c("", !0),
|
|
747
|
+
v("line", {
|
|
748
|
+
x1: e.value.left,
|
|
749
|
+
y1: e.value.centerY,
|
|
750
|
+
x2: e.value.right,
|
|
751
|
+
y2: e.value.centerY,
|
|
752
|
+
stroke: t.value.style.chart.layout.grid.stroke,
|
|
753
|
+
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
754
|
+
}, null, 8, wt),
|
|
755
|
+
v("line", {
|
|
756
|
+
x1: e.value.centerX,
|
|
757
|
+
y1: e.value.top,
|
|
758
|
+
x2: e.value.centerX,
|
|
759
|
+
y2: e.value.bottom,
|
|
760
|
+
stroke: t.value.style.chart.layout.grid.stroke,
|
|
761
|
+
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
762
|
+
}, null, 8, qt),
|
|
763
|
+
t.value.style.chart.layout.grid.showArrows ? (o(), i("g", _t, [
|
|
764
|
+
v("polygon", {
|
|
765
|
+
points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
|
|
766
|
+
fill: t.value.style.chart.layout.grid.stroke,
|
|
767
|
+
stroke: "none"
|
|
768
|
+
}, null, 8, St),
|
|
769
|
+
v("polygon", {
|
|
770
|
+
points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
|
|
771
|
+
fill: t.value.style.chart.layout.grid.stroke,
|
|
772
|
+
stroke: "none"
|
|
773
|
+
}, null, 8, Ct),
|
|
774
|
+
v("polygon", {
|
|
775
|
+
points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
|
|
776
|
+
fill: t.value.style.chart.layout.grid.stroke,
|
|
777
|
+
stroke: "none"
|
|
778
|
+
}, null, 8, zt),
|
|
779
|
+
v("polygon", {
|
|
780
|
+
points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
|
|
781
|
+
fill: t.value.style.chart.layout.grid.stroke,
|
|
782
|
+
stroke: "none"
|
|
783
|
+
}, null, 8, Tt)
|
|
784
|
+
])) : c("", !0),
|
|
785
|
+
t.value.style.chart.layout.labels.quadrantLabels.show && !f.value ? (o(), i("g", Wt, [
|
|
786
|
+
t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (o(), i("text", {
|
|
787
|
+
key: 0,
|
|
788
|
+
x: 0,
|
|
789
|
+
y: e.value.top - e.value.padding / 2,
|
|
790
|
+
"text-anchor": "start",
|
|
791
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
792
|
+
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
793
|
+
style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
794
|
+
onClick: u[0] || (u[0] = (a) => O("tl"))
|
|
795
|
+
}, m(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, Xt)) : c("", !0),
|
|
796
|
+
t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (o(), i("text", {
|
|
797
|
+
key: 1,
|
|
798
|
+
x: e.value.width,
|
|
799
|
+
y: e.value.top - e.value.padding / 2,
|
|
800
|
+
"text-anchor": "end",
|
|
801
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
802
|
+
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
803
|
+
style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
804
|
+
onClick: u[1] || (u[1] = (a) => O("tr"))
|
|
805
|
+
}, m(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, Yt)) : c("", !0),
|
|
806
|
+
t.value.style.chart.layout.labels.quadrantLabels.br.text ? (o(), i("text", {
|
|
807
|
+
key: 2,
|
|
808
|
+
x: e.value.width,
|
|
809
|
+
y: e.value.bottom + e.value.padding * 0.7,
|
|
810
|
+
"text-anchor": "end",
|
|
811
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
812
|
+
"font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
813
|
+
style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
814
|
+
onClick: u[2] || (u[2] = (a) => O("br"))
|
|
815
|
+
}, m(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, Mt)) : c("", !0),
|
|
816
|
+
t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (o(), i("text", {
|
|
817
|
+
key: 3,
|
|
818
|
+
x: 0,
|
|
819
|
+
y: e.value.bottom + e.value.padding * 0.7,
|
|
820
|
+
"text-anchor": "start",
|
|
821
|
+
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
822
|
+
"font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
823
|
+
style: k(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
824
|
+
onClick: u[3] || (u[3] = (a) => O("bl"))
|
|
825
|
+
}, m(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, Nt)) : c("", !0)
|
|
826
|
+
])) : c("", !0),
|
|
827
|
+
t.value.style.chart.layout.labels.axisLabels.show ? (o(), i("g", At, [
|
|
828
|
+
v("text", {
|
|
829
|
+
x: e.value.centerX,
|
|
830
|
+
y: e.value.top - e.value.padding / 6,
|
|
831
|
+
"text-anchor": "middle",
|
|
832
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
833
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
834
|
+
}, m(M.value.y.max), 9, Bt),
|
|
835
|
+
v("text", {
|
|
836
|
+
x: e.value.centerX,
|
|
837
|
+
y: e.value.top - e.value.padding / 2,
|
|
838
|
+
"text-anchor": "middle",
|
|
839
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
840
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
841
|
+
}, m(t.value.style.chart.layout.grid.yAxis.name), 9, Ft),
|
|
842
|
+
v("text", {
|
|
843
|
+
x: e.value.centerX,
|
|
844
|
+
y: e.value.bottom + e.value.padding * 0.35,
|
|
845
|
+
"text-anchor": "middle",
|
|
846
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
847
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
848
|
+
}, m(M.value.y.min), 9, Pt),
|
|
849
|
+
v("text", {
|
|
850
|
+
id: `xLabelMin_${C.value}`,
|
|
851
|
+
"text-anchor": "middle",
|
|
852
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
853
|
+
transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
|
|
854
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
855
|
+
}, m(M.value.x.min), 9, Rt),
|
|
856
|
+
v("text", {
|
|
857
|
+
id: `xLabelMax_${C.value}`,
|
|
858
|
+
"text-anchor": "middle",
|
|
859
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
860
|
+
transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
861
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
862
|
+
}, m(M.value.x.max), 9, Vt),
|
|
863
|
+
v("text", {
|
|
864
|
+
id: `xLabelMaxName_${C.value}`,
|
|
865
|
+
"text-anchor": "middle",
|
|
866
|
+
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
867
|
+
transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
868
|
+
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
869
|
+
}, m(t.value.style.chart.layout.grid.xAxis.name), 9, Ht)
|
|
870
|
+
])) : c("", !0),
|
|
871
|
+
t.value.style.chart.layout.areas.show ? (o(), i("g", Ot, [
|
|
872
|
+
(o(!0), i(w, null, W(q.value, (a, s) => (o(), i("g", null, [
|
|
873
|
+
a.series.length > 2 ? (o(), i("polygon", {
|
|
874
|
+
key: 0,
|
|
875
|
+
"data-cy-quadrant-area": "",
|
|
876
|
+
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${C.value}_${s})` : `${a.color}${_(K)[t.value.style.chart.layout.areas.opacity]}`,
|
|
877
|
+
points: _(et)(a)
|
|
878
|
+
}, null, 8, It)) : c("", !0)
|
|
879
|
+
]))), 256))
|
|
880
|
+
])) : c("", !0),
|
|
881
|
+
v("g", null, [
|
|
882
|
+
v("rect", {
|
|
883
|
+
onClick: u[4] || (u[4] = (a) => Y("TL")),
|
|
884
|
+
x: e.value.left,
|
|
885
|
+
y: e.value.top,
|
|
886
|
+
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
887
|
+
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
888
|
+
fill: "transparent",
|
|
889
|
+
class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
890
|
+
}, null, 10, Dt),
|
|
891
|
+
v("rect", {
|
|
892
|
+
onClick: u[5] || (u[5] = (a) => Y("TR")),
|
|
893
|
+
x: e.value.centerX,
|
|
894
|
+
y: e.value.top,
|
|
895
|
+
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
896
|
+
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
897
|
+
fill: "transparent",
|
|
898
|
+
class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
899
|
+
}, null, 10, Et),
|
|
900
|
+
v("rect", {
|
|
901
|
+
onClick: u[6] || (u[6] = (a) => Y("BR")),
|
|
902
|
+
x: e.value.centerX,
|
|
903
|
+
y: e.value.centerY,
|
|
904
|
+
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
905
|
+
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
906
|
+
fill: "transparent",
|
|
907
|
+
class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
908
|
+
}, null, 10, Ut),
|
|
909
|
+
v("rect", {
|
|
910
|
+
onClick: u[7] || (u[7] = (a) => Y("BL")),
|
|
911
|
+
x: e.value.left,
|
|
912
|
+
y: e.value.centerY,
|
|
913
|
+
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
914
|
+
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
915
|
+
fill: "transparent",
|
|
916
|
+
class: z({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
917
|
+
}, null, 10, Gt)
|
|
918
|
+
]),
|
|
919
|
+
t.value.style.chart.layout.labels.plotLabels.showAsTag ? (o(), i(w, { key: 6 }, [
|
|
920
|
+
L.value.plotLabels.show ? (o(), i("g", jt, [
|
|
921
|
+
(o(!0), i(w, null, W(q.value, (a, s) => (o(), i(w, null, [
|
|
922
|
+
(o(!0), i(w, null, W(a.series, (r) => (o(), i("foreignObject", {
|
|
923
|
+
style: { overflow: "visible" },
|
|
924
|
+
height: "10",
|
|
925
|
+
width: "100",
|
|
926
|
+
x: r.x - 50,
|
|
927
|
+
y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
928
|
+
onMouseover: (y) => pe(a, r, s),
|
|
929
|
+
onMouseleave: u[9] || (u[9] = (y) => {
|
|
930
|
+
U.value = !1, V.value = null, H.value = null;
|
|
931
|
+
}),
|
|
932
|
+
onClick: (y) => ge(a, r)
|
|
933
|
+
}, [
|
|
934
|
+
v("div", {
|
|
935
|
+
style: k(`color:${_(tt)(a.color)};margin: 0 auto; font-size:${t.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: ${t.value.style.chart.layout.labels.plotLabels.fontSize * 1.5}px`)
|
|
936
|
+
}, m(r.name), 5)
|
|
937
|
+
], 40, Zt))), 256))
|
|
938
|
+
], 64))), 256))
|
|
939
|
+
])) : c("", !0)
|
|
940
|
+
], 64)) : (o(), i(w, { key: 5 }, [
|
|
941
|
+
(o(!0), i(w, null, W(q.value, (a, s) => (o(), i("g", null, [
|
|
942
|
+
(o(!0), i(w, null, W(a.series, (r) => (o(), D(_e, {
|
|
943
|
+
color: a.color,
|
|
944
|
+
isSelected: V.value && r.uid === V.value,
|
|
945
|
+
plot: r,
|
|
946
|
+
radius: t.value.style.chart.layout.plots.radius / (f.value ? 1.5 : 1),
|
|
947
|
+
shape: a.shape,
|
|
948
|
+
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
949
|
+
strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
|
|
950
|
+
onMouseover: (y) => pe(a, r, s),
|
|
951
|
+
onMouseleave: u[8] || (u[8] = (y) => {
|
|
952
|
+
U.value = !1, V.value = null, H.value = null;
|
|
953
|
+
}),
|
|
954
|
+
onClick: (y) => ge(a, r)
|
|
955
|
+
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseover", "onClick"]))), 256))
|
|
956
|
+
]))), 256)),
|
|
957
|
+
L.value.plotLabels.show ? (o(), i("g", Qt, [
|
|
958
|
+
(o(!0), i(w, null, W(q.value, (a) => (o(), i("g", null, [
|
|
959
|
+
(o(!0), i(w, null, W(a.series, (s) => (o(), i("text", {
|
|
960
|
+
x: s.x,
|
|
961
|
+
y: s.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
|
|
962
|
+
"text-anchor": "middle",
|
|
963
|
+
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (f.value ? 1.5 : 1),
|
|
964
|
+
fill: t.value.style.chart.layout.labels.plotLabels.color
|
|
965
|
+
}, m(s.name), 9, Jt))), 256))
|
|
966
|
+
]))), 256))
|
|
967
|
+
])) : c("", !0)
|
|
968
|
+
], 64)),
|
|
969
|
+
f.value ? (o(), i("g", Kt, [
|
|
970
|
+
n.value === "TL" ? (o(), i("polygon", {
|
|
971
|
+
key: 0,
|
|
972
|
+
points: `${e.value.left - 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.top - 1} ${e.value.right},${e.value.top - 1} ${e.value.right},${e.value.bottom} ${e.value.left - 1},${e.value.bottom} ${e.value.left - 1},${e.value.centerY}`,
|
|
973
|
+
fill: t.value.style.chart.backgroundColor,
|
|
974
|
+
style: { opacity: "1" }
|
|
975
|
+
}, null, 8, el)) : c("", !0),
|
|
976
|
+
n.value === "TR" ? (o(), i("polygon", {
|
|
977
|
+
key: 1,
|
|
978
|
+
points: `${e.value.left},${e.value.top - 1} ${e.value.centerX},${e.value.top - 1} ${e.value.centerX},${e.value.centerY} ${e.value.right + 1},${e.value.centerY} ${e.value.right + 1},${e.value.bottom} ${e.value.left},${e.value.bottom} ${e.value.left},${e.value.top - 1}`,
|
|
979
|
+
fill: t.value.style.chart.backgroundColor,
|
|
980
|
+
style: { opacity: "1" }
|
|
981
|
+
}, null, 8, tl)) : c("", !0),
|
|
982
|
+
n.value === "BR" ? (o(), i("polygon", {
|
|
983
|
+
key: 2,
|
|
984
|
+
points: `${e.value.left},${e.value.top} ${e.value.right + 1},${e.value.top} ${e.value.right + 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.bottom + 1} ${e.value.left},${e.value.bottom + 1} ${e.value.left},${e.value.top}`,
|
|
985
|
+
fill: t.value.style.chart.backgroundColor,
|
|
986
|
+
style: { opacity: "1" }
|
|
987
|
+
}, null, 8, ll)) : c("", !0),
|
|
988
|
+
n.value === "BL" ? (o(), i("polygon", {
|
|
989
|
+
key: 3,
|
|
990
|
+
points: `${e.value.left - 1},${e.value.top} ${e.value.right},${e.value.top} ${e.value.right},${e.value.bottom + 1} ${e.value.centerX},${e.value.bottom + 1} ${e.value.centerX},${e.value.centerY} ${e.value.left - 1},${e.value.centerY} ${e.value.left - 1},${e.value.top}`,
|
|
991
|
+
fill: t.value.style.chart.backgroundColor,
|
|
992
|
+
style: { opacity: "1" }
|
|
993
|
+
}, null, 8, al)) : c("", !0)
|
|
994
|
+
])) : c("", !0),
|
|
995
|
+
n.value && !Q.value ? (o(), i("g", ul, [
|
|
996
|
+
v("text", {
|
|
997
|
+
x: A.value.x,
|
|
998
|
+
y: A.value.y - A.value.fontSize / 1.5,
|
|
999
|
+
"font-size": A.value.fontSize / 1.5,
|
|
1000
|
+
fill: A.value.fill,
|
|
1001
|
+
"text-anchor": "middle",
|
|
1002
|
+
"font-weight": A.value.bold ? "bold" : "normal"
|
|
1003
|
+
}, m(A.value.text), 9, ol)
|
|
1004
|
+
])) : c("", !0),
|
|
1005
|
+
f.value && n.value ? (o(), i("g", sl, [
|
|
1006
|
+
v("rect", {
|
|
1007
|
+
x: x.value[n.value].tl.x,
|
|
1008
|
+
y: x.value[n.value].tl.y,
|
|
1009
|
+
height: "20",
|
|
1010
|
+
width: "20",
|
|
1011
|
+
fill: x.value[n.value].tl.fill,
|
|
1012
|
+
style: k(`cursor: pointer; opacity: ${n.value === "TL" ? 1 : 0.2}`),
|
|
1013
|
+
onClick: u[10] || (u[10] = (a) => Y("TL")),
|
|
1014
|
+
class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": n.value !== "TL" })
|
|
1015
|
+
}, null, 14, rl),
|
|
1016
|
+
v("rect", {
|
|
1017
|
+
x: x.value[n.value].tr.x,
|
|
1018
|
+
y: x.value[n.value].tr.y,
|
|
1019
|
+
height: "20",
|
|
1020
|
+
width: "20",
|
|
1021
|
+
fill: x.value[n.value].tr.fill,
|
|
1022
|
+
style: k(`cursor: pointer; opacity: ${n.value === "TR" ? 1 : 0.2}`),
|
|
1023
|
+
onClick: u[11] || (u[11] = (a) => Y("TR")),
|
|
1024
|
+
class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": n.value !== "TR" })
|
|
1025
|
+
}, null, 14, il),
|
|
1026
|
+
v("rect", {
|
|
1027
|
+
x: x.value[n.value].br.x,
|
|
1028
|
+
y: x.value[n.value].br.y,
|
|
1029
|
+
height: "20",
|
|
1030
|
+
width: "20",
|
|
1031
|
+
fill: x.value[n.value].br.fill,
|
|
1032
|
+
style: k(`cursor: pointer; opacity: ${n.value === "BR" ? 1 : 0.2}`),
|
|
1033
|
+
onClick: u[12] || (u[12] = (a) => Y("BR")),
|
|
1034
|
+
class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": n.value !== "BR" })
|
|
1035
|
+
}, null, 14, nl),
|
|
1036
|
+
v("rect", {
|
|
1037
|
+
x: x.value[n.value].bl.x,
|
|
1038
|
+
y: x.value[n.value].bl.y,
|
|
1039
|
+
height: "20",
|
|
1040
|
+
width: "20",
|
|
1041
|
+
fill: x.value[n.value].bl.fill,
|
|
1042
|
+
style: k(`cursor: pointer; opacity: ${n.value === "BL" ? 1 : 0.2}`),
|
|
1043
|
+
onClick: u[13] || (u[13] = (a) => Y("BL")),
|
|
1044
|
+
class: z({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": n.value !== "BL" })
|
|
1045
|
+
}, null, 14, vl),
|
|
1046
|
+
v("path", {
|
|
1047
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1048
|
+
stroke: t.value.style.chart.backgroundColor,
|
|
1049
|
+
"stroke-width": 1,
|
|
1050
|
+
d: x.value[n.value].crosshairs.horizontal
|
|
1051
|
+
}, null, 8, dl),
|
|
1052
|
+
v("path", {
|
|
1053
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1054
|
+
stroke: t.value.style.chart.backgroundColor,
|
|
1055
|
+
"stroke-width": 1,
|
|
1056
|
+
d: x.value[n.value].crosshairs.vertical
|
|
1057
|
+
}, null, 8, cl)
|
|
1058
|
+
])) : c("", !0),
|
|
1059
|
+
S(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1060
|
+
], 14, gt)) : c("", !0),
|
|
1061
|
+
E.value ? c("", !0) : (o(), D(yt, {
|
|
1062
|
+
key: 3,
|
|
1063
|
+
config: {
|
|
1064
|
+
type: "quadrant",
|
|
1065
|
+
style: {
|
|
1066
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1067
|
+
quadrant: {
|
|
1068
|
+
grid: {
|
|
1069
|
+
color: t.value.style.chart.layout.grid.stroke
|
|
1070
|
+
},
|
|
1071
|
+
plots: {
|
|
1072
|
+
color: t.value.style.chart.layout.grid.stroke,
|
|
1073
|
+
radius: 1
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}, null, 8, ["config"])),
|
|
1079
|
+
v("div", {
|
|
1080
|
+
ref_key: "chartLegend",
|
|
1081
|
+
ref: ne
|
|
1082
|
+
}, [
|
|
1083
|
+
t.value.style.chart.legend.show ? (o(), D(ct, {
|
|
1084
|
+
key: 0,
|
|
1085
|
+
legendSet: be.value,
|
|
1086
|
+
config: Fe.value,
|
|
1087
|
+
onClickMarker: u[14] || (u[14] = ({ legend: a }) => le(a.id))
|
|
1088
|
+
}, {
|
|
1089
|
+
item: $(({ legend: a }) => [
|
|
1090
|
+
v("div", {
|
|
1091
|
+
"data-cy-legend-item": "",
|
|
1092
|
+
onClick: (s) => le(a.id),
|
|
1093
|
+
style: k(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
|
|
1094
|
+
}, m(a.name), 13, hl)
|
|
1095
|
+
]),
|
|
1096
|
+
_: 1
|
|
1097
|
+
}, 8, ["legendSet", "config"])) : S(l.$slots, "legend", {
|
|
1098
|
+
key: 1,
|
|
1099
|
+
legend: be.value
|
|
1100
|
+
}, void 0, !0)
|
|
1101
|
+
], 512),
|
|
1102
|
+
Z(dt, {
|
|
1103
|
+
show: L.value.showTooltip && U.value,
|
|
1104
|
+
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1105
|
+
color: t.value.style.chart.tooltip.color,
|
|
1106
|
+
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
1107
|
+
borderColor: t.value.style.chart.tooltip.borderColor,
|
|
1108
|
+
borderWidth: t.value.style.chart.tooltip.borderWidth,
|
|
1109
|
+
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
1110
|
+
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1111
|
+
parent: P.value,
|
|
1112
|
+
content: te.value,
|
|
1113
|
+
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1114
|
+
}, {
|
|
1115
|
+
"tooltip-before": $(() => [
|
|
1116
|
+
S(l.$slots, "tooltip-before", ue(oe({ ...ae.value })), void 0, !0)
|
|
1117
|
+
]),
|
|
1118
|
+
"tooltip-after": $(() => [
|
|
1119
|
+
S(l.$slots, "tooltip-after", ue(oe({ ...ae.value })), void 0, !0)
|
|
1120
|
+
]),
|
|
1121
|
+
default: $(() => [
|
|
1122
|
+
t.value.style.chart.tooltip.showShape ? (o(), i("svg", yl, [
|
|
1123
|
+
Z(_e, {
|
|
1124
|
+
plot: { x: 10, y: 10 },
|
|
1125
|
+
shape: H.value.shape,
|
|
1126
|
+
color: H.value.color,
|
|
1127
|
+
radius: 8,
|
|
1128
|
+
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1129
|
+
"stroke-width": t.value.style.chart.layout.plots.outlineWidth
|
|
1130
|
+
}, null, 8, ["shape", "color", "stroke", "stroke-width"])
|
|
1131
|
+
])) : c("", !0)
|
|
1132
|
+
]),
|
|
1133
|
+
_: 3
|
|
1134
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
|
|
1135
|
+
E.value ? (o(), D(bt, {
|
|
1136
|
+
key: 4,
|
|
1137
|
+
hideDetails: "",
|
|
1138
|
+
config: {
|
|
1139
|
+
open: L.value.showTable,
|
|
1140
|
+
maxHeight: 1e4,
|
|
1141
|
+
body: {
|
|
1142
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1143
|
+
color: t.value.style.chart.color
|
|
1144
|
+
},
|
|
1145
|
+
head: {
|
|
1146
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1147
|
+
color: t.value.style.chart.color
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}, {
|
|
1151
|
+
content: $(() => [
|
|
1152
|
+
Z(ht, {
|
|
1153
|
+
colNames: j.value.colNames,
|
|
1154
|
+
head: j.value.head,
|
|
1155
|
+
body: j.value.body,
|
|
1156
|
+
config: j.value.config,
|
|
1157
|
+
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1158
|
+
onClose: u[15] || (u[15] = (a) => L.value.showTable = !1)
|
|
1159
|
+
}, {
|
|
1160
|
+
th: $(({ th: a }) => [
|
|
1161
|
+
Ie(m(a), 1)
|
|
1162
|
+
]),
|
|
1163
|
+
td: $(({ td: a }) => [
|
|
1164
|
+
v("div", {
|
|
1165
|
+
innerHTML: a.name || a
|
|
1166
|
+
}, null, 8, bl)
|
|
1167
|
+
]),
|
|
1168
|
+
_: 1
|
|
1169
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1170
|
+
]),
|
|
1171
|
+
_: 1
|
|
1172
|
+
}, 8, ["config"])) : c("", !0)
|
|
1173
|
+
], 14, pt));
|
|
1174
|
+
}
|
|
1175
|
+
}, Tl = /* @__PURE__ */ ft(fl, [["__scopeId", "data-v-a556d197"]]);
|
|
1176
|
+
export {
|
|
1177
|
+
Tl as default
|
|
1178
|
+
};
|