vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as it } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { defineAsyncComponent as K, useSlots as Mt, computed as f, 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 p, createElementVNode as y, createVNode as xe, unref as u, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as se, Fragment as g, 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-BHEd2dgu.js";
|
|
3
|
+
import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as it } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as el } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import al from "./Legend-DtTYopxf.js";
|
|
9
|
+
import ol from "./Title-Bc66VstS.js";
|
|
10
|
+
import sl from "./Shape-B6kIkp2s.js";
|
|
10
11
|
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
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"],
|
|
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 = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
15
|
}, ya = ["onClick"], fa = {
|
|
@@ -32,25 +33,25 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
35
|
setup($e, { expose: vt, emit: ct }) {
|
|
35
|
-
const dt =
|
|
36
|
+
const dt = K(() => import("./vue-ui-accordion-DntThSTF.js")), ht = K(() => import("./DataTable-Y5HbiUZU.js")), yt = K(() => import("./PackageVersion-DaWGaZxE.js")), ft = K(() => import("./PenAndPaper-C-CpE0NC.js")), pt = K(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), gt = K(() => import("./Tooltip-B07vY6jm.js")), mt = K(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_donut: bt } = Xt(), wt = Mt(), z = $e, ue = f({
|
|
36
37
|
get() {
|
|
37
38
|
return !!z.dataset && z.dataset.length;
|
|
38
39
|
},
|
|
39
40
|
set(l) {
|
|
40
41
|
return l;
|
|
41
42
|
}
|
|
42
|
-
}), ne = W(null), Ce = W(null), Te = W(null), E = W(null), ee = W(null), Pe = W(null), Ae = W(null),
|
|
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);
|
|
43
44
|
tt(() => {
|
|
44
45
|
ze();
|
|
45
|
-
}),
|
|
46
|
+
}), Nt(() => {
|
|
46
47
|
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
|
|
47
48
|
});
|
|
48
49
|
function ze() {
|
|
49
|
-
if (
|
|
50
|
+
if (It(z.dataset) ? ut({
|
|
50
51
|
componentName: "VueUiDonut",
|
|
51
52
|
type: "dataset"
|
|
52
53
|
}) : z.dataset.forEach((l, s) => {
|
|
53
|
-
|
|
54
|
+
Dt({
|
|
54
55
|
datasetObject: l,
|
|
55
56
|
requiredAttributes: ["name", "values"]
|
|
56
57
|
}).forEach((t) => {
|
|
@@ -62,8 +63,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
62
63
|
});
|
|
63
64
|
});
|
|
64
65
|
}), e.value.responsive) {
|
|
65
|
-
const l =
|
|
66
|
-
const { width: s, height: t } =
|
|
66
|
+
const l = Qt(() => {
|
|
67
|
+
const { width: s, height: t } = Zt({
|
|
67
68
|
chart: ne.value,
|
|
68
69
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
69
70
|
legend: e.value.style.chart.legend.show ? Te.value : null,
|
|
@@ -78,25 +79,25 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
78
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);
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
const h = _(
|
|
82
|
+
const h = _(Vt()), kt = _(null), de = _(!1), pe = _(""), O = _(null), Oe = _(0);
|
|
82
83
|
function Me() {
|
|
83
84
|
const l = it({
|
|
84
85
|
userConfig: z.config,
|
|
85
|
-
defaultConfig:
|
|
86
|
+
defaultConfig: bt
|
|
86
87
|
});
|
|
87
88
|
return l.theme ? {
|
|
88
89
|
...it({
|
|
89
|
-
userConfig:
|
|
90
|
+
userConfig: Ht.vue_ui_donut[l.theme] || z.config,
|
|
90
91
|
defaultConfig: l
|
|
91
92
|
}),
|
|
92
|
-
customPalette:
|
|
93
|
+
customPalette: jt[l.theme] || Z
|
|
93
94
|
} : l;
|
|
94
95
|
}
|
|
95
96
|
const e = f({
|
|
96
97
|
get: () => Me(),
|
|
97
98
|
set: (l) => l
|
|
98
99
|
}), T = _(!0), B = W([]);
|
|
99
|
-
function
|
|
100
|
+
function _t(l, s = 1e3, t = 50) {
|
|
100
101
|
return new Promise((a) => {
|
|
101
102
|
const v = l.length;
|
|
102
103
|
B.value = Array(v).fill(0);
|
|
@@ -105,8 +106,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
105
106
|
setTimeout(() => {
|
|
106
107
|
const R = performance.now();
|
|
107
108
|
function I(ie) {
|
|
108
|
-
const fe = Math.min((ie - R) / s, 1),
|
|
109
|
-
B.value[$] = k *
|
|
109
|
+
const fe = Math.min((ie - R) / s, 1), Ot = rt(fe);
|
|
110
|
+
B.value[$] = k * Ot, B.value = [...B.value], fe < 1 ? requestAnimationFrame(I) : (B.value[$] = k, B.value = [...B.value], m += 1, m === v && a());
|
|
110
111
|
}
|
|
111
112
|
requestAnimationFrame(I);
|
|
112
113
|
}, $ * t);
|
|
@@ -115,21 +116,21 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
115
116
|
}
|
|
116
117
|
tt(async () => {
|
|
117
118
|
const l = z.dataset.map((s) => s.values.reduce((t, a) => t + a, 0));
|
|
118
|
-
e.value.startAnimation.show && await
|
|
119
|
+
e.value.startAnimation.show && await _t(
|
|
119
120
|
l,
|
|
120
121
|
e.value.startAnimation.durationMs,
|
|
121
122
|
e.value.startAnimation.staggerMs
|
|
122
123
|
), T.value = !1;
|
|
123
124
|
});
|
|
124
|
-
const { userOptionsVisible: ge, setUserOptionsVisibility: Ne, keepUserOptionState: Ye } =
|
|
125
|
-
function
|
|
125
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: Ne, keepUserOptionState: Ye } = tl({ config: e.value }), { svgRef: me } = ll({ config: e.value.style.chart.title });
|
|
126
|
+
function xt() {
|
|
126
127
|
Ne(!0);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function $t() {
|
|
129
130
|
Ne(!1);
|
|
130
131
|
}
|
|
131
132
|
lt(() => z.config, (l) => {
|
|
132
|
-
e.value = Me(), ge.value = !e.value.userOptions.showOnChartHover, ze(),
|
|
133
|
+
e.value = Me(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.value += 1, Le.value += 1, d.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
133
134
|
}, { deep: !0 });
|
|
134
135
|
const Xe = f(() => {
|
|
135
136
|
const { top: l, right: s, bottom: t, left: a } = e.value.style.chart.padding;
|
|
@@ -140,11 +141,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
140
141
|
bottom: t,
|
|
141
142
|
left: a
|
|
142
143
|
};
|
|
143
|
-
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } =
|
|
144
|
+
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } = el({
|
|
144
145
|
elementId: `donut__${h.value}`,
|
|
145
146
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
146
147
|
options: e.value.userOptions.print
|
|
147
|
-
}),
|
|
148
|
+
}), Ct = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = f(() => Bt(e.value.customPalette)), d = _({
|
|
148
149
|
dataLabels: {
|
|
149
150
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
150
151
|
},
|
|
@@ -168,14 +169,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
168
169
|
pattern: `pattern_${h.value}_${s}`
|
|
169
170
|
}))), M = W(G.value);
|
|
170
171
|
lt(() => G.value, (l) => M.value = l);
|
|
171
|
-
function
|
|
172
|
+
function Tt() {
|
|
172
173
|
return G.value.map((l) => ({
|
|
173
174
|
name: l.name,
|
|
174
175
|
color: l.color,
|
|
175
176
|
value: l.value
|
|
176
177
|
}));
|
|
177
178
|
}
|
|
178
|
-
const V = _([]),
|
|
179
|
+
const V = _([]), q = _(!1);
|
|
179
180
|
function We({ from: l, to: s, duration: t, onUpdate: a, onDone: v, easing: m = rt }) {
|
|
180
181
|
const k = performance.now();
|
|
181
182
|
function $(R) {
|
|
@@ -193,7 +194,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
193
194
|
($, R) => l === R ? { ...$, value: v } : $
|
|
194
195
|
);
|
|
195
196
|
}, k = function() {
|
|
196
|
-
|
|
197
|
+
q.value = !0, We({
|
|
197
198
|
from: a,
|
|
198
199
|
to: v,
|
|
199
200
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -203,7 +204,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
203
204
|
);
|
|
204
205
|
},
|
|
205
206
|
onDone: () => {
|
|
206
|
-
m(),
|
|
207
|
+
m(), q.value = !1;
|
|
207
208
|
}
|
|
208
209
|
});
|
|
209
210
|
};
|
|
@@ -216,7 +217,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
216
217
|
(k, $) => l === $ ? { ...k, value: 0 } : k
|
|
217
218
|
);
|
|
218
219
|
}, m = function() {
|
|
219
|
-
|
|
220
|
+
q.value = !0, We({
|
|
220
221
|
from: a,
|
|
221
222
|
to: 0,
|
|
222
223
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -226,7 +227,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
226
227
|
);
|
|
227
228
|
},
|
|
228
229
|
onDone: () => {
|
|
229
|
-
v(),
|
|
230
|
+
v(), q.value = !1;
|
|
230
231
|
}
|
|
231
232
|
});
|
|
232
233
|
};
|
|
@@ -238,14 +239,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
238
239
|
value: v.value
|
|
239
240
|
})));
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
+
const Pt = f(() => z.dataset.reduce((l, s) => l + s.values.reduce((t, a) => t + a, 0), 0)), U = f(() => {
|
|
242
243
|
if (T.value) {
|
|
243
244
|
const l = B.value.map((t, a) => ({
|
|
244
245
|
...G.value[a],
|
|
245
246
|
value: t,
|
|
246
247
|
color: G.value[a].color,
|
|
247
248
|
ghost: !1
|
|
248
|
-
})), s =
|
|
249
|
+
})), s = Pt.value - B.value.reduce((t, a) => t + a, 0);
|
|
249
250
|
return s > 0 && l.push({
|
|
250
251
|
name: "__ghost__",
|
|
251
252
|
value: s,
|
|
@@ -273,9 +274,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
273
274
|
...l,
|
|
274
275
|
proportion: l.value / z.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
275
276
|
opacity: V.value.includes(s) ? 0.5 : 1,
|
|
276
|
-
segregate: () => !
|
|
277
|
+
segregate: () => !q.value && Ee(s),
|
|
277
278
|
isSegregated: V.value.includes(s)
|
|
278
|
-
}))),
|
|
279
|
+
}))), At = f(() => ({
|
|
279
280
|
cy: "donut-div-legend",
|
|
280
281
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
281
282
|
color: e.value.style.chart.legend.color,
|
|
@@ -285,9 +286,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
285
286
|
})), x = f(() => {
|
|
286
287
|
const l = Math.min(n.value.width / 3, n.value.height / 3);
|
|
287
288
|
return l < 55 ? 55 : l;
|
|
288
|
-
}), A = f(() =>
|
|
289
|
+
}), A = f(() => Gt({ series: U.value }, n.value.width / 2, n.value.height / 2, x.value, x.value, 1.99999, 2, 1, 360, 105.25, te.value)), Y = f(() => A.value.filter((l) => !l.ghost)), c = f(() => {
|
|
289
290
|
const l = Math.max(...U.value.map((t) => t.value)), s = U.value.map((t) => t.value / l);
|
|
290
|
-
return
|
|
291
|
+
return Rt({
|
|
291
292
|
series: s,
|
|
292
293
|
center: {
|
|
293
294
|
x: n.value.width / 2,
|
|
@@ -307,7 +308,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
307
308
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
308
309
|
}
|
|
309
310
|
function be(l, s) {
|
|
310
|
-
const t = l.value /
|
|
311
|
+
const t = l.value / St(s);
|
|
311
312
|
return isNaN(t) ? 0 : D(
|
|
312
313
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
313
314
|
t * 100,
|
|
@@ -319,15 +320,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
319
320
|
{ datapoint: l }
|
|
320
321
|
);
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
+
function St(l) {
|
|
323
324
|
return [...l].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
324
325
|
}
|
|
325
|
-
const
|
|
326
|
+
const F = f(() => U.value.map((l) => l.value).reduce((l, s) => l + s, 0)), je = f(() => F.value / U.value.length), He = f(() => (l) => q.value ? l.proportion * 100 : l.value / F.value * 100), we = _(null), re = _(!1);
|
|
326
327
|
function qe({ datapoint: l, relativeIndex: s, seriesIndex: t, show: a = !1 }) {
|
|
327
328
|
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, de.value = a, O.value = s;
|
|
328
329
|
let v = "";
|
|
329
330
|
const m = e.value.style.chart.tooltip.customFormat;
|
|
330
|
-
if (re.value = !1,
|
|
331
|
+
if (re.value = !1, Kt(m))
|
|
331
332
|
try {
|
|
332
333
|
const k = m({
|
|
333
334
|
seriesIndex: t,
|
|
@@ -340,7 +341,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
340
341
|
console.warn("Custom format cannot be applied."), re.value = !1;
|
|
341
342
|
}
|
|
342
343
|
if (!re.value) {
|
|
343
|
-
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}"/>${
|
|
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_${h.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
|
|
344
345
|
e.value.style.chart.layout.labels.value.formatter,
|
|
345
346
|
l.value,
|
|
346
347
|
N({
|
|
@@ -374,7 +375,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
374
375
|
e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), pe.value = `<div>${v}</div>`;
|
|
375
376
|
}
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function J(l) {
|
|
378
379
|
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${h.value})` : "";
|
|
379
380
|
}
|
|
380
381
|
const j = f(() => {
|
|
@@ -385,17 +386,17 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
385
386
|
return { head: l, body: s };
|
|
386
387
|
});
|
|
387
388
|
function Je() {
|
|
388
|
-
|
|
389
|
+
Yt(() => {
|
|
389
390
|
const l = j.value.head.map((a, v) => [[
|
|
390
391
|
a.name
|
|
391
|
-
], [j.value.body[v]], [isNaN(j.value.body[v] /
|
|
392
|
-
|
|
392
|
+
], [j.value.body[v]], [isNaN(j.value.body[v] / F.value) ? "-" : j.value.body[v] / F.value * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = qt(s);
|
|
393
|
+
Jt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
393
394
|
});
|
|
394
395
|
}
|
|
395
396
|
const he = f(() => {
|
|
396
397
|
const l = [
|
|
397
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>',
|
|
398
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
399
|
+
N({ 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 }),
|
|
399
400
|
"100%"
|
|
400
401
|
], s = j.value.head.map((v, m) => [
|
|
401
402
|
{
|
|
@@ -403,7 +404,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
403
404
|
name: v.name
|
|
404
405
|
},
|
|
405
406
|
j.value.body[m],
|
|
406
|
-
isNaN(j.value.body[m] /
|
|
407
|
+
isNaN(j.value.body[m] / F.value) ? "-" : (j.value.body[m] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
407
408
|
]), t = {
|
|
408
409
|
th: {
|
|
409
410
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -428,11 +429,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
428
429
|
config: t
|
|
429
430
|
};
|
|
430
431
|
}), ae = _(!1);
|
|
431
|
-
function
|
|
432
|
+
function Lt(l) {
|
|
432
433
|
ae.value = l, Oe.value += 1;
|
|
433
434
|
}
|
|
434
435
|
const Ke = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
435
|
-
function
|
|
436
|
+
function zt(l) {
|
|
436
437
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((s) => "-").join("");
|
|
437
438
|
}
|
|
438
439
|
function H(l, s) {
|
|
@@ -452,7 +453,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
452
453
|
ye.value = !ye.value;
|
|
453
454
|
}
|
|
454
455
|
return vt({
|
|
455
|
-
getData:
|
|
456
|
+
getData: Tt,
|
|
456
457
|
generatePdf: Ve,
|
|
457
458
|
generateCsv: Je,
|
|
458
459
|
generateImage: Be,
|
|
@@ -466,8 +467,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
466
467
|
class: _e(`vue-ui-donut ${ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
467
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}`),
|
|
468
469
|
id: `donut__${h.value}`,
|
|
469
|
-
onMouseenter:
|
|
470
|
-
onMouseleave:
|
|
470
|
+
onMouseenter: xt,
|
|
471
|
+
onMouseleave: $t
|
|
471
472
|
}, [
|
|
472
473
|
e.value.userOptions.buttons.annotator && u(me) ? (o(), Q(u(ft), {
|
|
473
474
|
key: 0,
|
|
@@ -478,7 +479,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
478
479
|
onClose: ke
|
|
479
480
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
480
481
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
481
|
-
|
|
482
|
+
Ct.value ? (o(), r("div", {
|
|
482
483
|
key: 1,
|
|
483
484
|
ref_key: "noTitle",
|
|
484
485
|
ref: Ae,
|
|
@@ -491,8 +492,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
491
492
|
ref: Ce,
|
|
492
493
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
493
494
|
}, [
|
|
494
|
-
(o(), Q(
|
|
495
|
-
key: `title_${
|
|
495
|
+
(o(), Q(ol, {
|
|
496
|
+
key: `title_${Fe.value}`,
|
|
496
497
|
config: {
|
|
497
498
|
title: {
|
|
498
499
|
cy: "donut-div-title",
|
|
@@ -505,9 +506,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
505
506
|
}
|
|
506
507
|
}, null, 8, ["config"]))
|
|
507
508
|
], 512)) : i("", !0),
|
|
508
|
-
e.value.userOptions.show && ue.value && (u(Ye) || u(ge)) ? (o(), Q(u(
|
|
509
|
+
e.value.userOptions.show && ue.value && (u(Ye) || u(ge)) ? (o(), Q(u(mt), {
|
|
509
510
|
ref_key: "details",
|
|
510
|
-
ref:
|
|
511
|
+
ref: kt,
|
|
511
512
|
key: `user_option_${Oe.value}`,
|
|
512
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
513
514
|
color: e.value.style.chart.color,
|
|
@@ -528,7 +529,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
528
529
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
529
530
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
530
531
|
isAnnotation: ye.value,
|
|
531
|
-
onToggleFullscreen:
|
|
532
|
+
onToggleFullscreen: Lt,
|
|
532
533
|
onGeneratePdf: u(Ve),
|
|
533
534
|
onGenerateCsv: Je,
|
|
534
535
|
onGenerateImage: u(Be),
|
|
@@ -608,7 +609,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
608
609
|
key: 4,
|
|
609
610
|
ref_key: "svgRef",
|
|
610
611
|
ref: me,
|
|
611
|
-
xmlns: u(
|
|
612
|
+
xmlns: u(Wt),
|
|
612
613
|
class: _e({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
613
614
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
614
615
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Xe.value.css}`)
|
|
@@ -653,7 +654,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
653
654
|
], 8, cl)) : i("", !0)
|
|
654
655
|
])) : i("", !0),
|
|
655
656
|
e.value.type === "polar" ? (o(), r("defs", pl, [
|
|
656
|
-
(o(!0), r(g, null,
|
|
657
|
+
(o(!0), r(g, null, S(c.value, (t, a) => (o(), r("radialGradient", {
|
|
657
658
|
id: `polar_gradient_${a}_${h.value}`,
|
|
658
659
|
cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
|
|
659
660
|
cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
|
|
@@ -661,7 +662,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
661
662
|
}, [
|
|
662
663
|
y("stop", {
|
|
663
664
|
offset: "0%",
|
|
664
|
-
"stop-color": u(
|
|
665
|
+
"stop-color": u(Et)(A.value[a].color, 0.05),
|
|
665
666
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
666
667
|
}, null, 8, ml),
|
|
667
668
|
y("stop", {
|
|
@@ -717,19 +718,19 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
717
718
|
}, null, 8, Cl)
|
|
718
719
|
], 8, $l)
|
|
719
720
|
]),
|
|
720
|
-
e.value.type === "classic" ? (o(!0), r(g, { key: 3 },
|
|
721
|
+
e.value.type === "classic" ? (o(!0), r(g, { key: 3 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
721
722
|
X(t) && d.value.dataLabels.show ? (o(), r("path", {
|
|
722
723
|
key: 0,
|
|
723
|
-
d: u(
|
|
724
|
+
d: u(Ut)(t, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
724
725
|
stroke: t.color,
|
|
725
726
|
"stroke-width": "1",
|
|
726
727
|
"stroke-linecap": "round",
|
|
727
728
|
"stroke-linejoin": "round",
|
|
728
729
|
fill: "none",
|
|
729
|
-
filter:
|
|
730
|
+
filter: J(a)
|
|
730
731
|
}, null, 8, Tl)) : i("", !0)
|
|
731
732
|
]))), 256)) : i("", !0),
|
|
732
|
-
e.value.type === "polar" ? (o(!0), r(g, { key: 4 },
|
|
733
|
+
e.value.type === "polar" ? (o(!0), r(g, { key: 4 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
733
734
|
X(t) && d.value.dataLabels.show ? (o(), r("path", {
|
|
734
735
|
key: 0,
|
|
735
736
|
d: `M ${u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
|
|
@@ -738,7 +739,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
738
739
|
"stroke-linecap": "round",
|
|
739
740
|
"stroke-linejoin": "round",
|
|
740
741
|
fill: "none",
|
|
741
|
-
filter:
|
|
742
|
+
filter: J(a),
|
|
742
743
|
style: b({
|
|
743
744
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
744
745
|
})
|
|
@@ -752,41 +753,41 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
752
753
|
fill: e.value.style.chart.backgroundColor,
|
|
753
754
|
filter: `url(#shadow_${h.value})`
|
|
754
755
|
}, null, 8, Al)) : i("", !0),
|
|
755
|
-
l.$slots.pattern ? (o(), r("g",
|
|
756
|
-
(o(!0), r(g, null,
|
|
756
|
+
l.$slots.pattern ? (o(), r("g", Fl, [
|
|
757
|
+
(o(!0), r(g, null, S($e.dataset, (t, a) => (o(), r("defs", {
|
|
757
758
|
key: `pattern-${t.patternIndex}`
|
|
758
759
|
}, [
|
|
759
760
|
p(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${h.value}_${a}` }), void 0, !0)
|
|
760
761
|
]))), 128))
|
|
761
762
|
])) : i("", !0),
|
|
762
|
-
|
|
763
|
-
(o(!0), r(g, null,
|
|
763
|
+
F.value && e.value.type === "classic" ? (o(), r(g, { key: 7 }, [
|
|
764
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
764
765
|
stroke: e.value.style.chart.backgroundColor,
|
|
765
766
|
d: t.arcSlice,
|
|
766
767
|
fill: "#FFFFFF"
|
|
767
|
-
}, null, 8,
|
|
768
|
+
}, null, 8, Sl))), 256)),
|
|
768
769
|
l.$slots.pattern ? (o(), r("g", Ll, [
|
|
769
|
-
(o(!0), r(g, null,
|
|
770
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
770
771
|
class: "vue-ui-donut-arc-path",
|
|
771
772
|
d: t.arcSlice,
|
|
772
773
|
fill: `url(#${t.pattern})`,
|
|
773
774
|
stroke: e.value.style.chart.backgroundColor,
|
|
774
775
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
775
|
-
filter:
|
|
776
|
+
filter: J(a)
|
|
776
777
|
}, null, 8, zl))), 256))
|
|
777
778
|
])) : i("", !0),
|
|
778
|
-
(o(!0), r(g, null,
|
|
779
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
779
780
|
class: "vue-ui-donut-arc-path",
|
|
780
781
|
d: t.arcSlice,
|
|
781
782
|
fill: u(ve)(t.color, 80),
|
|
782
783
|
stroke: e.value.style.chart.backgroundColor,
|
|
783
784
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
784
|
-
filter:
|
|
785
|
+
filter: J(a)
|
|
785
786
|
}, null, 8, Ol))), 256))
|
|
786
787
|
], 64)) : i("", !0),
|
|
787
|
-
|
|
788
|
+
F.value && e.value.type === "polar" ? (o(), r(g, { key: 8 }, [
|
|
788
789
|
A.value.length > 1 ? (o(), r("g", Ml, [
|
|
789
|
-
(o(!0), r(g, null,
|
|
790
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
790
791
|
stroke: e.value.style.chart.backgroundColor,
|
|
791
792
|
d: c.value[a].path,
|
|
792
793
|
fill: "#FFFFFF",
|
|
@@ -795,7 +796,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
795
796
|
})
|
|
796
797
|
}, null, 12, Nl))), 256)),
|
|
797
798
|
e.value.style.chart.layout.donut.useShadow ? (o(), r("g", Yl, [
|
|
798
|
-
(o(!0), r(g, null,
|
|
799
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
799
800
|
class: "vue-ui-donut-arc-path",
|
|
800
801
|
d: c.value[a].path,
|
|
801
802
|
fill: "transparent",
|
|
@@ -808,25 +809,25 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
808
809
|
}, null, 12, Xl))), 256))
|
|
809
810
|
])) : i("", !0),
|
|
810
811
|
l.$slots.pattern ? (o(), r("g", Il, [
|
|
811
|
-
(o(!0), r(g, null,
|
|
812
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
812
813
|
class: "vue-ui-donut-arc-path",
|
|
813
814
|
d: c.value[a].path,
|
|
814
815
|
fill: `url(#${t.pattern})`,
|
|
815
816
|
stroke: e.value.style.chart.backgroundColor,
|
|
816
817
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
817
|
-
filter:
|
|
818
|
+
filter: J(a),
|
|
818
819
|
style: b({
|
|
819
820
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
820
821
|
})
|
|
821
822
|
}, null, 12, Dl))), 256))
|
|
822
823
|
])) : i("", !0),
|
|
823
|
-
(o(!0), r(g, null,
|
|
824
|
+
(o(!0), r(g, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
824
825
|
class: "vue-ui-donut-arc-path",
|
|
825
826
|
d: c.value[a].path,
|
|
826
827
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${h.value})` : t.color,
|
|
827
828
|
stroke: e.value.style.chart.backgroundColor,
|
|
828
829
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
829
|
-
filter:
|
|
830
|
+
filter: J(a),
|
|
830
831
|
style: b({
|
|
831
832
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
832
833
|
})
|
|
@@ -868,9 +869,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
868
869
|
),
|
|
869
870
|
fill: `url(#gradient_${h.value})`
|
|
870
871
|
}, null, 8, El)) : i("", !0),
|
|
871
|
-
|
|
872
|
+
F.value ? (o(), r(g, { key: 11 }, [
|
|
872
873
|
A.value.length > 1 || e.value.type === "classic" ? (o(), r("g", Ul, [
|
|
873
|
-
(o(!0), r(g, null,
|
|
874
|
+
(o(!0), r(g, null, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("path", {
|
|
874
875
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
875
876
|
fill: O.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
876
877
|
onMouseenter: (v) => qe({
|
|
@@ -923,10 +924,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
923
924
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
924
925
|
}, P(u(D)(
|
|
925
926
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
926
|
-
|
|
927
|
+
F.value,
|
|
927
928
|
u(N)({
|
|
928
929
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
929
|
-
v:
|
|
930
|
+
v: F.value,
|
|
930
931
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
931
932
|
})
|
|
932
933
|
)), 13, Kl)) : i("", !0),
|
|
@@ -947,7 +948,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
947
948
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
948
949
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
949
950
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
950
|
-
}, P(
|
|
951
|
+
}, P(q.value || T.value ? "--" : u(D)(
|
|
951
952
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
952
953
|
je.value,
|
|
953
954
|
u(N)({
|
|
@@ -958,8 +959,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
958
959
|
})
|
|
959
960
|
)), 13, Zl)) : i("", !0)
|
|
960
961
|
], 64)) : i("", !0),
|
|
961
|
-
(o(!0), r(g, null,
|
|
962
|
-
filter:
|
|
962
|
+
(o(!0), r(g, null, S(Y.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", {
|
|
963
|
+
filter: J(a),
|
|
963
964
|
class: _e({ animated: e.value.useCssAnimation })
|
|
964
965
|
}, [
|
|
965
966
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g", ta, [
|
|
@@ -1123,7 +1124,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1123
1124
|
l.$slots.watermark ? (o(), r("div", ha, [
|
|
1124
1125
|
p(l.$slots, "watermark", oe(se({ isPrinting: u(Ie) || u(De) })), void 0, !0)
|
|
1125
1126
|
])) : i("", !0),
|
|
1126
|
-
ue.value ? i("", !0) : (o(), Q(u(
|
|
1127
|
+
ue.value ? i("", !0) : (o(), Q(u(pt), {
|
|
1127
1128
|
key: 6,
|
|
1128
1129
|
config: {
|
|
1129
1130
|
type: "donut",
|
|
@@ -1140,10 +1141,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1140
1141
|
ref_key: "chartLegend",
|
|
1141
1142
|
ref: Te
|
|
1142
1143
|
}, [
|
|
1143
|
-
e.value.style.chart.legend.show ? (o(), Q(
|
|
1144
|
+
e.value.style.chart.legend.show ? (o(), Q(al, {
|
|
1144
1145
|
key: `legend_${Le.value}`,
|
|
1145
1146
|
legendSet: Ue.value,
|
|
1146
|
-
config:
|
|
1147
|
+
config: At.value,
|
|
1147
1148
|
onClickMarker: s[4] || (s[4] = ({ i: t }) => Ee(t))
|
|
1148
1149
|
}, at({
|
|
1149
1150
|
item: C(({ legend: t, index: a }) => [
|
|
@@ -1165,7 +1166,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1165
1166
|
index: a
|
|
1166
1167
|
}
|
|
1167
1168
|
)) + " ", 1),
|
|
1168
|
-
V.value.includes(a) ? (o(), r("span", pa, " ( " + P(
|
|
1169
|
+
V.value.includes(a) ? (o(), r("span", pa, " ( " + P(zt(t.proportion * 100)) + " % ) ", 1)) : (o(), r("span", fa, " (" + P(isNaN(t.value / F.value) ? "-" : u(D)(
|
|
1169
1170
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1170
1171
|
He.value(t),
|
|
1171
1172
|
u(N)({
|
|
@@ -1181,7 +1182,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1181
1182
|
l.$slots.pattern ? {
|
|
1182
1183
|
name: "legend-pattern",
|
|
1183
1184
|
fn: C(({ legend: t, index: a }) => [
|
|
1184
|
-
xe(
|
|
1185
|
+
xe(sl, {
|
|
1185
1186
|
shape: t.shape,
|
|
1186
1187
|
radius: 30,
|
|
1187
1188
|
stroke: "none",
|
|
@@ -1202,7 +1203,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1202
1203
|
}, [
|
|
1203
1204
|
p(l.$slots, "source", {}, void 0, !0)
|
|
1204
1205
|
], 512)) : i("", !0),
|
|
1205
|
-
xe(u(
|
|
1206
|
+
xe(u(gt), {
|
|
1206
1207
|
show: d.value.showTooltip && de.value,
|
|
1207
1208
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1208
1209
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1244,7 +1245,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1244
1245
|
}, {
|
|
1245
1246
|
content: C(() => [
|
|
1246
1247
|
(o(), Q(u(ht), {
|
|
1247
|
-
key: `table_${
|
|
1248
|
+
key: `table_${Se.value}`,
|
|
1248
1249
|
colNames: he.value.colNames,
|
|
1249
1250
|
head: he.value.head,
|
|
1250
1251
|
body: he.value.body,
|
|
@@ -1285,7 +1286,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1285
1286
|
}, 8, ["config"])) : i("", !0)
|
|
1286
1287
|
], 46, nl));
|
|
1287
1288
|
}
|
|
1288
|
-
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-
|
|
1289
|
+
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-ce420fe5"]]);
|
|
1289
1290
|
export {
|
|
1290
1291
|
Sa as default
|
|
1291
1292
|
};
|