vue-data-ui 3.9.11 → 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-DPLuuWzw.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-B2w3blNC.js → vue-data-ui-DE3O1T8n.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Cpp-5jo0.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-BH8z1r48.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-CmLA4Lxs.js → vue-ui-bullet-DhpTML7L.js} +22 -22
- package/dist/{vue-ui-candlestick-IspjAN-a.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
- package/dist/{vue-ui-carousel-table-9mdO6mvP.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
- package/dist/{vue-ui-chestnut-CC1bTcaA.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
- package/dist/{vue-ui-chord-B0pp0mDm.js → vue-ui-chord-CB6w31Ex.js} +8 -8
- package/dist/{vue-ui-circle-pack-CWhq37at.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
- package/dist/{vue-ui-cursor-DOWNTk2K.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
- package/dist/{vue-ui-dag-DlLdvPIA.js → vue-ui-dag-Dq3hKon7.js} +7 -7
- package/dist/{vue-ui-dashboard-BRAyn8IO.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-C95OcKhs.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
- package/dist/{vue-ui-dumbbell-L8fXdkQm.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
- package/dist/{vue-ui-flow-CPnYumnP.js → vue-ui-flow-CgAIlvZF.js} +38 -38
- package/dist/{vue-ui-funnel-BPnUog47.js → vue-ui-funnel-CpgqO34n.js} +6 -6
- package/dist/{vue-ui-galaxy-BjtDkIAw.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
- package/dist/{vue-ui-gauge-CHqgIzG0.js → vue-ui-gauge-DY78U-uO.js} +7 -7
- package/dist/{vue-ui-geo-C3O4GHZF.js → vue-ui-geo-Befu6fkT.js} +20 -20
- package/dist/{vue-ui-gizmo-Dr0gsAOM.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
- package/dist/{vue-ui-heatmap-BBshmoO7.js → vue-ui-heatmap-C_ze3bzX.js} +80 -80
- package/dist/{vue-ui-history-plot-BiUyd40D.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-BDtke67D.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-DH-sHfQ-.js → vue-ui-molecule-N938wMMB.js} +5 -5
- package/dist/{vue-ui-mood-radar-BWASgbMe.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
- package/dist/{vue-ui-nested-donuts-4ey-UxN-.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
- package/dist/{vue-ui-onion-40DoblSj.js → vue-ui-onion-BwY998zT.js} +376 -332
- package/dist/{vue-ui-parallel-coordinate-plot-BIV0-SLG.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
- package/dist/{vue-ui-quadrant-Dvuwg4h7.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
- package/dist/{vue-ui-quick-chart-CZgZOWsW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
- package/dist/{vue-ui-radar-BfoE3AZN.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-EVMDQTCn.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
- package/dist/{vue-ui-ridgeline-BO-JV7Qz.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
- package/dist/{vue-ui-rings-B0wMY8Cu.js → vue-ui-rings-DNdUdKax.js} +270 -246
- package/dist/{vue-ui-scatter-CyjpTjlf.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
- package/dist/{vue-ui-skeleton-C8Aq8dTp.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-B1pD2N9Z.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
- package/dist/{vue-ui-sparkbar-DFlGdgrX.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BMRbWZ_X.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-jI9-0GyS.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
- package/dist/{vue-ui-sparkline-DLB7uHga.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-E8mYJ8eg.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
- package/dist/{vue-ui-stackbar-zhHYnvVo.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
- package/dist/{vue-ui-stackline-rFr4hLbc.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
- package/dist/{vue-ui-strip-plot-DA8uwUaL.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
- package/dist/{vue-ui-table-CldDVgkf.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-D3XfL4kK.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
- package/dist/{vue-ui-thermometer-CU86DLRC.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
- package/dist/{vue-ui-timer-CPZBXUbs.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
- package/dist/{vue-ui-tiremarks-CLiEtCKe.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
- package/dist/{vue-ui-treemap-Dht5s1nE.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
- package/dist/{vue-ui-waffle-BQM8XJln.js → vue-ui-waffle-CddfqNWD.js} +381 -352
- package/dist/{vue-ui-wheel-CX-gWpDL.js → vue-ui-wheel-CGYJA-33.js} +6 -6
- package/dist/{vue-ui-word-cloud-dolAsuyP.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
- package/dist/{vue-ui-world-su4gjhTo.js → vue-ui-world-DQjHEyKe.js} +31 -31
- package/dist/{vue-ui-xy-BSBAegJ1.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-BjSuCwQE.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--5lL-kf1.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-BhURirpm.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" })), mo = ["id"], yo = ["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-tQNKwbVi.js")), ut = S(() => import("./DataTable-WrXCJkfE.js")), it = S(() => import("./UserOptions-CzJWRC4s.js")), ct = S(() => import("./PenAndPaper-DxIUvoQ8.js")), dt = S(() => import("./PackageVersion-D3cMhAlf.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), me = u(null), ye = 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,39 +88,39 @@ 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, m.value.showTable = e.value.table.show, m.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), mt = v(() => qt(e.value.customPalette)), m = u({
|
|
119
120
|
showTable: e.value.table.show,
|
|
120
121
|
showTooltip: e.value.style.chart.tooltip.show
|
|
121
122
|
});
|
|
122
|
-
|
|
123
|
+
V(e, () => {
|
|
123
124
|
m.value = {
|
|
124
125
|
showTable: e.value.table.show,
|
|
125
126
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -135,30 +136,30 @@ 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 yt =
|
|
143
|
+
const yt = 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
150
|
sizeRef: yt,
|
|
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,
|
|
@@ -167,18 +168,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
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,94 @@ 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) || mt.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
|
+
), y = 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: y
|
|
238
|
+
});
|
|
239
|
+
return {
|
|
240
|
+
...t,
|
|
241
|
+
display: `${t.name}${o || a ? ": " : ""}${ie}`
|
|
242
|
+
};
|
|
243
|
+
})), 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);
|
|
244
|
+
V(() => f.value, Be, { immediate: !0, deep: !0 }), V(() => w.dataset, (t) => {
|
|
245
|
+
Array.isArray(t) && t.length > 0 && (Q.value = !1);
|
|
228
246
|
}, { deep: !0 });
|
|
229
247
|
function Be() {
|
|
230
|
-
if (
|
|
248
|
+
if (Ct.value && !le.value && !$.value) {
|
|
231
249
|
let l = function() {
|
|
232
|
-
t >= At.value ? (cancelAnimationFrame(wt.value),
|
|
250
|
+
t >= At.value ? (cancelAnimationFrame(wt.value), z.value = f.value, le.value = !0) : (z.value = f.value.map((o) => ({
|
|
233
251
|
...o,
|
|
234
252
|
percentage: t < o.targetPercentage ? t : o.targetPercentage
|
|
235
253
|
})), t += 1, requestAnimationFrame(l), le.value = !0);
|
|
236
254
|
};
|
|
237
|
-
|
|
255
|
+
z.value = f.value.map((o) => ({
|
|
238
256
|
...o,
|
|
239
257
|
percentage: 0
|
|
240
258
|
}));
|
|
241
259
|
let t = 0;
|
|
242
260
|
l();
|
|
243
261
|
} else
|
|
244
|
-
|
|
262
|
+
z.value = f.value;
|
|
245
263
|
}
|
|
246
|
-
const $t =
|
|
264
|
+
const $t = v(() => ({
|
|
247
265
|
cy: "onion-div-legend",
|
|
248
266
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
267
|
color: e.value.style.chart.legend.color,
|
|
250
268
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
251
269
|
paddingBottom: 12,
|
|
252
270
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
|
-
})), Tt =
|
|
271
|
+
})), Tt = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), B = v(() => {
|
|
254
272
|
const t = Math.min(h.value.width, h.value.height) / 2 / f.value.length;
|
|
255
273
|
return {
|
|
256
274
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
257
275
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
258
276
|
};
|
|
259
|
-
}),
|
|
277
|
+
}), O = v(() => z.value.filter((t) => !b.value.includes(t.id)).map((t, l) => {
|
|
260
278
|
const o = (h.value.maxRadius - B.value.track) / Tt.value / 2 * (1 + l), a = h.value.centerY - o;
|
|
261
279
|
return {
|
|
262
280
|
percentage: t.percentage || 0,
|
|
263
281
|
...t,
|
|
264
282
|
labelY: a,
|
|
265
283
|
radius: o,
|
|
266
|
-
path:
|
|
284
|
+
path: Ft(o, t.percentage || 0)
|
|
267
285
|
};
|
|
268
286
|
}));
|
|
269
|
-
function
|
|
270
|
-
const o = 2 * Math.PI * t, a = o * 0.75,
|
|
287
|
+
function Ft(t, l) {
|
|
288
|
+
const o = 2 * Math.PI * t, a = o * 0.75, i = `${a} ${o}`, y = a * (1 - l / 100);
|
|
271
289
|
return {
|
|
272
290
|
bgDashArray: `${a} ${o}`,
|
|
273
291
|
bgDashOffset: 0,
|
|
274
|
-
dashArray:
|
|
275
|
-
dashOffset:
|
|
292
|
+
dashArray: i,
|
|
293
|
+
dashOffset: y,
|
|
276
294
|
fullOffset: 0,
|
|
277
295
|
active: `
|
|
278
296
|
M ${h.value.centerX},${h.value.centerY - t}
|
|
@@ -281,42 +299,42 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
281
299
|
`.trim()
|
|
282
300
|
};
|
|
283
301
|
}
|
|
284
|
-
const
|
|
285
|
-
function
|
|
302
|
+
const Ot = at;
|
|
303
|
+
function X(t) {
|
|
286
304
|
if (b.value.includes(t))
|
|
287
305
|
b.value = b.value.filter((l) => l !== t);
|
|
288
306
|
else {
|
|
289
307
|
if (b.value.length === f.value.length - 1) return;
|
|
290
308
|
b.value.push(t);
|
|
291
309
|
}
|
|
292
|
-
|
|
310
|
+
Ot("selectLegend", O.value);
|
|
293
311
|
}
|
|
294
|
-
function
|
|
312
|
+
function Ie(t) {
|
|
295
313
|
if (!f.value.length)
|
|
296
314
|
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
297
315
|
const l = f.value.find((o) => o.name === t);
|
|
298
316
|
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
299
317
|
}
|
|
300
|
-
function Ot(t) {
|
|
301
|
-
const l = Pe(t);
|
|
302
|
-
l !== null && b.value.includes(l.id) && j(l.id);
|
|
303
|
-
}
|
|
304
318
|
function Dt(t) {
|
|
305
|
-
const l =
|
|
306
|
-
l !== null &&
|
|
319
|
+
const l = Ie(t);
|
|
320
|
+
l !== null && b.value.includes(l.id) && X(l.id);
|
|
321
|
+
}
|
|
322
|
+
function xt(t) {
|
|
323
|
+
const l = Ie(t);
|
|
324
|
+
l !== null && (b.value.includes(l.id) || X(l.id));
|
|
307
325
|
}
|
|
308
326
|
function St() {
|
|
309
|
-
return
|
|
327
|
+
return O.value;
|
|
310
328
|
}
|
|
311
|
-
const ae =
|
|
312
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l =
|
|
329
|
+
const ae = v(() => {
|
|
330
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = O.value.map((o) => [
|
|
313
331
|
o.name,
|
|
314
332
|
o.percentage,
|
|
315
333
|
o.value
|
|
316
334
|
]);
|
|
317
335
|
return { head: t, body: l };
|
|
318
|
-
}),
|
|
319
|
-
const t = ae.value.head, l =
|
|
336
|
+
}), j = v(() => {
|
|
337
|
+
const t = ae.value.head, l = O.value.map((a) => [
|
|
320
338
|
`<span style="color:${a.color}">⬤</span> ${a.name}`,
|
|
321
339
|
`${Number(a.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
322
340
|
`${a.prefix || ""}${[null, void 0, NaN, "NaN"].includes(a.value) ? "-" : a.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${a.suffix || ""}`
|
|
@@ -337,82 +355,132 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
337
355
|
});
|
|
338
356
|
function ne(t = null) {
|
|
339
357
|
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(
|
|
358
|
+
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), y = Qt(i);
|
|
359
|
+
t ? t(y) : Zt({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
342
360
|
});
|
|
343
361
|
}
|
|
344
|
-
const
|
|
362
|
+
const x = u(void 0), I = u(!1);
|
|
345
363
|
function Ee(t) {
|
|
346
|
-
|
|
364
|
+
I.value = t, fe.value += 1;
|
|
347
365
|
}
|
|
348
366
|
function Me({ datapoint: t }) {
|
|
349
367
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
350
368
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
369
|
+
function Le({ datapoint: t }) {
|
|
370
|
+
x.value = void 0, J.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
371
|
+
}
|
|
372
|
+
function re({
|
|
373
|
+
val: t,
|
|
374
|
+
percentage: l,
|
|
375
|
+
showVal: o,
|
|
376
|
+
showPercentage: a
|
|
377
|
+
}) {
|
|
378
|
+
const i = e.value.style.chart.layout.labels;
|
|
379
|
+
return to({
|
|
380
|
+
config: i,
|
|
381
|
+
val: t,
|
|
382
|
+
percentage: l,
|
|
383
|
+
showVal: o,
|
|
384
|
+
showPercentage: a
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function _t(t, l) {
|
|
388
|
+
const o = e.value.style.chart.layout.labels.value.show, a = e.value.style.chart.layout.labels.percentage.show, i = re({
|
|
389
|
+
showVal: o,
|
|
390
|
+
showPercentage: a,
|
|
391
|
+
val: ve(
|
|
392
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
393
|
+
t.value,
|
|
394
|
+
L({
|
|
395
|
+
p: t.prefix || "",
|
|
396
|
+
v: t.value || 0,
|
|
397
|
+
s: t.suffix || "",
|
|
398
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
399
|
+
}),
|
|
400
|
+
{ datapoint: t, seriesIndex: l }
|
|
401
|
+
),
|
|
402
|
+
percentage: L({
|
|
403
|
+
v: t.percentage,
|
|
404
|
+
s: "%",
|
|
405
|
+
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
406
|
+
})
|
|
407
|
+
});
|
|
408
|
+
return `${t.name}${o || a ? ": " : ""}${i}`;
|
|
353
409
|
}
|
|
354
|
-
const
|
|
355
|
-
function
|
|
410
|
+
const se = u(null);
|
|
411
|
+
function Re({ datapoint: t, seriesIndex: l, show: o = !0 }) {
|
|
356
412
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
357
413
|
const a = t.absoluteIndex;
|
|
358
|
-
|
|
414
|
+
x.value = l, se.value = {
|
|
359
415
|
datapoint: t,
|
|
360
416
|
seriesIndex: a,
|
|
361
417
|
series: f.value,
|
|
362
418
|
config: e.value
|
|
363
|
-
},
|
|
364
|
-
let
|
|
365
|
-
const
|
|
366
|
-
if (We(
|
|
419
|
+
}, J.value = o;
|
|
420
|
+
let i = "";
|
|
421
|
+
const y = e.value.style.chart.tooltip.customFormat;
|
|
422
|
+
if (We(y) && eo(() => y({
|
|
367
423
|
seriesIndex: a,
|
|
368
424
|
datapoint: t,
|
|
369
425
|
series: f.value,
|
|
370
426
|
config: e.value
|
|
371
427
|
})))
|
|
372
|
-
|
|
428
|
+
K.value = y({
|
|
373
429
|
seriesIndex: a,
|
|
374
430
|
datapoint: t,
|
|
375
431
|
series: f.value,
|
|
376
432
|
config: e.value
|
|
377
433
|
});
|
|
378
434
|
else {
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
435
|
+
const ie = e.value.style.chart.tooltip.showPercentage, zt = e.value.style.chart.tooltip.showValue;
|
|
436
|
+
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({
|
|
437
|
+
showVal: zt,
|
|
438
|
+
showPercentage: ie,
|
|
439
|
+
val: `<span>${ve(
|
|
440
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
441
|
+
t.value,
|
|
442
|
+
L({
|
|
443
|
+
p: t.prefix || "",
|
|
444
|
+
v: t.value,
|
|
445
|
+
s: t.suffix || "",
|
|
446
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
447
|
+
}),
|
|
448
|
+
{
|
|
449
|
+
datapoint: t,
|
|
450
|
+
seriesIndex: l
|
|
451
|
+
}
|
|
452
|
+
)}</span>`,
|
|
453
|
+
percentage: L({
|
|
454
|
+
v: t.percentage,
|
|
455
|
+
s: "%",
|
|
456
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
457
|
+
})
|
|
458
|
+
})}</b></div>`, K.value = `<div>${i}</div>`;
|
|
391
459
|
}
|
|
392
460
|
}
|
|
393
|
-
function
|
|
461
|
+
function ze() {
|
|
394
462
|
m.value.showTable = !m.value.showTable;
|
|
395
463
|
}
|
|
396
464
|
function Ne() {
|
|
397
465
|
m.value.showTooltip = !m.value.showTooltip;
|
|
398
466
|
}
|
|
399
|
-
const
|
|
400
|
-
function
|
|
401
|
-
|
|
467
|
+
const H = u(!1);
|
|
468
|
+
function ue() {
|
|
469
|
+
H.value = !H.value;
|
|
402
470
|
}
|
|
403
|
-
async function
|
|
471
|
+
async function Pt({ scale: t = 2 } = {}) {
|
|
404
472
|
if (!T.value) return;
|
|
405
|
-
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri:
|
|
473
|
+
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: i, base64: y } = await ho({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
406
474
|
return {
|
|
407
|
-
imageUri:
|
|
408
|
-
base64:
|
|
475
|
+
imageUri: i,
|
|
476
|
+
base64: y,
|
|
409
477
|
title: e.value.style.chart.title.text,
|
|
410
478
|
width: l,
|
|
411
479
|
height: o,
|
|
412
480
|
aspectRatio: a
|
|
413
481
|
};
|
|
414
482
|
}
|
|
415
|
-
const
|
|
483
|
+
const N = v(() => {
|
|
416
484
|
const t = e.value.table.useDialog && !e.value.table.show, l = m.value.showTable;
|
|
417
485
|
return {
|
|
418
486
|
component: t ? vt : st,
|
|
@@ -422,7 +490,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
422
490
|
color: e.value.table.th.color,
|
|
423
491
|
headerColor: e.value.table.th.color,
|
|
424
492
|
headerBg: e.value.table.th.backgroundColor,
|
|
425
|
-
isFullscreen:
|
|
493
|
+
isFullscreen: I.value,
|
|
426
494
|
fullscreenParent: T.value,
|
|
427
495
|
forcedWidth: Math.min(600, window.innerWidth * 0.8)
|
|
428
496
|
} : {
|
|
@@ -442,91 +510,91 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
442
510
|
}
|
|
443
511
|
};
|
|
444
512
|
});
|
|
445
|
-
|
|
446
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
513
|
+
V(() => m.value.showTable, (t) => {
|
|
514
|
+
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
447
515
|
});
|
|
448
|
-
const
|
|
516
|
+
const Bt = v(() => oe.value.map((t) => ({
|
|
449
517
|
...t,
|
|
450
518
|
name: t.display
|
|
451
|
-
}))),
|
|
452
|
-
svg:
|
|
453
|
-
title:
|
|
454
|
-
legend:
|
|
455
|
-
legendItems:
|
|
456
|
-
backgroundColor:
|
|
519
|
+
}))), 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({
|
|
520
|
+
svg: Y,
|
|
521
|
+
title: Mt,
|
|
522
|
+
legend: Et,
|
|
523
|
+
legendItems: Bt,
|
|
524
|
+
backgroundColor: It
|
|
457
525
|
});
|
|
458
526
|
async function Ve({ isCb: t }) {
|
|
459
527
|
if (t) {
|
|
460
|
-
const { blob: l, url: o, text: a, dataUrl:
|
|
461
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl:
|
|
528
|
+
const { blob: l, url: o, text: a, dataUrl: i } = await Rt();
|
|
529
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: i });
|
|
462
530
|
} else
|
|
463
|
-
|
|
531
|
+
Lt();
|
|
464
532
|
}
|
|
465
533
|
return lt({
|
|
466
534
|
getData: St,
|
|
467
|
-
getImage:
|
|
468
|
-
generatePdf:
|
|
535
|
+
getImage: Pt,
|
|
536
|
+
generatePdf: xe,
|
|
469
537
|
generateCsv: ne,
|
|
470
538
|
generateImage: Se,
|
|
471
539
|
generateSvg: Ve,
|
|
472
|
-
hideSeries:
|
|
473
|
-
showSeries:
|
|
474
|
-
toggleTable:
|
|
540
|
+
hideSeries: xt,
|
|
541
|
+
showSeries: Dt,
|
|
542
|
+
toggleTable: ze,
|
|
475
543
|
toggleTooltip: Ne,
|
|
476
|
-
toggleAnnotator:
|
|
544
|
+
toggleAnnotator: ue,
|
|
477
545
|
toggleFullscreen: Ee
|
|
478
|
-
}), (t, l) => (
|
|
479
|
-
class:
|
|
546
|
+
}), (t, l) => (r(), g("div", {
|
|
547
|
+
class: W(`vue-data-ui-component vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
480
548
|
ref_key: "onionChart",
|
|
481
549
|
ref: T,
|
|
482
|
-
id: `vue-ui-onion_${
|
|
550
|
+
id: `vue-ui-onion_${A.value}`,
|
|
483
551
|
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] = () =>
|
|
552
|
+
onMouseenter: l[4] || (l[4] = () => s(Te)(!0)),
|
|
553
|
+
onMouseleave: l[5] || (l[5] = () => s(Te)(!1))
|
|
486
554
|
}, [
|
|
487
|
-
e.value.userOptions.buttons.annotator ? (
|
|
555
|
+
e.value.userOptions.buttons.annotator ? (r(), _(s(ct), {
|
|
488
556
|
key: 0,
|
|
489
|
-
svgRef:
|
|
557
|
+
svgRef: s(Y),
|
|
490
558
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
559
|
color: e.value.style.chart.color,
|
|
492
|
-
active:
|
|
493
|
-
onClose:
|
|
560
|
+
active: H.value,
|
|
561
|
+
onClose: ue
|
|
494
562
|
}, {
|
|
495
|
-
"annotator-action-close":
|
|
496
|
-
|
|
563
|
+
"annotator-action-close": c(() => [
|
|
564
|
+
d(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
497
565
|
]),
|
|
498
|
-
"annotator-action-color":
|
|
499
|
-
|
|
566
|
+
"annotator-action-color": c(({ color: o }) => [
|
|
567
|
+
d(t.$slots, "annotator-action-color", k(C({ color: o })), void 0, !0)
|
|
500
568
|
]),
|
|
501
|
-
"annotator-action-draw":
|
|
502
|
-
|
|
569
|
+
"annotator-action-draw": c(({ mode: o }) => [
|
|
570
|
+
d(t.$slots, "annotator-action-draw", k(C({ mode: o })), void 0, !0)
|
|
503
571
|
]),
|
|
504
|
-
"annotator-action-undo":
|
|
505
|
-
|
|
572
|
+
"annotator-action-undo": c(({ disabled: o }) => [
|
|
573
|
+
d(t.$slots, "annotator-action-undo", k(C({ disabled: o })), void 0, !0)
|
|
506
574
|
]),
|
|
507
|
-
"annotator-action-redo":
|
|
508
|
-
|
|
575
|
+
"annotator-action-redo": c(({ disabled: o }) => [
|
|
576
|
+
d(t.$slots, "annotator-action-redo", k(C({ disabled: o })), void 0, !0)
|
|
509
577
|
]),
|
|
510
|
-
"annotator-action-delete":
|
|
511
|
-
|
|
578
|
+
"annotator-action-delete": c(({ disabled: o }) => [
|
|
579
|
+
d(t.$slots, "annotator-action-delete", k(C({ disabled: o })), void 0, !0)
|
|
512
580
|
]),
|
|
513
581
|
_: 3
|
|
514
582
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
515
|
-
bt.value ? (
|
|
583
|
+
bt.value ? (r(), g("div", {
|
|
516
584
|
key: 1,
|
|
517
585
|
ref_key: "noTitle",
|
|
518
586
|
ref: ye,
|
|
519
587
|
class: "vue-data-ui-no-title-space",
|
|
520
588
|
style: "height:36px; width: 100%;background:transparent"
|
|
521
589
|
}, null, 512)) : p("", !0),
|
|
522
|
-
e.value.style.chart.title.text ? (
|
|
590
|
+
e.value.style.chart.title.text ? (r(), g("div", {
|
|
523
591
|
key: 2,
|
|
524
592
|
ref_key: "chartTitle",
|
|
525
593
|
ref: pe,
|
|
526
594
|
style: "width:100%;background:transparent"
|
|
527
595
|
}, [
|
|
528
|
-
(
|
|
529
|
-
key: `title_${
|
|
596
|
+
(r(), _(fo, {
|
|
597
|
+
key: `title_${ke.value}`,
|
|
530
598
|
config: {
|
|
531
599
|
title: {
|
|
532
600
|
cy: "onion-div-title",
|
|
@@ -539,18 +607,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
539
607
|
}
|
|
540
608
|
}, null, 8, ["config"]))
|
|
541
609
|
], 512)) : p("", !0),
|
|
542
|
-
|
|
543
|
-
id: `legend-top-${
|
|
544
|
-
}, null, 8,
|
|
545
|
-
e.value.userOptions.show && he.value && (
|
|
610
|
+
P("div", {
|
|
611
|
+
id: `legend-top-${A.value}`
|
|
612
|
+
}, null, 8, yo),
|
|
613
|
+
e.value.userOptions.show && he.value && (s(Fe) || s(Z)) ? (r(), _(s(it), {
|
|
546
614
|
ref_key: "details",
|
|
547
615
|
ref: pt,
|
|
548
616
|
key: `user_options${fe.value}`,
|
|
549
617
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
550
618
|
color: e.value.style.chart.color,
|
|
551
|
-
isImaging:
|
|
552
|
-
isPrinting:
|
|
553
|
-
uid:
|
|
619
|
+
isImaging: s(De),
|
|
620
|
+
isPrinting: s(Oe),
|
|
621
|
+
uid: A.value,
|
|
554
622
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
555
623
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
556
624
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -558,102 +626,102 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
558
626
|
hasXls: e.value.userOptions.buttons.csv,
|
|
559
627
|
hasTable: e.value.userOptions.buttons.table,
|
|
560
628
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
561
|
-
isFullscreen:
|
|
629
|
+
isFullscreen: I.value,
|
|
562
630
|
isTooltip: m.value.showTooltip,
|
|
563
631
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
564
632
|
chartElement: T.value,
|
|
565
633
|
position: e.value.userOptions.position,
|
|
566
634
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
|
-
isAnnotation:
|
|
635
|
+
isAnnotation: H.value,
|
|
568
636
|
callbacks: e.value.userOptions.callbacks,
|
|
569
637
|
printScale: e.value.userOptions.print.scale,
|
|
570
638
|
tableDialog: e.value.table.useDialog,
|
|
571
639
|
onToggleFullscreen: Ee,
|
|
572
|
-
onGeneratePdf:
|
|
640
|
+
onGeneratePdf: s(xe),
|
|
573
641
|
onGenerateCsv: ne,
|
|
574
|
-
onGenerateImage:
|
|
642
|
+
onGenerateImage: s(Se),
|
|
575
643
|
onGenerateSvg: Ve,
|
|
576
|
-
onToggleTable:
|
|
644
|
+
onToggleTable: ze,
|
|
577
645
|
onToggleTooltip: Ne,
|
|
578
|
-
onToggleAnnotator:
|
|
646
|
+
onToggleAnnotator: ue,
|
|
579
647
|
style: E({
|
|
580
|
-
visibility:
|
|
648
|
+
visibility: s(Fe) ? s(Z) ? "visible" : "hidden" : "visible"
|
|
581
649
|
})
|
|
582
650
|
}, Ge({ _: 2 }, [
|
|
583
651
|
t.$slots.menuIcon ? {
|
|
584
652
|
name: "menuIcon",
|
|
585
|
-
fn:
|
|
586
|
-
|
|
653
|
+
fn: c(({ isOpen: o, color: a }) => [
|
|
654
|
+
d(t.$slots, "menuIcon", k(C({ isOpen: o, color: a })), void 0, !0)
|
|
587
655
|
]),
|
|
588
656
|
key: "0"
|
|
589
657
|
} : void 0,
|
|
590
658
|
t.$slots.optionTooltip ? {
|
|
591
659
|
name: "optionTooltip",
|
|
592
|
-
fn:
|
|
593
|
-
|
|
660
|
+
fn: c(() => [
|
|
661
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
594
662
|
]),
|
|
595
663
|
key: "1"
|
|
596
664
|
} : void 0,
|
|
597
665
|
t.$slots.optionPdf ? {
|
|
598
666
|
name: "optionPdf",
|
|
599
|
-
fn:
|
|
600
|
-
|
|
667
|
+
fn: c(() => [
|
|
668
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
601
669
|
]),
|
|
602
670
|
key: "2"
|
|
603
671
|
} : void 0,
|
|
604
672
|
t.$slots.optionCsv ? {
|
|
605
673
|
name: "optionCsv",
|
|
606
|
-
fn:
|
|
607
|
-
|
|
674
|
+
fn: c(() => [
|
|
675
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
608
676
|
]),
|
|
609
677
|
key: "3"
|
|
610
678
|
} : void 0,
|
|
611
679
|
t.$slots.optionImg ? {
|
|
612
680
|
name: "optionImg",
|
|
613
|
-
fn:
|
|
614
|
-
|
|
681
|
+
fn: c(() => [
|
|
682
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
615
683
|
]),
|
|
616
684
|
key: "4"
|
|
617
685
|
} : void 0,
|
|
618
686
|
t.$slots.optionSvg ? {
|
|
619
687
|
name: "optionSvg",
|
|
620
|
-
fn:
|
|
621
|
-
|
|
688
|
+
fn: c(() => [
|
|
689
|
+
d(t.$slots, "optionSvg", {}, void 0, !0)
|
|
622
690
|
]),
|
|
623
691
|
key: "5"
|
|
624
692
|
} : void 0,
|
|
625
693
|
t.$slots.optionTable ? {
|
|
626
694
|
name: "optionTable",
|
|
627
|
-
fn:
|
|
628
|
-
|
|
695
|
+
fn: c(() => [
|
|
696
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
629
697
|
]),
|
|
630
698
|
key: "6"
|
|
631
699
|
} : void 0,
|
|
632
700
|
t.$slots.optionFullscreen ? {
|
|
633
701
|
name: "optionFullscreen",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
702
|
+
fn: c(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
703
|
+
d(t.$slots, "optionFullscreen", k(C({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
636
704
|
]),
|
|
637
705
|
key: "7"
|
|
638
706
|
} : void 0,
|
|
639
707
|
t.$slots.optionAnnotator ? {
|
|
640
708
|
name: "optionAnnotator",
|
|
641
|
-
fn:
|
|
642
|
-
|
|
709
|
+
fn: c(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
710
|
+
d(t.$slots, "optionAnnotator", k(C({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
643
711
|
]),
|
|
644
712
|
key: "8"
|
|
645
713
|
} : void 0
|
|
646
714
|
]), 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
|
-
(
|
|
715
|
+
(r(), g("svg", {
|
|
648
716
|
ref_key: "svgRef",
|
|
649
|
-
ref:
|
|
650
|
-
xmlns:
|
|
651
|
-
class:
|
|
717
|
+
ref: Y,
|
|
718
|
+
xmlns: s(Kt),
|
|
719
|
+
class: W({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value, resizing: F.value }),
|
|
652
720
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
653
721
|
style: E(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
654
722
|
}, [
|
|
655
|
-
ce(
|
|
656
|
-
t.$slots["chart-background"] ? (
|
|
723
|
+
ce(s(dt)),
|
|
724
|
+
t.$slots["chart-background"] ? (r(), g("foreignObject", {
|
|
657
725
|
key: 0,
|
|
658
726
|
x: 0,
|
|
659
727
|
y: 0,
|
|
@@ -663,9 +731,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
663
731
|
pointerEvents: "none"
|
|
664
732
|
}
|
|
665
733
|
}, [
|
|
666
|
-
|
|
667
|
-
], 8,
|
|
668
|
-
(
|
|
734
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
735
|
+
], 8, Co)) : p("", !0),
|
|
736
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
669
737
|
cx: h.value.centerX,
|
|
670
738
|
cy: h.value.centerY,
|
|
671
739
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -675,15 +743,15 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
675
743
|
"stroke-dasharray": o.path.bgDashArray,
|
|
676
744
|
"stroke-dashoffset": o.path.fullOffset,
|
|
677
745
|
"stroke-linecap": "round",
|
|
678
|
-
class:
|
|
746
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
|
|
679
747
|
style: E({
|
|
680
748
|
transform: "rotate(-90deg)",
|
|
681
749
|
transformOrigin: "50% 50%",
|
|
682
|
-
transition:
|
|
683
|
-
animation:
|
|
750
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
751
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
684
752
|
})
|
|
685
|
-
}, null, 14,
|
|
686
|
-
(
|
|
753
|
+
}, null, 14, wo))), 256)),
|
|
754
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
687
755
|
cx: h.value.centerX,
|
|
688
756
|
cy: h.value.centerY,
|
|
689
757
|
r: o.radius < 0 ? 1e-4 : o.radius,
|
|
@@ -692,34 +760,34 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
692
760
|
fill: "none",
|
|
693
761
|
"stroke-dasharray": o.path.dashArray,
|
|
694
762
|
"stroke-dashoffset": o.path.dashOffset,
|
|
695
|
-
class:
|
|
763
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
|
|
696
764
|
"stroke-linecap": "round",
|
|
697
765
|
style: E({
|
|
698
766
|
transform: "rotate(-90deg)",
|
|
699
767
|
transformOrigin: "50% 50%",
|
|
700
|
-
transition:
|
|
701
|
-
animation:
|
|
768
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
769
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
702
770
|
})
|
|
703
|
-
}, null, 14,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
id: `blur_${
|
|
771
|
+
}, null, 14, Ao))), 256)),
|
|
772
|
+
P("defs", null, [
|
|
773
|
+
P("filter", {
|
|
774
|
+
id: `blur_${A.value}`,
|
|
707
775
|
x: "-50%",
|
|
708
776
|
y: "-50%",
|
|
709
777
|
width: "200%",
|
|
710
778
|
height: "200%"
|
|
711
779
|
}, [
|
|
712
|
-
|
|
780
|
+
P("feGaussianBlur", {
|
|
713
781
|
in: "SourceGraphic",
|
|
714
782
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
715
|
-
}, null, 8,
|
|
716
|
-
], 8,
|
|
783
|
+
}, null, 8, To)
|
|
784
|
+
], 8, $o)
|
|
717
785
|
]),
|
|
718
|
-
e.value.style.chart.useGradient ? (
|
|
786
|
+
e.value.style.chart.useGradient ? (r(), g("g", {
|
|
719
787
|
key: 1,
|
|
720
|
-
filter: `url(#blur_${
|
|
788
|
+
filter: `url(#blur_${A.value})`
|
|
721
789
|
}, [
|
|
722
|
-
(
|
|
790
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
723
791
|
cx: h.value.centerX,
|
|
724
792
|
cy: h.value.centerY,
|
|
725
793
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -732,12 +800,12 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
732
800
|
style: E({
|
|
733
801
|
transform: "rotate(-90deg)",
|
|
734
802
|
transformOrigin: "50% 50%",
|
|
735
|
-
transition:
|
|
736
|
-
animation:
|
|
803
|
+
transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
804
|
+
animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
737
805
|
})
|
|
738
|
-
}, null, 12,
|
|
739
|
-
], 8,
|
|
740
|
-
(
|
|
806
|
+
}, null, 12, Oo))), 256))
|
|
807
|
+
], 8, Fo)) : p("", !0),
|
|
808
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
|
|
741
809
|
cx: h.value.centerX,
|
|
742
810
|
cy: h.value.centerY,
|
|
743
811
|
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
@@ -752,107 +820,83 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
752
820
|
transform: "rotate(-90deg)",
|
|
753
821
|
transformOrigin: "50% 50%"
|
|
754
822
|
},
|
|
755
|
-
onMouseenter: (
|
|
823
|
+
onMouseenter: (i) => Re({
|
|
756
824
|
datapoint: o,
|
|
757
825
|
show: !0,
|
|
758
826
|
seriesIndex: a
|
|
759
827
|
}),
|
|
760
|
-
onMouseleave: (
|
|
761
|
-
onClick: (
|
|
762
|
-
}, null, 40,
|
|
763
|
-
e.value.style.chart.layout.labels.show ? (
|
|
764
|
-
(
|
|
765
|
-
onMouseenter: (
|
|
828
|
+
onMouseleave: (i) => Le({ datapoint: o }),
|
|
829
|
+
onClick: (i) => Me({ datapoint: o })
|
|
830
|
+
}, null, 40, Do))), 256)),
|
|
831
|
+
e.value.style.chart.layout.labels.show ? (r(), g("g", xo, [
|
|
832
|
+
(r(!0), g(U, null, G(O.value, (o, a) => (r(), g("g", {
|
|
833
|
+
onMouseenter: (i) => Re({
|
|
766
834
|
datapoint: o,
|
|
767
835
|
show: !0,
|
|
768
836
|
seriesIndex: a
|
|
769
837
|
}),
|
|
770
|
-
onMouseleave: (
|
|
771
|
-
onClick: (
|
|
838
|
+
onMouseleave: (i) => Le({ datapoint: o }),
|
|
839
|
+
onClick: (i) => Me({ datapoint: o })
|
|
772
840
|
}, [
|
|
773
|
-
b.value.includes(o.id) ? p("", !0) : (
|
|
841
|
+
b.value.includes(o.id) ? p("", !0) : (r(), g("text", {
|
|
774
842
|
key: 0,
|
|
775
843
|
class: "vue-ui-onion-label",
|
|
776
844
|
x: n.value.width / 2 - B.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
777
845
|
y: o.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
778
846
|
"text-anchor": "end",
|
|
779
847
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
780
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
848
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value === a ? o.color : e.value.style.chart.layout.labels.color,
|
|
781
849
|
"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))
|
|
850
|
+
}, q(_t(o, a)), 9, _o))
|
|
851
|
+
], 40, So))), 256))
|
|
808
852
|
])) : p("", !0),
|
|
809
|
-
|
|
810
|
-
], 14,
|
|
811
|
-
t.$slots.watermark ? (
|
|
812
|
-
|
|
853
|
+
d(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
854
|
+
], 14, ko)),
|
|
855
|
+
t.$slots.watermark ? (r(), g("div", Po, [
|
|
856
|
+
d(t.$slots, "watermark", k(C({ isPrinting: s(Oe) || s(De) })), void 0, !0)
|
|
813
857
|
])) : p("", !0),
|
|
814
|
-
|
|
815
|
-
id: `legend-bottom-${
|
|
816
|
-
}, null, 8,
|
|
817
|
-
Ae.value ? (
|
|
858
|
+
P("div", {
|
|
859
|
+
id: `legend-bottom-${A.value}`
|
|
860
|
+
}, null, 8, Bo),
|
|
861
|
+
Ae.value ? (r(), _(Gt, {
|
|
818
862
|
key: 5,
|
|
819
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
863
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
820
864
|
}, [
|
|
821
|
-
|
|
865
|
+
P("div", {
|
|
822
866
|
ref_key: "chartLegend",
|
|
823
867
|
ref: be
|
|
824
868
|
}, [
|
|
825
|
-
e.value.style.chart.legend.show ? (
|
|
869
|
+
e.value.style.chart.legend.show ? (r(), _(po, {
|
|
826
870
|
key: `legend_${we.value}`,
|
|
827
871
|
legendSet: oe.value,
|
|
828
872
|
config: $t.value,
|
|
829
|
-
onClickMarker: l[0] || (l[0] = ({ legend: o }) =>
|
|
873
|
+
onClickMarker: l[0] || (l[0] = ({ legend: o }) => X(o.id))
|
|
830
874
|
}, {
|
|
831
|
-
item:
|
|
832
|
-
|
|
875
|
+
item: c(({ legend: o }) => [
|
|
876
|
+
s($) ? p("", !0) : (r(), g("div", {
|
|
833
877
|
key: 0,
|
|
834
878
|
"data-cy-legend-item": "",
|
|
835
879
|
onClick: (a) => o.segregate(),
|
|
836
880
|
style: E(`opacity:${b.value.includes(o.id) ? 0.5 : 1}`)
|
|
837
|
-
},
|
|
881
|
+
}, q(o.display), 13, Io))
|
|
838
882
|
]),
|
|
839
883
|
_: 1
|
|
840
|
-
}, 8, ["legendSet", "config"])) :
|
|
884
|
+
}, 8, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
841
885
|
key: 1,
|
|
842
886
|
legend: oe.value
|
|
843
887
|
}, void 0, !0)
|
|
844
888
|
], 512)
|
|
845
889
|
], 8, ["to"])) : p("", !0),
|
|
846
|
-
t.$slots.source ? (
|
|
890
|
+
t.$slots.source ? (r(), g("div", {
|
|
847
891
|
key: 6,
|
|
848
892
|
ref_key: "source",
|
|
849
893
|
ref: me,
|
|
850
894
|
dir: "auto"
|
|
851
895
|
}, [
|
|
852
|
-
|
|
896
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
853
897
|
], 512)) : p("", !0),
|
|
854
|
-
ce(
|
|
855
|
-
show: m.value.showTooltip &&
|
|
898
|
+
ce(s(nt), {
|
|
899
|
+
show: m.value.showTooltip && J.value,
|
|
856
900
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
857
901
|
color: e.value.style.chart.tooltip.color,
|
|
858
902
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -863,43 +907,43 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
863
907
|
position: e.value.style.chart.tooltip.position,
|
|
864
908
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
865
909
|
parent: T.value,
|
|
866
|
-
content:
|
|
867
|
-
isFullscreen:
|
|
868
|
-
isCustom:
|
|
910
|
+
content: K.value,
|
|
911
|
+
isFullscreen: I.value,
|
|
912
|
+
isCustom: s(We)(e.value.style.chart.tooltip.customFormat),
|
|
869
913
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
870
914
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
871
915
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
872
916
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
873
917
|
}, {
|
|
874
|
-
"tooltip-before":
|
|
875
|
-
|
|
918
|
+
"tooltip-before": c(() => [
|
|
919
|
+
d(t.$slots, "tooltip-before", k(C({ ...se.value })), void 0, !0)
|
|
876
920
|
]),
|
|
877
|
-
"tooltip-after":
|
|
878
|
-
|
|
921
|
+
"tooltip-after": c(() => [
|
|
922
|
+
d(t.$slots, "tooltip-after", k(C({ ...se.value })), void 0, !0)
|
|
879
923
|
]),
|
|
880
924
|
_: 3
|
|
881
925
|
}, 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 ? (
|
|
926
|
+
he.value && e.value.userOptions.buttons.table ? (r(), _(Yt(N.value.component), Xt({ key: 7 }, N.value.props, {
|
|
883
927
|
ref_key: "tableUnit",
|
|
884
|
-
ref:
|
|
928
|
+
ref: R,
|
|
885
929
|
onClose: l[3] || (l[3] = (o) => m.value.showTable = !1)
|
|
886
930
|
}), Ge({
|
|
887
|
-
content:
|
|
888
|
-
(
|
|
889
|
-
key: `table_${
|
|
890
|
-
colNames:
|
|
891
|
-
head:
|
|
892
|
-
body:
|
|
893
|
-
config:
|
|
894
|
-
title: e.value.table.useDialog ? "" :
|
|
931
|
+
content: c(() => [
|
|
932
|
+
(r(), _(s(ut), {
|
|
933
|
+
key: `table_${Ce.value}`,
|
|
934
|
+
colNames: j.value.colNames,
|
|
935
|
+
head: j.value.head,
|
|
936
|
+
body: j.value.body,
|
|
937
|
+
config: j.value.config,
|
|
938
|
+
title: e.value.table.useDialog ? "" : N.value.title,
|
|
895
939
|
withCloseButton: !e.value.table.useDialog,
|
|
896
940
|
onClose: l[2] || (l[2] = (o) => m.value.showTable = !1)
|
|
897
941
|
}, {
|
|
898
|
-
th:
|
|
899
|
-
Ye(
|
|
942
|
+
th: c(({ th: o }) => [
|
|
943
|
+
Ye(q(o), 1)
|
|
900
944
|
]),
|
|
901
|
-
td:
|
|
902
|
-
|
|
945
|
+
td: c(({ td: o }) => [
|
|
946
|
+
P("div", { innerHTML: o }, null, 8, Eo)
|
|
903
947
|
]),
|
|
904
948
|
_: 1
|
|
905
949
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -908,37 +952,37 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
908
952
|
}, [
|
|
909
953
|
e.value.table.useDialog ? {
|
|
910
954
|
name: "title",
|
|
911
|
-
fn:
|
|
912
|
-
Ye(
|
|
955
|
+
fn: c(() => [
|
|
956
|
+
Ye(q(N.value.title), 1)
|
|
913
957
|
]),
|
|
914
958
|
key: "0"
|
|
915
959
|
} : void 0,
|
|
916
960
|
e.value.table.useDialog ? {
|
|
917
961
|
name: "actions",
|
|
918
|
-
fn:
|
|
919
|
-
|
|
962
|
+
fn: c(() => [
|
|
963
|
+
P("button", {
|
|
920
964
|
tabindex: "0",
|
|
921
965
|
class: "vue-ui-user-options-button",
|
|
922
966
|
onClick: l[1] || (l[1] = (o) => ne(e.value.userOptions.callbacks.csv))
|
|
923
967
|
}, [
|
|
924
|
-
ce(
|
|
968
|
+
ce(s(rt), {
|
|
925
969
|
name: "excel",
|
|
926
|
-
stroke:
|
|
970
|
+
stroke: N.value.props.color
|
|
927
971
|
}, null, 8, ["stroke"])
|
|
928
972
|
])
|
|
929
973
|
]),
|
|
930
974
|
key: "1"
|
|
931
975
|
} : void 0
|
|
932
976
|
]), 1040)) : p("", !0),
|
|
933
|
-
|
|
934
|
-
], 46,
|
|
977
|
+
s($) ? (r(), _(ro, { key: 8 })) : p("", !0)
|
|
978
|
+
], 46, mo));
|
|
935
979
|
}
|
|
936
|
-
},
|
|
980
|
+
}, Lo = /* @__PURE__ */ bo(Mo, [["__scopeId", "data-v-73dabc68"]]), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
937
981
|
__proto__: null,
|
|
938
|
-
default:
|
|
982
|
+
default: Lo
|
|
939
983
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
940
984
|
export {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
985
|
+
el as a,
|
|
986
|
+
tl as b,
|
|
987
|
+
Lo as v
|
|
944
988
|
};
|