vue-data-ui 2.14.1 → 2.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-HJLeHmf6.js → Arrow-DNJvKMao.js} +1 -1
- package/dist/{BaseDraggableDialog-DxqOerJ8.js → BaseDraggableDialog-XPll8ONG.js} +2 -2
- package/dist/{BaseIcon-61ZYnf6Y.js → BaseIcon-D0Q4E4nY.js} +1 -1
- package/dist/{ColorPicker-DiOZ0dIA.js → ColorPicker-CQl1kba_.js} +2 -2
- package/dist/{DataTable-CvEYBbuI.js → DataTable-DzCoab4C.js} +2 -2
- package/dist/{Legend-ChpNJ_NF.js → Legend-DLJ9I-cg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-cf1P3kEq.js → NonSvgPenAndPaper-B0-XpttN.js} +3 -3
- package/dist/{PackageVersion-CczS07-5.js → PackageVersion-DrhYhyQR.js} +1 -1
- package/dist/{PenAndPaper-CqPrXvIl.js → PenAndPaper-BdnVqpO9.js} +3 -3
- package/dist/{Shape-Bdn11q8F.js → Shape-DdpwkHh8.js} +1 -1
- package/dist/{Slicer-D9JY91SV.js → Slicer-B6mk6VRe.js} +2 -2
- package/dist/{SparkTooltip-B6ZYyu7F.js → SparkTooltip-DvS7F_gk.js} +1 -1
- package/dist/{Title-CjfBFzRf.js → Title-xtSGHclp.js} +1 -1
- package/dist/{Tooltip-BZpxnTbb.js → Tooltip-D8swCIay.js} +1 -1
- package/dist/{UserOptions-DVYwPBK2.js → UserOptions-BbJkNcCM.js} +2 -2
- package/dist/{dom-to-png-Dya0UERi.js → dom-to-png-DrB0WHa5.js} +1 -1
- package/dist/{img-CuEOfq14.js → img-CtqhCOnQ.js} +1 -1
- package/dist/{index-BgrDsHvy.js → index-DBYSSUsg.js} +5 -1
- package/dist/{pdf-D10HhJgy.js → pdf-Cq3bf6D0.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-Cw4jG3FY.js → useNestedProp-Cu77c3W4.js} +1 -1
- package/dist/{usePrinter-DzxhXGdR.js → usePrinter-xF9W73YL.js} +2 -2
- package/dist/{vue-data-ui-CMV-krGM.js → vue-data-ui-BhsGEgCE.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CP4gDeA9.js → vue-ui-3d-bar-BiehKQpG.js} +5 -5
- package/dist/{vue-ui-accordion-m8te3vGO.js → vue-ui-accordion-CEZHj_of.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C8uZPTAY.js → vue-ui-age-pyramid-CV3X9UIL.js} +5 -5
- package/dist/{vue-ui-annotator-CiIkCJ6S.js → vue-ui-annotator-C0tRqId7.js} +2 -2
- package/dist/{vue-ui-bullet-D7GCFc-g.js → vue-ui-bullet-Dnzzp7eQ.js} +6 -6
- package/dist/{vue-ui-candlestick-B8jQjSpc.js → vue-ui-candlestick-HP8z-e20.js} +6 -6
- package/dist/{vue-ui-carousel-table-Cm4mh1bm.js → vue-ui-carousel-table-CIytKGfB.js} +4 -4
- package/dist/{vue-ui-chestnut-xJx3qXST.js → vue-ui-chestnut-jJ5DocEt.js} +4 -4
- package/dist/{vue-ui-chord-DeMiI8ma.js → vue-ui-chord-C2p48bdc.js} +7 -7
- package/dist/{vue-ui-circle-pack-CIYfy0qC.js → vue-ui-circle-pack-Cm42Kre2.js} +5 -5
- package/dist/{vue-ui-cursor-D9Z3w8f_.js → vue-ui-cursor-DYOAowBf.js} +2 -2
- package/dist/{vue-ui-dashboard-f6jQBHYW.js → vue-ui-dashboard-CqQ_erdb.js} +62 -62
- package/dist/{vue-ui-digits-BT16JoAt.js → vue-ui-digits-Ckblhu11.js} +2 -2
- package/dist/{vue-ui-donut-u7q9NrFK.js → vue-ui-donut-6ioyEN3H.js} +109 -109
- package/dist/{vue-ui-donut-evolution-BCMm8STJ.js → vue-ui-donut-evolution-DcpDJ9Nx.js} +7 -7
- package/dist/{vue-ui-dumbbell-CoopXtZe.js → vue-ui-dumbbell-Bs6C9JZw.js} +6 -6
- package/dist/{vue-ui-flow-BFgXTv_3.js → vue-ui-flow-2PtX-g_5.js} +6 -6
- package/dist/{vue-ui-funnel-DKgnIXPL.js → vue-ui-funnel-DnjXDXiD.js} +5 -5
- package/dist/{vue-ui-galaxy-Cq6YBbi_.js → vue-ui-galaxy-C15I7QgX.js} +4 -4
- package/dist/{vue-ui-gauge-D-vM39d0.js → vue-ui-gauge-C4ukJ9LH.js} +5 -5
- package/dist/{vue-ui-gizmo-D3RZqfAG.js → vue-ui-gizmo-CV03sWPz.js} +3 -3
- package/dist/{vue-ui-heatmap-DPL8z3cI.js → vue-ui-heatmap-C-9U8urH.js} +6 -6
- package/dist/{vue-ui-history-plot-CSXwsNpD.js → vue-ui-history-plot-CctIOnX8.js} +6 -6
- package/dist/{vue-ui-kpi-b8tHwa8_.js → vue-ui-kpi-D8DQ02cm.js} +3 -3
- package/dist/{vue-ui-mini-loader-CdY-ZkhQ.js → vue-ui-mini-loader-DpwNHrxl.js} +2 -2
- package/dist/{vue-ui-molecule-3h00FH5s.js → vue-ui-molecule-je8BUEgl.js} +4 -4
- package/dist/{vue-ui-mood-radar-D33gSEOC.js → vue-ui-mood-radar-DUwpDrKf.js} +6 -6
- package/dist/{vue-ui-nested-donuts-B0A0vXtk.js → vue-ui-nested-donuts-CcIiH5y3.js} +54 -54
- package/dist/{vue-ui-onion-a8_JDLyl.js → vue-ui-onion-B3ciM-zx.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-1LlN6F0r.js → vue-ui-parallel-coordinate-plot-C4jC8sCn.js} +7 -7
- package/dist/{vue-ui-quadrant-N0rhTZ5W.js → vue-ui-quadrant--xMPLV7W.js} +7 -7
- package/dist/{vue-ui-quick-chart-Wv8KVB-d.js → vue-ui-quick-chart-Bce5gdOB.js} +5 -5
- package/dist/{vue-ui-radar-CzniRpn-.js → vue-ui-radar-Bs4DRm4L.js} +6 -6
- package/dist/{vue-ui-rating-Cf_RDtUI.js → vue-ui-rating-BjP1BHbM.js} +2 -2
- package/dist/{vue-ui-relation-circle-Bo_-vb66.js → vue-ui-relation-circle-D9P-zdmr.js} +5 -5
- package/dist/{vue-ui-ridgeline-DjU5kQwH.js → vue-ui-ridgeline-DmNbKyms.js} +7 -7
- package/dist/{vue-ui-rings-CpOhLhDo.js → vue-ui-rings-BebupVaJ.js} +7 -7
- package/dist/{vue-ui-scatter-Diq2Iio2.js → vue-ui-scatter-cQ-Eu6ff.js} +7 -7
- package/dist/{vue-ui-skeleton-B8Wzi4Hi.js → vue-ui-skeleton-BJy7bURO.js} +3 -3
- package/dist/{vue-ui-smiley-O2q3w9fQ.js → vue-ui-smiley-D5QHdm68.js} +2 -2
- package/dist/{vue-ui-spark-trend-BTnR034D.js → vue-ui-spark-trend-CP5l6hCt.js} +3 -3
- package/dist/{vue-ui-sparkbar-B5SlfKQN.js → vue-ui-sparkbar-CW95uw6O.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_BVnGgV.js → vue-ui-sparkgauge-a4VbU8l_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CowIuwbW.js → vue-ui-sparkhistogram-Bu2URfSJ.js} +4 -4
- package/dist/{vue-ui-sparkline-Ogfd0FmW.js → vue-ui-sparkline-TItbUk-X.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B5SnjytL.js → vue-ui-sparkstackbar-B7hTZ5lP.js} +3 -3
- package/dist/{vue-ui-stackbar-Co6Ly31u.js → vue-ui-stackbar-Dsdwa6lC.js} +8 -8
- package/dist/{vue-ui-strip-plot-B-dKieOC.js → vue-ui-strip-plot-8t8ozRzt.js} +6 -6
- package/dist/{vue-ui-table-DlM8IVJC.js → vue-ui-table-CFn0ptr3.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C-G1Vr3i.js → vue-ui-table-heatmap-By7Epu_x.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dh3m5rHW.js → vue-ui-table-sparkline-CXqoNu29.js} +4 -4
- package/dist/{vue-ui-thermometer-COAiS2i7.js → vue-ui-thermometer-XTsctSeT.js} +5 -5
- package/dist/{vue-ui-timer-Bnxo2caA.js → vue-ui-timer-LsMK3baq.js} +5 -5
- package/dist/{vue-ui-tiremarks-D1gy7-Uu.js → vue-ui-tiremarks-Dmqxy_za.js} +5 -5
- package/dist/{vue-ui-treemap-_qyTaKiq.js → vue-ui-treemap-CBK79HgE.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CKbzxqWL.js → vue-ui-vertical-bar-s0W_ZvXa.js} +8 -8
- package/dist/{vue-ui-waffle-_IX54mhp.js → vue-ui-waffle-DYSvsk-v.js} +7 -7
- package/dist/{vue-ui-wheel-BT1vFZGN.js → vue-ui-wheel-ffWrYzpO.js} +5 -5
- package/dist/{vue-ui-word-cloud-B0ZKf-0k.js → vue-ui-word-cloud-DMtRVU6x.js} +5 -5
- package/dist/{vue-ui-world-CBDKYFwQ.js → vue-ui-world-DPT1WnyR.js} +5 -5
- package/dist/{vue-ui-xy-ChqEX06H.js → vue-ui-xy-BhuRQnpn.js} +16 -16
- package/dist/{vue-ui-xy-canvas-Dca_tr3r.js → vue-ui-xy-canvas-BaqwCoBL.js} +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, useSlots as Mt, computed as p, shallowRef as W, ref as _, onMounted as tt, onBeforeUnmount as Nt, 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 xe, unref 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, _ as Rt, f as N, X as Wt, s as ve, w as Et, j as Ut, M as L, i as D, k as ce, n as w, t as jt, a as Ht, q as qt, r as Jt, x as Kt, S as rt } from "./index-
|
|
1
|
+
import { defineAsyncComponent as K, useSlots as Mt, computed as p, shallowRef as W, ref as _, onMounted as tt, onBeforeUnmount as Nt, 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 xe, 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 N, X as Wt, s as ve, w as Et, j as Ut, M as L, i as D, k as ce, n as w, t as jt, a as Ht, q as qt, r as Jt, x as Kt, S as rt } from "./index-DBYSSUsg.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-Cu77c3W4.js";
|
|
5
|
+
import { u as el } from "./usePrinter-xF9W73YL.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-DLJ9I-cg.js";
|
|
9
|
+
import ol from "./Title-xtSGHclp.js";
|
|
10
|
+
import { _ as sl } from "./Shape-DdpwkHh8.js";
|
|
11
11
|
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
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"], xl = ["flood-color"], $l = ["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 = { key: 0 }, zl = ["d", "fill", "stroke", "stroke-width", "filter"], Ol = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Nl = ["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,
|
|
@@ -33,7 +33,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup($e, { expose: vt, emit: ct }) {
|
|
36
|
-
const dt = K(() => import("./vue-ui-accordion-
|
|
36
|
+
const dt = K(() => import("./vue-ui-accordion-CEZHj_of.js")), ht = K(() => import("./DataTable-DzCoab4C.js")), yt = K(() => import("./PackageVersion-DrhYhyQR.js")), ft = K(() => import("./PenAndPaper-BdnVqpO9.js")), pt = K(() => import("./vue-ui-skeleton-BJy7bURO.js")), gt = K(() => import("./Tooltip-D8swCIay.js")), mt = K(() => import("./UserOptions-BbJkNcCM.js")), { vue_ui_donut: bt } = Xt(), wt = Mt(), z = $e, ue = p({
|
|
37
37
|
get() {
|
|
38
38
|
return !!z.dataset && z.dataset.length;
|
|
39
39
|
},
|
|
@@ -73,7 +73,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
73
73
|
padding: Xe.value
|
|
74
74
|
});
|
|
75
75
|
requestAnimationFrame(() => {
|
|
76
|
-
|
|
76
|
+
u.value.width = s, u.value.height = t;
|
|
77
77
|
});
|
|
78
78
|
});
|
|
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);
|
|
@@ -130,7 +130,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
130
130
|
Ne(!1);
|
|
131
131
|
}
|
|
132
132
|
lt(() => z.config, (l) => {
|
|
133
|
-
e.value = Me(), 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;
|
|
133
|
+
e.value = Me(), 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;
|
|
@@ -151,11 +151,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
151
151
|
},
|
|
152
152
|
showTable: e.value.table.show,
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
|
-
}),
|
|
155
|
-
height:
|
|
156
|
-
width:
|
|
154
|
+
}), u = _({
|
|
155
|
+
height: e.value.style.chart.height,
|
|
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(
|
|
158
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, s = Math.min(u.value.width, u.value.height) * l, t = s > x.value ? x.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,
|
|
@@ -284,25 +284,25 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
284
284
|
paddingBottom: 12,
|
|
285
285
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
286
286
|
})), x = p(() => {
|
|
287
|
-
const l = Math.min(
|
|
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 },
|
|
289
|
+
}), A = p(() => Gt({ series: U.value }, u.value.width / 2, u.value.height / 2, x.value, x.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,
|
|
293
293
|
center: {
|
|
294
|
-
x:
|
|
295
|
-
y:
|
|
294
|
+
x: u.value.width / 2,
|
|
295
|
+
y: u.value.height / 2
|
|
296
296
|
},
|
|
297
|
-
maxRadius: Math.min(
|
|
297
|
+
maxRadius: Math.min(u.value.width, u.value.height) / 3,
|
|
298
298
|
hasGhost: T.value
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
function le(l) {
|
|
302
|
-
return l.x >
|
|
302
|
+
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
303
303
|
}
|
|
304
304
|
function Ft(l) {
|
|
305
|
-
return l.middlePoint.y >
|
|
305
|
+
return l.middlePoint.y > u.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
|
|
306
306
|
}
|
|
307
307
|
function X(l) {
|
|
308
308
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
@@ -470,12 +470,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
470
470
|
onMouseenter: xt,
|
|
471
471
|
onMouseleave: $t
|
|
472
472
|
}, [
|
|
473
|
-
e.value.userOptions.buttons.annotator &&
|
|
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
477
|
active: ye.value,
|
|
478
|
-
svgRef:
|
|
478
|
+
svgRef: n(me),
|
|
479
479
|
onClose: ke
|
|
480
480
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
481
481
|
g(l.$slots, "userConfig", {}, void 0, !0),
|
|
@@ -506,14 +506,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
506
506
|
}
|
|
507
507
|
}, null, 8, ["config"]))
|
|
508
508
|
], 512)) : i("", !0),
|
|
509
|
-
e.value.userOptions.show && ue.value && (
|
|
509
|
+
e.value.userOptions.show && ue.value && (n(Ye) || n(ge)) ? (o(), Q(n(mt), {
|
|
510
510
|
ref_key: "details",
|
|
511
511
|
ref: kt,
|
|
512
512
|
key: `user_option_${Oe.value}`,
|
|
513
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
514
514
|
color: e.value.style.chart.color,
|
|
515
|
-
isPrinting:
|
|
516
|
-
isImaging:
|
|
515
|
+
isPrinting: n(Ie),
|
|
516
|
+
isImaging: n(De),
|
|
517
517
|
uid: y.value,
|
|
518
518
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
519
519
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -531,15 +531,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
531
531
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
532
|
isAnnotation: ye.value,
|
|
533
533
|
onToggleFullscreen: Lt,
|
|
534
|
-
onGeneratePdf:
|
|
534
|
+
onGeneratePdf: n(Ve),
|
|
535
535
|
onGenerateCsv: Je,
|
|
536
|
-
onGenerateImage:
|
|
536
|
+
onGenerateImage: n(Be),
|
|
537
537
|
onToggleTable: Qe,
|
|
538
538
|
onToggleLabels: Ze,
|
|
539
539
|
onToggleTooltip: et,
|
|
540
540
|
onToggleAnnotator: ke,
|
|
541
541
|
style: b({
|
|
542
|
-
visibility:
|
|
542
|
+
visibility: n(Ye) ? n(ge) ? "visible" : "hidden" : "visible"
|
|
543
543
|
})
|
|
544
544
|
}, at({ _: 2 }, [
|
|
545
545
|
l.$slots.menuIcon ? {
|
|
@@ -610,18 +610,18 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
610
610
|
key: 4,
|
|
611
611
|
ref_key: "svgRef",
|
|
612
612
|
ref: me,
|
|
613
|
-
xmlns:
|
|
613
|
+
xmlns: n(Wt),
|
|
614
614
|
class: _e({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
615
|
-
viewBox: `0 0 ${
|
|
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
|
-
xe(
|
|
618
|
+
xe(n(yt)),
|
|
619
619
|
l.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
620
620
|
key: 0,
|
|
621
621
|
x: 0,
|
|
622
622
|
y: 0,
|
|
623
|
-
width:
|
|
624
|
-
height:
|
|
623
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
624
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
625
625
|
style: {
|
|
626
626
|
pointerEvents: "none"
|
|
627
627
|
}
|
|
@@ -635,21 +635,21 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
635
635
|
}, [
|
|
636
636
|
f("stop", {
|
|
637
637
|
offset: "0%",
|
|
638
|
-
"stop-color":
|
|
638
|
+
"stop-color": n(ve)(e.value.style.chart.backgroundColor, 0),
|
|
639
639
|
"stop-opacity": "0"
|
|
640
640
|
}, null, 8, dl),
|
|
641
641
|
f("stop", {
|
|
642
642
|
offset: `${(1 - te.value / x.value) * 100}%`,
|
|
643
|
-
"stop-color":
|
|
643
|
+
"stop-color": n(ve)("#FFFFFF", 0),
|
|
644
644
|
"stop-opacity": "0"
|
|
645
645
|
}, null, 8, hl),
|
|
646
646
|
f("stop", {
|
|
647
647
|
offset: `${(1 - te.value / x.value / 2) * 100}%`,
|
|
648
|
-
"stop-color":
|
|
648
|
+
"stop-color": n(ve)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
649
649
|
}, null, 8, yl),
|
|
650
650
|
f("stop", {
|
|
651
651
|
offset: "100%",
|
|
652
|
-
"stop-color":
|
|
652
|
+
"stop-color": n(ve)(e.value.style.chart.backgroundColor, 0),
|
|
653
653
|
"stop-opacity": "0"
|
|
654
654
|
}, null, 8, fl)
|
|
655
655
|
], 8, cl)) : i("", !0)
|
|
@@ -657,13 +657,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
657
657
|
e.value.type === "polar" ? (o(), r("defs", pl, [
|
|
658
658
|
(o(!0), r(m, null, S(c.value, (t, a) => (o(), r("radialGradient", {
|
|
659
659
|
id: `polar_gradient_${a}_${y.value}`,
|
|
660
|
-
cx: (isNaN(t.middlePoint.x /
|
|
661
|
-
cy: (isNaN(t.middlePoint.y /
|
|
660
|
+
cx: (isNaN(t.middlePoint.x / u.value.width * 100) ? 0 : t.middlePoint.x / u.value.width * 100) + "%",
|
|
661
|
+
cy: (isNaN(t.middlePoint.y / u.value.height * 100) ? 0 : t.middlePoint.y / u.value.height * 100) + "%",
|
|
662
662
|
r: "62%"
|
|
663
663
|
}, [
|
|
664
664
|
f("stop", {
|
|
665
665
|
offset: "0%",
|
|
666
|
-
"stop-color":
|
|
666
|
+
"stop-color": n(Et)(A.value[a].color, 0.05),
|
|
667
667
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
668
668
|
}, null, 8, ml),
|
|
669
669
|
f("stop", {
|
|
@@ -722,7 +722,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
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", {
|
|
724
724
|
key: 0,
|
|
725
|
-
d:
|
|
725
|
+
d: n(Ut)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
726
726
|
stroke: t.color,
|
|
727
727
|
"stroke-width": "1",
|
|
728
728
|
"stroke-linecap": "round",
|
|
@@ -734,7 +734,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
734
734
|
e.value.type === "polar" ? (o(!0), r(m, { key: 4 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
735
735
|
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
736
736
|
key: 0,
|
|
737
|
-
d: `M ${
|
|
737
|
+
d: `M ${n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x},${n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
|
|
738
738
|
stroke: t.color,
|
|
739
739
|
"stroke-width": "1",
|
|
740
740
|
"stroke-linecap": "round",
|
|
@@ -748,8 +748,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
748
748
|
]))), 256)) : i("", !0),
|
|
749
749
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), r("circle", {
|
|
750
750
|
key: 5,
|
|
751
|
-
cx:
|
|
752
|
-
cy:
|
|
751
|
+
cx: u.value.width / 2,
|
|
752
|
+
cy: u.value.height / 2,
|
|
753
753
|
r: x.value <= 0 ? 10 : x.value,
|
|
754
754
|
fill: e.value.style.chart.backgroundColor,
|
|
755
755
|
filter: `url(#shadow_${y.value})`
|
|
@@ -780,7 +780,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
780
780
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
781
781
|
class: "vue-ui-donut-arc-path",
|
|
782
782
|
d: t.arcSlice,
|
|
783
|
-
fill:
|
|
783
|
+
fill: n(ve)(t.color, 80),
|
|
784
784
|
stroke: e.value.style.chart.backgroundColor,
|
|
785
785
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
786
786
|
filter: J(a)
|
|
@@ -836,16 +836,16 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
836
836
|
])) : (o(), r("g", Bl, [
|
|
837
837
|
l.$slots.pattern ? (o(), r("circle", {
|
|
838
838
|
key: 0,
|
|
839
|
-
cx:
|
|
840
|
-
cy:
|
|
839
|
+
cx: u.value.width / 2,
|
|
840
|
+
cy: u.value.height / 2,
|
|
841
841
|
r: x.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
|
|
845
845
|
}, null, 8, Gl)) : i("", !0),
|
|
846
846
|
f("circle", {
|
|
847
|
-
cx:
|
|
848
|
-
cy:
|
|
847
|
+
cx: u.value.width / 2,
|
|
848
|
+
cy: u.value.height / 2,
|
|
849
849
|
r: x.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,
|
|
@@ -854,16 +854,16 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
854
854
|
]))
|
|
855
855
|
], 64)) : (o(), r("circle", {
|
|
856
856
|
key: 9,
|
|
857
|
-
cx:
|
|
858
|
-
cy:
|
|
857
|
+
cx: u.value.width / 2,
|
|
858
|
+
cy: u.value.height / 2,
|
|
859
859
|
r: x.value <= 0 ? 10 : x.value,
|
|
860
860
|
fill: "transparent",
|
|
861
861
|
stroke: e.value.style.chart.backgroundColor
|
|
862
862
|
}, null, 8, Wl)),
|
|
863
863
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), r("circle", {
|
|
864
864
|
key: 10,
|
|
865
|
-
cx:
|
|
866
|
-
cy:
|
|
865
|
+
cx: u.value.width / 2,
|
|
866
|
+
cy: u.value.height / 2,
|
|
867
867
|
r: (
|
|
868
868
|
/* This might require adjustments */
|
|
869
869
|
x.value <= 0 ? 10 : x.value
|
|
@@ -888,8 +888,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
888
888
|
}, null, 40, jl))), 256))
|
|
889
889
|
])) : (o(), r("g", Hl, [
|
|
890
890
|
f("circle", {
|
|
891
|
-
cx:
|
|
892
|
-
cy:
|
|
891
|
+
cx: u.value.width / 2,
|
|
892
|
+
cy: u.value.height / 2,
|
|
893
893
|
r: x.value,
|
|
894
894
|
fill: "transparent",
|
|
895
895
|
onMouseenter: s[1] || (s[1] = (t) => qe({
|
|
@@ -909,8 +909,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
909
909
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
910
910
|
key: 0,
|
|
911
911
|
"text-anchor": "middle",
|
|
912
|
-
x:
|
|
913
|
-
y:
|
|
912
|
+
x: u.value.width / 2,
|
|
913
|
+
y: u.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
914
914
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
915
915
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
916
916
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
@@ -918,15 +918,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
918
918
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
919
919
|
key: 1,
|
|
920
920
|
"text-anchor": "middle",
|
|
921
|
-
x:
|
|
922
|
-
y:
|
|
921
|
+
x: u.value.width / 2,
|
|
922
|
+
y: u.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
923
923
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
924
924
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
925
925
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
926
|
-
}, P(
|
|
926
|
+
}, P(n(D)(
|
|
927
927
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
928
928
|
F.value,
|
|
929
|
-
|
|
929
|
+
n(N)({
|
|
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
|
|
@@ -935,8 +935,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
935
935
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
936
936
|
key: 2,
|
|
937
937
|
"text-anchor": "middle",
|
|
938
|
-
x:
|
|
939
|
-
y:
|
|
938
|
+
x: u.value.width / 2,
|
|
939
|
+
y: u.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
940
940
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
941
941
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
942
942
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
@@ -944,15 +944,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
944
944
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
945
945
|
key: 3,
|
|
946
946
|
"text-anchor": "middle",
|
|
947
|
-
x:
|
|
948
|
-
y:
|
|
947
|
+
x: u.value.width / 2,
|
|
948
|
+
y: u.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
949
949
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
950
950
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
951
951
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
952
|
-
}, P(q.value || T.value ? "--" :
|
|
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
|
-
|
|
955
|
+
n(N)({
|
|
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,
|
|
@@ -966,8 +966,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
966
966
|
}, [
|
|
967
967
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g", ta, [
|
|
968
968
|
(o(), r("foreignObject", {
|
|
969
|
-
x:
|
|
970
|
-
y:
|
|
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(ce)(t) - (Ke.value ? 20 : 0),
|
|
971
971
|
width: "120",
|
|
972
972
|
height: "60",
|
|
973
973
|
style: { overflow: "visible" }
|
|
@@ -978,8 +978,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
978
978
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a,
|
|
979
979
|
isSafari: Ke.value,
|
|
980
980
|
isVisible: X(t) && h.value.dataLabels.show,
|
|
981
|
-
textAlign:
|
|
982
|
-
flexAlign:
|
|
981
|
+
textAlign: n(w)(t, !0, 16, !0).anchor,
|
|
982
|
+
flexAlign: n(w)(t, !0, 16).anchor,
|
|
983
983
|
percentage: be(t, Y.value)
|
|
984
984
|
}), void 0, !0)
|
|
985
985
|
])
|
|
@@ -988,8 +988,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
988
988
|
e.value.type === "classic" ? (o(), r(m, { key: 0 }, [
|
|
989
989
|
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
990
990
|
key: 0,
|
|
991
|
-
cx:
|
|
992
|
-
cy:
|
|
991
|
+
cx: n(w)(t).x,
|
|
992
|
+
cy: n(ce)(t) - 3.5,
|
|
993
993
|
fill: t.color,
|
|
994
994
|
stroke: e.value.style.chart.backgroundColor,
|
|
995
995
|
"stroke-width": 1,
|
|
@@ -1001,8 +1001,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1001
1001
|
e.value.type === "polar" ? (o(), r(m, { key: 1 }, [
|
|
1002
1002
|
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
1003
1003
|
key: 0,
|
|
1004
|
-
cx:
|
|
1005
|
-
cy:
|
|
1004
|
+
cx: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1005
|
+
cy: n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
1006
1006
|
fill: t.color,
|
|
1007
1007
|
stroke: e.value.style.chart.backgroundColor,
|
|
1008
1008
|
"stroke-width": 1,
|
|
@@ -1017,17 +1017,17 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1017
1017
|
e.value.type === "classic" ? (o(), r(m, { key: 2 }, [
|
|
1018
1018
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1019
1019
|
key: 0,
|
|
1020
|
-
"text-anchor":
|
|
1021
|
-
x:
|
|
1022
|
-
y:
|
|
1020
|
+
"text-anchor": n(w)(t, !0, 12).anchor,
|
|
1021
|
+
x: n(w)(t, !0, 12).x,
|
|
1022
|
+
y: n(ce)(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" : ""}`),
|
|
1026
1026
|
onClick: (v) => H(t, a)
|
|
1027
|
-
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${
|
|
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
|
-
|
|
1030
|
+
n(N)({
|
|
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,
|
|
@@ -1037,9 +1037,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1037
1037
|
)})` : ""), 13, ua)) : i("", !0),
|
|
1038
1038
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1039
1039
|
key: 1,
|
|
1040
|
-
"text-anchor":
|
|
1041
|
-
x:
|
|
1042
|
-
y:
|
|
1040
|
+
"text-anchor": n(w)(t).anchor,
|
|
1041
|
+
x: n(w)(t, !0, 12).x,
|
|
1042
|
+
y: n(ce)(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" : ""}`),
|
|
@@ -1050,8 +1050,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1050
1050
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1053
|
-
x:
|
|
1054
|
-
y:
|
|
1053
|
+
x: n(L)({ 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,
|
|
1054
|
+
y: n(L)({ 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,
|
|
1055
1055
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1056
1056
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1057
1057
|
style: b({
|
|
@@ -1059,10 +1059,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1059
1059
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1060
1060
|
}),
|
|
1061
1061
|
onClick: (v) => H(t, a)
|
|
1062
|
-
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${
|
|
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
|
-
|
|
1065
|
+
n(N)({
|
|
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,
|
|
@@ -1073,8 +1073,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1073
1073
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1076
|
-
x:
|
|
1077
|
-
y:
|
|
1076
|
+
x: n(L)({ 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,
|
|
1077
|
+
y: n(L)({ 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,
|
|
1078
1078
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1079
1079
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1080
1080
|
style: b({
|
|
@@ -1088,21 +1088,21 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1088
1088
|
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), r("g", va, [
|
|
1089
1089
|
X(t) && e.value.type === "classic" ? (o(), r("foreignObject", {
|
|
1090
1090
|
key: 0,
|
|
1091
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1092
|
-
y:
|
|
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(ce)(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" }
|
|
1096
1096
|
}, [
|
|
1097
1097
|
f("div", null, [
|
|
1098
1098
|
g(l.$slots, "plot-comment", {
|
|
1099
|
-
plot: { ...t, textAlign:
|
|
1099
|
+
plot: { ...t, textAlign: n(w)(t, !0, 16, !0).anchor, flexAlign: n(w)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1100
1100
|
}, void 0, !0)
|
|
1101
1101
|
])
|
|
1102
1102
|
], 8, ca)) : i("", !0),
|
|
1103
1103
|
X(t) && e.value.type === "polar" ? (o(), r("foreignObject", {
|
|
1104
1104
|
key: 1,
|
|
1105
|
-
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ?
|
|
1105
|
+
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ? n(L)({ 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 : le(c.value[a].middlePoint) === "middle" ? n(L)({ 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 : n(L)({ 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),
|
|
1106
1106
|
y: Ft(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1107
1107
|
width: e.value.style.chart.comments.width,
|
|
1108
1108
|
height: "200",
|
|
@@ -1120,12 +1120,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1120
1120
|
], 12, da)) : i("", !0)
|
|
1121
1121
|
])) : i("", !0)
|
|
1122
1122
|
], 10, ea))), 256)),
|
|
1123
|
-
g(l.$slots, "svg", { svg:
|
|
1123
|
+
g(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
1124
1124
|
], 14, rl)) : i("", !0),
|
|
1125
1125
|
l.$slots.watermark ? (o(), r("div", ha, [
|
|
1126
|
-
g(l.$slots, "watermark", oe(se({ isPrinting:
|
|
1126
|
+
g(l.$slots, "watermark", oe(se({ isPrinting: n(Ie) || n(De) })), void 0, !0)
|
|
1127
1127
|
])) : i("", !0),
|
|
1128
|
-
ue.value ? i("", !0) : (o(), Q(
|
|
1128
|
+
ue.value ? i("", !0) : (o(), Q(n(pt), {
|
|
1129
1129
|
key: 6,
|
|
1130
1130
|
config: {
|
|
1131
1131
|
type: "donut",
|
|
@@ -1153,10 +1153,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1153
1153
|
style: b(`opacity:${V.value.includes(a) ? 0.5 : 1}`),
|
|
1154
1154
|
onClick: (v) => t.segregate()
|
|
1155
1155
|
}, [
|
|
1156
|
-
st(P(t.name) + ": " + P(
|
|
1156
|
+
st(P(t.name) + ": " + P(n(D)(
|
|
1157
1157
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1158
1158
|
t.value,
|
|
1159
|
-
|
|
1159
|
+
n(N)({
|
|
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,
|
|
@@ -1167,10 +1167,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1167
1167
|
index: a
|
|
1168
1168
|
}
|
|
1169
1169
|
)) + " ", 1),
|
|
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) ? "-" :
|
|
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
|
-
|
|
1173
|
+
n(N)({
|
|
1174
1174
|
v: He.value(t),
|
|
1175
1175
|
s: "%",
|
|
1176
1176
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1204,7 +1204,7 @@ 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
|
-
xe(
|
|
1207
|
+
xe(n(gt), {
|
|
1208
1208
|
show: h.value.showTooltip && de.value,
|
|
1209
1209
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1210
1210
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1228,7 +1228,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1228
1228
|
]),
|
|
1229
1229
|
_: 3
|
|
1230
1230
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1231
|
-
ue.value ? (o(), Q(
|
|
1231
|
+
ue.value ? (o(), Q(n(dt), {
|
|
1232
1232
|
key: 8,
|
|
1233
1233
|
hideDetails: "",
|
|
1234
1234
|
config: {
|
|
@@ -1245,7 +1245,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}, {
|
|
1247
1247
|
content: C(() => [
|
|
1248
|
-
(o(), Q(
|
|
1248
|
+
(o(), Q(n(ht), {
|
|
1249
1249
|
key: `table_${Se.value}`,
|
|
1250
1250
|
colNames: he.value.colNames,
|
|
1251
1251
|
head: he.value.head,
|
|
@@ -1261,18 +1261,18 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1261
1261
|
}, null, 8, ga)
|
|
1262
1262
|
]),
|
|
1263
1263
|
td: C(({ td: t }) => [
|
|
1264
|
-
st(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t :
|
|
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
|
-
|
|
1267
|
+
n(N)({
|
|
1268
1268
|
v: t,
|
|
1269
1269
|
s: "%",
|
|
1270
1270
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1271
1271
|
})
|
|
1272
|
-
) :
|
|
1272
|
+
) : n(D)(
|
|
1273
1273
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1274
1274
|
t,
|
|
1275
|
-
|
|
1275
|
+
n(N)({
|
|
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-ecf724bd"]]);
|
|
1291
1291
|
export {
|
|
1292
1292
|
Sa as default
|
|
1293
1293
|
};
|