vue-data-ui 3.9.12 → 3.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
- package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
- package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
- package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
- package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
- package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
- package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
- package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
- package/dist/{PackageVersion-BpArR90N.js → PackageVersion-D3cMhAlf.js} +1 -1
- package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
- package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
- package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
- package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
- package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
- package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
- package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
- package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.js} +2 -2
- package/dist/components/arrow.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-dag.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-geo.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-icon.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-stackline.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/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
- package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
- package/dist/labelUtils-PMU3ZGCb.js +30 -0
- package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
- package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +20 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
- package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
- package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
- package/dist/{vue-data-ui-Dw19CYml.js → vue-data-ui-DE3O1T8n.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Bv7Tft_r.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
- package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6NjJlg4.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
- package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
- package/dist/{vue-ui-bullet-BLGvme53.js → vue-ui-bullet-DhpTML7L.js} +22 -22
- package/dist/{vue-ui-candlestick-DBG1mW60.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
- package/dist/{vue-ui-carousel-table-BYnItN48.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
- package/dist/{vue-ui-chestnut-DV6f4SNc.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
- package/dist/{vue-ui-chord-DRleP2O8.js → vue-ui-chord-CB6w31Ex.js} +8 -8
- package/dist/{vue-ui-circle-pack-BCrMaFWw.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
- package/dist/{vue-ui-cursor-j10t3UEX.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
- package/dist/{vue-ui-dag-y0oqslGj.js → vue-ui-dag-Dq3hKon7.js} +7 -7
- package/dist/{vue-ui-dashboard-mBGF94l6.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
- package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
- package/dist/vue-ui-donut-D3---CiY.js +2082 -0
- package/dist/{vue-ui-donut-evolution-hkHICgry.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
- package/dist/{vue-ui-dumbbell-BVPZwi0X.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
- package/dist/{vue-ui-flow-BNeKU-KR.js → vue-ui-flow-CgAIlvZF.js} +38 -38
- package/dist/{vue-ui-funnel-VorM1bT0.js → vue-ui-funnel-CpgqO34n.js} +6 -6
- package/dist/{vue-ui-galaxy-DKkviRQr.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
- package/dist/{vue-ui-gauge-BNaWVi-e.js → vue-ui-gauge-DY78U-uO.js} +7 -7
- package/dist/{vue-ui-geo-_R5mjj-u.js → vue-ui-geo-Befu6fkT.js} +7 -7
- package/dist/{vue-ui-gizmo-AQFQccea.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
- package/dist/{vue-ui-heatmap-BKX1bPY5.js → vue-ui-heatmap-C_ze3bzX.js} +108 -108
- package/dist/{vue-ui-history-plot-BNX8B2jr.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-B6VyEs1p.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
- package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
- package/dist/{vue-ui-molecule-PtnhkQLr.js → vue-ui-molecule-N938wMMB.js} +5 -5
- package/dist/{vue-ui-mood-radar-DxSVU35A.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BY8C1axg.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
- package/dist/{vue-ui-onion-XJAcsPVV.js → vue-ui-onion-BwY998zT.js} +376 -332
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIZbgp.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
- package/dist/{vue-ui-quadrant-DY9GXVYY.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
- package/dist/{vue-ui-quick-chart-Y73WB5GW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
- package/dist/{vue-ui-radar-Deup68ga.js → vue-ui-radar-B15r4HoM.js} +57 -57
- package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
- package/dist/{vue-ui-relation-circle-C0W3aPaO.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
- package/dist/{vue-ui-ridgeline-D9z3_hRf.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
- package/dist/{vue-ui-rings-CT3gLUkS.js → vue-ui-rings-DNdUdKax.js} +270 -246
- package/dist/{vue-ui-scatter-DiLSOZGs.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
- package/dist/{vue-ui-skeleton-D_2C5A85.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
- package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
- package/dist/{vue-ui-spark-trend-C05f4Fn6.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
- package/dist/{vue-ui-sparkbar-CjYaG0Ae.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
- package/dist/{vue-ui-sparkgauge-AKIy8PYI.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-nWWgx7iD.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
- package/dist/{vue-ui-sparkline-CGMDNQpH.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-C3vjYPrM.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
- package/dist/{vue-ui-stackbar-BQiLC89h.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
- package/dist/{vue-ui-stackline-DPV5Amgq.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
- package/dist/{vue-ui-strip-plot-CFGml25d.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
- package/dist/{vue-ui-table-DySeXTmp.js → vue-ui-table-BHWwypkc.js} +27 -27
- package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
- package/dist/{vue-ui-table-sparkline-DbEj6x4N.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
- package/dist/{vue-ui-thermometer-BeiT4slQ.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
- package/dist/{vue-ui-timer-RWg45QKc.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
- package/dist/{vue-ui-tiremarks-B4_W_mWX.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
- package/dist/{vue-ui-treemap-fq9-enBk.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
- package/dist/{vue-ui-waffle-BRcWupew.js → vue-ui-waffle-CddfqNWD.js} +381 -352
- package/dist/{vue-ui-wheel-DziR9q2I.js → vue-ui-wheel-CGYJA-33.js} +6 -6
- package/dist/{vue-ui-word-cloud-C6i_7Q6Y.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
- package/dist/{vue-ui-world-Dvn1JWi9.js → vue-ui-world-DQjHEyKe.js} +31 -31
- package/dist/{vue-ui-xy-2ui0juKl.js → vue-ui-xy-D5A8tR-O.js} +9 -9
- package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
- package/package.json +1 -1
- package/dist/vue-ui-donut-A_IFB9JR.js +0 -2078
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
1
|
+
import { defineAsyncComponent as B, computed as k, ref as v, toRefs as wl, watch as oe, onMounted as Al, shallowRef as kt, onBeforeUnmount as $l, createElementBlock as r, openBlock as n, unref as c, normalizeStyle as he, normalizeClass as H, createBlock as z, createCommentVNode as L, createElementVNode as g, createVNode as Ie, withCtx as p, renderSlot as y, normalizeProps as S, guardReactiveProps as O, createSlots as wt, Fragment as x, renderList as T, toDisplayString as M, withDirectives as At, vShow as $t, Teleport as Ll, resolveDynamicComponent as _l, mergeProps as Fl, createTextVNode as Lt, nextTick as _t } from "vue";
|
|
2
|
+
import { c as xl, t as Tl, i as Dl, j as Ee, a1 as Ve, o as Sl, g as K, k as Ol, a7 as U, m as Nl, a3 as Be, a as fe, d as N, X as Pl, s as Il, G as Ft, a5 as xt, a6 as be, p as Tt, y as Dt, v as El, r as Vl, _ as Bl, ag as St, U as ze } from "./lib-BwysEpWI.js";
|
|
3
|
+
import { b as zl } from "./labelUtils-PMU3ZGCb.js";
|
|
4
|
+
import { t as Ml, u as Ul } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Rl, a as Me } from "./useNestedProp--5lL-kf1.js";
|
|
6
|
+
import { u as Gl, B as Yl } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Wl } from "./usePrinter-BJzHDpYF.js";
|
|
8
|
+
import { u as Xl } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as Hl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
+
import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as jl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import Jl from "./img-DKigoPDs.js";
|
|
13
|
+
import Kl from "./Title-BhURirpm.js";
|
|
14
|
+
import Ql from "./Legend-D6z73edh.js";
|
|
14
15
|
import { _ as Zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const
|
|
16
|
+
const Ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { donut: { emptyFill: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { dataLabels: { color: "#424242" } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Pt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { dataLabels: { color: "#BDBDBD" } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, It = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { dataLabels: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Et = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { dataLabels: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { dataLabels: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Bt = {
|
|
16
17
|
default: {},
|
|
17
|
-
dark:
|
|
18
|
-
celebration:
|
|
19
|
-
celebrationNight:
|
|
20
|
-
hack:
|
|
21
|
-
zen:
|
|
22
|
-
concrete:
|
|
23
|
-
},
|
|
18
|
+
dark: Ot,
|
|
19
|
+
celebration: Nt,
|
|
20
|
+
celebrationNight: Pt,
|
|
21
|
+
hack: It,
|
|
22
|
+
zen: Et,
|
|
23
|
+
concrete: Vt
|
|
24
|
+
}, Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
25
|
__proto__: null,
|
|
25
|
-
celebration:
|
|
26
|
-
celebrationNight:
|
|
27
|
-
concrete:
|
|
28
|
-
dark:
|
|
29
|
-
default:
|
|
30
|
-
hack:
|
|
31
|
-
zen:
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26
|
+
celebration: Nt,
|
|
27
|
+
celebrationNight: Pt,
|
|
28
|
+
concrete: Vt,
|
|
29
|
+
dark: Ot,
|
|
30
|
+
default: Bt,
|
|
31
|
+
hack: It,
|
|
32
|
+
zen: Et
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), ea = ["id"], ta = ["id"], la = ["xmlns", "viewBox"], aa = ["width", "height"], oa = ["id"], sa = ["offset", "stop-color"], na = ["offset", "stop-opacity"], ua = ["id"], ra = ["id"], ia = ["id"], ca = ["flood-color"], da = ["id", "d"], va = ["d", "fill", "stroke", "stroke-width", "filter"], ha = ["d", "fill", "stroke", "stroke-width"], fa = { key: 1 }, ba = ["d", "fill"], ga = { key: 2 }, pa = ["font-size", "font-weight", "fill", "dy"], ya = ["href"], ma = ["x", "y", "font-size", "font-weight", "fill"], Ca = { key: 3 }, ka = ["filter"], wa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Aa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], $a = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], La = {
|
|
33
34
|
key: 4,
|
|
34
35
|
class: "vue-data-ui-watermark"
|
|
35
|
-
},
|
|
36
|
+
}, _a = ["id"], Fa = {
|
|
36
37
|
key: 0,
|
|
37
38
|
class: "vue-ui-nested-donuts-legend-title"
|
|
38
|
-
},
|
|
39
|
+
}, xa = ["onClick"], Ta = ["innerHTML"], Da = {
|
|
39
40
|
__name: "vue-ui-nested-donuts",
|
|
40
41
|
props: {
|
|
41
42
|
config: {
|
|
@@ -52,19 +53,19 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
emits: ["selectLegend", "selectDatapoint"],
|
|
55
|
-
setup(
|
|
56
|
-
const
|
|
56
|
+
setup(zt, { expose: Mt, emit: Ut }) {
|
|
57
|
+
const Rt = B(() => import("./Tooltip-TDyKgLB6.js")), Gt = B(() => import("./BaseIcon-4i3dd7Ty.js")), Yt = B(() => import("./vue-ui-accordion-tQNKwbVi.js")), Wt = B(() => import("./DataTable-WrXCJkfE.js")), Xt = B(() => import("./UserOptions-CzJWRC4s.js")), Ht = B(() => import("./PenAndPaper-DxIUvoQ8.js")), qt = B(() => import("./PackageVersion-D3cMhAlf.js")), jt = B(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_nested_donuts: Jt } = Rl(), { isThemeValid: Kt, warnInvalidTheme: Qt } = Hl(), w = zt, ge = k({
|
|
57
58
|
get() {
|
|
58
59
|
return !!w.dataset && w.dataset.length;
|
|
59
60
|
},
|
|
60
61
|
set(t) {
|
|
61
62
|
return t;
|
|
62
63
|
}
|
|
63
|
-
}), b = v(
|
|
64
|
-
function
|
|
65
|
-
|
|
64
|
+
}), b = v(xl()), pe = v(!1), ye = v(""), me = v(null), Ue = v(0), P = v(null), Re = v(null), Ce = v(null), Ge = v(null), Ye = v(null), We = v(0), Xe = v(0), He = v(0), R = v(!0), G = v([]), Q = v([]), qe = v(!1), Z = v(null), ke = v(null), Y = v(!1);
|
|
65
|
+
function je(t) {
|
|
66
|
+
Y.value = t, Ue.value += 1;
|
|
66
67
|
}
|
|
67
|
-
const e = v(
|
|
68
|
+
const e = v(Le()), Je = {
|
|
68
69
|
name: "",
|
|
69
70
|
series: [
|
|
70
71
|
{
|
|
@@ -83,17 +84,17 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
83
84
|
color: "#CACACA"
|
|
84
85
|
}
|
|
85
86
|
]
|
|
86
|
-
}, { loading:
|
|
87
|
-
...
|
|
87
|
+
}, { loading: we, FINAL_DATASET: W, manualLoading: Ae } = Gl({
|
|
88
|
+
...wl(w),
|
|
88
89
|
FINAL_CONFIG: e,
|
|
89
|
-
prepareConfig:
|
|
90
|
+
prepareConfig: Le,
|
|
90
91
|
callback: () => {
|
|
91
92
|
Promise.resolve().then(async () => {
|
|
92
|
-
await
|
|
93
|
+
await et();
|
|
93
94
|
});
|
|
94
95
|
},
|
|
95
|
-
skeletonDataset: [
|
|
96
|
-
skeletonConfig:
|
|
96
|
+
skeletonDataset: [Je, Je],
|
|
97
|
+
skeletonConfig: Tl({
|
|
97
98
|
defaultConfig: e.value,
|
|
98
99
|
userConfig: {
|
|
99
100
|
useCssAnimation: !1,
|
|
@@ -119,165 +120,165 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
})
|
|
122
|
-
}), { userOptionsVisible:
|
|
123
|
+
}), { userOptionsVisible: $e, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = ql({ config: e.value }), { svgRef: ee } = jl({
|
|
123
124
|
config: e.value.style.chart.title
|
|
124
125
|
});
|
|
125
|
-
function
|
|
126
|
-
const t =
|
|
126
|
+
function Le() {
|
|
127
|
+
const t = Me({
|
|
127
128
|
userConfig: w.config,
|
|
128
|
-
defaultConfig:
|
|
129
|
+
defaultConfig: Jt
|
|
129
130
|
});
|
|
130
131
|
let s = {};
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
if (!
|
|
134
|
-
|
|
132
|
+
const l = t.theme;
|
|
133
|
+
if (l)
|
|
134
|
+
if (!Kt.value(t))
|
|
135
|
+
Qt(t), s = t;
|
|
135
136
|
else {
|
|
136
|
-
const o =
|
|
137
|
-
userConfig:
|
|
137
|
+
const o = Me({
|
|
138
|
+
userConfig: Bt[l] || w.config,
|
|
138
139
|
defaultConfig: t
|
|
139
140
|
});
|
|
140
141
|
s = {
|
|
141
|
-
...
|
|
142
|
+
...Me({
|
|
142
143
|
userConfig: w.config,
|
|
143
144
|
defaultConfig: o
|
|
144
145
|
}),
|
|
145
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
146
|
+
customPalette: t.customPalette.length ? t.customPalette : Dl[l] || Ee
|
|
146
147
|
};
|
|
147
148
|
}
|
|
148
149
|
else
|
|
149
150
|
s = t;
|
|
150
|
-
return w.config &&
|
|
151
|
+
return w.config && Ve(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Ve(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Ve(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
+
oe(
|
|
153
154
|
() => w.config,
|
|
154
155
|
(t) => {
|
|
155
|
-
|
|
156
|
+
we.value || (e.value = Le()), $e.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, Xe.value += 1, He.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;
|
|
156
157
|
},
|
|
157
158
|
{ deep: !0 }
|
|
158
159
|
);
|
|
159
|
-
const
|
|
160
|
-
const { top: t, right: s, bottom:
|
|
160
|
+
const Ze = k(() => {
|
|
161
|
+
const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
|
|
161
162
|
return {
|
|
162
|
-
css: `padding:${t}px ${s}px ${
|
|
163
|
+
css: `padding:${t}px ${s}px ${l}px ${o}px`,
|
|
163
164
|
top: t,
|
|
164
165
|
right: s,
|
|
165
|
-
bottom:
|
|
166
|
+
bottom: l,
|
|
166
167
|
left: o
|
|
167
168
|
};
|
|
168
169
|
});
|
|
169
|
-
function
|
|
170
|
+
function Zt(t, s = 1e3, l = 50) {
|
|
170
171
|
return new Promise((o) => {
|
|
171
|
-
const
|
|
172
|
-
|
|
172
|
+
const a = t.length;
|
|
173
|
+
G.value = Array(a).fill(0), Q.value = [];
|
|
173
174
|
let u = 0;
|
|
174
|
-
t.forEach((
|
|
175
|
+
t.forEach((d, f) => {
|
|
175
176
|
setTimeout(() => {
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
const
|
|
177
|
+
const $ = performance.now();
|
|
178
|
+
function i(C) {
|
|
179
|
+
const F = Math.min((C - $) / s, 1), le = St(F), ae = d * le;
|
|
180
|
+
G.value[f] = ae, G.value = [...G.value];
|
|
181
|
+
const de = [];
|
|
181
182
|
let De = 0;
|
|
182
|
-
w.dataset.forEach((ve,
|
|
183
|
-
const
|
|
184
|
-
(
|
|
183
|
+
w.dataset.forEach((ve, Se) => {
|
|
184
|
+
const yl = ze(ve.series.reduce(
|
|
185
|
+
(Ne, Pe) => Ne + ze(U(Pe.values).reduce((Cl, kl) => Cl + kl, 0)),
|
|
185
186
|
0
|
|
186
|
-
)),
|
|
187
|
-
|
|
187
|
+
)), ml = ze(G.value.slice(De, De + ve.series.length).reduce((Ne, Pe) => Ne + Pe, 0)), Oe = yl - ml;
|
|
188
|
+
Oe > Number.MIN_VALUE && de.push({
|
|
188
189
|
name: "__ghost__",
|
|
189
190
|
arcOf: ve.name,
|
|
190
|
-
arcOfId: `${b.value}_${
|
|
191
|
-
id: `ghost_${b.value}_${
|
|
191
|
+
arcOfId: `${b.value}_${Se}`,
|
|
192
|
+
id: `ghost_${b.value}_${Se}`,
|
|
192
193
|
seriesIndex: -1,
|
|
193
|
-
datasetIndex:
|
|
194
|
+
datasetIndex: Se,
|
|
194
195
|
color: "transparent",
|
|
195
|
-
value:
|
|
196
|
-
fullValue:
|
|
196
|
+
value: Oe,
|
|
197
|
+
fullValue: Oe,
|
|
197
198
|
absoluteValues: [],
|
|
198
199
|
ghost: !0
|
|
199
200
|
}), De += ve.series.length;
|
|
200
|
-
}), Q.value =
|
|
201
|
+
}), Q.value = de, F < 1 ? requestAnimationFrame(i) : (u += 1, u === a && o());
|
|
201
202
|
}
|
|
202
|
-
requestAnimationFrame(
|
|
203
|
-
}, f *
|
|
203
|
+
requestAnimationFrame(i);
|
|
204
|
+
}, f * l);
|
|
204
205
|
});
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
|
-
async function
|
|
208
|
+
async function et() {
|
|
208
209
|
if (e.value.startAnimation?.show) {
|
|
209
|
-
const s =
|
|
210
|
-
(
|
|
210
|
+
const s = W.value.flatMap((l) => l.series).map(
|
|
211
|
+
(l) => U(l.values).reduce((o, a) => o + a, 0)
|
|
211
212
|
);
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
(u,
|
|
213
|
+
G.value = s.map(() => 0), R.value = !0, Q.value = W.value.map((l, o) => {
|
|
214
|
+
const a = l.series.reduce(
|
|
215
|
+
(u, d) => u + U(d.values).reduce((f, $) => f + $, 0),
|
|
215
216
|
0
|
|
216
217
|
);
|
|
217
218
|
return {
|
|
218
219
|
name: "__ghost__",
|
|
219
|
-
arcOf:
|
|
220
|
+
arcOf: l.name,
|
|
220
221
|
arcOfId: `${b.value}_${o}`,
|
|
221
222
|
id: `ghost_${b.value}_${o}`,
|
|
222
223
|
seriesIndex: -1,
|
|
223
224
|
datasetIndex: o,
|
|
224
225
|
color: "transparent",
|
|
225
|
-
value:
|
|
226
|
-
fullValue:
|
|
226
|
+
value: a,
|
|
227
|
+
fullValue: a,
|
|
227
228
|
absoluteValues: [],
|
|
228
229
|
ghost: !0
|
|
229
230
|
};
|
|
230
|
-
}), await _t(),
|
|
231
|
+
}), await _t(), Zt(
|
|
231
232
|
s,
|
|
232
233
|
e.value.startAnimation.durationMs,
|
|
233
234
|
e.value.startAnimation.staggerMs
|
|
234
235
|
).then(() => {
|
|
235
|
-
|
|
236
|
+
R.value = !1, Q.value = [];
|
|
236
237
|
});
|
|
237
238
|
} else
|
|
238
|
-
|
|
239
|
+
R.value = !1;
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
Al(async () => {
|
|
242
|
+
qe.value = !0, tt(), await et();
|
|
242
243
|
});
|
|
243
|
-
const
|
|
244
|
-
function
|
|
245
|
-
if (
|
|
244
|
+
const E = kt(null), q = kt(null), j = k(() => !!e.value.debug);
|
|
245
|
+
function tt() {
|
|
246
|
+
if (Sl(w.dataset) ? (K({
|
|
246
247
|
componentName: "VueUiNestedDonuts",
|
|
247
248
|
type: "dataset",
|
|
248
249
|
debug: j.value
|
|
249
|
-
}),
|
|
250
|
-
const t =
|
|
251
|
-
const { width: s, height:
|
|
252
|
-
chart:
|
|
253
|
-
title: e.value.style.chart.title.text ?
|
|
254
|
-
legend: e.value.style.chart.legend.show ?
|
|
255
|
-
source:
|
|
256
|
-
noTitle:
|
|
257
|
-
padding:
|
|
250
|
+
}), ge.value = !1, Ae.value = !0) : Ae.value = e.value.loading, e.value.responsive) {
|
|
251
|
+
const t = Ml(() => {
|
|
252
|
+
const { width: s, height: l } = Ul({
|
|
253
|
+
chart: P.value,
|
|
254
|
+
title: e.value.style.chart.title.text ? Re.value : null,
|
|
255
|
+
legend: e.value.style.chart.legend.show ? Ce.value : null,
|
|
256
|
+
source: Ge.value,
|
|
257
|
+
noTitle: Ye.value,
|
|
258
|
+
padding: Ze.value
|
|
258
259
|
});
|
|
259
260
|
requestAnimationFrame(() => {
|
|
260
|
-
h.value.width = s, h.value.height =
|
|
261
|
+
h.value.width = s, h.value.height = l;
|
|
261
262
|
});
|
|
262
263
|
});
|
|
263
|
-
|
|
264
|
+
E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(t), q.value = P.value.parentNode, E.value.observe(q.value);
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
$l(() => {
|
|
268
|
+
E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
|
|
268
269
|
});
|
|
269
|
-
const { isPrinting:
|
|
270
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = Wl({
|
|
270
271
|
elementId: `nested_donuts_${b.value}`,
|
|
271
272
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
272
273
|
options: e.value.userOptions.print
|
|
273
|
-
}),
|
|
274
|
+
}), el = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), tl = k(() => Ol(e.value.customPalette)), _ = v({
|
|
274
275
|
dataLabels: {
|
|
275
276
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
276
277
|
},
|
|
277
278
|
showTable: e.value.table.show,
|
|
278
279
|
showTooltip: e.value.style.chart.tooltip.show
|
|
279
280
|
});
|
|
280
|
-
|
|
281
|
+
oe(e, () => {
|
|
281
282
|
_.value = {
|
|
282
283
|
dataLabels: {
|
|
283
284
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
@@ -289,184 +290,184 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
289
290
|
const h = v({
|
|
290
291
|
width: e.value.style.chart.width,
|
|
291
292
|
height: e.value.style.chart.height
|
|
292
|
-
}),
|
|
293
|
-
function
|
|
294
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
293
|
+
}), nt = Ut;
|
|
294
|
+
function ll({ datapoint: t, index: s, seriesIndex: l }) {
|
|
295
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), nt("selectDatapoint", { datapoint: t, index: s });
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function ut({
|
|
297
298
|
from: t,
|
|
298
299
|
to: s,
|
|
299
|
-
duration:
|
|
300
|
+
duration: l,
|
|
300
301
|
onUpdate: o,
|
|
301
|
-
onDone:
|
|
302
|
-
easing: u =
|
|
302
|
+
onDone: a,
|
|
303
|
+
easing: u = St
|
|
303
304
|
}) {
|
|
304
|
-
const
|
|
305
|
-
function f(
|
|
306
|
-
const
|
|
307
|
-
o(
|
|
305
|
+
const d = performance.now();
|
|
306
|
+
function f($) {
|
|
307
|
+
const i = Math.min(($ - d) / l, 1), C = u(i), F = t + (s - t) * C;
|
|
308
|
+
o(F, i), i < 1 ? requestAnimationFrame(f) : (o(s, 1), a && a());
|
|
308
309
|
}
|
|
309
310
|
requestAnimationFrame(f);
|
|
310
311
|
}
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
[null, void 0].includes(s.name) &&
|
|
312
|
+
const m = v([]), D = k(() => {
|
|
313
|
+
we.value, W.value.forEach((s, l) => {
|
|
314
|
+
[null, void 0].includes(s.name) && K({
|
|
314
315
|
componentName: "VueUiNestedDonuts",
|
|
315
316
|
type: "datasetSerieAttribute",
|
|
316
317
|
property: "name",
|
|
317
|
-
index:
|
|
318
|
+
index: l,
|
|
318
319
|
debug: j.value
|
|
319
|
-
}), [null, void 0].includes(s.series) ?
|
|
320
|
+
}), [null, void 0].includes(s.series) ? K({
|
|
320
321
|
componentName: "VueUiNestedDonuts",
|
|
321
322
|
type: "datasetSerieAttribute",
|
|
322
323
|
property: "series",
|
|
323
|
-
index:
|
|
324
|
+
index: l,
|
|
324
325
|
debug: j.value
|
|
325
|
-
}) : s.series.length === 0 ?
|
|
326
|
+
}) : s.series.length === 0 ? K({
|
|
326
327
|
componentName: "VueUiNestedDonuts",
|
|
327
328
|
type: "datasetAttributeEmpty",
|
|
328
|
-
property: `series at index ${
|
|
329
|
+
property: `series at index ${l}`,
|
|
329
330
|
debug: j.value
|
|
330
|
-
}) : s.series.forEach((o,
|
|
331
|
-
[null, void 0].includes(o.name) &&
|
|
331
|
+
}) : s.series.forEach((o, a) => {
|
|
332
|
+
[null, void 0].includes(o.name) && K({
|
|
332
333
|
componentName: "VueUiNestedDonuts",
|
|
333
334
|
type: "datasetSerieAttribute",
|
|
334
335
|
property: "name",
|
|
335
|
-
index:
|
|
336
|
+
index: a,
|
|
336
337
|
key: "serie",
|
|
337
338
|
debug: j.value
|
|
338
|
-
}), [null, void 0].includes(o.values) &&
|
|
339
|
+
}), [null, void 0].includes(o.values) && K({
|
|
339
340
|
componentName: "VueUiNestedDonuts",
|
|
340
341
|
type: "datasetSerieAttribute",
|
|
341
342
|
property: "values",
|
|
342
|
-
index:
|
|
343
|
+
index: a,
|
|
343
344
|
key: "serie",
|
|
344
345
|
debug: j.value
|
|
345
346
|
});
|
|
346
347
|
});
|
|
347
348
|
});
|
|
348
349
|
let t = 0;
|
|
349
|
-
return
|
|
350
|
+
return W.value.map((s, l) => ({
|
|
350
351
|
...s,
|
|
351
|
-
total: s.series.filter((o) => !
|
|
352
|
-
datasetIndex:
|
|
353
|
-
id: `${b.value}_${
|
|
354
|
-
series: s.series.map((o,
|
|
355
|
-
const u =
|
|
352
|
+
total: s.series.filter((o) => !m.value.includes(o.id)).map((o) => U(o.values).reduce((a, u) => a + u, 0)).reduce((o, a) => o + a, 0),
|
|
353
|
+
datasetIndex: l,
|
|
354
|
+
id: `${b.value}_${l}`,
|
|
355
|
+
series: s.series.map((o, a) => {
|
|
356
|
+
const u = U(o.values).reduce((d, f) => d + f, 0);
|
|
356
357
|
return {
|
|
357
358
|
name: o.name,
|
|
358
359
|
arcOf: s.name,
|
|
359
|
-
arcOfId: `${b.value}_${
|
|
360
|
-
id: `${b.value}_${
|
|
361
|
-
seriesIndex:
|
|
362
|
-
datasetIndex:
|
|
363
|
-
color:
|
|
364
|
-
value:
|
|
360
|
+
arcOfId: `${b.value}_${l}`,
|
|
361
|
+
id: `${b.value}_${l}_${a}`,
|
|
362
|
+
seriesIndex: a,
|
|
363
|
+
datasetIndex: l,
|
|
364
|
+
color: Nl(o.color) || tl.value[a] || Ee[a % Ee.length],
|
|
365
|
+
value: R.value ? G.value[t++] ?? 0 : u,
|
|
365
366
|
absoluteValues: o.values || []
|
|
366
367
|
};
|
|
367
368
|
})
|
|
368
369
|
}));
|
|
369
370
|
});
|
|
370
|
-
|
|
371
|
-
Array.isArray(t) && t.length > 0 && (
|
|
371
|
+
oe(() => w.dataset, (t) => {
|
|
372
|
+
Array.isArray(t) && t.length > 0 && (Ae.value = !1);
|
|
372
373
|
}, { immediate: !0 });
|
|
373
|
-
const
|
|
374
|
-
const
|
|
374
|
+
const I = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), rt = k(() => [...D.value].map((t, s) => {
|
|
375
|
+
const l = t.series.filter((o) => !m.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
|
|
375
376
|
return {
|
|
376
377
|
...t,
|
|
377
|
-
total:
|
|
378
|
-
series: t.series.filter((o) => !
|
|
378
|
+
total: l,
|
|
379
|
+
series: t.series.filter((o) => !m.value.includes(o.id)).map((o) => ({
|
|
379
380
|
...o,
|
|
380
|
-
proportion: o.value /
|
|
381
|
+
proportion: o.value / l
|
|
381
382
|
}))
|
|
382
383
|
};
|
|
383
384
|
}));
|
|
384
|
-
function
|
|
385
|
+
function al(t, s, l) {
|
|
385
386
|
let o = 0;
|
|
386
|
-
for (let
|
|
387
|
-
|
|
387
|
+
for (let a = 0; a < t.length; a += 1)
|
|
388
|
+
l.includes(t[a]) && (o += 1);
|
|
388
389
|
return o < s;
|
|
389
390
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
() =>
|
|
393
|
-
(t) =>
|
|
391
|
+
const A = v(rt.value);
|
|
392
|
+
oe(
|
|
393
|
+
() => rt.value,
|
|
394
|
+
(t) => A.value = t
|
|
394
395
|
);
|
|
395
|
-
function
|
|
396
|
-
|
|
396
|
+
function X(t) {
|
|
397
|
+
nt("selectLegend", t);
|
|
397
398
|
const s = w.dataset.flatMap(
|
|
398
|
-
(
|
|
399
|
-
value:
|
|
400
|
-
id: `${b.value}_${
|
|
401
|
-
arcOfId: `${b.value}_${
|
|
399
|
+
(i, C) => i.series.map((F, le) => ({
|
|
400
|
+
value: U(F.values).reduce((ae, de) => ae + de, 0),
|
|
401
|
+
id: `${b.value}_${C}_${le}`,
|
|
402
|
+
arcOfId: `${b.value}_${C}`
|
|
402
403
|
}))
|
|
403
|
-
).find((
|
|
404
|
+
).find((i) => i.id === t.id);
|
|
404
405
|
if (!s) return;
|
|
405
|
-
const
|
|
406
|
+
const l = D.value.flatMap((i) => i.series).find((i) => i.id === t.id)?.value ?? 0, o = A.value.flatMap((i) => i.series).find((i) => i.id === t.id);
|
|
406
407
|
let u = o ? o.value : 0;
|
|
407
|
-
const
|
|
408
|
-
(
|
|
408
|
+
const d = D.value.find(
|
|
409
|
+
(i) => i.id === s.arcOfId
|
|
409
410
|
);
|
|
410
|
-
if (!
|
|
411
|
-
const f =
|
|
411
|
+
if (!d) return;
|
|
412
|
+
const f = d.series.map((i) => i.id), $ = al(
|
|
412
413
|
f,
|
|
413
414
|
f.length - 1,
|
|
414
|
-
|
|
415
|
+
m.value
|
|
415
416
|
);
|
|
416
|
-
|
|
417
|
+
m.value.includes(t.id) ? (m.value = m.value.filter((i) => i !== t.id), e.value.serieToggleAnimation.show ? ut({
|
|
417
418
|
from: u,
|
|
418
|
-
to:
|
|
419
|
+
to: l,
|
|
419
420
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
420
|
-
onUpdate: (
|
|
421
|
-
|
|
422
|
-
...
|
|
423
|
-
series:
|
|
421
|
+
onUpdate: (i) => {
|
|
422
|
+
A.value = A.value.map((C) => ({
|
|
423
|
+
...C,
|
|
424
|
+
series: C.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
|
|
424
425
|
}));
|
|
425
426
|
}
|
|
426
|
-
}) :
|
|
427
|
-
...
|
|
428
|
-
series:
|
|
429
|
-
}))) :
|
|
427
|
+
}) : A.value = A.value.map((i) => ({
|
|
428
|
+
...i,
|
|
429
|
+
series: i.series.map((C) => C.id === t.id ? { ...C, value: l } : C)
|
|
430
|
+
}))) : $ && (e.value.serieToggleAnimation.show ? ut({
|
|
430
431
|
from: u,
|
|
431
432
|
to: 0,
|
|
432
433
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
433
|
-
onUpdate: (
|
|
434
|
-
|
|
435
|
-
...
|
|
436
|
-
series:
|
|
434
|
+
onUpdate: (i) => {
|
|
435
|
+
A.value = A.value.map((C) => ({
|
|
436
|
+
...C,
|
|
437
|
+
series: C.series.map((F) => F.id === t.id ? { ...F, value: i } : F)
|
|
437
438
|
}));
|
|
438
439
|
},
|
|
439
440
|
onDone: () => {
|
|
440
|
-
|
|
441
|
+
m.value.push(t.id);
|
|
441
442
|
}
|
|
442
|
-
}) : (
|
|
443
|
-
...
|
|
444
|
-
series:
|
|
445
|
-
})),
|
|
443
|
+
}) : (A.value = A.value.map((i) => ({
|
|
444
|
+
...i,
|
|
445
|
+
series: i.series.map((C) => C.id === t.id ? { ...C, value: 0 } : C)
|
|
446
|
+
})), m.value.push(t.id)));
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
-
if (!
|
|
448
|
+
function it(t) {
|
|
449
|
+
if (!D.value.length)
|
|
449
450
|
return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
|
|
450
|
-
const s =
|
|
451
|
+
const s = D.value.flatMap((l) => l.series).filter((l) => l.name === t);
|
|
451
452
|
return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
-
const s =
|
|
455
|
-
s !== null && (Array.isArray(s) ? s.forEach((
|
|
456
|
-
|
|
457
|
-
}) :
|
|
454
|
+
function ol(t) {
|
|
455
|
+
const s = it(t);
|
|
456
|
+
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
457
|
+
m.value.includes(l.id) && X({ id: l.id });
|
|
458
|
+
}) : m.value.includes(s.id) && X({ id: s.id }));
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
-
const s =
|
|
461
|
-
s !== null && (Array.isArray(s) ? s.forEach((
|
|
462
|
-
|
|
463
|
-
}) :
|
|
460
|
+
function sl(t) {
|
|
461
|
+
const s = it(t);
|
|
462
|
+
s !== null && (Array.isArray(s) ? s.forEach((l) => {
|
|
463
|
+
m.value.includes(l.id) || X({ id: l.id });
|
|
464
|
+
}) : m.value.includes(s.id) || X({ id: s.id }));
|
|
464
465
|
}
|
|
465
|
-
const se = k(() =>
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
value:
|
|
469
|
-
})),
|
|
466
|
+
const se = k(() => I.value / D.value.length * e.value.style.chart.layout.donut.spacingRatio), ct = k(() => A.value.map((t, s) => I.value - s * I.value / D.value.length)), J = k(() => A.value.map((t, s) => {
|
|
467
|
+
const l = Math.abs(t.series.map(($) => $.value).reduce(($, i) => $ + i, 0)) > 0, o = I.value - s * I.value / A.value.length, a = R.value ? Q.value.find(($) => $.datasetIndex === s) : null, u = [...t.series, ...a ? [a] : []].map(($) => ({
|
|
468
|
+
...$,
|
|
469
|
+
value: $.value < 1e-11 ? Number.MIN_VALUE : $.value
|
|
470
|
+
})), d = Be(
|
|
470
471
|
{ series: [
|
|
471
472
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
472
473
|
] },
|
|
@@ -485,11 +486,11 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
485
486
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
486
487
|
return {
|
|
487
488
|
...t,
|
|
488
|
-
hasData:
|
|
489
|
+
hasData: l,
|
|
489
490
|
radius: o,
|
|
490
|
-
skeleton:
|
|
491
|
+
skeleton: d,
|
|
491
492
|
fullCirclePath: f,
|
|
492
|
-
donut:
|
|
493
|
+
donut: Be(
|
|
493
494
|
{ series: u },
|
|
494
495
|
h.value.width / 2,
|
|
495
496
|
h.value.height / 2,
|
|
@@ -503,199 +504,226 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
503
504
|
se.value
|
|
504
505
|
)
|
|
505
506
|
};
|
|
506
|
-
})),
|
|
507
|
-
const
|
|
507
|
+
})), dt = k(() => [...D.value].map((t, s) => {
|
|
508
|
+
const l = s * I.value / D.value.length;
|
|
508
509
|
return {
|
|
509
|
-
sizeRatio:
|
|
510
|
-
donut:
|
|
510
|
+
sizeRatio: l,
|
|
511
|
+
donut: Be(
|
|
511
512
|
{ series: [{ value: 1 }] },
|
|
512
513
|
h.value.width / 2,
|
|
513
514
|
h.value.height / 2,
|
|
514
|
-
|
|
515
|
-
|
|
515
|
+
I.value - l,
|
|
516
|
+
I.value - l,
|
|
516
517
|
1.99999,
|
|
517
518
|
2,
|
|
518
519
|
1,
|
|
519
520
|
360,
|
|
520
521
|
105.25,
|
|
521
|
-
|
|
522
|
+
I.value / D.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
522
523
|
)[0]
|
|
523
524
|
};
|
|
524
|
-
})),
|
|
525
|
-
function
|
|
526
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
525
|
+
})), vt = v(null), ne = v(null), ue = v(null), _e = v(null);
|
|
526
|
+
function nl({ datapoint: t, seriesIndex: s }) {
|
|
527
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), pe.value = !1, vt.value = null, me.value = null, ne.value = null, ue.value = null;
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
-
|
|
529
|
+
function ht({
|
|
530
|
+
val: t,
|
|
531
|
+
percentage: s,
|
|
532
|
+
showVal: l,
|
|
533
|
+
showPercentage: o
|
|
534
|
+
}) {
|
|
535
|
+
const a = e.value.style.chart.layout.labels.dataLabels;
|
|
536
|
+
return zl({
|
|
537
|
+
config: a,
|
|
538
|
+
val: t,
|
|
539
|
+
percentage: s,
|
|
540
|
+
showVal: l,
|
|
541
|
+
showPercentage: o
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function ul({ datapoint: t, _relativeIndex: s, seriesIndex: l }) {
|
|
545
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), vt.value = t.arcOfId, ne.value = t.id, ue.value = l, me.value = t.id, _e.value = {
|
|
530
546
|
datapoint: t,
|
|
531
|
-
seriesIndex:
|
|
532
|
-
series:
|
|
547
|
+
seriesIndex: l,
|
|
548
|
+
series: A.value,
|
|
533
549
|
config: e.value
|
|
534
550
|
};
|
|
535
551
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
536
|
-
if (
|
|
552
|
+
if (Dt(o) && Bl(
|
|
537
553
|
() => o({
|
|
538
|
-
seriesIndex:
|
|
554
|
+
seriesIndex: l,
|
|
539
555
|
datapoint: t,
|
|
540
|
-
series:
|
|
556
|
+
series: A.value,
|
|
541
557
|
config: e.value
|
|
542
558
|
})
|
|
543
559
|
))
|
|
544
|
-
|
|
545
|
-
seriesIndex:
|
|
560
|
+
ye.value = o({
|
|
561
|
+
seriesIndex: l,
|
|
546
562
|
datapoint: t,
|
|
547
|
-
series:
|
|
563
|
+
series: A.value,
|
|
548
564
|
config: e.value
|
|
549
565
|
});
|
|
550
566
|
else {
|
|
551
|
-
let
|
|
552
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
553
|
-
const u =
|
|
554
|
-
u.forEach((
|
|
555
|
-
if (!
|
|
556
|
-
|
|
567
|
+
let a = "";
|
|
568
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0) {
|
|
569
|
+
const u = A.value.map((d) => d.series.find((f) => f.seriesIndex === l));
|
|
570
|
+
u.forEach((d, f) => {
|
|
571
|
+
if (!d) return "";
|
|
572
|
+
a += `
|
|
557
573
|
<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}` : ""}">
|
|
558
574
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
559
575
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
560
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
576
|
+
<circle cx="10" cy="10" r="10" fill="${d.color}"/>
|
|
561
577
|
</svg>
|
|
562
578
|
<span>
|
|
563
|
-
${
|
|
579
|
+
${d.arcOf ?? ""} - ${d.name}
|
|
564
580
|
</span>
|
|
565
581
|
</div>
|
|
566
582
|
<span>
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
583
|
+
<b>
|
|
584
|
+
${ht({
|
|
585
|
+
showVal: e.value.style.chart.tooltip.showValue,
|
|
586
|
+
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
587
|
+
val: fe(
|
|
588
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
589
|
+
t.value,
|
|
590
|
+
N({
|
|
591
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
592
|
+
v: t.value,
|
|
593
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
594
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
595
|
+
}),
|
|
596
|
+
{ datapoint: t, seriesIndex: l }
|
|
597
|
+
),
|
|
598
|
+
percentage: N({
|
|
599
|
+
v: d.proportion * 100,
|
|
600
|
+
s: "%",
|
|
601
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
602
|
+
})
|
|
603
|
+
})}
|
|
604
|
+
</b>
|
|
584
605
|
</span>
|
|
585
606
|
</div>
|
|
586
607
|
`;
|
|
587
608
|
});
|
|
588
609
|
} else
|
|
589
|
-
|
|
610
|
+
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>${fe(
|
|
590
611
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
591
612
|
t.value,
|
|
592
|
-
|
|
613
|
+
N({
|
|
593
614
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
594
615
|
v: t.value,
|
|
595
616
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
596
617
|
r: e.value.style.chart.tooltip.roundingValue
|
|
597
618
|
}),
|
|
598
|
-
{ datapoint: t, seriesIndex:
|
|
599
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
619
|
+
{ datapoint: t, seriesIndex: l }
|
|
620
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? a += `<span>(${N({
|
|
600
621
|
v: t.proportion * 100,
|
|
601
622
|
s: "%",
|
|
602
623
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
603
|
-
})})</span></div>` :
|
|
624
|
+
})})</span></div>` : a += `<b>${N({
|
|
604
625
|
v: t.proportion * 100,
|
|
605
626
|
s: "%",
|
|
606
627
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
607
628
|
})}</b></div>`);
|
|
608
|
-
|
|
629
|
+
ye.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${a}</div>`;
|
|
609
630
|
}
|
|
610
|
-
|
|
631
|
+
pe.value = !0;
|
|
611
632
|
}
|
|
612
|
-
function
|
|
633
|
+
function ft(t) {
|
|
613
634
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
614
635
|
}
|
|
615
636
|
function bt(t, s) {
|
|
616
637
|
if (!e.value.useBlurOnHover)
|
|
617
638
|
return "";
|
|
618
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
639
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0)
|
|
619
640
|
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${b.value})`;
|
|
620
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
641
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || m.value.length)
|
|
621
642
|
return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${b.value})`;
|
|
622
643
|
}
|
|
623
|
-
const re = k(() =>
|
|
624
|
-
const
|
|
625
|
-
(
|
|
626
|
-
), o =
|
|
627
|
-
const u =
|
|
628
|
-
(
|
|
644
|
+
const re = k(() => D.value.map((t, s) => {
|
|
645
|
+
const l = t.series.filter(
|
|
646
|
+
(a) => !m.value.includes(a.id)
|
|
647
|
+
), o = R.value ? l.map((a) => {
|
|
648
|
+
const u = W.value[s].series.findIndex(
|
|
649
|
+
(d) => d.name === a.name
|
|
629
650
|
);
|
|
630
|
-
return
|
|
631
|
-
|
|
632
|
-
).reduce((
|
|
633
|
-
}).reduce((
|
|
634
|
-
return t.series.map((
|
|
635
|
-
const
|
|
636
|
-
(
|
|
651
|
+
return U(
|
|
652
|
+
W.value[s].series[u].values
|
|
653
|
+
).reduce((d, f) => d + f, 0);
|
|
654
|
+
}).reduce((a, u) => a + u, 0) : l.map((a) => a.value).reduce((a, u) => a + u, 0);
|
|
655
|
+
return t.series.map((a, u) => {
|
|
656
|
+
const d = U(W.value[s].series[u].values).reduce(
|
|
657
|
+
(le, ae) => le + ae,
|
|
637
658
|
0
|
|
638
|
-
), f =
|
|
659
|
+
), f = R.value ? d : a.value;
|
|
660
|
+
console.log(m.value, a.id);
|
|
661
|
+
const $ = fe(
|
|
639
662
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
640
663
|
f,
|
|
641
|
-
|
|
664
|
+
N({
|
|
642
665
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
643
666
|
v: f,
|
|
644
667
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
645
668
|
r: e.value.style.chart.legend.roundingValue
|
|
646
669
|
}),
|
|
647
|
-
{ datapoint:
|
|
648
|
-
)
|
|
670
|
+
{ datapoint: a, seriesIndex: u }
|
|
671
|
+
), i = isNaN(f / o) || m.value.includes(a.id) ? "-" : N({
|
|
649
672
|
v: f / o * 100,
|
|
650
673
|
s: "%",
|
|
651
674
|
r: e.value.style.chart.legend.roundingPercentage
|
|
652
|
-
})
|
|
675
|
+
}), C = ht({
|
|
676
|
+
val: $,
|
|
677
|
+
percentage: i,
|
|
678
|
+
showVal: e.value.style.chart.legend.showValue,
|
|
679
|
+
showPercentage: e.value.style.chart.legend.showPercentage
|
|
680
|
+
}), F = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${C}`;
|
|
653
681
|
return {
|
|
654
|
-
name:
|
|
655
|
-
color:
|
|
682
|
+
name: a.name,
|
|
683
|
+
color: a.color,
|
|
656
684
|
value: f,
|
|
657
|
-
display:
|
|
658
|
-
svgDisplay: `${
|
|
685
|
+
display: F,
|
|
686
|
+
svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${F}`,
|
|
659
687
|
shape: "circle",
|
|
660
|
-
arcOf:
|
|
661
|
-
id:
|
|
688
|
+
arcOf: a.arcOf,
|
|
689
|
+
id: a.id,
|
|
662
690
|
seriesIndex: u,
|
|
663
691
|
datasetIndex: s,
|
|
664
692
|
total: o,
|
|
665
|
-
opacity:
|
|
666
|
-
segregate: () =>
|
|
667
|
-
isSegregated:
|
|
693
|
+
opacity: m.value.includes(a.id) ? 0.5 : 1,
|
|
694
|
+
segregate: () => X(a),
|
|
695
|
+
isSegregated: m.value.includes(a.id)
|
|
668
696
|
};
|
|
669
697
|
});
|
|
670
|
-
})),
|
|
698
|
+
})), rl = k(() => ({
|
|
671
699
|
cy: "nested-donuts-legend",
|
|
672
700
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
673
701
|
color: e.value.style.chart.legend.color,
|
|
674
702
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
675
703
|
paddingBottom: 12,
|
|
676
704
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
677
|
-
})),
|
|
678
|
-
const t =
|
|
679
|
-
name: `${
|
|
705
|
+
})), V = k(() => {
|
|
706
|
+
const t = A.value.flatMap((l) => l.series.map((o) => ({
|
|
707
|
+
name: `${l.name} - ${o.name}`,
|
|
680
708
|
color: o.color,
|
|
681
|
-
total:
|
|
682
|
-
}))), s =
|
|
709
|
+
total: l.total
|
|
710
|
+
}))), s = A.value.flatMap((l) => l.series.map((o) => o.value));
|
|
683
711
|
return { head: t, body: s };
|
|
684
712
|
});
|
|
685
|
-
function
|
|
713
|
+
function Fe(t = null) {
|
|
686
714
|
_t(() => {
|
|
687
|
-
const s =
|
|
688
|
-
[
|
|
689
|
-
[
|
|
715
|
+
const s = V.value.head.map((a, u) => [
|
|
716
|
+
[a.name],
|
|
717
|
+
[V.value.body[u]],
|
|
690
718
|
[
|
|
691
|
-
isNaN(
|
|
719
|
+
isNaN(V.value.body[u] / a.total) ? "-" : V.value.body[u] / a.total * 100
|
|
692
720
|
]
|
|
693
|
-
]),
|
|
721
|
+
]), l = [
|
|
694
722
|
[e.value.style.chart.title.text],
|
|
695
723
|
[e.value.style.chart.title.subtitle.text],
|
|
696
724
|
[[""], ["val"], ["%"]]
|
|
697
|
-
].concat(s), o =
|
|
698
|
-
t ? t(o) :
|
|
725
|
+
].concat(s), o = El(l);
|
|
726
|
+
t ? t(o) : Vl({
|
|
699
727
|
csvContent: o,
|
|
700
728
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
701
729
|
});
|
|
@@ -706,26 +734,26 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
706
734
|
e.value.table.columnNames.series,
|
|
707
735
|
e.value.table.columnNames.value,
|
|
708
736
|
e.value.table.columnNames.percentage
|
|
709
|
-
], s =
|
|
710
|
-
const
|
|
737
|
+
], s = V.value.head.map((a, u) => {
|
|
738
|
+
const d = N({
|
|
711
739
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
712
|
-
v:
|
|
740
|
+
v: V.value.body[u],
|
|
713
741
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
714
742
|
r: e.value.table.td.roundingValue
|
|
715
743
|
});
|
|
716
744
|
return [
|
|
717
745
|
{
|
|
718
|
-
color:
|
|
719
|
-
name:
|
|
746
|
+
color: a.color,
|
|
747
|
+
name: a.name
|
|
720
748
|
},
|
|
721
|
-
|
|
722
|
-
isNaN(
|
|
723
|
-
v:
|
|
749
|
+
d,
|
|
750
|
+
isNaN(V.value.body[u] / a.total) ? "-" : N({
|
|
751
|
+
v: V.value.body[u] / a.total * 100,
|
|
724
752
|
s: "%",
|
|
725
753
|
r: e.value.table.td.roundingPercentage
|
|
726
754
|
})
|
|
727
755
|
];
|
|
728
|
-
}),
|
|
756
|
+
}), l = {
|
|
729
757
|
th: {
|
|
730
758
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
731
759
|
color: e.value.table.th.color,
|
|
@@ -746,11 +774,11 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
746
774
|
],
|
|
747
775
|
head: t,
|
|
748
776
|
body: s,
|
|
749
|
-
config:
|
|
777
|
+
config: l
|
|
750
778
|
};
|
|
751
779
|
});
|
|
752
|
-
function
|
|
753
|
-
return
|
|
780
|
+
function il() {
|
|
781
|
+
return D.value;
|
|
754
782
|
}
|
|
755
783
|
function gt() {
|
|
756
784
|
_.value.showTable = !_.value.showTable;
|
|
@@ -761,40 +789,40 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
761
789
|
function yt() {
|
|
762
790
|
_.value.showTooltip = !_.value.showTooltip;
|
|
763
791
|
}
|
|
764
|
-
const
|
|
792
|
+
const ce = v(!1);
|
|
765
793
|
function xe() {
|
|
766
|
-
|
|
794
|
+
ce.value = !ce.value;
|
|
767
795
|
}
|
|
768
|
-
async function
|
|
769
|
-
if (!
|
|
770
|
-
const { width: s, height:
|
|
796
|
+
async function cl({ scale: t = 2 } = {}) {
|
|
797
|
+
if (!P.value) return;
|
|
798
|
+
const { width: s, height: l } = P.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: u } = await Jl({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
771
799
|
return {
|
|
772
|
-
imageUri:
|
|
800
|
+
imageUri: a,
|
|
773
801
|
base64: u,
|
|
774
802
|
title: e.value.style.chart.title.text,
|
|
775
803
|
width: s,
|
|
776
|
-
height:
|
|
804
|
+
height: l,
|
|
777
805
|
aspectRatio: o
|
|
778
806
|
};
|
|
779
807
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
if (!
|
|
783
|
-
const { x: t, y: s, width:
|
|
784
|
-
|
|
808
|
+
const Te = v(null);
|
|
809
|
+
function dl() {
|
|
810
|
+
if (!Te.value) return;
|
|
811
|
+
const { x: t, y: s, width: l, height: o } = Te.value.getBBox();
|
|
812
|
+
ee.value && ee.value.setAttribute("viewBox", `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`);
|
|
785
813
|
}
|
|
786
|
-
const
|
|
814
|
+
const te = k(() => {
|
|
787
815
|
const t = e.value.table.useDialog && !e.value.table.show, s = _.value.showTable;
|
|
788
816
|
return {
|
|
789
|
-
component: t ?
|
|
817
|
+
component: t ? jt : Yt,
|
|
790
818
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
791
819
|
props: t ? {
|
|
792
820
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
793
821
|
color: e.value.table.th.color,
|
|
794
822
|
headerColor: e.value.table.th.color,
|
|
795
823
|
headerBg: e.value.table.th.backgroundColor,
|
|
796
|
-
isFullscreen:
|
|
797
|
-
fullscreenParent:
|
|
824
|
+
isFullscreen: Y.value,
|
|
825
|
+
fullscreenParent: P.value,
|
|
798
826
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
799
827
|
} : {
|
|
800
828
|
hideDetails: !0,
|
|
@@ -813,95 +841,95 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
813
841
|
}
|
|
814
842
|
};
|
|
815
843
|
});
|
|
816
|
-
|
|
817
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
844
|
+
oe(() => _.value.showTable, (t) => {
|
|
845
|
+
e.value.table.show || (t && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
|
|
818
846
|
});
|
|
819
847
|
function mt() {
|
|
820
|
-
_.value.showTable = !1,
|
|
848
|
+
_.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
|
|
821
849
|
}
|
|
822
|
-
const
|
|
850
|
+
const vl = k(() => e.value.style.chart.backgroundColor), hl = k(() => e.value.style.chart.legend), fl = k(() => e.value.style.chart.title), bl = k(() => re.value.flat().map((t) => ({
|
|
823
851
|
...t,
|
|
824
852
|
name: t.svgDisplay
|
|
825
|
-
}))), { exportSvg:
|
|
826
|
-
svg:
|
|
827
|
-
title:
|
|
828
|
-
legend:
|
|
829
|
-
legendItems:
|
|
830
|
-
backgroundColor:
|
|
853
|
+
}))), { exportSvg: gl, getSvg: pl } = Xl({
|
|
854
|
+
svg: ee,
|
|
855
|
+
title: fl,
|
|
856
|
+
legend: hl,
|
|
857
|
+
legendItems: bl,
|
|
858
|
+
backgroundColor: vl
|
|
831
859
|
});
|
|
832
860
|
async function Ct({ isCb: t }) {
|
|
833
861
|
if (t) {
|
|
834
|
-
const { blob: s, url:
|
|
835
|
-
e.value.userOptions.callbacks.svg({ blob: s, url:
|
|
862
|
+
const { blob: s, url: l, text: o, dataUrl: a } = await pl();
|
|
863
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: l, text: o, dataUrl: a });
|
|
836
864
|
} else
|
|
837
|
-
|
|
865
|
+
gl();
|
|
838
866
|
}
|
|
839
|
-
return
|
|
840
|
-
autoSize:
|
|
841
|
-
getData:
|
|
842
|
-
getImage:
|
|
843
|
-
generatePdf:
|
|
844
|
-
generateCsv:
|
|
845
|
-
generateImage:
|
|
867
|
+
return Mt({
|
|
868
|
+
autoSize: dl,
|
|
869
|
+
getData: il,
|
|
870
|
+
getImage: cl,
|
|
871
|
+
generatePdf: ot,
|
|
872
|
+
generateCsv: Fe,
|
|
873
|
+
generateImage: st,
|
|
846
874
|
generateSvg: Ct,
|
|
847
|
-
hideSeries:
|
|
848
|
-
showSeries:
|
|
875
|
+
hideSeries: sl,
|
|
876
|
+
showSeries: ol,
|
|
849
877
|
toggleTable: gt,
|
|
850
878
|
toggleLabels: pt,
|
|
851
879
|
toggleTooltip: yt,
|
|
852
880
|
toggleAnnotator: xe,
|
|
853
|
-
toggleFullscreen:
|
|
881
|
+
toggleFullscreen: je
|
|
854
882
|
}), (t, s) => (n(), r("div", {
|
|
855
883
|
ref_key: "nestedDonutsChart",
|
|
856
|
-
ref:
|
|
857
|
-
class:
|
|
884
|
+
ref: P,
|
|
885
|
+
class: H(`vue-data-ui-component vue-ui-nested-donuts ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
858
886
|
style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
859
887
|
id: `nested_donuts_${b.value}`,
|
|
860
|
-
onMouseenter: s[2] || (s[2] = () =>
|
|
861
|
-
onMouseleave: s[3] || (s[3] = () =>
|
|
888
|
+
onMouseenter: s[2] || (s[2] = () => c(Ke)(!0)),
|
|
889
|
+
onMouseleave: s[3] || (s[3] = () => c(Ke)(!1))
|
|
862
890
|
}, [
|
|
863
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
891
|
+
e.value.userOptions.buttons.annotator ? (n(), z(c(Ht), {
|
|
864
892
|
key: 0,
|
|
865
|
-
svgRef:
|
|
893
|
+
svgRef: c(ee),
|
|
866
894
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
867
895
|
color: e.value.style.chart.color,
|
|
868
|
-
active:
|
|
896
|
+
active: ce.value,
|
|
869
897
|
onClose: xe
|
|
870
898
|
}, {
|
|
871
899
|
"annotator-action-close": p(() => [
|
|
872
900
|
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
873
901
|
]),
|
|
874
|
-
"annotator-action-color": p(({ color:
|
|
875
|
-
y(t.$slots, "annotator-action-color", O(
|
|
902
|
+
"annotator-action-color": p(({ color: l }) => [
|
|
903
|
+
y(t.$slots, "annotator-action-color", S(O({ color: l })), void 0, !0)
|
|
876
904
|
]),
|
|
877
|
-
"annotator-action-draw": p(({ mode:
|
|
878
|
-
y(t.$slots, "annotator-action-draw", O(
|
|
905
|
+
"annotator-action-draw": p(({ mode: l }) => [
|
|
906
|
+
y(t.$slots, "annotator-action-draw", S(O({ mode: l })), void 0, !0)
|
|
879
907
|
]),
|
|
880
|
-
"annotator-action-undo": p(({ disabled:
|
|
881
|
-
y(t.$slots, "annotator-action-undo", O(
|
|
908
|
+
"annotator-action-undo": p(({ disabled: l }) => [
|
|
909
|
+
y(t.$slots, "annotator-action-undo", S(O({ disabled: l })), void 0, !0)
|
|
882
910
|
]),
|
|
883
|
-
"annotator-action-redo": p(({ disabled:
|
|
884
|
-
y(t.$slots, "annotator-action-redo", O(
|
|
911
|
+
"annotator-action-redo": p(({ disabled: l }) => [
|
|
912
|
+
y(t.$slots, "annotator-action-redo", S(O({ disabled: l })), void 0, !0)
|
|
885
913
|
]),
|
|
886
|
-
"annotator-action-delete": p(({ disabled:
|
|
887
|
-
y(t.$slots, "annotator-action-delete", O(
|
|
914
|
+
"annotator-action-delete": p(({ disabled: l }) => [
|
|
915
|
+
y(t.$slots, "annotator-action-delete", S(O({ disabled: l })), void 0, !0)
|
|
888
916
|
]),
|
|
889
917
|
_: 3
|
|
890
918
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : L("", !0),
|
|
891
|
-
|
|
919
|
+
el.value ? (n(), r("div", {
|
|
892
920
|
key: 1,
|
|
893
921
|
ref_key: "noTitle",
|
|
894
|
-
ref:
|
|
922
|
+
ref: Ye,
|
|
895
923
|
class: "vue-data-ui-no-title-space",
|
|
896
924
|
style: "height:36px; width: 100%;background:transparent"
|
|
897
925
|
}, null, 512)) : L("", !0),
|
|
898
926
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
899
927
|
key: 2,
|
|
900
928
|
ref_key: "chartTitle",
|
|
901
|
-
ref:
|
|
929
|
+
ref: Re
|
|
902
930
|
}, [
|
|
903
|
-
(n(),
|
|
904
|
-
key: `title_${
|
|
931
|
+
(n(), z(Kl, {
|
|
932
|
+
key: `title_${We.value}`,
|
|
905
933
|
config: {
|
|
906
934
|
title: {
|
|
907
935
|
cy: "donut-div-title",
|
|
@@ -916,15 +944,15 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
916
944
|
], 512)) : L("", !0),
|
|
917
945
|
g("div", {
|
|
918
946
|
id: `legend-top-${b.value}`
|
|
919
|
-
}, null, 8,
|
|
920
|
-
e.value.userOptions.show &&
|
|
947
|
+
}, null, 8, ta),
|
|
948
|
+
e.value.userOptions.show && ge.value && (c(Qe) || c($e)) ? (n(), z(c(Xt), {
|
|
921
949
|
ref_key: "userOptionsRef",
|
|
922
|
-
ref:
|
|
923
|
-
key: `user_option_${
|
|
950
|
+
ref: ke,
|
|
951
|
+
key: `user_option_${Ue.value}`,
|
|
924
952
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
925
953
|
color: e.value.style.chart.color,
|
|
926
|
-
isPrinting:
|
|
927
|
-
isImaging:
|
|
954
|
+
isPrinting: c(lt),
|
|
955
|
+
isImaging: c(at),
|
|
928
956
|
uid: b.value,
|
|
929
957
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
930
958
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -934,33 +962,33 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
934
962
|
hasTable: e.value.userOptions.buttons.table,
|
|
935
963
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
936
964
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
937
|
-
isFullscreen:
|
|
965
|
+
isFullscreen: Y.value,
|
|
938
966
|
isTooltip: _.value.showTooltip,
|
|
939
967
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
940
|
-
chartElement:
|
|
968
|
+
chartElement: P.value,
|
|
941
969
|
position: e.value.userOptions.position,
|
|
942
970
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
943
|
-
isAnnotation:
|
|
971
|
+
isAnnotation: ce.value,
|
|
944
972
|
callbacks: e.value.userOptions.callbacks,
|
|
945
973
|
printScale: e.value.userOptions.print.scale,
|
|
946
974
|
tableDialog: e.value.table.useDialog,
|
|
947
|
-
onToggleFullscreen:
|
|
948
|
-
onGeneratePdf:
|
|
949
|
-
onGenerateCsv:
|
|
950
|
-
onGenerateImage:
|
|
975
|
+
onToggleFullscreen: je,
|
|
976
|
+
onGeneratePdf: c(ot),
|
|
977
|
+
onGenerateCsv: Fe,
|
|
978
|
+
onGenerateImage: c(st),
|
|
951
979
|
onGenerateSvg: Ct,
|
|
952
980
|
onToggleTable: gt,
|
|
953
981
|
onToggleLabels: pt,
|
|
954
982
|
onToggleTooltip: yt,
|
|
955
983
|
onToggleAnnotator: xe,
|
|
956
984
|
style: he({
|
|
957
|
-
visibility:
|
|
985
|
+
visibility: c(Qe) ? c($e) ? "visible" : "hidden" : "visible"
|
|
958
986
|
})
|
|
959
987
|
}, wt({ _: 2 }, [
|
|
960
988
|
t.$slots.menuIcon ? {
|
|
961
989
|
name: "menuIcon",
|
|
962
|
-
fn: p(({ isOpen:
|
|
963
|
-
y(t.$slots, "menuIcon", O(
|
|
990
|
+
fn: p(({ isOpen: l, color: o }) => [
|
|
991
|
+
y(t.$slots, "menuIcon", S(O({ isOpen: l, color: o })), void 0, !0)
|
|
964
992
|
]),
|
|
965
993
|
key: "0"
|
|
966
994
|
} : void 0,
|
|
@@ -1015,37 +1043,37 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1015
1043
|
} : void 0,
|
|
1016
1044
|
t.$slots.optionFullscreen ? {
|
|
1017
1045
|
name: "optionFullscreen",
|
|
1018
|
-
fn: p(({ toggleFullscreen:
|
|
1019
|
-
y(t.$slots, "optionFullscreen", O(
|
|
1046
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
1047
|
+
y(t.$slots, "optionFullscreen", S(O({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
1020
1048
|
]),
|
|
1021
1049
|
key: "8"
|
|
1022
1050
|
} : void 0,
|
|
1023
1051
|
t.$slots.optionAnnotator ? {
|
|
1024
1052
|
name: "optionAnnotator",
|
|
1025
|
-
fn: p(({ toggleAnnotator:
|
|
1026
|
-
y(t.$slots, "optionAnnotator", O(
|
|
1053
|
+
fn: p(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
1054
|
+
y(t.$slots, "optionAnnotator", S(O({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
1027
1055
|
]),
|
|
1028
1056
|
key: "9"
|
|
1029
1057
|
} : void 0
|
|
1030
1058
|
]), 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"])) : L("", !0),
|
|
1031
1059
|
(n(), r("svg", {
|
|
1032
1060
|
ref_key: "svgRef",
|
|
1033
|
-
ref:
|
|
1034
|
-
xmlns:
|
|
1035
|
-
class:
|
|
1036
|
-
"vue-data-ui-fullscreen--on":
|
|
1037
|
-
"vue-data-ui-fulscreen--off": !
|
|
1061
|
+
ref: ee,
|
|
1062
|
+
xmlns: c(Pl),
|
|
1063
|
+
class: H({
|
|
1064
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
1065
|
+
"vue-data-ui-fulscreen--off": !Y.value,
|
|
1038
1066
|
"vue-data-ui-svg": !0
|
|
1039
1067
|
}),
|
|
1040
1068
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
1041
|
-
style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
1069
|
+
style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ze.value.css}`)
|
|
1042
1070
|
}, [
|
|
1043
1071
|
g("g", {
|
|
1044
1072
|
ref_key: "G",
|
|
1045
|
-
ref:
|
|
1073
|
+
ref: Te,
|
|
1046
1074
|
class: "vue-data-ui-g"
|
|
1047
1075
|
}, [
|
|
1048
|
-
|
|
1076
|
+
Ie(c(qt)),
|
|
1049
1077
|
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1050
1078
|
key: 0,
|
|
1051
1079
|
x: 0,
|
|
@@ -1057,9 +1085,9 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1057
1085
|
}
|
|
1058
1086
|
}, [
|
|
1059
1087
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
1060
|
-
], 8,
|
|
1088
|
+
], 8, aa)) : L("", !0),
|
|
1061
1089
|
g("defs", null, [
|
|
1062
|
-
(n(!0), r(x, null,
|
|
1090
|
+
(n(!0), r(x, null, T(dt.value, (l, o) => (n(), r("radialGradient", {
|
|
1063
1091
|
id: `radial_${b.value}_${o}`
|
|
1064
1092
|
}, [
|
|
1065
1093
|
s[4] || (s[4] = g("stop", {
|
|
@@ -1068,21 +1096,21 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1068
1096
|
"stop-opacity": "0"
|
|
1069
1097
|
}, null, -1)),
|
|
1070
1098
|
g("stop", {
|
|
1071
|
-
offset: `${(1 - se.value /
|
|
1072
|
-
"stop-color":
|
|
1099
|
+
offset: `${(1 - se.value / ct.value[o]) * 100}%`,
|
|
1100
|
+
"stop-color": c(Il)("#FFFFFF", 0),
|
|
1073
1101
|
"stop-opacity": "0"
|
|
1074
|
-
}, null, 8,
|
|
1102
|
+
}, null, 8, sa),
|
|
1075
1103
|
g("stop", {
|
|
1076
|
-
offset: `${(1 - se.value /
|
|
1104
|
+
offset: `${(1 - se.value / ct.value[o] / 2) * 100}%`,
|
|
1077
1105
|
"stop-color": "#FFFFFF",
|
|
1078
1106
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1079
|
-
}, null, 8,
|
|
1107
|
+
}, null, 8, na),
|
|
1080
1108
|
s[5] || (s[5] = g("stop", {
|
|
1081
1109
|
offset: "100%",
|
|
1082
1110
|
"stop-color": "#FFFFFF",
|
|
1083
1111
|
"stop-opacity": "0"
|
|
1084
1112
|
}, null, -1))
|
|
1085
|
-
], 8,
|
|
1113
|
+
], 8, oa))), 256))
|
|
1086
1114
|
]),
|
|
1087
1115
|
g("defs", null, [
|
|
1088
1116
|
g("filter", {
|
|
@@ -1096,12 +1124,12 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1096
1124
|
in: "SourceGraphic",
|
|
1097
1125
|
stdDeviation: 2,
|
|
1098
1126
|
id: `blur_std_${b.value}`
|
|
1099
|
-
}, null, 8,
|
|
1127
|
+
}, null, 8, ra),
|
|
1100
1128
|
s[6] || (s[6] = g("feColorMatrix", {
|
|
1101
1129
|
type: "saturate",
|
|
1102
1130
|
values: "0"
|
|
1103
1131
|
}, null, -1))
|
|
1104
|
-
], 8,
|
|
1132
|
+
], 8, ua),
|
|
1105
1133
|
g("filter", {
|
|
1106
1134
|
id: `shadow_${b.value}`,
|
|
1107
1135
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1112,53 +1140,53 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1112
1140
|
stdDeviation: "10",
|
|
1113
1141
|
"flood-opacity": "0.5",
|
|
1114
1142
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1115
|
-
}, null, 8,
|
|
1116
|
-
], 8,
|
|
1143
|
+
}, null, 8, ca)
|
|
1144
|
+
], 8, ia)
|
|
1117
1145
|
]),
|
|
1118
1146
|
g("defs", null, [
|
|
1119
|
-
(n(!0), r(x, null,
|
|
1147
|
+
(n(!0), r(x, null, T(J.value, (l, o) => (n(), r("path", {
|
|
1120
1148
|
key: `path-full-${o}`,
|
|
1121
1149
|
id: `path-full-${o}-${b.value}`,
|
|
1122
|
-
d:
|
|
1150
|
+
d: l.fullCirclePath,
|
|
1123
1151
|
fill: "none"
|
|
1124
|
-
}, null, 8,
|
|
1152
|
+
}, null, 8, da))), 128))
|
|
1125
1153
|
]),
|
|
1126
|
-
(n(!0), r(x, null,
|
|
1127
|
-
|
|
1154
|
+
(n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1155
|
+
l.hasData ? (n(!0), r(x, { key: 0 }, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", null, [
|
|
1128
1156
|
g("path", {
|
|
1129
1157
|
class: "vue-ui-donut-arc-path",
|
|
1130
|
-
d:
|
|
1131
|
-
fill:
|
|
1158
|
+
d: a.arcSlice,
|
|
1159
|
+
fill: a.color,
|
|
1132
1160
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1133
1161
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1134
|
-
filter: bt(
|
|
1135
|
-
}, null, 8,
|
|
1136
|
-
]))), 256)) : (n(!0), r(x, { key: 1 },
|
|
1162
|
+
filter: bt(a, u)
|
|
1163
|
+
}, null, 8, va)
|
|
1164
|
+
]))), 256)) : (n(!0), r(x, { key: 1 }, T(l.skeleton, (a, u) => (n(), r("g", null, [
|
|
1137
1165
|
g("path", {
|
|
1138
1166
|
class: "vue-ui-donut-arc-path",
|
|
1139
|
-
d:
|
|
1140
|
-
fill:
|
|
1167
|
+
d: a.arcSlice,
|
|
1168
|
+
fill: a.color,
|
|
1141
1169
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1142
1170
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1143
|
-
}, null, 8,
|
|
1171
|
+
}, null, 8, ha)
|
|
1144
1172
|
]))), 256))
|
|
1145
1173
|
]))), 256)),
|
|
1146
|
-
e.value.style.chart.useGradient ? (n(), r("g",
|
|
1147
|
-
(n(!0), r(x, null,
|
|
1174
|
+
e.value.style.chart.useGradient ? (n(), r("g", fa, [
|
|
1175
|
+
(n(!0), r(x, null, T(dt.value, (l, o) => (n(), r("g", null, [
|
|
1148
1176
|
g("path", {
|
|
1149
|
-
d:
|
|
1177
|
+
d: l.donut.arcSlice,
|
|
1150
1178
|
fill: `url(#radial_${b.value}_${o})`,
|
|
1151
1179
|
stroke: "transparent",
|
|
1152
1180
|
"stroke-width": "0"
|
|
1153
|
-
}, null, 8,
|
|
1181
|
+
}, null, 8, ba)
|
|
1154
1182
|
]))), 256))
|
|
1155
1183
|
])) : L("", !0),
|
|
1156
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g",
|
|
1157
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(x, { key: 0 },
|
|
1158
|
-
(n(!0), r(x, null,
|
|
1184
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", ga, [
|
|
1185
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(x, { key: 0 }, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1186
|
+
(n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1159
1187
|
u === 0 && h.value.width && h.value.height ? (n(), r("text", {
|
|
1160
1188
|
key: 0,
|
|
1161
|
-
class:
|
|
1189
|
+
class: H({ animated: e.value.useCssAnimation }),
|
|
1162
1190
|
"text-anchor": "middle",
|
|
1163
1191
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1164
1192
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
@@ -1171,148 +1199,122 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1171
1199
|
"text-anchor": "middle",
|
|
1172
1200
|
method: "align",
|
|
1173
1201
|
spacing: "auto"
|
|
1174
|
-
},
|
|
1175
|
-
source:
|
|
1202
|
+
}, M(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? c(Ft)({
|
|
1203
|
+
source: l.name,
|
|
1176
1204
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1177
|
-
}) :
|
|
1178
|
-
], 10,
|
|
1205
|
+
}) : l.name), 9, ya)
|
|
1206
|
+
], 10, pa)) : L("", !0)
|
|
1179
1207
|
]))), 256))
|
|
1180
|
-
]))), 256)) : (n(!0), r(x, { key: 1 },
|
|
1181
|
-
(n(!0), r(x, null,
|
|
1208
|
+
]))), 256)) : (n(!0), r(x, { key: 1 }, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1209
|
+
(n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1182
1210
|
u === 0 && h.value.width && h.value.height ? (n(), r("text", {
|
|
1183
1211
|
key: 0,
|
|
1184
|
-
class:
|
|
1212
|
+
class: H({ animated: e.value.useCssAnimation }),
|
|
1185
1213
|
x: h.value.width / 2,
|
|
1186
|
-
y:
|
|
1214
|
+
y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1187
1215
|
"text-anchor": "middle",
|
|
1188
1216
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1189
1217
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1190
1218
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1191
|
-
},
|
|
1192
|
-
source:
|
|
1219
|
+
}, M(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? c(Ft)({
|
|
1220
|
+
source: l.name,
|
|
1193
1221
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1194
|
-
}) :
|
|
1222
|
+
}) : l.name), 11, ma)) : L("", !0)
|
|
1195
1223
|
]))), 256))
|
|
1196
1224
|
]))), 256))
|
|
1197
1225
|
])) : L("", !0),
|
|
1198
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g",
|
|
1199
|
-
(n(!0), r(x, null,
|
|
1200
|
-
(n(!0), r(x, null,
|
|
1201
|
-
filter: bt(
|
|
1226
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ca, [
|
|
1227
|
+
(n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1228
|
+
(n(!0), r(x, null, T(l.donut.filter((a) => !a.ghost), (a, u) => (n(), r("g", {
|
|
1229
|
+
filter: bt(a, u)
|
|
1202
1230
|
}, [
|
|
1203
1231
|
At(g("text", {
|
|
1204
|
-
class:
|
|
1205
|
-
opacity:
|
|
1206
|
-
"text-anchor":
|
|
1207
|
-
x:
|
|
1208
|
-
|
|
1232
|
+
class: H({ animated: e.value.useCssAnimation }),
|
|
1233
|
+
opacity: ft(a) ? 1 : 0,
|
|
1234
|
+
"text-anchor": c(be)(a, !0).anchor,
|
|
1235
|
+
x: c(be)(
|
|
1236
|
+
a,
|
|
1209
1237
|
!1,
|
|
1210
1238
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1211
1239
|
).x || 0,
|
|
1212
|
-
y:
|
|
1213
|
-
|
|
1240
|
+
y: c(xt)(
|
|
1241
|
+
a,
|
|
1214
1242
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1215
1243
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1216
|
-
),
|
|
1217
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1244
|
+
) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst && e.value.style.chart.layout.labels.dataLabels.showValue ? e.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1245
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1218
1246
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1219
1247
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1248
|
+
}, M(c(Tt)(
|
|
1249
|
+
c(N)({
|
|
1250
|
+
v: a.proportion * 100,
|
|
1251
|
+
s: "%",
|
|
1252
|
+
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1253
|
+
}),
|
|
1254
|
+
e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "",
|
|
1255
|
+
e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : ""
|
|
1256
|
+
)), 11, wa), [
|
|
1257
|
+
[$t, _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage]
|
|
1229
1258
|
]),
|
|
1230
1259
|
At(g("text", {
|
|
1231
|
-
class:
|
|
1232
|
-
opacity:
|
|
1233
|
-
"text-anchor":
|
|
1234
|
-
x:
|
|
1235
|
-
|
|
1260
|
+
class: H({ animated: e.value.useCssAnimation }),
|
|
1261
|
+
opacity: ft(a) ? 1 : 0,
|
|
1262
|
+
"text-anchor": c(be)(a, !0).anchor,
|
|
1263
|
+
x: c(be)(
|
|
1264
|
+
a,
|
|
1236
1265
|
!1,
|
|
1237
1266
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1238
1267
|
).x || 0,
|
|
1239
|
-
y:
|
|
1240
|
-
|
|
1268
|
+
y: c(xt)(
|
|
1269
|
+
a,
|
|
1241
1270
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1242
1271
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1243
|
-
) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1244
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1272
|
+
) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst || !e.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : e.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1273
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1245
1274
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1246
1275
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1247
|
-
},
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
[
|
|
1259
|
-
$t,
|
|
1260
|
-
_.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1261
|
-
]
|
|
1262
|
-
]),
|
|
1263
|
-
Le(l) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
|
|
1264
|
-
key: 0,
|
|
1265
|
-
class: M({ animated: e.value.useCssAnimation }),
|
|
1266
|
-
"text-anchor": i(K)(l, !0).anchor,
|
|
1267
|
-
x: i(K)(
|
|
1268
|
-
l,
|
|
1269
|
-
!1,
|
|
1270
|
-
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1271
|
-
).x || 0,
|
|
1272
|
-
y: i(Me)(
|
|
1273
|
-
l,
|
|
1274
|
-
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1275
|
-
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1276
|
+
}, M(c(Tt)(
|
|
1277
|
+
c(fe)(
|
|
1278
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1279
|
+
a.value,
|
|
1280
|
+
c(N)({
|
|
1281
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1282
|
+
v: a.value,
|
|
1283
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1284
|
+
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1285
|
+
}),
|
|
1286
|
+
{ datapoint: a, seriesIndex: o, datapointIndex: u }
|
|
1276
1287
|
),
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
i(D)({
|
|
1284
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1285
|
-
v: l.value,
|
|
1286
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1287
|
-
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1288
|
-
}),
|
|
1289
|
-
{ datapoint: l, seriesIndex: o, datapointIndex: u }
|
|
1290
|
-
)), 11, ka)) : L("", !0)
|
|
1291
|
-
], 8, ya))), 256))
|
|
1288
|
+
e.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "",
|
|
1289
|
+
e.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : ""
|
|
1290
|
+
)), 11, Aa), [
|
|
1291
|
+
[$t, _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showValue]
|
|
1292
|
+
])
|
|
1293
|
+
], 8, ka))), 256))
|
|
1292
1294
|
]))), 256))
|
|
1293
1295
|
])) : L("", !0),
|
|
1294
|
-
(n(!0), r(x, null,
|
|
1295
|
-
(n(!0), r(x, null,
|
|
1296
|
+
(n(!0), r(x, null, T(J.value, (l, o) => (n(), r("g", null, [
|
|
1297
|
+
(n(!0), r(x, null, T(l.donut, (a, u) => (n(), r("g", null, [
|
|
1296
1298
|
g("path", {
|
|
1297
|
-
d:
|
|
1298
|
-
fill:
|
|
1299
|
-
onMouseenter: (
|
|
1300
|
-
datapoint:
|
|
1301
|
-
seriesIndex:
|
|
1299
|
+
d: a.arcSlice,
|
|
1300
|
+
fill: me.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1301
|
+
onMouseenter: (d) => ul({
|
|
1302
|
+
datapoint: a,
|
|
1303
|
+
seriesIndex: a.seriesIndex
|
|
1302
1304
|
}),
|
|
1303
|
-
onClick: (
|
|
1304
|
-
onMouseleave: (
|
|
1305
|
-
}, null, 40,
|
|
1305
|
+
onClick: (d) => ll({ datapoint: a, index: u, seriesIndex: a.seriesIndex }),
|
|
1306
|
+
onMouseleave: (d) => nl({ datapoint: a, seriesIndex: a.seriesIndex })
|
|
1307
|
+
}, null, 40, $a)
|
|
1306
1308
|
]))), 256))
|
|
1307
1309
|
]))), 256)),
|
|
1308
1310
|
y(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1309
1311
|
], 512)
|
|
1310
|
-
], 14,
|
|
1311
|
-
t.$slots.watermark ? (n(), r("div",
|
|
1312
|
-
y(t.$slots, "watermark", O(
|
|
1312
|
+
], 14, la)),
|
|
1313
|
+
t.$slots.watermark ? (n(), r("div", La, [
|
|
1314
|
+
y(t.$slots, "watermark", S(O({ isPrinting: c(lt) || c(at) })), void 0, !0)
|
|
1313
1315
|
])) : L("", !0),
|
|
1314
|
-
|
|
1315
|
-
show: _.value.showTooltip &&
|
|
1316
|
+
Ie(c(Rt), {
|
|
1317
|
+
show: _.value.showTooltip && pe.value,
|
|
1316
1318
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1317
1319
|
color: e.value.style.chart.tooltip.color,
|
|
1318
1320
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1322,50 +1324,50 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1322
1324
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1323
1325
|
position: e.value.style.chart.tooltip.position,
|
|
1324
1326
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1325
|
-
parent:
|
|
1326
|
-
content:
|
|
1327
|
-
isFullscreen:
|
|
1328
|
-
isCustom:
|
|
1327
|
+
parent: P.value,
|
|
1328
|
+
content: ye.value,
|
|
1329
|
+
isFullscreen: Y.value,
|
|
1330
|
+
isCustom: c(Dt)(e.value.style.chart.tooltip.customFormat),
|
|
1329
1331
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1330
1332
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1331
1333
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1332
1334
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1333
1335
|
}, {
|
|
1334
1336
|
"tooltip-before": p(() => [
|
|
1335
|
-
y(t.$slots, "tooltip-before", O(
|
|
1337
|
+
y(t.$slots, "tooltip-before", S(O({ ..._e.value })), void 0, !0)
|
|
1336
1338
|
]),
|
|
1337
1339
|
"tooltip-after": p(() => [
|
|
1338
|
-
y(t.$slots, "tooltip-after", O(
|
|
1340
|
+
y(t.$slots, "tooltip-after", S(O({ ..._e.value })), void 0, !0)
|
|
1339
1341
|
]),
|
|
1340
1342
|
_: 3
|
|
1341
1343
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1342
1344
|
g("div", {
|
|
1343
1345
|
id: `legend-bottom-${b.value}`
|
|
1344
|
-
}, null, 8,
|
|
1345
|
-
|
|
1346
|
+
}, null, 8, _a),
|
|
1347
|
+
qe.value ? (n(), z(Ll, {
|
|
1346
1348
|
key: 5,
|
|
1347
1349
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
1348
1350
|
}, [
|
|
1349
1351
|
e.value.style.chart.legend.show ? (n(), r("div", {
|
|
1350
1352
|
key: 0,
|
|
1351
1353
|
ref_key: "chartLegend",
|
|
1352
|
-
ref:
|
|
1353
|
-
class:
|
|
1354
|
+
ref: Ce,
|
|
1355
|
+
class: H({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
|
|
1354
1356
|
}, [
|
|
1355
|
-
(n(!0), r(x, null,
|
|
1356
|
-
key: `legend_${o}_${
|
|
1357
|
-
legendSet:
|
|
1358
|
-
config:
|
|
1359
|
-
onClickMarker: s[0] || (s[0] = ({ legend:
|
|
1357
|
+
(n(!0), r(x, null, T(re.value, (l, o) => (n(), z(Ql, {
|
|
1358
|
+
key: `legend_${o}_${He.value}`,
|
|
1359
|
+
legendSet: l,
|
|
1360
|
+
config: rl.value,
|
|
1361
|
+
onClickMarker: s[0] || (s[0] = ({ legend: a }) => X(a))
|
|
1360
1362
|
}, {
|
|
1361
|
-
legendTitle: p(({ titleSet:
|
|
1362
|
-
|
|
1363
|
+
legendTitle: p(({ titleSet: a }) => [
|
|
1364
|
+
a[0] && a[0].arcOf ? (n(), r("div", Fa, M(a[0].arcOf), 1)) : L("", !0)
|
|
1363
1365
|
]),
|
|
1364
|
-
item: p(({ legend:
|
|
1366
|
+
item: p(({ legend: a, index: u }) => [
|
|
1365
1367
|
g("div", {
|
|
1366
|
-
onClick: (
|
|
1367
|
-
style: he(`opacity:${
|
|
1368
|
-
},
|
|
1368
|
+
onClick: (d) => X(a),
|
|
1369
|
+
style: he(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
|
|
1370
|
+
}, M(a.display), 13, xa)
|
|
1369
1371
|
]),
|
|
1370
1372
|
_: 1
|
|
1371
1373
|
}, 8, ["legendSet", "config"]))), 128))
|
|
@@ -1374,42 +1376,42 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1374
1376
|
e.value.style.chart.legend.show ? L("", !0) : (n(), r("div", {
|
|
1375
1377
|
key: 6,
|
|
1376
1378
|
ref_key: "chartLegend",
|
|
1377
|
-
ref:
|
|
1379
|
+
ref: Ce
|
|
1378
1380
|
}, [
|
|
1379
1381
|
y(t.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
1380
1382
|
], 512)),
|
|
1381
1383
|
t.$slots.source ? (n(), r("div", {
|
|
1382
1384
|
key: 7,
|
|
1383
1385
|
ref_key: "source",
|
|
1384
|
-
ref:
|
|
1386
|
+
ref: Ge,
|
|
1385
1387
|
dir: "auto"
|
|
1386
1388
|
}, [
|
|
1387
1389
|
y(t.$slots, "source", {}, void 0, !0)
|
|
1388
1390
|
], 512)) : L("", !0),
|
|
1389
|
-
|
|
1391
|
+
ge.value && e.value.userOptions.buttons.table ? (n(), z(_l(te.value.component), Fl({ key: 8 }, te.value.props, {
|
|
1390
1392
|
ref_key: "tableUnit",
|
|
1391
|
-
ref:
|
|
1393
|
+
ref: Z,
|
|
1392
1394
|
onClose: mt
|
|
1393
1395
|
}), wt({
|
|
1394
1396
|
content: p(() => [
|
|
1395
|
-
(n(),
|
|
1396
|
-
key: `table_${
|
|
1397
|
+
(n(), z(c(Wt), {
|
|
1398
|
+
key: `table_${Xe.value}`,
|
|
1397
1399
|
colNames: ie.value.colNames,
|
|
1398
1400
|
head: ie.value.head,
|
|
1399
1401
|
body: ie.value.body,
|
|
1400
1402
|
config: ie.value.config,
|
|
1401
|
-
title: e.value.table.useDialog ? "" :
|
|
1403
|
+
title: e.value.table.useDialog ? "" : te.value.title,
|
|
1402
1404
|
withCloseButton: !e.value.table.useDialog,
|
|
1403
1405
|
onClose: mt
|
|
1404
1406
|
}, {
|
|
1405
|
-
th: p(({ th:
|
|
1407
|
+
th: p(({ th: l }) => [
|
|
1406
1408
|
g("div", {
|
|
1407
|
-
innerHTML:
|
|
1409
|
+
innerHTML: l,
|
|
1408
1410
|
style: { display: "flex", "align-items": "center" }
|
|
1409
|
-
}, null, 8,
|
|
1411
|
+
}, null, 8, Ta)
|
|
1410
1412
|
]),
|
|
1411
|
-
td: p(({ td:
|
|
1412
|
-
Lt(
|
|
1413
|
+
td: p(({ td: l }) => [
|
|
1414
|
+
Lt(M(l.name || l), 1)
|
|
1413
1415
|
]),
|
|
1414
1416
|
_: 1
|
|
1415
1417
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1419,7 +1421,7 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1419
1421
|
e.value.table.useDialog ? {
|
|
1420
1422
|
name: "title",
|
|
1421
1423
|
fn: p(() => [
|
|
1422
|
-
Lt(
|
|
1424
|
+
Lt(M(te.value.title), 1)
|
|
1423
1425
|
]),
|
|
1424
1426
|
key: "0"
|
|
1425
1427
|
} : void 0,
|
|
@@ -1429,26 +1431,26 @@ const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1429
1431
|
g("button", {
|
|
1430
1432
|
tabindex: "0",
|
|
1431
1433
|
class: "vue-ui-user-options-button",
|
|
1432
|
-
onClick: s[1] || (s[1] = (
|
|
1434
|
+
onClick: s[1] || (s[1] = (l) => Fe(e.value.userOptions.callbacks.csv))
|
|
1433
1435
|
}, [
|
|
1434
|
-
|
|
1436
|
+
Ie(c(Gt), {
|
|
1435
1437
|
name: "excel",
|
|
1436
|
-
stroke:
|
|
1438
|
+
stroke: te.value.props.color
|
|
1437
1439
|
}, null, 8, ["stroke"])
|
|
1438
1440
|
])
|
|
1439
1441
|
]),
|
|
1440
1442
|
key: "1"
|
|
1441
1443
|
} : void 0
|
|
1442
1444
|
]), 1040)) : L("", !0),
|
|
1443
|
-
|
|
1444
|
-
], 46,
|
|
1445
|
+
c(we) ? (n(), z(Yl, { key: 9 })) : L("", !0)
|
|
1446
|
+
], 46, ea));
|
|
1445
1447
|
}
|
|
1446
|
-
},
|
|
1448
|
+
}, Sa = /* @__PURE__ */ Zl(Da, [["__scopeId", "data-v-69e76543"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1447
1449
|
__proto__: null,
|
|
1448
|
-
default:
|
|
1450
|
+
default: Sa
|
|
1449
1451
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1450
1452
|
export {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1453
|
+
Ha as a,
|
|
1454
|
+
qa as b,
|
|
1455
|
+
Sa as v
|
|
1454
1456
|
};
|