vue-data-ui 2.12.6 → 2.12.7-beta.1
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-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { computed as h, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { _ as gt } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { _ as pt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
14
|
-
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { u as mt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
-
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], xt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Tt = ["id"], _t = ["stdDeviation"], Ot = ["filter"], Pt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], It = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], At = { key: 2 }, St = ["onMouseenter"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = {
|
|
1
|
+
import { defineAsyncComponent as x, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as T, createCommentVNode as g, createElementVNode as A, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as I, guardReactiveProps as S, Fragment as D, renderList as L, toDisplayString as F, createTextVNode as at, nextTick as lt } from "vue";
|
|
2
|
+
import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { t as gt, u as pt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as _e } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import kt from "./Title-Bc66VstS.js";
|
|
9
|
+
import wt from "./Legend-DtTYopxf.js";
|
|
10
|
+
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], _t = ["id"], At = ["stdDeviation"], It = ["filter"], St = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Mt = { key: 2 }, Rt = ["onMouseenter"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Dt = {
|
|
18
12
|
key: 5,
|
|
19
13
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
14
|
+
}, Lt = ["onClick"], Vt = ["innerHTML"], zt = {
|
|
21
15
|
__name: "vue-ui-onion",
|
|
22
16
|
props: {
|
|
23
17
|
config: {
|
|
@@ -34,35 +28,35 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const { vue_ui_onion:
|
|
39
|
-
get: () =>
|
|
31
|
+
setup(Ae, { expose: Ie, emit: Se }) {
|
|
32
|
+
const Fe = x(() => import("./vue-ui-accordion-DntThSTF.js")), Me = x(() => import("./DataTable-Y5HbiUZU.js")), Re = x(() => import("./PackageVersion-DaWGaZxE.js")), Ne = x(() => import("./PenAndPaper-C-CpE0NC.js")), De = x(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), Le = x(() => import("./Tooltip-B07vY6jm.js")), Ve = x(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), O = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), M = 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
|
+
get: () => de(),
|
|
40
34
|
set: (t) => t
|
|
41
|
-
}), { userOptionsVisible:
|
|
42
|
-
function
|
|
43
|
-
const t =
|
|
35
|
+
}), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = mt({ config: e.value }), { svgRef: ve } = bt({ config: e.value.style.chart.title });
|
|
36
|
+
function de() {
|
|
37
|
+
const t = _e({
|
|
44
38
|
userConfig: w.config,
|
|
45
|
-
defaultConfig:
|
|
39
|
+
defaultConfig: ze
|
|
46
40
|
});
|
|
47
41
|
return t.theme ? {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
42
|
+
..._e({
|
|
43
|
+
userConfig: rt.vue_ui_onion[t.theme] || w.config,
|
|
50
44
|
defaultConfig: t
|
|
51
45
|
}),
|
|
52
|
-
customPalette:
|
|
46
|
+
customPalette: st[t.theme] || Oe
|
|
53
47
|
} : t;
|
|
54
48
|
}
|
|
55
|
-
|
|
56
|
-
e.value =
|
|
49
|
+
Ce(() => w.config, (t) => {
|
|
50
|
+
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;
|
|
57
51
|
}, { deep: !0 });
|
|
58
|
-
const { isPrinting:
|
|
59
|
-
elementId: `vue-ui-onion_${
|
|
52
|
+
const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } = yt({
|
|
53
|
+
elementId: `vue-ui-onion_${O.value}`,
|
|
60
54
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
61
55
|
options: e.value.userOptions.print
|
|
62
|
-
}),
|
|
56
|
+
}), Be = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => ut(e.value.customPalette)), m = u({
|
|
63
57
|
showTable: e.value.table.show,
|
|
64
58
|
showTooltip: e.value.style.chart.tooltip.show
|
|
65
|
-
}),
|
|
59
|
+
}), n = u({
|
|
66
60
|
height: 512,
|
|
67
61
|
width: 512,
|
|
68
62
|
padding: {
|
|
@@ -72,119 +66,119 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
72
66
|
bottom: 64
|
|
73
67
|
},
|
|
74
68
|
minRadius: 64
|
|
75
|
-
}),
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
}), $ = xe(null), P = xe(null);
|
|
70
|
+
Ze(() => {
|
|
71
|
+
ye();
|
|
78
72
|
});
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
73
|
+
function ye() {
|
|
74
|
+
if (it(w.dataset) && Z({
|
|
81
75
|
componentName: "VueUiOnion",
|
|
82
76
|
type: "dataset"
|
|
83
77
|
}), e.value.responsive) {
|
|
84
|
-
const o =
|
|
85
|
-
const { width: a, height: l } =
|
|
86
|
-
chart:
|
|
87
|
-
title: e.value.style.chart.title.text ?
|
|
88
|
-
legend: e.value.style.chart.legend.show ?
|
|
89
|
-
source:
|
|
90
|
-
noTitle:
|
|
78
|
+
const o = gt(() => {
|
|
79
|
+
const { width: a, height: l } = pt({
|
|
80
|
+
chart: M.value,
|
|
81
|
+
title: e.value.style.chart.title.text ? ae.value : null,
|
|
82
|
+
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
83
|
+
source: oe.value,
|
|
84
|
+
noTitle: ne.value
|
|
91
85
|
});
|
|
92
86
|
requestAnimationFrame(() => {
|
|
93
|
-
|
|
87
|
+
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;
|
|
94
88
|
});
|
|
95
89
|
});
|
|
96
|
-
|
|
90
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(o), P.value = M.value.parentNode, $.value.observe(P.value);
|
|
97
91
|
}
|
|
98
92
|
}
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
et(() => {
|
|
94
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
|
|
101
95
|
});
|
|
102
96
|
const c = h(() => ({
|
|
103
|
-
top:
|
|
104
|
-
left:
|
|
105
|
-
right:
|
|
106
|
-
bottom:
|
|
107
|
-
centerX:
|
|
108
|
-
centerY:
|
|
109
|
-
width:
|
|
110
|
-
height:
|
|
111
|
-
minRadius:
|
|
112
|
-
maxRadius: Math.min(
|
|
113
|
-
})),
|
|
114
|
-
[null, void 0].includes(t.name) &&
|
|
97
|
+
top: n.value.padding.top,
|
|
98
|
+
left: n.value.padding.left,
|
|
99
|
+
right: n.value.width - n.value.padding.right,
|
|
100
|
+
bottom: n.value.height - n.value.padding.bottom,
|
|
101
|
+
centerX: n.value.width / 2,
|
|
102
|
+
centerY: n.value.height / 2,
|
|
103
|
+
width: n.value.width - n.value.padding.right - n.value.padding.left,
|
|
104
|
+
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
105
|
+
minRadius: n.value.minRadius,
|
|
106
|
+
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
107
|
+
})), d = h(() => (w.dataset.forEach((t, o) => {
|
|
108
|
+
[null, void 0].includes(t.name) && Z({
|
|
115
109
|
componentName: "VueUiOnion",
|
|
116
110
|
type: "datasetSerieAttribute",
|
|
117
111
|
property: "name",
|
|
118
112
|
index: o
|
|
119
|
-
}), [void 0].includes(t.percentage) &&
|
|
113
|
+
}), [void 0].includes(t.percentage) && Z({
|
|
120
114
|
componentName: "VueUiOnion",
|
|
121
115
|
type: "datasetSerieAttribute",
|
|
122
116
|
property: "percentage",
|
|
123
117
|
index: o
|
|
124
118
|
});
|
|
125
119
|
}), w.dataset.map((t, o) => {
|
|
126
|
-
const a = `onion_serie_${o}_${
|
|
120
|
+
const a = `onion_serie_${o}_${O.value}`;
|
|
127
121
|
return {
|
|
128
122
|
...t,
|
|
129
123
|
percentage: t.percentage || 0,
|
|
130
124
|
targetPercentage: t.percentage || 0,
|
|
131
|
-
color:
|
|
125
|
+
color: ct(t.color) || Xe.value[o] || Oe[o],
|
|
132
126
|
id: a,
|
|
133
127
|
shape: "circle",
|
|
134
128
|
opacity: y.value.includes(a) ? 0.5 : 1,
|
|
135
129
|
absoluteIndex: o,
|
|
136
|
-
segregate: () =>
|
|
130
|
+
segregate: () => me(a),
|
|
137
131
|
isSegregated: y.value.includes(a)
|
|
138
132
|
};
|
|
139
|
-
}))),
|
|
140
|
-
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
133
|
+
}))), R = u(d.value), Ue = h(() => e.value.useStartAnimation), Ge = u(null), Ee = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
|
|
134
|
+
Ce(() => d.value, He, { immediate: !0 });
|
|
135
|
+
function He() {
|
|
136
|
+
if (Ue.value && !W.value) {
|
|
143
137
|
let o = function() {
|
|
144
|
-
t >=
|
|
138
|
+
t >= Ee.value ? (cancelAnimationFrame(Ge.value), R.value = d.value, W.value = !0) : (R.value = d.value.map((a) => ({
|
|
145
139
|
...a,
|
|
146
140
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
147
|
-
})), t += 1, requestAnimationFrame(o),
|
|
141
|
+
})), t += 1, requestAnimationFrame(o), W.value = !0);
|
|
148
142
|
};
|
|
149
|
-
|
|
143
|
+
R.value = d.value.map((a) => ({
|
|
150
144
|
...a,
|
|
151
145
|
percentage: 0
|
|
152
146
|
}));
|
|
153
147
|
let t = 0;
|
|
154
148
|
o();
|
|
155
149
|
} else
|
|
156
|
-
|
|
150
|
+
R.value = d.value;
|
|
157
151
|
}
|
|
158
|
-
const
|
|
152
|
+
const We = h(() => ({
|
|
159
153
|
cy: "onion-div-legend",
|
|
160
154
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
161
155
|
color: e.value.style.chart.legend.color,
|
|
162
156
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
163
157
|
paddingBottom: 12,
|
|
164
158
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
165
|
-
})),
|
|
166
|
-
const t = Math.min(c.value.width, c.value.height) / 2 /
|
|
159
|
+
})), je = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), C = h(() => {
|
|
160
|
+
const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
|
|
167
161
|
return {
|
|
168
162
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
169
163
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
170
164
|
};
|
|
171
|
-
}), b = h(() =>
|
|
172
|
-
const a = (c.value.maxRadius -
|
|
165
|
+
}), b = h(() => R.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
|
|
166
|
+
const a = (c.value.maxRadius - C.value.track) / je.value / 2 * (1 + o), l = c.value.centerY - a;
|
|
173
167
|
return {
|
|
174
168
|
percentage: t.percentage || 0,
|
|
175
169
|
...t,
|
|
176
170
|
labelY: l,
|
|
177
171
|
radius: a,
|
|
178
|
-
path:
|
|
172
|
+
path: qe(a, t.percentage || 0)
|
|
179
173
|
};
|
|
180
174
|
}));
|
|
181
|
-
function
|
|
182
|
-
const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`,
|
|
175
|
+
function qe(t, o) {
|
|
176
|
+
const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, N = l * (1 - o / 100);
|
|
183
177
|
return {
|
|
184
178
|
bgDashArray: `${l} ${a}`,
|
|
185
179
|
bgDashOffset: 0,
|
|
186
180
|
dashArray: p,
|
|
187
|
-
dashOffset:
|
|
181
|
+
dashOffset: N,
|
|
188
182
|
fullOffset: 0,
|
|
189
183
|
active: `
|
|
190
184
|
M ${c.value.centerX},${c.value.centerY - t}
|
|
@@ -193,22 +187,22 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
193
187
|
`.trim()
|
|
194
188
|
};
|
|
195
189
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t),
|
|
190
|
+
const Je = Se;
|
|
191
|
+
function me(t) {
|
|
192
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Je("selectLegend", b.value);
|
|
199
193
|
}
|
|
200
|
-
function
|
|
194
|
+
function Ke() {
|
|
201
195
|
return b.value;
|
|
202
196
|
}
|
|
203
|
-
const
|
|
197
|
+
const j = h(() => {
|
|
204
198
|
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = b.value.map((a) => [
|
|
205
199
|
a.name,
|
|
206
200
|
a.percentage,
|
|
207
201
|
a.value
|
|
208
202
|
]);
|
|
209
203
|
return { head: t, body: o };
|
|
210
|
-
}),
|
|
211
|
-
const t =
|
|
204
|
+
}), B = h(() => {
|
|
205
|
+
const t = j.value.head, o = b.value.map((l) => [
|
|
212
206
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
213
207
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
214
208
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -227,104 +221,104 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
227
221
|
};
|
|
228
222
|
return { head: t, body: o, config: a, colNames: t };
|
|
229
223
|
});
|
|
230
|
-
function
|
|
231
|
-
|
|
232
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o =
|
|
233
|
-
|
|
224
|
+
function be() {
|
|
225
|
+
lt(() => {
|
|
226
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = j.value.head, a = j.value.body, l = t.concat([o]).concat(a), p = dt(l);
|
|
227
|
+
ht({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
234
228
|
});
|
|
235
229
|
}
|
|
236
|
-
const k =
|
|
237
|
-
function
|
|
238
|
-
|
|
230
|
+
const k = u(void 0), _ = u(!1);
|
|
231
|
+
function Qe(t) {
|
|
232
|
+
_.value = t, te.value += 1;
|
|
239
233
|
}
|
|
240
|
-
const
|
|
241
|
-
function
|
|
234
|
+
const q = u(null);
|
|
235
|
+
function ke({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
242
236
|
const l = t.absoluteIndex;
|
|
243
|
-
k.value = o,
|
|
237
|
+
k.value = o, q.value = {
|
|
244
238
|
datapoint: t,
|
|
245
239
|
seriesIndex: l,
|
|
246
|
-
series:
|
|
240
|
+
series: d.value,
|
|
247
241
|
config: e.value
|
|
248
|
-
},
|
|
242
|
+
}, Y.value = a;
|
|
249
243
|
let p = "";
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
244
|
+
const N = e.value.style.chart.tooltip.customFormat;
|
|
245
|
+
if (Pe(N) && ft(() => N({
|
|
252
246
|
seriesIndex: l,
|
|
253
247
|
datapoint: t,
|
|
254
|
-
series:
|
|
248
|
+
series: d.value,
|
|
255
249
|
config: e.value
|
|
256
250
|
})))
|
|
257
|
-
|
|
251
|
+
E.value = N({
|
|
258
252
|
seriesIndex: l,
|
|
259
253
|
datapoint: t,
|
|
260
|
-
series:
|
|
254
|
+
series: d.value,
|
|
261
255
|
config: e.value
|
|
262
256
|
});
|
|
263
257
|
else {
|
|
264
|
-
const
|
|
265
|
-
p += `<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>`, p += `<div style="width:100%;text-align:left;"><b>${
|
|
258
|
+
const K = e.value.style.chart.tooltip.showPercentage, Q = e.value.style.chart.tooltip.showValue;
|
|
259
|
+
p += `<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>`, p += `<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(
|
|
266
260
|
e.value.style.chart.layout.labels.value.formatter,
|
|
267
261
|
t.value,
|
|
268
|
-
|
|
262
|
+
V({
|
|
269
263
|
p: t.prefix || "",
|
|
270
264
|
v: t.value,
|
|
271
265
|
s: t.suffix || "",
|
|
272
266
|
r: e.value.style.chart.tooltip.roundingValue
|
|
273
267
|
}),
|
|
274
268
|
{ datapoint: t, seriesIndex: o }
|
|
275
|
-
) : ""}${
|
|
269
|
+
) : ""}${K && Q ? ")" : ""}</div>`, E.value = `<div>${p}</div>`;
|
|
276
270
|
}
|
|
277
271
|
}
|
|
278
|
-
function
|
|
272
|
+
function we() {
|
|
279
273
|
m.value.showTable = !m.value.showTable;
|
|
280
274
|
}
|
|
281
|
-
function
|
|
275
|
+
function $e() {
|
|
282
276
|
m.value.showTooltip = !m.value.showTooltip;
|
|
283
277
|
}
|
|
284
|
-
const
|
|
285
|
-
function
|
|
286
|
-
|
|
278
|
+
const X = u(!1);
|
|
279
|
+
function J() {
|
|
280
|
+
X.value = !X.value;
|
|
287
281
|
}
|
|
288
|
-
return
|
|
289
|
-
getData:
|
|
290
|
-
generatePdf:
|
|
291
|
-
generateCsv:
|
|
292
|
-
generateImage:
|
|
293
|
-
toggleTable:
|
|
294
|
-
toggleTooltip:
|
|
295
|
-
toggleAnnotator:
|
|
296
|
-
}), (t, o) => (
|
|
297
|
-
class:
|
|
282
|
+
return Ie({
|
|
283
|
+
getData: Ke,
|
|
284
|
+
generatePdf: ge,
|
|
285
|
+
generateCsv: be,
|
|
286
|
+
generateImage: pe,
|
|
287
|
+
toggleTable: we,
|
|
288
|
+
toggleTooltip: $e,
|
|
289
|
+
toggleAnnotator: J
|
|
290
|
+
}), (t, o) => (s(), i("div", {
|
|
291
|
+
class: G(`vue-ui-onion ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
298
292
|
ref_key: "onionChart",
|
|
299
|
-
ref:
|
|
300
|
-
id: `vue-ui-onion_${
|
|
301
|
-
style:
|
|
302
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
303
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
293
|
+
ref: M,
|
|
294
|
+
id: `vue-ui-onion_${O.value}`,
|
|
295
|
+
style: U(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
296
|
+
onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
|
|
297
|
+
onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
|
|
304
298
|
}, [
|
|
305
|
-
e.value.userOptions.buttons.annotator ? (
|
|
299
|
+
e.value.userOptions.buttons.annotator ? (s(), T(r(Ne), {
|
|
306
300
|
key: 0,
|
|
307
|
-
svgRef:
|
|
301
|
+
svgRef: r(ve),
|
|
308
302
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
309
303
|
color: e.value.style.chart.color,
|
|
310
|
-
active:
|
|
311
|
-
onClose:
|
|
304
|
+
active: X.value,
|
|
305
|
+
onClose: J
|
|
312
306
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
313
|
-
|
|
307
|
+
Be.value ? (s(), i("div", {
|
|
314
308
|
key: 1,
|
|
315
309
|
ref_key: "noTitle",
|
|
316
|
-
ref:
|
|
310
|
+
ref: ne,
|
|
317
311
|
class: "vue-data-ui-no-title-space",
|
|
318
312
|
style: "height:36px; width: 100%;background:transparent"
|
|
319
313
|
}, null, 512)) : g("", !0),
|
|
320
|
-
e.value.style.chart.title.text ? (
|
|
314
|
+
e.value.style.chart.title.text ? (s(), i("div", {
|
|
321
315
|
key: 2,
|
|
322
316
|
ref_key: "chartTitle",
|
|
323
|
-
ref:
|
|
317
|
+
ref: ae,
|
|
324
318
|
style: "width:100%;background:transparent"
|
|
325
319
|
}, [
|
|
326
|
-
(
|
|
327
|
-
key: `title_${
|
|
320
|
+
(s(), T(kt, {
|
|
321
|
+
key: `title_${se.value}`,
|
|
328
322
|
config: {
|
|
329
323
|
title: {
|
|
330
324
|
cy: "onion-div-title",
|
|
@@ -337,248 +331,248 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
337
331
|
}
|
|
338
332
|
}, null, 8, ["config"]))
|
|
339
333
|
], 512)) : g("", !0),
|
|
340
|
-
e.value.userOptions.show &&
|
|
334
|
+
e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), T(r(Ve), {
|
|
341
335
|
ref_key: "details",
|
|
342
|
-
ref:
|
|
343
|
-
key: `user_options${
|
|
336
|
+
ref: Ye,
|
|
337
|
+
key: `user_options${te.value}`,
|
|
344
338
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
345
339
|
color: e.value.style.chart.color,
|
|
346
|
-
isImaging:
|
|
347
|
-
isPrinting:
|
|
348
|
-
uid:
|
|
340
|
+
isImaging: r(fe),
|
|
341
|
+
isPrinting: r(he),
|
|
342
|
+
uid: O.value,
|
|
349
343
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
350
344
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
351
345
|
hasImg: e.value.userOptions.buttons.img,
|
|
352
346
|
hasXls: e.value.userOptions.buttons.csv,
|
|
353
347
|
hasTable: e.value.userOptions.buttons.table,
|
|
354
348
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
355
|
-
isFullscreen:
|
|
349
|
+
isFullscreen: _.value,
|
|
356
350
|
isTooltip: m.value.showTooltip,
|
|
357
351
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
358
|
-
chartElement:
|
|
352
|
+
chartElement: M.value,
|
|
359
353
|
position: e.value.userOptions.position,
|
|
360
354
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
361
|
-
isAnnotation:
|
|
362
|
-
onToggleFullscreen:
|
|
363
|
-
onGeneratePdf:
|
|
364
|
-
onGenerateCsv:
|
|
365
|
-
onGenerateImage:
|
|
366
|
-
onToggleTable:
|
|
367
|
-
onToggleTooltip:
|
|
368
|
-
onToggleAnnotator:
|
|
369
|
-
style:
|
|
370
|
-
visibility:
|
|
355
|
+
isAnnotation: X.value,
|
|
356
|
+
onToggleFullscreen: Qe,
|
|
357
|
+
onGeneratePdf: r(ge),
|
|
358
|
+
onGenerateCsv: be,
|
|
359
|
+
onGenerateImage: r(pe),
|
|
360
|
+
onToggleTable: we,
|
|
361
|
+
onToggleTooltip: $e,
|
|
362
|
+
onToggleAnnotator: J,
|
|
363
|
+
style: U({
|
|
364
|
+
visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
|
|
371
365
|
})
|
|
372
|
-
},
|
|
366
|
+
}, tt({ _: 2 }, [
|
|
373
367
|
t.$slots.menuIcon ? {
|
|
374
368
|
name: "menuIcon",
|
|
375
369
|
fn: f(({ isOpen: a, color: l }) => [
|
|
376
|
-
|
|
370
|
+
v(t.$slots, "menuIcon", I(S({ isOpen: a, color: l })), void 0, !0)
|
|
377
371
|
]),
|
|
378
372
|
key: "0"
|
|
379
373
|
} : void 0,
|
|
380
374
|
t.$slots.optionTooltip ? {
|
|
381
375
|
name: "optionTooltip",
|
|
382
376
|
fn: f(() => [
|
|
383
|
-
|
|
377
|
+
v(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
384
378
|
]),
|
|
385
379
|
key: "1"
|
|
386
380
|
} : void 0,
|
|
387
381
|
t.$slots.optionPdf ? {
|
|
388
382
|
name: "optionPdf",
|
|
389
383
|
fn: f(() => [
|
|
390
|
-
|
|
384
|
+
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
391
385
|
]),
|
|
392
386
|
key: "2"
|
|
393
387
|
} : void 0,
|
|
394
388
|
t.$slots.optionCsv ? {
|
|
395
389
|
name: "optionCsv",
|
|
396
390
|
fn: f(() => [
|
|
397
|
-
|
|
391
|
+
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
398
392
|
]),
|
|
399
393
|
key: "3"
|
|
400
394
|
} : void 0,
|
|
401
395
|
t.$slots.optionImg ? {
|
|
402
396
|
name: "optionImg",
|
|
403
397
|
fn: f(() => [
|
|
404
|
-
|
|
398
|
+
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
405
399
|
]),
|
|
406
400
|
key: "4"
|
|
407
401
|
} : void 0,
|
|
408
402
|
t.$slots.optionTable ? {
|
|
409
403
|
name: "optionTable",
|
|
410
404
|
fn: f(() => [
|
|
411
|
-
|
|
405
|
+
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
412
406
|
]),
|
|
413
407
|
key: "5"
|
|
414
408
|
} : void 0,
|
|
415
409
|
t.$slots.optionFullscreen ? {
|
|
416
410
|
name: "optionFullscreen",
|
|
417
411
|
fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
418
|
-
|
|
412
|
+
v(t.$slots, "optionFullscreen", I(S({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
419
413
|
]),
|
|
420
414
|
key: "6"
|
|
421
415
|
} : void 0,
|
|
422
416
|
t.$slots.optionAnnotator ? {
|
|
423
417
|
name: "optionAnnotator",
|
|
424
418
|
fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
425
|
-
|
|
419
|
+
v(t.$slots, "optionAnnotator", I(S({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
426
420
|
]),
|
|
427
421
|
key: "7"
|
|
428
422
|
} : void 0
|
|
429
423
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
430
|
-
|
|
424
|
+
z.value ? (s(), i("svg", {
|
|
431
425
|
key: 4,
|
|
432
426
|
ref_key: "svgRef",
|
|
433
|
-
ref:
|
|
434
|
-
xmlns:
|
|
435
|
-
class:
|
|
436
|
-
viewBox: `0 0 ${
|
|
437
|
-
style:
|
|
427
|
+
ref: ve,
|
|
428
|
+
xmlns: r(vt),
|
|
429
|
+
class: G({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
430
|
+
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
431
|
+
style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
438
432
|
}, [
|
|
439
|
-
|
|
440
|
-
t.$slots["chart-background"] ? (
|
|
433
|
+
Te(r(Re)),
|
|
434
|
+
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
441
435
|
key: 0,
|
|
442
436
|
x: 0,
|
|
443
437
|
y: 0,
|
|
444
|
-
width:
|
|
445
|
-
height:
|
|
438
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
439
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
446
440
|
style: {
|
|
447
441
|
pointerEvents: "none"
|
|
448
442
|
}
|
|
449
443
|
}, [
|
|
450
|
-
|
|
451
|
-
], 8,
|
|
452
|
-
(
|
|
444
|
+
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
445
|
+
], 8, Tt)) : g("", !0),
|
|
446
|
+
(s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
|
|
453
447
|
cx: c.value.centerX,
|
|
454
448
|
cy: c.value.centerY,
|
|
455
449
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
456
450
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
457
|
-
"stroke-width":
|
|
451
|
+
"stroke-width": C.value.gutter,
|
|
458
452
|
fill: "none",
|
|
459
453
|
"stroke-dasharray": a.path.bgDashArray,
|
|
460
454
|
"stroke-dashoffset": a.path.fullOffset,
|
|
461
455
|
"stroke-linecap": "round",
|
|
462
|
-
class:
|
|
456
|
+
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
|
|
463
457
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
464
|
-
}, null, 10,
|
|
465
|
-
(
|
|
458
|
+
}, null, 10, Ot))), 256)),
|
|
459
|
+
(s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
|
|
466
460
|
cx: c.value.centerX,
|
|
467
461
|
cy: c.value.centerY,
|
|
468
462
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
469
463
|
stroke: `${a.color}`,
|
|
470
|
-
"stroke-width":
|
|
464
|
+
"stroke-width": C.value.track,
|
|
471
465
|
fill: "none",
|
|
472
466
|
"stroke-dasharray": a.path.dashArray,
|
|
473
467
|
"stroke-dashoffset": a.path.dashOffset,
|
|
474
|
-
class:
|
|
468
|
+
class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
|
|
475
469
|
"stroke-linecap": "round",
|
|
476
470
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
477
|
-
}, null, 10,
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
id: `blur_${
|
|
471
|
+
}, null, 10, Pt))), 256)),
|
|
472
|
+
A("defs", null, [
|
|
473
|
+
A("filter", {
|
|
474
|
+
id: `blur_${O.value}`,
|
|
481
475
|
x: "-50%",
|
|
482
476
|
y: "-50%",
|
|
483
477
|
width: "200%",
|
|
484
478
|
height: "200%"
|
|
485
479
|
}, [
|
|
486
|
-
|
|
480
|
+
A("feGaussianBlur", {
|
|
487
481
|
in: "SourceGraphic",
|
|
488
482
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
489
|
-
}, null, 8,
|
|
490
|
-
], 8,
|
|
483
|
+
}, null, 8, At)
|
|
484
|
+
], 8, _t)
|
|
491
485
|
]),
|
|
492
|
-
e.value.style.chart.useGradient ? (
|
|
486
|
+
e.value.style.chart.useGradient ? (s(), i("g", {
|
|
493
487
|
key: 1,
|
|
494
|
-
filter: `url(#blur_${
|
|
488
|
+
filter: `url(#blur_${O.value})`
|
|
495
489
|
}, [
|
|
496
|
-
(
|
|
490
|
+
(s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
|
|
497
491
|
cx: c.value.centerX,
|
|
498
492
|
cy: c.value.centerY,
|
|
499
493
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
500
494
|
stroke: "white",
|
|
501
|
-
"stroke-width":
|
|
495
|
+
"stroke-width": C.value.track / 3,
|
|
502
496
|
fill: "none",
|
|
503
497
|
"stroke-linecap": "round",
|
|
504
498
|
"stroke-dasharray": a.path.dashArray,
|
|
505
499
|
"stroke-dashoffset": a.path.dashOffset,
|
|
506
500
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
507
|
-
}, null, 8,
|
|
508
|
-
], 8,
|
|
509
|
-
(
|
|
501
|
+
}, null, 8, St))), 256))
|
|
502
|
+
], 8, It)) : g("", !0),
|
|
503
|
+
(s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
|
|
510
504
|
cx: c.value.centerX,
|
|
511
505
|
cy: c.value.centerY,
|
|
512
506
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
513
507
|
stroke: "transparent",
|
|
514
|
-
"stroke-width": Math.max(
|
|
508
|
+
"stroke-width": Math.max(C.value.track, C.value.gutter),
|
|
515
509
|
fill: "none",
|
|
516
510
|
"stroke-dasharray": a.path.bgDashArray,
|
|
517
511
|
"stroke-dashoffset": a.path.fullOffset,
|
|
518
512
|
"stroke-linecap": "round",
|
|
519
513
|
class: "vue-ui-onion-path",
|
|
520
514
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
521
|
-
onMouseenter: (p) =>
|
|
515
|
+
onMouseenter: (p) => ke({
|
|
522
516
|
datapoint: a,
|
|
523
517
|
show: !0,
|
|
524
518
|
seriesIndex: l
|
|
525
519
|
}),
|
|
526
520
|
onMouseleave: o[0] || (o[0] = (p) => {
|
|
527
|
-
k.value = void 0,
|
|
521
|
+
k.value = void 0, Y.value = !1;
|
|
528
522
|
})
|
|
529
|
-
}, null, 40,
|
|
530
|
-
e.value.style.chart.layout.labels.show ? (
|
|
531
|
-
(
|
|
532
|
-
onMouseenter: (p) =>
|
|
523
|
+
}, null, 40, Ft))), 256)),
|
|
524
|
+
e.value.style.chart.layout.labels.show ? (s(), i("g", Mt, [
|
|
525
|
+
(s(!0), i(D, null, L(b.value, (a, l) => (s(), i("g", {
|
|
526
|
+
onMouseenter: (p) => ke({
|
|
533
527
|
datapoint: a,
|
|
534
528
|
show: !0,
|
|
535
529
|
seriesIndex: l
|
|
536
530
|
}),
|
|
537
531
|
onMouseleave: o[1] || (o[1] = (p) => {
|
|
538
|
-
k.value = void 0,
|
|
532
|
+
k.value = void 0, Y.value = !1;
|
|
539
533
|
})
|
|
540
534
|
}, [
|
|
541
|
-
y.value.includes(a.id) ? g("", !0) : (
|
|
535
|
+
y.value.includes(a.id) ? g("", !0) : (s(), i("text", {
|
|
542
536
|
key: 0,
|
|
543
|
-
x:
|
|
537
|
+
x: n.value.width / 2 - C.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
544
538
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
545
539
|
"text-anchor": "end",
|
|
546
540
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
547
541
|
fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
548
542
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
549
|
-
},
|
|
543
|
+
}, F(a.name ? a.name + ": " : "") + " " + F(e.value.style.chart.layout.labels.percentage.show ? r(V)({
|
|
550
544
|
v: a.percentage,
|
|
551
545
|
s: "%",
|
|
552
546
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
553
|
-
}) : "") + " " +
|
|
547
|
+
}) : "") + " " + F(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
|
|
554
548
|
e.value.style.chart.layout.labels.value.formatter,
|
|
555
549
|
a.value,
|
|
556
|
-
|
|
550
|
+
r(V)({
|
|
557
551
|
p: a.prefix || "",
|
|
558
552
|
v: a.value || 0,
|
|
559
553
|
s: a.suffix || "",
|
|
560
554
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
561
555
|
}),
|
|
562
556
|
{ datapoint: a, seriesIndex: l }
|
|
563
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${
|
|
557
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${r(ee)(
|
|
564
558
|
e.value.style.chart.layout.labels.value.formatter,
|
|
565
559
|
a.value,
|
|
566
|
-
|
|
560
|
+
r(V)({
|
|
567
561
|
p: a.prefix || "",
|
|
568
562
|
v: a.value || 0,
|
|
569
563
|
s: a.suffix || "",
|
|
570
564
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
571
565
|
}),
|
|
572
566
|
{ datapoint: a, seriesIndex: l }
|
|
573
|
-
)})` : ""}`), 9,
|
|
574
|
-
], 40,
|
|
567
|
+
)})` : ""}`), 9, Nt))
|
|
568
|
+
], 40, Rt))), 256))
|
|
575
569
|
])) : g("", !0),
|
|
576
|
-
|
|
577
|
-
], 14,
|
|
578
|
-
t.$slots.watermark ? (
|
|
579
|
-
|
|
570
|
+
v(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
571
|
+
], 14, xt)) : g("", !0),
|
|
572
|
+
t.$slots.watermark ? (s(), i("div", Dt, [
|
|
573
|
+
v(t.$slots, "watermark", I(S({ isPrinting: r(he) || r(fe) })), void 0, !0)
|
|
580
574
|
])) : g("", !0),
|
|
581
|
-
|
|
575
|
+
z.value ? g("", !0) : (s(), T(r(De), {
|
|
582
576
|
key: 6,
|
|
583
577
|
config: {
|
|
584
578
|
type: "onion",
|
|
@@ -590,39 +584,39 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
590
584
|
}
|
|
591
585
|
}
|
|
592
586
|
}, null, 8, ["config"])),
|
|
593
|
-
|
|
587
|
+
A("div", {
|
|
594
588
|
ref_key: "chartLegend",
|
|
595
|
-
ref:
|
|
589
|
+
ref: le
|
|
596
590
|
}, [
|
|
597
|
-
e.value.style.chart.legend.show ? (
|
|
598
|
-
key: `legend_${
|
|
599
|
-
legendSet:
|
|
600
|
-
config:
|
|
601
|
-
onClickMarker: o[2] || (o[2] = ({ legend: a }) =>
|
|
591
|
+
e.value.style.chart.legend.show ? (s(), T(wt, {
|
|
592
|
+
key: `legend_${ue.value}`,
|
|
593
|
+
legendSet: d.value,
|
|
594
|
+
config: We.value,
|
|
595
|
+
onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
|
|
602
596
|
}, {
|
|
603
597
|
item: f(({ legend: a }) => [
|
|
604
|
-
|
|
598
|
+
A("div", {
|
|
605
599
|
"data-cy-legend-item": "",
|
|
606
600
|
onClick: (l) => a.segregate(),
|
|
607
|
-
style:
|
|
608
|
-
},
|
|
601
|
+
style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
|
|
602
|
+
}, F(a.name ? a.name + ": " : "") + " " + F((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Lt)
|
|
609
603
|
]),
|
|
610
604
|
_: 1
|
|
611
|
-
}, 8, ["legendSet", "config"])) :
|
|
605
|
+
}, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
|
|
612
606
|
key: 1,
|
|
613
|
-
legend:
|
|
607
|
+
legend: d.value
|
|
614
608
|
}, void 0, !0)
|
|
615
609
|
], 512),
|
|
616
|
-
t.$slots.source ? (
|
|
610
|
+
t.$slots.source ? (s(), i("div", {
|
|
617
611
|
key: 7,
|
|
618
612
|
ref_key: "source",
|
|
619
|
-
ref:
|
|
613
|
+
ref: oe,
|
|
620
614
|
dir: "auto"
|
|
621
615
|
}, [
|
|
622
|
-
|
|
616
|
+
v(t.$slots, "source", {}, void 0, !0)
|
|
623
617
|
], 512)) : g("", !0),
|
|
624
|
-
|
|
625
|
-
show: m.value.showTooltip &&
|
|
618
|
+
Te(r(Le), {
|
|
619
|
+
show: m.value.showTooltip && Y.value,
|
|
626
620
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
627
621
|
color: e.value.style.chart.tooltip.color,
|
|
628
622
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -632,20 +626,20 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
632
626
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
633
627
|
position: e.value.style.chart.tooltip.position,
|
|
634
628
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
635
|
-
parent:
|
|
636
|
-
content:
|
|
637
|
-
isFullscreen:
|
|
638
|
-
isCustom:
|
|
629
|
+
parent: M.value,
|
|
630
|
+
content: E.value,
|
|
631
|
+
isFullscreen: _.value,
|
|
632
|
+
isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
639
633
|
}, {
|
|
640
634
|
"tooltip-before": f(() => [
|
|
641
|
-
|
|
635
|
+
v(t.$slots, "tooltip-before", I(S({ ...q.value })), void 0, !0)
|
|
642
636
|
]),
|
|
643
637
|
"tooltip-after": f(() => [
|
|
644
|
-
|
|
638
|
+
v(t.$slots, "tooltip-after", I(S({ ...q.value })), void 0, !0)
|
|
645
639
|
]),
|
|
646
640
|
_: 3
|
|
647
641
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
648
|
-
|
|
642
|
+
z.value ? (s(), T(r(Fe), {
|
|
649
643
|
key: 8,
|
|
650
644
|
hideDetails: "",
|
|
651
645
|
config: {
|
|
@@ -662,29 +656,29 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
|
|
|
662
656
|
}
|
|
663
657
|
}, {
|
|
664
658
|
content: f(() => [
|
|
665
|
-
(
|
|
666
|
-
key: `table_${
|
|
667
|
-
colNames:
|
|
668
|
-
head:
|
|
669
|
-
body:
|
|
670
|
-
config:
|
|
659
|
+
(s(), T(r(Me), {
|
|
660
|
+
key: `table_${re.value}`,
|
|
661
|
+
colNames: B.value.colNames,
|
|
662
|
+
head: B.value.head,
|
|
663
|
+
body: B.value.body,
|
|
664
|
+
config: B.value.config,
|
|
671
665
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
672
666
|
onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
|
|
673
667
|
}, {
|
|
674
668
|
th: f(({ th: a }) => [
|
|
675
|
-
|
|
669
|
+
at(F(a), 1)
|
|
676
670
|
]),
|
|
677
671
|
td: f(({ td: a }) => [
|
|
678
|
-
|
|
672
|
+
A("div", { innerHTML: a }, null, 8, Vt)
|
|
679
673
|
]),
|
|
680
674
|
_: 1
|
|
681
675
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
682
676
|
]),
|
|
683
677
|
_: 1
|
|
684
678
|
}, 8, ["config"])) : g("", !0)
|
|
685
|
-
], 46,
|
|
679
|
+
], 46, Ct));
|
|
686
680
|
}
|
|
687
|
-
},
|
|
681
|
+
}, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-86272e4c"]]);
|
|
688
682
|
export {
|
|
689
|
-
|
|
683
|
+
Jt as default
|
|
690
684
|
};
|