vue-data-ui 2.16.5 → 2.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{Arrow-D9B36pfx.js → Arrow-DCqxVwey.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-Bn996RXm.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-OFfLkKNb.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-CHBLjKtZ.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-nBXoxXJH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-Bg_9KCU-.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-BPTpbnay.js} +3 -3
- package/dist/{Shape-CrstrfQ9.js → Shape-Bnf512BA.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-BrqtJG2E.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-C-rLATAw.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-Gi81VwUM.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CJxVw7-T.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-CBEK6_jo.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-CRHNL8VU.js} +1 -1
- package/dist/img-BgOg8opa.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-DvIXJm6t.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-DhTxBrbJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DrYHm61t.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-CWnXbGMb.js} +2 -2
- package/dist/{vue-data-ui-BB8Upnjm.js → vue-data-ui-B8EWlMIK.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-D55kCO5G.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-FeScjj7q.js} +23 -22
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-BgLbFBT9.js} +87 -86
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-DWmfnM25.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-BgQch3Fc.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-B59bCV5_.js} +74 -73
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-DxF0ELtv.js} +9 -8
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-D7arhDmb.js} +8 -7
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-Buu4VX3u.js} +40 -39
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-68NMPxxQ.js} +26 -25
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-swH9kRr3.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-M-9dPI5D.js} +45 -44
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-BDpMsTYe.js} +11 -10
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-Bes74INL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
- package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-B9PxVO4n.js} +8 -7
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-DtJ7qJib.js} +69 -68
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-ui-treemap-DzJsjtz7.js +0 -952
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as $, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as R, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as g, Fragment as T, renderList as
|
|
2
|
-
import { u as Et, c as Ut, t as Rt, p as Ce, a as Bt, G as D, o as Gt, e as W, b as Yt, d as Xt, m as _e, f as
|
|
1
|
+
import { defineAsyncComponent as E, computed as $, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as R, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as I, withDirectives as nt, vShow as rt, createTextVNode as ne } from "vue";
|
|
2
|
+
import { u as Et, c as Ut, t as Rt, p as Ce, a as Bt, G as D, o as Gt, e as W, b as Yt, d as Xt, m as _e, f as F, X as Wt, s as qt, L as Ht, k as Te, n as q, i as K, x as it, q as Jt, r as Kt, y as Qt, v as Oe, T as dt } from "./index-DvIXJm6t.js";
|
|
3
3
|
import { t as Zt, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ct } from "./useNestedProp-
|
|
5
|
-
import { u as el } from "./usePrinter-
|
|
4
|
+
import { u as ct } from "./useNestedProp-DrYHm61t.js";
|
|
5
|
+
import { u as el } from "./usePrinter-CWnXbGMb.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 "./Title-
|
|
9
|
-
import ol from "./Legend-
|
|
8
|
+
import al from "./Title-Gi81VwUM.js";
|
|
9
|
+
import ol from "./Legend-nBXoxXJH.js";
|
|
10
10
|
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width"], gl = { key: 1 }, ml = ["d", "fill"], wl = { key: 2 }, kl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, Ll = ["filter"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["d", "fill", "onMouseenter", "onClick"],
|
|
11
|
+
const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width"], gl = { key: 1 }, ml = ["d", "fill"], wl = { key: 2 }, kl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, Ll = ["filter"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["d", "fill", "onMouseenter", "onClick"], Ol = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Fl = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "vue-ui-nested-donuts-legend-title"
|
|
17
|
-
},
|
|
17
|
+
}, Nl = ["onClick"], Sl = ["innerHTML"], Al = {
|
|
18
18
|
__name: "vue-ui-nested-donuts",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -32,9 +32,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
34
|
setup(vt, { expose: ht, emit: ft }) {
|
|
35
|
-
const pt = E(() => import("./vue-ui-accordion-
|
|
35
|
+
const pt = E(() => import("./vue-ui-accordion-D55kCO5G.js")), yt = E(() => import("./DataTable-CHBLjKtZ.js")), bt = E(() => import("./PackageVersion-Bg_9KCU-.js")), gt = E(() => import("./PenAndPaper-BPTpbnay.js")), mt = E(() => import("./vue-ui-skeleton-BAOt2neL.js")), wt = E(() => import("./Tooltip-CJxVw7-T.js")), kt = E(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_nested_donuts: $t } = Et(), C = vt, Q = $(() => !!C.dataset && C.dataset.length), y = h(Ut()), re = h(!1), ie = h(""), Lt = h(null), Fe = h(0), H = h(null), Ne = h(null), de = h(null), Se = h(null), Ae = h(null), Ie = h(0), Ve = h(0), Pe = h(0), z = h(!0), M = h([]), J = h([]), B = h(!1);
|
|
36
36
|
function xt(l) {
|
|
37
|
-
B.value = l,
|
|
37
|
+
B.value = l, Fe.value += 1;
|
|
38
38
|
}
|
|
39
39
|
const e = $({
|
|
40
40
|
get: () => Ee(),
|
|
@@ -58,7 +58,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
58
58
|
lt(
|
|
59
59
|
() => C.config,
|
|
60
60
|
(l) => {
|
|
61
|
-
e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(),
|
|
61
|
+
e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ie.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
|
|
62
62
|
},
|
|
63
63
|
{ deep: !0 }
|
|
64
64
|
);
|
|
@@ -79,17 +79,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
79
79
|
let u = 0;
|
|
80
80
|
l.forEach((c, v) => {
|
|
81
81
|
setTimeout(() => {
|
|
82
|
-
const
|
|
82
|
+
const N = performance.now();
|
|
83
83
|
function d(p) {
|
|
84
|
-
const _ = Math.min((p -
|
|
84
|
+
const _ = Math.min((p - N) / s, 1), ge = dt(_), me = c * ge;
|
|
85
85
|
M.value[v] = me, M.value = [...M.value];
|
|
86
86
|
const oe = [];
|
|
87
87
|
let we = 0;
|
|
88
88
|
C.dataset.forEach((se, ke) => {
|
|
89
|
-
const
|
|
90
|
-
(Le, xe) => Le +
|
|
89
|
+
const It = Oe(se.series.reduce(
|
|
90
|
+
(Le, xe) => Le + Oe(D(xe.values).reduce((Pt, Dt) => Pt + Dt, 0)),
|
|
91
91
|
0
|
|
92
|
-
)), Vt =
|
|
92
|
+
)), Vt = Oe(M.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = It - Vt;
|
|
93
93
|
$e > Number.MIN_VALUE && oe.push({
|
|
94
94
|
name: "__ghost__",
|
|
95
95
|
arcOf: se.name,
|
|
@@ -117,7 +117,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
117
117
|
);
|
|
118
118
|
M.value = s.map(() => 0), z.value = !0, J.value = C.dataset.map((a, o) => {
|
|
119
119
|
const t = a.series.reduce(
|
|
120
|
-
(u, c) => u + D(c.values).reduce((v,
|
|
120
|
+
(u, c) => u + D(c.values).reduce((v, N) => v + N, 0),
|
|
121
121
|
0
|
|
122
122
|
);
|
|
123
123
|
return {
|
|
@@ -155,10 +155,10 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
155
155
|
const l = Zt(() => {
|
|
156
156
|
const { width: s, height: a } = jt({
|
|
157
157
|
chart: H.value,
|
|
158
|
-
title: e.value.style.chart.title.text ?
|
|
158
|
+
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
159
159
|
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
160
|
-
source:
|
|
161
|
-
noTitle:
|
|
160
|
+
source: Se.value,
|
|
161
|
+
noTitle: Ae.value,
|
|
162
162
|
padding: Ue.value
|
|
163
163
|
});
|
|
164
164
|
requestAnimationFrame(() => {
|
|
@@ -185,7 +185,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
185
185
|
width: e.value.style.chart.width,
|
|
186
186
|
height: e.value.style.chart.height
|
|
187
187
|
}), Xe = ft;
|
|
188
|
-
function
|
|
188
|
+
function Ot({ datapoint: l, index: s }) {
|
|
189
189
|
Xe("selectDatapoint", { datapoint: l, index: s });
|
|
190
190
|
}
|
|
191
191
|
function We({
|
|
@@ -197,13 +197,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
197
197
|
easing: u = dt
|
|
198
198
|
}) {
|
|
199
199
|
const c = performance.now();
|
|
200
|
-
function v(
|
|
201
|
-
const d = Math.min((
|
|
200
|
+
function v(N) {
|
|
201
|
+
const d = Math.min((N - c) / a, 1), p = u(d), _ = l + (s - l) * p;
|
|
202
202
|
o(_, d), d < 1 ? requestAnimationFrame(v) : (o(s, 1), t && t());
|
|
203
203
|
}
|
|
204
204
|
requestAnimationFrame(v);
|
|
205
205
|
}
|
|
206
|
-
const w = h([]),
|
|
206
|
+
const w = h([]), S = $(() => {
|
|
207
207
|
C.dataset.forEach((s, a) => {
|
|
208
208
|
[null, void 0].includes(s.name) && W({
|
|
209
209
|
componentName: "VueUiNestedDonuts",
|
|
@@ -256,7 +256,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
256
256
|
};
|
|
257
257
|
})
|
|
258
258
|
}));
|
|
259
|
-
}),
|
|
259
|
+
}), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), qe = $(() => [...S.value].map((l, s) => {
|
|
260
260
|
const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
261
261
|
return {
|
|
262
262
|
...l,
|
|
@@ -267,7 +267,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
267
267
|
}))
|
|
268
268
|
};
|
|
269
269
|
}));
|
|
270
|
-
function
|
|
270
|
+
function Ft(l, s, a) {
|
|
271
271
|
let o = 0;
|
|
272
272
|
for (let t = 0; t < l.length; t += 1)
|
|
273
273
|
a.includes(l[t]) && (o += 1);
|
|
@@ -288,13 +288,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
288
288
|
}))
|
|
289
289
|
).find((d) => d.id === l.id);
|
|
290
290
|
if (!s) return;
|
|
291
|
-
const a =
|
|
291
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
292
292
|
let u = o ? o.value : 0;
|
|
293
|
-
const c =
|
|
293
|
+
const c = S.value.find(
|
|
294
294
|
(d) => d.id === s.arcOfId
|
|
295
295
|
);
|
|
296
296
|
if (!c) return;
|
|
297
|
-
const v = c.series.map((d) => d.id),
|
|
297
|
+
const v = c.series.map((d) => d.id), N = Ft(
|
|
298
298
|
v,
|
|
299
299
|
v.length - 1,
|
|
300
300
|
w.value
|
|
@@ -312,7 +312,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
312
312
|
}) : b.value = b.value.map((d) => ({
|
|
313
313
|
...d,
|
|
314
314
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
|
|
315
|
-
}))) :
|
|
315
|
+
}))) : N && (e.value.serieToggleAnimation.show ? We({
|
|
316
316
|
from: u,
|
|
317
317
|
to: 0,
|
|
318
318
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -330,8 +330,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
330
330
|
series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
|
|
331
331
|
})), w.value.push(l.id)));
|
|
332
332
|
}
|
|
333
|
-
const Z = $(() =>
|
|
334
|
-
const a = Math.abs(l.series.map((v) => v.value).reduce((v,
|
|
333
|
+
const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), He = $(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), j = $(() => b.value.map((l, s) => {
|
|
334
|
+
const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.value / b.value.length, t = z.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
|
|
335
335
|
...v,
|
|
336
336
|
value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
|
|
337
337
|
})), c = _e(
|
|
@@ -368,26 +368,26 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
368
368
|
Z.value
|
|
369
369
|
)
|
|
370
370
|
};
|
|
371
|
-
})), Je = $(() => [...
|
|
372
|
-
const a = s *
|
|
371
|
+
})), Je = $(() => [...S.value].map((l, s) => {
|
|
372
|
+
const a = s * A.value / S.value.length;
|
|
373
373
|
return {
|
|
374
374
|
sizeRatio: a,
|
|
375
375
|
donut: _e(
|
|
376
376
|
{ series: [{ value: 1 }] },
|
|
377
377
|
f.value.width / 2,
|
|
378
378
|
f.value.height / 2,
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
A.value - a,
|
|
380
|
+
A.value - a,
|
|
381
381
|
1.99999,
|
|
382
382
|
2,
|
|
383
383
|
1,
|
|
384
384
|
360,
|
|
385
385
|
105.25,
|
|
386
|
-
|
|
386
|
+
A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
387
387
|
)[0]
|
|
388
388
|
};
|
|
389
389
|
})), Ke = h(null), ee = h(null), te = h(null), fe = h(null);
|
|
390
|
-
function
|
|
390
|
+
function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
|
|
391
391
|
Ke.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
|
|
392
392
|
datapoint: l,
|
|
393
393
|
seriesIndex: a,
|
|
@@ -429,7 +429,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
429
429
|
${e.value.style.chart.tooltip.showValue ? `<b>${K(
|
|
430
430
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
431
431
|
l.value,
|
|
432
|
-
|
|
432
|
+
F({
|
|
433
433
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
434
434
|
v: l.value,
|
|
435
435
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -438,7 +438,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
438
438
|
{ datapoint: l, seriesIndex: a }
|
|
439
439
|
)}
|
|
440
440
|
</b>` : ""}
|
|
441
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
441
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
442
442
|
v: c.proportion * 100,
|
|
443
443
|
s: "%",
|
|
444
444
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -451,18 +451,18 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
451
451
|
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${K(
|
|
452
452
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
453
453
|
l.value,
|
|
454
|
-
|
|
454
|
+
F({
|
|
455
455
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
456
456
|
v: l.value,
|
|
457
457
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
458
458
|
r: e.value.style.chart.tooltip.roundingValue
|
|
459
459
|
}),
|
|
460
460
|
{ datapoint: l, seriesIndex: a }
|
|
461
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
461
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
|
|
462
462
|
v: l.proportion * 100,
|
|
463
463
|
s: "%",
|
|
464
464
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
465
|
-
})})</span></div>` : t += `<b>${
|
|
465
|
+
})})</span></div>` : t += `<b>${F({
|
|
466
466
|
v: l.proportion * 100,
|
|
467
467
|
s: "%",
|
|
468
468
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -482,7 +482,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
482
482
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
483
483
|
return [null, void 0].includes(ee.value) || ee.value === l.id ? "" : `url(#blur_${y.value})`;
|
|
484
484
|
}
|
|
485
|
-
const ye = $(() =>
|
|
485
|
+
const ye = $(() => S.value.map((l, s) => {
|
|
486
486
|
const a = l.series.filter(
|
|
487
487
|
(t) => !w.value.includes(t.id)
|
|
488
488
|
), o = z.value ? a.map((t) => {
|
|
@@ -495,7 +495,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
495
495
|
}).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
|
|
496
496
|
return l.series.map((t, u) => {
|
|
497
497
|
const c = D(C.dataset[s].series[u].values).reduce(
|
|
498
|
-
(
|
|
498
|
+
(N, d) => N + d,
|
|
499
499
|
0
|
|
500
500
|
), v = z.value ? c : t.value;
|
|
501
501
|
return {
|
|
@@ -513,7 +513,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
513
513
|
isSegregated: w.value.includes(t.id)
|
|
514
514
|
};
|
|
515
515
|
});
|
|
516
|
-
})),
|
|
516
|
+
})), St = $(() => ({
|
|
517
517
|
cy: "nested-donuts-legend",
|
|
518
518
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
519
519
|
color: e.value.style.chart.legend.color,
|
|
@@ -553,7 +553,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
553
553
|
e.value.table.columnNames.value,
|
|
554
554
|
e.value.table.columnNames.percentage
|
|
555
555
|
], s = P.value.head.map((t, u) => {
|
|
556
|
-
const c =
|
|
556
|
+
const c = F({
|
|
557
557
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
558
558
|
v: P.value.body[u],
|
|
559
559
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -565,7 +565,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
565
565
|
name: t.name
|
|
566
566
|
},
|
|
567
567
|
c,
|
|
568
|
-
isNaN(P.value.body[u] / t.total) ? "-" :
|
|
568
|
+
isNaN(P.value.body[u] / t.total) ? "-" : F({
|
|
569
569
|
v: P.value.body[u] / t.total * 100,
|
|
570
570
|
s: "%",
|
|
571
571
|
r: e.value.table.td.roundingPercentage
|
|
@@ -595,8 +595,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
595
595
|
config: a
|
|
596
596
|
};
|
|
597
597
|
});
|
|
598
|
-
function
|
|
599
|
-
return
|
|
598
|
+
function At() {
|
|
599
|
+
return S.value;
|
|
600
600
|
}
|
|
601
601
|
function je() {
|
|
602
602
|
k.value.showTable = !k.value.showTable;
|
|
@@ -612,7 +612,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
612
612
|
ae.value = !ae.value;
|
|
613
613
|
}
|
|
614
614
|
return ht({
|
|
615
|
-
getData:
|
|
615
|
+
getData: At,
|
|
616
616
|
generatePdf: Ge,
|
|
617
617
|
generateCsv: Ze,
|
|
618
618
|
generateImage: Ye,
|
|
@@ -640,17 +640,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
640
640
|
_t.value ? (n(), i("div", {
|
|
641
641
|
key: 1,
|
|
642
642
|
ref_key: "noTitle",
|
|
643
|
-
ref:
|
|
643
|
+
ref: Ae,
|
|
644
644
|
class: "vue-data-ui-no-title-space",
|
|
645
645
|
style: "height:36px; width: 100%;background:transparent"
|
|
646
646
|
}, null, 512)) : m("", !0),
|
|
647
647
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
648
648
|
key: 2,
|
|
649
649
|
ref_key: "chartTitle",
|
|
650
|
-
ref:
|
|
650
|
+
ref: Ne
|
|
651
651
|
}, [
|
|
652
652
|
(n(), R(al, {
|
|
653
|
-
key: `title_${
|
|
653
|
+
key: `title_${Ie.value}`,
|
|
654
654
|
config: {
|
|
655
655
|
title: {
|
|
656
656
|
cy: "donut-div-title",
|
|
@@ -665,7 +665,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
665
665
|
], 512)) : m("", !0),
|
|
666
666
|
e.value.userOptions.show && Q.value && (r(ze) || r(ce)) ? (n(), R(r(kt), {
|
|
667
667
|
ref: "details",
|
|
668
|
-
key: `user_option_${
|
|
668
|
+
key: `user_option_${Fe.value}`,
|
|
669
669
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
670
670
|
color: e.value.style.chart.color,
|
|
671
671
|
isPrinting: r(Re),
|
|
@@ -686,6 +686,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
686
686
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
687
687
|
isAnnotation: ae.value,
|
|
688
688
|
callbacks: e.value.userOptions.callbacks,
|
|
689
|
+
printScale: e.value.userOptions.print.scale,
|
|
689
690
|
onToggleFullscreen: xt,
|
|
690
691
|
onGeneratePdf: r(Ge),
|
|
691
692
|
onGenerateCsv: Ze,
|
|
@@ -761,7 +762,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
761
762
|
]),
|
|
762
763
|
key: "8"
|
|
763
764
|
} : void 0
|
|
764
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
765
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
765
766
|
Q.value ? (n(), i("svg", {
|
|
766
767
|
key: 4,
|
|
767
768
|
ref_key: "svgRef",
|
|
@@ -788,7 +789,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
788
789
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
789
790
|
], 8, rl)) : m("", !0),
|
|
790
791
|
g("defs", null, [
|
|
791
|
-
(n(!0), i(T, null,
|
|
792
|
+
(n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("radialGradient", {
|
|
792
793
|
id: `radial_${y.value}_${o}`
|
|
793
794
|
}, [
|
|
794
795
|
s[5] || (s[5] = g("stop", {
|
|
@@ -844,8 +845,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
844
845
|
}, null, 8, pl)
|
|
845
846
|
], 8, fl)
|
|
846
847
|
]),
|
|
847
|
-
(n(!0), i(T, null,
|
|
848
|
-
a.hasData ? (n(!0), i(T, { key: 0 },
|
|
848
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
849
|
+
a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
|
|
849
850
|
g("path", {
|
|
850
851
|
class: "vue-ui-donut-arc-path",
|
|
851
852
|
d: t.arcSlice,
|
|
@@ -854,7 +855,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
854
855
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
855
856
|
filter: Qe(t, u)
|
|
856
857
|
}, null, 8, yl)
|
|
857
|
-
]))), 256)) : (n(!0), i(T, { key: 1 },
|
|
858
|
+
]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
|
|
858
859
|
g("path", {
|
|
859
860
|
class: "vue-ui-donut-arc-path",
|
|
860
861
|
d: t.arcSlice,
|
|
@@ -865,7 +866,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
865
866
|
]))), 256))
|
|
866
867
|
]))), 256)),
|
|
867
868
|
e.value.style.chart.useGradient ? (n(), i("g", gl, [
|
|
868
|
-
(n(!0), i(T, null,
|
|
869
|
+
(n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("g", null, [
|
|
869
870
|
g("path", {
|
|
870
871
|
d: a.donut.arcSlice,
|
|
871
872
|
fill: `url(#radial_${y.value}_${o})`,
|
|
@@ -875,8 +876,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
875
876
|
]))), 256))
|
|
876
877
|
])) : m("", !0),
|
|
877
878
|
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", wl, [
|
|
878
|
-
(n(!0), i(T, null,
|
|
879
|
-
(n(!0), i(T, null,
|
|
879
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
880
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
880
881
|
u === 0 && f.value.width && f.value.height ? (n(), i("text", {
|
|
881
882
|
key: 0,
|
|
882
883
|
class: U({ animated: e.value.useCssAnimation }),
|
|
@@ -886,7 +887,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
886
887
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
887
888
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
888
889
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
889
|
-
},
|
|
890
|
+
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Ht)({
|
|
890
891
|
source: a.name,
|
|
891
892
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
892
893
|
}) : a.name), 11, kl)) : m("", !0)
|
|
@@ -894,8 +895,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
894
895
|
]))), 256))
|
|
895
896
|
])) : m("", !0),
|
|
896
897
|
e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", $l, [
|
|
897
|
-
(n(!0), i(T, null,
|
|
898
|
-
(n(!0), i(T, null,
|
|
898
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
899
|
+
(n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
|
|
899
900
|
filter: Qe(t, u)
|
|
900
901
|
}, [
|
|
901
902
|
nt(g("text", {
|
|
@@ -915,7 +916,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
915
916
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
916
917
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
917
918
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
918
|
-
},
|
|
919
|
+
}, I(r(F)({
|
|
919
920
|
v: t.proportion * 100,
|
|
920
921
|
s: "%",
|
|
921
922
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
@@ -942,10 +943,10 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
942
943
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
943
944
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
944
945
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
945
|
-
}, " (" +
|
|
946
|
+
}, " (" + I(r(K)(
|
|
946
947
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
947
948
|
t.value,
|
|
948
|
-
r(
|
|
949
|
+
r(F)({
|
|
949
950
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
950
951
|
v: t.value,
|
|
951
952
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -975,10 +976,10 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
975
976
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
976
977
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
977
978
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
978
|
-
},
|
|
979
|
+
}, I(r(K)(
|
|
979
980
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
980
981
|
t.value,
|
|
981
|
-
r(
|
|
982
|
+
r(F)({
|
|
982
983
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
983
984
|
v: t.value,
|
|
984
985
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -989,16 +990,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
989
990
|
], 8, Ll))), 256))
|
|
990
991
|
]))), 256))
|
|
991
992
|
])) : m("", !0),
|
|
992
|
-
(n(!0), i(T, null,
|
|
993
|
-
(n(!0), i(T, null,
|
|
993
|
+
(n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
|
|
994
|
+
(n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
|
|
994
995
|
g("path", {
|
|
995
996
|
d: t.arcSlice,
|
|
996
997
|
fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
997
|
-
onMouseenter: (c) =>
|
|
998
|
+
onMouseenter: (c) => Nt({
|
|
998
999
|
datapoint: t,
|
|
999
1000
|
seriesIndex: t.seriesIndex
|
|
1000
1001
|
}),
|
|
1001
|
-
onClick: (c) =>
|
|
1002
|
+
onClick: (c) => Ot({ datapoint: t, index: u }),
|
|
1002
1003
|
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1003
1004
|
re.value = !1, Ke.value = null, ee.value = null, te.value = null;
|
|
1004
1005
|
})
|
|
@@ -1007,7 +1008,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1007
1008
|
]))), 256)),
|
|
1008
1009
|
x(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1009
1010
|
], 14, nl)) : m("", !0),
|
|
1010
|
-
l.$slots.watermark ? (n(), i("div",
|
|
1011
|
+
l.$slots.watermark ? (n(), i("div", Ol, [
|
|
1011
1012
|
x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
|
|
1012
1013
|
])) : m("", !0),
|
|
1013
1014
|
Q.value ? m("", !0) : (n(), R(r(mt), {
|
|
@@ -1052,24 +1053,24 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1052
1053
|
ref: de,
|
|
1053
1054
|
class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
|
|
1054
1055
|
}, [
|
|
1055
|
-
(n(!0), i(T, null,
|
|
1056
|
+
(n(!0), i(T, null, O(ye.value, (a, o) => (n(), R(ol, {
|
|
1056
1057
|
key: `legend_${o}_${Pe.value}`,
|
|
1057
1058
|
legendSet: a,
|
|
1058
|
-
config:
|
|
1059
|
+
config: St.value,
|
|
1059
1060
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
|
|
1060
1061
|
}, {
|
|
1061
1062
|
legendTitle: L(({ titleSet: t }) => [
|
|
1062
|
-
t[0] && t[0].arcOf ? (n(), i("div",
|
|
1063
|
+
t[0] && t[0].arcOf ? (n(), i("div", Fl, I(t[0].arcOf), 1)) : m("", !0)
|
|
1063
1064
|
]),
|
|
1064
1065
|
item: L(({ legend: t, index: u }) => [
|
|
1065
1066
|
g("div", {
|
|
1066
1067
|
onClick: (c) => he(t),
|
|
1067
1068
|
style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
1068
1069
|
}, [
|
|
1069
|
-
ne(
|
|
1070
|
+
ne(I(t.name) + ": " + I(r(K)(
|
|
1070
1071
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1071
1072
|
t.value,
|
|
1072
|
-
r(
|
|
1073
|
+
r(F)({
|
|
1073
1074
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1074
1075
|
v: t.value,
|
|
1075
1076
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1080,13 +1081,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1080
1081
|
w.value.includes(t.id) ? (n(), i(T, { key: 1 }, [
|
|
1081
1082
|
ne(" ( - % ) ")
|
|
1082
1083
|
], 64)) : (n(), i(T, { key: 0 }, [
|
|
1083
|
-
ne(" (" +
|
|
1084
|
+
ne(" (" + I(isNaN(t.value / t.total) ? "-" : r(F)({
|
|
1084
1085
|
v: t.value / t.total * 100,
|
|
1085
1086
|
s: "%",
|
|
1086
1087
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1087
1088
|
})) + ") ", 1)
|
|
1088
1089
|
], 64))
|
|
1089
|
-
], 12,
|
|
1090
|
+
], 12, Nl)
|
|
1090
1091
|
]),
|
|
1091
1092
|
_: 2
|
|
1092
1093
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -1101,7 +1102,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1101
1102
|
l.$slots.source ? (n(), i("div", {
|
|
1102
1103
|
key: 9,
|
|
1103
1104
|
ref_key: "source",
|
|
1104
|
-
ref:
|
|
1105
|
+
ref: Se,
|
|
1105
1106
|
dir: "auto"
|
|
1106
1107
|
}, [
|
|
1107
1108
|
x(l.$slots, "source", {}, void 0, !0)
|
|
@@ -1136,10 +1137,10 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1136
1137
|
g("div", {
|
|
1137
1138
|
innerHTML: a,
|
|
1138
1139
|
style: { display: "flex", "align-items": "center" }
|
|
1139
|
-
}, null, 8,
|
|
1140
|
+
}, null, 8, Sl)
|
|
1140
1141
|
]),
|
|
1141
1142
|
td: L(({ td: a }) => [
|
|
1142
|
-
ne(
|
|
1143
|
+
ne(I(a.name || a), 1)
|
|
1143
1144
|
]),
|
|
1144
1145
|
_: 1
|
|
1145
1146
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -1148,7 +1149,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
|
|
|
1148
1149
|
}, 8, ["config"])) : m("", !0)
|
|
1149
1150
|
], 46, ul));
|
|
1150
1151
|
}
|
|
1151
|
-
}, Gl = /* @__PURE__ */ sl(
|
|
1152
|
+
}, Gl = /* @__PURE__ */ sl(Al, [["__scopeId", "data-v-8cff675f"]]);
|
|
1152
1153
|
export {
|
|
1153
1154
|
Gl as default
|
|
1154
1155
|
};
|