vue-data-ui 3.1.3 → 3.1.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/dist/{Arrow-DBaAWGvq.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BmN9jTP8.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-BcOSijbz.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-D1yNPt76.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-Cm8Tt9PQ.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-5qvgVkrY.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D3QGd7vP.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-0XlRFsI_.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-CyH7Ip2i.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-DiplSMFy.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-VveQSwlw.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-CqYBs02Y.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-ZmwlARCV.js → UserOptions-CnJxN2Vo.js} +29 -29
- package/dist/{dom-to-png-DGA4a3xT.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-DSrvx9J6.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-CaxArMHL.js → index-BkfuZCRT.js} +7 -2
- package/dist/{pdf-BG8PiGFH.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmtFf4bt.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-tWT02_6S.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-BYtPmEo8.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-DVb8r5z7.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BLKyWpz7.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-DUlNpLir.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-LLqbXP1m.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-CcYIlcKF.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BKmts_u4.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-C9l_NpXu.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-H7xS6aBC.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-CAW0IOdY.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-CK5YhCqM.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-NLyZgTGF.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CyGUrKWU.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-Cf5pvEzD.js → vue-ui-dashboard-C7xIcrvD.js} +79 -80
- package/dist/{vue-ui-digits-BZWwwp7c.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-g1WHrj6G.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-CaEYMVZj.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-BArS1nXS.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-BR0CB5qt.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-D2OCItvq.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-qgGF1AAf.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-BIXmGyQL.js → vue-ui-gauge-CFUA5ORH.js} +8 -8
- package/dist/{vue-ui-gizmo-DHEoS051.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-tRzq9BnI.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-DmwHhrDk.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-C2b2R5i1.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bs1Mi1tD.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BsUvf2v7.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-D3JIpVvX.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-dJEgQXTH.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-D8dF1DdA.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-LmFsg7UA.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-C4O8ki4N.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-6bEtTQBG.js → vue-ui-quick-chart-CJ2Wdln9.js} +152 -150
- package/dist/{vue-ui-radar-CfjGWGk3.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-D3WSs2OD.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-DzTfi7Tf.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-NtYOJvDy.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-CYQ4i71V.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-meJEHdAD.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-BtILTxx-.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-B5bELpYD.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-lixdWq_N.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-CaGPav-J.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZBGYDjs.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Bp6KxpjH.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-CF-EAZa6.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cj1LAYC8.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-BrzKhqAK.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-BfVVaSFn.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-CBzNgzVP.js → vue-ui-table-BItmKbvF.js} +156 -121
- package/dist/{vue-ui-table-heatmap-CKz5bA7N.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-O-Z0YH6u.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-DpNyTGNH.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-uvshaRMI.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-A8Akuz-q.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-Dvmuo3tM.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-eMgRMSKN.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-Cm8VfnG8.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-Bhsklf_m.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-C9HGLsG4.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-B_MrjwGJ.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-DnYJw2aS.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-C0Snw0Dz.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-DG99wPTy.js +0 -604
- package/dist/Tooltip-CP0tVHAf.js +0 -161
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as wt, watch as Ue, shallowRef as Ve, onMounted as _t, onBeforeUnmount as $t, createElementBlock as u, openBlock as
|
|
2
|
-
import { u as xt, c as
|
|
1
|
+
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as wt, watch as Ue, shallowRef as Ve, onMounted as _t, onBeforeUnmount as $t, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as J, normalizeClass as X, createBlock as P, createCommentVNode as d, createElementVNode as $, createVNode as K, createSlots as We, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as M, Fragment as O, renderList as I, toDisplayString as E, Teleport as Tt, resolveDynamicComponent as At, mergeProps as Pt, createTextVNode as ve, nextTick as Ge } from "vue";
|
|
2
|
+
import { u as xt, c as St, t as Ft, a as Ot, p as N, b as It, o as Nt, f as U, d as Lt, g as Xe, e as Ye, R as He, h as Rt, k as je, i as Y, X as zt, s as de, x as Dt, S as qe, v as Bt, w as Mt, y as Et, z as Ut } from "./index-BkfuZCRT.js";
|
|
3
3
|
import { t as Vt, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Gt, B as Xt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Yt } from "./usePrinter-
|
|
6
|
-
import { u as Je } from "./useNestedProp-
|
|
5
|
+
import { u as Yt } from "./usePrinter-CEdg3j8S.js";
|
|
6
|
+
import { u as Je } from "./useNestedProp-BMzw9VUz.js";
|
|
7
7
|
import { u as Ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { u as qt } from "./useAutoSizeLabelsInsideViewbox-
|
|
10
|
-
import Jt from "./img-
|
|
11
|
-
import Kt from "./Title-
|
|
12
|
-
import Qt from "./Legend-
|
|
9
|
+
import { u as qt } from "./useAutoSizeLabelsInsideViewbox-DR2HExYc.js";
|
|
10
|
+
import Jt from "./img-Neec0VVb.js";
|
|
11
|
+
import Kt from "./Title-ydtId0LC.js";
|
|
12
|
+
import Qt from "./Legend-nPGcCxG_.js";
|
|
13
13
|
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "height"], la = ["id"],
|
|
14
|
+
const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "height"], la = ["id"], sa = ["stop-color"], na = ["stop-color"], ra = { key: 1 }, ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ia = { key: 0 }, ca = ["d", "stroke", "stroke-width"], va = ["d", "stroke", "stroke-width"], da = { key: 2 }, pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ha = ["points", "stroke", "stroke-width"], ga = ["points", "stroke", "stroke-width", "fill"], fa = { key: 3 }, ma = ["cx", "cy", "fill", "r", "stroke"], ya = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
17
|
}, ba = ["id"], ka = ["onClick"], Ca = {
|
|
@@ -35,13 +35,13 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
37
|
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
38
|
-
const et = _(() => import("./Tooltip-
|
|
38
|
+
const et = _(() => import("./Tooltip-oeu9knGI.js")), tt = _(() => import("./BaseIcon-BQQGRQ2U.js")), at = _(() => import("./vue-ui-sparkbar-C2YRX4mJ.js")), ot = _(() => import("./vue-ui-accordion-DFxAHGEZ.js")), lt = _(() => import("./DataTable-D6voeZvO.js")), st = _(() => import("./PenAndPaper-C6tiapdo.js")), nt = _(() => import("./UserOptions-CnJxN2Vo.js")), rt = _(() => import("./PackageVersion-BeStrsPr.js")), ut = _(() => import("./BaseDraggableDialog-BO4B1Kwa.js")), { vue_ui_radar: it } = xt(), x = Ke, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(St()), Q = c(!1), Z = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), me = c(null), ye = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), V = c(null), ee = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Gt({
|
|
39
39
|
...wt(x),
|
|
40
40
|
FINAL_CONFIG: e,
|
|
41
41
|
prepareConfig: oe,
|
|
42
42
|
callback: () => {
|
|
43
43
|
Promise.resolve().then(async () => {
|
|
44
|
-
await Ge(),
|
|
44
|
+
await Ge(), y.value.showTable = e.value.table.show;
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
47
|
skeletonDataset: {
|
|
@@ -55,7 +55,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
55
55
|
{ name: "_", values: [0.6], target: 1 }
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: Ft({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
userOptions: { show: !1 },
|
|
@@ -93,11 +93,11 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
93
93
|
userConfig: It.vue_ui_radar[t.theme] || x.config,
|
|
94
94
|
defaultConfig: t
|
|
95
95
|
}),
|
|
96
|
-
customPalette:
|
|
96
|
+
customPalette: Ot[t.theme] || N
|
|
97
97
|
} : t;
|
|
98
98
|
}
|
|
99
99
|
Ue(() => x.config, (t) => {
|
|
100
|
-
e.value = oe(), te.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1,
|
|
100
|
+
e.value = oe(), te.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
101
101
|
}, { deep: !0 });
|
|
102
102
|
const T = Ve(null), L = Ve(null), R = v(() => e.value.debug);
|
|
103
103
|
function Ae() {
|
|
@@ -111,8 +111,8 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
111
111
|
chart: C.value,
|
|
112
112
|
title: e.value.style.chart.title.text ? ge.value : null,
|
|
113
113
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
114
|
-
source:
|
|
115
|
-
noTitle:
|
|
114
|
+
source: me.value,
|
|
115
|
+
noTitle: ye.value
|
|
116
116
|
});
|
|
117
117
|
requestAnimationFrame(() => {
|
|
118
118
|
i.value.width = a, i.value.height = o, ze();
|
|
@@ -127,11 +127,11 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
127
127
|
}), $t(() => {
|
|
128
128
|
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
|
|
129
129
|
});
|
|
130
|
-
const { isPrinting: Pe, isImaging: xe, generatePdf:
|
|
130
|
+
const { isPrinting: Pe, isImaging: xe, generatePdf: Se, generateImage: Fe } = Yt({
|
|
131
131
|
elementId: `vue-ui-radar_${b.value}`,
|
|
132
132
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
133
133
|
options: e.value.userOptions.print
|
|
134
|
-
}), ct = v(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
134
|
+
}), ct = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = v(() => Lt(e.value.customPalette)), y = c({
|
|
135
135
|
dataLabels: {
|
|
136
136
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
137
137
|
},
|
|
@@ -222,12 +222,12 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
222
222
|
}), w.value.categories.map((t, a) => ({
|
|
223
223
|
name: t.name,
|
|
224
224
|
categoryId: `radar_category_${b.value}_${a}`,
|
|
225
|
-
color: Ye(t.color) ||
|
|
225
|
+
color: Ye(t.color) || Oe.value[a] || N[a] || N[a % N.length],
|
|
226
226
|
prefix: t.prefix ?? "",
|
|
227
227
|
suffix: t.suffix ?? ""
|
|
228
228
|
})))), k = v(() => w.value.series.map((t, a) => ({
|
|
229
229
|
...t,
|
|
230
|
-
color: Ye(t.color) ||
|
|
230
|
+
color: Ye(t.color) || Oe.value[a] || N[a] || N[a % N.length],
|
|
231
231
|
serieId: `radar_serie_${b.value}_${a}`,
|
|
232
232
|
formatter: t.formatter || null
|
|
233
233
|
}))), Ne = v(() => Math.max(...k.value.flatMap((t) => t.values))), Le = v(() => k.value.length), le = v(() => Math.min(i.value.width, i.value.height) / 3), Re = v(() => He({
|
|
@@ -255,11 +255,11 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
255
255
|
};
|
|
256
256
|
}).map((t) => ({
|
|
257
257
|
...t,
|
|
258
|
-
labelX:
|
|
259
|
-
labelY:
|
|
260
|
-
labelAnchor:
|
|
258
|
+
labelX: se(t).x,
|
|
259
|
+
labelY: se(t).y,
|
|
260
|
+
labelAnchor: se(t).anchor
|
|
261
261
|
})));
|
|
262
|
-
function
|
|
262
|
+
function se({ x: t, y: a }) {
|
|
263
263
|
let o = "middle";
|
|
264
264
|
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 + 1 && (a += 20), a < i.value.height / 2 - 1 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
265
265
|
}
|
|
@@ -273,23 +273,23 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
273
273
|
sizeRef: gt,
|
|
274
274
|
labelClass: ".vue-ui-radar-apex-label"
|
|
275
275
|
});
|
|
276
|
-
function ft({ centerX: t, centerY: a, apexX: o, apexY: l, proportion:
|
|
276
|
+
function ft({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
|
|
277
277
|
return {
|
|
278
|
-
x: t + (o - t) *
|
|
279
|
-
y: a + (l - a) *
|
|
278
|
+
x: t + (o - t) * n,
|
|
279
|
+
y: a + (l - a) * n
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
const D = v(() => {
|
|
283
283
|
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ne.value)));
|
|
284
284
|
return f.value.map((a, o) => ({
|
|
285
285
|
...a,
|
|
286
|
-
totalProportion: Rt(t.map((l) => l[o]).reduce((l,
|
|
286
|
+
totalProportion: Rt(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / k.value.length),
|
|
287
287
|
shape: "circle",
|
|
288
288
|
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
289
289
|
segregate: () => Ie(o),
|
|
290
290
|
isSegregated: p.value.includes(o)
|
|
291
291
|
}));
|
|
292
|
-
}),
|
|
292
|
+
}), mt = v(() => ({
|
|
293
293
|
cy: "radar-div-legend",
|
|
294
294
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
295
295
|
color: e.value.style.chart.legend.color,
|
|
@@ -313,12 +313,12 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
313
313
|
r: e.value.table.td.roundingValue
|
|
314
314
|
})
|
|
315
315
|
),
|
|
316
|
-
...l.values.map((
|
|
316
|
+
...l.values.map((n, m) => `${je(
|
|
317
317
|
l.formatter,
|
|
318
|
-
|
|
319
|
-
Y({ p: f.value[
|
|
320
|
-
)} (${isNaN(
|
|
321
|
-
v:
|
|
318
|
+
n,
|
|
319
|
+
Y({ p: f.value[m].prefix, v: n, s: f.value[m].suffix, r: e.value.table.td.roundingValue })
|
|
320
|
+
)} (${isNaN(n / l.target) ? "" : Y({
|
|
321
|
+
v: n / l.target * 100,
|
|
322
322
|
s: "%",
|
|
323
323
|
r: e.value.table.td.roundingPercentage
|
|
324
324
|
})})`)
|
|
@@ -336,15 +336,15 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
336
336
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
337
337
|
};
|
|
338
338
|
return { head: t, body: a, config: o, colNames: t };
|
|
339
|
-
}), j = c(null),
|
|
340
|
-
function
|
|
339
|
+
}), j = c(null), ne = c([]), re = c(null);
|
|
340
|
+
function yt(t, a) {
|
|
341
341
|
Q.value = !1, j.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
342
342
|
}
|
|
343
343
|
function bt(t, a) {
|
|
344
344
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
345
345
|
}
|
|
346
346
|
function kt(t, a) {
|
|
347
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
347
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ne.value = [], j.value = a, Q.value = !0;
|
|
348
348
|
let o = "";
|
|
349
349
|
re.value = {
|
|
350
350
|
datapoint: t,
|
|
@@ -371,13 +371,13 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
371
371
|
});
|
|
372
372
|
else {
|
|
373
373
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
374
|
-
for (let
|
|
375
|
-
p.value.includes(
|
|
376
|
-
name: f.value[
|
|
377
|
-
value: t.values[
|
|
378
|
-
color: f.value[
|
|
374
|
+
for (let n = 0; n < t.values.length; n += 1)
|
|
375
|
+
p.value.includes(n) || ne.value.push({
|
|
376
|
+
name: f.value[n].name,
|
|
377
|
+
value: t.values[n] / t.target * 100,
|
|
378
|
+
color: f.value[n].color,
|
|
379
379
|
suffix: "%)",
|
|
380
|
-
prefix: `${Y({ p: f.value[
|
|
380
|
+
prefix: `${Y({ p: f.value[n].prefix ?? "", v: t.values[n], s: f.value[n].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
381
381
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
382
382
|
formatter: t.formatter
|
|
383
383
|
});
|
|
@@ -386,22 +386,22 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
386
386
|
}
|
|
387
387
|
function ue(t = null) {
|
|
388
388
|
Ge(() => {
|
|
389
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((
|
|
389
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((F) => [[F.name], ["%"]])], l = w.value.series.map((F, _a) => [F.name, F.target, ...F.values.flatMap((ce) => [
|
|
390
390
|
ce,
|
|
391
|
-
isNaN(ce /
|
|
392
|
-
])]),
|
|
393
|
-
t ? t(
|
|
391
|
+
isNaN(ce / F.target) ? "" : ce / F.target * 100
|
|
392
|
+
])]), n = a.concat([o]).concat(l), m = Bt(n);
|
|
393
|
+
t ? t(m) : Mt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const S = c(!1);
|
|
397
397
|
function De(t) {
|
|
398
|
-
|
|
398
|
+
S.value = t, he.value += 1;
|
|
399
399
|
}
|
|
400
400
|
function Be() {
|
|
401
|
-
|
|
401
|
+
y.value.showTable = !y.value.showTable;
|
|
402
402
|
}
|
|
403
403
|
function Me() {
|
|
404
|
-
|
|
404
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
405
405
|
}
|
|
406
406
|
const q = c(!1);
|
|
407
407
|
function ie() {
|
|
@@ -409,10 +409,10 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
409
409
|
}
|
|
410
410
|
async function Ct({ scale: t = 2 } = {}) {
|
|
411
411
|
if (!C.value) return;
|
|
412
|
-
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri:
|
|
412
|
+
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: n, base64: m } = await Jt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
413
413
|
return {
|
|
414
|
-
imageUri:
|
|
415
|
-
base64:
|
|
414
|
+
imageUri: n,
|
|
415
|
+
base64: m,
|
|
416
416
|
title: e.value.style.chart.title.text,
|
|
417
417
|
width: a,
|
|
418
418
|
height: o,
|
|
@@ -420,7 +420,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
422
|
const G = v(() => {
|
|
423
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
423
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = y.value.showTable;
|
|
424
424
|
return {
|
|
425
425
|
component: t ? ut : ot,
|
|
426
426
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -429,7 +429,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
429
429
|
color: e.value.table.th.color,
|
|
430
430
|
headerColor: e.value.table.th.color,
|
|
431
431
|
headerBg: e.value.table.th.backgroundColor,
|
|
432
|
-
isFullscreen:
|
|
432
|
+
isFullscreen: S.value,
|
|
433
433
|
fullscreenParent: C.value,
|
|
434
434
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
435
435
|
} : {
|
|
@@ -449,24 +449,24 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
});
|
|
452
|
-
Ue(() =>
|
|
452
|
+
Ue(() => y.value.showTable, (t) => {
|
|
453
453
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
454
454
|
});
|
|
455
455
|
function Ee() {
|
|
456
|
-
|
|
456
|
+
y.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
457
457
|
}
|
|
458
458
|
return Qe({
|
|
459
459
|
getData: pt,
|
|
460
460
|
getImage: Ct,
|
|
461
|
-
generatePdf:
|
|
461
|
+
generatePdf: Se,
|
|
462
462
|
generateCsv: ue,
|
|
463
|
-
generateImage:
|
|
463
|
+
generateImage: Fe,
|
|
464
464
|
toggleTable: Be,
|
|
465
465
|
toggleTooltip: Me,
|
|
466
466
|
toggleAnnotator: ie,
|
|
467
467
|
toggleFullscreen: De
|
|
468
|
-
}), (t, a) => (
|
|
469
|
-
class: X(`vue-ui-radar ${
|
|
468
|
+
}), (t, a) => (s(), u("div", {
|
|
469
|
+
class: X(`vue-ui-radar ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
470
470
|
ref_key: "radarChart",
|
|
471
471
|
ref: C,
|
|
472
472
|
id: `vue-ui-radar_${b.value}`,
|
|
@@ -474,7 +474,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
474
474
|
onMouseenter: a[2] || (a[2] = () => r($e)(!0)),
|
|
475
475
|
onMouseleave: a[3] || (a[3] = () => r($e)(!1))
|
|
476
476
|
}, [
|
|
477
|
-
e.value.userOptions.buttons.annotator ? (
|
|
477
|
+
e.value.userOptions.buttons.annotator ? (s(), P(r(st), {
|
|
478
478
|
key: 0,
|
|
479
479
|
svgRef: r(ae),
|
|
480
480
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -482,20 +482,20 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
482
482
|
active: q.value,
|
|
483
483
|
onClose: ie
|
|
484
484
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
485
|
-
ct.value ? (
|
|
485
|
+
ct.value ? (s(), u("div", {
|
|
486
486
|
key: 1,
|
|
487
487
|
ref_key: "noTitle",
|
|
488
|
-
ref:
|
|
488
|
+
ref: ye,
|
|
489
489
|
class: "vue-data-ui-no-title-space",
|
|
490
490
|
style: "height:36px; width: 100%;background:transparent"
|
|
491
491
|
}, null, 512)) : d("", !0),
|
|
492
|
-
e.value.style.chart.title.text ? (
|
|
492
|
+
e.value.style.chart.title.text ? (s(), u("div", {
|
|
493
493
|
key: 2,
|
|
494
494
|
ref_key: "chartTitle",
|
|
495
495
|
ref: ge,
|
|
496
496
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
497
497
|
}, [
|
|
498
|
-
(
|
|
498
|
+
(s(), P(Kt, {
|
|
499
499
|
key: `title_${be.value}`,
|
|
500
500
|
config: {
|
|
501
501
|
title: {
|
|
@@ -512,7 +512,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
512
512
|
$("div", {
|
|
513
513
|
id: `legend-top-${b.value}`
|
|
514
514
|
}, null, 8, ta),
|
|
515
|
-
e.value.userOptions.show && pe.value && (r(Te) || r(te)) ? (
|
|
515
|
+
e.value.userOptions.show && pe.value && (r(Te) || r(te)) ? (s(), P(r(nt), {
|
|
516
516
|
ref_key: "userOptionsRef",
|
|
517
517
|
ref: ee,
|
|
518
518
|
key: `user_options_${he.value}`,
|
|
@@ -527,8 +527,8 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
527
527
|
hasXls: e.value.userOptions.buttons.csv,
|
|
528
528
|
hasTable: e.value.userOptions.buttons.table,
|
|
529
529
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
530
|
-
isFullscreen:
|
|
531
|
-
isTooltip:
|
|
530
|
+
isFullscreen: S.value,
|
|
531
|
+
isTooltip: y.value.showTooltip,
|
|
532
532
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
533
533
|
chartElement: C.value,
|
|
534
534
|
position: e.value.userOptions.position,
|
|
@@ -538,9 +538,9 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
538
538
|
printScale: e.value.userOptions.print.scale,
|
|
539
539
|
tableDialog: e.value.table.useDialog,
|
|
540
540
|
onToggleFullscreen: De,
|
|
541
|
-
onGeneratePdf: r(
|
|
541
|
+
onGeneratePdf: r(Se),
|
|
542
542
|
onGenerateCsv: ue,
|
|
543
|
-
onGenerateImage: r(
|
|
543
|
+
onGenerateImage: r(Fe),
|
|
544
544
|
onToggleTable: Be,
|
|
545
545
|
onToggleTooltip: Me,
|
|
546
546
|
onToggleAnnotator: ie,
|
|
@@ -605,16 +605,16 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
605
605
|
key: "7"
|
|
606
606
|
} : void 0
|
|
607
607
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
608
|
-
(
|
|
608
|
+
(s(), u("svg", {
|
|
609
609
|
ref_key: "svgRef",
|
|
610
610
|
ref: ae,
|
|
611
611
|
xmlns: r(zt),
|
|
612
|
-
class: X({ "vue-data-ui-fullscreen--on":
|
|
612
|
+
class: X({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
613
613
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
614
614
|
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
615
615
|
}, [
|
|
616
616
|
K(r(rt)),
|
|
617
|
-
t.$slots["chart-background"] ? (
|
|
617
|
+
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
618
618
|
key: 0,
|
|
619
619
|
x: 0,
|
|
620
620
|
y: 0,
|
|
@@ -627,7 +627,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
627
627
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
628
628
|
], 8, oa)) : d("", !0),
|
|
629
629
|
$("defs", null, [
|
|
630
|
-
(
|
|
630
|
+
(s(!0), u(O, null, I(f.value, (o, l) => (s(), u("radialGradient", {
|
|
631
631
|
cx: "50%",
|
|
632
632
|
cy: "50%",
|
|
633
633
|
r: "50%",
|
|
@@ -638,15 +638,15 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
638
638
|
$("stop", {
|
|
639
639
|
offset: "0%",
|
|
640
640
|
"stop-color": r(de)(r(Dt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
641
|
-
}, null, 8,
|
|
641
|
+
}, null, 8, sa),
|
|
642
642
|
$("stop", {
|
|
643
643
|
offset: "100%",
|
|
644
644
|
"stop-color": r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
645
|
-
}, null, 8,
|
|
645
|
+
}, null, 8, na)
|
|
646
646
|
], 8, la))), 256))
|
|
647
647
|
]),
|
|
648
|
-
e.value.style.chart.layout.grid.show ? (
|
|
649
|
-
(
|
|
648
|
+
e.value.style.chart.layout.grid.show ? (s(), u("g", ra, [
|
|
649
|
+
(s(!0), u(O, null, I(A.value, (o) => (s(), u("line", {
|
|
650
650
|
x1: i.value.width / 2,
|
|
651
651
|
y1: i.value.height / 2,
|
|
652
652
|
x2: o.x,
|
|
@@ -654,8 +654,8 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
654
654
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
655
655
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
656
656
|
}, null, 8, ua))), 256)),
|
|
657
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (
|
|
658
|
-
(
|
|
657
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g", ia, [
|
|
658
|
+
(s(!0), u(O, null, I(ht.value, (o) => (s(), u("path", {
|
|
659
659
|
d: r(He)({
|
|
660
660
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
661
661
|
radius: o,
|
|
@@ -676,32 +676,32 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
676
676
|
"stroke-linejoin": "round",
|
|
677
677
|
"stroke-linecap": "round"
|
|
678
678
|
}, null, 8, va),
|
|
679
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
680
|
-
(
|
|
679
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g", da, [
|
|
680
|
+
(s(!0), u(O, null, I(A.value, (o, l) => (s(), u("text", {
|
|
681
681
|
class: "vue-ui-radar-apex-label",
|
|
682
682
|
x: o.labelX,
|
|
683
683
|
y: o.labelY,
|
|
684
684
|
"text-anchor": o.labelAnchor,
|
|
685
685
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
686
686
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
687
|
-
onMouseenter: (
|
|
688
|
-
onMouseleave: (
|
|
689
|
-
onClick: (
|
|
687
|
+
onMouseenter: (n) => kt(o, l),
|
|
688
|
+
onMouseleave: (n) => yt(o, l),
|
|
689
|
+
onClick: (n) => bt(o, l)
|
|
690
690
|
}, E(o.name), 41, pa))), 256))
|
|
691
691
|
])) : d("", !0),
|
|
692
|
-
(
|
|
692
|
+
(s(!0), u(O, null, I(f.value, (o, l) => (s(), u("g", null, [
|
|
693
693
|
$("g", null, [
|
|
694
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (
|
|
694
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
695
695
|
key: 0,
|
|
696
|
-
points: r(qe)(A.value.map((
|
|
696
|
+
points: r(qe)(A.value.map((n) => n.plots[l]), !1, !0),
|
|
697
697
|
stroke: e.value.style.chart.backgroundColor,
|
|
698
698
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
699
699
|
fill: "none",
|
|
700
700
|
class: X({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": z.value && W.value === l && e.value.useCssAnimation })
|
|
701
701
|
}, null, 10, ha)) : d("", !0),
|
|
702
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (
|
|
702
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
703
703
|
key: 1,
|
|
704
|
-
points: r(qe)(A.value.map((
|
|
704
|
+
points: r(qe)(A.value.map((n) => n.plots[l]), !1, !0),
|
|
705
705
|
stroke: o.color,
|
|
706
706
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
707
707
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
@@ -709,28 +709,28 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
709
709
|
}, null, 10, ga)) : d("", !0)
|
|
710
710
|
])
|
|
711
711
|
]))), 256)),
|
|
712
|
-
e.value.style.chart.layout.plots.show ? (
|
|
713
|
-
(
|
|
714
|
-
(
|
|
715
|
-
cx:
|
|
716
|
-
cy:
|
|
717
|
-
fill: p.value.includes(
|
|
712
|
+
e.value.style.chart.layout.plots.show ? (s(), u("g", fa, [
|
|
713
|
+
(s(!0), u(O, null, I(A.value, (o, l) => (s(), u("g", null, [
|
|
714
|
+
(s(!0), u(O, null, I(o.plots, (n, m) => (s(), u("circle", {
|
|
715
|
+
cx: n.x,
|
|
716
|
+
cy: n.y,
|
|
717
|
+
fill: p.value.includes(m) ? "transparent" : f.value[m] ? f.value[m].color : "transparent",
|
|
718
718
|
r: j.value !== null && j.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
719
|
-
stroke: p.value.includes(
|
|
719
|
+
stroke: p.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
720
720
|
"stroke-width": 0.5,
|
|
721
|
-
class: X({ "animated-out": p.value.includes(
|
|
722
|
-
}, null, 10,
|
|
721
|
+
class: X({ "animated-out": p.value.includes(m) && e.value.useCssAnimation, "animated-in": z.value && W.value === m && e.value.useCssAnimation })
|
|
722
|
+
}, null, 10, ma))), 256))
|
|
723
723
|
]))), 256))
|
|
724
724
|
])) : d("", !0),
|
|
725
725
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
726
726
|
], 14, aa)),
|
|
727
|
-
t.$slots.watermark ? (
|
|
727
|
+
t.$slots.watermark ? (s(), u("div", ya, [
|
|
728
728
|
g(t.$slots, "watermark", B(M({ isPrinting: r(Pe) || r(xe) })), void 0, !0)
|
|
729
729
|
])) : d("", !0),
|
|
730
730
|
$("div", {
|
|
731
731
|
id: `legend-bottom-${b.value}`
|
|
732
732
|
}, null, 8, ba),
|
|
733
|
-
we.value ? (
|
|
733
|
+
we.value ? (s(), P(Tt, {
|
|
734
734
|
key: 5,
|
|
735
735
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
736
736
|
}, [
|
|
@@ -738,16 +738,16 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
738
738
|
ref_key: "chartLegend",
|
|
739
739
|
ref: fe
|
|
740
740
|
}, [
|
|
741
|
-
e.value.style.chart.legend.show ? (
|
|
741
|
+
e.value.style.chart.legend.show ? (s(), P(Qt, {
|
|
742
742
|
key: `legend_${Ce.value}`,
|
|
743
743
|
legendSet: D.value,
|
|
744
|
-
config:
|
|
744
|
+
config: mt.value,
|
|
745
745
|
onClickMarker: a[0] || (a[0] = ({ i: o }) => Ie(o))
|
|
746
746
|
}, {
|
|
747
747
|
item: h(({ legend: o, index: l }) => [
|
|
748
|
-
r(_e) ? d("", !0) : (
|
|
748
|
+
r(_e) ? d("", !0) : (s(), u("div", {
|
|
749
749
|
key: 0,
|
|
750
|
-
onClick: (
|
|
750
|
+
onClick: (n) => o.segregate(),
|
|
751
751
|
style: J(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
752
752
|
}, E(o.name) + ": " + E(r(Y)({
|
|
753
753
|
v: o.totalProportion * 100,
|
|
@@ -762,16 +762,16 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
762
762
|
}, void 0, !0)
|
|
763
763
|
], 512)
|
|
764
764
|
], 8, ["to"])) : d("", !0),
|
|
765
|
-
t.$slots.source ? (
|
|
765
|
+
t.$slots.source ? (s(), u("div", {
|
|
766
766
|
key: 6,
|
|
767
767
|
ref_key: "source",
|
|
768
|
-
ref:
|
|
768
|
+
ref: me,
|
|
769
769
|
dir: "auto"
|
|
770
770
|
}, [
|
|
771
771
|
g(t.$slots, "source", {}, void 0, !0)
|
|
772
772
|
], 512)) : d("", !0),
|
|
773
773
|
K(r(et), {
|
|
774
|
-
show:
|
|
774
|
+
show: y.value.showTooltip && Q.value,
|
|
775
775
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
776
776
|
color: e.value.style.chart.tooltip.color,
|
|
777
777
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -783,18 +783,20 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
783
783
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
784
784
|
parent: C.value,
|
|
785
785
|
content: Z.value,
|
|
786
|
-
isFullscreen:
|
|
786
|
+
isFullscreen: S.value,
|
|
787
787
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
788
788
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
789
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
789
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
790
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
791
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
790
792
|
}, {
|
|
791
793
|
"tooltip-before": h(() => [
|
|
792
794
|
g(t.$slots, "tooltip-before", B(M({ ...re.value })), void 0, !0)
|
|
793
795
|
]),
|
|
794
796
|
"tooltip-after": h(() => [
|
|
795
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (
|
|
797
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div", Ca, [
|
|
796
798
|
K(r(at), {
|
|
797
|
-
dataset:
|
|
799
|
+
dataset: ne.value,
|
|
798
800
|
config: vt.value,
|
|
799
801
|
backgroundOpacity: 0
|
|
800
802
|
}, null, 8, ["dataset", "config"])
|
|
@@ -802,14 +804,14 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
802
804
|
g(t.$slots, "tooltip-after", B(M({ ...re.value })), void 0, !0)
|
|
803
805
|
]),
|
|
804
806
|
_: 3
|
|
805
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
806
|
-
pe.value ? (
|
|
807
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
808
|
+
pe.value ? (s(), P(At(G.value.component), Pt({ key: 7 }, G.value.props, {
|
|
807
809
|
ref_key: "tableUnit",
|
|
808
810
|
ref: V,
|
|
809
811
|
onClose: Ee
|
|
810
812
|
}), We({
|
|
811
813
|
content: h(() => [
|
|
812
|
-
(
|
|
814
|
+
(s(), P(r(lt), {
|
|
813
815
|
key: `table_${ke.value}`,
|
|
814
816
|
colNames: H.value.colNames,
|
|
815
817
|
head: H.value.head,
|
|
@@ -854,10 +856,10 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
854
856
|
key: "1"
|
|
855
857
|
} : void 0
|
|
856
858
|
]), 1040)) : d("", !0),
|
|
857
|
-
r(_e) ? (
|
|
859
|
+
r(_e) ? (s(), P(Xt, { key: 8 })) : d("", !0)
|
|
858
860
|
], 46, ea));
|
|
859
861
|
}
|
|
860
|
-
}, Da = /* @__PURE__ */ Zt(wa, [["__scopeId", "data-v-
|
|
862
|
+
}, Da = /* @__PURE__ */ Zt(wa, [["__scopeId", "data-v-b5f26168"]]);
|
|
861
863
|
export {
|
|
862
864
|
Da as default
|
|
863
865
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe, f as ae, k as b, i as _, X as z, x as X, _ as I } from "./index-
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, f as ae, k as b, i as _, X as z, x as X, _ as I } from "./index-BkfuZCRT.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-BMzw9VUz.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|