vue-data-ui 3.0.1 → 3.0.3
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-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
- package/package.json +1 -1
- package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as R, computed as d, ref as r, toRefs as dt, watch as X, shallowRef as ze, onMounted as ht, onBeforeUnmount as pt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as S, normalizeClass as G, createBlock as A, createCommentVNode as f, createElementVNode as P, createVNode as Ne, createSlots as ft, withCtx as g, renderSlot as h, normalizeProps as z, guardReactiveProps as N, Fragment as B, renderList as V, toDisplayString as D, Teleport as gt, createTextVNode as mt, nextTick as De } from "vue";
|
|
2
|
+
import { u as yt, c as bt, t as kt, a as wt, p as Le, b as $t, d as Ct, o as Be, f as ne, e as xt, X as Tt, i as Y, k as se, y as Ve, v as Ot, w as _t, z as At } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as It, u as St } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ye } from "./useNestedProp-BXhArS-K.js";
|
|
5
|
+
import { u as Pt } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Rt from "./Title-CINHji0n.js";
|
|
9
|
+
import zt from "./Legend-CevCqVZ5.js";
|
|
10
|
+
import Nt from "./img-CBdOMFyn.js";
|
|
11
|
+
import { u as Dt, B as Lt } from "./useLoading-D7YHNtLX.js";
|
|
12
|
+
import { u as Bt } from "./useAutoSizeLabelsInsideViewbox-C0d8h29h.js";
|
|
13
|
+
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Gt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ht = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Wt = ["id"], jt = ["stdDeviation"], qt = ["filter"], Jt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Kt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], Qt = { key: 2 }, Zt = ["onMouseenter", "onMouseleave", "onClick"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, aa = ["id"], la = ["onClick"], oa = ["innerHTML"], na = {
|
|
18
18
|
__name: "vue-ui-onion",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,14 +31,14 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(Ee, { expose: Ue, emit: Xe }) {
|
|
35
|
+
const Ge = R(() => import("./vue-ui-accordion-s_m_NJzJ.js")), He = R(() => import("./DataTable-CWzb1j8d.js")), We = R(() => import("./PackageVersion-n4qokxnx.js")), je = R(() => import("./PenAndPaper-C_R9vJkU.js")), qe = R(() => import("./Tooltip-hfdFRoLp.js")), Je = R(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_onion: Ke } = yt(), $ = Ee, ue = d(() => !!$.dataset && $.dataset.length), y = r(bt()), Qe = r(null), re = r(0), H = r(!1), W = r(""), b = r([]), T = r(null), ie = r(null), ce = r(null), ve = r(null), de = r(null), he = r(0), pe = r(0), fe = r(0), C = r(!1), ge = r(!1), e = r(K()), { loading: k, FINAL_DATASET: me, manualLoading: j } = Dt({
|
|
36
|
+
...dt($),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: K,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await De(), Oe();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -47,7 +47,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
47
47
|
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
48
48
|
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
49
49
|
],
|
|
50
|
-
skeletonConfig:
|
|
50
|
+
skeletonConfig: kt({
|
|
51
51
|
defaultConfig: e.value,
|
|
52
52
|
userConfig: {
|
|
53
53
|
userOptions: { show: !1 },
|
|
@@ -68,28 +68,28 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility:
|
|
71
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ye, keepUserOptionState: be } = Ft({ config: e.value }), { svgRef: J } = Mt({ config: e.value.style.chart.title });
|
|
72
72
|
function K() {
|
|
73
|
-
const t =
|
|
74
|
-
userConfig:
|
|
75
|
-
defaultConfig:
|
|
73
|
+
const t = Ye({
|
|
74
|
+
userConfig: $.config,
|
|
75
|
+
defaultConfig: Ke
|
|
76
76
|
});
|
|
77
77
|
return t.theme ? {
|
|
78
|
-
...
|
|
79
|
-
userConfig:
|
|
78
|
+
...Ye({
|
|
79
|
+
userConfig: $t.vue_ui_onion[t.theme] || $.config,
|
|
80
80
|
defaultConfig: t
|
|
81
81
|
}),
|
|
82
|
-
customPalette:
|
|
82
|
+
customPalette: wt[t.theme] || Le
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
|
-
X(() =>
|
|
86
|
-
|
|
85
|
+
X(() => $.config, (t) => {
|
|
86
|
+
k.value || (e.value = K()), q.value = !e.value.userOptions.showOnChartHover, Te(), he.value += 1, pe.value += 1, fe.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
87
|
}, { deep: !0 });
|
|
88
|
-
const { isPrinting:
|
|
89
|
-
elementId: `vue-ui-onion_${
|
|
88
|
+
const { isPrinting: ke, isImaging: we, generatePdf: $e, generateImage: Ce } = Pt({
|
|
89
|
+
elementId: `vue-ui-onion_${y.value}`,
|
|
90
90
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
91
91
|
options: e.value.userOptions.print
|
|
92
|
-
}),
|
|
92
|
+
}), Ze = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = d(() => Ct(e.value.customPalette)), m = r({
|
|
93
93
|
showTable: e.value.table.show,
|
|
94
94
|
showTooltip: e.value.style.chart.tooltip.show
|
|
95
95
|
});
|
|
@@ -109,31 +109,31 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
109
109
|
bottom: 64
|
|
110
110
|
},
|
|
111
111
|
minRadius: 64
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
}), O = ze(null), F = ze(null);
|
|
113
|
+
ht(() => {
|
|
114
|
+
ge.value = !0, Te();
|
|
115
115
|
});
|
|
116
|
-
const
|
|
116
|
+
const tt = d({
|
|
117
117
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
118
118
|
set: (t) => t
|
|
119
|
-
}), { autoSizeLabels:
|
|
119
|
+
}), { autoSizeLabels: xe } = Bt({
|
|
120
120
|
svgRef: J,
|
|
121
121
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
122
122
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
123
|
-
sizeRef:
|
|
123
|
+
sizeRef: tt,
|
|
124
124
|
labelClass: ".vue-ui-onion-label"
|
|
125
|
-
}),
|
|
125
|
+
}), at = d(() => e.value.debug);
|
|
126
126
|
let Q = null;
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
127
|
+
function Te() {
|
|
128
|
+
if (Be($.dataset) && (ne({
|
|
129
129
|
componentName: "VueUiOnion",
|
|
130
130
|
type: "dataset",
|
|
131
|
-
debug:
|
|
132
|
-
}), j.value = !0),
|
|
133
|
-
const o =
|
|
131
|
+
debug: at.value
|
|
132
|
+
}), j.value = !0), Be($.dataset) || (j.value = e.value.loading), e.value.responsive) {
|
|
133
|
+
const o = It(() => {
|
|
134
134
|
Q && clearTimeout(Q), C.value = !0;
|
|
135
|
-
let { width: a, height: l } =
|
|
136
|
-
chart:
|
|
135
|
+
let { width: a, height: l } = St({
|
|
136
|
+
chart: T.value,
|
|
137
137
|
title: e.value.style.chart.title.text ? ie.value : null,
|
|
138
138
|
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
139
139
|
source: ve.value,
|
|
@@ -141,16 +141,16 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
141
141
|
});
|
|
142
142
|
l -= 12, requestAnimationFrame(async () => {
|
|
143
143
|
n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, Q = setTimeout(() => {
|
|
144
|
-
C.value = !1,
|
|
144
|
+
C.value = !1, xe();
|
|
145
145
|
}, 0);
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
|
|
148
|
+
O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect()), O.value = new ResizeObserver(o), F.value = T.value.parentNode, O.value.observe(F.value);
|
|
149
149
|
}
|
|
150
|
-
requestAnimationFrame(
|
|
150
|
+
requestAnimationFrame(xe);
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
pt(() => {
|
|
153
|
+
O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect());
|
|
154
154
|
});
|
|
155
155
|
const c = d(() => ({
|
|
156
156
|
top: n.value.padding.top,
|
|
@@ -163,7 +163,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
163
163
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
164
164
|
minRadius: n.value.minRadius,
|
|
165
165
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
166
|
-
})),
|
|
166
|
+
})), p = d(() => (me.value.forEach((t, o) => {
|
|
167
167
|
[null, void 0].includes(t.name) && ne({
|
|
168
168
|
componentName: "VueUiOnion",
|
|
169
169
|
type: "datasetSerieAttribute",
|
|
@@ -175,71 +175,71 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
175
175
|
property: "percentage",
|
|
176
176
|
index: o
|
|
177
177
|
});
|
|
178
|
-
}),
|
|
179
|
-
const a = `onion_serie_${o}_${
|
|
178
|
+
}), me.value.map((t, o) => {
|
|
179
|
+
const a = `onion_serie_${o}_${y.value}`;
|
|
180
180
|
return {
|
|
181
181
|
...t,
|
|
182
182
|
percentage: t.percentage || 0,
|
|
183
183
|
targetPercentage: t.percentage || 0,
|
|
184
|
-
color:
|
|
184
|
+
color: xt(t.color) || et.value[o] || Le[o],
|
|
185
185
|
id: a,
|
|
186
186
|
shape: "circle",
|
|
187
|
-
opacity:
|
|
187
|
+
opacity: b.value.includes(a) ? 0.5 : 1,
|
|
188
188
|
absoluteIndex: o,
|
|
189
|
-
segregate: () =>
|
|
190
|
-
isSegregated:
|
|
189
|
+
segregate: () => _e(a),
|
|
190
|
+
isSegregated: b.value.includes(a)
|
|
191
191
|
};
|
|
192
|
-
}))),
|
|
193
|
-
X(() =>
|
|
192
|
+
}))), L = r(p.value), lt = d(() => e.value.useStartAnimation), ot = r(null), nt = d(() => Math.max(...p.value.map((t) => t.percentage))), Z = r(!1);
|
|
193
|
+
X(() => p.value, Oe, { immediate: !0, deep: !0 }), X(() => $.dataset, (t) => {
|
|
194
194
|
Array.isArray(t) && t.length > 0 && (j.value = !1);
|
|
195
195
|
}, { deep: !0 });
|
|
196
|
-
function
|
|
197
|
-
if (
|
|
196
|
+
function Oe() {
|
|
197
|
+
if (lt.value && !Z.value && !k.value) {
|
|
198
198
|
let o = function() {
|
|
199
|
-
t >=
|
|
199
|
+
t >= nt.value ? (cancelAnimationFrame(ot.value), L.value = p.value, Z.value = !0) : (L.value = p.value.map((a) => ({
|
|
200
200
|
...a,
|
|
201
201
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
202
202
|
})), t += 1, requestAnimationFrame(o), Z.value = !0);
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
L.value = p.value.map((a) => ({
|
|
205
205
|
...a,
|
|
206
206
|
percentage: 0
|
|
207
207
|
}));
|
|
208
208
|
let t = 0;
|
|
209
209
|
o();
|
|
210
210
|
} else
|
|
211
|
-
|
|
211
|
+
L.value = p.value;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const st = d(() => ({
|
|
214
214
|
cy: "onion-div-legend",
|
|
215
215
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
216
216
|
color: e.value.style.chart.legend.color,
|
|
217
217
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
218
218
|
paddingBottom: 12,
|
|
219
219
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
220
|
-
})),
|
|
221
|
-
const t = Math.min(c.value.width, c.value.height) / 2 /
|
|
220
|
+
})), ut = d(() => p.value.filter((t) => !b.value.includes(t.id)).length), I = d(() => {
|
|
221
|
+
const t = Math.min(c.value.width, c.value.height) / 2 / p.value.length;
|
|
222
222
|
return {
|
|
223
223
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
224
224
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
225
225
|
};
|
|
226
|
-
}),
|
|
227
|
-
const a = (c.value.maxRadius -
|
|
226
|
+
}), x = d(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
|
|
227
|
+
const a = (c.value.maxRadius - I.value.track) / ut.value / 2 * (1 + o), l = c.value.centerY - a;
|
|
228
228
|
return {
|
|
229
229
|
percentage: t.percentage || 0,
|
|
230
230
|
...t,
|
|
231
231
|
labelY: l,
|
|
232
232
|
radius: a,
|
|
233
|
-
path:
|
|
233
|
+
path: rt(a, t.percentage || 0)
|
|
234
234
|
};
|
|
235
235
|
}));
|
|
236
|
-
function
|
|
237
|
-
const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`,
|
|
236
|
+
function rt(t, o) {
|
|
237
|
+
const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, w = l * (1 - o / 100);
|
|
238
238
|
return {
|
|
239
239
|
bgDashArray: `${l} ${a}`,
|
|
240
240
|
bgDashOffset: 0,
|
|
241
241
|
dashArray: v,
|
|
242
|
-
dashOffset:
|
|
242
|
+
dashOffset: w,
|
|
243
243
|
fullOffset: 0,
|
|
244
244
|
active: `
|
|
245
245
|
M ${c.value.centerX},${c.value.centerY - t}
|
|
@@ -248,22 +248,22 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
248
248
|
`.trim()
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
|
|
251
|
+
const it = Xe;
|
|
252
|
+
function _e(t) {
|
|
253
|
+
b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), it("selectLegend", x.value);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
255
|
+
function ct() {
|
|
256
|
+
return x.value;
|
|
257
257
|
}
|
|
258
258
|
const ee = d(() => {
|
|
259
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o =
|
|
259
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = x.value.map((a) => [
|
|
260
260
|
a.name,
|
|
261
261
|
a.percentage,
|
|
262
262
|
a.value
|
|
263
263
|
]);
|
|
264
264
|
return { head: t, body: o };
|
|
265
265
|
}), E = d(() => {
|
|
266
|
-
const t = ee.value.head, o =
|
|
266
|
+
const t = ee.value.head, o = x.value.map((l) => [
|
|
267
267
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
268
268
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
269
269
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -282,44 +282,44 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
282
282
|
};
|
|
283
283
|
return { head: t, body: o, config: a, colNames: t };
|
|
284
284
|
});
|
|
285
|
-
function
|
|
286
|
-
|
|
287
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ee.value.head, l = ee.value.body, v = o.concat([a]).concat(l),
|
|
288
|
-
t ? t(
|
|
285
|
+
function Ae(t = null) {
|
|
286
|
+
De(() => {
|
|
287
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ee.value.head, l = ee.value.body, v = o.concat([a]).concat(l), w = Ot(v);
|
|
288
|
+
t ? t(w) : _t({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
|
|
291
|
+
const _ = r(void 0), M = r(!1);
|
|
292
|
+
function Ie(t) {
|
|
293
|
+
M.value = t, re.value += 1;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Se({ datapoint: t }) {
|
|
296
296
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
298
|
+
function Pe({ datapoint: t }) {
|
|
299
|
+
_.value = void 0, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
300
300
|
}
|
|
301
301
|
const te = r(null);
|
|
302
|
-
function
|
|
302
|
+
function Fe({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
303
303
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
304
304
|
const l = t.absoluteIndex;
|
|
305
|
-
|
|
305
|
+
_.value = o, te.value = {
|
|
306
306
|
datapoint: t,
|
|
307
307
|
seriesIndex: l,
|
|
308
|
-
series:
|
|
308
|
+
series: p.value,
|
|
309
309
|
config: e.value
|
|
310
310
|
}, H.value = a;
|
|
311
311
|
let v = "";
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
312
|
+
const w = e.value.style.chart.tooltip.customFormat;
|
|
313
|
+
if (Ve(w) && At(() => w({
|
|
314
314
|
seriesIndex: l,
|
|
315
315
|
datapoint: t,
|
|
316
|
-
series:
|
|
316
|
+
series: p.value,
|
|
317
317
|
config: e.value
|
|
318
318
|
})))
|
|
319
|
-
W.value =
|
|
319
|
+
W.value = w({
|
|
320
320
|
seriesIndex: l,
|
|
321
321
|
datapoint: t,
|
|
322
|
-
series:
|
|
322
|
+
series: p.value,
|
|
323
323
|
config: e.value
|
|
324
324
|
});
|
|
325
325
|
else {
|
|
@@ -337,69 +337,69 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
337
337
|
) : ""}${le && oe ? ")" : ""}</div>`, W.value = `<div>${v}</div>`;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Me() {
|
|
341
341
|
m.value.showTable = !m.value.showTable;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Re() {
|
|
344
344
|
m.value.showTooltip = !m.value.showTooltip;
|
|
345
345
|
}
|
|
346
346
|
const U = r(!1);
|
|
347
347
|
function ae() {
|
|
348
348
|
U.value = !U.value;
|
|
349
349
|
}
|
|
350
|
-
async function
|
|
351
|
-
if (!
|
|
352
|
-
const { width: o, height: a } =
|
|
350
|
+
async function vt({ scale: t = 2 } = {}) {
|
|
351
|
+
if (!T.value) return;
|
|
352
|
+
const { width: o, height: a } = T.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: w } = await Nt({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
353
353
|
return {
|
|
354
354
|
imageUri: v,
|
|
355
|
-
base64:
|
|
355
|
+
base64: w,
|
|
356
356
|
title: e.value.style.chart.title.text,
|
|
357
357
|
width: o,
|
|
358
358
|
height: a,
|
|
359
359
|
aspectRatio: l
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
return
|
|
363
|
-
getData:
|
|
364
|
-
getImage:
|
|
365
|
-
generatePdf:
|
|
366
|
-
generateCsv:
|
|
362
|
+
return Ue({
|
|
363
|
+
getData: ct,
|
|
364
|
+
getImage: vt,
|
|
365
|
+
generatePdf: $e,
|
|
366
|
+
generateCsv: Ae,
|
|
367
367
|
generateImage: Ce,
|
|
368
|
-
toggleTable:
|
|
369
|
-
toggleTooltip:
|
|
368
|
+
toggleTable: Me,
|
|
369
|
+
toggleTooltip: Re,
|
|
370
370
|
toggleAnnotator: ae,
|
|
371
|
-
toggleFullscreen:
|
|
371
|
+
toggleFullscreen: Ie
|
|
372
372
|
}), (t, o) => (u(), i("div", {
|
|
373
|
-
class: G(`vue-ui-onion ${
|
|
373
|
+
class: G(`vue-ui-onion ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
374
374
|
ref_key: "onionChart",
|
|
375
|
-
ref:
|
|
376
|
-
id: `vue-ui-onion_${
|
|
377
|
-
style:
|
|
378
|
-
onMouseenter: o[2] || (o[2] = () => s(
|
|
379
|
-
onMouseleave: o[3] || (o[3] = () => s(
|
|
375
|
+
ref: T,
|
|
376
|
+
id: `vue-ui-onion_${y.value}`,
|
|
377
|
+
style: S(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
378
|
+
onMouseenter: o[2] || (o[2] = () => s(ye)(!0)),
|
|
379
|
+
onMouseleave: o[3] || (o[3] = () => s(ye)(!1))
|
|
380
380
|
}, [
|
|
381
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
381
|
+
e.value.userOptions.buttons.annotator ? (u(), A(s(je), {
|
|
382
382
|
key: 0,
|
|
383
383
|
svgRef: s(J),
|
|
384
384
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
385
385
|
color: e.value.style.chart.color,
|
|
386
386
|
active: U.value,
|
|
387
387
|
onClose: ae
|
|
388
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
389
|
-
|
|
388
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
389
|
+
Ze.value ? (u(), i("div", {
|
|
390
390
|
key: 1,
|
|
391
391
|
ref_key: "noTitle",
|
|
392
392
|
ref: de,
|
|
393
393
|
class: "vue-data-ui-no-title-space",
|
|
394
394
|
style: "height:36px; width: 100%;background:transparent"
|
|
395
|
-
}, null, 512)) :
|
|
395
|
+
}, null, 512)) : f("", !0),
|
|
396
396
|
e.value.style.chart.title.text ? (u(), i("div", {
|
|
397
397
|
key: 2,
|
|
398
398
|
ref_key: "chartTitle",
|
|
399
399
|
ref: ie,
|
|
400
400
|
style: "width:100%;background:transparent"
|
|
401
401
|
}, [
|
|
402
|
-
(u(),
|
|
402
|
+
(u(), A(Rt, {
|
|
403
403
|
key: `title_${he.value}`,
|
|
404
404
|
config: {
|
|
405
405
|
title: {
|
|
@@ -412,108 +412,111 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}, null, 8, ["config"]))
|
|
415
|
-
], 512)) :
|
|
416
|
-
|
|
415
|
+
], 512)) : f("", !0),
|
|
416
|
+
P("div", {
|
|
417
|
+
id: `legend-top-${y.value}`
|
|
418
|
+
}, null, 8, Et),
|
|
419
|
+
e.value.userOptions.show && ue.value && (s(be) || s(q)) ? (u(), A(s(Je), {
|
|
417
420
|
ref_key: "details",
|
|
418
|
-
ref:
|
|
421
|
+
ref: Qe,
|
|
419
422
|
key: `user_options${re.value}`,
|
|
420
423
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
421
424
|
color: e.value.style.chart.color,
|
|
422
|
-
isImaging: s(
|
|
423
|
-
isPrinting: s(
|
|
424
|
-
uid:
|
|
425
|
+
isImaging: s(we),
|
|
426
|
+
isPrinting: s(ke),
|
|
427
|
+
uid: y.value,
|
|
425
428
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
426
429
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
427
430
|
hasImg: e.value.userOptions.buttons.img,
|
|
428
431
|
hasXls: e.value.userOptions.buttons.csv,
|
|
429
432
|
hasTable: e.value.userOptions.buttons.table,
|
|
430
433
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
431
|
-
isFullscreen:
|
|
434
|
+
isFullscreen: M.value,
|
|
432
435
|
isTooltip: m.value.showTooltip,
|
|
433
436
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
434
|
-
chartElement:
|
|
437
|
+
chartElement: T.value,
|
|
435
438
|
position: e.value.userOptions.position,
|
|
436
439
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
437
440
|
isAnnotation: U.value,
|
|
438
441
|
callbacks: e.value.userOptions.callbacks,
|
|
439
442
|
printScale: e.value.userOptions.print.scale,
|
|
440
|
-
onToggleFullscreen:
|
|
441
|
-
onGeneratePdf: s(
|
|
442
|
-
onGenerateCsv:
|
|
443
|
+
onToggleFullscreen: Ie,
|
|
444
|
+
onGeneratePdf: s($e),
|
|
445
|
+
onGenerateCsv: Ae,
|
|
443
446
|
onGenerateImage: s(Ce),
|
|
444
|
-
onToggleTable:
|
|
445
|
-
onToggleTooltip:
|
|
447
|
+
onToggleTable: Me,
|
|
448
|
+
onToggleTooltip: Re,
|
|
446
449
|
onToggleAnnotator: ae,
|
|
447
|
-
style:
|
|
448
|
-
visibility: s(
|
|
450
|
+
style: S({
|
|
451
|
+
visibility: s(be) ? s(q) ? "visible" : "hidden" : "visible"
|
|
449
452
|
})
|
|
450
453
|
}, ft({ _: 2 }, [
|
|
451
454
|
t.$slots.menuIcon ? {
|
|
452
455
|
name: "menuIcon",
|
|
453
|
-
fn:
|
|
454
|
-
h(t.$slots, "menuIcon",
|
|
456
|
+
fn: g(({ isOpen: a, color: l }) => [
|
|
457
|
+
h(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
|
|
455
458
|
]),
|
|
456
459
|
key: "0"
|
|
457
460
|
} : void 0,
|
|
458
461
|
t.$slots.optionTooltip ? {
|
|
459
462
|
name: "optionTooltip",
|
|
460
|
-
fn:
|
|
463
|
+
fn: g(() => [
|
|
461
464
|
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
462
465
|
]),
|
|
463
466
|
key: "1"
|
|
464
467
|
} : void 0,
|
|
465
468
|
t.$slots.optionPdf ? {
|
|
466
469
|
name: "optionPdf",
|
|
467
|
-
fn:
|
|
470
|
+
fn: g(() => [
|
|
468
471
|
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
469
472
|
]),
|
|
470
473
|
key: "2"
|
|
471
474
|
} : void 0,
|
|
472
475
|
t.$slots.optionCsv ? {
|
|
473
476
|
name: "optionCsv",
|
|
474
|
-
fn:
|
|
477
|
+
fn: g(() => [
|
|
475
478
|
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
476
479
|
]),
|
|
477
480
|
key: "3"
|
|
478
481
|
} : void 0,
|
|
479
482
|
t.$slots.optionImg ? {
|
|
480
483
|
name: "optionImg",
|
|
481
|
-
fn:
|
|
484
|
+
fn: g(() => [
|
|
482
485
|
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
483
486
|
]),
|
|
484
487
|
key: "4"
|
|
485
488
|
} : void 0,
|
|
486
489
|
t.$slots.optionTable ? {
|
|
487
490
|
name: "optionTable",
|
|
488
|
-
fn:
|
|
491
|
+
fn: g(() => [
|
|
489
492
|
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
490
493
|
]),
|
|
491
494
|
key: "5"
|
|
492
495
|
} : void 0,
|
|
493
496
|
t.$slots.optionFullscreen ? {
|
|
494
497
|
name: "optionFullscreen",
|
|
495
|
-
fn:
|
|
496
|
-
h(t.$slots, "optionFullscreen",
|
|
498
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
499
|
+
h(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
497
500
|
]),
|
|
498
501
|
key: "6"
|
|
499
502
|
} : void 0,
|
|
500
503
|
t.$slots.optionAnnotator ? {
|
|
501
504
|
name: "optionAnnotator",
|
|
502
|
-
fn:
|
|
503
|
-
h(t.$slots, "optionAnnotator",
|
|
505
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
506
|
+
h(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
504
507
|
]),
|
|
505
508
|
key: "7"
|
|
506
509
|
} : void 0
|
|
507
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
510
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
508
511
|
(u(), i("svg", {
|
|
509
512
|
ref_key: "svgRef",
|
|
510
513
|
ref: J,
|
|
511
|
-
xmlns: s(
|
|
512
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
514
|
+
xmlns: s(Tt),
|
|
515
|
+
class: G({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value, resizing: C.value }),
|
|
513
516
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
514
|
-
style:
|
|
517
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
515
518
|
}, [
|
|
516
|
-
|
|
519
|
+
Ne(s(We)),
|
|
517
520
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
518
521
|
key: 0,
|
|
519
522
|
x: 0,
|
|
@@ -525,85 +528,85 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
525
528
|
}
|
|
526
529
|
}, [
|
|
527
530
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
528
|
-
], 8,
|
|
529
|
-
(u(!0), i(B, null, V(
|
|
531
|
+
], 8, Xt)) : f("", !0),
|
|
532
|
+
(u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
|
|
530
533
|
cx: c.value.centerX,
|
|
531
534
|
cy: c.value.centerY,
|
|
532
535
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
533
536
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
534
|
-
"stroke-width":
|
|
537
|
+
"stroke-width": I.value.gutter,
|
|
535
538
|
fill: "none",
|
|
536
539
|
"stroke-dasharray": a.path.bgDashArray,
|
|
537
540
|
"stroke-dashoffset": a.path.fullOffset,
|
|
538
541
|
"stroke-linecap": "round",
|
|
539
|
-
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(
|
|
540
|
-
style:
|
|
542
|
+
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
|
|
543
|
+
style: S({
|
|
541
544
|
transform: "rotate(-90deg)",
|
|
542
545
|
transformOrigin: "50% 50%",
|
|
543
|
-
transition: C.value || s(
|
|
544
|
-
animation: C.value || s(
|
|
546
|
+
transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
547
|
+
animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
545
548
|
})
|
|
546
|
-
}, null, 14,
|
|
547
|
-
(u(!0), i(B, null, V(
|
|
549
|
+
}, null, 14, Gt))), 256)),
|
|
550
|
+
(u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
|
|
548
551
|
cx: c.value.centerX,
|
|
549
552
|
cy: c.value.centerY,
|
|
550
553
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
551
554
|
stroke: `${a.color}`,
|
|
552
|
-
"stroke-width":
|
|
555
|
+
"stroke-width": I.value.track,
|
|
553
556
|
fill: "none",
|
|
554
557
|
"stroke-dasharray": a.path.dashArray,
|
|
555
558
|
"stroke-dashoffset": a.path.dashOffset,
|
|
556
|
-
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(
|
|
559
|
+
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
|
|
557
560
|
"stroke-linecap": "round",
|
|
558
|
-
style:
|
|
561
|
+
style: S({
|
|
559
562
|
transform: "rotate(-90deg)",
|
|
560
563
|
transformOrigin: "50% 50%",
|
|
561
|
-
transition: C.value || s(
|
|
562
|
-
animation: C.value || s(
|
|
564
|
+
transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
565
|
+
animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
563
566
|
})
|
|
564
|
-
}, null, 14,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
id: `blur_${
|
|
567
|
+
}, null, 14, Ht))), 256)),
|
|
568
|
+
P("defs", null, [
|
|
569
|
+
P("filter", {
|
|
570
|
+
id: `blur_${y.value}`,
|
|
568
571
|
x: "-50%",
|
|
569
572
|
y: "-50%",
|
|
570
573
|
width: "200%",
|
|
571
574
|
height: "200%"
|
|
572
575
|
}, [
|
|
573
|
-
|
|
576
|
+
P("feGaussianBlur", {
|
|
574
577
|
in: "SourceGraphic",
|
|
575
578
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
576
|
-
}, null, 8,
|
|
577
|
-
], 8,
|
|
579
|
+
}, null, 8, jt)
|
|
580
|
+
], 8, Wt)
|
|
578
581
|
]),
|
|
579
582
|
e.value.style.chart.useGradient ? (u(), i("g", {
|
|
580
583
|
key: 1,
|
|
581
|
-
filter: `url(#blur_${
|
|
584
|
+
filter: `url(#blur_${y.value})`
|
|
582
585
|
}, [
|
|
583
|
-
(u(!0), i(B, null, V(
|
|
586
|
+
(u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
|
|
584
587
|
cx: c.value.centerX,
|
|
585
588
|
cy: c.value.centerY,
|
|
586
589
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
587
590
|
stroke: "white",
|
|
588
|
-
"stroke-width":
|
|
591
|
+
"stroke-width": I.value.track / 3,
|
|
589
592
|
fill: "none",
|
|
590
593
|
"stroke-linecap": "round",
|
|
591
594
|
"stroke-dasharray": a.path.dashArray,
|
|
592
595
|
"stroke-dashoffset": a.path.dashOffset,
|
|
593
|
-
style:
|
|
596
|
+
style: S({
|
|
594
597
|
transform: "rotate(-90deg)",
|
|
595
598
|
transformOrigin: "50% 50%",
|
|
596
|
-
transition: C.value || s(
|
|
597
|
-
animation: C.value || s(
|
|
599
|
+
transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
600
|
+
animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
598
601
|
})
|
|
599
|
-
}, null, 12,
|
|
600
|
-
], 8,
|
|
601
|
-
(u(!0), i(B, null, V(
|
|
602
|
+
}, null, 12, Jt))), 256))
|
|
603
|
+
], 8, qt)) : f("", !0),
|
|
604
|
+
(u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
|
|
602
605
|
cx: c.value.centerX,
|
|
603
606
|
cy: c.value.centerY,
|
|
604
607
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
605
608
|
stroke: "transparent",
|
|
606
|
-
"stroke-width": Math.max(
|
|
609
|
+
"stroke-width": Math.max(I.value.track, I.value.gutter),
|
|
607
610
|
fill: "none",
|
|
608
611
|
"stroke-dasharray": a.path.bgDashArray,
|
|
609
612
|
"stroke-dashoffset": a.path.fullOffset,
|
|
@@ -613,38 +616,38 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
613
616
|
transform: "rotate(-90deg)",
|
|
614
617
|
transformOrigin: "50% 50%"
|
|
615
618
|
},
|
|
616
|
-
onMouseenter: (v) =>
|
|
619
|
+
onMouseenter: (v) => Fe({
|
|
617
620
|
datapoint: a,
|
|
618
621
|
show: !0,
|
|
619
622
|
seriesIndex: l
|
|
620
623
|
}),
|
|
621
|
-
onMouseleave: (v) =>
|
|
622
|
-
onClick: (v) =>
|
|
623
|
-
}, null, 40,
|
|
624
|
-
e.value.style.chart.layout.labels.show ? (u(), i("g",
|
|
625
|
-
(u(!0), i(B, null, V(
|
|
626
|
-
onMouseenter: (v) =>
|
|
624
|
+
onMouseleave: (v) => Pe({ datapoint: a }),
|
|
625
|
+
onClick: (v) => Se({ datapoint: a })
|
|
626
|
+
}, null, 40, Kt))), 256)),
|
|
627
|
+
e.value.style.chart.layout.labels.show ? (u(), i("g", Qt, [
|
|
628
|
+
(u(!0), i(B, null, V(x.value, (a, l) => (u(), i("g", {
|
|
629
|
+
onMouseenter: (v) => Fe({
|
|
627
630
|
datapoint: a,
|
|
628
631
|
show: !0,
|
|
629
632
|
seriesIndex: l
|
|
630
633
|
}),
|
|
631
|
-
onMouseleave: (v) =>
|
|
632
|
-
onClick: (v) =>
|
|
634
|
+
onMouseleave: (v) => Pe({ datapoint: a }),
|
|
635
|
+
onClick: (v) => Se({ datapoint: a })
|
|
633
636
|
}, [
|
|
634
|
-
|
|
637
|
+
b.value.includes(a.id) ? f("", !0) : (u(), i("text", {
|
|
635
638
|
key: 0,
|
|
636
639
|
class: "vue-ui-onion-label",
|
|
637
|
-
x: n.value.width / 2 -
|
|
640
|
+
x: n.value.width / 2 - I.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
638
641
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
639
642
|
"text-anchor": "end",
|
|
640
643
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
641
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
644
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
642
645
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
643
|
-
},
|
|
646
|
+
}, D(a.name ? a.name + ": " : "") + " " + D(e.value.style.chart.layout.labels.percentage.show ? s(Y)({
|
|
644
647
|
v: a.percentage,
|
|
645
648
|
s: "%",
|
|
646
649
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
647
|
-
}) : "") + " " +
|
|
650
|
+
}) : "") + " " + D(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(se)(
|
|
648
651
|
e.value.style.chart.layout.labels.value.formatter,
|
|
649
652
|
a.value,
|
|
650
653
|
s(Y)({
|
|
@@ -664,47 +667,55 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
664
667
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
665
668
|
}),
|
|
666
669
|
{ datapoint: a, seriesIndex: l }
|
|
667
|
-
)})` : ""}`), 9,
|
|
668
|
-
], 40,
|
|
669
|
-
])) :
|
|
670
|
+
)})` : ""}`), 9, ea))
|
|
671
|
+
], 40, Zt))), 256))
|
|
672
|
+
])) : f("", !0),
|
|
670
673
|
h(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
671
|
-
], 14,
|
|
672
|
-
t.$slots.watermark ? (u(), i("div",
|
|
673
|
-
h(t.$slots, "watermark",
|
|
674
|
-
])) :
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
674
|
+
], 14, Ut)),
|
|
675
|
+
t.$slots.watermark ? (u(), i("div", ta, [
|
|
676
|
+
h(t.$slots, "watermark", z(N({ isPrinting: s(ke) || s(we) })), void 0, !0)
|
|
677
|
+
])) : f("", !0),
|
|
678
|
+
P("div", {
|
|
679
|
+
id: `legend-bottom-${y.value}`
|
|
680
|
+
}, null, 8, aa),
|
|
681
|
+
ge.value ? (u(), A(gt, {
|
|
682
|
+
key: 5,
|
|
683
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
678
684
|
}, [
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
685
|
+
P("div", {
|
|
686
|
+
ref_key: "chartLegend",
|
|
687
|
+
ref: ce
|
|
688
|
+
}, [
|
|
689
|
+
e.value.style.chart.legend.show ? (u(), A(zt, {
|
|
690
|
+
key: `legend_${fe.value}`,
|
|
691
|
+
legendSet: p.value,
|
|
692
|
+
config: st.value,
|
|
693
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => _e(a.id))
|
|
694
|
+
}, {
|
|
695
|
+
item: g(({ legend: a }) => [
|
|
696
|
+
s(k) ? f("", !0) : (u(), i("div", {
|
|
697
|
+
key: 0,
|
|
698
|
+
"data-cy-legend-item": "",
|
|
699
|
+
onClick: (l) => a.segregate(),
|
|
700
|
+
style: S(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
|
|
701
|
+
}, D(a.name ? a.name + ": " : "") + " " + D((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, la))
|
|
702
|
+
]),
|
|
703
|
+
_: 1
|
|
704
|
+
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
705
|
+
key: 1,
|
|
706
|
+
legend: p.value
|
|
707
|
+
}, void 0, !0)
|
|
708
|
+
], 512)
|
|
709
|
+
], 8, ["to"])) : f("", !0),
|
|
699
710
|
t.$slots.source ? (u(), i("div", {
|
|
700
|
-
key:
|
|
711
|
+
key: 6,
|
|
701
712
|
ref_key: "source",
|
|
702
713
|
ref: ve,
|
|
703
714
|
dir: "auto"
|
|
704
715
|
}, [
|
|
705
716
|
h(t.$slots, "source", {}, void 0, !0)
|
|
706
|
-
], 512)) :
|
|
707
|
-
|
|
717
|
+
], 512)) : f("", !0),
|
|
718
|
+
Ne(s(qe), {
|
|
708
719
|
show: m.value.showTooltip && H.value,
|
|
709
720
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
710
721
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -715,23 +726,23 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
715
726
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
716
727
|
position: e.value.style.chart.tooltip.position,
|
|
717
728
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
718
|
-
parent:
|
|
729
|
+
parent: T.value,
|
|
719
730
|
content: W.value,
|
|
720
|
-
isFullscreen:
|
|
721
|
-
isCustom: s(
|
|
731
|
+
isFullscreen: M.value,
|
|
732
|
+
isCustom: s(Ve)(e.value.style.chart.tooltip.customFormat),
|
|
722
733
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
723
734
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
724
735
|
}, {
|
|
725
|
-
"tooltip-before":
|
|
726
|
-
h(t.$slots, "tooltip-before",
|
|
736
|
+
"tooltip-before": g(() => [
|
|
737
|
+
h(t.$slots, "tooltip-before", z(N({ ...te.value })), void 0, !0)
|
|
727
738
|
]),
|
|
728
|
-
"tooltip-after":
|
|
729
|
-
h(t.$slots, "tooltip-after",
|
|
739
|
+
"tooltip-after": g(() => [
|
|
740
|
+
h(t.$slots, "tooltip-after", z(N({ ...te.value })), void 0, !0)
|
|
730
741
|
]),
|
|
731
742
|
_: 3
|
|
732
743
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
733
|
-
ue.value ? (u(),
|
|
734
|
-
key:
|
|
744
|
+
ue.value ? (u(), A(s(Ge), {
|
|
745
|
+
key: 7,
|
|
735
746
|
hideDetails: "",
|
|
736
747
|
config: {
|
|
737
748
|
open: m.value.showTable,
|
|
@@ -746,9 +757,9 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
746
757
|
}
|
|
747
758
|
}
|
|
748
759
|
}, {
|
|
749
|
-
content:
|
|
750
|
-
(u(),
|
|
751
|
-
key: `table_${
|
|
760
|
+
content: g(() => [
|
|
761
|
+
(u(), A(s(He), {
|
|
762
|
+
key: `table_${pe.value}`,
|
|
752
763
|
colNames: E.value.colNames,
|
|
753
764
|
head: E.value.head,
|
|
754
765
|
body: E.value.body,
|
|
@@ -756,21 +767,21 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
|
|
|
756
767
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
757
768
|
onClose: o[1] || (o[1] = (a) => m.value.showTable = !1)
|
|
758
769
|
}, {
|
|
759
|
-
th:
|
|
760
|
-
|
|
770
|
+
th: g(({ th: a }) => [
|
|
771
|
+
mt(D(a), 1)
|
|
761
772
|
]),
|
|
762
|
-
td:
|
|
763
|
-
|
|
773
|
+
td: g(({ td: a }) => [
|
|
774
|
+
P("div", { innerHTML: a }, null, 8, oa)
|
|
764
775
|
]),
|
|
765
776
|
_: 1
|
|
766
777
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
767
778
|
]),
|
|
768
779
|
_: 1
|
|
769
|
-
}, 8, ["config"])) :
|
|
770
|
-
s(
|
|
771
|
-
], 46,
|
|
780
|
+
}, 8, ["config"])) : f("", !0),
|
|
781
|
+
s(k) ? (u(), A(Lt, { key: 8 })) : f("", !0)
|
|
782
|
+
], 46, Yt));
|
|
772
783
|
}
|
|
773
|
-
},
|
|
784
|
+
}, ba = /* @__PURE__ */ Vt(na, [["__scopeId", "data-v-bd7e4981"]]);
|
|
774
785
|
export {
|
|
775
|
-
|
|
786
|
+
ba as default
|
|
776
787
|
};
|