vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,17 +1,18 @@
|
|
|
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
|
-
|
|
1
|
+
import { defineAsyncComponent as O, computed as h, ref as u, watch as xe, shallowRef as Te, onMounted as et, onBeforeUnmount as tt, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as X, normalizeClass as E, createBlock as P, createCommentVNode as p, createElementVNode as S, createVNode as Oe, createSlots as at, withCtx as f, renderSlot as v, normalizeProps as F, guardReactiveProps as M, Fragment as D, renderList as L, toDisplayString as R, createTextVNode as lt, nextTick as ot } from "vue";
|
|
2
|
+
import { u as nt, c as st, t as rt, p as Pe, a as ut, b as it, o as ct, e as Z, d as vt, X as dt, f as V, i as ee, x as _e, q as ht, r as ft, y as gt } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as pt, u as yt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ie } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as mt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import wt from "./Title-pVYRzQXY.js";
|
|
9
|
+
import $t from "./Legend-CYbP3Kfg.js";
|
|
10
|
+
import Ct from "./img-ku4zevVD.js";
|
|
11
|
+
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Tt = ["id"], Ot = ["xmlns", "viewBox"], Pt = ["width", "height"], _t = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], It = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], At = ["id"], St = ["stdDeviation"], Ft = ["filter"], Mt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Rt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Nt = { key: 2 }, Dt = ["onMouseenter"], Lt = ["x", "y", "font-size", "fill", "font-weight"], Vt = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, zt = ["onClick"], Bt = ["innerHTML"], Yt = {
|
|
15
16
|
__name: "vue-ui-onion",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -28,32 +29,32 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectLegend"],
|
|
31
|
-
setup(Ae, { expose:
|
|
32
|
-
const
|
|
32
|
+
setup(Ae, { expose: Se, emit: Fe }) {
|
|
33
|
+
const Me = O(() => import("./vue-ui-accordion-DgZK-qDz.js")), Re = O(() => import("./DataTable-CgL0Rz0x.js")), Ne = O(() => import("./PackageVersion-CAkNkiIG.js")), De = O(() => import("./PenAndPaper-Cx1-5zdD.js")), Le = O(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ve = O(() => import("./Tooltip-NwATo4ZJ.js")), ze = O(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_onion: Be } = nt(), $ = Ae, z = h(() => !!$.dataset && $.dataset.length), _ = u(st()), Ye = u(null), te = u(0), B = u(!1), G = u(""), y = u([]), C = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
|
|
33
34
|
get: () => de(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } =
|
|
36
|
+
}), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = bt({ config: e.value }), { svgRef: ve } = kt({ config: e.value.style.chart.title });
|
|
36
37
|
function de() {
|
|
37
|
-
const t =
|
|
38
|
-
userConfig:
|
|
39
|
-
defaultConfig:
|
|
38
|
+
const t = Ie({
|
|
39
|
+
userConfig: $.config,
|
|
40
|
+
defaultConfig: Be
|
|
40
41
|
});
|
|
41
42
|
return t.theme ? {
|
|
42
|
-
...
|
|
43
|
-
userConfig:
|
|
43
|
+
...Ie({
|
|
44
|
+
userConfig: ut.vue_ui_onion[t.theme] || $.config,
|
|
44
45
|
defaultConfig: t
|
|
45
46
|
}),
|
|
46
|
-
customPalette:
|
|
47
|
+
customPalette: rt[t.theme] || Pe
|
|
47
48
|
} : t;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
xe(() => $.config, (t) => {
|
|
50
51
|
e.value = de(), H.value = !e.value.userOptions.showOnChartHover, ye(), se.value += 1, re.value += 1, ue.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
51
52
|
}, { deep: !0 });
|
|
52
|
-
const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } =
|
|
53
|
-
elementId: `vue-ui-onion_${
|
|
53
|
+
const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } = mt({
|
|
54
|
+
elementId: `vue-ui-onion_${_.value}`,
|
|
54
55
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
55
56
|
options: e.value.userOptions.print
|
|
56
|
-
}),
|
|
57
|
+
}), Ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => it(e.value.customPalette)), m = u({
|
|
57
58
|
showTable: e.value.table.show,
|
|
58
59
|
showTooltip: e.value.style.chart.tooltip.show
|
|
59
60
|
}), n = u({
|
|
@@ -66,18 +67,18 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
66
67
|
bottom: 64
|
|
67
68
|
},
|
|
68
69
|
minRadius: 64
|
|
69
|
-
}),
|
|
70
|
-
|
|
70
|
+
}), x = Te(null), I = Te(null);
|
|
71
|
+
et(() => {
|
|
71
72
|
ye();
|
|
72
73
|
});
|
|
73
74
|
function ye() {
|
|
74
|
-
if (
|
|
75
|
+
if (ct($.dataset) && Z({
|
|
75
76
|
componentName: "VueUiOnion",
|
|
76
77
|
type: "dataset"
|
|
77
78
|
}), e.value.responsive) {
|
|
78
|
-
const o =
|
|
79
|
-
const { width: a, height: l } =
|
|
80
|
-
chart:
|
|
79
|
+
const o = pt(() => {
|
|
80
|
+
const { width: a, height: l } = yt({
|
|
81
|
+
chart: C.value,
|
|
81
82
|
title: e.value.style.chart.title.text ? ae.value : null,
|
|
82
83
|
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
83
84
|
source: oe.value,
|
|
@@ -87,11 +88,11 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
87
88
|
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;
|
|
88
89
|
});
|
|
89
90
|
});
|
|
90
|
-
|
|
91
|
+
x.value && (I.value && x.value.unobserve(I.value), x.value.disconnect()), x.value = new ResizeObserver(o), I.value = C.value.parentNode, x.value.observe(I.value);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
tt(() => {
|
|
95
|
+
x.value && (I.value && x.value.unobserve(I.value), x.value.disconnect());
|
|
95
96
|
});
|
|
96
97
|
const c = h(() => ({
|
|
97
98
|
top: n.value.padding.top,
|
|
@@ -104,7 +105,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
104
105
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
105
106
|
minRadius: n.value.minRadius,
|
|
106
107
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
107
|
-
})), d = h(() => (
|
|
108
|
+
})), d = h(() => ($.dataset.forEach((t, o) => {
|
|
108
109
|
[null, void 0].includes(t.name) && Z({
|
|
109
110
|
componentName: "VueUiOnion",
|
|
110
111
|
type: "datasetSerieAttribute",
|
|
@@ -116,13 +117,13 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
116
117
|
property: "percentage",
|
|
117
118
|
index: o
|
|
118
119
|
});
|
|
119
|
-
}),
|
|
120
|
-
const a = `onion_serie_${o}_${
|
|
120
|
+
}), $.dataset.map((t, o) => {
|
|
121
|
+
const a = `onion_serie_${o}_${_.value}`;
|
|
121
122
|
return {
|
|
122
123
|
...t,
|
|
123
124
|
percentage: t.percentage || 0,
|
|
124
125
|
targetPercentage: t.percentage || 0,
|
|
125
|
-
color:
|
|
126
|
+
color: vt(t.color) || Xe.value[o] || Pe[o],
|
|
126
127
|
id: a,
|
|
127
128
|
shape: "circle",
|
|
128
129
|
opacity: y.value.includes(a) ? 0.5 : 1,
|
|
@@ -130,12 +131,12 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
130
131
|
segregate: () => me(a),
|
|
131
132
|
isSegregated: y.value.includes(a)
|
|
132
133
|
};
|
|
133
|
-
}))), N = u(d.value),
|
|
134
|
-
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
134
|
+
}))), N = u(d.value), Ee = h(() => e.value.useStartAnimation), Ge = u(null), He = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
|
|
135
|
+
xe(() => d.value, We, { immediate: !0 });
|
|
136
|
+
function We() {
|
|
137
|
+
if (Ee.value && !W.value) {
|
|
137
138
|
let o = function() {
|
|
138
|
-
t >=
|
|
139
|
+
t >= He.value ? (cancelAnimationFrame(Ge.value), N.value = d.value, W.value = !0) : (N.value = d.value.map((a) => ({
|
|
139
140
|
...a,
|
|
140
141
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
141
142
|
})), t += 1, requestAnimationFrame(o), W.value = !0);
|
|
@@ -149,36 +150,36 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
149
150
|
} else
|
|
150
151
|
N.value = d.value;
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const je = h(() => ({
|
|
153
154
|
cy: "onion-div-legend",
|
|
154
155
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
155
156
|
color: e.value.style.chart.legend.color,
|
|
156
157
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
157
158
|
paddingBottom: 12,
|
|
158
159
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
159
|
-
})),
|
|
160
|
+
})), qe = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), T = h(() => {
|
|
160
161
|
const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
|
|
161
162
|
return {
|
|
162
163
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
163
164
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
164
165
|
};
|
|
165
|
-
}),
|
|
166
|
-
const a = (c.value.maxRadius -
|
|
166
|
+
}), k = h(() => N.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
|
|
167
|
+
const a = (c.value.maxRadius - T.value.track) / qe.value / 2 * (1 + o), l = c.value.centerY - a;
|
|
167
168
|
return {
|
|
168
169
|
percentage: t.percentage || 0,
|
|
169
170
|
...t,
|
|
170
171
|
labelY: l,
|
|
171
172
|
radius: a,
|
|
172
|
-
path:
|
|
173
|
+
path: Je(a, t.percentage || 0)
|
|
173
174
|
};
|
|
174
175
|
}));
|
|
175
|
-
function
|
|
176
|
-
const a = 2 * Math.PI * t, l = a * 0.75,
|
|
176
|
+
function Je(t, o) {
|
|
177
|
+
const a = 2 * Math.PI * t, l = a * 0.75, g = `${l} ${a}`, b = l * (1 - o / 100);
|
|
177
178
|
return {
|
|
178
179
|
bgDashArray: `${l} ${a}`,
|
|
179
180
|
bgDashOffset: 0,
|
|
180
|
-
dashArray:
|
|
181
|
-
dashOffset:
|
|
181
|
+
dashArray: g,
|
|
182
|
+
dashOffset: b,
|
|
182
183
|
fullOffset: 0,
|
|
183
184
|
active: `
|
|
184
185
|
M ${c.value.centerX},${c.value.centerY - t}
|
|
@@ -187,22 +188,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
187
188
|
`.trim()
|
|
188
189
|
};
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
+
const Ke = Fe;
|
|
191
192
|
function me(t) {
|
|
192
|
-
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t),
|
|
193
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Ke("selectLegend", k.value);
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
195
|
+
function Qe() {
|
|
196
|
+
return k.value;
|
|
196
197
|
}
|
|
197
198
|
const j = h(() => {
|
|
198
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o =
|
|
199
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = k.value.map((a) => [
|
|
199
200
|
a.name,
|
|
200
201
|
a.percentage,
|
|
201
202
|
a.value
|
|
202
203
|
]);
|
|
203
204
|
return { head: t, body: o };
|
|
204
|
-
}),
|
|
205
|
-
const t = j.value.head, o =
|
|
205
|
+
}), Y = h(() => {
|
|
206
|
+
const t = j.value.head, o = k.value.map((l) => [
|
|
206
207
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
207
208
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
208
209
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -222,33 +223,33 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
222
223
|
return { head: t, body: o, config: a, colNames: t };
|
|
223
224
|
});
|
|
224
225
|
function be(t = null) {
|
|
225
|
-
|
|
226
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = j.value.head, l = j.value.body,
|
|
227
|
-
t ? t(
|
|
226
|
+
ot(() => {
|
|
227
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = j.value.head, l = j.value.body, g = o.concat([a]).concat(l), b = ht(g);
|
|
228
|
+
t ? t(b) : ft({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
228
229
|
});
|
|
229
230
|
}
|
|
230
|
-
const
|
|
231
|
-
function
|
|
231
|
+
const w = u(void 0), A = u(!1);
|
|
232
|
+
function ke(t) {
|
|
232
233
|
A.value = t, te.value += 1;
|
|
233
234
|
}
|
|
234
235
|
const q = u(null);
|
|
235
|
-
function
|
|
236
|
+
function we({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
236
237
|
const l = t.absoluteIndex;
|
|
237
|
-
|
|
238
|
+
w.value = o, q.value = {
|
|
238
239
|
datapoint: t,
|
|
239
240
|
seriesIndex: l,
|
|
240
241
|
series: d.value,
|
|
241
242
|
config: e.value
|
|
242
|
-
},
|
|
243
|
-
let
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
243
|
+
}, B.value = a;
|
|
244
|
+
let g = "";
|
|
245
|
+
const b = e.value.style.chart.tooltip.customFormat;
|
|
246
|
+
if (_e(b) && gt(() => b({
|
|
246
247
|
seriesIndex: l,
|
|
247
248
|
datapoint: t,
|
|
248
249
|
series: d.value,
|
|
249
250
|
config: e.value
|
|
250
251
|
})))
|
|
251
|
-
|
|
252
|
+
G.value = b({
|
|
252
253
|
seriesIndex: l,
|
|
253
254
|
datapoint: t,
|
|
254
255
|
series: d.value,
|
|
@@ -256,7 +257,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
256
257
|
});
|
|
257
258
|
else {
|
|
258
259
|
const K = e.value.style.chart.tooltip.showPercentage, Q = e.value.style.chart.tooltip.showValue;
|
|
259
|
-
|
|
260
|
+
g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${K ? V({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${K && Q ? "(" : ""}${Q ? ee(
|
|
260
261
|
e.value.style.chart.layout.labels.value.formatter,
|
|
261
262
|
t.value,
|
|
262
263
|
V({
|
|
@@ -266,58 +267,72 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
266
267
|
r: e.value.style.chart.tooltip.roundingValue
|
|
267
268
|
}),
|
|
268
269
|
{ datapoint: t, seriesIndex: o }
|
|
269
|
-
) : ""}${K && Q ? ")" : ""}</div>`,
|
|
270
|
+
) : ""}${K && Q ? ")" : ""}</div>`, G.value = `<div>${g}</div>`;
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function $e() {
|
|
273
274
|
m.value.showTable = !m.value.showTable;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function Ce() {
|
|
276
277
|
m.value.showTooltip = !m.value.showTooltip;
|
|
277
278
|
}
|
|
278
|
-
const
|
|
279
|
+
const U = u(!1);
|
|
279
280
|
function J() {
|
|
280
|
-
|
|
281
|
+
U.value = !U.value;
|
|
282
|
+
}
|
|
283
|
+
async function Ze({ scale: t = 2 } = {}) {
|
|
284
|
+
if (!C.value) return;
|
|
285
|
+
const { width: o, height: a } = C.value.getBoundingClientRect(), l = o / a, { imageUri: g, base64: b } = await Ct({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
286
|
+
return {
|
|
287
|
+
imageUri: g,
|
|
288
|
+
base64: b,
|
|
289
|
+
title: e.value.style.chart.title.text,
|
|
290
|
+
width: o,
|
|
291
|
+
height: a,
|
|
292
|
+
aspectRatio: l
|
|
293
|
+
};
|
|
281
294
|
}
|
|
282
|
-
return
|
|
283
|
-
getData:
|
|
295
|
+
return Se({
|
|
296
|
+
getData: Qe,
|
|
297
|
+
getImage: Ze,
|
|
284
298
|
generatePdf: ge,
|
|
285
299
|
generateCsv: be,
|
|
286
300
|
generateImage: pe,
|
|
287
|
-
toggleTable:
|
|
288
|
-
toggleTooltip:
|
|
289
|
-
toggleAnnotator: J
|
|
301
|
+
toggleTable: $e,
|
|
302
|
+
toggleTooltip: Ce,
|
|
303
|
+
toggleAnnotator: J,
|
|
304
|
+
toggleFullscreen: ke
|
|
290
305
|
}), (t, o) => (s(), i("div", {
|
|
291
|
-
class:
|
|
306
|
+
class: E(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
292
307
|
ref_key: "onionChart",
|
|
293
|
-
ref:
|
|
294
|
-
id: `vue-ui-onion_${
|
|
295
|
-
style:
|
|
308
|
+
ref: C,
|
|
309
|
+
id: `vue-ui-onion_${_.value}`,
|
|
310
|
+
style: X(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
296
311
|
onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
|
|
297
312
|
onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
|
|
298
313
|
}, [
|
|
299
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
314
|
+
e.value.userOptions.buttons.annotator ? (s(), P(r(De), {
|
|
300
315
|
key: 0,
|
|
301
316
|
svgRef: r(ve),
|
|
302
317
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
303
318
|
color: e.value.style.chart.color,
|
|
304
|
-
active:
|
|
319
|
+
active: U.value,
|
|
305
320
|
onClose: J
|
|
306
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
307
|
-
|
|
321
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
322
|
+
Ue.value ? (s(), i("div", {
|
|
308
323
|
key: 1,
|
|
309
324
|
ref_key: "noTitle",
|
|
310
325
|
ref: ne,
|
|
311
326
|
class: "vue-data-ui-no-title-space",
|
|
312
327
|
style: "height:36px; width: 100%;background:transparent"
|
|
313
|
-
}, null, 512)) :
|
|
328
|
+
}, null, 512)) : p("", !0),
|
|
314
329
|
e.value.style.chart.title.text ? (s(), i("div", {
|
|
315
330
|
key: 2,
|
|
316
331
|
ref_key: "chartTitle",
|
|
317
332
|
ref: ae,
|
|
318
333
|
style: "width:100%;background:transparent"
|
|
319
334
|
}, [
|
|
320
|
-
(s(),
|
|
335
|
+
(s(), P(wt, {
|
|
321
336
|
key: `title_${se.value}`,
|
|
322
337
|
config: {
|
|
323
338
|
title: {
|
|
@@ -330,8 +345,8 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
330
345
|
}
|
|
331
346
|
}
|
|
332
347
|
}, null, 8, ["config"]))
|
|
333
|
-
], 512)) :
|
|
334
|
-
e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(),
|
|
348
|
+
], 512)) : p("", !0),
|
|
349
|
+
e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), P(r(ze), {
|
|
335
350
|
ref_key: "details",
|
|
336
351
|
ref: Ye,
|
|
337
352
|
key: `user_options${te.value}`,
|
|
@@ -339,7 +354,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
339
354
|
color: e.value.style.chart.color,
|
|
340
355
|
isImaging: r(fe),
|
|
341
356
|
isPrinting: r(he),
|
|
342
|
-
uid:
|
|
357
|
+
uid: _.value,
|
|
343
358
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
344
359
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
345
360
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -349,26 +364,27 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
349
364
|
isFullscreen: A.value,
|
|
350
365
|
isTooltip: m.value.showTooltip,
|
|
351
366
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
352
|
-
chartElement:
|
|
367
|
+
chartElement: C.value,
|
|
353
368
|
position: e.value.userOptions.position,
|
|
354
369
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
355
|
-
isAnnotation:
|
|
370
|
+
isAnnotation: U.value,
|
|
356
371
|
callbacks: e.value.userOptions.callbacks,
|
|
357
|
-
|
|
372
|
+
printScale: e.value.userOptions.print.scale,
|
|
373
|
+
onToggleFullscreen: ke,
|
|
358
374
|
onGeneratePdf: r(ge),
|
|
359
375
|
onGenerateCsv: be,
|
|
360
376
|
onGenerateImage: r(pe),
|
|
361
|
-
onToggleTable:
|
|
362
|
-
onToggleTooltip:
|
|
377
|
+
onToggleTable: $e,
|
|
378
|
+
onToggleTooltip: Ce,
|
|
363
379
|
onToggleAnnotator: J,
|
|
364
|
-
style:
|
|
380
|
+
style: X({
|
|
365
381
|
visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
|
|
366
382
|
})
|
|
367
|
-
},
|
|
383
|
+
}, at({ _: 2 }, [
|
|
368
384
|
t.$slots.menuIcon ? {
|
|
369
385
|
name: "menuIcon",
|
|
370
386
|
fn: f(({ isOpen: a, color: l }) => [
|
|
371
|
-
v(t.$slots, "menuIcon",
|
|
387
|
+
v(t.$slots, "menuIcon", F(M({ isOpen: a, color: l })), void 0, !0)
|
|
372
388
|
]),
|
|
373
389
|
key: "0"
|
|
374
390
|
} : void 0,
|
|
@@ -410,28 +426,28 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
410
426
|
t.$slots.optionFullscreen ? {
|
|
411
427
|
name: "optionFullscreen",
|
|
412
428
|
fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
413
|
-
v(t.$slots, "optionFullscreen",
|
|
429
|
+
v(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
414
430
|
]),
|
|
415
431
|
key: "6"
|
|
416
432
|
} : void 0,
|
|
417
433
|
t.$slots.optionAnnotator ? {
|
|
418
434
|
name: "optionAnnotator",
|
|
419
435
|
fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
420
|
-
v(t.$slots, "optionAnnotator",
|
|
436
|
+
v(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
421
437
|
]),
|
|
422
438
|
key: "7"
|
|
423
439
|
} : void 0
|
|
424
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
440
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
425
441
|
z.value ? (s(), i("svg", {
|
|
426
442
|
key: 4,
|
|
427
443
|
ref_key: "svgRef",
|
|
428
444
|
ref: ve,
|
|
429
|
-
xmlns: r(
|
|
430
|
-
class:
|
|
445
|
+
xmlns: r(dt),
|
|
446
|
+
class: E({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
431
447
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
432
|
-
style:
|
|
448
|
+
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
433
449
|
}, [
|
|
434
|
-
|
|
450
|
+
Oe(r(Ne)),
|
|
435
451
|
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
436
452
|
key: 0,
|
|
437
453
|
x: 0,
|
|
@@ -443,109 +459,109 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
443
459
|
}
|
|
444
460
|
}, [
|
|
445
461
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
446
|
-
], 8,
|
|
447
|
-
(s(!0), i(D, null, L(
|
|
462
|
+
], 8, Pt)) : p("", !0),
|
|
463
|
+
(s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
|
|
448
464
|
cx: c.value.centerX,
|
|
449
465
|
cy: c.value.centerY,
|
|
450
466
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
451
467
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
452
|
-
"stroke-width":
|
|
468
|
+
"stroke-width": T.value.gutter,
|
|
453
469
|
fill: "none",
|
|
454
470
|
"stroke-dasharray": a.path.bgDashArray,
|
|
455
471
|
"stroke-dashoffset": a.path.fullOffset,
|
|
456
472
|
"stroke-linecap": "round",
|
|
457
|
-
class:
|
|
473
|
+
class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value !== l }),
|
|
458
474
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
459
|
-
}, null, 10,
|
|
460
|
-
(s(!0), i(D, null, L(
|
|
475
|
+
}, null, 10, _t))), 256)),
|
|
476
|
+
(s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
|
|
461
477
|
cx: c.value.centerX,
|
|
462
478
|
cy: c.value.centerY,
|
|
463
479
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
464
480
|
stroke: `${a.color}`,
|
|
465
|
-
"stroke-width":
|
|
481
|
+
"stroke-width": T.value.track,
|
|
466
482
|
fill: "none",
|
|
467
483
|
"stroke-dasharray": a.path.dashArray,
|
|
468
484
|
"stroke-dashoffset": a.path.dashOffset,
|
|
469
|
-
class:
|
|
485
|
+
class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value !== l }),
|
|
470
486
|
"stroke-linecap": "round",
|
|
471
487
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
472
|
-
}, null, 10,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
id: `blur_${
|
|
488
|
+
}, null, 10, It))), 256)),
|
|
489
|
+
S("defs", null, [
|
|
490
|
+
S("filter", {
|
|
491
|
+
id: `blur_${_.value}`,
|
|
476
492
|
x: "-50%",
|
|
477
493
|
y: "-50%",
|
|
478
494
|
width: "200%",
|
|
479
495
|
height: "200%"
|
|
480
496
|
}, [
|
|
481
|
-
|
|
497
|
+
S("feGaussianBlur", {
|
|
482
498
|
in: "SourceGraphic",
|
|
483
499
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
484
|
-
}, null, 8,
|
|
485
|
-
], 8,
|
|
500
|
+
}, null, 8, St)
|
|
501
|
+
], 8, At)
|
|
486
502
|
]),
|
|
487
503
|
e.value.style.chart.useGradient ? (s(), i("g", {
|
|
488
504
|
key: 1,
|
|
489
|
-
filter: `url(#blur_${
|
|
505
|
+
filter: `url(#blur_${_.value})`
|
|
490
506
|
}, [
|
|
491
|
-
(s(!0), i(D, null, L(
|
|
507
|
+
(s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
|
|
492
508
|
cx: c.value.centerX,
|
|
493
509
|
cy: c.value.centerY,
|
|
494
510
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
495
511
|
stroke: "white",
|
|
496
|
-
"stroke-width":
|
|
512
|
+
"stroke-width": T.value.track / 3,
|
|
497
513
|
fill: "none",
|
|
498
514
|
"stroke-linecap": "round",
|
|
499
515
|
"stroke-dasharray": a.path.dashArray,
|
|
500
516
|
"stroke-dashoffset": a.path.dashOffset,
|
|
501
517
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
502
|
-
}, null, 8,
|
|
503
|
-
], 8,
|
|
504
|
-
(s(!0), i(D, null, L(
|
|
518
|
+
}, null, 8, Mt))), 256))
|
|
519
|
+
], 8, Ft)) : p("", !0),
|
|
520
|
+
(s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
|
|
505
521
|
cx: c.value.centerX,
|
|
506
522
|
cy: c.value.centerY,
|
|
507
523
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
508
524
|
stroke: "transparent",
|
|
509
|
-
"stroke-width": Math.max(
|
|
525
|
+
"stroke-width": Math.max(T.value.track, T.value.gutter),
|
|
510
526
|
fill: "none",
|
|
511
527
|
"stroke-dasharray": a.path.bgDashArray,
|
|
512
528
|
"stroke-dashoffset": a.path.fullOffset,
|
|
513
529
|
"stroke-linecap": "round",
|
|
514
530
|
class: "vue-ui-onion-path",
|
|
515
531
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
516
|
-
onMouseenter: (
|
|
532
|
+
onMouseenter: (g) => we({
|
|
517
533
|
datapoint: a,
|
|
518
534
|
show: !0,
|
|
519
535
|
seriesIndex: l
|
|
520
536
|
}),
|
|
521
|
-
onMouseleave: o[0] || (o[0] = (
|
|
522
|
-
|
|
537
|
+
onMouseleave: o[0] || (o[0] = (g) => {
|
|
538
|
+
w.value = void 0, B.value = !1;
|
|
523
539
|
})
|
|
524
|
-
}, null, 40,
|
|
525
|
-
e.value.style.chart.layout.labels.show ? (s(), i("g",
|
|
526
|
-
(s(!0), i(D, null, L(
|
|
527
|
-
onMouseenter: (
|
|
540
|
+
}, null, 40, Rt))), 256)),
|
|
541
|
+
e.value.style.chart.layout.labels.show ? (s(), i("g", Nt, [
|
|
542
|
+
(s(!0), i(D, null, L(k.value, (a, l) => (s(), i("g", {
|
|
543
|
+
onMouseenter: (g) => we({
|
|
528
544
|
datapoint: a,
|
|
529
545
|
show: !0,
|
|
530
546
|
seriesIndex: l
|
|
531
547
|
}),
|
|
532
|
-
onMouseleave: o[1] || (o[1] = (
|
|
533
|
-
|
|
548
|
+
onMouseleave: o[1] || (o[1] = (g) => {
|
|
549
|
+
w.value = void 0, B.value = !1;
|
|
534
550
|
})
|
|
535
551
|
}, [
|
|
536
|
-
y.value.includes(a.id) ?
|
|
552
|
+
y.value.includes(a.id) ? p("", !0) : (s(), i("text", {
|
|
537
553
|
key: 0,
|
|
538
|
-
x: n.value.width / 2 -
|
|
554
|
+
x: n.value.width / 2 - T.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
539
555
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
540
556
|
"text-anchor": "end",
|
|
541
557
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
542
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
558
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
543
559
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
544
|
-
},
|
|
560
|
+
}, R(a.name ? a.name + ": " : "") + " " + R(e.value.style.chart.layout.labels.percentage.show ? r(V)({
|
|
545
561
|
v: a.percentage,
|
|
546
562
|
s: "%",
|
|
547
563
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
548
|
-
}) : "") + " " +
|
|
564
|
+
}) : "") + " " + R(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
|
|
549
565
|
e.value.style.chart.layout.labels.value.formatter,
|
|
550
566
|
a.value,
|
|
551
567
|
r(V)({
|
|
@@ -565,15 +581,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
565
581
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
566
582
|
}),
|
|
567
583
|
{ datapoint: a, seriesIndex: l }
|
|
568
|
-
)})` : ""}`), 9,
|
|
569
|
-
], 40,
|
|
570
|
-
])) :
|
|
584
|
+
)})` : ""}`), 9, Lt))
|
|
585
|
+
], 40, Dt))), 256))
|
|
586
|
+
])) : p("", !0),
|
|
571
587
|
v(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
572
|
-
], 14,
|
|
573
|
-
t.$slots.watermark ? (s(), i("div",
|
|
574
|
-
v(t.$slots, "watermark",
|
|
575
|
-
])) :
|
|
576
|
-
z.value ?
|
|
588
|
+
], 14, Ot)) : p("", !0),
|
|
589
|
+
t.$slots.watermark ? (s(), i("div", Vt, [
|
|
590
|
+
v(t.$slots, "watermark", F(M({ isPrinting: r(he) || r(fe) })), void 0, !0)
|
|
591
|
+
])) : p("", !0),
|
|
592
|
+
z.value ? p("", !0) : (s(), P(r(Le), {
|
|
577
593
|
key: 6,
|
|
578
594
|
config: {
|
|
579
595
|
type: "onion",
|
|
@@ -585,22 +601,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
585
601
|
}
|
|
586
602
|
}
|
|
587
603
|
}, null, 8, ["config"])),
|
|
588
|
-
|
|
604
|
+
S("div", {
|
|
589
605
|
ref_key: "chartLegend",
|
|
590
606
|
ref: le
|
|
591
607
|
}, [
|
|
592
|
-
e.value.style.chart.legend.show ? (s(),
|
|
608
|
+
e.value.style.chart.legend.show ? (s(), P($t, {
|
|
593
609
|
key: `legend_${ue.value}`,
|
|
594
610
|
legendSet: d.value,
|
|
595
|
-
config:
|
|
611
|
+
config: je.value,
|
|
596
612
|
onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
|
|
597
613
|
}, {
|
|
598
614
|
item: f(({ legend: a }) => [
|
|
599
|
-
|
|
615
|
+
S("div", {
|
|
600
616
|
"data-cy-legend-item": "",
|
|
601
617
|
onClick: (l) => a.segregate(),
|
|
602
|
-
style:
|
|
603
|
-
},
|
|
618
|
+
style: X(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
|
|
619
|
+
}, R(a.name ? a.name + ": " : "") + " " + R((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, zt)
|
|
604
620
|
]),
|
|
605
621
|
_: 1
|
|
606
622
|
}, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
|
|
@@ -615,9 +631,9 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
615
631
|
dir: "auto"
|
|
616
632
|
}, [
|
|
617
633
|
v(t.$slots, "source", {}, void 0, !0)
|
|
618
|
-
], 512)) :
|
|
619
|
-
|
|
620
|
-
show: m.value.showTooltip &&
|
|
634
|
+
], 512)) : p("", !0),
|
|
635
|
+
Oe(r(Ve), {
|
|
636
|
+
show: m.value.showTooltip && B.value,
|
|
621
637
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
622
638
|
color: e.value.style.chart.tooltip.color,
|
|
623
639
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -627,20 +643,20 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
627
643
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
628
644
|
position: e.value.style.chart.tooltip.position,
|
|
629
645
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
630
|
-
parent:
|
|
631
|
-
content:
|
|
646
|
+
parent: C.value,
|
|
647
|
+
content: G.value,
|
|
632
648
|
isFullscreen: A.value,
|
|
633
|
-
isCustom: r(
|
|
649
|
+
isCustom: r(_e)(e.value.style.chart.tooltip.customFormat)
|
|
634
650
|
}, {
|
|
635
651
|
"tooltip-before": f(() => [
|
|
636
|
-
v(t.$slots, "tooltip-before",
|
|
652
|
+
v(t.$slots, "tooltip-before", F(M({ ...q.value })), void 0, !0)
|
|
637
653
|
]),
|
|
638
654
|
"tooltip-after": f(() => [
|
|
639
|
-
v(t.$slots, "tooltip-after",
|
|
655
|
+
v(t.$slots, "tooltip-after", F(M({ ...q.value })), void 0, !0)
|
|
640
656
|
]),
|
|
641
657
|
_: 3
|
|
642
658
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
643
|
-
z.value ? (s(),
|
|
659
|
+
z.value ? (s(), P(r(Me), {
|
|
644
660
|
key: 8,
|
|
645
661
|
hideDetails: "",
|
|
646
662
|
config: {
|
|
@@ -657,29 +673,29 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
|
|
|
657
673
|
}
|
|
658
674
|
}, {
|
|
659
675
|
content: f(() => [
|
|
660
|
-
(s(),
|
|
676
|
+
(s(), P(r(Re), {
|
|
661
677
|
key: `table_${re.value}`,
|
|
662
|
-
colNames:
|
|
663
|
-
head:
|
|
664
|
-
body:
|
|
665
|
-
config:
|
|
678
|
+
colNames: Y.value.colNames,
|
|
679
|
+
head: Y.value.head,
|
|
680
|
+
body: Y.value.body,
|
|
681
|
+
config: Y.value.config,
|
|
666
682
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
667
683
|
onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
|
|
668
684
|
}, {
|
|
669
685
|
th: f(({ th: a }) => [
|
|
670
|
-
|
|
686
|
+
lt(R(a), 1)
|
|
671
687
|
]),
|
|
672
688
|
td: f(({ td: a }) => [
|
|
673
|
-
|
|
689
|
+
S("div", { innerHTML: a }, null, 8, Bt)
|
|
674
690
|
]),
|
|
675
691
|
_: 1
|
|
676
692
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
677
693
|
]),
|
|
678
694
|
_: 1
|
|
679
|
-
}, 8, ["config"])) :
|
|
680
|
-
], 46,
|
|
695
|
+
}, 8, ["config"])) : p("", !0)
|
|
696
|
+
], 46, Tt));
|
|
681
697
|
}
|
|
682
|
-
},
|
|
698
|
+
}, Zt = /* @__PURE__ */ xt(Yt, [["__scopeId", "data-v-d3a1937a"]]);
|
|
683
699
|
export {
|
|
684
|
-
|
|
700
|
+
Zt as default
|
|
685
701
|
};
|