vue-data-ui 2.12.2 → 2.12.4
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-DIWP4RKK.js → Arrow-DWXcP0Gw.js} +1 -1
- package/dist/BaseDraggableDialog-DyV-BY6O.js +186 -0
- package/dist/{BaseIcon-C8PYAGSm.js → BaseIcon-DIIS9hFE.js} +1 -1
- package/dist/{ColorPicker-DVqKbGvI.js → ColorPicker-D09a5oTx.js} +3 -3
- package/dist/{DataTable-bu8svd8_.js → DataTable-BAr4XpSA.js} +2 -2
- package/dist/{Legend-DPhZp44K.js → Legend-CxZqkiNm.js} +4 -4
- package/dist/{PackageVersion-DV3lyC6_.js → PackageVersion-CQUs0b3q.js} +1 -1
- package/dist/{PenAndPaper-mmgChIlY.js → PenAndPaper-DmGOEcsD.js} +3 -3
- package/dist/{Shape-CqqGhNJ7.js → Shape-gJBc0QCq.js} +1 -1
- package/dist/{Slicer-4gNIAogU.js → Slicer-B81b2Jr1.js} +2 -2
- package/dist/{Title-BjMd4WGZ.js → Title-BQKp20eU.js} +1 -1
- package/dist/{Tooltip-QXYFefbw.js → Tooltip-Bjsc232E.js} +1 -1
- package/dist/{dom-to-png-xlji2G1x.js → dom-to-png-BAR1EMYe.js} +1 -1
- package/dist/{img-DazS1-Hk.js → img-BDqur_YP.js} +1 -1
- package/dist/{index-DISniBjo.js → index-BKDMQMKQ.js} +538 -491
- package/dist/{pdf-CQZKhr5c.js → pdf-CMw0Bw1w.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useNestedProp-Cg1rd0rj.js → useNestedProp-B_1UW4X2.js} +1 -1
- package/dist/{usePrinter-Cw5Mv9xt.js → usePrinter-BNaQ2HUw.js} +3 -3
- package/dist/{vue-data-ui-BTvacIdS.js → vue-data-ui-RV3mQ1d3.js} +63 -63
- package/dist/vue-data-ui.js +23 -23
- package/dist/{vue-ui-3d-bar-BxHQK-2L.js → vue-ui-3d-bar-Bq4AcGdm.js} +9 -9
- package/dist/{vue-ui-accordion-CFpwBwSP.js → vue-ui-accordion-DyqkVlpC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-MdH3FVAn.js → vue-ui-age-pyramid-BYn8ffyI.js} +10 -10
- package/dist/{vue-ui-annotator-CoTlk9ka.js → vue-ui-annotator-Biv6tN6c.js} +2 -2
- package/dist/{vue-ui-bullet-BXcym8wq.js → vue-ui-bullet-DVflwrvi.js} +8 -8
- package/dist/{vue-ui-candlestick-pPYXGx-u.js → vue-ui-candlestick-C-gmKrpa.js} +11 -11
- package/dist/{vue-ui-carousel-table-CSBqSz49.js → vue-ui-carousel-table-DJT77KEd.js} +4 -4
- package/dist/{vue-ui-chestnut-BIB3Y5Do.js → vue-ui-chestnut-CuF02nem.js} +8 -8
- package/dist/{vue-ui-chord-D7Zxwz-p.js → vue-ui-chord-7PHPveVU.js} +65 -65
- package/dist/{vue-ui-circle-pack-CshPHdim.js → vue-ui-circle-pack-BU_MxW6h.js} +9 -9
- package/dist/{vue-ui-cursor-Dy7yoURO.js → vue-ui-cursor-DSFHMrnK.js} +2 -2
- package/dist/{vue-ui-dashboard-CTcgQdrY.js → vue-ui-dashboard-CHyk8pO_.js} +62 -62
- package/dist/{vue-ui-digits-BgMG_ZD8.js → vue-ui-digits-GOVpxQeg.js} +2 -2
- package/dist/{vue-ui-donut-CD5UvHFF.js → vue-ui-donut-C5sXao7U.js} +105 -107
- package/dist/vue-ui-donut-evolution-BsoNZw0_.js +871 -0
- package/dist/{vue-ui-dumbbell-Bndr5fG2.js → vue-ui-dumbbell-BVX3en_Z.js} +10 -10
- package/dist/{vue-ui-flow-CEbuZB4v.js → vue-ui-flow-CrRVJbjl.js} +24 -24
- package/dist/{vue-ui-funnel-np6S0JDG.js → vue-ui-funnel-DyJvSMLV.js} +9 -9
- package/dist/{vue-ui-galaxy-CcRvS9jz.js → vue-ui-galaxy-B1WrIt-g.js} +32 -32
- package/dist/{vue-ui-gauge-DZHM1d1w.js → vue-ui-gauge-C7qvMFcc.js} +19 -19
- package/dist/{vue-ui-gizmo-VsNpWU8R.js → vue-ui-gizmo-Agt3kM2d.js} +3 -3
- package/dist/{vue-ui-heatmap-COGgS2DC.js → vue-ui-heatmap-Czh2uHtX.js} +32 -32
- package/dist/{vue-ui-history-plot-DP8d4EI1.js → vue-ui-history-plot-KGGrayk7.js} +11 -11
- package/dist/{vue-ui-kpi-DRE3-5BM.js → vue-ui-kpi-B-aYK4fp.js} +3 -3
- package/dist/{vue-ui-mini-loader-CXAQz2Au.js → vue-ui-mini-loader-C0W2_f3L.js} +2 -2
- package/dist/{vue-ui-molecule-CqszhlfW.js → vue-ui-molecule-DjWODfzW.js} +22 -22
- package/dist/{vue-ui-mood-radar-D5sAYfFF.js → vue-ui-mood-radar-CFEN6SOJ.js} +11 -11
- package/dist/{vue-ui-nested-donuts-C3FhBgMa.js → vue-ui-nested-donuts-Dw_TX78M.js} +56 -56
- package/dist/{vue-ui-onion-w4Bhv7xJ.js → vue-ui-onion-CiTCTFRi.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CkP97yTg.js → vue-ui-parallel-coordinate-plot-YAyEWj2K.js} +36 -36
- package/dist/{vue-ui-quadrant-CjNqMQH1.js → vue-ui-quadrant-j54lbADV.js} +41 -41
- package/dist/{vue-ui-quick-chart-D-RFob0G.js → vue-ui-quick-chart-f9MTErUH.js} +9 -9
- package/dist/{vue-ui-radar-GGHlFIw7.js → vue-ui-radar-BQ45fltP.js} +12 -12
- package/dist/{vue-ui-rating-Kl95_moc.js → vue-ui-rating-BjTlb4Lj.js} +11 -11
- package/dist/{vue-ui-relation-circle-TKmNIsV8.js → vue-ui-relation-circle-NX-yzRRP.js} +7 -7
- package/dist/vue-ui-ridgeline-BezQ7Hj-.js +924 -0
- package/dist/{vue-ui-rings-9KoP64bM.js → vue-ui-rings-DJbgQBHR.js} +12 -12
- package/dist/{vue-ui-scatter-XvOvEdKX.js → vue-ui-scatter-17fw3Pcy.js} +60 -60
- package/dist/{vue-ui-skeleton-DCo7JrxG.js → vue-ui-skeleton-BgWQSBb-.js} +19 -19
- package/dist/{vue-ui-smiley-D4l-H6u5.js → vue-ui-smiley-Bo-A4uMV.js} +2 -2
- package/dist/{vue-ui-spark-trend-CCoAQ33g.js → vue-ui-spark-trend-BV9qCKr_.js} +5 -5
- package/dist/{vue-ui-sparkbar-DGIrdVjR.js → vue-ui-sparkbar-CSGGtPTT.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B9ENwH2o.js → vue-ui-sparkgauge-BAia263V.js} +9 -9
- package/dist/{vue-ui-sparkhistogram-RhVUFKFA.js → vue-ui-sparkhistogram-CKexMmEN.js} +5 -5
- package/dist/{vue-ui-sparkline-BvRg6qp5.js → vue-ui-sparkline-DRtP5cMm.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DMTAd6mK.js → vue-ui-sparkstackbar-D_bqkCIj.js} +5 -5
- package/dist/{vue-ui-stackbar-Dz3jTKsH.js → vue-ui-stackbar-u_kZc4Th.js} +13 -13
- package/dist/{vue-ui-strip-plot-gH9KxfjT.js → vue-ui-strip-plot-UQEhmlcX.js} +11 -11
- package/dist/{vue-ui-table-viiFQ5KP.js → vue-ui-table-4BTltNPf.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DzEL36oR.js → vue-ui-table-heatmap-BXlfBI5z.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D5BCWZ-0.js → vue-ui-table-sparkline-DFqDxs2Y.js} +5 -5
- package/dist/{vue-ui-thermometer-ralhUVUt.js → vue-ui-thermometer-DD0QQ8b8.js} +7 -7
- package/dist/{vue-ui-timer-DThtG4by.js → vue-ui-timer-jlPkhU3j.js} +5 -5
- package/dist/{vue-ui-tiremarks-CykunRsN.js → vue-ui-tiremarks-DZ1kGvwG.js} +7 -7
- package/dist/{vue-ui-treemap-qk-p7xMT.js → vue-ui-treemap-Xo1ZAK3l.js} +12 -12
- package/dist/{vue-ui-vertical-bar-EWqYvvQn.js → vue-ui-vertical-bar-G3mo6Ms5.js} +12 -12
- package/dist/{vue-ui-waffle-6X5vGivF.js → vue-ui-waffle-B2Oz6oPQ.js} +27 -27
- package/dist/{vue-ui-wheel-BYjveZ2z.js → vue-ui-wheel-Ml-x_ere.js} +7 -7
- package/dist/{vue-ui-word-cloud-DmYJrVSa.js → vue-ui-word-cloud-3LB7Ntxy.js} +49 -49
- package/dist/{vue-ui-world-uRUcczm9.js → vue-ui-world-ttJISk8E.js} +11 -11
- package/dist/{vue-ui-xy-cUHI3LR_.js → vue-ui-xy-2Z_f3J92.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BI49wqJK.js → vue-ui-xy-canvas-olPGemLS.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CTTMpOmA.js +0 -948
- package/dist/vue-ui-ridgeline-DZTiIMvd.js +0 -1102
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useSlots as _t, computed as g, ref as d, onMounted as
|
|
2
|
-
import { u as Ct, o as Tt, e as at, g as Pt, c as At, b as Ft, d as ot, p as
|
|
1
|
+
import { useSlots as _t, computed as g, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as s, unref as r, normalizeStyle as w, normalizeClass as be, createBlock as q, createCommentVNode as i, renderSlot as p, createElementVNode as f, createVNode as we, createSlots as et, withCtx as C, normalizeProps as ee, guardReactiveProps as te, Fragment as m, renderList as L, mergeProps as tt, toDisplayString as P, createTextVNode as lt, nextTick as xt } from "vue";
|
|
2
|
+
import { u as Ct, o as Tt, e as at, g as Pt, c as At, b as Ft, d as ot, p as J, m as St, _ as Lt, f as N, X as zt, s as ue, w as Ot, j as Mt, M as z, i as D, k as ne, n as k, t as Nt, a as Yt, q as Xt, r as It, x as Dt, S as st } from "./index-BKDMQMKQ.js";
|
|
3
3
|
import { t as Vt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { _ as Gt } from "./Title-
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as Ut } from "./DataTable-
|
|
7
|
-
import { _ as jt } from "./Tooltip-
|
|
8
|
-
import { L as Et } from "./Legend-
|
|
9
|
-
import Ht from "./vue-ui-skeleton-
|
|
10
|
-
import qt from "./vue-ui-accordion-
|
|
11
|
-
import { u as ut } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
4
|
+
import { _ as Gt } from "./Title-BQKp20eU.js";
|
|
5
|
+
import { u as Wt, U as Rt } from "./usePrinter-BNaQ2HUw.js";
|
|
6
|
+
import { D as Ut } from "./DataTable-BAr4XpSA.js";
|
|
7
|
+
import { _ as jt } from "./Tooltip-Bjsc232E.js";
|
|
8
|
+
import { L as Et } from "./Legend-CxZqkiNm.js";
|
|
9
|
+
import Ht from "./vue-ui-skeleton-BgWQSBb-.js";
|
|
10
|
+
import qt from "./vue-ui-accordion-DyqkVlpC.js";
|
|
11
|
+
import { u as ut } from "./useNestedProp-B_1UW4X2.js";
|
|
12
|
+
import { _ as Jt } from "./PackageVersion-CQUs0b3q.js";
|
|
13
|
+
import { _ as Kt } from "./PenAndPaper-DmGOEcsD.js";
|
|
14
|
+
import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Zt } from "./Shape-gJBc0QCq.js";
|
|
16
16
|
import { u as el } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { key: 1 }, ul = ["id"], nl = ["stop-color"], rl = ["offset", "stop-color"], il = ["offset", "stop-color"], vl = ["stop-color"], cl = { key: 2 }, dl = ["id", "cx", "cy"], hl = ["stop-color", "stop-opacity"], yl = ["stop-color"], fl = ["id"], gl = ["id"], pl = ["id"], ml = ["flood-color"], bl = ["id"], wl = ["flood-color"], kl = ["d", "stroke", "filter"], _l = ["d", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], xl = { key: 6 }, Cl = ["stroke", "d"], Tl = { key: 0 }, Pl = ["d", "fill", "stroke", "stroke-width", "filter"], Al = ["d", "fill", "stroke", "stroke-width", "filter"], Fl = { key: 0 }, Sl = ["stroke", "d"], Ll = { key: 0 }, zl = ["d", "stroke", "stroke-width", "filter"], Ol = { key: 1 },
|
|
18
|
+
const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { key: 1 }, ul = ["id"], nl = ["stop-color"], rl = ["offset", "stop-color"], il = ["offset", "stop-color"], vl = ["stop-color"], cl = { key: 2 }, dl = ["id", "cx", "cy"], hl = ["stop-color", "stop-opacity"], yl = ["stop-color"], fl = ["id"], gl = ["id"], pl = ["id"], ml = ["flood-color"], bl = ["id"], wl = ["flood-color"], kl = ["d", "stroke", "filter"], _l = ["d", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], xl = { key: 6 }, Cl = ["stroke", "d"], Tl = { key: 0 }, Pl = ["d", "fill", "stroke", "stroke-width", "filter"], Al = ["d", "fill", "stroke", "stroke-width", "filter"], Fl = { key: 0 }, Sl = ["stroke", "d"], Ll = { key: 0 }, zl = ["d", "stroke", "stroke-width", "filter"], Ol = { key: 1 }, Ml = ["d", "fill", "stroke", "stroke-width", "filter"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Yl = { key: 1 }, Xl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Il = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dl = ["cx", "cy", "r", "stroke"], Vl = ["cx", "cy", "r", "fill"], Bl = { key: 0 }, Gl = ["d", "fill", "onMouseenter", "onClick"], Wl = { key: 1 }, Rl = ["cx", "cy", "r", "fill"], Ul = ["x", "y", "fill", "font-size"], jl = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], ql = ["filter"], Jl = { key: 0 }, Kl = ["x", "y"], Ql = { key: 1 }, Zl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ea = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ta = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], la = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], aa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], oa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], sa = { key: 2 }, ua = ["x", "y", "width"], na = ["x", "y", "width"], ra = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, ia = ["onClick"], va = {
|
|
@@ -47,7 +47,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
47
47
|
return l;
|
|
48
48
|
}
|
|
49
49
|
}), ae = d(null), _e = d(null), $e = d(null), re = d(null), xe = d(null), Ce = d(null), Te = d(0), Pe = d(0), Ae = d(0);
|
|
50
|
-
|
|
50
|
+
Qe(() => {
|
|
51
51
|
Fe();
|
|
52
52
|
}), $t(() => {
|
|
53
53
|
re.value && re.value.disconnect();
|
|
@@ -76,7 +76,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
76
76
|
legend: e.value.style.chart.legend.show ? $e.value : null,
|
|
77
77
|
source: xe.value,
|
|
78
78
|
noTitle: Ce.value,
|
|
79
|
-
padding:
|
|
79
|
+
padding: Me.value
|
|
80
80
|
});
|
|
81
81
|
requestAnimationFrame(() => {
|
|
82
82
|
u.value.width = o, u.value.height = t;
|
|
@@ -96,7 +96,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
96
96
|
userConfig: Yt.vue_ui_donut[l.theme] || O.config,
|
|
97
97
|
defaultConfig: l
|
|
98
98
|
}),
|
|
99
|
-
customPalette:
|
|
99
|
+
customPalette: Nt[l.theme] || J
|
|
100
100
|
} : l;
|
|
101
101
|
}
|
|
102
102
|
const e = g({
|
|
@@ -110,9 +110,9 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
110
110
|
let b = 0;
|
|
111
111
|
l.forEach((_, x) => {
|
|
112
112
|
setTimeout(() => {
|
|
113
|
-
const
|
|
113
|
+
const W = performance.now();
|
|
114
114
|
function I(se) {
|
|
115
|
-
const de = Math.min((se -
|
|
115
|
+
const de = Math.min((se - W) / o, 1), kt = st(de);
|
|
116
116
|
B.value[x] = _ * kt, B.value = [...B.value], de < 1 ? requestAnimationFrame(I) : (B.value[x] = _, B.value = [...B.value], b += 1, b === v && a());
|
|
117
117
|
}
|
|
118
118
|
requestAnimationFrame(I);
|
|
@@ -120,7 +120,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
Qe(async () => {
|
|
124
124
|
const l = O.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
125
125
|
e.value.startAnimation.show && await dt(
|
|
126
126
|
l,
|
|
@@ -128,11 +128,11 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
128
128
|
e.value.startAnimation.staggerMs
|
|
129
129
|
), T.value = !1;
|
|
130
130
|
});
|
|
131
|
-
const { userOptionsVisible: ye, setUserOptionsVisibility: ze, keepUserOptionState: Oe } =
|
|
132
|
-
|
|
131
|
+
const { userOptionsVisible: ye, setUserOptionsVisibility: ze, keepUserOptionState: Oe } = Qt({ config: e.value }), { svgRef: fe } = el({ config: e.value.style.chart.title });
|
|
132
|
+
Ze(() => O.config, (l) => {
|
|
133
133
|
e.value = Le(), ye.value = !e.value.userOptions.showOnChartHover, Fe(), Te.value += 1, Pe.value += 1, Ae.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;
|
|
134
134
|
}, { deep: !0 });
|
|
135
|
-
const
|
|
135
|
+
const Me = g(() => {
|
|
136
136
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
137
137
|
return {
|
|
138
138
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -141,7 +141,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
141
141
|
bottom: t,
|
|
142
142
|
left: a
|
|
143
143
|
};
|
|
144
|
-
}), { isPrinting:
|
|
144
|
+
}), { isPrinting: Ne, isImaging: Ye, generatePdf: Xe, generateImage: Ie } = Wt({
|
|
145
145
|
elementId: `donut__${y.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
147
147
|
options: e.value.userOptions.print
|
|
@@ -154,12 +154,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
154
154
|
}), u = d({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 512
|
|
157
|
-
}),
|
|
157
|
+
}), K = g(() => {
|
|
158
158
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(u.value.width, u.value.height) * l, t = o > $.value ? $.value : o;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
160
|
}), Ve = rt, G = g(() => O.dataset.map((l, o) => ({
|
|
161
161
|
name: l.name,
|
|
162
|
-
color: ot(l.color) || De.value[o] ||
|
|
162
|
+
color: ot(l.color) || De.value[o] || J[o] || J[o % J.length],
|
|
163
163
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
164
164
|
absoluteValues: l.values,
|
|
165
165
|
comment: l.comment || "",
|
|
@@ -167,8 +167,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
167
167
|
seriesIndex: o,
|
|
168
168
|
ghost: !1,
|
|
169
169
|
pattern: `pattern_${y.value}_${o}`
|
|
170
|
-
}))),
|
|
171
|
-
|
|
170
|
+
}))), M = d(G.value);
|
|
171
|
+
Ze(() => G.value, (l) => M.value = l);
|
|
172
172
|
function yt() {
|
|
173
173
|
return G.value.map((l) => ({
|
|
174
174
|
name: l.name,
|
|
@@ -176,32 +176,30 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
176
176
|
value: l.value
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
|
-
const V = d([]);
|
|
180
|
-
d(null), d(null);
|
|
181
|
-
const E = d(!1);
|
|
179
|
+
const V = d([]), E = d(!1);
|
|
182
180
|
function Be({ from: l, to: o, duration: t, onUpdate: a, onDone: v, easing: b = st }) {
|
|
183
181
|
const _ = performance.now();
|
|
184
|
-
function x(
|
|
185
|
-
const I = Math.min((
|
|
182
|
+
function x(W) {
|
|
183
|
+
const I = Math.min((W - _) / t, 1), se = b(I), de = l + (o - l) * se;
|
|
186
184
|
a(de, I), I < 1 ? requestAnimationFrame(x) : (a(o, 1), v && v());
|
|
187
185
|
}
|
|
188
186
|
requestAnimationFrame(x);
|
|
189
187
|
}
|
|
190
188
|
function Ge(l) {
|
|
191
189
|
const o = G.value.find((v, b) => b === l);
|
|
192
|
-
let a =
|
|
190
|
+
let a = M.value.find((v, b) => b === l).value;
|
|
193
191
|
if (V.value.includes(l)) {
|
|
194
192
|
let b = function() {
|
|
195
|
-
|
|
196
|
-
(x,
|
|
193
|
+
M.value = M.value.map(
|
|
194
|
+
(x, W) => l === W ? { ...x, value: v } : x
|
|
197
195
|
);
|
|
198
196
|
}, _ = function() {
|
|
199
197
|
E.value = !0, Be({
|
|
200
198
|
from: a,
|
|
201
199
|
to: v,
|
|
202
200
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
203
|
-
onUpdate: (x,
|
|
204
|
-
|
|
201
|
+
onUpdate: (x, W) => {
|
|
202
|
+
M.value = M.value.map(
|
|
205
203
|
(I, se) => l === se ? { ...I, value: x } : I
|
|
206
204
|
);
|
|
207
205
|
},
|
|
@@ -215,7 +213,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
215
213
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? _() : b();
|
|
216
214
|
} else if (V.value.length < G.value.length - 1) {
|
|
217
215
|
let v = function() {
|
|
218
|
-
V.value.push(l),
|
|
216
|
+
V.value.push(l), M.value = M.value.map(
|
|
219
217
|
(_, x) => l === x ? { ..._, value: 0 } : _
|
|
220
218
|
);
|
|
221
219
|
}, b = function() {
|
|
@@ -224,8 +222,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
224
222
|
to: 0,
|
|
225
223
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
226
224
|
onUpdate: (_, x) => {
|
|
227
|
-
|
|
228
|
-
(
|
|
225
|
+
M.value = M.value.map(
|
|
226
|
+
(W, I) => l === I ? { ...W, value: _ } : W
|
|
229
227
|
);
|
|
230
228
|
},
|
|
231
229
|
onDone: () => {
|
|
@@ -235,13 +233,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
235
233
|
};
|
|
236
234
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? b() : v();
|
|
237
235
|
}
|
|
238
|
-
Ve("selectLegend",
|
|
236
|
+
Ve("selectLegend", R.value.map((v) => ({
|
|
239
237
|
name: v.name,
|
|
240
238
|
color: v.color,
|
|
241
239
|
value: v.value
|
|
242
240
|
})));
|
|
243
241
|
}
|
|
244
|
-
const ft = g(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)),
|
|
242
|
+
const ft = g(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), R = g(() => {
|
|
245
243
|
if (T.value) {
|
|
246
244
|
const l = B.value.map((t, a) => ({
|
|
247
245
|
...G.value[a],
|
|
@@ -256,19 +254,19 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
256
254
|
ghost: !0
|
|
257
255
|
}), l;
|
|
258
256
|
} else
|
|
259
|
-
return
|
|
257
|
+
return M.value.forEach((l, o) => {
|
|
260
258
|
if ([null, void 0].includes(l.values))
|
|
261
259
|
return {
|
|
262
260
|
...l,
|
|
263
261
|
values: []
|
|
264
262
|
};
|
|
265
|
-
}),
|
|
263
|
+
}), M.value.map((l, o) => ({
|
|
266
264
|
...l,
|
|
267
265
|
seriesIndex: o
|
|
268
266
|
})).filter((l, o) => !V.value.includes(o));
|
|
269
|
-
}),
|
|
267
|
+
}), We = g(() => O.dataset.map((l, o) => ({
|
|
270
268
|
name: l.name,
|
|
271
|
-
color: ot(l.color) || De.value[o] ||
|
|
269
|
+
color: ot(l.color) || De.value[o] || J[o] || J[o % J.length],
|
|
272
270
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
273
271
|
shape: "circle",
|
|
274
272
|
patternIndex: o
|
|
@@ -288,8 +286,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
288
286
|
})), $ = g(() => {
|
|
289
287
|
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
290
288
|
return l < 55 ? 55 : l;
|
|
291
|
-
}), F = g(() => St({ series:
|
|
292
|
-
const l = Math.max(...
|
|
289
|
+
}), F = g(() => St({ series: R.value }, u.value.width / 2, u.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, K.value)), Y = g(() => F.value.filter((l) => !l.ghost)), c = g(() => {
|
|
290
|
+
const l = Math.max(...R.value.map((t) => t.value)), o = R.value.map((t) => t.value / l);
|
|
293
291
|
return Lt({
|
|
294
292
|
series: o,
|
|
295
293
|
center: {
|
|
@@ -300,7 +298,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
300
298
|
hasGhost: T.value
|
|
301
299
|
});
|
|
302
300
|
});
|
|
303
|
-
function
|
|
301
|
+
function Q(l) {
|
|
304
302
|
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
305
303
|
}
|
|
306
304
|
function pt(l) {
|
|
@@ -314,7 +312,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
314
312
|
return isNaN(t) ? 0 : D(
|
|
315
313
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
316
314
|
t * 100,
|
|
317
|
-
|
|
315
|
+
N({
|
|
318
316
|
v: t * 100,
|
|
319
317
|
s: "%",
|
|
320
318
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -325,7 +323,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
325
323
|
function mt(l) {
|
|
326
324
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
327
325
|
}
|
|
328
|
-
const S = g(() =>
|
|
326
|
+
const S = g(() => R.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Re = g(() => S.value / R.value.length), Ue = g(() => (l) => E.value ? l.proportion * 100 : l.value / S.value * 100), pe = d(null), oe = d(!1);
|
|
329
327
|
function je({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
330
328
|
pe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ie.value = a, A.value = o;
|
|
331
329
|
let v = "";
|
|
@@ -346,7 +344,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
346
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}"/>${vt.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(
|
|
347
345
|
e.value.style.chart.layout.labels.value.formatter,
|
|
348
346
|
l.value,
|
|
349
|
-
|
|
347
|
+
N({
|
|
350
348
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
351
349
|
v: l.value,
|
|
352
350
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -361,7 +359,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
361
359
|
const _ = D(
|
|
362
360
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
363
361
|
l.proportion * 100,
|
|
364
|
-
|
|
362
|
+
N({
|
|
365
363
|
v: l.proportion * 100,
|
|
366
364
|
s: "%",
|
|
367
365
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -381,10 +379,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
381
379
|
return e.value.useBlurOnHover && ![null, void 0].includes(A.value) && A.value !== l ? `url(#blur_${y.value})` : "";
|
|
382
380
|
}
|
|
383
381
|
const U = g(() => {
|
|
384
|
-
const l =
|
|
382
|
+
const l = R.value.map((t) => ({
|
|
385
383
|
name: t.name,
|
|
386
384
|
color: t.color
|
|
387
|
-
})), o =
|
|
385
|
+
})), o = R.value.map((t) => t.value);
|
|
388
386
|
return { head: l, body: o };
|
|
389
387
|
});
|
|
390
388
|
function Ee() {
|
|
@@ -398,7 +396,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
398
396
|
const ve = g(() => {
|
|
399
397
|
const l = [
|
|
400
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>',
|
|
401
|
-
|
|
399
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
402
400
|
"100%"
|
|
403
401
|
], o = U.value.head.map((v, b) => [
|
|
404
402
|
{
|
|
@@ -430,9 +428,9 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
430
428
|
body: o,
|
|
431
429
|
config: t
|
|
432
430
|
};
|
|
433
|
-
}),
|
|
431
|
+
}), Z = d(!1);
|
|
434
432
|
function bt(l) {
|
|
435
|
-
|
|
433
|
+
Z.value = l, Se.value += 1;
|
|
436
434
|
}
|
|
437
435
|
const He = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
438
436
|
function wt(l) {
|
|
@@ -444,10 +442,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
444
442
|
function qe() {
|
|
445
443
|
h.value.showTable = !h.value.showTable;
|
|
446
444
|
}
|
|
447
|
-
function
|
|
445
|
+
function Je() {
|
|
448
446
|
h.value.dataLabels.show = !h.value.dataLabels.show;
|
|
449
447
|
}
|
|
450
|
-
function
|
|
448
|
+
function Ke() {
|
|
451
449
|
h.value.showTooltip = !h.value.showTooltip;
|
|
452
450
|
}
|
|
453
451
|
const ce = d(!1);
|
|
@@ -460,19 +458,19 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
460
458
|
generateCsv: Ee,
|
|
461
459
|
generateImage: Ie,
|
|
462
460
|
toggleTable: qe,
|
|
463
|
-
toggleLabels:
|
|
464
|
-
toggleTooltip:
|
|
461
|
+
toggleLabels: Je,
|
|
462
|
+
toggleTooltip: Ke,
|
|
465
463
|
toggleAnnotator: me
|
|
466
464
|
}), (l, o) => (s(), n("div", {
|
|
467
465
|
ref_key: "donutChart",
|
|
468
466
|
ref: ae,
|
|
469
|
-
class: be(`vue-ui-donut ${
|
|
467
|
+
class: be(`vue-ui-donut ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
470
468
|
style: w(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
471
469
|
id: `donut__${y.value}`,
|
|
472
470
|
onMouseenter: o[6] || (o[6] = () => r(ze)(!0)),
|
|
473
471
|
onMouseleave: o[7] || (o[7] = () => r(ze)(!1))
|
|
474
472
|
}, [
|
|
475
|
-
e.value.userOptions.buttons.annotator && r(fe) ? (s(), q(
|
|
473
|
+
e.value.userOptions.buttons.annotator && r(fe) ? (s(), q(Kt, {
|
|
476
474
|
key: 0,
|
|
477
475
|
color: e.value.style.chart.color,
|
|
478
476
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -508,13 +506,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
508
506
|
}
|
|
509
507
|
}, null, 8, ["config"]))
|
|
510
508
|
], 512)) : i("", !0),
|
|
511
|
-
e.value.userOptions.show && le.value && (r(Oe) || r(ye)) ? (s(), q(
|
|
509
|
+
e.value.userOptions.show && le.value && (r(Oe) || r(ye)) ? (s(), q(Rt, {
|
|
512
510
|
ref_key: "details",
|
|
513
511
|
ref: ct,
|
|
514
512
|
key: `user_option_${Se.value}`,
|
|
515
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
516
514
|
color: e.value.style.chart.color,
|
|
517
|
-
isPrinting: r(
|
|
515
|
+
isPrinting: r(Ne),
|
|
518
516
|
isImaging: r(Ye),
|
|
519
517
|
uid: y.value,
|
|
520
518
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
@@ -524,7 +522,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
524
522
|
hasTable: e.value.userOptions.buttons.table,
|
|
525
523
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
526
524
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
527
|
-
isFullscreen:
|
|
525
|
+
isFullscreen: Z.value,
|
|
528
526
|
chartElement: ae.value,
|
|
529
527
|
position: e.value.userOptions.position,
|
|
530
528
|
isTooltip: h.value.showTooltip,
|
|
@@ -536,8 +534,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
536
534
|
onGenerateCsv: Ee,
|
|
537
535
|
onGenerateImage: r(Ie),
|
|
538
536
|
onToggleTable: qe,
|
|
539
|
-
onToggleLabels:
|
|
540
|
-
onToggleTooltip:
|
|
537
|
+
onToggleLabels: Je,
|
|
538
|
+
onToggleTooltip: Ke,
|
|
541
539
|
onToggleAnnotator: me,
|
|
542
540
|
style: w({
|
|
543
541
|
visibility: r(Oe) ? r(ye) ? "visible" : "hidden" : "visible"
|
|
@@ -612,11 +610,11 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
612
610
|
ref_key: "svgRef",
|
|
613
611
|
ref: fe,
|
|
614
612
|
xmlns: r(zt),
|
|
615
|
-
class: be({ "vue-data-ui-fullscreen--on":
|
|
613
|
+
class: be({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
616
614
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
617
|
-
style: w(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
615
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Me.value.css}`)
|
|
618
616
|
}, [
|
|
619
|
-
we(
|
|
617
|
+
we(Jt),
|
|
620
618
|
l.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
621
619
|
key: 0,
|
|
622
620
|
x: 0,
|
|
@@ -629,7 +627,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
629
627
|
}, [
|
|
630
628
|
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
631
629
|
], 8, ol)) : i("", !0),
|
|
632
|
-
e.value.type === "classic" && !isNaN(
|
|
630
|
+
e.value.type === "classic" && !isNaN(K.value / $.value) ? (s(), n("defs", sl, [
|
|
633
631
|
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
634
632
|
key: 0,
|
|
635
633
|
id: `gradient_${y.value}`
|
|
@@ -640,12 +638,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
640
638
|
"stop-opacity": "0"
|
|
641
639
|
}, null, 8, nl),
|
|
642
640
|
f("stop", {
|
|
643
|
-
offset: `${(1 -
|
|
641
|
+
offset: `${(1 - K.value / $.value) * 100}%`,
|
|
644
642
|
"stop-color": r(ue)("#FFFFFF", 0),
|
|
645
643
|
"stop-opacity": "0"
|
|
646
644
|
}, null, 8, rl),
|
|
647
645
|
f("stop", {
|
|
648
|
-
offset: `${(1 -
|
|
646
|
+
offset: `${(1 - K.value / $.value / 2) * 100}%`,
|
|
649
647
|
"stop-color": r(ue)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
650
648
|
}, null, 8, il),
|
|
651
649
|
f("stop", {
|
|
@@ -723,7 +721,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
723
721
|
e.value.type === "classic" ? (s(!0), n(m, { key: 3 }, L(F.value.filter((t) => !t.ghost), (t, a) => (s(), n("g", null, [
|
|
724
722
|
X(t) && h.value.dataLabels.show ? (s(), n("path", {
|
|
725
723
|
key: 0,
|
|
726
|
-
d: r(
|
|
724
|
+
d: r(Mt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, K.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
727
725
|
stroke: t.color,
|
|
728
726
|
"stroke-width": "1",
|
|
729
727
|
"stroke-linecap": "round",
|
|
@@ -821,7 +819,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
821
819
|
style: w({
|
|
822
820
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
823
821
|
})
|
|
824
|
-
}, null, 12,
|
|
822
|
+
}, null, 12, Ml))), 256))
|
|
825
823
|
])) : i("", !0),
|
|
826
824
|
(s(!0), n(m, null, L(Y.value, (t, a) => (s(), n("path", {
|
|
827
825
|
class: "vue-ui-donut-arc-path",
|
|
@@ -833,7 +831,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
833
831
|
style: w({
|
|
834
832
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
835
833
|
})
|
|
836
|
-
}, null, 12,
|
|
834
|
+
}, null, 12, Nl))), 256))
|
|
837
835
|
])) : (s(), n("g", Yl, [
|
|
838
836
|
l.$slots.pattern ? (s(), n("circle", {
|
|
839
837
|
key: 0,
|
|
@@ -887,7 +885,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
887
885
|
}),
|
|
888
886
|
onClick: (v) => j(t, a)
|
|
889
887
|
}, null, 40, Gl))), 256))
|
|
890
|
-
])) : (s(), n("g",
|
|
888
|
+
])) : (s(), n("g", Wl, [
|
|
891
889
|
f("circle", {
|
|
892
890
|
cx: u.value.width / 2,
|
|
893
891
|
cy: u.value.height / 2,
|
|
@@ -903,7 +901,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
903
901
|
ie.value = !1, A.value = null;
|
|
904
902
|
}),
|
|
905
903
|
onClick: o[3] || (o[3] = (t) => j(F.value[0], l.i))
|
|
906
|
-
}, null, 40,
|
|
904
|
+
}, null, 40, Rl)
|
|
907
905
|
]))
|
|
908
906
|
], 64)) : i("", !0),
|
|
909
907
|
e.value.type === "classic" ? (s(), n(m, { key: 12 }, [
|
|
@@ -927,7 +925,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
927
925
|
}, P(r(D)(
|
|
928
926
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
929
927
|
S.value,
|
|
930
|
-
r(
|
|
928
|
+
r(N)({
|
|
931
929
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
932
930
|
v: S.value,
|
|
933
931
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
@@ -952,10 +950,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
952
950
|
style: w(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
953
951
|
}, P(E.value || T.value ? "--" : r(D)(
|
|
954
952
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
955
|
-
|
|
956
|
-
r(
|
|
953
|
+
Re.value,
|
|
954
|
+
r(N)({
|
|
957
955
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
958
|
-
v:
|
|
956
|
+
v: Re.value,
|
|
959
957
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
960
958
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
961
959
|
})
|
|
@@ -965,7 +963,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
965
963
|
filter: H(a),
|
|
966
964
|
class: be({ animated: e.value.useCssAnimation })
|
|
967
965
|
}, [
|
|
968
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g",
|
|
966
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", Jl, [
|
|
969
967
|
(s(), n("foreignObject", {
|
|
970
968
|
x: r(k)(t, !0).anchor === "end" ? r(k)(t).x - 120 : r(k)(t, !0).anchor === "middle" ? r(k)(t).x - 60 : r(k)(t).x,
|
|
971
969
|
y: r(ne)(t) - (He.value ? 20 : 0),
|
|
@@ -984,8 +982,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
984
982
|
percentage: ge(t, Y.value)
|
|
985
983
|
}), void 0, !0)
|
|
986
984
|
])
|
|
987
|
-
], 8,
|
|
988
|
-
])) : (s(), n("g",
|
|
985
|
+
], 8, Kl))
|
|
986
|
+
])) : (s(), n("g", Ql, [
|
|
989
987
|
e.value.type === "classic" ? (s(), n(m, { key: 0 }, [
|
|
990
988
|
X(t) && h.value.dataLabels.show ? (s(), n("circle", {
|
|
991
989
|
key: 0,
|
|
@@ -997,7 +995,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
997
995
|
r: 3,
|
|
998
996
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(A.value) || A.value === a ? "" : `url(#blur_${y.value})`,
|
|
999
997
|
onClick: (v) => j(t, a)
|
|
1000
|
-
}, null, 8,
|
|
998
|
+
}, null, 8, Zl)) : i("", !0)
|
|
1001
999
|
], 64)) : i("", !0),
|
|
1002
1000
|
e.value.type === "polar" ? (s(), n(m, { key: 1 }, [
|
|
1003
1001
|
X(t) && h.value.dataLabels.show ? (s(), n("circle", {
|
|
@@ -1028,7 +1026,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1028
1026
|
}, P(ge(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1029
1027
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1030
1028
|
t.value,
|
|
1031
|
-
r(
|
|
1029
|
+
r(N)({
|
|
1032
1030
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1033
1031
|
v: t.value,
|
|
1034
1032
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1050,7 +1048,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1050
1048
|
e.value.type === "polar" ? (s(), n(m, { key: 3 }, [
|
|
1051
1049
|
X(t) && h.value.dataLabels.show ? (s(), n("text", {
|
|
1052
1050
|
key: 0,
|
|
1053
|
-
"text-anchor":
|
|
1051
|
+
"text-anchor": Q(c.value[a].middlePoint),
|
|
1054
1052
|
x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1055
1053
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
1056
1054
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
@@ -1063,7 +1061,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1063
1061
|
}, P(ge(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1064
1062
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1065
1063
|
t.value,
|
|
1066
|
-
r(
|
|
1064
|
+
r(N)({
|
|
1067
1065
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1068
1066
|
v: t.value,
|
|
1069
1067
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1073,7 +1071,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1073
1071
|
)})` : ""), 13, aa)) : i("", !0),
|
|
1074
1072
|
X(t) && h.value.dataLabels.show ? (s(), n("text", {
|
|
1075
1073
|
key: 1,
|
|
1076
|
-
"text-anchor":
|
|
1074
|
+
"text-anchor": Q(c.value[a].middlePoint),
|
|
1077
1075
|
x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1078
1076
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1079
1077
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
@@ -1103,7 +1101,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1103
1101
|
], 8, ua)) : i("", !0),
|
|
1104
1102
|
X(t) && e.value.type === "polar" ? (s(), n("foreignObject", {
|
|
1105
1103
|
key: 1,
|
|
1106
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1104
|
+
x: e.value.style.chart.comments.offsetX + (Q(c.value[a].middlePoint) === "end" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : Q(c.value[a].middlePoint) === "middle" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
|
|
1107
1105
|
y: pt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1108
1106
|
width: e.value.style.chart.comments.width,
|
|
1109
1107
|
height: "200",
|
|
@@ -1115,7 +1113,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1115
1113
|
}, [
|
|
1116
1114
|
f("div", null, [
|
|
1117
1115
|
p(l.$slots, "plot-comment", {
|
|
1118
|
-
plot: { ...t, textAlign:
|
|
1116
|
+
plot: { ...t, textAlign: Q(c.value[a].middlePoint), flexAlign: Q(c.value[a].middlePoint), isFirstLoad: T.value }
|
|
1119
1117
|
}, void 0, !0)
|
|
1120
1118
|
])
|
|
1121
1119
|
], 12, na)) : i("", !0)
|
|
@@ -1124,7 +1122,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1124
1122
|
p(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
1125
1123
|
], 14, al)) : i("", !0),
|
|
1126
1124
|
l.$slots.watermark ? (s(), n("div", ra, [
|
|
1127
|
-
p(l.$slots, "watermark", ee(te({ isPrinting: r(
|
|
1125
|
+
p(l.$slots, "watermark", ee(te({ isPrinting: r(Ne) || r(Ye) })), void 0, !0)
|
|
1128
1126
|
])) : i("", !0),
|
|
1129
1127
|
le.value ? i("", !0) : (s(), q(Ht, {
|
|
1130
1128
|
key: 6,
|
|
@@ -1134,7 +1132,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1134
1132
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1135
1133
|
donut: {
|
|
1136
1134
|
color: "#CCCCCC",
|
|
1137
|
-
strokeWidth:
|
|
1135
|
+
strokeWidth: K.value * 0.8
|
|
1138
1136
|
}
|
|
1139
1137
|
}
|
|
1140
1138
|
}
|
|
@@ -1145,7 +1143,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1145
1143
|
}, [
|
|
1146
1144
|
e.value.style.chart.legend.show ? (s(), q(Et, {
|
|
1147
1145
|
key: `legend_${Ae.value}`,
|
|
1148
|
-
legendSet:
|
|
1146
|
+
legendSet: We.value,
|
|
1149
1147
|
config: gt.value,
|
|
1150
1148
|
onClickMarker: o[4] || (o[4] = ({ i: t }) => Ge(t))
|
|
1151
1149
|
}, et({
|
|
@@ -1157,7 +1155,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1157
1155
|
lt(P(t.name) + ": " + P(r(D)(
|
|
1158
1156
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1159
1157
|
t.value,
|
|
1160
|
-
r(
|
|
1158
|
+
r(N)({
|
|
1161
1159
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1162
1160
|
v: t.value,
|
|
1163
1161
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1171,7 +1169,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1171
1169
|
V.value.includes(a) ? (s(), n("span", ca, " ( " + P(wt(t.proportion * 100)) + " % ) ", 1)) : (s(), n("span", va, " (" + P(isNaN(t.value / S.value) ? "-" : r(D)(
|
|
1172
1170
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1173
1171
|
Ue.value(t),
|
|
1174
|
-
r(
|
|
1172
|
+
r(N)({
|
|
1175
1173
|
v: Ue.value(t),
|
|
1176
1174
|
s: "%",
|
|
1177
1175
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1184,7 +1182,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1184
1182
|
l.$slots.pattern ? {
|
|
1185
1183
|
name: "legend-pattern",
|
|
1186
1184
|
fn: C(({ legend: t, index: a }) => [
|
|
1187
|
-
we(
|
|
1185
|
+
we(Zt, {
|
|
1188
1186
|
shape: t.shape,
|
|
1189
1187
|
radius: 30,
|
|
1190
1188
|
stroke: "none",
|
|
@@ -1195,7 +1193,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1195
1193
|
key: "0"
|
|
1196
1194
|
} : void 0
|
|
1197
1195
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1198
|
-
p(l.$slots, "legend", { legend:
|
|
1196
|
+
p(l.$slots, "legend", { legend: We.value }, void 0, !0)
|
|
1199
1197
|
], 512),
|
|
1200
1198
|
l.$slots.source ? (s(), n("div", {
|
|
1201
1199
|
key: 7,
|
|
@@ -1219,7 +1217,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1219
1217
|
parent: ae.value,
|
|
1220
1218
|
content: he.value,
|
|
1221
1219
|
isCustom: oe.value,
|
|
1222
|
-
isFullscreen:
|
|
1220
|
+
isFullscreen: Z.value
|
|
1223
1221
|
}, {
|
|
1224
1222
|
"tooltip-before": C(() => [
|
|
1225
1223
|
p(l.$slots, "tooltip-before", ee(te({ ...pe.value })), void 0, !0)
|
|
@@ -1265,7 +1263,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1265
1263
|
lt(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(D)(
|
|
1266
1264
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1267
1265
|
t,
|
|
1268
|
-
r(
|
|
1266
|
+
r(N)({
|
|
1269
1267
|
v: t,
|
|
1270
1268
|
s: "%",
|
|
1271
1269
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1273,7 +1271,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1273
1271
|
) : r(D)(
|
|
1274
1272
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1275
1273
|
t,
|
|
1276
|
-
r(
|
|
1274
|
+
r(N)({
|
|
1277
1275
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1278
1276
|
v: t,
|
|
1279
1277
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1288,7 +1286,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1288
1286
|
}, 8, ["config"])) : i("", !0)
|
|
1289
1287
|
], 46, ll));
|
|
1290
1288
|
}
|
|
1291
|
-
}, La = /* @__PURE__ */ tl(ha, [["__scopeId", "data-v-
|
|
1289
|
+
}, La = /* @__PURE__ */ tl(ha, [["__scopeId", "data-v-69ca377d"]]);
|
|
1292
1290
|
export {
|
|
1293
1291
|
La as default
|
|
1294
1292
|
};
|