vue-data-ui 2.14.2 → 2.14.3-beta.0
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 +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, useSlots as
|
|
2
|
-
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, d as nt, p as Z, m as Gt,
|
|
1
|
+
import { defineAsyncComponent as K, useSlots as Nt, computed as p, shallowRef as W, ref as _, onMounted as tt, onBeforeUnmount as Mt, watch as lt, createElementBlock as r, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Q, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as $e, unref as n, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as se, Fragment as m, renderList as S, mergeProps as ot, toDisplayString as P, createTextVNode as st, nextTick as Yt } from "vue";
|
|
2
|
+
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, d as nt, p as Z, m as Gt, $ as Rt, f as M, X as Wt, s as fe, w as Et, j as Ut, N as L, i as D, k as ve, n as w, t as jt, a as Ht, q as qt, r as Jt, x as Kt, T as rt } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as it } from "./useNestedProp-
|
|
5
|
-
import { u as el } from "./usePrinter-
|
|
4
|
+
import { u as it } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as el } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import al from "./Legend-
|
|
9
|
-
import ol from "./Title-
|
|
10
|
-
import { _ as sl } from "./Shape-
|
|
8
|
+
import al from "./Legend-Cpx0xSce.js";
|
|
9
|
+
import ol from "./Title-B71Dk29x.js";
|
|
10
|
+
import { _ as sl } from "./Shape-D65xhJAN.js";
|
|
11
11
|
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { key: 1 }, cl = ["id"], dl = ["stop-color"], hl = ["offset", "stop-color"], yl = ["offset", "stop-color"], fl = ["stop-color"], pl = { key: 2 }, gl = ["id", "cx", "cy"], ml = ["stop-color", "stop-opacity"], bl = ["stop-color"], wl = ["id"], kl = ["id"], _l = ["id"],
|
|
12
|
+
const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { key: 1 }, cl = ["id"], dl = ["stop-color"], hl = ["offset", "stop-color"], yl = ["offset", "stop-color"], fl = ["stop-color"], pl = { key: 2 }, gl = ["id", "cx", "cy"], ml = ["stop-color", "stop-opacity"], bl = ["stop-color"], wl = ["id"], kl = ["id"], _l = ["id"], $l = ["flood-color"], xl = ["id"], Cl = ["flood-color"], Tl = ["d", "stroke", "filter"], Pl = ["d", "stroke", "filter"], Al = ["cx", "cy", "r", "fill", "filter"], Fl = { key: 6 }, Sl = ["stroke", "d"], Ll = ["d", "fill", "stroke", "stroke-width", "filter"], zl = { key: 0 }, Ol = ["d", "fill", "stroke", "stroke-width", "filter"], Nl = { key: 0 }, Ml = ["stroke", "d"], Yl = { key: 0 }, Xl = ["d", "stroke", "stroke-width", "filter"], Il = { key: 1 }, Dl = ["d", "fill", "stroke", "stroke-width", "filter"], Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Bl = { key: 1 }, Gl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wl = ["cx", "cy", "r", "stroke"], El = ["cx", "cy", "r", "fill"], Ul = { key: 0 }, jl = ["d", "fill", "onMouseenter", "onClick"], Hl = { key: 1 }, ql = ["cx", "cy", "r"], Jl = ["x", "y", "fill", "font-size"], Kl = ["x", "y", "fill", "font-size"], Ql = ["x", "y", "fill", "font-size"], Zl = ["x", "y", "fill", "font-size"], ea = ["filter"], ta = { key: 0 }, la = ["x", "y"], aa = { key: 1 }, oa = ["cx", "cy", "fill", "stroke", "filter", "onClick"], sa = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], na = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ia = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], va = { key: 2 }, ca = ["x", "y", "width"], da = ["x", "y", "width"], ha = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, ya = ["onClick"], fa = {
|
|
@@ -32,8 +32,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const dt = K(() => import("./vue-ui-accordion-
|
|
35
|
+
setup(xe, { expose: vt, emit: ct }) {
|
|
36
|
+
const dt = K(() => import("./vue-ui-accordion-Cjq4hqGi.js")), ht = K(() => import("./DataTable-D8n1mvaG.js")), yt = K(() => import("./PackageVersion-Bwu7jdjH.js")), ft = K(() => import("./PenAndPaper-BzQcbTCN.js")), pt = K(() => import("./vue-ui-skeleton-qa5B2MES.js")), gt = K(() => import("./Tooltip-BuP-Tir7.js")), mt = K(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_donut: bt } = Xt(), wt = Nt(), z = xe, ue = p({
|
|
37
37
|
get() {
|
|
38
38
|
return !!z.dataset && z.dataset.length;
|
|
39
39
|
},
|
|
@@ -43,7 +43,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
43
43
|
}), ne = W(null), Ce = W(null), Te = W(null), E = W(null), ee = W(null), Pe = W(null), Ae = W(null), Fe = _(0), Se = _(0), Le = _(0);
|
|
44
44
|
tt(() => {
|
|
45
45
|
ze();
|
|
46
|
-
}),
|
|
46
|
+
}), Mt(() => {
|
|
47
47
|
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
|
|
48
48
|
});
|
|
49
49
|
function ze() {
|
|
@@ -79,8 +79,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
79
79
|
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(l), ee.value = ne.value.parentNode, E.value.observe(ee.value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const y = _(Vt()), kt = _(null),
|
|
83
|
-
function
|
|
82
|
+
const y = _(Vt()), kt = _(null), ce = _(!1), pe = _(""), O = _(null), Oe = _(0);
|
|
83
|
+
function Ne() {
|
|
84
84
|
const l = it({
|
|
85
85
|
userConfig: z.config,
|
|
86
86
|
defaultConfig: bt
|
|
@@ -94,7 +94,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
94
94
|
} : l;
|
|
95
95
|
}
|
|
96
96
|
const e = p({
|
|
97
|
-
get: () =>
|
|
97
|
+
get: () => Ne(),
|
|
98
98
|
set: (l) => l
|
|
99
99
|
}), T = _(!0), B = W([]);
|
|
100
100
|
function _t(l, s = 1e3, t = 50) {
|
|
@@ -102,15 +102,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
102
102
|
const v = l.length;
|
|
103
103
|
B.value = Array(v).fill(0);
|
|
104
104
|
let d = 0;
|
|
105
|
-
l.forEach((k,
|
|
105
|
+
l.forEach((k, x) => {
|
|
106
106
|
setTimeout(() => {
|
|
107
107
|
const R = performance.now();
|
|
108
108
|
function I(ie) {
|
|
109
|
-
const
|
|
110
|
-
B.value[
|
|
109
|
+
const ye = Math.min((ie - R) / s, 1), Ot = rt(ye);
|
|
110
|
+
B.value[x] = k * Ot, B.value = [...B.value], ye < 1 ? requestAnimationFrame(I) : (B.value[x] = k, B.value = [...B.value], d += 1, d === v && a());
|
|
111
111
|
}
|
|
112
112
|
requestAnimationFrame(I);
|
|
113
|
-
},
|
|
113
|
+
}, x * t);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -122,15 +122,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
122
122
|
e.value.startAnimation.staggerMs
|
|
123
123
|
), T.value = !1;
|
|
124
124
|
});
|
|
125
|
-
const { userOptionsVisible: ge, setUserOptionsVisibility:
|
|
126
|
-
function xt() {
|
|
127
|
-
Ne(!0);
|
|
128
|
-
}
|
|
125
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = tl({ config: e.value }), { svgRef: me } = ll({ config: e.value.style.chart.title });
|
|
129
126
|
function $t() {
|
|
130
|
-
|
|
127
|
+
Me(!0);
|
|
128
|
+
}
|
|
129
|
+
function xt() {
|
|
130
|
+
Me(!1);
|
|
131
131
|
}
|
|
132
132
|
lt(() => z.config, (l) => {
|
|
133
|
-
e.value =
|
|
133
|
+
e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.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, u.value.height = e.value.style.chart.height, u.value.width = e.value.style.chart.width;
|
|
134
134
|
}, { deep: !0 });
|
|
135
135
|
const Xe = p(() => {
|
|
136
136
|
const { top: l, right: s, bottom: t, left: a } = e.value.style.chart.padding;
|
|
@@ -155,7 +155,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
155
155
|
height: e.value.style.chart.height,
|
|
156
156
|
width: e.value.style.chart.width
|
|
157
157
|
}), te = p(() => {
|
|
158
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512, s = Math.min(u.value.width, u.value.height) * l, t = s >
|
|
158
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, s = Math.min(u.value.width, u.value.height) * l, t = s > $.value ? $.value : s;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
160
|
}), Re = ct, G = p(() => z.dataset.map((l, s) => ({
|
|
161
161
|
name: l.name,
|
|
@@ -167,8 +167,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
167
167
|
seriesIndex: s,
|
|
168
168
|
ghost: !1,
|
|
169
169
|
pattern: `pattern_${y.value}_${s}`
|
|
170
|
-
}))),
|
|
171
|
-
lt(() => G.value, (l) =>
|
|
170
|
+
}))), N = W(G.value);
|
|
171
|
+
lt(() => G.value, (l) => N.value = l);
|
|
172
172
|
function Tt() {
|
|
173
173
|
return G.value.map((l) => ({
|
|
174
174
|
name: l.name,
|
|
@@ -179,28 +179,28 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
179
179
|
const V = _([]), q = _(!1);
|
|
180
180
|
function We({ from: l, to: s, duration: t, onUpdate: a, onDone: v, easing: d = rt }) {
|
|
181
181
|
const k = performance.now();
|
|
182
|
-
function
|
|
183
|
-
const I = Math.min((R - k) / t, 1), ie = d(I),
|
|
184
|
-
a(
|
|
182
|
+
function x(R) {
|
|
183
|
+
const I = Math.min((R - k) / t, 1), ie = d(I), ye = l + (s - l) * ie;
|
|
184
|
+
a(ye, I), I < 1 ? requestAnimationFrame(x) : (a(s, 1), v && v());
|
|
185
185
|
}
|
|
186
|
-
requestAnimationFrame(
|
|
186
|
+
requestAnimationFrame(x);
|
|
187
187
|
}
|
|
188
188
|
function Ee(l) {
|
|
189
189
|
const s = G.value.find((v, d) => d === l);
|
|
190
|
-
let a =
|
|
190
|
+
let a = N.value.find((v, d) => d === l).value;
|
|
191
191
|
if (V.value.includes(l)) {
|
|
192
192
|
let d = function() {
|
|
193
|
-
|
|
194
|
-
(
|
|
193
|
+
N.value = N.value.map(
|
|
194
|
+
(x, R) => l === R ? { ...x, value: v } : x
|
|
195
195
|
);
|
|
196
196
|
}, k = function() {
|
|
197
197
|
q.value = !0, We({
|
|
198
198
|
from: a,
|
|
199
199
|
to: v,
|
|
200
200
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
201
|
-
onUpdate: (
|
|
202
|
-
|
|
203
|
-
(I, ie) => l === ie ? { ...I, value:
|
|
201
|
+
onUpdate: (x, R) => {
|
|
202
|
+
N.value = N.value.map(
|
|
203
|
+
(I, ie) => l === ie ? { ...I, value: x } : I
|
|
204
204
|
);
|
|
205
205
|
},
|
|
206
206
|
onDone: () => {
|
|
@@ -208,21 +208,21 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
V.value = V.value.filter((
|
|
211
|
+
V.value = V.value.filter((x) => x !== l);
|
|
212
212
|
const v = s.value;
|
|
213
213
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? k() : d();
|
|
214
214
|
} else if (V.value.length < G.value.length - 1) {
|
|
215
215
|
let v = function() {
|
|
216
|
-
V.value.push(l),
|
|
217
|
-
(k,
|
|
216
|
+
V.value.push(l), N.value = N.value.map(
|
|
217
|
+
(k, x) => l === x ? { ...k, value: 0 } : k
|
|
218
218
|
);
|
|
219
219
|
}, d = function() {
|
|
220
220
|
q.value = !0, We({
|
|
221
221
|
from: a,
|
|
222
222
|
to: 0,
|
|
223
223
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
224
|
-
onUpdate: (k,
|
|
225
|
-
|
|
224
|
+
onUpdate: (k, x) => {
|
|
225
|
+
N.value = N.value.map(
|
|
226
226
|
(R, I) => l === I ? { ...R, value: k } : R
|
|
227
227
|
);
|
|
228
228
|
},
|
|
@@ -254,13 +254,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
254
254
|
ghost: !0
|
|
255
255
|
}), l;
|
|
256
256
|
} else
|
|
257
|
-
return
|
|
257
|
+
return N.value.forEach((l, s) => {
|
|
258
258
|
if ([null, void 0].includes(l.values))
|
|
259
259
|
return {
|
|
260
260
|
...l,
|
|
261
261
|
values: []
|
|
262
262
|
};
|
|
263
|
-
}),
|
|
263
|
+
}), N.value.map((l, s) => ({
|
|
264
264
|
...l,
|
|
265
265
|
seriesIndex: s
|
|
266
266
|
})).filter((l, s) => !V.value.includes(s));
|
|
@@ -283,10 +283,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
283
283
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
284
284
|
paddingBottom: 12,
|
|
285
285
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
286
|
-
})),
|
|
286
|
+
})), $ = p(() => {
|
|
287
287
|
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}), A = p(() => Gt({ series: U.value }, u.value.width / 2, u.value.height / 2,
|
|
289
|
+
}), A = p(() => Gt({ series: U.value }, u.value.width / 2, u.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, te.value)), Y = p(() => A.value.filter((l) => !l.ghost)), c = p(() => {
|
|
290
290
|
const l = Math.max(...U.value.map((t) => t.value)), s = U.value.map((t) => t.value / l);
|
|
291
291
|
return Rt({
|
|
292
292
|
series: s,
|
|
@@ -312,7 +312,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
312
312
|
return isNaN(t) ? 0 : D(
|
|
313
313
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
314
314
|
t * 100,
|
|
315
|
-
|
|
315
|
+
M({
|
|
316
316
|
v: t * 100,
|
|
317
317
|
s: "%",
|
|
318
318
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -325,7 +325,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
325
325
|
}
|
|
326
326
|
const F = p(() => U.value.map((l) => l.value).reduce((l, s) => l + s, 0)), je = p(() => F.value / U.value.length), He = p(() => (l) => q.value ? l.proportion * 100 : l.value / F.value * 100), we = _(null), re = _(!1);
|
|
327
327
|
function qe({ datapoint: l, relativeIndex: s, seriesIndex: t, show: a = !1 }) {
|
|
328
|
-
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value },
|
|
328
|
+
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, O.value = s;
|
|
329
329
|
let v = "";
|
|
330
330
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
331
331
|
if (re.value = !1, Kt(d))
|
|
@@ -344,7 +344,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
344
344
|
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${wt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
|
|
345
345
|
e.value.style.chart.layout.labels.value.formatter,
|
|
346
346
|
l.value,
|
|
347
|
-
|
|
347
|
+
M({
|
|
348
348
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
349
349
|
v: l.value,
|
|
350
350
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -359,7 +359,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
359
359
|
const k = D(
|
|
360
360
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
361
361
|
l.proportion * 100,
|
|
362
|
-
|
|
362
|
+
M({
|
|
363
363
|
v: l.proportion * 100,
|
|
364
364
|
s: "%",
|
|
365
365
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -393,10 +393,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
393
393
|
l ? l(a) : Jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const de = p(() => {
|
|
397
397
|
const l = [
|
|
398
398
|
' <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>',
|
|
399
|
-
|
|
399
|
+
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 }),
|
|
400
400
|
"100%"
|
|
401
401
|
], s = j.value.head.map((v, d) => [
|
|
402
402
|
{
|
|
@@ -448,9 +448,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
448
448
|
function et() {
|
|
449
449
|
h.value.showTooltip = !h.value.showTooltip;
|
|
450
450
|
}
|
|
451
|
-
const
|
|
451
|
+
const he = _(!1);
|
|
452
452
|
function ke() {
|
|
453
|
-
|
|
453
|
+
he.value = !he.value;
|
|
454
454
|
}
|
|
455
455
|
return vt({
|
|
456
456
|
getData: Tt,
|
|
@@ -467,14 +467,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
467
467
|
class: _e(`vue-ui-donut ${ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
468
468
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
469
469
|
id: `donut__${y.value}`,
|
|
470
|
-
onMouseenter:
|
|
471
|
-
onMouseleave:
|
|
470
|
+
onMouseenter: $t,
|
|
471
|
+
onMouseleave: xt
|
|
472
472
|
}, [
|
|
473
473
|
e.value.userOptions.buttons.annotator && n(me) ? (o(), Q(n(ft), {
|
|
474
474
|
key: 0,
|
|
475
475
|
color: e.value.style.chart.color,
|
|
476
476
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
477
|
-
active:
|
|
477
|
+
active: he.value,
|
|
478
478
|
svgRef: n(me),
|
|
479
479
|
onClose: ke
|
|
480
480
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
@@ -529,7 +529,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
529
529
|
isTooltip: h.value.showTooltip,
|
|
530
530
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
531
531
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
|
-
isAnnotation:
|
|
532
|
+
isAnnotation: he.value,
|
|
533
533
|
onToggleFullscreen: Lt,
|
|
534
534
|
onGeneratePdf: n(Ve),
|
|
535
535
|
onGenerateCsv: Je,
|
|
@@ -615,7 +615,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
615
615
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
616
616
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Xe.value.css}`)
|
|
617
617
|
}, [
|
|
618
|
-
|
|
618
|
+
$e(n(yt)),
|
|
619
619
|
l.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
620
620
|
key: 0,
|
|
621
621
|
x: 0,
|
|
@@ -628,28 +628,28 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
628
628
|
}, [
|
|
629
629
|
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
630
630
|
], 8, il)) : i("", !0),
|
|
631
|
-
e.value.type === "classic" && !isNaN(te.value /
|
|
631
|
+
e.value.type === "classic" && !isNaN(te.value / $.value) ? (o(), r("defs", vl, [
|
|
632
632
|
e.value.style.chart.useGradient ? (o(), r("radialGradient", {
|
|
633
633
|
key: 0,
|
|
634
634
|
id: `gradient_${y.value}`
|
|
635
635
|
}, [
|
|
636
636
|
f("stop", {
|
|
637
637
|
offset: "0%",
|
|
638
|
-
"stop-color": n(
|
|
638
|
+
"stop-color": n(fe)(e.value.style.chart.backgroundColor, 0),
|
|
639
639
|
"stop-opacity": "0"
|
|
640
640
|
}, null, 8, dl),
|
|
641
641
|
f("stop", {
|
|
642
|
-
offset: `${(1 - te.value /
|
|
643
|
-
"stop-color": n(
|
|
642
|
+
offset: `${(1 - te.value / $.value) * 100}%`,
|
|
643
|
+
"stop-color": n(fe)("#FFFFFF", 0),
|
|
644
644
|
"stop-opacity": "0"
|
|
645
645
|
}, null, 8, hl),
|
|
646
646
|
f("stop", {
|
|
647
|
-
offset: `${(1 - te.value /
|
|
648
|
-
"stop-color": n(
|
|
647
|
+
offset: `${(1 - te.value / $.value / 2) * 100}%`,
|
|
648
|
+
"stop-color": n(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
649
649
|
}, null, 8, yl),
|
|
650
650
|
f("stop", {
|
|
651
651
|
offset: "100%",
|
|
652
|
-
"stop-color": n(
|
|
652
|
+
"stop-color": n(fe)(e.value.style.chart.backgroundColor, 0),
|
|
653
653
|
"stop-opacity": "0"
|
|
654
654
|
}, null, 8, fl)
|
|
655
655
|
], 8, cl)) : i("", !0)
|
|
@@ -700,7 +700,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
700
700
|
stdDeviation: "10",
|
|
701
701
|
"flood-opacity": "0.5",
|
|
702
702
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
703
|
-
}, null, 8,
|
|
703
|
+
}, null, 8, $l)
|
|
704
704
|
], 8, _l),
|
|
705
705
|
f("filter", {
|
|
706
706
|
id: `drop_shadow_${y.value}`,
|
|
@@ -717,7 +717,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
717
717
|
"flood-opacity": "1",
|
|
718
718
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
719
719
|
}, null, 8, Cl)
|
|
720
|
-
], 8,
|
|
720
|
+
], 8, xl)
|
|
721
721
|
]),
|
|
722
722
|
e.value.type === "classic" ? (o(!0), r(m, { key: 3 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
723
723
|
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
@@ -750,12 +750,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
750
750
|
key: 5,
|
|
751
751
|
cx: u.value.width / 2,
|
|
752
752
|
cy: u.value.height / 2,
|
|
753
|
-
r:
|
|
753
|
+
r: $.value <= 0 ? 10 : $.value,
|
|
754
754
|
fill: e.value.style.chart.backgroundColor,
|
|
755
755
|
filter: `url(#shadow_${y.value})`
|
|
756
756
|
}, null, 8, Al)) : i("", !0),
|
|
757
757
|
l.$slots.pattern ? (o(), r("g", Fl, [
|
|
758
|
-
(o(!0), r(m, null, S(
|
|
758
|
+
(o(!0), r(m, null, S(xe.dataset, (t, a) => (o(), r("defs", {
|
|
759
759
|
key: `pattern-${t.patternIndex}`
|
|
760
760
|
}, [
|
|
761
761
|
g(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
@@ -767,7 +767,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
767
767
|
d: t.arcSlice,
|
|
768
768
|
fill: "#FFFFFF"
|
|
769
769
|
}, null, 8, Sl))), 256)),
|
|
770
|
-
|
|
770
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
771
|
+
class: "vue-ui-donut-arc-path",
|
|
772
|
+
d: t.arcSlice,
|
|
773
|
+
fill: t.color,
|
|
774
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
775
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
776
|
+
filter: J(a)
|
|
777
|
+
}, null, 8, Ll))), 256)),
|
|
778
|
+
l.$slots.pattern ? (o(), r("g", zl, [
|
|
771
779
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
772
780
|
class: "vue-ui-donut-arc-path",
|
|
773
781
|
d: t.arcSlice,
|
|
@@ -775,19 +783,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
775
783
|
stroke: e.value.style.chart.backgroundColor,
|
|
776
784
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
777
785
|
filter: J(a)
|
|
778
|
-
}, null, 8,
|
|
779
|
-
])) : i("", !0)
|
|
780
|
-
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
781
|
-
class: "vue-ui-donut-arc-path",
|
|
782
|
-
d: t.arcSlice,
|
|
783
|
-
fill: n(ve)(t.color, 80),
|
|
784
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
785
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
786
|
-
filter: J(a)
|
|
787
|
-
}, null, 8, Ol))), 256))
|
|
786
|
+
}, null, 8, Ol))), 256))
|
|
787
|
+
])) : i("", !0)
|
|
788
788
|
], 64)) : i("", !0),
|
|
789
789
|
F.value && e.value.type === "polar" ? (o(), r(m, { key: 8 }, [
|
|
790
|
-
A.value.length > 1 ? (o(), r("g",
|
|
790
|
+
A.value.length > 1 ? (o(), r("g", Nl, [
|
|
791
791
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
792
792
|
stroke: e.value.style.chart.backgroundColor,
|
|
793
793
|
d: c.value[a].path,
|
|
@@ -795,7 +795,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
795
795
|
style: b({
|
|
796
796
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
797
797
|
})
|
|
798
|
-
}, null, 12,
|
|
798
|
+
}, null, 12, Ml))), 256)),
|
|
799
799
|
e.value.style.chart.layout.donut.useShadow ? (o(), r("g", Yl, [
|
|
800
800
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
801
801
|
class: "vue-ui-donut-arc-path",
|
|
@@ -838,7 +838,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
838
838
|
key: 0,
|
|
839
839
|
cx: u.value.width / 2,
|
|
840
840
|
cy: u.value.height / 2,
|
|
841
|
-
r:
|
|
841
|
+
r: $.value,
|
|
842
842
|
fill: `url(#pattern_${y.value}_${A.value[0].patternIndex})`,
|
|
843
843
|
stroke: e.value.style.chart.backgroundColor,
|
|
844
844
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
@@ -846,7 +846,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
846
846
|
f("circle", {
|
|
847
847
|
cx: u.value.width / 2,
|
|
848
848
|
cy: u.value.height / 2,
|
|
849
|
-
r:
|
|
849
|
+
r: $.value,
|
|
850
850
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : A.value[0].color,
|
|
851
851
|
stroke: e.value.style.chart.backgroundColor,
|
|
852
852
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
@@ -856,7 +856,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
856
856
|
key: 9,
|
|
857
857
|
cx: u.value.width / 2,
|
|
858
858
|
cy: u.value.height / 2,
|
|
859
|
-
r:
|
|
859
|
+
r: $.value <= 0 ? 10 : $.value,
|
|
860
860
|
fill: "transparent",
|
|
861
861
|
stroke: e.value.style.chart.backgroundColor
|
|
862
862
|
}, null, 8, Wl)),
|
|
@@ -866,7 +866,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
866
866
|
cy: u.value.height / 2,
|
|
867
867
|
r: (
|
|
868
868
|
/* This might require adjustments */
|
|
869
|
-
|
|
869
|
+
$.value <= 0 ? 10 : $.value
|
|
870
870
|
),
|
|
871
871
|
fill: `url(#gradient_${y.value})`
|
|
872
872
|
}, null, 8, El)) : i("", !0),
|
|
@@ -882,7 +882,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
882
882
|
show: !0
|
|
883
883
|
}),
|
|
884
884
|
onMouseleave: s[0] || (s[0] = (v) => {
|
|
885
|
-
|
|
885
|
+
ce.value = !1, O.value = null;
|
|
886
886
|
}),
|
|
887
887
|
onClick: (v) => H(t, a)
|
|
888
888
|
}, null, 40, jl))), 256))
|
|
@@ -890,7 +890,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
890
890
|
f("circle", {
|
|
891
891
|
cx: u.value.width / 2,
|
|
892
892
|
cy: u.value.height / 2,
|
|
893
|
-
r:
|
|
893
|
+
r: $.value,
|
|
894
894
|
fill: "transparent",
|
|
895
895
|
onMouseenter: s[1] || (s[1] = (t) => qe({
|
|
896
896
|
datapoint: A.value[0],
|
|
@@ -899,7 +899,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
899
899
|
show: !0
|
|
900
900
|
})),
|
|
901
901
|
onMouseleave: s[2] || (s[2] = (t) => {
|
|
902
|
-
|
|
902
|
+
ce.value = !1, O.value = null;
|
|
903
903
|
}),
|
|
904
904
|
onClick: s[3] || (s[3] = (t) => H(A.value[0], l.i))
|
|
905
905
|
}, null, 40, ql)
|
|
@@ -926,7 +926,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
926
926
|
}, P(n(D)(
|
|
927
927
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
928
928
|
F.value,
|
|
929
|
-
n(
|
|
929
|
+
n(M)({
|
|
930
930
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
931
931
|
v: F.value,
|
|
932
932
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
@@ -952,7 +952,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
952
952
|
}, P(q.value || T.value ? "--" : n(D)(
|
|
953
953
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
954
954
|
je.value,
|
|
955
|
-
n(
|
|
955
|
+
n(M)({
|
|
956
956
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
957
957
|
v: je.value,
|
|
958
958
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
@@ -967,7 +967,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
967
967
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g", ta, [
|
|
968
968
|
(o(), r("foreignObject", {
|
|
969
969
|
x: n(w)(t, !0).anchor === "end" ? n(w)(t).x - 120 : n(w)(t, !0).anchor === "middle" ? n(w)(t).x - 60 : n(w)(t).x,
|
|
970
|
-
y: n(
|
|
970
|
+
y: n(ve)(t) - (Ke.value ? 20 : 0),
|
|
971
971
|
width: "120",
|
|
972
972
|
height: "60",
|
|
973
973
|
style: { overflow: "visible" }
|
|
@@ -989,7 +989,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
989
989
|
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
990
990
|
key: 0,
|
|
991
991
|
cx: n(w)(t).x,
|
|
992
|
-
cy: n(
|
|
992
|
+
cy: n(ve)(t) - 3.5,
|
|
993
993
|
fill: t.color,
|
|
994
994
|
stroke: e.value.style.chart.backgroundColor,
|
|
995
995
|
"stroke-width": 1,
|
|
@@ -1019,7 +1019,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1019
1019
|
key: 0,
|
|
1020
1020
|
"text-anchor": n(w)(t, !0, 12).anchor,
|
|
1021
1021
|
x: n(w)(t, !0, 12).x,
|
|
1022
|
-
y: n(
|
|
1022
|
+
y: n(ve)(t),
|
|
1023
1023
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1024
1024
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1025
1025
|
style: b(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
@@ -1027,7 +1027,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1027
1027
|
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${n(D)(
|
|
1028
1028
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1029
1029
|
t.value,
|
|
1030
|
-
n(
|
|
1030
|
+
n(M)({
|
|
1031
1031
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1032
1032
|
v: t.value,
|
|
1033
1033
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1039,7 +1039,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1039
1039
|
key: 1,
|
|
1040
1040
|
"text-anchor": n(w)(t).anchor,
|
|
1041
1041
|
x: n(w)(t, !0, 12).x,
|
|
1042
|
-
y: n(
|
|
1042
|
+
y: n(ve)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1043
1043
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1044
1044
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1045
1045
|
style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
@@ -1062,7 +1062,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1062
1062
|
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${n(D)(
|
|
1063
1063
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1064
1064
|
t.value,
|
|
1065
|
-
n(
|
|
1065
|
+
n(M)({
|
|
1066
1066
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1067
1067
|
v: t.value,
|
|
1068
1068
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1089,7 +1089,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1089
1089
|
X(t) && e.value.type === "classic" ? (o(), r("foreignObject", {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
x: e.value.style.chart.comments.offsetX + (n(w)(t, !0).anchor === "end" ? n(w)(t).x - e.value.style.chart.comments.width : n(w)(t, !0).anchor === "middle" ? n(w)(t).x - e.value.style.chart.comments.width / 2 : n(w)(t).x),
|
|
1092
|
-
y: n(
|
|
1092
|
+
y: n(ve)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1093
1093
|
width: e.value.style.chart.comments.width,
|
|
1094
1094
|
height: "200",
|
|
1095
1095
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
@@ -1156,7 +1156,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1156
1156
|
st(P(t.name) + ": " + P(n(D)(
|
|
1157
1157
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1158
1158
|
t.value,
|
|
1159
|
-
n(
|
|
1159
|
+
n(M)({
|
|
1160
1160
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1161
1161
|
v: t.value,
|
|
1162
1162
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1170,7 +1170,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1170
1170
|
V.value.includes(a) ? (o(), r("span", pa, " ( " + P(zt(t.proportion * 100)) + " % ) ", 1)) : (o(), r("span", fa, " (" + P(isNaN(t.value / F.value) ? "-" : n(D)(
|
|
1171
1171
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1172
1172
|
He.value(t),
|
|
1173
|
-
n(
|
|
1173
|
+
n(M)({
|
|
1174
1174
|
v: He.value(t),
|
|
1175
1175
|
s: "%",
|
|
1176
1176
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1183,7 +1183,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1183
1183
|
l.$slots.pattern ? {
|
|
1184
1184
|
name: "legend-pattern",
|
|
1185
1185
|
fn: C(({ legend: t, index: a }) => [
|
|
1186
|
-
|
|
1186
|
+
$e(sl, {
|
|
1187
1187
|
shape: t.shape,
|
|
1188
1188
|
radius: 30,
|
|
1189
1189
|
stroke: "none",
|
|
@@ -1204,8 +1204,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1204
1204
|
}, [
|
|
1205
1205
|
g(l.$slots, "source", {}, void 0, !0)
|
|
1206
1206
|
], 512)) : i("", !0),
|
|
1207
|
-
|
|
1208
|
-
show: h.value.showTooltip &&
|
|
1207
|
+
$e(n(gt), {
|
|
1208
|
+
show: h.value.showTooltip && ce.value,
|
|
1209
1209
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1210
1210
|
color: e.value.style.chart.tooltip.color,
|
|
1211
1211
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1247,10 +1247,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1247
1247
|
content: C(() => [
|
|
1248
1248
|
(o(), Q(n(ht), {
|
|
1249
1249
|
key: `table_${Se.value}`,
|
|
1250
|
-
colNames:
|
|
1251
|
-
head:
|
|
1252
|
-
body:
|
|
1253
|
-
config:
|
|
1250
|
+
colNames: de.value.colNames,
|
|
1251
|
+
head: de.value.head,
|
|
1252
|
+
body: de.value.body,
|
|
1253
|
+
config: de.value.config,
|
|
1254
1254
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1255
1255
|
onClose: s[5] || (s[5] = (t) => h.value.showTable = !1)
|
|
1256
1256
|
}, {
|
|
@@ -1264,7 +1264,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1264
1264
|
st(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : n(D)(
|
|
1265
1265
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1266
1266
|
t,
|
|
1267
|
-
n(
|
|
1267
|
+
n(M)({
|
|
1268
1268
|
v: t,
|
|
1269
1269
|
s: "%",
|
|
1270
1270
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1272,7 +1272,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1272
1272
|
) : n(D)(
|
|
1273
1273
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1274
1274
|
t,
|
|
1275
|
-
n(
|
|
1275
|
+
n(M)({
|
|
1276
1276
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1277
1277
|
v: t,
|
|
1278
1278
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1287,7 +1287,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1287
1287
|
}, 8, ["config"])) : i("", !0)
|
|
1288
1288
|
], 46, nl));
|
|
1289
1289
|
}
|
|
1290
|
-
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-
|
|
1290
|
+
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-b5044af7"]]);
|
|
1291
1291
|
export {
|
|
1292
1292
|
Sa as default
|
|
1293
1293
|
};
|