vue-data-ui 3.9.12 → 3.9.14
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-N2zi0qFZ.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-DsQKikUm.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 +44 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
- package/dist/{useNestedProp-D-jUHecl.js → useNestedProp-CH0YJac3.js} +305 -285
- package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
- package/dist/{vue-data-ui-Dw19CYml.js → vue-data-ui-CETZbpPy.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Bv7Tft_r.js → vue-ui-3d-bar-D1e74DW-.js} +6 -6
- package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-CTzbMRF5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6NjJlg4.js → vue-ui-age-pyramid-BcFAs3n4.js} +25 -25
- package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-lhy2XeYL.js} +7 -7
- package/dist/{vue-ui-bullet-BLGvme53.js → vue-ui-bullet-CkSsXQmm.js} +22 -22
- package/dist/{vue-ui-candlestick-DBG1mW60.js → vue-ui-candlestick-CGg_7SLg.js} +85 -85
- package/dist/{vue-ui-carousel-table-BYnItN48.js → vue-ui-carousel-table-BiIRXmhP.js} +13 -13
- package/dist/{vue-ui-chestnut-DV6f4SNc.js → vue-ui-chestnut-B2xTArwU.js} +31 -31
- package/dist/{vue-ui-chord-DRleP2O8.js → vue-ui-chord-C2VrC0ix.js} +8 -8
- package/dist/{vue-ui-circle-pack-BCrMaFWw.js → vue-ui-circle-pack-CIDxBme9.js} +6 -6
- package/dist/{vue-ui-cursor-j10t3UEX.js → vue-ui-cursor-FWs20kb7.js} +3 -3
- package/dist/{vue-ui-dag-y0oqslGj.js → vue-ui-dag-DqW_jGnz.js} +7 -7
- package/dist/{vue-ui-dashboard-mBGF94l6.js → vue-ui-dashboard-BQaQX1Hp.js} +68 -68
- package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-ClutLZo6.js} +2 -2
- package/dist/vue-ui-donut-BPDMilOE.js +2085 -0
- package/dist/{vue-ui-donut-evolution-hkHICgry.js → vue-ui-donut-evolution-tSmXvXha.js} +8 -8
- package/dist/{vue-ui-dumbbell-BVPZwi0X.js → vue-ui-dumbbell-DI_0jaJa.js} +33 -33
- package/dist/{vue-ui-flow-BNeKU-KR.js → vue-ui-flow-sS-isses.js} +38 -38
- package/dist/{vue-ui-funnel-VorM1bT0.js → vue-ui-funnel-DVxu44AB.js} +6 -6
- package/dist/{vue-ui-galaxy-DKkviRQr.js → vue-ui-galaxy-DfYKoeS5.js} +316 -291
- package/dist/{vue-ui-gauge-BNaWVi-e.js → vue-ui-gauge-DHeQWB2r.js} +7 -7
- package/dist/{vue-ui-geo-_R5mjj-u.js → vue-ui-geo-CznOIKY5.js} +7 -7
- package/dist/{vue-ui-gizmo-AQFQccea.js → vue-ui-gizmo-CuR4Ktlm.js} +3 -3
- package/dist/{vue-ui-heatmap-BKX1bPY5.js → vue-ui-heatmap-C_0kd0gS.js} +108 -108
- package/dist/{vue-ui-history-plot-BNX8B2jr.js → vue-ui-history-plot-D9O5B8ww.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-B6VyEs1p.js → vue-ui-horizontal-bar-C8OQwHQ5.js} +47 -47
- package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-xwNhi_Q7.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DB854OD8.js} +2 -2
- package/dist/{vue-ui-molecule-PtnhkQLr.js → vue-ui-molecule-BnBImo7O.js} +5 -5
- package/dist/{vue-ui-mood-radar-DxSVU35A.js → vue-ui-mood-radar-CFWaqvbw.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BY8C1axg.js → vue-ui-nested-donuts-Dr1SFgd1.js} +587 -585
- package/dist/{vue-ui-onion-XJAcsPVV.js → vue-ui-onion-BF0uOkdf.js} +391 -344
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIZbgp.js → vue-ui-parallel-coordinate-plot-B39MmRM-.js} +43 -43
- package/dist/{vue-ui-quadrant-DY9GXVYY.js → vue-ui-quadrant-DQ6jK5lK.js} +8 -8
- package/dist/{vue-ui-quick-chart-Y73WB5GW.js → vue-ui-quick-chart-BJFT6MlE.js} +52 -52
- package/dist/{vue-ui-radar-Deup68ga.js → vue-ui-radar-CI1vvdix.js} +57 -57
- package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-D6e1hvlN.js} +2 -2
- package/dist/{vue-ui-relation-circle-C0W3aPaO.js → vue-ui-relation-circle-D5EIwXQT.js} +7 -7
- package/dist/{vue-ui-ridgeline-D9z3_hRf.js → vue-ui-ridgeline-CbP6FSBx.js} +8 -8
- package/dist/{vue-ui-rings-CT3gLUkS.js → vue-ui-rings-C1kLHyn7.js} +270 -246
- package/dist/{vue-ui-scatter-DiLSOZGs.js → vue-ui-scatter-DvyRNG7b.js} +8 -8
- package/dist/{vue-ui-skeleton-D_2C5A85.js → vue-ui-skeleton-OfYh_8kr.js} +3 -3
- package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-DPlPB903.js} +2 -2
- package/dist/{vue-ui-spark-trend-C05f4Fn6.js → vue-ui-spark-trend-CIovzP7V.js} +96 -96
- package/dist/{vue-ui-sparkbar-CjYaG0Ae.js → vue-ui-sparkbar-d0QvIPMK.js} +3 -3
- package/dist/{vue-ui-sparkgauge-AKIy8PYI.js → vue-ui-sparkgauge-DtK6S9ta.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-nWWgx7iD.js → vue-ui-sparkhistogram-AAM_6-a0.js} +4 -4
- package/dist/{vue-ui-sparkline-CGMDNQpH.js → vue-ui-sparkline-Ui_n_Z13.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-C3vjYPrM.js → vue-ui-sparkstackbar-CcSO3B20.js} +3 -3
- package/dist/{vue-ui-stackbar-BQiLC89h.js → vue-ui-stackbar-IgHE0ix-.js} +41 -41
- package/dist/{vue-ui-stackline-DPV5Amgq.js → vue-ui-stackline-ZPpM0WJp.js} +130 -130
- package/dist/{vue-ui-strip-plot-CFGml25d.js → vue-ui-strip-plot-_Y2m-Dly.js} +28 -28
- package/dist/{vue-ui-table-DySeXTmp.js → vue-ui-table-32WvmMgb.js} +27 -27
- package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-BQun9OwK.js} +12 -12
- package/dist/{vue-ui-table-sparkline-DbEj6x4N.js → vue-ui-table-sparkline-DioGmETm.js} +11 -11
- package/dist/{vue-ui-thermometer-BeiT4slQ.js → vue-ui-thermometer-BbjSAgfK.js} +31 -31
- package/dist/{vue-ui-timer-RWg45QKc.js → vue-ui-timer-Bem9iNS9.js} +5 -5
- package/dist/{vue-ui-tiremarks-B4_W_mWX.js → vue-ui-tiremarks-DKe3yCM6.js} +6 -6
- package/dist/{vue-ui-treemap-fq9-enBk.js → vue-ui-treemap-bd0eNtqa.js} +51 -51
- package/dist/{vue-ui-waffle-BRcWupew.js → vue-ui-waffle-C93pCE0N.js} +384 -352
- package/dist/{vue-ui-wheel-DziR9q2I.js → vue-ui-wheel-DLS0_1Bs.js} +6 -6
- package/dist/{vue-ui-word-cloud-C6i_7Q6Y.js → vue-ui-word-cloud-Dp3tWrZB.js} +32 -32
- package/dist/{vue-ui-world-Dvn1JWi9.js → vue-ui-world-DNMQwqDq.js} +31 -31
- package/dist/{vue-ui-xy-2ui0juKl.js → vue-ui-xy-DK7OIH2Y.js} +9 -9
- package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-DSxmvFlx.js} +100 -100
- package/package.json +1 -1
- package/dist/vue-ui-donut-A_IFB9JR.js +0 -2078
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed 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 { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import { defineAsyncComponent as S, computed as v, ref as u, toRefs as Nt, watch as V, shallowRef as Ue, onMounted as Vt, onBeforeUnmount as Ut, createElementBlock as g, openBlock as r, unref as s, normalizeStyle as E, normalizeClass as W, createBlock as _, createCommentVNode as p, createElementVNode as P, createVNode as ce, withCtx as c, renderSlot as d, normalizeProps as k, guardReactiveProps as C, createSlots as Ge, Fragment as U, renderList as G, toDisplayString as q, Teleport as Gt, resolveDynamicComponent as Yt, mergeProps as Xt, createTextVNode as Ye, nextTick as Xe } from "vue";
|
|
2
|
+
import { c as jt, t as Ht, i as Wt, j as je, k as qt, o as He, g as de, m as Jt, a as ve, d as L, X as Kt, y as We, v as Qt, r as Zt, _ as eo } from "./lib-BwysEpWI.js";
|
|
3
|
+
import { b as to } from "./labelUtils-PMU3ZGCb.js";
|
|
4
|
+
import { t as oo, u as lo } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as ao, a as ge } from "./useNestedProp-CH0YJac3.js";
|
|
6
|
+
import { u as no, B as ro } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as so } from "./usePrinter-BJzHDpYF.js";
|
|
8
|
+
import { u as uo } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as io } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
+
import { u as co } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as vo } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as go } from "./useAutoSizeLabelsInsideViewbox-DO2dxQ78.js";
|
|
13
|
+
import ho from "./img-DKigoPDs.js";
|
|
14
|
+
import fo from "./Title-DsQKikUm.js";
|
|
15
|
+
import po from "./Legend-D6z73edh.js";
|
|
16
|
+
import { _ as bo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { gutter: { color: "#4A4A4A" }, labels: { 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" } } }, Je = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { 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" } } }, Ke = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { 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" } } }, Qe = { style: { chart: { backgroundColor: "#1A1A1A", useGradient: !1, color: "#99AA99", layout: { gutter: { color: "#2A2A2A" }, labels: { color: "#99CC99" } }, 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" } } }, Ze = { style: { chart: { useGradient: !1, backgroundColor: "#fbfafa", color: "#8A9892", layout: { gutter: { color: "#F7EDE2" }, labels: { 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" } } }, et = { style: { chart: { useGradient: !1, backgroundColor: "#f6f6fb", color: "#50606C", layout: { gutter: { color: "#DDDDDB" }, labels: { 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" } } }, tt = {
|
|
17
18
|
default: {},
|
|
18
19
|
dark: qe,
|
|
19
|
-
celebration:
|
|
20
|
-
celebrationNight:
|
|
21
|
-
hack:
|
|
22
|
-
zen:
|
|
20
|
+
celebration: Je,
|
|
21
|
+
celebrationNight: Ke,
|
|
22
|
+
hack: Qe,
|
|
23
|
+
zen: Ze,
|
|
23
24
|
concrete: et
|
|
24
|
-
},
|
|
25
|
+
}, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
26
|
__proto__: null,
|
|
26
|
-
celebration:
|
|
27
|
-
celebrationNight:
|
|
27
|
+
celebration: Je,
|
|
28
|
+
celebrationNight: Ke,
|
|
28
29
|
concrete: et,
|
|
29
30
|
dark: qe,
|
|
30
31
|
default: tt,
|
|
31
|
-
hack:
|
|
32
|
-
zen:
|
|
33
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
32
|
+
hack: Qe,
|
|
33
|
+
zen: Ze
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), yo = ["id"], mo = ["id"], ko = ["xmlns", "viewBox"], Co = ["width", "height"], wo = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ao = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], $o = ["id"], To = ["stdDeviation"], Fo = ["filter"], Oo = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Do = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], xo = { key: 2 }, So = ["onMouseenter", "onMouseleave", "onClick"], _o = ["x", "y", "font-size", "fill", "font-weight"], Po = {
|
|
34
35
|
key: 4,
|
|
35
36
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
37
|
+
}, Bo = ["id"], Io = ["onClick"], Eo = ["innerHTML"], Mo = {
|
|
37
38
|
__name: "vue-ui-onion",
|
|
38
39
|
props: {
|
|
39
40
|
config: {
|
|
@@ -51,8 +52,8 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
51
52
|
},
|
|
52
53
|
emits: ["selectLegend"],
|
|
53
54
|
setup(ot, { expose: lt, emit: at }) {
|
|
54
|
-
const nt = S(() => import("./Tooltip-
|
|
55
|
-
...
|
|
55
|
+
const nt = S(() => import("./Tooltip-TDyKgLB6.js")), rt = S(() => import("./BaseIcon-4i3dd7Ty.js")), st = S(() => import("./vue-ui-accordion-CTzbMRF5.js")), ut = S(() => import("./DataTable-WrXCJkfE.js")), it = S(() => import("./UserOptions-CzJWRC4s.js")), ct = S(() => import("./PenAndPaper-DxIUvoQ8.js")), dt = S(() => import("./PackageVersion-N2zi0qFZ.js")), vt = S(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_onion: gt } = ao(), { isThemeValid: ht, warnInvalidTheme: ft } = io(), w = ot, he = v(() => !!w.dataset && w.dataset.length), A = u(jt()), pt = u(null), fe = u(0), J = u(!1), K = u(""), b = u([]), T = u(null), pe = u(null), be = u(null), ye = u(null), me = u(null), ke = u(0), Ce = u(0), we = u(0), F = u(!1), Ae = u(!1), R = u(null), e = u(ee()), { loading: $, FINAL_DATASET: $e, manualLoading: Q } = no({
|
|
56
|
+
...Nt(w),
|
|
56
57
|
FINAL_CONFIG: e,
|
|
57
58
|
prepareConfig: ee,
|
|
58
59
|
callback: () => {
|
|
@@ -66,7 +67,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
66
67
|
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
67
68
|
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
68
69
|
],
|
|
69
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Ht({
|
|
70
71
|
defaultConfig: e.value,
|
|
71
72
|
userConfig: {
|
|
72
73
|
userOptions: { show: !1 },
|
|
@@ -87,40 +88,40 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
})
|
|
90
|
-
}), { userOptionsVisible:
|
|
91
|
+
}), { userOptionsVisible: Z, setUserOptionsVisibility: Te, keepUserOptionState: Fe } = co({ config: e.value }), { svgRef: Y } = vo({ config: e.value.style.chart.title });
|
|
91
92
|
function ee() {
|
|
92
93
|
const t = ge({
|
|
93
|
-
userConfig:
|
|
94
|
+
userConfig: w.config,
|
|
94
95
|
defaultConfig: gt
|
|
95
96
|
}), l = t.theme;
|
|
96
97
|
if (!l) return t;
|
|
97
98
|
if (!ht.value(t))
|
|
98
99
|
return ft(t), t;
|
|
99
100
|
const o = ge({
|
|
100
|
-
userConfig: tt[l] ||
|
|
101
|
+
userConfig: tt[l] || w.config,
|
|
101
102
|
defaultConfig: t
|
|
102
103
|
}), a = ge({
|
|
103
|
-
userConfig:
|
|
104
|
+
userConfig: w.config,
|
|
104
105
|
defaultConfig: o
|
|
105
106
|
});
|
|
106
107
|
return {
|
|
107
108
|
...a,
|
|
108
|
-
customPalette: a.customPalette.length ? a.customPalette :
|
|
109
|
+
customPalette: a.customPalette.length ? a.customPalette : Wt[l] || je
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
V(() => w.config, (t) => {
|
|
113
|
+
$.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, Ce.value += 1, we.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
113
114
|
}, { deep: !0 });
|
|
114
|
-
const { isPrinting:
|
|
115
|
-
elementId: `vue-ui-onion_${
|
|
115
|
+
const { isPrinting: Oe, isImaging: De, generatePdf: xe, generateImage: Se } = so({
|
|
116
|
+
elementId: `vue-ui-onion_${A.value}`,
|
|
116
117
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
117
118
|
options: e.value.userOptions.print
|
|
118
|
-
}), bt =
|
|
119
|
+
}), bt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = v(() => qt(e.value.customPalette)), y = u({
|
|
119
120
|
showTable: e.value.table.show,
|
|
120
121
|
showTooltip: e.value.style.chart.tooltip.show
|
|
121
122
|
});
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
V(e, () => {
|
|
124
|
+
y.value = {
|
|
124
125
|
showTable: e.value.table.show,
|
|
125
126
|
showTooltip: e.value.style.chart.tooltip.show
|
|
126
127
|
};
|
|
@@ -135,50 +136,50 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
135
136
|
bottom: 64
|
|
136
137
|
},
|
|
137
138
|
minRadius: 64
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
Ae.value = !0,
|
|
139
|
+
}), D = Ue(null), M = Ue(null);
|
|
140
|
+
Vt(() => {
|
|
141
|
+
Ae.value = !0, Pe();
|
|
141
142
|
});
|
|
142
|
-
const
|
|
143
|
+
const mt = v({
|
|
143
144
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
144
145
|
set: (t) => t
|
|
145
|
-
}), { autoSizeLabels: _e } =
|
|
146
|
-
svgRef:
|
|
146
|
+
}), { autoSizeLabels: _e } = go({
|
|
147
|
+
svgRef: Y,
|
|
147
148
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
148
149
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
149
|
-
sizeRef:
|
|
150
|
+
sizeRef: mt,
|
|
150
151
|
labelClass: ".vue-ui-onion-label"
|
|
151
|
-
}),
|
|
152
|
+
}), kt = v(() => e.value.debug);
|
|
152
153
|
let te = null;
|
|
153
|
-
function
|
|
154
|
-
if (He(
|
|
154
|
+
function Pe() {
|
|
155
|
+
if (He(w.dataset) && (de({
|
|
155
156
|
componentName: "VueUiOnion",
|
|
156
157
|
type: "dataset",
|
|
157
|
-
debug:
|
|
158
|
-
}),
|
|
159
|
-
const l =
|
|
160
|
-
te && clearTimeout(te),
|
|
161
|
-
let { width: o, height: a } =
|
|
158
|
+
debug: kt.value
|
|
159
|
+
}), Q.value = !0), He(w.dataset) || (Q.value = e.value.loading), e.value.responsive) {
|
|
160
|
+
const l = oo(() => {
|
|
161
|
+
te && clearTimeout(te), F.value = !0;
|
|
162
|
+
let { width: o, height: a } = lo({
|
|
162
163
|
chart: T.value,
|
|
163
164
|
title: e.value.style.chart.title.text ? pe.value : null,
|
|
164
165
|
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
165
|
-
source:
|
|
166
|
-
noTitle:
|
|
166
|
+
source: ye.value,
|
|
167
|
+
noTitle: me.value
|
|
167
168
|
});
|
|
168
169
|
a -= 12, requestAnimationFrame(async () => {
|
|
169
170
|
n.value.width = o, n.value.height = a, n.value.padding.top = Math.max(o, a) * 0.125, n.value.padding.right = Math.max(o, a) * 0.125, n.value.padding.bottom = Math.max(o, a) * 0.125, n.value.padding.left = Math.max(o, a) * 0.125, n.value.minRadius = Math.min(o, a) * 0.125, te = setTimeout(() => {
|
|
170
|
-
|
|
171
|
+
F.value = !1, _e();
|
|
171
172
|
}, 0);
|
|
172
173
|
});
|
|
173
174
|
});
|
|
174
|
-
|
|
175
|
+
D.value && (M.value && D.value.unobserve(M.value), D.value.disconnect()), D.value = new ResizeObserver(l), M.value = T.value.parentNode, D.value.observe(M.value);
|
|
175
176
|
}
|
|
176
177
|
requestAnimationFrame(_e);
|
|
177
178
|
}
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
Ut(() => {
|
|
180
|
+
D.value && (M.value && D.value.unobserve(M.value), D.value.disconnect());
|
|
180
181
|
});
|
|
181
|
-
const h =
|
|
182
|
+
const h = v(() => ({
|
|
182
183
|
top: n.value.padding.top,
|
|
183
184
|
left: n.value.padding.left,
|
|
184
185
|
right: n.value.width - n.value.padding.right,
|
|
@@ -189,7 +190,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
189
190
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
190
191
|
minRadius: n.value.minRadius,
|
|
191
192
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
192
|
-
})), f =
|
|
193
|
+
})), f = v(() => ($e.value.forEach((t, l) => {
|
|
193
194
|
[null, void 0].includes(t.name) && de({
|
|
194
195
|
componentName: "VueUiOnion",
|
|
195
196
|
type: "datasetSerieAttribute",
|
|
@@ -202,77 +203,95 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
202
203
|
index: l
|
|
203
204
|
});
|
|
204
205
|
}), $e.value.map((t, l) => {
|
|
205
|
-
const o = `onion_serie_${l}_${
|
|
206
|
+
const o = `onion_serie_${l}_${A.value}`;
|
|
206
207
|
return {
|
|
207
208
|
...t,
|
|
208
209
|
percentage: t.percentage || 0,
|
|
209
210
|
targetPercentage: t.percentage || 0,
|
|
210
|
-
color:
|
|
211
|
+
color: Jt(t.color) || yt.value[l] || je[l],
|
|
211
212
|
id: o,
|
|
212
213
|
shape: "circle",
|
|
213
214
|
opacity: b.value.includes(o) ? 0.5 : 1,
|
|
214
215
|
absoluteIndex: l,
|
|
215
|
-
segregate: () =>
|
|
216
|
+
segregate: () => X(o),
|
|
216
217
|
isSegregated: b.value.includes(o)
|
|
217
218
|
};
|
|
218
|
-
}))), oe =
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
}))), oe = v(() => f.value.map((t, l) => {
|
|
220
|
+
const o = e.value.style.chart.legend.showValue, a = e.value.style.chart.legend.showPercentage, i = ve(
|
|
221
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
222
|
+
t.value,
|
|
223
|
+
L({
|
|
224
|
+
p: t.prefix || "",
|
|
225
|
+
v: t.value,
|
|
226
|
+
s: t.suffix || "",
|
|
227
|
+
r: e.value.style.chart.legend.roundingValue
|
|
228
|
+
})
|
|
229
|
+
), m = L({
|
|
221
230
|
v: t.percentage ?? 0,
|
|
222
231
|
s: "%",
|
|
223
232
|
r: e.value.style.chart.legend.roundingPercentage
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
233
|
+
}), ie = re({
|
|
234
|
+
showVal: o,
|
|
235
|
+
showPercentage: a,
|
|
236
|
+
val: i,
|
|
237
|
+
percentage: m,
|
|
238
|
+
config: e.value.style.chart.legend
|
|
239
|
+
});
|
|
240
|
+
return {
|
|
241
|
+
...t,
|
|
242
|
+
display: `${t.name}${o || a ? ": " : ""}${ie}`
|
|
243
|
+
};
|
|
244
|
+
})), z = u(f.value), Ct = v(() => e.value.useStartAnimation), wt = u(null), At = v(() => Math.max(...f.value.map((t) => t.percentage))), le = u(!1);
|
|
245
|
+
V(() => f.value, Be, { immediate: !0, deep: !0 }), V(() => w.dataset, (t) => {
|
|
246
|
+
Array.isArray(t) && t.length > 0 && (Q.value = !1);
|
|
228
247
|
}, { deep: !0 });
|
|
229
248
|
function Be() {
|
|
230
|
-
if (
|
|
249
|
+
if (Ct.value && !le.value && !$.value) {
|
|
231
250
|
let l = function() {
|
|
232
|
-
t >= At.value ? (cancelAnimationFrame(wt.value),
|
|
251
|
+
t >= At.value ? (cancelAnimationFrame(wt.value), z.value = f.value, le.value = !0) : (z.value = f.value.map((o) => ({
|
|
233
252
|
...o,
|
|
234
253
|
percentage: t < o.targetPercentage ? t : o.targetPercentage
|
|
235
254
|
})), t += 1, requestAnimationFrame(l), le.value = !0);
|
|
236
255
|
};
|
|
237
|
-
|
|
256
|
+
z.value = f.value.map((o) => ({
|
|
238
257
|
...o,
|
|
239
258
|
percentage: 0
|
|
240
259
|
}));
|
|
241
260
|
let t = 0;
|
|
242
261
|
l();
|
|
243
262
|
} else
|
|
244
|
-
|
|
263
|
+
z.value = f.value;
|
|
245
264
|
}
|
|
246
|
-
const $t =
|
|
265
|
+
const $t = v(() => ({
|
|
247
266
|
cy: "onion-div-legend",
|
|
248
267
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
268
|
color: e.value.style.chart.legend.color,
|
|
250
269
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
251
270
|
paddingBottom: 12,
|
|
252
271
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
|
-
})), Tt =
|
|
272
|
+
})), Tt = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), B = v(() => {
|
|
254
273
|
const t = Math.min(h.value.width, h.value.height) / 2 / f.value.length;
|
|
255
274
|
return {
|
|
256
275
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
257
276
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
258
277
|
};
|
|
259
|
-
}),
|
|
278
|
+
}), O = v(() => z.value.filter((t) => !b.value.includes(t.id)).map((t, l) => {
|
|
260
279
|
const o = (h.value.maxRadius - B.value.track) / Tt.value / 2 * (1 + l), a = h.value.centerY - o;
|
|
261
280
|
return {
|
|
262
281
|
percentage: t.percentage || 0,
|
|
263
282
|
...t,
|
|
264
283
|
labelY: a,
|
|
265
284
|
radius: o,
|
|
266
|
-
path:
|
|
285
|
+
path: Ft(o, t.percentage || 0)
|
|
267
286
|
};
|
|
268
287
|
}));
|
|
269
|
-
function
|
|
270
|
-
const o = 2 * Math.PI * t, a = o * 0.75,
|
|
288
|
+
function Ft(t, l) {
|
|
289
|
+
const o = 2 * Math.PI * t, a = o * 0.75, i = `${a} ${o}`, m = a * (1 - l / 100);
|
|
271
290
|
return {
|
|
272
291
|
bgDashArray: `${a} ${o}`,
|
|
273
292
|
bgDashOffset: 0,
|
|
274
|
-
dashArray:
|
|
275
|
-
dashOffset:
|
|
293
|
+
dashArray: i,
|
|
294
|
+
dashOffset: m,
|
|
276
295
|
fullOffset: 0,
|
|
277
296
|
active: `
|
|
278
297
|
M ${h.value.centerX},${h.value.centerY - t}
|
|
@@ -281,42 +300,42 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
281
300
|
`.trim()
|
|
282
301
|
};
|
|
283
302
|
}
|
|
284
|
-
const
|
|
285
|
-
function
|
|
303
|
+
const Ot = at;
|
|
304
|
+
function X(t) {
|
|
286
305
|
if (b.value.includes(t))
|
|
287
306
|
b.value = b.value.filter((l) => l !== t);
|
|
288
307
|
else {
|
|
289
308
|
if (b.value.length === f.value.length - 1) return;
|
|
290
309
|
b.value.push(t);
|
|
291
310
|
}
|
|
292
|
-
|
|
311
|
+
Ot("selectLegend", O.value);
|
|
293
312
|
}
|
|
294
|
-
function
|
|
313
|
+
function Ie(t) {
|
|
295
314
|
if (!f.value.length)
|
|
296
315
|
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
297
316
|
const l = f.value.find((o) => o.name === t);
|
|
298
317
|
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
299
318
|
}
|
|
300
|
-
function Ot(t) {
|
|
301
|
-
const l = Pe(t);
|
|
302
|
-
l !== null && b.value.includes(l.id) && j(l.id);
|
|
303
|
-
}
|
|
304
319
|
function Dt(t) {
|
|
305
|
-
const l =
|
|
306
|
-
l !== null &&
|
|
320
|
+
const l = Ie(t);
|
|
321
|
+
l !== null && b.value.includes(l.id) && X(l.id);
|
|
322
|
+
}
|
|
323
|
+
function xt(t) {
|
|
324
|
+
const l = Ie(t);
|
|
325
|
+
l !== null && (b.value.includes(l.id) || X(l.id));
|
|
307
326
|
}
|
|
308
327
|
function St() {
|
|
309
|
-
return
|
|
328
|
+
return O.value;
|
|
310
329
|
}
|
|
311
|
-
const ae =
|
|
312
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l =
|
|
330
|
+
const ae = v(() => {
|
|
331
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = O.value.map((o) => [
|
|
313
332
|
o.name,
|
|
314
333
|
o.percentage,
|
|
315
334
|
o.value
|
|
316
335
|
]);
|
|
317
336
|
return { head: t, body: l };
|
|
318
|
-
}),
|
|
319
|
-
const t = ae.value.head, l =
|
|
337
|
+
}), j = v(() => {
|
|
338
|
+
const t = ae.value.head, l = O.value.map((a) => [
|
|
320
339
|
`<span style="color:${a.color}">⬤</span> ${a.name}`,
|
|
321
340
|
`${Number(a.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
322
341
|
`${a.prefix || ""}${[null, void 0, NaN, "NaN"].includes(a.value) ? "-" : a.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${a.suffix || ""}`
|
|
@@ -337,83 +356,135 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
337
356
|
});
|
|
338
357
|
function ne(t = null) {
|
|
339
358
|
Xe(() => {
|
|
340
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body,
|
|
341
|
-
t ? t(
|
|
359
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body, i = l.concat([o]).concat(a), m = Qt(i);
|
|
360
|
+
t ? t(m) : Zt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
342
361
|
});
|
|
343
362
|
}
|
|
344
|
-
const
|
|
363
|
+
const x = u(void 0), I = u(!1);
|
|
345
364
|
function Ee(t) {
|
|
346
|
-
|
|
365
|
+
I.value = t, fe.value += 1;
|
|
347
366
|
}
|
|
348
367
|
function Me({ datapoint: t }) {
|
|
349
368
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
350
369
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
370
|
+
function Le({ datapoint: t }) {
|
|
371
|
+
x.value = void 0, J.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
372
|
+
}
|
|
373
|
+
function re({
|
|
374
|
+
val: t,
|
|
375
|
+
percentage: l,
|
|
376
|
+
showVal: o,
|
|
377
|
+
showPercentage: a,
|
|
378
|
+
config: i
|
|
379
|
+
}) {
|
|
380
|
+
return to({
|
|
381
|
+
config: i,
|
|
382
|
+
val: t,
|
|
383
|
+
percentage: l,
|
|
384
|
+
showVal: o,
|
|
385
|
+
showPercentage: a
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
function _t(t, l) {
|
|
389
|
+
const o = e.value.style.chart.layout.labels.value.show, a = e.value.style.chart.layout.labels.percentage.show, i = re({
|
|
390
|
+
config: e.value.style.chart.layout.labels,
|
|
391
|
+
showVal: o,
|
|
392
|
+
showPercentage: a,
|
|
393
|
+
val: ve(
|
|
394
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
395
|
+
t.value,
|
|
396
|
+
L({
|
|
397
|
+
p: t.prefix || "",
|
|
398
|
+
v: t.value || 0,
|
|
399
|
+
s: t.suffix || "",
|
|
400
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
401
|
+
}),
|
|
402
|
+
{ datapoint: t, seriesIndex: l }
|
|
403
|
+
),
|
|
404
|
+
percentage: L({
|
|
405
|
+
v: t.percentage,
|
|
406
|
+
s: "%",
|
|
407
|
+
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
408
|
+
})
|
|
409
|
+
});
|
|
410
|
+
return `${t.name}${o || a ? ": " : ""}${i}`;
|
|
353
411
|
}
|
|
354
|
-
const
|
|
355
|
-
function
|
|
412
|
+
const se = u(null);
|
|
413
|
+
function Re({ datapoint: t, seriesIndex: l, show: o = !0 }) {
|
|
356
414
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
357
415
|
const a = t.absoluteIndex;
|
|
358
|
-
|
|
416
|
+
x.value = l, se.value = {
|
|
359
417
|
datapoint: t,
|
|
360
418
|
seriesIndex: a,
|
|
361
419
|
series: f.value,
|
|
362
420
|
config: e.value
|
|
363
|
-
},
|
|
364
|
-
let
|
|
365
|
-
const
|
|
366
|
-
if (We(
|
|
421
|
+
}, J.value = o;
|
|
422
|
+
let i = "";
|
|
423
|
+
const m = e.value.style.chart.tooltip.customFormat;
|
|
424
|
+
if (We(m) && eo(() => m({
|
|
367
425
|
seriesIndex: a,
|
|
368
426
|
datapoint: t,
|
|
369
427
|
series: f.value,
|
|
370
428
|
config: e.value
|
|
371
429
|
})))
|
|
372
|
-
|
|
430
|
+
K.value = m({
|
|
373
431
|
seriesIndex: a,
|
|
374
432
|
datapoint: t,
|
|
375
433
|
series: f.value,
|
|
376
434
|
config: e.value
|
|
377
435
|
});
|
|
378
436
|
else {
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
e.value.style.chart.
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
437
|
+
const ie = e.value.style.chart.tooltip.showPercentage, zt = e.value.style.chart.tooltip.showValue;
|
|
438
|
+
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/></svg>`, i += `<b>${re({
|
|
439
|
+
config: e.value.style.chart.tooltip,
|
|
440
|
+
showVal: zt,
|
|
441
|
+
showPercentage: ie,
|
|
442
|
+
val: `<span>${ve(
|
|
443
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
444
|
+
t.value,
|
|
445
|
+
L({
|
|
446
|
+
p: t.prefix || "",
|
|
447
|
+
v: t.value,
|
|
448
|
+
s: t.suffix || "",
|
|
449
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
450
|
+
}),
|
|
451
|
+
{
|
|
452
|
+
datapoint: t,
|
|
453
|
+
seriesIndex: l
|
|
454
|
+
}
|
|
455
|
+
)}</span>`,
|
|
456
|
+
percentage: L({
|
|
457
|
+
v: t.percentage,
|
|
458
|
+
s: "%",
|
|
459
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
460
|
+
})
|
|
461
|
+
})}</b></div>`, K.value = `<div>${i}</div>`;
|
|
391
462
|
}
|
|
392
463
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
464
|
+
function ze() {
|
|
465
|
+
y.value.showTable = !y.value.showTable;
|
|
395
466
|
}
|
|
396
467
|
function Ne() {
|
|
397
|
-
|
|
468
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
398
469
|
}
|
|
399
|
-
const
|
|
400
|
-
function
|
|
401
|
-
|
|
470
|
+
const H = u(!1);
|
|
471
|
+
function ue() {
|
|
472
|
+
H.value = !H.value;
|
|
402
473
|
}
|
|
403
|
-
async function
|
|
474
|
+
async function Pt({ scale: t = 2 } = {}) {
|
|
404
475
|
if (!T.value) return;
|
|
405
|
-
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri:
|
|
476
|
+
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: i, base64: m } = await ho({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
406
477
|
return {
|
|
407
|
-
imageUri:
|
|
408
|
-
base64:
|
|
478
|
+
imageUri: i,
|
|
479
|
+
base64: m,
|
|
409
480
|
title: e.value.style.chart.title.text,
|
|
410
481
|
width: l,
|
|
411
482
|
height: o,
|
|
412
483
|
aspectRatio: a
|
|
413
484
|
};
|
|
414
485
|
}
|
|
415
|
-
const
|
|
416
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
486
|
+
const N = v(() => {
|
|
487
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
417
488
|
return {
|
|
418
489
|
component: t ? vt : st,
|
|
419
490
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -422,7 +493,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
422
493
|
color: e.value.table.th.color,
|
|
423
494
|
headerColor: e.value.table.th.color,
|
|
424
495
|
headerBg: e.value.table.th.backgroundColor,
|
|
425
|
-
isFullscreen:
|
|
496
|
+
isFullscreen: I.value,
|
|
426
497
|
fullscreenParent: T.value,
|
|
427
498
|
forcedWidth: Math.min(600, window.innerWidth * 0.8)
|
|
428
499
|
} : {
|
|
@@ -442,91 +513,91 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
442
513
|
}
|
|
443
514
|
};
|
|
444
515
|
});
|
|
445
|
-
|
|
446
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
516
|
+
V(() => y.value.showTable, (t) => {
|
|
517
|
+
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
447
518
|
});
|
|
448
|
-
const
|
|
519
|
+
const Bt = v(() => oe.value.map((t) => ({
|
|
449
520
|
...t,
|
|
450
521
|
name: t.display
|
|
451
|
-
}))),
|
|
452
|
-
svg:
|
|
453
|
-
title:
|
|
454
|
-
legend:
|
|
455
|
-
legendItems:
|
|
456
|
-
backgroundColor:
|
|
522
|
+
}))), It = v(() => e.value.style.chart.backgroundColor), Et = v(() => e.value.style.chart.legend), Mt = v(() => e.value.style.chart.title), { exportSvg: Lt, getSvg: Rt } = uo({
|
|
523
|
+
svg: Y,
|
|
524
|
+
title: Mt,
|
|
525
|
+
legend: Et,
|
|
526
|
+
legendItems: Bt,
|
|
527
|
+
backgroundColor: It
|
|
457
528
|
});
|
|
458
529
|
async function Ve({ isCb: t }) {
|
|
459
530
|
if (t) {
|
|
460
|
-
const { blob: l, url: o, text: a, dataUrl:
|
|
461
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl:
|
|
531
|
+
const { blob: l, url: o, text: a, dataUrl: i } = await Rt();
|
|
532
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: i });
|
|
462
533
|
} else
|
|
463
|
-
|
|
534
|
+
Lt();
|
|
464
535
|
}
|
|
465
536
|
return lt({
|
|
466
537
|
getData: St,
|
|
467
|
-
getImage:
|
|
468
|
-
generatePdf:
|
|
538
|
+
getImage: Pt,
|
|
539
|
+
generatePdf: xe,
|
|
469
540
|
generateCsv: ne,
|
|
470
541
|
generateImage: Se,
|
|
471
542
|
generateSvg: Ve,
|
|
472
|
-
hideSeries:
|
|
473
|
-
showSeries:
|
|
474
|
-
toggleTable:
|
|
543
|
+
hideSeries: xt,
|
|
544
|
+
showSeries: Dt,
|
|
545
|
+
toggleTable: ze,
|
|
475
546
|
toggleTooltip: Ne,
|
|
476
|
-
toggleAnnotator:
|
|
547
|
+
toggleAnnotator: ue,
|
|
477
548
|
toggleFullscreen: Ee
|
|
478
|
-
}), (t, l) => (
|
|
479
|
-
class:
|
|
549
|
+
}), (t, l) => (r(), g("div", {
|
|
550
|
+
class: W(`vue-data-ui-component vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
480
551
|
ref_key: "onionChart",
|
|
481
552
|
ref: T,
|
|
482
|
-
id: `vue-ui-onion_${
|
|
553
|
+
id: `vue-ui-onion_${A.value}`,
|
|
483
554
|
style: E(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
484
|
-
onMouseenter: l[4] || (l[4] = () =>
|
|
485
|
-
onMouseleave: l[5] || (l[5] = () =>
|
|
555
|
+
onMouseenter: l[4] || (l[4] = () => s(Te)(!0)),
|
|
556
|
+
onMouseleave: l[5] || (l[5] = () => s(Te)(!1))
|
|
486
557
|
}, [
|
|
487
|
-
e.value.userOptions.buttons.annotator ? (
|
|
558
|
+
e.value.userOptions.buttons.annotator ? (r(), _(s(ct), {
|
|
488
559
|
key: 0,
|
|
489
|
-
svgRef:
|
|
560
|
+
svgRef: s(Y),
|
|
490
561
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
562
|
color: e.value.style.chart.color,
|
|
492
|
-
active:
|
|
493
|
-
onClose:
|
|
563
|
+
active: H.value,
|
|
564
|
+
onClose: ue
|
|
494
565
|
}, {
|
|
495
|
-
"annotator-action-close":
|
|
496
|
-
|
|
566
|
+
"annotator-action-close": c(() => [
|
|
567
|
+
d(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
497
568
|
]),
|
|
498
|
-
"annotator-action-color":
|
|
499
|
-
|
|
569
|
+
"annotator-action-color": c(({ color: o }) => [
|
|
570
|
+
d(t.$slots, "annotator-action-color", k(C({ color: o })), void 0, !0)
|
|
500
571
|
]),
|
|
501
|
-
"annotator-action-draw":
|
|
502
|
-
|
|
572
|
+
"annotator-action-draw": c(({ mode: o }) => [
|
|
573
|
+
d(t.$slots, "annotator-action-draw", k(C({ mode: o })), void 0, !0)
|
|
503
574
|
]),
|
|
504
|
-
"annotator-action-undo":
|
|
505
|
-
|
|
575
|
+
"annotator-action-undo": c(({ disabled: o }) => [
|
|
576
|
+
d(t.$slots, "annotator-action-undo", k(C({ disabled: o })), void 0, !0)
|
|
506
577
|
]),
|
|
507
|
-
"annotator-action-redo":
|
|
508
|
-
|
|
578
|
+
"annotator-action-redo": c(({ disabled: o }) => [
|
|
579
|
+
d(t.$slots, "annotator-action-redo", k(C({ disabled: o })), void 0, !0)
|
|
509
580
|
]),
|
|
510
|
-
"annotator-action-delete":
|
|
511
|
-
|
|
581
|
+
"annotator-action-delete": c(({ disabled: o }) => [
|
|
582
|
+
d(t.$slots, "annotator-action-delete", k(C({ disabled: o })), void 0, !0)
|
|
512
583
|
]),
|
|
513
584
|
_: 3
|
|
514
585
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
515
|
-
bt.value ? (
|
|
586
|
+
bt.value ? (r(), g("div", {
|
|
516
587
|
key: 1,
|
|
517
588
|
ref_key: "noTitle",
|
|
518
|
-
ref:
|
|
589
|
+
ref: me,
|
|
519
590
|
class: "vue-data-ui-no-title-space",
|
|
520
591
|
style: "height:36px; width: 100%;background:transparent"
|
|
521
592
|
}, null, 512)) : p("", !0),
|
|
522
|
-
e.value.style.chart.title.text ? (
|
|
593
|
+
e.value.style.chart.title.text ? (r(), g("div", {
|
|
523
594
|
key: 2,
|
|
524
595
|
ref_key: "chartTitle",
|
|
525
596
|
ref: pe,
|
|
526
597
|
style: "width:100%;background:transparent"
|
|
527
598
|
}, [
|
|
528
|
-
(
|
|
529
|
-
key: `title_${
|
|
599
|
+
(r(), _(fo, {
|
|
600
|
+
key: `title_${ke.value}`,
|
|
530
601
|
config: {
|
|
531
602
|
title: {
|
|
532
603
|
cy: "onion-div-title",
|
|
@@ -539,18 +610,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
539
610
|
}
|
|
540
611
|
}, null, 8, ["config"]))
|
|
541
612
|
], 512)) : p("", !0),
|
|
542
|
-
|
|
543
|
-
id: `legend-top-${
|
|
544
|
-
}, null, 8,
|
|
545
|
-
e.value.userOptions.show && he.value && (
|
|
613
|
+
P("div", {
|
|
614
|
+
id: `legend-top-${A.value}`
|
|
615
|
+
}, null, 8, mo),
|
|
616
|
+
e.value.userOptions.show && he.value && (s(Fe) || s(Z)) ? (r(), _(s(it), {
|
|
546
617
|
ref_key: "details",
|
|
547
618
|
ref: pt,
|
|
548
619
|
key: `user_options${fe.value}`,
|
|
549
620
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
550
621
|
color: e.value.style.chart.color,
|
|
551
|
-
isImaging:
|
|
552
|
-
isPrinting:
|
|
553
|
-
uid:
|
|
622
|
+
isImaging: s(De),
|
|
623
|
+
isPrinting: s(Oe),
|
|
624
|
+
uid: A.value,
|
|
554
625
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
555
626
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
556
627
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -558,102 +629,102 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
558
629
|
hasXls: e.value.userOptions.buttons.csv,
|
|
559
630
|
hasTable: e.value.userOptions.buttons.table,
|
|
560
631
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
561
|
-
isFullscreen:
|
|
562
|
-
isTooltip:
|
|
632
|
+
isFullscreen: I.value,
|
|
633
|
+
isTooltip: y.value.showTooltip,
|
|
563
634
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
564
635
|
chartElement: T.value,
|
|
565
636
|
position: e.value.userOptions.position,
|
|
566
637
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
|
-
isAnnotation:
|
|
638
|
+
isAnnotation: H.value,
|
|
568
639
|
callbacks: e.value.userOptions.callbacks,
|
|
569
640
|
printScale: e.value.userOptions.print.scale,
|
|
570
641
|
tableDialog: e.value.table.useDialog,
|
|
571
642
|
onToggleFullscreen: Ee,
|
|
572
|
-
onGeneratePdf:
|
|
643
|
+
onGeneratePdf: s(xe),
|
|
573
644
|
onGenerateCsv: ne,
|
|
574
|
-
onGenerateImage:
|
|
645
|
+
onGenerateImage: s(Se),
|
|
575
646
|
onGenerateSvg: Ve,
|
|
576
|
-
onToggleTable:
|
|
647
|
+
onToggleTable: ze,
|
|
577
648
|
onToggleTooltip: Ne,
|
|
578
|
-
onToggleAnnotator:
|
|
649
|
+
onToggleAnnotator: ue,
|
|
579
650
|
style: E({
|
|
580
|
-
visibility:
|
|
651
|
+
visibility: s(Fe) ? s(Z) ? "visible" : "hidden" : "visible"
|
|
581
652
|
})
|
|
582
653
|
}, Ge({ _: 2 }, [
|
|
583
654
|
t.$slots.menuIcon ? {
|
|
584
655
|
name: "menuIcon",
|
|
585
|
-
fn:
|
|
586
|
-
|
|
656
|
+
fn: c(({ isOpen: o, color: a }) => [
|
|
657
|
+
d(t.$slots, "menuIcon", k(C({ isOpen: o, color: a })), void 0, !0)
|
|
587
658
|
]),
|
|
588
659
|
key: "0"
|
|
589
660
|
} : void 0,
|
|
590
661
|
t.$slots.optionTooltip ? {
|
|
591
662
|
name: "optionTooltip",
|
|
592
|
-
fn:
|
|
593
|
-
|
|
663
|
+
fn: c(() => [
|
|
664
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
594
665
|
]),
|
|
595
666
|
key: "1"
|
|
596
667
|
} : void 0,
|
|
597
668
|
t.$slots.optionPdf ? {
|
|
598
669
|
name: "optionPdf",
|
|
599
|
-
fn:
|
|
600
|
-
|
|
670
|
+
fn: c(() => [
|
|
671
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
601
672
|
]),
|
|
602
673
|
key: "2"
|
|
603
674
|
} : void 0,
|
|
604
675
|
t.$slots.optionCsv ? {
|
|
605
676
|
name: "optionCsv",
|
|
606
|
-
fn:
|
|
607
|
-
|
|
677
|
+
fn: c(() => [
|
|
678
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
608
679
|
]),
|
|
609
680
|
key: "3"
|
|
610
681
|
} : void 0,
|
|
611
682
|
t.$slots.optionImg ? {
|
|
612
683
|
name: "optionImg",
|
|
613
|
-
fn:
|
|
614
|
-
|
|
684
|
+
fn: c(() => [
|
|
685
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
615
686
|
]),
|
|
616
687
|
key: "4"
|
|
617
688
|
} : void 0,
|
|
618
689
|
t.$slots.optionSvg ? {
|
|
619
690
|
name: "optionSvg",
|
|
620
|
-
fn:
|
|
621
|
-
|
|
691
|
+
fn: c(() => [
|
|
692
|
+
d(t.$slots, "optionSvg", {}, void 0, !0)
|
|
622
693
|
]),
|
|
623
694
|
key: "5"
|
|
624
695
|
} : void 0,
|
|
625
696
|
t.$slots.optionTable ? {
|
|
626
697
|
name: "optionTable",
|
|
627
|
-
fn:
|
|
628
|
-
|
|
698
|
+
fn: c(() => [
|
|
699
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
629
700
|
]),
|
|
630
701
|
key: "6"
|
|
631
702
|
} : void 0,
|
|
632
703
|
t.$slots.optionFullscreen ? {
|
|
633
704
|
name: "optionFullscreen",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
705
|
+
fn: c(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
706
|
+
d(t.$slots, "optionFullscreen", k(C({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
636
707
|
]),
|
|
637
708
|
key: "7"
|
|
638
709
|
} : void 0,
|
|
639
710
|
t.$slots.optionAnnotator ? {
|
|
640
711
|
name: "optionAnnotator",
|
|
641
|
-
fn:
|
|
642
|
-
|
|
712
|
+
fn: c(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
713
|
+
d(t.$slots, "optionAnnotator", k(C({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
643
714
|
]),
|
|
644
715
|
key: "8"
|
|
645
716
|
} : void 0
|
|
646
717
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
647
|
-
(
|
|
718
|
+
(r(), g("svg", {
|
|
648
719
|
ref_key: "svgRef",
|
|
649
|
-
ref:
|
|
650
|
-
xmlns:
|
|
651
|
-
class:
|
|
720
|
+
ref: Y,
|
|
721
|
+
xmlns: s(Kt),
|
|
722
|
+
class: W({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value, resizing: F.value }),
|
|
652
723
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
653
724
|
style: E(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
654
725
|
}, [
|
|
655
|
-
ce(
|
|
656
|
-
t.$slots["chart-background"] ? (
|
|
726
|
+
ce(s(dt)),
|
|
727
|
+
t.$slots["chart-background"] ? (r(), g("foreignObject", {
|
|
657
728
|
key: 0,
|
|
658
729
|
x: 0,
|
|
659
730
|
y: 0,
|
|
@@ -663,9 +734,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
663
734
|
pointerEvents: "none"
|
|
664
735
|
}
|
|
665
736
|
}, [
|
|
666
|
-
|
|
667
|
-
], 8,
|
|
668
|
-
(
|
|
737
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
738
|
+
], 8, Co)) : p("", !0),
|
|
739
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
669
740
|
cx: h.value.centerX,
|
|
670
741
|
cy: h.value.centerY,
|
|
671
742
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -675,15 +746,15 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
675
746
|
"stroke-dasharray": o.path.bgDashArray,
|
|
676
747
|
"stroke-dashoffset": o.path.fullOffset,
|
|
677
748
|
"stroke-linecap": "round",
|
|
678
|
-
class:
|
|
749
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
|
|
679
750
|
style: E({
|
|
680
751
|
transform: "rotate(-90deg)",
|
|
681
752
|
transformOrigin: "50% 50%",
|
|
682
|
-
transition:
|
|
683
|
-
animation:
|
|
753
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
754
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
684
755
|
})
|
|
685
|
-
}, null, 14,
|
|
686
|
-
(
|
|
756
|
+
}, null, 14, wo))), 256)),
|
|
757
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
687
758
|
cx: h.value.centerX,
|
|
688
759
|
cy: h.value.centerY,
|
|
689
760
|
r: o.radius < 0 ? 1e-4 : o.radius,
|
|
@@ -692,34 +763,34 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
692
763
|
fill: "none",
|
|
693
764
|
"stroke-dasharray": o.path.dashArray,
|
|
694
765
|
"stroke-dashoffset": o.path.dashOffset,
|
|
695
|
-
class:
|
|
766
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
|
|
696
767
|
"stroke-linecap": "round",
|
|
697
768
|
style: E({
|
|
698
769
|
transform: "rotate(-90deg)",
|
|
699
770
|
transformOrigin: "50% 50%",
|
|
700
|
-
transition:
|
|
701
|
-
animation:
|
|
771
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
772
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
702
773
|
})
|
|
703
|
-
}, null, 14,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
id: `blur_${
|
|
774
|
+
}, null, 14, Ao))), 256)),
|
|
775
|
+
P("defs", null, [
|
|
776
|
+
P("filter", {
|
|
777
|
+
id: `blur_${A.value}`,
|
|
707
778
|
x: "-50%",
|
|
708
779
|
y: "-50%",
|
|
709
780
|
width: "200%",
|
|
710
781
|
height: "200%"
|
|
711
782
|
}, [
|
|
712
|
-
|
|
783
|
+
P("feGaussianBlur", {
|
|
713
784
|
in: "SourceGraphic",
|
|
714
785
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
715
|
-
}, null, 8,
|
|
716
|
-
], 8,
|
|
786
|
+
}, null, 8, To)
|
|
787
|
+
], 8, $o)
|
|
717
788
|
]),
|
|
718
|
-
e.value.style.chart.useGradient ? (
|
|
789
|
+
e.value.style.chart.useGradient ? (r(), g("g", {
|
|
719
790
|
key: 1,
|
|
720
|
-
filter: `url(#blur_${
|
|
791
|
+
filter: `url(#blur_${A.value})`
|
|
721
792
|
}, [
|
|
722
|
-
(
|
|
793
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
723
794
|
cx: h.value.centerX,
|
|
724
795
|
cy: h.value.centerY,
|
|
725
796
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -732,12 +803,12 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
732
803
|
style: E({
|
|
733
804
|
transform: "rotate(-90deg)",
|
|
734
805
|
transformOrigin: "50% 50%",
|
|
735
|
-
transition:
|
|
736
|
-
animation:
|
|
806
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
807
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
737
808
|
})
|
|
738
|
-
}, null, 12,
|
|
739
|
-
], 8,
|
|
740
|
-
(
|
|
809
|
+
}, null, 12, Oo))), 256))
|
|
810
|
+
], 8, Fo)) : p("", !0),
|
|
811
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
741
812
|
cx: h.value.centerX,
|
|
742
813
|
cy: h.value.centerY,
|
|
743
814
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -752,107 +823,83 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
752
823
|
transform: "rotate(-90deg)",
|
|
753
824
|
transformOrigin: "50% 50%"
|
|
754
825
|
},
|
|
755
|
-
onMouseenter: (
|
|
826
|
+
onMouseenter: (i) => Re({
|
|
756
827
|
datapoint: o,
|
|
757
828
|
show: !0,
|
|
758
829
|
seriesIndex: a
|
|
759
830
|
}),
|
|
760
|
-
onMouseleave: (
|
|
761
|
-
onClick: (
|
|
762
|
-
}, null, 40,
|
|
763
|
-
e.value.style.chart.layout.labels.show ? (
|
|
764
|
-
(
|
|
765
|
-
onMouseenter: (
|
|
831
|
+
onMouseleave: (i) => Le({ datapoint: o }),
|
|
832
|
+
onClick: (i) => Me({ datapoint: o })
|
|
833
|
+
}, null, 40, Do))), 256)),
|
|
834
|
+
e.value.style.chart.layout.labels.show ? (r(), g("g", xo, [
|
|
835
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("g", {
|
|
836
|
+
onMouseenter: (i) => Re({
|
|
766
837
|
datapoint: o,
|
|
767
838
|
show: !0,
|
|
768
839
|
seriesIndex: a
|
|
769
840
|
}),
|
|
770
|
-
onMouseleave: (
|
|
771
|
-
onClick: (
|
|
841
|
+
onMouseleave: (i) => Le({ datapoint: o }),
|
|
842
|
+
onClick: (i) => Me({ datapoint: o })
|
|
772
843
|
}, [
|
|
773
|
-
b.value.includes(o.id) ? p("", !0) : (
|
|
844
|
+
b.value.includes(o.id) ? p("", !0) : (r(), g("text", {
|
|
774
845
|
key: 0,
|
|
775
846
|
class: "vue-ui-onion-label",
|
|
776
847
|
x: n.value.width / 2 - B.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
777
848
|
y: o.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
778
849
|
"text-anchor": "end",
|
|
779
850
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
780
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
851
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value === a ? o.color : e.value.style.chart.layout.labels.color,
|
|
781
852
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
s: "%",
|
|
785
|
-
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
786
|
-
}) : "") + " " + R(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ve)(
|
|
787
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
788
|
-
o.value,
|
|
789
|
-
r(z)({
|
|
790
|
-
p: o.prefix || "",
|
|
791
|
-
v: o.value || 0,
|
|
792
|
-
s: o.suffix || "",
|
|
793
|
-
r: e.value.style.chart.layout.labels.roundingValue
|
|
794
|
-
}),
|
|
795
|
-
{ datapoint: o, seriesIndex: a }
|
|
796
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && o.value ? `(${r(ve)(
|
|
797
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
798
|
-
o.value,
|
|
799
|
-
r(z)({
|
|
800
|
-
p: o.prefix || "",
|
|
801
|
-
v: o.value || 0,
|
|
802
|
-
s: o.suffix || "",
|
|
803
|
-
r: e.value.style.chart.layout.labels.roundingValue
|
|
804
|
-
}),
|
|
805
|
-
{ datapoint: o, seriesIndex: a }
|
|
806
|
-
)})` : ""}`), 9, Oo))
|
|
807
|
-
], 40, Fo))), 256))
|
|
853
|
+
}, q(_t(o, a)), 9, _o))
|
|
854
|
+
], 40, So))), 256))
|
|
808
855
|
])) : p("", !0),
|
|
809
|
-
|
|
810
|
-
], 14,
|
|
811
|
-
t.$slots.watermark ? (
|
|
812
|
-
|
|
856
|
+
d(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
857
|
+
], 14, ko)),
|
|
858
|
+
t.$slots.watermark ? (r(), g("div", Po, [
|
|
859
|
+
d(t.$slots, "watermark", k(C({ isPrinting: s(Oe) || s(De) })), void 0, !0)
|
|
813
860
|
])) : p("", !0),
|
|
814
|
-
|
|
815
|
-
id: `legend-bottom-${
|
|
816
|
-
}, null, 8,
|
|
817
|
-
Ae.value ? (
|
|
861
|
+
P("div", {
|
|
862
|
+
id: `legend-bottom-${A.value}`
|
|
863
|
+
}, null, 8, Bo),
|
|
864
|
+
Ae.value ? (r(), _(Gt, {
|
|
818
865
|
key: 5,
|
|
819
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
866
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
820
867
|
}, [
|
|
821
|
-
|
|
868
|
+
P("div", {
|
|
822
869
|
ref_key: "chartLegend",
|
|
823
870
|
ref: be
|
|
824
871
|
}, [
|
|
825
|
-
e.value.style.chart.legend.show ? (
|
|
872
|
+
e.value.style.chart.legend.show ? (r(), _(po, {
|
|
826
873
|
key: `legend_${we.value}`,
|
|
827
874
|
legendSet: oe.value,
|
|
828
875
|
config: $t.value,
|
|
829
|
-
onClickMarker: l[0] || (l[0] = ({ legend: o }) =>
|
|
876
|
+
onClickMarker: l[0] || (l[0] = ({ legend: o }) => X(o.id))
|
|
830
877
|
}, {
|
|
831
|
-
item:
|
|
832
|
-
|
|
878
|
+
item: c(({ legend: o }) => [
|
|
879
|
+
s($) ? p("", !0) : (r(), g("div", {
|
|
833
880
|
key: 0,
|
|
834
881
|
"data-cy-legend-item": "",
|
|
835
882
|
onClick: (a) => o.segregate(),
|
|
836
883
|
style: E(`opacity:${b.value.includes(o.id) ? 0.5 : 1}`)
|
|
837
|
-
},
|
|
884
|
+
}, q(o.display), 13, Io))
|
|
838
885
|
]),
|
|
839
886
|
_: 1
|
|
840
|
-
}, 8, ["legendSet", "config"])) :
|
|
887
|
+
}, 8, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
841
888
|
key: 1,
|
|
842
889
|
legend: oe.value
|
|
843
890
|
}, void 0, !0)
|
|
844
891
|
], 512)
|
|
845
892
|
], 8, ["to"])) : p("", !0),
|
|
846
|
-
t.$slots.source ? (
|
|
893
|
+
t.$slots.source ? (r(), g("div", {
|
|
847
894
|
key: 6,
|
|
848
895
|
ref_key: "source",
|
|
849
|
-
ref:
|
|
896
|
+
ref: ye,
|
|
850
897
|
dir: "auto"
|
|
851
898
|
}, [
|
|
852
|
-
|
|
899
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
853
900
|
], 512)) : p("", !0),
|
|
854
|
-
ce(
|
|
855
|
-
show:
|
|
901
|
+
ce(s(nt), {
|
|
902
|
+
show: y.value.showTooltip && J.value,
|
|
856
903
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
857
904
|
color: e.value.style.chart.tooltip.color,
|
|
858
905
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -863,43 +910,43 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
863
910
|
position: e.value.style.chart.tooltip.position,
|
|
864
911
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
865
912
|
parent: T.value,
|
|
866
|
-
content:
|
|
867
|
-
isFullscreen:
|
|
868
|
-
isCustom:
|
|
913
|
+
content: K.value,
|
|
914
|
+
isFullscreen: I.value,
|
|
915
|
+
isCustom: s(We)(e.value.style.chart.tooltip.customFormat),
|
|
869
916
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
870
917
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
871
918
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
872
919
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
873
920
|
}, {
|
|
874
|
-
"tooltip-before":
|
|
875
|
-
|
|
921
|
+
"tooltip-before": c(() => [
|
|
922
|
+
d(t.$slots, "tooltip-before", k(C({ ...se.value })), void 0, !0)
|
|
876
923
|
]),
|
|
877
|
-
"tooltip-after":
|
|
878
|
-
|
|
924
|
+
"tooltip-after": c(() => [
|
|
925
|
+
d(t.$slots, "tooltip-after", k(C({ ...se.value })), void 0, !0)
|
|
879
926
|
]),
|
|
880
927
|
_: 3
|
|
881
928
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
882
|
-
he.value && e.value.userOptions.buttons.table ? (
|
|
929
|
+
he.value && e.value.userOptions.buttons.table ? (r(), _(Yt(N.value.component), Xt({ key: 7 }, N.value.props, {
|
|
883
930
|
ref_key: "tableUnit",
|
|
884
|
-
ref:
|
|
885
|
-
onClose: l[3] || (l[3] = (o) =>
|
|
931
|
+
ref: R,
|
|
932
|
+
onClose: l[3] || (l[3] = (o) => y.value.showTable = !1)
|
|
886
933
|
}), Ge({
|
|
887
|
-
content:
|
|
888
|
-
(
|
|
889
|
-
key: `table_${
|
|
890
|
-
colNames:
|
|
891
|
-
head:
|
|
892
|
-
body:
|
|
893
|
-
config:
|
|
894
|
-
title: e.value.table.useDialog ? "" :
|
|
934
|
+
content: c(() => [
|
|
935
|
+
(r(), _(s(ut), {
|
|
936
|
+
key: `table_${Ce.value}`,
|
|
937
|
+
colNames: j.value.colNames,
|
|
938
|
+
head: j.value.head,
|
|
939
|
+
body: j.value.body,
|
|
940
|
+
config: j.value.config,
|
|
941
|
+
title: e.value.table.useDialog ? "" : N.value.title,
|
|
895
942
|
withCloseButton: !e.value.table.useDialog,
|
|
896
|
-
onClose: l[2] || (l[2] = (o) =>
|
|
943
|
+
onClose: l[2] || (l[2] = (o) => y.value.showTable = !1)
|
|
897
944
|
}, {
|
|
898
|
-
th:
|
|
899
|
-
Ye(
|
|
945
|
+
th: c(({ th: o }) => [
|
|
946
|
+
Ye(q(o), 1)
|
|
900
947
|
]),
|
|
901
|
-
td:
|
|
902
|
-
|
|
948
|
+
td: c(({ td: o }) => [
|
|
949
|
+
P("div", { innerHTML: o }, null, 8, Eo)
|
|
903
950
|
]),
|
|
904
951
|
_: 1
|
|
905
952
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -908,37 +955,37 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
908
955
|
}, [
|
|
909
956
|
e.value.table.useDialog ? {
|
|
910
957
|
name: "title",
|
|
911
|
-
fn:
|
|
912
|
-
Ye(
|
|
958
|
+
fn: c(() => [
|
|
959
|
+
Ye(q(N.value.title), 1)
|
|
913
960
|
]),
|
|
914
961
|
key: "0"
|
|
915
962
|
} : void 0,
|
|
916
963
|
e.value.table.useDialog ? {
|
|
917
964
|
name: "actions",
|
|
918
|
-
fn:
|
|
919
|
-
|
|
965
|
+
fn: c(() => [
|
|
966
|
+
P("button", {
|
|
920
967
|
tabindex: "0",
|
|
921
968
|
class: "vue-ui-user-options-button",
|
|
922
969
|
onClick: l[1] || (l[1] = (o) => ne(e.value.userOptions.callbacks.csv))
|
|
923
970
|
}, [
|
|
924
|
-
ce(
|
|
971
|
+
ce(s(rt), {
|
|
925
972
|
name: "excel",
|
|
926
|
-
stroke:
|
|
973
|
+
stroke: N.value.props.color
|
|
927
974
|
}, null, 8, ["stroke"])
|
|
928
975
|
])
|
|
929
976
|
]),
|
|
930
977
|
key: "1"
|
|
931
978
|
} : void 0
|
|
932
979
|
]), 1040)) : p("", !0),
|
|
933
|
-
|
|
934
|
-
], 46,
|
|
980
|
+
s($) ? (r(), _(ro, { key: 8 })) : p("", !0)
|
|
981
|
+
], 46, yo));
|
|
935
982
|
}
|
|
936
|
-
},
|
|
983
|
+
}, Lo = /* @__PURE__ */ bo(Mo, [["__scopeId", "data-v-0e506fb5"]]), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
937
984
|
__proto__: null,
|
|
938
|
-
default:
|
|
985
|
+
default: Lo
|
|
939
986
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
940
987
|
export {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
988
|
+
el as a,
|
|
989
|
+
tl as b,
|
|
990
|
+
Lo as v
|
|
944
991
|
};
|