vue-data-ui 2.16.4 → 2.16.6
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 +2 -2
- package/dist/{Arrow-CQWVJ5sZ.js → Arrow-DCqxVwey.js} +1 -1
- package/dist/{BaseDraggableDialog-Fz8fA4VM.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
- package/dist/{BaseIcon-CfYrW3zO.js → BaseIcon-Bn996RXm.js} +1 -1
- package/dist/{ColorPicker-B2ITT7Lp.js → ColorPicker-OFfLkKNb.js} +2 -2
- package/dist/{DataTable-C6IBsdXI.js → DataTable-CHBLjKtZ.js} +2 -2
- package/dist/{Legend-bIoNrGWy.js → Legend-nBXoxXJH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BsSwoYpL.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
- package/dist/{PackageVersion-DfefmcMg.js → PackageVersion-Bg_9KCU-.js} +1 -1
- package/dist/{PenAndPaper-CixPm-N0.js → PenAndPaper-BPTpbnay.js} +3 -3
- package/dist/{Shape-dKMmmbg5.js → Shape-Bnf512BA.js} +1 -1
- package/dist/{Slicer-szgfOkiL.js → Slicer-BrqtJG2E.js} +2 -2
- package/dist/{SparkTooltip-D_NmtqzO.js → SparkTooltip-C-rLATAw.js} +1 -1
- package/dist/{Title-DTuTBtAe.js → Title-Gi81VwUM.js} +1 -1
- package/dist/{Tooltip-CVPiPR9d.js → Tooltip-CJxVw7-T.js} +1 -1
- package/dist/{UserOptions-D8SRavqE.js → UserOptions-CBEK6_jo.js} +137 -129
- package/dist/{dom-to-png-Br5bL5eX.js → dom-to-png-CRHNL8VU.js} +1 -1
- package/dist/img-BgOg8opa.js +27 -0
- package/dist/{index-BsirVW_m.js → index-DvIXJm6t.js} +1 -1
- package/dist/{pdf-BBk37REU.js → pdf-DhTxBrbJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-Ej-oqNyf.js → useNestedProp-DrYHm61t.js} +1 -1
- package/dist/{usePrinter-Dpd-vZym.js → usePrinter-CWnXbGMb.js} +2 -2
- package/dist/{vue-data-ui-Bd_shukQ.js → vue-data-ui-B8EWlMIK.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Baaeejpi.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
- package/dist/{vue-ui-accordion-D2TcT2US.js → vue-ui-accordion-D55kCO5G.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BW2q5yMT.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
- package/dist/{vue-ui-annotator-DR6dXmoQ.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
- package/dist/{vue-ui-bullet-BYvOXGoO.js → vue-ui-bullet-FeScjj7q.js} +23 -22
- package/dist/{vue-ui-candlestick-DXGY7-1u.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
- package/dist/{vue-ui-carousel-table-DpRdTSdS.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
- package/dist/{vue-ui-chestnut--uqQw5gd.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
- package/dist/{vue-ui-chord-C6z1Oi8y.js → vue-ui-chord-BgLbFBT9.js} +87 -86
- package/dist/{vue-ui-circle-pack-BgtFPkv2.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
- package/dist/{vue-ui-cursor-C_KZ7SW0.js → vue-ui-cursor-DWmfnM25.js} +2 -2
- package/dist/{vue-ui-dashboard-YSzYS59X.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
- package/dist/{vue-ui-digits-B6Ej5XbC.js → vue-ui-digits-BgQch3Fc.js} +2 -2
- package/dist/{vue-ui-donut-BYouj_X8.js → vue-ui-donut-B59bCV5_.js} +74 -73
- package/dist/{vue-ui-donut-evolution-DHIMoo_a.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
- package/dist/{vue-ui-dumbbell-rHe7aWF7.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
- package/dist/{vue-ui-flow-hV-6uTPS.js → vue-ui-flow-DxF0ELtv.js} +9 -8
- package/dist/{vue-ui-funnel-45FdkG1w.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
- package/dist/{vue-ui-galaxy-yg-YRwYP.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
- package/dist/{vue-ui-gauge-Ccf__w06.js → vue-ui-gauge-D7arhDmb.js} +8 -7
- package/dist/{vue-ui-gizmo-CxSBWMgK.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz1GzvLQ.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
- package/dist/{vue-ui-history-plot-DChEbCv0.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
- package/dist/{vue-ui-kpi-D1cHw1LD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
- package/dist/{vue-ui-mini-loader-FxoEnicn.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
- package/dist/{vue-ui-molecule-BvGzvTQc.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
- package/dist/{vue-ui-mood-radar-DomwWh69.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
- package/dist/{vue-ui-nested-donuts-BrC9S0cw.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
- package/dist/{vue-ui-onion-YvCPFGpJ.js → vue-ui-onion-Buu4VX3u.js} +40 -39
- package/dist/{vue-ui-parallel-coordinate-plot-D_ji0o1R.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
- package/dist/{vue-ui-quadrant-B1xa2r0Q.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
- package/dist/{vue-ui-quick-chart-ClCOLJ5y.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
- package/dist/{vue-ui-radar-B460wd0h.js → vue-ui-radar-68NMPxxQ.js} +26 -25
- package/dist/{vue-ui-rating-D1_WFLlk.js → vue-ui-rating-swH9kRr3.js} +2 -2
- package/dist/{vue-ui-relation-circle-ECKEkE2-.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
- package/dist/{vue-ui-ridgeline-E-1Lcv1j.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
- package/dist/{vue-ui-rings-BsSwSht6.js → vue-ui-rings-M-9dPI5D.js} +45 -44
- package/dist/{vue-ui-scatter-CVEd6_m1.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
- package/dist/{vue-ui-skeleton-CchtfQiJ.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
- package/dist/{vue-ui-smiley-CkedzX6d.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
- package/dist/{vue-ui-spark-trend-ByPzMHci.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
- package/dist/{vue-ui-sparkbar-DoVR95AR.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B9WEsmn8.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B5Ub1nsA.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
- package/dist/{vue-ui-sparkline-BqHPNt6h.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BhL0IxK5.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
- package/dist/{vue-ui-stackbar-CuSsigBj.js → vue-ui-stackbar-BDpMsTYe.js} +277 -275
- package/dist/{vue-ui-strip-plot-BTqp8p9u.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
- package/dist/{vue-ui-table-Du7un5Fm.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
- package/dist/{vue-ui-table-heatmap-YxGFfRC3.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
- package/dist/{vue-ui-table-sparkline-Bbt4GjUn.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
- package/dist/{vue-ui-thermometer-Cnc4zVKO.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
- package/dist/{vue-ui-timer-DgVQY-BQ.js → vue-ui-timer-Bes74INL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BTHDxycu.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
- package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
- package/dist/{vue-ui-vertical-bar-C5aombcF.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
- package/dist/{vue-ui-waffle-DHDmy4xh.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
- package/dist/{vue-ui-wheel-DmPltDq0.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
- package/dist/{vue-ui-word-cloud-D15rS85A.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
- package/dist/{vue-ui-world-9lR_bov_.js → vue-ui-world-B9PxVO4n.js} +8 -7
- package/dist/{vue-ui-xy-DnEdi5Hn.js → vue-ui-xy-DtJ7qJib.js} +69 -68
- package/dist/{vue-ui-xy-canvas-BaZZ7r1e.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
- package/package.json +1 -1
- package/dist/img-BOi0vhPf.js +0 -20
- package/dist/vue-ui-treemap-B96LGRM_.js +0 -952
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as Q, useSlots as Xt, computed as y, shallowRef as E, ref as x, onMounted as tt, onBeforeUnmount as It, watch as lt, createElementBlock as n, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Z, createCommentVNode as i, renderSlot as m, createElementVNode as f, createVNode as xe, unref as r, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as ue, Fragment as p, renderList as A, mergeProps as ot, toDisplayString as P, createTextVNode as ut, nextTick as Dt } from "vue";
|
|
2
|
-
import { u as Vt, o as Bt, e as st, g as Gt, c as Wt, b as Rt, v as Et, d as nt, p as ee, m as rt, $ as Ut, f as M, X as jt, s as fe, w as Ht, j as qt, N as L, i as D, k as ve, n as w, t as Jt, a as Kt, q as Qt, r as Zt, x as el, T as it } from "./index-
|
|
2
|
+
import { u as Vt, o as Bt, e as st, g as Gt, c as Wt, b as Rt, v as Et, d as nt, p as ee, m as rt, $ as Ut, f as M, X as jt, s as fe, w as Ht, j as qt, N as L, i as D, k as ve, n as w, t as Jt, a as Kt, q as Qt, r as Zt, x as el, T as it } from "./index-DvIXJm6t.js";
|
|
3
3
|
import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as vt } from "./useNestedProp-
|
|
5
|
-
import { u as al } from "./usePrinter-
|
|
4
|
+
import { u as vt } from "./useNestedProp-DrYHm61t.js";
|
|
5
|
+
import { u as al } from "./usePrinter-CWnXbGMb.js";
|
|
6
6
|
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import sl from "./Legend-
|
|
9
|
-
import nl from "./Title-
|
|
10
|
-
import { _ as rl } from "./Shape-
|
|
8
|
+
import sl from "./Legend-nBXoxXJH.js";
|
|
9
|
+
import nl from "./Title-Gi81VwUM.js";
|
|
10
|
+
import { _ as rl } from "./Shape-Bnf512BA.js";
|
|
11
11
|
import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { key: 1 }, yl = ["id"], fl = ["stop-color"], pl = ["offset", "stop-color"], gl = ["offset", "stop-color"], ml = ["stop-color"], bl = { key: 2 }, wl = ["id", "cx", "cy"], kl = ["stop-color", "stop-opacity"], _l = ["stop-color"], xl = ["id"], $l = ["id"], Cl = ["id"], Tl = ["flood-color"], Pl = ["id"], Al = ["flood-color"],
|
|
12
|
+
const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { key: 1 }, yl = ["id"], fl = ["stop-color"], pl = ["offset", "stop-color"], gl = ["offset", "stop-color"], ml = ["stop-color"], bl = { key: 2 }, wl = ["id", "cx", "cy"], kl = ["stop-color", "stop-opacity"], _l = ["stop-color"], xl = ["id"], $l = ["id"], Cl = ["id"], Tl = ["flood-color"], Pl = ["id"], Al = ["flood-color"], Sl = ["d", "stroke", "filter"], Fl = ["d", "stroke", "filter"], Ll = ["cx", "cy", "r", "fill", "filter"], Ol = { key: 6 }, zl = ["stroke", "d"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = { key: 0 }, Il = ["stroke", "d"], Dl = { key: 0 }, Vl = ["d", "stroke", "stroke-width", "filter"], Bl = { key: 1 }, Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Wl = ["d", "fill", "stroke", "stroke-width", "filter"], Rl = { key: 1 }, El = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ul = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], jl = { key: 0 }, Hl = ["d", "fill", "stroke", "stroke-width"], ql = ["cx", "cy", "r", "stroke"], Jl = ["cx", "cy", "r", "fill"], Kl = { key: 0 }, Ql = ["d", "fill", "onMouseenter", "onClick"], Zl = { key: 1 }, ea = ["cx", "cy", "r"], ta = ["x", "y", "fill", "font-size"], la = ["x", "y", "fill", "font-size"], aa = ["x", "y", "fill", "font-size"], oa = ["x", "y", "fill", "font-size"], ua = ["filter"], sa = { key: 0 }, na = ["x", "y"], ra = { key: 1 }, ia = ["cx", "cy", "fill", "stroke", "filter", "onClick"], va = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ca = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], da = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ha = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ya = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fa = { key: 2 }, pa = ["x", "y", "width"], ga = ["x", "y", "width"], ma = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, ba = ["onClick"], wa = {
|
|
@@ -33,24 +33,24 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup($e, { expose: ct, emit: dt }) {
|
|
36
|
-
const ht = Q(() => import("./vue-ui-accordion-
|
|
36
|
+
const ht = Q(() => import("./vue-ui-accordion-D55kCO5G.js")), yt = Q(() => import("./DataTable-CHBLjKtZ.js")), ft = Q(() => import("./PackageVersion-Bg_9KCU-.js")), pt = Q(() => import("./PenAndPaper-BPTpbnay.js")), gt = Q(() => import("./vue-ui-skeleton-BAOt2neL.js")), mt = Q(() => import("./Tooltip-CJxVw7-T.js")), bt = Q(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_donut: wt } = Vt(), kt = Xt(), O = $e, se = y({
|
|
37
37
|
get() {
|
|
38
|
-
return !!
|
|
38
|
+
return !!O.dataset && O.dataset.length;
|
|
39
39
|
},
|
|
40
40
|
set(l) {
|
|
41
41
|
return l;
|
|
42
42
|
}
|
|
43
|
-
}), ne = E(null), Ce = E(null), Te = E(null), U = E(null), te = E(null), Pe = E(null), Ae = E(null),
|
|
43
|
+
}), ne = E(null), Ce = E(null), Te = E(null), U = E(null), te = E(null), Pe = E(null), Ae = E(null), Se = x(0), Fe = x(0), Le = x(0);
|
|
44
44
|
tt(() => {
|
|
45
|
-
|
|
45
|
+
Oe();
|
|
46
46
|
}), It(() => {
|
|
47
47
|
U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect());
|
|
48
48
|
});
|
|
49
|
-
function
|
|
50
|
-
if (Bt(
|
|
49
|
+
function Oe() {
|
|
50
|
+
if (Bt(O.dataset) ? st({
|
|
51
51
|
componentName: "VueUiDonut",
|
|
52
52
|
type: "dataset"
|
|
53
|
-
}) :
|
|
53
|
+
}) : O.dataset.forEach((l, u) => {
|
|
54
54
|
Gt({
|
|
55
55
|
datasetObject: l,
|
|
56
56
|
requiredAttributes: ["name", "values"]
|
|
@@ -79,15 +79,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
79
79
|
U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect()), U.value = new ResizeObserver(l), te.value = ne.value.parentNode, U.value.observe(te.value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const g = x(Wt()), _t = x(null), ce = x(!1), pe = x(""),
|
|
82
|
+
const g = x(Wt()), _t = x(null), ce = x(!1), pe = x(""), z = x(null), ze = x(0);
|
|
83
83
|
function Ne() {
|
|
84
84
|
const l = vt({
|
|
85
|
-
userConfig:
|
|
85
|
+
userConfig: O.config,
|
|
86
86
|
defaultConfig: wt
|
|
87
87
|
});
|
|
88
88
|
return l.theme ? {
|
|
89
89
|
...vt({
|
|
90
|
-
userConfig: Kt.vue_ui_donut[l.theme] ||
|
|
90
|
+
userConfig: Kt.vue_ui_donut[l.theme] || O.config,
|
|
91
91
|
defaultConfig: l
|
|
92
92
|
}),
|
|
93
93
|
customPalette: Jt[l.theme] || ee
|
|
@@ -115,7 +115,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
tt(async () => {
|
|
118
|
-
const l =
|
|
118
|
+
const l = O.dataset.map((u) => u.values.reduce((t, a) => t + a, 0));
|
|
119
119
|
e.value.startAnimation.show && await xt(
|
|
120
120
|
l,
|
|
121
121
|
e.value.startAnimation.durationMs,
|
|
@@ -129,8 +129,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
129
129
|
function Ct() {
|
|
130
130
|
Me(!1);
|
|
131
131
|
}
|
|
132
|
-
lt(() =>
|
|
133
|
-
e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover,
|
|
132
|
+
lt(() => O.config, (l) => {
|
|
133
|
+
e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, Oe(), Se.value += 1, Fe.value += 1, Le.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
134
134
|
}, { deep: !0 });
|
|
135
135
|
const Xe = y(() => {
|
|
136
136
|
const { top: l, right: u, bottom: t, left: a } = e.value.style.chart.padding;
|
|
@@ -157,7 +157,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
157
157
|
}), q = y(() => {
|
|
158
158
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, u = Math.min(s.value.width, s.value.height) * l, t = u > k.value ? k.value : u;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
|
-
}), We = dt, G = y(() =>
|
|
160
|
+
}), We = dt, G = y(() => O.dataset.map((l, u) => ({
|
|
161
161
|
name: l.name,
|
|
162
162
|
color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
|
|
163
163
|
value: Et(l.values.reduce((t, a) => t + a, 0)),
|
|
@@ -239,7 +239,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
239
239
|
value: v.value
|
|
240
240
|
})));
|
|
241
241
|
}
|
|
242
|
-
const At = y(() =>
|
|
242
|
+
const At = y(() => O.dataset.reduce((l, u) => l + u.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
|
|
243
243
|
if (T.value) {
|
|
244
244
|
const l = B.value.map((t, a) => ({
|
|
245
245
|
...G.value[a],
|
|
@@ -264,7 +264,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
264
264
|
...l,
|
|
265
265
|
seriesIndex: u
|
|
266
266
|
})).filter((l, u) => !V.value.includes(u));
|
|
267
|
-
}), Ue = y(() =>
|
|
267
|
+
}), Ue = y(() => O.dataset.map((l, u) => ({
|
|
268
268
|
name: l.name,
|
|
269
269
|
color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
|
|
270
270
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
@@ -272,11 +272,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
272
272
|
patternIndex: u
|
|
273
273
|
})).map((l, u) => ({
|
|
274
274
|
...l,
|
|
275
|
-
proportion: l.value /
|
|
275
|
+
proportion: l.value / O.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
276
276
|
opacity: V.value.includes(u) ? 0.5 : 1,
|
|
277
277
|
segregate: () => !J.value && Ee(u),
|
|
278
278
|
isSegregated: V.value.includes(u)
|
|
279
|
-
}))),
|
|
279
|
+
}))), St = y(() => ({
|
|
280
280
|
cy: "donut-div-legend",
|
|
281
281
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
282
282
|
color: e.value.style.chart.legend.color,
|
|
@@ -286,7 +286,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
286
286
|
})), k = y(() => {
|
|
287
287
|
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}),
|
|
289
|
+
}), S = y(() => rt({ series: W.value }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Ft = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, u) => l + u, 0)) > 0), Lt = y(() => rt({
|
|
290
290
|
series: [
|
|
291
291
|
{
|
|
292
292
|
value: 1,
|
|
@@ -298,7 +298,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
298
298
|
absoluteValues: [1]
|
|
299
299
|
}
|
|
300
300
|
]
|
|
301
|
-
}, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Y = y(() =>
|
|
301
|
+
}, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Y = y(() => S.value.filter((l) => !l.ghost)), c = y(() => {
|
|
302
302
|
const l = Math.max(...W.value.map((t) => t.value)), u = W.value.map((t) => t.value / l);
|
|
303
303
|
return Ut({
|
|
304
304
|
series: u,
|
|
@@ -313,14 +313,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
313
313
|
function le(l) {
|
|
314
314
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Ot(l) {
|
|
317
317
|
return l.middlePoint.y > s.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
318
318
|
}
|
|
319
319
|
function X(l) {
|
|
320
320
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
321
321
|
}
|
|
322
322
|
function be(l, u) {
|
|
323
|
-
const t = l.value /
|
|
323
|
+
const t = l.value / zt(u);
|
|
324
324
|
return isNaN(t) ? 0 : D(
|
|
325
325
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
326
326
|
t * 100,
|
|
@@ -332,12 +332,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
332
332
|
{ datapoint: l }
|
|
333
333
|
);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function zt(l) {
|
|
336
336
|
return [...l].map((u) => u.value).reduce((u, t) => u + t, 0);
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const F = y(() => W.value.map((l) => l.value).reduce((l, u) => l + u, 0)), je = y(() => F.value / W.value.length), He = y(() => (l) => J.value ? l.proportion * 100 : l.value / F.value * 100), we = x(null), re = x(!1);
|
|
339
339
|
function qe({ datapoint: l, relativeIndex: u, seriesIndex: t, show: a = !1 }) {
|
|
340
|
-
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a,
|
|
340
|
+
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, z.value = u;
|
|
341
341
|
let v = "";
|
|
342
342
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
343
343
|
if (re.value = !1, el(d))
|
|
@@ -388,7 +388,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
function K(l) {
|
|
391
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
391
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${g.value})` : "";
|
|
392
392
|
}
|
|
393
393
|
const j = y(() => {
|
|
394
394
|
const l = W.value.map((t) => ({
|
|
@@ -401,14 +401,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
401
401
|
Dt(() => {
|
|
402
402
|
const u = j.value.head.map((v, d) => [[
|
|
403
403
|
v.name
|
|
404
|
-
], [j.value.body[d]], [isNaN(j.value.body[d] /
|
|
404
|
+
], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(u), a = Qt(t);
|
|
405
405
|
l ? l(a) : Zt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
const de = y(() => {
|
|
409
409
|
const l = [
|
|
410
410
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
411
|
-
M({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
411
|
+
M({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
412
412
|
"100%"
|
|
413
413
|
], u = j.value.head.map((v, d) => [
|
|
414
414
|
{
|
|
@@ -416,7 +416,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
416
416
|
name: v.name
|
|
417
417
|
},
|
|
418
418
|
j.value.body[d],
|
|
419
|
-
isNaN(j.value.body[d] /
|
|
419
|
+
isNaN(j.value.body[d] / F.value) ? "-" : (j.value.body[d] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
420
420
|
]), t = {
|
|
421
421
|
th: {
|
|
422
422
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -442,7 +442,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
442
442
|
};
|
|
443
443
|
}), ae = x(!1);
|
|
444
444
|
function Nt(l) {
|
|
445
|
-
ae.value = l,
|
|
445
|
+
ae.value = l, ze.value += 1;
|
|
446
446
|
}
|
|
447
447
|
const Ke = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
448
448
|
function Mt(l) {
|
|
@@ -505,7 +505,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
505
505
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
506
506
|
}, [
|
|
507
507
|
(o(), Z(nl, {
|
|
508
|
-
key: `title_${
|
|
508
|
+
key: `title_${Se.value}`,
|
|
509
509
|
config: {
|
|
510
510
|
title: {
|
|
511
511
|
cy: "donut-div-title",
|
|
@@ -521,7 +521,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
521
521
|
e.value.userOptions.show && se.value && (r(Ye) || r(ge)) ? (o(), Z(r(bt), {
|
|
522
522
|
ref_key: "details",
|
|
523
523
|
ref: _t,
|
|
524
|
-
key: `user_option_${
|
|
524
|
+
key: `user_option_${ze.value}`,
|
|
525
525
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
526
526
|
color: e.value.style.chart.color,
|
|
527
527
|
isPrinting: r(Ie),
|
|
@@ -542,6 +542,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
542
542
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
543
543
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
544
544
|
isAnnotation: he.value,
|
|
545
|
+
printScale: e.value.userOptions.print.scale,
|
|
545
546
|
onToggleFullscreen: Nt,
|
|
546
547
|
onGeneratePdf: r(Ve),
|
|
547
548
|
onGenerateCsv: Je,
|
|
@@ -617,7 +618,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
617
618
|
]),
|
|
618
619
|
key: "8"
|
|
619
620
|
} : void 0
|
|
620
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
621
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
621
622
|
se.value ? (o(), n("svg", {
|
|
622
623
|
key: 4,
|
|
623
624
|
ref_key: "svgRef",
|
|
@@ -675,12 +676,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
675
676
|
}, [
|
|
676
677
|
f("stop", {
|
|
677
678
|
offset: "0%",
|
|
678
|
-
"stop-color": r(Ht)(
|
|
679
|
+
"stop-color": r(Ht)(S.value[a].color, 0.05),
|
|
679
680
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
680
681
|
}, null, 8, kl),
|
|
681
682
|
f("stop", {
|
|
682
683
|
offset: "100%",
|
|
683
|
-
"stop-color":
|
|
684
|
+
"stop-color": S.value[a].color
|
|
684
685
|
}, null, 8, _l)
|
|
685
686
|
], 8, wl))), 256))
|
|
686
687
|
])) : i("", !0),
|
|
@@ -731,7 +732,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
731
732
|
}, null, 8, Al)
|
|
732
733
|
], 8, Pl)
|
|
733
734
|
]),
|
|
734
|
-
e.value.type === "classic" ? (o(!0), n(p, { key: 3 }, A(
|
|
735
|
+
e.value.type === "classic" ? (o(!0), n(p, { key: 3 }, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
|
|
735
736
|
X(t) && h.value.dataLabels.show ? (o(), n("path", {
|
|
736
737
|
key: 0,
|
|
737
738
|
d: r(qt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, q.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
@@ -741,9 +742,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
741
742
|
"stroke-linejoin": "round",
|
|
742
743
|
fill: "none",
|
|
743
744
|
filter: K(a)
|
|
744
|
-
}, null, 8,
|
|
745
|
+
}, null, 8, Sl)) : i("", !0)
|
|
745
746
|
]))), 256)) : i("", !0),
|
|
746
|
-
e.value.type === "polar" ? (o(!0), n(p, { key: 4 }, A(
|
|
747
|
+
e.value.type === "polar" ? (o(!0), n(p, { key: 4 }, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
|
|
747
748
|
X(t) && h.value.dataLabels.show ? (o(), n("path", {
|
|
748
749
|
key: 0,
|
|
749
750
|
d: `M ${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
|
|
@@ -756,7 +757,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
756
757
|
style: b({
|
|
757
758
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
758
759
|
})
|
|
759
|
-
}, null, 12,
|
|
760
|
+
}, null, 12, Fl)) : i("", !0)
|
|
760
761
|
]))), 256)) : i("", !0),
|
|
761
762
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
|
|
762
763
|
key: 5,
|
|
@@ -766,19 +767,19 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
766
767
|
fill: e.value.style.chart.backgroundColor,
|
|
767
768
|
filter: `url(#shadow_${g.value})`
|
|
768
769
|
}, null, 8, Ll)) : i("", !0),
|
|
769
|
-
l.$slots.pattern ? (o(), n("g",
|
|
770
|
+
l.$slots.pattern ? (o(), n("g", Ol, [
|
|
770
771
|
(o(!0), n(p, null, A($e.dataset, (t, a) => (o(), n("defs", {
|
|
771
772
|
key: `pattern-${t.patternIndex}`
|
|
772
773
|
}, [
|
|
773
774
|
m(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
774
775
|
]))), 128))
|
|
775
776
|
])) : i("", !0),
|
|
776
|
-
|
|
777
|
+
F.value && e.value.type === "classic" ? (o(), n(p, { key: 7 }, [
|
|
777
778
|
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
778
779
|
stroke: e.value.style.chart.backgroundColor,
|
|
779
780
|
d: t.arcSlice,
|
|
780
781
|
fill: "#FFFFFF"
|
|
781
|
-
}, null, 8,
|
|
782
|
+
}, null, 8, zl))), 256)),
|
|
782
783
|
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
783
784
|
class: "vue-ui-donut-arc-path",
|
|
784
785
|
d: t.arcSlice,
|
|
@@ -798,8 +799,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
798
799
|
}, null, 8, Yl))), 256))
|
|
799
800
|
])) : i("", !0)
|
|
800
801
|
], 64)) : i("", !0),
|
|
801
|
-
|
|
802
|
-
|
|
802
|
+
F.value && e.value.type === "polar" ? (o(), n(p, { key: 8 }, [
|
|
803
|
+
S.value.length > 1 ? (o(), n("g", Xl, [
|
|
803
804
|
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
804
805
|
stroke: e.value.style.chart.backgroundColor,
|
|
805
806
|
d: c.value[a].path,
|
|
@@ -851,7 +852,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
851
852
|
cx: s.value.width / 2,
|
|
852
853
|
cy: s.value.height / 2,
|
|
853
854
|
r: k.value,
|
|
854
|
-
fill: `url(#pattern_${g.value}_${
|
|
855
|
+
fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
|
|
855
856
|
stroke: e.value.style.chart.backgroundColor,
|
|
856
857
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
857
858
|
}, null, 8, El)) : i("", !0),
|
|
@@ -859,13 +860,13 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
859
860
|
cx: s.value.width / 2,
|
|
860
861
|
cy: s.value.height / 2,
|
|
861
862
|
r: k.value,
|
|
862
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` :
|
|
863
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
|
|
863
864
|
stroke: e.value.style.chart.backgroundColor,
|
|
864
865
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
865
866
|
}, null, 8, Ul)
|
|
866
867
|
]))
|
|
867
868
|
], 64)) : (o(), n(p, { key: 9 }, [
|
|
868
|
-
e.value.type === "classic" && !
|
|
869
|
+
e.value.type === "classic" && !Ft.value ? (o(), n("g", jl, [
|
|
869
870
|
(o(!0), n(p, null, A(Lt.value, (t, a) => (o(), n("path", {
|
|
870
871
|
class: "vue-ui-donut-arc-path",
|
|
871
872
|
d: t.arcSlice,
|
|
@@ -892,11 +893,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
892
893
|
),
|
|
893
894
|
fill: `url(#gradient_${g.value})`
|
|
894
895
|
}, null, 8, Jl)) : i("", !0),
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
(o(!0), n(p, null, A(
|
|
896
|
+
F.value ? (o(), n(p, { key: 11 }, [
|
|
897
|
+
S.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Kl, [
|
|
898
|
+
(o(!0), n(p, null, A(S.value.filter((t) => !t.ghost), (t, a) => (o(), n("path", {
|
|
898
899
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
899
|
-
fill:
|
|
900
|
+
fill: z.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
900
901
|
onMouseenter: (v) => qe({
|
|
901
902
|
datapoint: t,
|
|
902
903
|
relativeIndex: a,
|
|
@@ -904,7 +905,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
904
905
|
show: !0
|
|
905
906
|
}),
|
|
906
907
|
onMouseleave: u[0] || (u[0] = (v) => {
|
|
907
|
-
ce.value = !1,
|
|
908
|
+
ce.value = !1, z.value = null;
|
|
908
909
|
}),
|
|
909
910
|
onClick: (v) => H(t, a)
|
|
910
911
|
}, null, 40, Ql))), 256))
|
|
@@ -915,15 +916,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
915
916
|
r: k.value,
|
|
916
917
|
fill: "transparent",
|
|
917
918
|
onMouseenter: u[1] || (u[1] = (t) => qe({
|
|
918
|
-
datapoint:
|
|
919
|
+
datapoint: S.value[0],
|
|
919
920
|
relativeIndex: 0,
|
|
920
|
-
seriesIndex:
|
|
921
|
+
seriesIndex: S.value[0].seriesIndex,
|
|
921
922
|
show: !0
|
|
922
923
|
})),
|
|
923
924
|
onMouseleave: u[2] || (u[2] = (t) => {
|
|
924
|
-
ce.value = !1,
|
|
925
|
+
ce.value = !1, z.value = null;
|
|
925
926
|
}),
|
|
926
|
-
onClick: u[3] || (u[3] = (t) => H(
|
|
927
|
+
onClick: u[3] || (u[3] = (t) => H(S.value[0], l.i))
|
|
927
928
|
}, null, 40, ea)
|
|
928
929
|
]))
|
|
929
930
|
], 64)) : i("", !0),
|
|
@@ -947,10 +948,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
947
948
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
948
949
|
}, P(r(D)(
|
|
949
950
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
950
|
-
|
|
951
|
+
F.value,
|
|
951
952
|
r(M)({
|
|
952
953
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
953
|
-
v:
|
|
954
|
+
v: F.value,
|
|
954
955
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
955
956
|
})
|
|
956
957
|
)), 13, la)) : i("", !0),
|
|
@@ -997,7 +998,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
997
998
|
f("div", null, [
|
|
998
999
|
m(l.$slots, "dataLabel", ot({ ref_for: !0 }, {
|
|
999
1000
|
datapoint: t,
|
|
1000
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1001
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
|
|
1001
1002
|
isSafari: Ke.value,
|
|
1002
1003
|
isVisible: X(t) && h.value.dataLabels.show,
|
|
1003
1004
|
textAlign: r(w)(t, !0, 16, !0).anchor,
|
|
@@ -1016,7 +1017,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1016
1017
|
stroke: e.value.style.chart.backgroundColor,
|
|
1017
1018
|
"stroke-width": 1,
|
|
1018
1019
|
r: 3,
|
|
1019
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1020
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${g.value})`,
|
|
1020
1021
|
onClick: (v) => H(t, a)
|
|
1021
1022
|
}, null, 8, ia)) : i("", !0)
|
|
1022
1023
|
], 64)) : i("", !0),
|
|
@@ -1029,7 +1030,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1029
1030
|
stroke: e.value.style.chart.backgroundColor,
|
|
1030
1031
|
"stroke-width": 1,
|
|
1031
1032
|
r: 3,
|
|
1032
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1033
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${g.value})`,
|
|
1033
1034
|
onClick: (v) => H(t, a),
|
|
1034
1035
|
style: b({
|
|
1035
1036
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
@@ -1125,7 +1126,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1125
1126
|
X(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
|
|
1126
1127
|
key: 1,
|
|
1127
1128
|
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : le(c.value[a].middlePoint) === "middle" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1128
|
-
y:
|
|
1129
|
+
y: Ot(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1129
1130
|
width: e.value.style.chart.comments.width,
|
|
1130
1131
|
height: "200",
|
|
1131
1132
|
style: b({
|
|
@@ -1167,7 +1168,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1167
1168
|
e.value.style.chart.legend.show ? (o(), Z(sl, {
|
|
1168
1169
|
key: `legend_${Le.value}`,
|
|
1169
1170
|
legendSet: Ue.value,
|
|
1170
|
-
config:
|
|
1171
|
+
config: St.value,
|
|
1171
1172
|
onClickMarker: u[4] || (u[4] = ({ i: t }) => Ee(t))
|
|
1172
1173
|
}, at({
|
|
1173
1174
|
item: C(({ legend: t, index: a }) => [
|
|
@@ -1189,7 +1190,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1189
1190
|
index: a
|
|
1190
1191
|
}
|
|
1191
1192
|
)) + " ", 1),
|
|
1192
|
-
V.value.includes(a) ? (o(), n("span", ka, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", wa, " (" + P(isNaN(t.value /
|
|
1193
|
+
V.value.includes(a) ? (o(), n("span", ka, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", wa, " (" + P(isNaN(t.value / F.value) ? "-" : r(D)(
|
|
1193
1194
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1194
1195
|
He.value(t),
|
|
1195
1196
|
r(M)({
|
|
@@ -1268,7 +1269,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1268
1269
|
}, {
|
|
1269
1270
|
content: C(() => [
|
|
1270
1271
|
(o(), Z(r(yt), {
|
|
1271
|
-
key: `table_${
|
|
1272
|
+
key: `table_${Fe.value}`,
|
|
1272
1273
|
colNames: de.value.colNames,
|
|
1273
1274
|
head: de.value.head,
|
|
1274
1275
|
body: de.value.body,
|
|
@@ -1309,7 +1310,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1309
1310
|
}, 8, ["config"])) : i("", !0)
|
|
1310
1311
|
], 46, vl));
|
|
1311
1312
|
}
|
|
1312
|
-
}, Ma = /* @__PURE__ */ il(xa, [["__scopeId", "data-v-
|
|
1313
|
+
}, Ma = /* @__PURE__ */ il(xa, [["__scopeId", "data-v-8f18408e"]]);
|
|
1313
1314
|
export {
|
|
1314
1315
|
Ma as default
|
|
1315
1316
|
};
|