vue-data-ui 3.4.9 → 3.5.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/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { t as
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as B, computed as $, ref as v, toRefs as ca, watch as le, onMounted as va, shallowRef as wt, onBeforeUnmount as ha, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as he, normalizeClass as E, createBlock as U, createCommentVNode as x, createElementVNode as y, createVNode as Ve, withCtx as g, renderSlot as b, normalizeProps as N, guardReactiveProps as D, createSlots as $t, Fragment as A, renderList as T, toDisplayString as V, withDirectives as kt, vShow as Ct, Teleport as fa, resolveDynamicComponent as pa, mergeProps as ya, createTextVNode as Lt, nextTick as xt } from "vue";
|
|
2
|
+
import { c as ga, t as ba, b as ma, p as ze, O as Me, o as wa, f as K, e as $a, a1 as R, h as ka, T as Be, a as oe, d as F, X as Ca, s as La, I as _t, W as Ee, Y as Z, G as At, P as xa, Q as _a, H as Aa, a0 as Tt, x as Ue } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Ta, u as Sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Oa, a as St } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as Fa, B as Na } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Da } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as Ia } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Va } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import za from "./img-BecE5qXd.js";
|
|
11
|
+
import Ma from "./Title-isbiM8i8.js";
|
|
12
|
+
import { t as Ba } from "./themes-AUNCOb2G.js";
|
|
13
|
+
import Ea from "./Legend-G6GMcdAc.js";
|
|
14
|
+
import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Ra = ["id"], Ga = ["id"], Ya = ["xmlns", "viewBox"], Wa = ["width", "height"], Xa = ["id"], Ha = ["offset", "stop-color"], qa = ["offset", "stop-opacity"], Qa = ["id"], Ja = ["id"], Ka = ["id"], Za = ["flood-color"], ja = ["id", "d"], el = ["d", "fill", "stroke", "stroke-width", "filter"], tl = ["d", "fill", "stroke", "stroke-width"], al = { key: 1 }, ll = ["d", "fill"], ol = { key: 2 }, sl = ["font-size", "font-weight", "fill", "dy"], nl = ["href"], ul = ["x", "y", "font-size", "font-weight", "fill"], rl = { key: 3 }, il = ["filter"], dl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], vl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], hl = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], fl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, pl = ["id"], yl = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "vue-ui-nested-donuts-legend-title"
|
|
21
|
-
},
|
|
21
|
+
}, gl = ["onClick"], bl = ["innerHTML"], ml = {
|
|
22
22
|
__name: "vue-ui-nested-donuts",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -35,19 +35,19 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
38
|
+
setup(Ot, { expose: Ft, emit: Nt }) {
|
|
39
|
+
const Dt = B(() => import("./Tooltip-oWCO1HKy.js")), It = B(() => import("./BaseIcon-BmMbm4d0.js")), Pt = B(() => import("./vue-ui-accordion-CqhVCfc2.js")), Vt = B(() => import("./DataTable-BT7VF2ua.js")), zt = B(() => import("./UserOptions-CGnQt6Fd.js")), Mt = B(() => import("./PenAndPaper-SZQIAgkg.js")), Bt = B(() => import("./PackageVersion-DQvyATVa.js")), Et = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Ut } = Oa(), C = Ot, fe = $({
|
|
40
40
|
get() {
|
|
41
|
-
return !!
|
|
41
|
+
return !!C.dataset && C.dataset.length;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), p =
|
|
46
|
+
}), p = v(ga()), pe = v(!1), ye = v(""), ge = v(null), Re = v(0), I = v(null), Ge = v(null), be = v(null), Ye = v(null), We = v(null), Xe = v(0), He = v(0), qe = v(0), G = v(!0), Y = v([]), j = v([]), Qe = v(!1), ee = v(null), me = v(null), W = v(!1);
|
|
47
47
|
function Je(t) {
|
|
48
|
-
|
|
48
|
+
W.value = t, Re.value += 1;
|
|
49
49
|
}
|
|
50
|
-
const e =
|
|
50
|
+
const e = v(Ce()), Ke = {
|
|
51
51
|
name: "",
|
|
52
52
|
series: [
|
|
53
53
|
{
|
|
@@ -66,17 +66,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
66
66
|
color: "#CACACA"
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
|
-
}, { loading:
|
|
70
|
-
...
|
|
69
|
+
}, { loading: we, FINAL_DATASET: X, manualLoading: $e } = Fa({
|
|
70
|
+
...ca(C),
|
|
71
71
|
FINAL_CONFIG: e,
|
|
72
|
-
prepareConfig:
|
|
72
|
+
prepareConfig: Ce,
|
|
73
73
|
callback: () => {
|
|
74
74
|
Promise.resolve().then(async () => {
|
|
75
75
|
await tt();
|
|
76
76
|
});
|
|
77
77
|
},
|
|
78
78
|
skeletonDataset: [Ke, Ke],
|
|
79
|
-
skeletonConfig:
|
|
79
|
+
skeletonConfig: ba({
|
|
80
80
|
defaultConfig: e.value,
|
|
81
81
|
userConfig: {
|
|
82
82
|
useCssAnimation: !1,
|
|
@@ -102,145 +102,145 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
})
|
|
105
|
-
}), { userOptionsVisible:
|
|
105
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Pa({ config: e.value }), { svgRef: te } = Va({
|
|
106
106
|
config: e.value.style.chart.title
|
|
107
107
|
});
|
|
108
|
-
function
|
|
109
|
-
const t =
|
|
110
|
-
userConfig:
|
|
111
|
-
defaultConfig:
|
|
108
|
+
function Ce() {
|
|
109
|
+
const t = St({
|
|
110
|
+
userConfig: C.config,
|
|
111
|
+
defaultConfig: Ut
|
|
112
112
|
});
|
|
113
113
|
let s = {};
|
|
114
114
|
return t.theme ? s = {
|
|
115
|
-
...
|
|
116
|
-
userConfig:
|
|
115
|
+
...St({
|
|
116
|
+
userConfig: Ba.vue_ui_nested_donuts[t.theme] || C.config,
|
|
117
117
|
defaultConfig: t
|
|
118
118
|
}),
|
|
119
|
-
customPalette:
|
|
120
|
-
} : s = t,
|
|
119
|
+
customPalette: ma[t.theme] || ze
|
|
120
|
+
} : s = t, C.config && Me(C.config, "events.datapointEnter") ? s.events.datapointEnter = C.config.events.datapointEnter : s.events.datapointEnter = null, C.config && Me(C.config, "events.datapointLeave") ? s.events.datapointLeave = C.config.events.datapointLeave : s.events.datapointLeave = null, C.config && Me(C.config, "events.datapointClick") ? s.events.datapointClick = C.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
121
121
|
}
|
|
122
122
|
le(
|
|
123
|
-
() =>
|
|
123
|
+
() => C.config,
|
|
124
124
|
(t) => {
|
|
125
|
-
|
|
125
|
+
we.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, at(), Xe.value += 1, He.value += 1, qe.value += 1, _.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
126
126
|
},
|
|
127
127
|
{ deep: !0 }
|
|
128
128
|
);
|
|
129
|
-
const et =
|
|
130
|
-
const { top: t, right: s, bottom:
|
|
129
|
+
const et = $(() => {
|
|
130
|
+
const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
|
|
131
131
|
return {
|
|
132
|
-
css: `padding:${t}px ${s}px ${
|
|
132
|
+
css: `padding:${t}px ${s}px ${l}px ${o}px`,
|
|
133
133
|
top: t,
|
|
134
134
|
right: s,
|
|
135
|
-
bottom:
|
|
135
|
+
bottom: l,
|
|
136
136
|
left: o
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
function Rt(t, s = 1e3,
|
|
139
|
+
function Rt(t, s = 1e3, l = 50) {
|
|
140
140
|
return new Promise((o) => {
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
t.forEach((
|
|
141
|
+
const a = t.length;
|
|
142
|
+
Y.value = Array(a).fill(0), j.value = [];
|
|
143
|
+
let u = 0;
|
|
144
|
+
t.forEach((c, f) => {
|
|
145
145
|
setTimeout(() => {
|
|
146
|
-
const
|
|
147
|
-
function d(
|
|
148
|
-
const S = Math.min((
|
|
149
|
-
|
|
150
|
-
const
|
|
146
|
+
const k = performance.now();
|
|
147
|
+
function d(m) {
|
|
148
|
+
const S = Math.min((m - k) / s, 1), Se = Tt(S), Oe = c * Se;
|
|
149
|
+
Y.value[f] = Oe, Y.value = [...Y.value];
|
|
150
|
+
const ce = [];
|
|
151
151
|
let Fe = 0;
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
(
|
|
152
|
+
C.dataset.forEach((ve, Ne) => {
|
|
153
|
+
const ua = Ue(ve.series.reduce(
|
|
154
|
+
(Ie, Pe) => Ie + Ue(R(Pe.values).reduce((ia, da) => ia + da, 0)),
|
|
155
155
|
0
|
|
156
|
-
)),
|
|
157
|
-
|
|
156
|
+
)), ra = Ue(Y.value.slice(Fe, Fe + ve.series.length).reduce((Ie, Pe) => Ie + Pe, 0)), De = ua - ra;
|
|
157
|
+
De > Number.MIN_VALUE && ce.push({
|
|
158
158
|
name: "__ghost__",
|
|
159
159
|
arcOf: ve.name,
|
|
160
|
-
arcOfId: `${p.value}_${
|
|
161
|
-
id: `ghost_${p.value}_${
|
|
160
|
+
arcOfId: `${p.value}_${Ne}`,
|
|
161
|
+
id: `ghost_${p.value}_${Ne}`,
|
|
162
162
|
seriesIndex: -1,
|
|
163
|
-
datasetIndex:
|
|
163
|
+
datasetIndex: Ne,
|
|
164
164
|
color: "transparent",
|
|
165
|
-
value:
|
|
166
|
-
fullValue:
|
|
165
|
+
value: De,
|
|
166
|
+
fullValue: De,
|
|
167
167
|
absoluteValues: [],
|
|
168
168
|
ghost: !0
|
|
169
169
|
}), Fe += ve.series.length;
|
|
170
|
-
}),
|
|
170
|
+
}), j.value = ce, S < 1 ? requestAnimationFrame(d) : (u += 1, u === a && o());
|
|
171
171
|
}
|
|
172
172
|
requestAnimationFrame(d);
|
|
173
|
-
}, f *
|
|
173
|
+
}, f * l);
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
async function tt() {
|
|
178
178
|
if (e.value.startAnimation?.show) {
|
|
179
|
-
const s =
|
|
180
|
-
(
|
|
179
|
+
const s = X.value.flatMap((l) => l.series).map(
|
|
180
|
+
(l) => R(l.values).reduce((o, a) => o + a, 0)
|
|
181
181
|
);
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
(
|
|
182
|
+
Y.value = s.map(() => 0), G.value = !0, j.value = X.value.map((l, o) => {
|
|
183
|
+
const a = l.series.reduce(
|
|
184
|
+
(u, c) => u + R(c.values).reduce((f, k) => f + k, 0),
|
|
185
185
|
0
|
|
186
186
|
);
|
|
187
187
|
return {
|
|
188
188
|
name: "__ghost__",
|
|
189
|
-
arcOf:
|
|
189
|
+
arcOf: l.name,
|
|
190
190
|
arcOfId: `${p.value}_${o}`,
|
|
191
191
|
id: `ghost_${p.value}_${o}`,
|
|
192
192
|
seriesIndex: -1,
|
|
193
193
|
datasetIndex: o,
|
|
194
194
|
color: "transparent",
|
|
195
|
-
value:
|
|
196
|
-
fullValue:
|
|
195
|
+
value: a,
|
|
196
|
+
fullValue: a,
|
|
197
197
|
absoluteValues: [],
|
|
198
198
|
ghost: !0
|
|
199
199
|
};
|
|
200
|
-
}), await
|
|
200
|
+
}), await xt(), Rt(
|
|
201
201
|
s,
|
|
202
202
|
e.value.startAnimation.durationMs,
|
|
203
203
|
e.value.startAnimation.staggerMs
|
|
204
204
|
).then(() => {
|
|
205
|
-
|
|
205
|
+
G.value = !1, j.value = [];
|
|
206
206
|
});
|
|
207
207
|
} else
|
|
208
|
-
|
|
208
|
+
G.value = !1;
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
Qe.value = !0,
|
|
210
|
+
va(async () => {
|
|
211
|
+
Qe.value = !0, at(), await tt();
|
|
212
212
|
});
|
|
213
|
-
const
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
213
|
+
const z = wt(null), q = wt(null), Q = $(() => !!e.value.debug);
|
|
214
|
+
function at() {
|
|
215
|
+
if (wa(C.dataset) ? (K({
|
|
216
216
|
componentName: "VueUiNestedDonuts",
|
|
217
217
|
type: "dataset",
|
|
218
|
-
debug:
|
|
219
|
-
}),
|
|
220
|
-
const t =
|
|
221
|
-
const { width: s, height:
|
|
218
|
+
debug: Q.value
|
|
219
|
+
}), fe.value = !1, $e.value = !0) : $e.value = e.value.loading, e.value.responsive) {
|
|
220
|
+
const t = Ta(() => {
|
|
221
|
+
const { width: s, height: l } = Sa({
|
|
222
222
|
chart: I.value,
|
|
223
223
|
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
224
|
-
legend: e.value.style.chart.legend.show ?
|
|
224
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
225
225
|
source: Ye.value,
|
|
226
226
|
noTitle: We.value,
|
|
227
227
|
padding: et.value
|
|
228
228
|
});
|
|
229
229
|
requestAnimationFrame(() => {
|
|
230
|
-
h.value.width = s, h.value.height =
|
|
230
|
+
h.value.width = s, h.value.height = l;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
|
|
233
|
+
z.value && (q.value && z.value.unobserve(q.value), z.value.disconnect()), z.value = new ResizeObserver(t), q.value = I.value.parentNode, z.value.observe(q.value);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
ha(() => {
|
|
237
|
+
z.value && (q.value && z.value.unobserve(q.value), z.value.disconnect());
|
|
238
238
|
});
|
|
239
|
-
const { isPrinting:
|
|
239
|
+
const { isPrinting: lt, isImaging: ot, generatePdf: st, generateImage: nt } = Da({
|
|
240
240
|
elementId: `nested_donuts_${p.value}`,
|
|
241
241
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
242
242
|
options: e.value.userOptions.print
|
|
243
|
-
}),
|
|
243
|
+
}), Gt = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Yt = $(() => $a(e.value.customPalette)), _ = v({
|
|
244
244
|
dataLabels: {
|
|
245
245
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
246
246
|
},
|
|
@@ -248,7 +248,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
248
248
|
showTooltip: e.value.style.chart.tooltip.show
|
|
249
249
|
});
|
|
250
250
|
le(e, () => {
|
|
251
|
-
|
|
251
|
+
_.value = {
|
|
252
252
|
dataLabels: {
|
|
253
253
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
254
254
|
},
|
|
@@ -256,169 +256,187 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
256
256
|
showTooltip: e.value.style.chart.tooltip.show
|
|
257
257
|
};
|
|
258
258
|
}, { immediate: !0 });
|
|
259
|
-
const h =
|
|
259
|
+
const h = v({
|
|
260
260
|
width: e.value.style.chart.width,
|
|
261
261
|
height: e.value.style.chart.height
|
|
262
|
-
}),
|
|
263
|
-
function
|
|
264
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
262
|
+
}), ut = Nt;
|
|
263
|
+
function Wt({ datapoint: t, index: s, seriesIndex: l }) {
|
|
264
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), ut("selectDatapoint", { datapoint: t, index: s });
|
|
265
265
|
}
|
|
266
266
|
function rt({
|
|
267
267
|
from: t,
|
|
268
268
|
to: s,
|
|
269
|
-
duration:
|
|
269
|
+
duration: l,
|
|
270
270
|
onUpdate: o,
|
|
271
|
-
onDone:
|
|
272
|
-
easing:
|
|
271
|
+
onDone: a,
|
|
272
|
+
easing: u = Tt
|
|
273
273
|
}) {
|
|
274
|
-
const
|
|
275
|
-
function f(
|
|
276
|
-
const d = Math.min((
|
|
277
|
-
o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1),
|
|
274
|
+
const c = performance.now();
|
|
275
|
+
function f(k) {
|
|
276
|
+
const d = Math.min((k - c) / l, 1), m = u(d), S = t + (s - t) * m;
|
|
277
|
+
o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), a && a());
|
|
278
278
|
}
|
|
279
279
|
requestAnimationFrame(f);
|
|
280
280
|
}
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
[null, void 0].includes(s.name) &&
|
|
281
|
+
const w = v([]), O = $(() => {
|
|
282
|
+
we.value, X.value.forEach((s, l) => {
|
|
283
|
+
[null, void 0].includes(s.name) && K({
|
|
284
284
|
componentName: "VueUiNestedDonuts",
|
|
285
285
|
type: "datasetSerieAttribute",
|
|
286
286
|
property: "name",
|
|
287
|
-
index:
|
|
288
|
-
debug:
|
|
289
|
-
}), [null, void 0].includes(s.series) ?
|
|
287
|
+
index: l,
|
|
288
|
+
debug: Q.value
|
|
289
|
+
}), [null, void 0].includes(s.series) ? K({
|
|
290
290
|
componentName: "VueUiNestedDonuts",
|
|
291
291
|
type: "datasetSerieAttribute",
|
|
292
292
|
property: "series",
|
|
293
|
-
index:
|
|
294
|
-
debug:
|
|
295
|
-
}) : s.series.length === 0 ?
|
|
293
|
+
index: l,
|
|
294
|
+
debug: Q.value
|
|
295
|
+
}) : s.series.length === 0 ? K({
|
|
296
296
|
componentName: "VueUiNestedDonuts",
|
|
297
297
|
type: "datasetAttributeEmpty",
|
|
298
|
-
property: `series at index ${
|
|
299
|
-
debug:
|
|
300
|
-
}) : s.series.forEach((o,
|
|
301
|
-
[null, void 0].includes(o.name) &&
|
|
298
|
+
property: `series at index ${l}`,
|
|
299
|
+
debug: Q.value
|
|
300
|
+
}) : s.series.forEach((o, a) => {
|
|
301
|
+
[null, void 0].includes(o.name) && K({
|
|
302
302
|
componentName: "VueUiNestedDonuts",
|
|
303
303
|
type: "datasetSerieAttribute",
|
|
304
304
|
property: "name",
|
|
305
|
-
index:
|
|
305
|
+
index: a,
|
|
306
306
|
key: "serie",
|
|
307
|
-
debug:
|
|
308
|
-
}), [null, void 0].includes(o.values) &&
|
|
307
|
+
debug: Q.value
|
|
308
|
+
}), [null, void 0].includes(o.values) && K({
|
|
309
309
|
componentName: "VueUiNestedDonuts",
|
|
310
310
|
type: "datasetSerieAttribute",
|
|
311
311
|
property: "values",
|
|
312
|
-
index:
|
|
312
|
+
index: a,
|
|
313
313
|
key: "serie",
|
|
314
|
-
debug:
|
|
314
|
+
debug: Q.value
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
318
|
let t = 0;
|
|
319
|
-
return
|
|
319
|
+
return X.value.map((s, l) => ({
|
|
320
320
|
...s,
|
|
321
|
-
total: s.series.filter((o) => !
|
|
322
|
-
datasetIndex:
|
|
323
|
-
id: `${p.value}_${
|
|
324
|
-
series: s.series.map((o,
|
|
325
|
-
const
|
|
321
|
+
total: s.series.filter((o) => !w.value.includes(o.id)).map((o) => R(o.values).reduce((a, u) => a + u, 0)).reduce((o, a) => o + a, 0),
|
|
322
|
+
datasetIndex: l,
|
|
323
|
+
id: `${p.value}_${l}`,
|
|
324
|
+
series: s.series.map((o, a) => {
|
|
325
|
+
const u = R(o.values).reduce((c, f) => c + f, 0);
|
|
326
326
|
return {
|
|
327
327
|
name: o.name,
|
|
328
328
|
arcOf: s.name,
|
|
329
|
-
arcOfId: `${p.value}_${
|
|
330
|
-
id: `${p.value}_${
|
|
331
|
-
seriesIndex:
|
|
332
|
-
datasetIndex:
|
|
333
|
-
color:
|
|
334
|
-
value:
|
|
329
|
+
arcOfId: `${p.value}_${l}`,
|
|
330
|
+
id: `${p.value}_${l}_${a}`,
|
|
331
|
+
seriesIndex: a,
|
|
332
|
+
datasetIndex: l,
|
|
333
|
+
color: ka(o.color) || Yt.value[a] || ze[a % ze.length],
|
|
334
|
+
value: G.value ? Y.value[t++] ?? 0 : u,
|
|
335
335
|
absoluteValues: o.values || []
|
|
336
336
|
};
|
|
337
337
|
})
|
|
338
338
|
}));
|
|
339
339
|
});
|
|
340
|
-
le(() =>
|
|
341
|
-
Array.isArray(t) && t.length > 0 && (
|
|
340
|
+
le(() => C.dataset, (t) => {
|
|
341
|
+
Array.isArray(t) && t.length > 0 && ($e.value = !1);
|
|
342
342
|
}, { immediate: !0 });
|
|
343
|
-
const
|
|
344
|
-
const
|
|
343
|
+
const P = $(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = $(() => [...O.value].map((t, s) => {
|
|
344
|
+
const l = t.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
|
|
345
345
|
return {
|
|
346
346
|
...t,
|
|
347
|
-
total:
|
|
348
|
-
series: t.series.filter((o) => !
|
|
347
|
+
total: l,
|
|
348
|
+
series: t.series.filter((o) => !w.value.includes(o.id)).map((o) => ({
|
|
349
349
|
...o,
|
|
350
|
-
proportion: o.value /
|
|
350
|
+
proportion: o.value / l
|
|
351
351
|
}))
|
|
352
352
|
};
|
|
353
353
|
}));
|
|
354
|
-
function
|
|
354
|
+
function Xt(t, s, l) {
|
|
355
355
|
let o = 0;
|
|
356
|
-
for (let
|
|
357
|
-
|
|
356
|
+
for (let a = 0; a < t.length; a += 1)
|
|
357
|
+
l.includes(t[a]) && (o += 1);
|
|
358
358
|
return o < s;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const L = v(it.value);
|
|
361
361
|
le(
|
|
362
362
|
() => it.value,
|
|
363
|
-
(t) =>
|
|
363
|
+
(t) => L.value = t
|
|
364
364
|
);
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
const s =
|
|
368
|
-
(d,
|
|
369
|
-
value:
|
|
370
|
-
id: `${p.value}_${
|
|
371
|
-
arcOfId: `${p.value}_${
|
|
365
|
+
function H(t) {
|
|
366
|
+
ut("selectLegend", t);
|
|
367
|
+
const s = C.dataset.flatMap(
|
|
368
|
+
(d, m) => d.series.map((S, Se) => ({
|
|
369
|
+
value: R(S.values).reduce((Oe, ce) => Oe + ce, 0),
|
|
370
|
+
id: `${p.value}_${m}_${Se}`,
|
|
371
|
+
arcOfId: `${p.value}_${m}`
|
|
372
372
|
}))
|
|
373
373
|
).find((d) => d.id === t.id);
|
|
374
374
|
if (!s) return;
|
|
375
|
-
const
|
|
376
|
-
let
|
|
377
|
-
const
|
|
375
|
+
const l = O.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = L.value.flatMap((d) => d.series).find((d) => d.id === t.id);
|
|
376
|
+
let u = o ? o.value : 0;
|
|
377
|
+
const c = O.value.find(
|
|
378
378
|
(d) => d.id === s.arcOfId
|
|
379
379
|
);
|
|
380
|
-
if (!
|
|
381
|
-
const f =
|
|
380
|
+
if (!c) return;
|
|
381
|
+
const f = c.series.map((d) => d.id), k = Xt(
|
|
382
382
|
f,
|
|
383
383
|
f.length - 1,
|
|
384
|
-
|
|
384
|
+
w.value
|
|
385
385
|
);
|
|
386
|
-
|
|
387
|
-
from:
|
|
388
|
-
to:
|
|
386
|
+
w.value.includes(t.id) ? (w.value = w.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
|
|
387
|
+
from: u,
|
|
388
|
+
to: l,
|
|
389
389
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
390
390
|
onUpdate: (d) => {
|
|
391
|
-
|
|
392
|
-
...
|
|
393
|
-
series:
|
|
391
|
+
L.value = L.value.map((m) => ({
|
|
392
|
+
...m,
|
|
393
|
+
series: m.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
394
394
|
}));
|
|
395
395
|
}
|
|
396
|
-
}) :
|
|
396
|
+
}) : L.value = L.value.map((d) => ({
|
|
397
397
|
...d,
|
|
398
|
-
series: d.series.map((
|
|
399
|
-
}))) :
|
|
400
|
-
from:
|
|
398
|
+
series: d.series.map((m) => m.id === t.id ? { ...m, value: l } : m)
|
|
399
|
+
}))) : k && (e.value.serieToggleAnimation.show ? rt({
|
|
400
|
+
from: u,
|
|
401
401
|
to: 0,
|
|
402
402
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
403
403
|
onUpdate: (d) => {
|
|
404
|
-
|
|
405
|
-
...
|
|
406
|
-
series:
|
|
404
|
+
L.value = L.value.map((m) => ({
|
|
405
|
+
...m,
|
|
406
|
+
series: m.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
407
407
|
}));
|
|
408
408
|
},
|
|
409
409
|
onDone: () => {
|
|
410
|
-
|
|
410
|
+
w.value.push(t.id);
|
|
411
411
|
}
|
|
412
|
-
}) : (
|
|
412
|
+
}) : (L.value = L.value.map((d) => ({
|
|
413
413
|
...d,
|
|
414
|
-
series: d.series.map((
|
|
415
|
-
})),
|
|
414
|
+
series: d.series.map((m) => m.id === t.id ? { ...m, value: 0 } : m)
|
|
415
|
+
})), w.value.push(t.id)));
|
|
416
416
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
})
|
|
417
|
+
function dt(t) {
|
|
418
|
+
if (!O.value.length)
|
|
419
|
+
return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
|
|
420
|
+
const s = O.value.flatMap((l) => l.series).filter((l) => l.name === t);
|
|
421
|
+
return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
|
|
422
|
+
}
|
|
423
|
+
function Ht(t) {
|
|
424
|
+
const s = dt(t);
|
|
425
|
+
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
426
|
+
w.value.includes(l.id) && H({ id: l.id });
|
|
427
|
+
}) : w.value.includes(s.id) && H({ id: s.id }));
|
|
428
|
+
}
|
|
429
|
+
function qt(t) {
|
|
430
|
+
const s = dt(t);
|
|
431
|
+
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
432
|
+
w.value.includes(l.id) || H({ id: l.id });
|
|
433
|
+
}) : w.value.includes(s.id) || H({ id: s.id }));
|
|
434
|
+
}
|
|
435
|
+
const se = $(() => P.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), ct = $(() => L.value.map((t, s) => P.value - s * P.value / O.value.length)), J = $(() => L.value.map((t, s) => {
|
|
436
|
+
const l = Math.abs(t.series.map((k) => k.value).reduce((k, d) => k + d, 0)) > 0, o = P.value - s * P.value / L.value.length, a = G.value ? j.value.find((k) => k.datasetIndex === s) : null, u = [...t.series, ...a ? [a] : []].map((k) => ({
|
|
437
|
+
...k,
|
|
438
|
+
value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
|
|
439
|
+
})), c = Be(
|
|
422
440
|
{ series: [
|
|
423
441
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
424
442
|
] },
|
|
@@ -431,18 +449,18 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
431
449
|
1,
|
|
432
450
|
360,
|
|
433
451
|
105.25,
|
|
434
|
-
|
|
452
|
+
se.value
|
|
435
453
|
), f = `M ${h.value.width / 2},${h.value.height / 2 + o}
|
|
436
454
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
437
455
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
438
456
|
return {
|
|
439
457
|
...t,
|
|
440
|
-
hasData:
|
|
458
|
+
hasData: l,
|
|
441
459
|
radius: o,
|
|
442
|
-
skeleton:
|
|
460
|
+
skeleton: c,
|
|
443
461
|
fullCirclePath: f,
|
|
444
462
|
donut: Be(
|
|
445
|
-
{ series:
|
|
463
|
+
{ series: u },
|
|
446
464
|
h.value.width / 2,
|
|
447
465
|
h.value.height / 2,
|
|
448
466
|
o,
|
|
@@ -452,84 +470,84 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
452
470
|
1,
|
|
453
471
|
360,
|
|
454
472
|
105.25,
|
|
455
|
-
|
|
473
|
+
se.value
|
|
456
474
|
)
|
|
457
475
|
};
|
|
458
|
-
})), vt =
|
|
459
|
-
const
|
|
476
|
+
})), vt = $(() => [...O.value].map((t, s) => {
|
|
477
|
+
const l = s * P.value / O.value.length;
|
|
460
478
|
return {
|
|
461
|
-
sizeRatio:
|
|
479
|
+
sizeRatio: l,
|
|
462
480
|
donut: Be(
|
|
463
481
|
{ series: [{ value: 1 }] },
|
|
464
482
|
h.value.width / 2,
|
|
465
483
|
h.value.height / 2,
|
|
466
|
-
|
|
467
|
-
|
|
484
|
+
P.value - l,
|
|
485
|
+
P.value - l,
|
|
468
486
|
1.99999,
|
|
469
487
|
2,
|
|
470
488
|
1,
|
|
471
489
|
360,
|
|
472
490
|
105.25,
|
|
473
|
-
|
|
491
|
+
P.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
474
492
|
)[0]
|
|
475
493
|
};
|
|
476
|
-
})),
|
|
477
|
-
function
|
|
478
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
494
|
+
})), ht = v(null), ne = v(null), ue = v(null), Le = v(null);
|
|
495
|
+
function Qt({ datapoint: t, seriesIndex: s }) {
|
|
496
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), pe.value = !1, ht.value = null, ge.value = null, ne.value = null, ue.value = null;
|
|
479
497
|
}
|
|
480
|
-
function
|
|
481
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
498
|
+
function Jt({ datapoint: t, _relativeIndex: s, seriesIndex: l }) {
|
|
499
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ht.value = t.arcOfId, ne.value = t.id, ue.value = l, ge.value = t.id, Le.value = {
|
|
482
500
|
datapoint: t,
|
|
483
|
-
seriesIndex:
|
|
484
|
-
series:
|
|
501
|
+
seriesIndex: l,
|
|
502
|
+
series: L.value,
|
|
485
503
|
config: e.value
|
|
486
504
|
};
|
|
487
505
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
488
|
-
if (
|
|
506
|
+
if (At(o) && Aa(
|
|
489
507
|
() => o({
|
|
490
|
-
seriesIndex:
|
|
508
|
+
seriesIndex: l,
|
|
491
509
|
datapoint: t,
|
|
492
|
-
series:
|
|
510
|
+
series: L.value,
|
|
493
511
|
config: e.value
|
|
494
512
|
})
|
|
495
513
|
))
|
|
496
|
-
|
|
497
|
-
seriesIndex:
|
|
514
|
+
ye.value = o({
|
|
515
|
+
seriesIndex: l,
|
|
498
516
|
datapoint: t,
|
|
499
|
-
series:
|
|
517
|
+
series: L.value,
|
|
500
518
|
config: e.value
|
|
501
519
|
});
|
|
502
520
|
else {
|
|
503
|
-
let
|
|
504
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
if (!
|
|
508
|
-
|
|
509
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f <
|
|
521
|
+
let a = "";
|
|
522
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
|
|
523
|
+
const u = L.value.map((c) => c.series.find((f) => f.seriesIndex === l));
|
|
524
|
+
u.forEach((c, f) => {
|
|
525
|
+
if (!c) return "";
|
|
526
|
+
a += `
|
|
527
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
510
528
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
511
529
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
512
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
530
|
+
<circle cx="10" cy="10" r="10" fill="${c.color}"/>
|
|
513
531
|
</svg>
|
|
514
532
|
<span>
|
|
515
|
-
${
|
|
533
|
+
${c.arcOf ?? ""} - ${c.name}
|
|
516
534
|
</span>
|
|
517
535
|
</div>
|
|
518
536
|
<span>
|
|
519
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
537
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${oe(
|
|
520
538
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
521
539
|
t.value,
|
|
522
|
-
|
|
540
|
+
F({
|
|
523
541
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
524
542
|
v: t.value,
|
|
525
543
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
526
544
|
r: e.value.style.chart.tooltip.roundingValue
|
|
527
545
|
}),
|
|
528
|
-
{ datapoint: t, seriesIndex:
|
|
546
|
+
{ datapoint: t, seriesIndex: l }
|
|
529
547
|
)}
|
|
530
548
|
</b>` : ""}
|
|
531
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
532
|
-
v:
|
|
549
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
550
|
+
v: c.proportion * 100,
|
|
533
551
|
s: "%",
|
|
534
552
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
535
553
|
})})` : ""}
|
|
@@ -538,146 +556,146 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
538
556
|
`;
|
|
539
557
|
});
|
|
540
558
|
} else
|
|
541
|
-
|
|
559
|
+
a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, a += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (a += `<b>${oe(
|
|
542
560
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
543
561
|
t.value,
|
|
544
|
-
|
|
562
|
+
F({
|
|
545
563
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
546
564
|
v: t.value,
|
|
547
565
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
548
566
|
r: e.value.style.chart.tooltip.roundingValue
|
|
549
567
|
}),
|
|
550
|
-
{ datapoint: t, seriesIndex:
|
|
551
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
568
|
+
{ datapoint: t, seriesIndex: l }
|
|
569
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? a += `<span>(${F({
|
|
552
570
|
v: t.proportion * 100,
|
|
553
571
|
s: "%",
|
|
554
572
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
555
|
-
})})</span></div>` :
|
|
573
|
+
})})</span></div>` : a += `<b>${F({
|
|
556
574
|
v: t.proportion * 100,
|
|
557
575
|
s: "%",
|
|
558
576
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
559
577
|
})}</b></div>`);
|
|
560
|
-
|
|
578
|
+
ye.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${a}</div>`;
|
|
561
579
|
}
|
|
562
|
-
|
|
580
|
+
pe.value = !0;
|
|
563
581
|
}
|
|
564
582
|
function xe(t) {
|
|
565
583
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
566
584
|
}
|
|
567
|
-
function
|
|
585
|
+
function ft(t, s) {
|
|
568
586
|
if (!e.value.useBlurOnHover)
|
|
569
587
|
return "";
|
|
570
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
588
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
|
|
571
589
|
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${p.value})`;
|
|
572
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
573
|
-
return [null, void 0].includes(
|
|
590
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
|
|
591
|
+
return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${p.value})`;
|
|
574
592
|
}
|
|
575
|
-
const
|
|
576
|
-
const
|
|
577
|
-
(
|
|
578
|
-
), o =
|
|
579
|
-
const
|
|
580
|
-
(
|
|
593
|
+
const re = $(() => O.value.map((t, s) => {
|
|
594
|
+
const l = t.series.filter(
|
|
595
|
+
(a) => !w.value.includes(a.id)
|
|
596
|
+
), o = G.value ? l.map((a) => {
|
|
597
|
+
const u = X.value[s].series.findIndex(
|
|
598
|
+
(c) => c.name === a.name
|
|
581
599
|
);
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
).reduce((
|
|
585
|
-
}).reduce((
|
|
586
|
-
return t.series.map((
|
|
587
|
-
const
|
|
588
|
-
(d,
|
|
600
|
+
return R(
|
|
601
|
+
X.value[s].series[u].values
|
|
602
|
+
).reduce((c, f) => c + f, 0);
|
|
603
|
+
}).reduce((a, u) => a + u, 0) : l.map((a) => a.value).reduce((a, u) => a + u, 0);
|
|
604
|
+
return t.series.map((a, u) => {
|
|
605
|
+
const c = R(X.value[s].series[u].values).reduce(
|
|
606
|
+
(d, m) => d + m,
|
|
589
607
|
0
|
|
590
|
-
), f =
|
|
608
|
+
), f = G.value ? c : a.value, k = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? oe(
|
|
591
609
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
592
610
|
f,
|
|
593
|
-
|
|
611
|
+
F({
|
|
594
612
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
595
613
|
v: f,
|
|
596
614
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
597
615
|
r: e.value.style.chart.legend.roundingValue
|
|
598
616
|
}),
|
|
599
|
-
{ datapoint:
|
|
600
|
-
) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
617
|
+
{ datapoint: a, seriesIndex: u }
|
|
618
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(a.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : F({
|
|
601
619
|
v: f / o * 100,
|
|
602
620
|
s: "%",
|
|
603
621
|
r: e.value.style.chart.legend.roundingPercentage
|
|
604
622
|
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
|
|
605
623
|
return {
|
|
606
|
-
name:
|
|
607
|
-
color:
|
|
624
|
+
name: a.name,
|
|
625
|
+
color: a.color,
|
|
608
626
|
value: f,
|
|
609
|
-
display:
|
|
610
|
-
svgDisplay: `${
|
|
627
|
+
display: k,
|
|
628
|
+
svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${k}`,
|
|
611
629
|
shape: "circle",
|
|
612
|
-
arcOf:
|
|
613
|
-
id:
|
|
614
|
-
seriesIndex:
|
|
630
|
+
arcOf: a.arcOf,
|
|
631
|
+
id: a.id,
|
|
632
|
+
seriesIndex: u,
|
|
615
633
|
datasetIndex: s,
|
|
616
634
|
total: o,
|
|
617
|
-
opacity:
|
|
618
|
-
segregate: () =>
|
|
619
|
-
isSegregated:
|
|
635
|
+
opacity: w.value.includes(a.id) ? 0.5 : 1,
|
|
636
|
+
segregate: () => H(a),
|
|
637
|
+
isSegregated: w.value.includes(a.id)
|
|
620
638
|
};
|
|
621
639
|
});
|
|
622
|
-
})),
|
|
640
|
+
})), Kt = $(() => ({
|
|
623
641
|
cy: "nested-donuts-legend",
|
|
624
642
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
625
643
|
color: e.value.style.chart.legend.color,
|
|
626
644
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
627
645
|
paddingBottom: 12,
|
|
628
646
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
629
|
-
})),
|
|
630
|
-
const t =
|
|
631
|
-
name: `${
|
|
647
|
+
})), M = $(() => {
|
|
648
|
+
const t = L.value.flatMap((l) => l.series.map((o) => ({
|
|
649
|
+
name: `${l.name} - ${o.name}`,
|
|
632
650
|
color: o.color,
|
|
633
|
-
total:
|
|
634
|
-
}))), s =
|
|
651
|
+
total: l.total
|
|
652
|
+
}))), s = L.value.flatMap((l) => l.series.map((o) => o.value));
|
|
635
653
|
return { head: t, body: s };
|
|
636
654
|
});
|
|
637
655
|
function _e(t = null) {
|
|
638
|
-
|
|
639
|
-
const s =
|
|
640
|
-
[
|
|
641
|
-
[
|
|
656
|
+
xt(() => {
|
|
657
|
+
const s = M.value.head.map((a, u) => [
|
|
658
|
+
[a.name],
|
|
659
|
+
[M.value.body[u]],
|
|
642
660
|
[
|
|
643
|
-
isNaN(
|
|
661
|
+
isNaN(M.value.body[u] / a.total) ? "-" : M.value.body[u] / a.total * 100
|
|
644
662
|
]
|
|
645
|
-
]),
|
|
663
|
+
]), l = [
|
|
646
664
|
[e.value.style.chart.title.text],
|
|
647
665
|
[e.value.style.chart.title.subtitle.text],
|
|
648
666
|
[[""], ["val"], ["%"]]
|
|
649
|
-
].concat(s), o =
|
|
650
|
-
t ? t(o) :
|
|
667
|
+
].concat(s), o = xa(l);
|
|
668
|
+
t ? t(o) : _a({
|
|
651
669
|
csvContent: o,
|
|
652
670
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
653
671
|
});
|
|
654
672
|
});
|
|
655
673
|
}
|
|
656
|
-
const
|
|
674
|
+
const ie = $(() => {
|
|
657
675
|
const t = [
|
|
658
676
|
e.value.table.columnNames.series,
|
|
659
677
|
e.value.table.columnNames.value,
|
|
660
678
|
e.value.table.columnNames.percentage
|
|
661
|
-
], s =
|
|
662
|
-
const
|
|
679
|
+
], s = M.value.head.map((a, u) => {
|
|
680
|
+
const c = F({
|
|
663
681
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
664
|
-
v:
|
|
682
|
+
v: M.value.body[u],
|
|
665
683
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
666
684
|
r: e.value.table.td.roundingValue
|
|
667
685
|
});
|
|
668
686
|
return [
|
|
669
687
|
{
|
|
670
|
-
color:
|
|
671
|
-
name:
|
|
688
|
+
color: a.color,
|
|
689
|
+
name: a.name
|
|
672
690
|
},
|
|
673
|
-
|
|
674
|
-
isNaN(
|
|
675
|
-
v:
|
|
691
|
+
c,
|
|
692
|
+
isNaN(M.value.body[u] / a.total) ? "-" : F({
|
|
693
|
+
v: M.value.body[u] / a.total * 100,
|
|
676
694
|
s: "%",
|
|
677
695
|
r: e.value.table.td.roundingPercentage
|
|
678
696
|
})
|
|
679
697
|
];
|
|
680
|
-
}),
|
|
698
|
+
}), l = {
|
|
681
699
|
th: {
|
|
682
700
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
683
701
|
color: e.value.table.th.color,
|
|
@@ -698,54 +716,54 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
698
716
|
],
|
|
699
717
|
head: t,
|
|
700
718
|
body: s,
|
|
701
|
-
config:
|
|
719
|
+
config: l
|
|
702
720
|
};
|
|
703
721
|
});
|
|
704
|
-
function
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
function ft() {
|
|
708
|
-
L.value.showTable = !L.value.showTable;
|
|
722
|
+
function Zt() {
|
|
723
|
+
return O.value;
|
|
709
724
|
}
|
|
710
725
|
function pt() {
|
|
711
|
-
|
|
726
|
+
_.value.showTable = !_.value.showTable;
|
|
712
727
|
}
|
|
713
728
|
function yt() {
|
|
714
|
-
|
|
729
|
+
_.value.dataLabels.show = !_.value.dataLabels.show;
|
|
715
730
|
}
|
|
716
|
-
|
|
731
|
+
function gt() {
|
|
732
|
+
_.value.showTooltip = !_.value.showTooltip;
|
|
733
|
+
}
|
|
734
|
+
const de = v(!1);
|
|
717
735
|
function Ae() {
|
|
718
|
-
|
|
736
|
+
de.value = !de.value;
|
|
719
737
|
}
|
|
720
|
-
async function
|
|
738
|
+
async function jt({ scale: t = 2 } = {}) {
|
|
721
739
|
if (!I.value) return;
|
|
722
|
-
const { width: s, height:
|
|
740
|
+
const { width: s, height: l } = I.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: u } = await za({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
723
741
|
return {
|
|
724
|
-
imageUri:
|
|
725
|
-
base64:
|
|
742
|
+
imageUri: a,
|
|
743
|
+
base64: u,
|
|
726
744
|
title: e.value.style.chart.title.text,
|
|
727
745
|
width: s,
|
|
728
|
-
height:
|
|
746
|
+
height: l,
|
|
729
747
|
aspectRatio: o
|
|
730
748
|
};
|
|
731
749
|
}
|
|
732
|
-
const Te =
|
|
733
|
-
function
|
|
750
|
+
const Te = v(null);
|
|
751
|
+
function ea() {
|
|
734
752
|
if (!Te.value) return;
|
|
735
|
-
const { x: t, y: s, width:
|
|
736
|
-
|
|
753
|
+
const { x: t, y: s, width: l, height: o } = Te.value.getBBox();
|
|
754
|
+
te.value && te.value.setAttribute("viewBox", `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`);
|
|
737
755
|
}
|
|
738
|
-
const
|
|
739
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
756
|
+
const ae = $(() => {
|
|
757
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = _.value.showTable;
|
|
740
758
|
return {
|
|
741
|
-
component: t ?
|
|
759
|
+
component: t ? Et : Pt,
|
|
742
760
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
743
761
|
props: t ? {
|
|
744
762
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
745
763
|
color: e.value.table.th.color,
|
|
746
764
|
headerColor: e.value.table.th.color,
|
|
747
765
|
headerBg: e.value.table.th.backgroundColor,
|
|
748
|
-
isFullscreen:
|
|
766
|
+
isFullscreen: W.value,
|
|
749
767
|
fullscreenParent: I.value,
|
|
750
768
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
751
769
|
} : {
|
|
@@ -765,72 +783,94 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
765
783
|
}
|
|
766
784
|
};
|
|
767
785
|
});
|
|
768
|
-
le(() =>
|
|
769
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
786
|
+
le(() => _.value.showTable, (t) => {
|
|
787
|
+
e.value.table.show || (t && e.value.table.useDialog && ee.value ? ee.value.open() : "close" in ee.value && ee.value.close());
|
|
770
788
|
});
|
|
771
|
-
function
|
|
772
|
-
|
|
789
|
+
function bt() {
|
|
790
|
+
_.value.showTable = !1, me.value && me.value.setTableIconState(!1);
|
|
773
791
|
}
|
|
774
|
-
const
|
|
792
|
+
const ta = $(() => e.value.style.chart.backgroundColor), aa = $(() => e.value.style.chart.legend), la = $(() => e.value.style.chart.title), oa = $(() => re.value.flat().map((t) => ({
|
|
775
793
|
...t,
|
|
776
794
|
name: t.svgDisplay
|
|
777
|
-
}))), { exportSvg:
|
|
778
|
-
svg:
|
|
779
|
-
title:
|
|
780
|
-
legend:
|
|
781
|
-
legendItems:
|
|
782
|
-
backgroundColor:
|
|
795
|
+
}))), { exportSvg: sa, getSvg: na } = Ia({
|
|
796
|
+
svg: te,
|
|
797
|
+
title: la,
|
|
798
|
+
legend: aa,
|
|
799
|
+
legendItems: oa,
|
|
800
|
+
backgroundColor: ta
|
|
783
801
|
});
|
|
784
|
-
async function
|
|
802
|
+
async function mt({ isCb: t }) {
|
|
785
803
|
if (t) {
|
|
786
|
-
const { blob: s, url:
|
|
787
|
-
e.value.userOptions.callbacks.svg({ blob: s, url:
|
|
804
|
+
const { blob: s, url: l, text: o, dataUrl: a } = await na();
|
|
805
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: l, text: o, dataUrl: a });
|
|
788
806
|
} else
|
|
789
|
-
|
|
807
|
+
sa();
|
|
790
808
|
}
|
|
791
|
-
return
|
|
792
|
-
autoSize:
|
|
793
|
-
getData:
|
|
794
|
-
getImage:
|
|
809
|
+
return Ft({
|
|
810
|
+
autoSize: ea,
|
|
811
|
+
getData: Zt,
|
|
812
|
+
getImage: jt,
|
|
795
813
|
generatePdf: st,
|
|
796
814
|
generateCsv: _e,
|
|
797
|
-
generateImage:
|
|
798
|
-
generateSvg:
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
815
|
+
generateImage: nt,
|
|
816
|
+
generateSvg: mt,
|
|
817
|
+
hideSeries: qt,
|
|
818
|
+
showSeries: Ht,
|
|
819
|
+
toggleTable: pt,
|
|
820
|
+
toggleLabels: yt,
|
|
821
|
+
toggleTooltip: gt,
|
|
802
822
|
toggleAnnotator: Ae,
|
|
803
823
|
toggleFullscreen: Je
|
|
804
|
-
}), (t, s) => (
|
|
824
|
+
}), (t, s) => (n(), r("div", {
|
|
805
825
|
ref_key: "nestedDonutsChart",
|
|
806
826
|
ref: I,
|
|
807
|
-
class:
|
|
808
|
-
style:
|
|
827
|
+
class: E(`vue-data-ui-component vue-ui-nested-donuts ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
828
|
+
style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
809
829
|
id: `nested_donuts_${p.value}`,
|
|
810
830
|
onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
|
|
811
831
|
onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
|
|
812
832
|
}, [
|
|
813
|
-
e.value.userOptions.buttons.annotator ? (
|
|
833
|
+
e.value.userOptions.buttons.annotator ? (n(), U(i(Mt), {
|
|
814
834
|
key: 0,
|
|
815
|
-
svgRef: i(
|
|
835
|
+
svgRef: i(te),
|
|
816
836
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
817
837
|
color: e.value.style.chart.color,
|
|
818
|
-
active:
|
|
838
|
+
active: de.value,
|
|
819
839
|
onClose: Ae
|
|
820
|
-
},
|
|
821
|
-
|
|
840
|
+
}, {
|
|
841
|
+
"annotator-action-close": g(() => [
|
|
842
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
843
|
+
]),
|
|
844
|
+
"annotator-action-color": g(({ color: l }) => [
|
|
845
|
+
b(t.$slots, "annotator-action-color", N(D({ color: l })), void 0, !0)
|
|
846
|
+
]),
|
|
847
|
+
"annotator-action-draw": g(({ mode: l }) => [
|
|
848
|
+
b(t.$slots, "annotator-action-draw", N(D({ mode: l })), void 0, !0)
|
|
849
|
+
]),
|
|
850
|
+
"annotator-action-undo": g(({ disabled: l }) => [
|
|
851
|
+
b(t.$slots, "annotator-action-undo", N(D({ disabled: l })), void 0, !0)
|
|
852
|
+
]),
|
|
853
|
+
"annotator-action-redo": g(({ disabled: l }) => [
|
|
854
|
+
b(t.$slots, "annotator-action-redo", N(D({ disabled: l })), void 0, !0)
|
|
855
|
+
]),
|
|
856
|
+
"annotator-action-delete": g(({ disabled: l }) => [
|
|
857
|
+
b(t.$slots, "annotator-action-delete", N(D({ disabled: l })), void 0, !0)
|
|
858
|
+
]),
|
|
859
|
+
_: 3
|
|
860
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
861
|
+
Gt.value ? (n(), r("div", {
|
|
822
862
|
key: 1,
|
|
823
863
|
ref_key: "noTitle",
|
|
824
864
|
ref: We,
|
|
825
865
|
class: "vue-data-ui-no-title-space",
|
|
826
866
|
style: "height:36px; width: 100%;background:transparent"
|
|
827
|
-
}, null, 512)) :
|
|
828
|
-
e.value.style.chart.title.text ? (
|
|
867
|
+
}, null, 512)) : x("", !0),
|
|
868
|
+
e.value.style.chart.title.text ? (n(), r("div", {
|
|
829
869
|
key: 2,
|
|
830
870
|
ref_key: "chartTitle",
|
|
831
871
|
ref: Ge
|
|
832
872
|
}, [
|
|
833
|
-
(
|
|
873
|
+
(n(), U(Ma, {
|
|
834
874
|
key: `title_${Xe.value}`,
|
|
835
875
|
config: {
|
|
836
876
|
title: {
|
|
@@ -843,17 +883,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
843
883
|
}
|
|
844
884
|
}
|
|
845
885
|
}, null, 8, ["config"]))
|
|
846
|
-
], 512)) :
|
|
886
|
+
], 512)) : x("", !0),
|
|
847
887
|
y("div", {
|
|
848
888
|
id: `legend-top-${p.value}`
|
|
849
|
-
}, null, 8,
|
|
850
|
-
e.value.userOptions.show &&
|
|
889
|
+
}, null, 8, Ga),
|
|
890
|
+
e.value.userOptions.show && fe.value && (i(je) || i(ke)) ? (n(), U(i(zt), {
|
|
851
891
|
ref_key: "userOptionsRef",
|
|
852
|
-
ref:
|
|
853
|
-
key: `user_option_${
|
|
892
|
+
ref: me,
|
|
893
|
+
key: `user_option_${Re.value}`,
|
|
854
894
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
855
895
|
color: e.value.style.chart.color,
|
|
856
|
-
isPrinting: i(
|
|
896
|
+
isPrinting: i(lt),
|
|
857
897
|
isImaging: i(ot),
|
|
858
898
|
uid: p.value,
|
|
859
899
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
@@ -864,119 +904,119 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
864
904
|
hasTable: e.value.userOptions.buttons.table,
|
|
865
905
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
866
906
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
867
|
-
isFullscreen:
|
|
868
|
-
isTooltip:
|
|
907
|
+
isFullscreen: W.value,
|
|
908
|
+
isTooltip: _.value.showTooltip,
|
|
869
909
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
870
910
|
chartElement: I.value,
|
|
871
911
|
position: e.value.userOptions.position,
|
|
872
912
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
873
|
-
isAnnotation:
|
|
913
|
+
isAnnotation: de.value,
|
|
874
914
|
callbacks: e.value.userOptions.callbacks,
|
|
875
915
|
printScale: e.value.userOptions.print.scale,
|
|
876
916
|
tableDialog: e.value.table.useDialog,
|
|
877
917
|
onToggleFullscreen: Je,
|
|
878
918
|
onGeneratePdf: i(st),
|
|
879
919
|
onGenerateCsv: _e,
|
|
880
|
-
onGenerateImage: i(
|
|
881
|
-
onGenerateSvg:
|
|
882
|
-
onToggleTable:
|
|
883
|
-
onToggleLabels:
|
|
884
|
-
onToggleTooltip:
|
|
920
|
+
onGenerateImage: i(nt),
|
|
921
|
+
onGenerateSvg: mt,
|
|
922
|
+
onToggleTable: pt,
|
|
923
|
+
onToggleLabels: yt,
|
|
924
|
+
onToggleTooltip: gt,
|
|
885
925
|
onToggleAnnotator: Ae,
|
|
886
|
-
style:
|
|
887
|
-
visibility: i(je) ? i(
|
|
926
|
+
style: he({
|
|
927
|
+
visibility: i(je) ? i(ke) ? "visible" : "hidden" : "visible"
|
|
888
928
|
})
|
|
889
|
-
},
|
|
929
|
+
}, $t({ _: 2 }, [
|
|
890
930
|
t.$slots.menuIcon ? {
|
|
891
931
|
name: "menuIcon",
|
|
892
|
-
fn:
|
|
893
|
-
|
|
932
|
+
fn: g(({ isOpen: l, color: o }) => [
|
|
933
|
+
b(t.$slots, "menuIcon", N(D({ isOpen: l, color: o })), void 0, !0)
|
|
894
934
|
]),
|
|
895
935
|
key: "0"
|
|
896
936
|
} : void 0,
|
|
897
937
|
t.$slots.optionTooltip ? {
|
|
898
938
|
name: "optionTooltip",
|
|
899
|
-
fn:
|
|
900
|
-
|
|
939
|
+
fn: g(() => [
|
|
940
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
901
941
|
]),
|
|
902
942
|
key: "1"
|
|
903
943
|
} : void 0,
|
|
904
944
|
t.$slots.optionPdf ? {
|
|
905
945
|
name: "optionPdf",
|
|
906
|
-
fn:
|
|
907
|
-
|
|
946
|
+
fn: g(() => [
|
|
947
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
908
948
|
]),
|
|
909
949
|
key: "2"
|
|
910
950
|
} : void 0,
|
|
911
951
|
t.$slots.optionCsv ? {
|
|
912
952
|
name: "optionCsv",
|
|
913
|
-
fn:
|
|
914
|
-
|
|
953
|
+
fn: g(() => [
|
|
954
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
915
955
|
]),
|
|
916
956
|
key: "3"
|
|
917
957
|
} : void 0,
|
|
918
958
|
t.$slots.optionImg ? {
|
|
919
959
|
name: "optionImg",
|
|
920
|
-
fn:
|
|
921
|
-
|
|
960
|
+
fn: g(() => [
|
|
961
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
922
962
|
]),
|
|
923
963
|
key: "4"
|
|
924
964
|
} : void 0,
|
|
925
965
|
t.$slots.optionSvg ? {
|
|
926
966
|
name: "optionSvg",
|
|
927
|
-
fn:
|
|
928
|
-
|
|
967
|
+
fn: g(() => [
|
|
968
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
929
969
|
]),
|
|
930
970
|
key: "5"
|
|
931
971
|
} : void 0,
|
|
932
972
|
t.$slots.optionTable ? {
|
|
933
973
|
name: "optionTable",
|
|
934
|
-
fn:
|
|
935
|
-
|
|
974
|
+
fn: g(() => [
|
|
975
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
936
976
|
]),
|
|
937
977
|
key: "6"
|
|
938
978
|
} : void 0,
|
|
939
979
|
t.$slots.optionLabels ? {
|
|
940
980
|
name: "optionLabels",
|
|
941
|
-
fn:
|
|
942
|
-
|
|
981
|
+
fn: g(() => [
|
|
982
|
+
b(t.$slots, "optionLabels", {}, void 0, !0)
|
|
943
983
|
]),
|
|
944
984
|
key: "7"
|
|
945
985
|
} : void 0,
|
|
946
986
|
t.$slots.optionFullscreen ? {
|
|
947
987
|
name: "optionFullscreen",
|
|
948
|
-
fn:
|
|
949
|
-
|
|
988
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
989
|
+
b(t.$slots, "optionFullscreen", N(D({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
950
990
|
]),
|
|
951
991
|
key: "8"
|
|
952
992
|
} : void 0,
|
|
953
993
|
t.$slots.optionAnnotator ? {
|
|
954
994
|
name: "optionAnnotator",
|
|
955
|
-
fn:
|
|
956
|
-
|
|
995
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
996
|
+
b(t.$slots, "optionAnnotator", N(D({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
957
997
|
]),
|
|
958
998
|
key: "9"
|
|
959
999
|
} : void 0
|
|
960
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
961
|
-
(
|
|
1000
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
1001
|
+
(n(), r("svg", {
|
|
962
1002
|
ref_key: "svgRef",
|
|
963
|
-
ref:
|
|
964
|
-
xmlns: i(
|
|
965
|
-
class:
|
|
966
|
-
"vue-data-ui-fullscreen--on":
|
|
967
|
-
"vue-data-ui-fulscreen--off": !
|
|
1003
|
+
ref: te,
|
|
1004
|
+
xmlns: i(Ca),
|
|
1005
|
+
class: E({
|
|
1006
|
+
"vue-data-ui-fullscreen--on": W.value,
|
|
1007
|
+
"vue-data-ui-fulscreen--off": !W.value,
|
|
968
1008
|
"vue-data-ui-svg": !0
|
|
969
1009
|
}),
|
|
970
1010
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
971
|
-
style:
|
|
1011
|
+
style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
|
|
972
1012
|
}, [
|
|
973
1013
|
y("g", {
|
|
974
1014
|
ref_key: "G",
|
|
975
1015
|
ref: Te,
|
|
976
1016
|
class: "vue-data-ui-g"
|
|
977
1017
|
}, [
|
|
978
|
-
Ve(i(
|
|
979
|
-
t.$slots["chart-background"] ? (
|
|
1018
|
+
Ve(i(Bt)),
|
|
1019
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
980
1020
|
key: 0,
|
|
981
1021
|
x: 0,
|
|
982
1022
|
y: 0,
|
|
@@ -986,10 +1026,10 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
986
1026
|
pointerEvents: "none"
|
|
987
1027
|
}
|
|
988
1028
|
}, [
|
|
989
|
-
|
|
990
|
-
], 8,
|
|
1029
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
1030
|
+
], 8, Wa)) : x("", !0),
|
|
991
1031
|
y("defs", null, [
|
|
992
|
-
(
|
|
1032
|
+
(n(!0), r(A, null, T(vt.value, (l, o) => (n(), r("radialGradient", {
|
|
993
1033
|
id: `radial_${p.value}_${o}`
|
|
994
1034
|
}, [
|
|
995
1035
|
s[4] || (s[4] = y("stop", {
|
|
@@ -998,21 +1038,21 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
998
1038
|
"stop-opacity": "0"
|
|
999
1039
|
}, null, -1)),
|
|
1000
1040
|
y("stop", {
|
|
1001
|
-
offset: `${(1 -
|
|
1002
|
-
"stop-color": i(
|
|
1041
|
+
offset: `${(1 - se.value / ct.value[o]) * 100}%`,
|
|
1042
|
+
"stop-color": i(La)("#FFFFFF", 0),
|
|
1003
1043
|
"stop-opacity": "0"
|
|
1004
|
-
}, null, 8,
|
|
1044
|
+
}, null, 8, Ha),
|
|
1005
1045
|
y("stop", {
|
|
1006
|
-
offset: `${(1 -
|
|
1046
|
+
offset: `${(1 - se.value / ct.value[o] / 2) * 100}%`,
|
|
1007
1047
|
"stop-color": "#FFFFFF",
|
|
1008
1048
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1009
|
-
}, null, 8,
|
|
1049
|
+
}, null, 8, qa),
|
|
1010
1050
|
s[5] || (s[5] = y("stop", {
|
|
1011
1051
|
offset: "100%",
|
|
1012
1052
|
"stop-color": "#FFFFFF",
|
|
1013
1053
|
"stop-opacity": "0"
|
|
1014
1054
|
}, null, -1))
|
|
1015
|
-
], 8,
|
|
1055
|
+
], 8, Xa))), 256))
|
|
1016
1056
|
]),
|
|
1017
1057
|
y("defs", null, [
|
|
1018
1058
|
y("filter", {
|
|
@@ -1026,12 +1066,12 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1026
1066
|
in: "SourceGraphic",
|
|
1027
1067
|
stdDeviation: 2,
|
|
1028
1068
|
id: `blur_std_${p.value}`
|
|
1029
|
-
}, null, 8,
|
|
1069
|
+
}, null, 8, Ja),
|
|
1030
1070
|
s[6] || (s[6] = y("feColorMatrix", {
|
|
1031
1071
|
type: "saturate",
|
|
1032
1072
|
values: "0"
|
|
1033
1073
|
}, null, -1))
|
|
1034
|
-
], 8,
|
|
1074
|
+
], 8, Qa),
|
|
1035
1075
|
y("filter", {
|
|
1036
1076
|
id: `shadow_${p.value}`,
|
|
1037
1077
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1042,53 +1082,53 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1042
1082
|
stdDeviation: "10",
|
|
1043
1083
|
"flood-opacity": "0.5",
|
|
1044
1084
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1045
|
-
}, null, 8,
|
|
1046
|
-
], 8,
|
|
1085
|
+
}, null, 8, Za)
|
|
1086
|
+
], 8, Ka)
|
|
1047
1087
|
]),
|
|
1048
1088
|
y("defs", null, [
|
|
1049
|
-
(
|
|
1089
|
+
(n(!0), r(A, null, T(J.value, (l, o) => (n(), r("path", {
|
|
1050
1090
|
key: `path-full-${o}`,
|
|
1051
1091
|
id: `path-full-${o}-${p.value}`,
|
|
1052
|
-
d:
|
|
1092
|
+
d: l.fullCirclePath,
|
|
1053
1093
|
fill: "none"
|
|
1054
|
-
}, null, 8,
|
|
1094
|
+
}, null, 8, ja))), 128))
|
|
1055
1095
|
]),
|
|
1056
|
-
(
|
|
1057
|
-
|
|
1096
|
+
(n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1097
|
+
l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", null, [
|
|
1058
1098
|
y("path", {
|
|
1059
1099
|
class: "vue-ui-donut-arc-path",
|
|
1060
|
-
d:
|
|
1061
|
-
fill:
|
|
1100
|
+
d: a.arcSlice,
|
|
1101
|
+
fill: a.color,
|
|
1062
1102
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1063
1103
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1064
|
-
filter:
|
|
1065
|
-
}, null, 8,
|
|
1066
|
-
]))), 256)) : (
|
|
1104
|
+
filter: ft(a, u)
|
|
1105
|
+
}, null, 8, el)
|
|
1106
|
+
]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (a, u) => (n(), r("g", null, [
|
|
1067
1107
|
y("path", {
|
|
1068
1108
|
class: "vue-ui-donut-arc-path",
|
|
1069
|
-
d:
|
|
1070
|
-
fill:
|
|
1109
|
+
d: a.arcSlice,
|
|
1110
|
+
fill: a.color,
|
|
1071
1111
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1072
1112
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1073
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, tl)
|
|
1074
1114
|
]))), 256))
|
|
1075
1115
|
]))), 256)),
|
|
1076
|
-
e.value.style.chart.useGradient ? (
|
|
1077
|
-
(
|
|
1116
|
+
e.value.style.chart.useGradient ? (n(), r("g", al, [
|
|
1117
|
+
(n(!0), r(A, null, T(vt.value, (l, o) => (n(), r("g", null, [
|
|
1078
1118
|
y("path", {
|
|
1079
|
-
d:
|
|
1119
|
+
d: l.donut.arcSlice,
|
|
1080
1120
|
fill: `url(#radial_${p.value}_${o})`,
|
|
1081
1121
|
stroke: "transparent",
|
|
1082
1122
|
"stroke-width": "0"
|
|
1083
|
-
}, null, 8,
|
|
1123
|
+
}, null, 8, ll)
|
|
1084
1124
|
]))), 256))
|
|
1085
|
-
])) :
|
|
1086
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (
|
|
1087
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (
|
|
1088
|
-
(
|
|
1089
|
-
|
|
1125
|
+
])) : x("", !0),
|
|
1126
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", ol, [
|
|
1127
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(A, { key: 0 }, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1128
|
+
(n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1129
|
+
u === 0 && h.value.width && h.value.height ? (n(), r("text", {
|
|
1090
1130
|
key: 0,
|
|
1091
|
-
class:
|
|
1131
|
+
class: E({ animated: e.value.useCssAnimation }),
|
|
1092
1132
|
"text-anchor": "middle",
|
|
1093
1133
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1094
1134
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
@@ -1101,148 +1141,148 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1101
1141
|
"text-anchor": "middle",
|
|
1102
1142
|
method: "align",
|
|
1103
1143
|
spacing: "auto"
|
|
1104
|
-
},
|
|
1105
|
-
source:
|
|
1144
|
+
}, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
|
|
1145
|
+
source: l.name,
|
|
1106
1146
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1107
|
-
}) :
|
|
1108
|
-
], 10,
|
|
1147
|
+
}) : l.name), 9, nl)
|
|
1148
|
+
], 10, sl)) : x("", !0)
|
|
1109
1149
|
]))), 256))
|
|
1110
|
-
]))), 256)) : (
|
|
1111
|
-
(
|
|
1112
|
-
|
|
1150
|
+
]))), 256)) : (n(!0), r(A, { key: 1 }, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1151
|
+
(n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1152
|
+
u === 0 && h.value.width && h.value.height ? (n(), r("text", {
|
|
1113
1153
|
key: 0,
|
|
1114
|
-
class:
|
|
1154
|
+
class: E({ animated: e.value.useCssAnimation }),
|
|
1115
1155
|
x: h.value.width / 2,
|
|
1116
|
-
y:
|
|
1156
|
+
y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1117
1157
|
"text-anchor": "middle",
|
|
1118
1158
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1119
1159
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1120
1160
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1121
|
-
},
|
|
1122
|
-
source:
|
|
1161
|
+
}, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
|
|
1162
|
+
source: l.name,
|
|
1123
1163
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1124
|
-
}) :
|
|
1164
|
+
}) : l.name), 11, ul)) : x("", !0)
|
|
1125
1165
|
]))), 256))
|
|
1126
1166
|
]))), 256))
|
|
1127
|
-
])) :
|
|
1128
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
1129
|
-
(
|
|
1130
|
-
(
|
|
1131
|
-
filter:
|
|
1167
|
+
])) : x("", !0),
|
|
1168
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", rl, [
|
|
1169
|
+
(n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1170
|
+
(n(!0), r(A, null, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", {
|
|
1171
|
+
filter: ft(a, u)
|
|
1132
1172
|
}, [
|
|
1133
|
-
|
|
1134
|
-
class:
|
|
1135
|
-
opacity: xe(
|
|
1136
|
-
"text-anchor": i(
|
|
1137
|
-
x: i(
|
|
1138
|
-
|
|
1173
|
+
kt(y("text", {
|
|
1174
|
+
class: E({ animated: e.value.useCssAnimation }),
|
|
1175
|
+
opacity: xe(a) ? 1 : 0,
|
|
1176
|
+
"text-anchor": i(Z)(a, !0).anchor,
|
|
1177
|
+
x: i(Z)(
|
|
1178
|
+
a,
|
|
1139
1179
|
!1,
|
|
1140
1180
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1141
1181
|
).x || 0,
|
|
1142
1182
|
y: i(Ee)(
|
|
1143
|
-
|
|
1183
|
+
a,
|
|
1144
1184
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1145
1185
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1146
1186
|
),
|
|
1147
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1187
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1148
1188
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1149
1189
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1150
|
-
},
|
|
1151
|
-
v:
|
|
1190
|
+
}, V(i(F)({
|
|
1191
|
+
v: a.proportion * 100,
|
|
1152
1192
|
s: "%",
|
|
1153
1193
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1154
|
-
})), 11,
|
|
1194
|
+
})), 11, dl), [
|
|
1155
1195
|
[
|
|
1156
|
-
|
|
1157
|
-
|
|
1196
|
+
Ct,
|
|
1197
|
+
_.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1158
1198
|
]
|
|
1159
1199
|
]),
|
|
1160
|
-
|
|
1161
|
-
class:
|
|
1162
|
-
opacity: xe(
|
|
1163
|
-
"text-anchor": i(
|
|
1164
|
-
x: i(
|
|
1165
|
-
|
|
1200
|
+
kt(y("text", {
|
|
1201
|
+
class: E({ animated: e.value.useCssAnimation }),
|
|
1202
|
+
opacity: xe(a) ? 1 : 0,
|
|
1203
|
+
"text-anchor": i(Z)(a, !0).anchor,
|
|
1204
|
+
x: i(Z)(
|
|
1205
|
+
a,
|
|
1166
1206
|
!1,
|
|
1167
1207
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1168
1208
|
).x || 0,
|
|
1169
1209
|
y: i(Ee)(
|
|
1170
|
-
|
|
1210
|
+
a,
|
|
1171
1211
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1172
1212
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1173
1213
|
) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1174
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1214
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1175
1215
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1176
1216
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1177
|
-
}, " (" +
|
|
1217
|
+
}, " (" + V(i(oe)(
|
|
1178
1218
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1179
|
-
|
|
1180
|
-
i(
|
|
1219
|
+
a.value,
|
|
1220
|
+
i(F)({
|
|
1181
1221
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1182
|
-
v:
|
|
1222
|
+
v: a.value,
|
|
1183
1223
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1184
1224
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1185
1225
|
}),
|
|
1186
|
-
{ datapoint:
|
|
1187
|
-
)) + ") ", 11,
|
|
1226
|
+
{ datapoint: a, seriesIndex: o, datapointIndex: u }
|
|
1227
|
+
)) + ") ", 11, cl), [
|
|
1188
1228
|
[
|
|
1189
|
-
|
|
1190
|
-
|
|
1229
|
+
Ct,
|
|
1230
|
+
_.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1191
1231
|
]
|
|
1192
1232
|
]),
|
|
1193
|
-
xe(
|
|
1233
|
+
xe(a) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
|
|
1194
1234
|
key: 0,
|
|
1195
|
-
class:
|
|
1196
|
-
"text-anchor": i(
|
|
1197
|
-
x: i(
|
|
1198
|
-
|
|
1235
|
+
class: E({ animated: e.value.useCssAnimation }),
|
|
1236
|
+
"text-anchor": i(Z)(a, !0).anchor,
|
|
1237
|
+
x: i(Z)(
|
|
1238
|
+
a,
|
|
1199
1239
|
!1,
|
|
1200
1240
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1201
1241
|
).x || 0,
|
|
1202
1242
|
y: i(Ee)(
|
|
1203
|
-
|
|
1243
|
+
a,
|
|
1204
1244
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1205
1245
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1206
1246
|
),
|
|
1207
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1247
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1208
1248
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1209
1249
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1210
|
-
},
|
|
1250
|
+
}, V(i(oe)(
|
|
1211
1251
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1212
|
-
|
|
1213
|
-
i(
|
|
1252
|
+
a.value,
|
|
1253
|
+
i(F)({
|
|
1214
1254
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1215
|
-
v:
|
|
1255
|
+
v: a.value,
|
|
1216
1256
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1217
1257
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1218
1258
|
}),
|
|
1219
|
-
{ datapoint:
|
|
1220
|
-
)), 11,
|
|
1221
|
-
], 8,
|
|
1259
|
+
{ datapoint: a, seriesIndex: o, datapointIndex: u }
|
|
1260
|
+
)), 11, vl)) : x("", !0)
|
|
1261
|
+
], 8, il))), 256))
|
|
1222
1262
|
]))), 256))
|
|
1223
|
-
])) :
|
|
1224
|
-
(
|
|
1225
|
-
(
|
|
1263
|
+
])) : x("", !0),
|
|
1264
|
+
(n(!0), r(A, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1265
|
+
(n(!0), r(A, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1226
1266
|
y("path", {
|
|
1227
|
-
d:
|
|
1228
|
-
fill:
|
|
1229
|
-
onMouseenter: (
|
|
1230
|
-
datapoint:
|
|
1231
|
-
seriesIndex:
|
|
1267
|
+
d: a.arcSlice,
|
|
1268
|
+
fill: ge.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1269
|
+
onMouseenter: (c) => Jt({
|
|
1270
|
+
datapoint: a,
|
|
1271
|
+
seriesIndex: a.seriesIndex
|
|
1232
1272
|
}),
|
|
1233
|
-
onClick: (
|
|
1234
|
-
onMouseleave: (
|
|
1235
|
-
}, null, 40,
|
|
1273
|
+
onClick: (c) => Wt({ datapoint: a, index: u, seriesIndex: a.seriesIndex }),
|
|
1274
|
+
onMouseleave: (c) => Qt({ datapoint: a, seriesIndex: a.seriesIndex })
|
|
1275
|
+
}, null, 40, hl)
|
|
1236
1276
|
]))), 256))
|
|
1237
1277
|
]))), 256)),
|
|
1238
|
-
|
|
1278
|
+
b(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1239
1279
|
], 512)
|
|
1240
|
-
], 14,
|
|
1241
|
-
t.$slots.watermark ? (
|
|
1242
|
-
|
|
1243
|
-
])) :
|
|
1244
|
-
Ve(i(
|
|
1245
|
-
show:
|
|
1280
|
+
], 14, Ya)),
|
|
1281
|
+
t.$slots.watermark ? (n(), r("div", fl, [
|
|
1282
|
+
b(t.$slots, "watermark", N(D({ isPrinting: i(lt) || i(ot) })), void 0, !0)
|
|
1283
|
+
])) : x("", !0),
|
|
1284
|
+
Ve(i(Dt), {
|
|
1285
|
+
show: _.value.showTooltip && pe.value,
|
|
1246
1286
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1247
1287
|
color: e.value.style.chart.tooltip.color,
|
|
1248
1288
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1253,93 +1293,93 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1253
1293
|
position: e.value.style.chart.tooltip.position,
|
|
1254
1294
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1255
1295
|
parent: I.value,
|
|
1256
|
-
content:
|
|
1257
|
-
isFullscreen:
|
|
1258
|
-
isCustom: i(
|
|
1296
|
+
content: ye.value,
|
|
1297
|
+
isFullscreen: W.value,
|
|
1298
|
+
isCustom: i(At)(e.value.style.chart.tooltip.customFormat),
|
|
1259
1299
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1260
1300
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1261
1301
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1262
1302
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1263
1303
|
}, {
|
|
1264
|
-
"tooltip-before":
|
|
1265
|
-
|
|
1304
|
+
"tooltip-before": g(() => [
|
|
1305
|
+
b(t.$slots, "tooltip-before", N(D({ ...Le.value })), void 0, !0)
|
|
1266
1306
|
]),
|
|
1267
|
-
"tooltip-after":
|
|
1268
|
-
|
|
1307
|
+
"tooltip-after": g(() => [
|
|
1308
|
+
b(t.$slots, "tooltip-after", N(D({ ...Le.value })), void 0, !0)
|
|
1269
1309
|
]),
|
|
1270
1310
|
_: 3
|
|
1271
1311
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1272
1312
|
y("div", {
|
|
1273
1313
|
id: `legend-bottom-${p.value}`
|
|
1274
|
-
}, null, 8,
|
|
1275
|
-
Qe.value ? (
|
|
1314
|
+
}, null, 8, pl),
|
|
1315
|
+
Qe.value ? (n(), U(fa, {
|
|
1276
1316
|
key: 5,
|
|
1277
1317
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
1278
1318
|
}, [
|
|
1279
|
-
e.value.style.chart.legend.show ? (
|
|
1319
|
+
e.value.style.chart.legend.show ? (n(), r("div", {
|
|
1280
1320
|
key: 0,
|
|
1281
1321
|
ref_key: "chartLegend",
|
|
1282
|
-
ref:
|
|
1283
|
-
class:
|
|
1322
|
+
ref: be,
|
|
1323
|
+
class: E({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
|
|
1284
1324
|
}, [
|
|
1285
|
-
(
|
|
1325
|
+
(n(!0), r(A, null, T(re.value, (l, o) => (n(), U(Ea, {
|
|
1286
1326
|
key: `legend_${o}_${qe.value}`,
|
|
1287
|
-
legendSet:
|
|
1288
|
-
config:
|
|
1289
|
-
onClickMarker: s[0] || (s[0] = ({ legend:
|
|
1327
|
+
legendSet: l,
|
|
1328
|
+
config: Kt.value,
|
|
1329
|
+
onClickMarker: s[0] || (s[0] = ({ legend: a }) => H(a))
|
|
1290
1330
|
}, {
|
|
1291
|
-
legendTitle:
|
|
1292
|
-
|
|
1331
|
+
legendTitle: g(({ titleSet: a }) => [
|
|
1332
|
+
a[0] && a[0].arcOf ? (n(), r("div", yl, V(a[0].arcOf), 1)) : x("", !0)
|
|
1293
1333
|
]),
|
|
1294
|
-
item:
|
|
1334
|
+
item: g(({ legend: a, index: u }) => [
|
|
1295
1335
|
y("div", {
|
|
1296
|
-
onClick: (
|
|
1297
|
-
style:
|
|
1298
|
-
},
|
|
1336
|
+
onClick: (c) => H(a),
|
|
1337
|
+
style: he(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
1338
|
+
}, V(a.display), 13, gl)
|
|
1299
1339
|
]),
|
|
1300
1340
|
_: 1
|
|
1301
1341
|
}, 8, ["legendSet", "config"]))), 128))
|
|
1302
|
-
], 2)) :
|
|
1303
|
-
], 8, ["to"])) :
|
|
1304
|
-
e.value.style.chart.legend.show ?
|
|
1342
|
+
], 2)) : x("", !0)
|
|
1343
|
+
], 8, ["to"])) : x("", !0),
|
|
1344
|
+
e.value.style.chart.legend.show ? x("", !0) : (n(), r("div", {
|
|
1305
1345
|
key: 6,
|
|
1306
1346
|
ref_key: "chartLegend",
|
|
1307
|
-
ref:
|
|
1347
|
+
ref: be
|
|
1308
1348
|
}, [
|
|
1309
|
-
|
|
1349
|
+
b(t.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
1310
1350
|
], 512)),
|
|
1311
|
-
t.$slots.source ? (
|
|
1351
|
+
t.$slots.source ? (n(), r("div", {
|
|
1312
1352
|
key: 7,
|
|
1313
1353
|
ref_key: "source",
|
|
1314
1354
|
ref: Ye,
|
|
1315
1355
|
dir: "auto"
|
|
1316
1356
|
}, [
|
|
1317
|
-
|
|
1318
|
-
], 512)) :
|
|
1319
|
-
|
|
1357
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1358
|
+
], 512)) : x("", !0),
|
|
1359
|
+
fe.value && e.value.userOptions.buttons.table ? (n(), U(pa(ae.value.component), ya({ key: 8 }, ae.value.props, {
|
|
1320
1360
|
ref_key: "tableUnit",
|
|
1321
|
-
ref:
|
|
1322
|
-
onClose:
|
|
1323
|
-
}),
|
|
1324
|
-
content:
|
|
1325
|
-
(
|
|
1361
|
+
ref: ee,
|
|
1362
|
+
onClose: bt
|
|
1363
|
+
}), $t({
|
|
1364
|
+
content: g(() => [
|
|
1365
|
+
(n(), U(i(Vt), {
|
|
1326
1366
|
key: `table_${He.value}`,
|
|
1327
|
-
colNames:
|
|
1328
|
-
head:
|
|
1329
|
-
body:
|
|
1330
|
-
config:
|
|
1331
|
-
title: e.value.table.useDialog ? "" :
|
|
1367
|
+
colNames: ie.value.colNames,
|
|
1368
|
+
head: ie.value.head,
|
|
1369
|
+
body: ie.value.body,
|
|
1370
|
+
config: ie.value.config,
|
|
1371
|
+
title: e.value.table.useDialog ? "" : ae.value.title,
|
|
1332
1372
|
withCloseButton: !e.value.table.useDialog,
|
|
1333
|
-
onClose:
|
|
1373
|
+
onClose: bt
|
|
1334
1374
|
}, {
|
|
1335
|
-
th:
|
|
1375
|
+
th: g(({ th: l }) => [
|
|
1336
1376
|
y("div", {
|
|
1337
|
-
innerHTML:
|
|
1377
|
+
innerHTML: l,
|
|
1338
1378
|
style: { display: "flex", "align-items": "center" }
|
|
1339
|
-
}, null, 8,
|
|
1379
|
+
}, null, 8, bl)
|
|
1340
1380
|
]),
|
|
1341
|
-
td:
|
|
1342
|
-
|
|
1381
|
+
td: g(({ td: l }) => [
|
|
1382
|
+
Lt(V(l.name || l), 1)
|
|
1343
1383
|
]),
|
|
1344
1384
|
_: 1
|
|
1345
1385
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1348,32 +1388,32 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1348
1388
|
}, [
|
|
1349
1389
|
e.value.table.useDialog ? {
|
|
1350
1390
|
name: "title",
|
|
1351
|
-
fn:
|
|
1352
|
-
|
|
1391
|
+
fn: g(() => [
|
|
1392
|
+
Lt(V(ae.value.title), 1)
|
|
1353
1393
|
]),
|
|
1354
1394
|
key: "0"
|
|
1355
1395
|
} : void 0,
|
|
1356
1396
|
e.value.table.useDialog ? {
|
|
1357
1397
|
name: "actions",
|
|
1358
|
-
fn:
|
|
1398
|
+
fn: g(() => [
|
|
1359
1399
|
y("button", {
|
|
1360
1400
|
tabindex: "0",
|
|
1361
1401
|
class: "vue-ui-user-options-button",
|
|
1362
|
-
onClick: s[1] || (s[1] = (
|
|
1402
|
+
onClick: s[1] || (s[1] = (l) => _e(e.value.userOptions.callbacks.csv))
|
|
1363
1403
|
}, [
|
|
1364
|
-
Ve(i(
|
|
1404
|
+
Ve(i(It), {
|
|
1365
1405
|
name: "excel",
|
|
1366
|
-
stroke:
|
|
1406
|
+
stroke: ae.value.props.color
|
|
1367
1407
|
}, null, 8, ["stroke"])
|
|
1368
1408
|
])
|
|
1369
1409
|
]),
|
|
1370
1410
|
key: "1"
|
|
1371
1411
|
} : void 0
|
|
1372
|
-
]), 1040)) :
|
|
1373
|
-
i(
|
|
1374
|
-
], 46,
|
|
1412
|
+
]), 1040)) : x("", !0),
|
|
1413
|
+
i(we) ? (n(), U(Na, { key: 9 })) : x("", !0)
|
|
1414
|
+
], 46, Ra));
|
|
1375
1415
|
}
|
|
1376
|
-
},
|
|
1416
|
+
}, Il = /* @__PURE__ */ Ua(ml, [["__scopeId", "data-v-92467a66"]]);
|
|
1377
1417
|
export {
|
|
1378
|
-
|
|
1418
|
+
Il as default
|
|
1379
1419
|
};
|