vue-data-ui 3.9.12 → 3.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
- package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
- package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
- package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
- package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
- package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
- package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
- package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
- package/dist/{PackageVersion-BpArR90N.js → PackageVersion-D3cMhAlf.js} +1 -1
- package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
- package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
- package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
- package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
- package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
- package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
- package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
- package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
- package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
- package/dist/labelUtils-PMU3ZGCb.js +30 -0
- package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
- package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +20 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
- package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
- package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
- package/dist/{vue-data-ui-Dw19CYml.js → vue-data-ui-DE3O1T8n.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Bv7Tft_r.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
- package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6NjJlg4.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
- package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
- package/dist/{vue-ui-bullet-BLGvme53.js → vue-ui-bullet-DhpTML7L.js} +22 -22
- package/dist/{vue-ui-candlestick-DBG1mW60.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
- package/dist/{vue-ui-carousel-table-BYnItN48.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
- package/dist/{vue-ui-chestnut-DV6f4SNc.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
- package/dist/{vue-ui-chord-DRleP2O8.js → vue-ui-chord-CB6w31Ex.js} +8 -8
- package/dist/{vue-ui-circle-pack-BCrMaFWw.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
- package/dist/{vue-ui-cursor-j10t3UEX.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
- package/dist/{vue-ui-dag-y0oqslGj.js → vue-ui-dag-Dq3hKon7.js} +7 -7
- package/dist/{vue-ui-dashboard-mBGF94l6.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
- package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
- package/dist/vue-ui-donut-D3---CiY.js +2082 -0
- package/dist/{vue-ui-donut-evolution-hkHICgry.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
- package/dist/{vue-ui-dumbbell-BVPZwi0X.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
- package/dist/{vue-ui-flow-BNeKU-KR.js → vue-ui-flow-CgAIlvZF.js} +38 -38
- package/dist/{vue-ui-funnel-VorM1bT0.js → vue-ui-funnel-CpgqO34n.js} +6 -6
- package/dist/{vue-ui-galaxy-DKkviRQr.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
- package/dist/{vue-ui-gauge-BNaWVi-e.js → vue-ui-gauge-DY78U-uO.js} +7 -7
- package/dist/{vue-ui-geo-_R5mjj-u.js → vue-ui-geo-Befu6fkT.js} +7 -7
- package/dist/{vue-ui-gizmo-AQFQccea.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
- package/dist/{vue-ui-heatmap-BKX1bPY5.js → vue-ui-heatmap-C_ze3bzX.js} +108 -108
- package/dist/{vue-ui-history-plot-BNX8B2jr.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-B6VyEs1p.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
- package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
- package/dist/{vue-ui-molecule-PtnhkQLr.js → vue-ui-molecule-N938wMMB.js} +5 -5
- package/dist/{vue-ui-mood-radar-DxSVU35A.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BY8C1axg.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
- package/dist/{vue-ui-onion-XJAcsPVV.js → vue-ui-onion-BwY998zT.js} +376 -332
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIZbgp.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
- package/dist/{vue-ui-quadrant-DY9GXVYY.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
- package/dist/{vue-ui-quick-chart-Y73WB5GW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
- package/dist/{vue-ui-radar-Deup68ga.js → vue-ui-radar-B15r4HoM.js} +57 -57
- package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
- package/dist/{vue-ui-relation-circle-C0W3aPaO.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
- package/dist/{vue-ui-ridgeline-D9z3_hRf.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
- package/dist/{vue-ui-rings-CT3gLUkS.js → vue-ui-rings-DNdUdKax.js} +270 -246
- package/dist/{vue-ui-scatter-DiLSOZGs.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
- package/dist/{vue-ui-skeleton-D_2C5A85.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
- package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
- package/dist/{vue-ui-spark-trend-C05f4Fn6.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
- package/dist/{vue-ui-sparkbar-CjYaG0Ae.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
- package/dist/{vue-ui-sparkgauge-AKIy8PYI.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-nWWgx7iD.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
- package/dist/{vue-ui-sparkline-CGMDNQpH.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-C3vjYPrM.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
- package/dist/{vue-ui-stackbar-BQiLC89h.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
- package/dist/{vue-ui-stackline-DPV5Amgq.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
- package/dist/{vue-ui-strip-plot-CFGml25d.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
- package/dist/{vue-ui-table-DySeXTmp.js → vue-ui-table-BHWwypkc.js} +27 -27
- package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
- package/dist/{vue-ui-table-sparkline-DbEj6x4N.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
- package/dist/{vue-ui-thermometer-BeiT4slQ.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
- package/dist/{vue-ui-timer-RWg45QKc.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
- package/dist/{vue-ui-tiremarks-B4_W_mWX.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
- package/dist/{vue-ui-treemap-fq9-enBk.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
- package/dist/{vue-ui-waffle-BRcWupew.js → vue-ui-waffle-CddfqNWD.js} +381 -352
- package/dist/{vue-ui-wheel-DziR9q2I.js → vue-ui-wheel-CGYJA-33.js} +6 -6
- package/dist/{vue-ui-word-cloud-C6i_7Q6Y.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
- package/dist/{vue-ui-world-Dvn1JWi9.js → vue-ui-world-DQjHEyKe.js} +31 -31
- package/dist/{vue-ui-xy-2ui0juKl.js → vue-ui-xy-D5A8tR-O.js} +9 -9
- package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
- package/package.json +1 -1
- package/dist/vue-ui-donut-A_IFB9JR.js +0 -2078
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as ro } from "./
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import { defineAsyncComponent as O, useSlots as Lt, ref as u, computed as g, toRefs as Nt, watch as q, shallowRef as ze, onMounted as Rt, onBeforeUnmount as Vt, createElementBlock as f, openBlock as i, unref as n, normalizeStyle as L, normalizeClass as j, createBlock as E, createCommentVNode as C, createElementVNode as w, createVNode as J, withCtx as c, renderSlot as v, normalizeProps as A, guardReactiveProps as $, createSlots as ie, Fragment as ce, renderList as ve, mergeProps as We, Teleport as Mt, toDisplayString as de, resolveDynamicComponent as Ut, createTextVNode as je, nextTick as zt } from "vue";
|
|
2
|
+
import { c as Ge, t as Wt, i as jt, j as N, o as He, g as ge, l as Gt, k as Ht, a7 as Xt, m as Xe, a as Ye, d as V, X as Yt, s as qt, h as Jt, U as K, v as Kt, r as Qt, y 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 he } from "./useNestedProp--5lL-kf1.js";
|
|
6
|
+
import { u as no } from "./usePrinter-BJzHDpYF.js";
|
|
7
|
+
import { u as ro, B as so } from "./BaseScanner-BMpwQAfz.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 go from "./img-DKigoPDs.js";
|
|
13
|
+
import { _ as ho } from "./Shape-DAHhCEdg.js";
|
|
14
|
+
import po from "./Title-BhURirpm.js";
|
|
15
|
+
import fo 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: { rings: { stroke: "#3A3A3A" } }, 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", layout: { rings: { stroke: "#5D4037", strokeWidth: 10 } }, 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", layout: { rings: { stroke: "#2E2E2E", strokeWidth: 10 } }, 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", color: "#99AA99", layout: { rings: { stroke: "#1A1A1A", strokeWidth: 10 } }, 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: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 } }, 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: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 } }, 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:
|
|
23
|
-
concrete:
|
|
24
|
-
},
|
|
20
|
+
celebration: Je,
|
|
21
|
+
celebrationNight: Ke,
|
|
22
|
+
hack: Qe,
|
|
23
|
+
zen: Ze,
|
|
24
|
+
concrete: et
|
|
25
|
+
}, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
26
|
__proto__: null,
|
|
26
|
-
celebration:
|
|
27
|
-
celebrationNight:
|
|
28
|
-
concrete:
|
|
27
|
+
celebration: Je,
|
|
28
|
+
celebrationNight: Ke,
|
|
29
|
+
concrete: et,
|
|
29
30
|
dark: qe,
|
|
30
|
-
default:
|
|
31
|
-
hack:
|
|
32
|
-
zen:
|
|
33
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
31
|
+
default: tt,
|
|
32
|
+
hack: Qe,
|
|
33
|
+
zen: Ze
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), yo = ["id"], mo = ["id"], Co = ["xmlns", "viewBox"], ko = ["width", "height"], wo = ["id"], Ao = ["stop-color"], $o = ["stop-color"], To = { key: 1 }, Fo = ["stroke", "cx", "cy", "r", "fill"], _o = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], So = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Do = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Oo = {
|
|
34
35
|
key: 4,
|
|
35
36
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
37
|
+
}, Eo = ["id"], xo = ["onClick"], Io = ["innerHTML"], Po = {
|
|
37
38
|
__name: "vue-ui-rings",
|
|
38
39
|
props: {
|
|
39
40
|
config: {
|
|
@@ -50,9 +51,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
emits: ["selectLegend"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
55
|
-
...
|
|
54
|
+
setup(ot, { expose: lt, emit: at }) {
|
|
55
|
+
const nt = O(() => import("./Tooltip-TDyKgLB6.js")), rt = O(() => import("./BaseIcon-4i3dd7Ty.js")), st = O(() => import("./vue-ui-accordion-tQNKwbVi.js")), ut = O(() => import("./DataTable-WrXCJkfE.js")), it = O(() => import("./PenAndPaper-DxIUvoQ8.js")), ct = O(() => import("./UserOptions-CzJWRC4s.js")), vt = O(() => import("./PackageVersion-D3cMhAlf.js")), dt = O(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_rings: gt } = ao(), { isThemeValid: ht, warnInvalidTheme: pt } = io(), ft = Lt(), y = ot, x = u(!1), pe = g(() => !!y.dataset && y.dataset.length), m = u(Ge()), G = u(!1), Q = u(""), T = u(null), fe = u(0), F = u(null), be = u(null), ye = u(null), me = u(null), Ce = u(null), ke = u(0), we = u(0), Ae = u(0), Z = u(!1), $e = u(!1), M = u(null), ee = u(null), e = u(le()), { loading: I, FINAL_DATASET: Te, manualLoading: H } = ro({
|
|
56
|
+
...Nt(y),
|
|
56
57
|
FINAL_CONFIG: e,
|
|
57
58
|
prepareConfig: le,
|
|
58
59
|
skeletonDataset: [
|
|
@@ -62,7 +63,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
62
63
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
63
64
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
64
65
|
],
|
|
65
|
-
skeletonConfig:
|
|
66
|
+
skeletonConfig: Wt({
|
|
66
67
|
defaultConfig: e.value,
|
|
67
68
|
userConfig: {
|
|
68
69
|
userOptions: { show: !1 },
|
|
@@ -85,17 +86,17 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
})
|
|
88
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility: Fe, keepUserOptionState: _e } =
|
|
89
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: Fe, keepUserOptionState: _e } = co({ config: e.value }), { svgRef: oe } = vo({ config: e.value.style.chart.title });
|
|
89
90
|
function le() {
|
|
90
91
|
const t = he({
|
|
91
92
|
userConfig: y.config,
|
|
92
|
-
defaultConfig:
|
|
93
|
+
defaultConfig: gt
|
|
93
94
|
}), l = t.theme;
|
|
94
95
|
if (!l) return t;
|
|
95
|
-
if (!
|
|
96
|
-
return
|
|
96
|
+
if (!ht.value(t))
|
|
97
|
+
return pt(t), t;
|
|
97
98
|
const o = he({
|
|
98
|
-
userConfig:
|
|
99
|
+
userConfig: tt[l] || y.config,
|
|
99
100
|
defaultConfig: t
|
|
100
101
|
});
|
|
101
102
|
return {
|
|
@@ -103,21 +104,21 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
103
104
|
userConfig: y.config,
|
|
104
105
|
defaultConfig: o
|
|
105
106
|
}),
|
|
106
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
107
|
+
customPalette: t.customPalette.length ? t.customPalette : jt[t.theme] || N
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
+
q(() => y.config, (t) => {
|
|
110
111
|
I.value || (e.value = le()), te.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, we.value += 1, Ae.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
111
|
-
}, { deep: !0 }),
|
|
112
|
+
}, { deep: !0 }), q(() => y.dataset, (t) => {
|
|
112
113
|
Array.isArray(t) && t.length > 0 && (H.value = !1);
|
|
113
114
|
}, { deep: !0 });
|
|
114
|
-
const S = ze(null),
|
|
115
|
-
|
|
115
|
+
const S = ze(null), R = ze(null);
|
|
116
|
+
Rt(() => {
|
|
116
117
|
$e.value = !0, Se();
|
|
117
118
|
});
|
|
118
119
|
const ae = g(() => !!e.value.debug);
|
|
119
120
|
function Se() {
|
|
120
|
-
if (
|
|
121
|
+
if (He(y.dataset) ? (ge({
|
|
121
122
|
componentName: "VueUiRings",
|
|
122
123
|
type: "dataset",
|
|
123
124
|
debug: ae.value
|
|
@@ -126,7 +127,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
126
127
|
componentName: "VueUiRings",
|
|
127
128
|
type: "dataset",
|
|
128
129
|
debug: ae.value
|
|
129
|
-
}), H.value = !0),
|
|
130
|
+
}), H.value = !0), Gt({
|
|
130
131
|
datasetObject: t,
|
|
131
132
|
requiredAttributes: ["name", "values"]
|
|
132
133
|
}).forEach((o) => {
|
|
@@ -138,38 +139,38 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
138
139
|
debug: ae.value
|
|
139
140
|
});
|
|
140
141
|
});
|
|
141
|
-
}),
|
|
142
|
-
const t =
|
|
143
|
-
|
|
144
|
-
const { width: l, height: o } =
|
|
145
|
-
chart:
|
|
142
|
+
}), He(y.dataset) || (H.value = e.value.loading), e.value.responsive) {
|
|
143
|
+
const t = oo(() => {
|
|
144
|
+
Z.value = !0;
|
|
145
|
+
const { width: l, height: o } = lo({
|
|
146
|
+
chart: F.value,
|
|
146
147
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
147
148
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
148
149
|
source: me.value,
|
|
149
150
|
noTitle: Ce.value
|
|
150
151
|
});
|
|
151
152
|
requestAnimationFrame(() => {
|
|
152
|
-
s.value.width = l, s.value.height = o - 12,
|
|
153
|
+
s.value.width = l, s.value.height = o - 12, Z.value = !1;
|
|
153
154
|
});
|
|
154
155
|
});
|
|
155
|
-
S.value && (
|
|
156
|
+
S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect()), S.value = new ResizeObserver(t), R.value = F.value.parentNode, S.value.observe(R.value);
|
|
156
157
|
}
|
|
157
158
|
setTimeout(() => {
|
|
158
|
-
|
|
159
|
+
x.value = !0;
|
|
159
160
|
}, 600);
|
|
160
161
|
}
|
|
161
|
-
|
|
162
|
-
S.value && (
|
|
162
|
+
Vt(() => {
|
|
163
|
+
S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect());
|
|
163
164
|
});
|
|
164
|
-
const { isPrinting:
|
|
165
|
+
const { isPrinting: De, isImaging: Oe, generatePdf: Ee, generateImage: xe } = no({
|
|
165
166
|
elementId: `rings_${m.value}`,
|
|
166
167
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
167
168
|
options: e.value.userOptions.print
|
|
168
|
-
}),
|
|
169
|
+
}), bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = g(() => Ht(e.value.customPalette)), k = u({
|
|
169
170
|
showTable: e.value.table.show,
|
|
170
171
|
showTooltip: e.value.style.chart.tooltip.show
|
|
171
172
|
});
|
|
172
|
-
|
|
173
|
+
q(e, () => {
|
|
173
174
|
k.value = {
|
|
174
175
|
showTable: e.value.table.show,
|
|
175
176
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -178,80 +179,88 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
178
179
|
const s = u({
|
|
179
180
|
height: 360,
|
|
180
181
|
width: 360
|
|
181
|
-
}),
|
|
182
|
-
function
|
|
182
|
+
}), yt = g(() => Math.min(s.value.height, s.value.width)), mt = at, h = u([]);
|
|
183
|
+
function U(t) {
|
|
183
184
|
if (h.value.includes(t))
|
|
184
185
|
h.value = h.value.filter((l) => l !== t);
|
|
185
186
|
else {
|
|
186
|
-
if (h.value.length ===
|
|
187
|
+
if (h.value.length === P.value.length - 1) return;
|
|
187
188
|
h.value.push(t);
|
|
188
189
|
}
|
|
189
|
-
|
|
190
|
+
mt("selectLegend", b.value.map((l) => ({
|
|
190
191
|
name: l.name,
|
|
191
192
|
color: l.color,
|
|
192
193
|
value: l.value
|
|
193
194
|
})));
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
-
if (!
|
|
196
|
+
function Pe(t) {
|
|
197
|
+
if (!P.value.length)
|
|
197
198
|
return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
|
|
198
|
-
const l =
|
|
199
|
+
const l = P.value.find((o) => o.name === t);
|
|
199
200
|
return l || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
|
|
200
201
|
}
|
|
201
|
-
function mt(t) {
|
|
202
|
-
const l = Be(t);
|
|
203
|
-
l !== null && h.value.includes(l.uid) && z(l.uid);
|
|
204
|
-
}
|
|
205
202
|
function Ct(t) {
|
|
206
|
-
const l =
|
|
207
|
-
l !== null &&
|
|
203
|
+
const l = Pe(t);
|
|
204
|
+
l !== null && h.value.includes(l.uid) && U(l.uid);
|
|
205
|
+
}
|
|
206
|
+
function kt(t) {
|
|
207
|
+
const l = Pe(t);
|
|
208
|
+
l !== null && (h.value.includes(l.uid) || U(l.uid));
|
|
208
209
|
}
|
|
209
|
-
const
|
|
210
|
-
...
|
|
210
|
+
const wt = g(() => Math.max(
|
|
211
|
+
...P.value.filter((t) => !h.value.includes(t.uid)).map(({ value: t }) => t)
|
|
211
212
|
));
|
|
212
|
-
function
|
|
213
|
-
return t /
|
|
213
|
+
function Be(t) {
|
|
214
|
+
return t / wt.value;
|
|
214
215
|
}
|
|
215
|
-
const
|
|
216
|
-
const r =
|
|
216
|
+
const P = g(() => Te.value.map(({ values: t, name: l, color: o = null }, a) => {
|
|
217
|
+
const r = Xt(t).reduce((d, W) => d + W, 0);
|
|
217
218
|
return {
|
|
218
219
|
name: l,
|
|
219
|
-
color: o ||
|
|
220
|
+
color: o || Xe(o) || Ie.value[a] || N[a] || N[a % N.length],
|
|
220
221
|
value: r,
|
|
221
222
|
proportion: r / Te.value.map((d) => (d.values || []).reduce((W, Bt) => W + Bt, 0)).reduce((d, W) => d + W, 0),
|
|
222
|
-
uid:
|
|
223
|
+
uid: Ge(),
|
|
223
224
|
absoluteIndex: a
|
|
224
225
|
};
|
|
225
|
-
})), ne = g(() =>
|
|
226
|
-
|
|
227
|
-
shape: "circle",
|
|
228
|
-
opacity: h.value.includes(t.uid) ? 0.5 : 1,
|
|
229
|
-
segregate: () => z(t.uid),
|
|
230
|
-
isSegregated: h.value.includes(t.uid),
|
|
231
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Xe(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, R({
|
|
226
|
+
})), ne = g(() => P.value.map((t, l) => {
|
|
227
|
+
const o = Ye(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, V({
|
|
232
228
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
233
229
|
v: t.value,
|
|
234
230
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
235
231
|
r: e.value.style.chart.legend.roundingValue
|
|
236
|
-
}), { datapoint: t, index: l })
|
|
237
|
-
|
|
232
|
+
}), { datapoint: t, index: l }), a = isNaN(t.value / _.value) ? "-" : V({ v: t.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), r = Le({
|
|
233
|
+
showVal: e.value.style.chart.legend.showValue,
|
|
234
|
+
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
235
|
+
val: o,
|
|
236
|
+
percentage: h.value.includes(t.uid) ? "-%" : a
|
|
237
|
+
});
|
|
238
|
+
return {
|
|
239
|
+
...t,
|
|
240
|
+
shape: "circle",
|
|
241
|
+
opacity: h.value.includes(t.uid) ? 0.5 : 1,
|
|
242
|
+
segregate: () => U(t.uid),
|
|
243
|
+
isSegregated: h.value.includes(t.uid),
|
|
244
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${r}`
|
|
245
|
+
};
|
|
246
|
+
}).toSorted((t, l) => l.value - t.value)), At = g(() => ({
|
|
238
247
|
cy: "rings-div-legend",
|
|
239
248
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
240
249
|
color: e.value.style.chart.legend.color,
|
|
241
250
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
242
251
|
paddingBottom: 12,
|
|
243
252
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
244
|
-
})),
|
|
253
|
+
})), _ = g(() => P.value.filter((t) => !h.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, l) => t + l, 0)), b = g(() => P.value.filter((t) => !h.value.includes(t.uid)).map(({ name: t, value: l, color: o = null, uid: a, absoluteIndex: r }, d) => ({
|
|
245
254
|
absoluteIndex: r,
|
|
246
255
|
uid: a,
|
|
247
256
|
name: t,
|
|
248
|
-
color: o ||
|
|
257
|
+
color: o || Xe(o) || Ie.value[d] || N[d] || N[d % N.length],
|
|
249
258
|
value: l,
|
|
250
|
-
proportion:
|
|
251
|
-
percentage: l /
|
|
252
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
259
|
+
proportion: Be(l),
|
|
260
|
+
percentage: l / _.value * 100,
|
|
261
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Be(l)
|
|
253
262
|
})).toSorted((t, l) => l.value - t.value));
|
|
254
|
-
function
|
|
263
|
+
function $t() {
|
|
255
264
|
return b.value.map(
|
|
256
265
|
({ name: t, color: l, value: o, absoluteValues: a, percentage: r }) => ({
|
|
257
266
|
name: t,
|
|
@@ -262,30 +271,45 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
262
271
|
})
|
|
263
272
|
);
|
|
264
273
|
}
|
|
265
|
-
const p = g(() =>
|
|
266
|
-
function
|
|
274
|
+
const p = g(() => yt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
275
|
+
function Tt(t, l) {
|
|
267
276
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
268
277
|
}
|
|
269
|
-
function
|
|
270
|
-
|
|
278
|
+
function Ft(t, l) {
|
|
279
|
+
T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
280
|
+
}
|
|
281
|
+
function Le({
|
|
282
|
+
val: t,
|
|
283
|
+
percentage: l,
|
|
284
|
+
showVal: o,
|
|
285
|
+
showPercentage: a
|
|
286
|
+
}) {
|
|
287
|
+
const r = e.value.style.chart.layout.labels.dataLabels;
|
|
288
|
+
return to({
|
|
289
|
+
config: r,
|
|
290
|
+
val: t,
|
|
291
|
+
percentage: l,
|
|
292
|
+
showVal: o,
|
|
293
|
+
showPercentage: a
|
|
294
|
+
});
|
|
271
295
|
}
|
|
272
296
|
const re = u(null);
|
|
273
|
-
function
|
|
297
|
+
function _t(t, l) {
|
|
274
298
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), h.value.length === y.dataset.length) return;
|
|
275
299
|
re.value = {
|
|
276
300
|
datapoint: t,
|
|
277
301
|
seriesIndex: l,
|
|
278
302
|
series: b.value,
|
|
279
303
|
config: e.value
|
|
280
|
-
},
|
|
304
|
+
}, T.value = l;
|
|
281
305
|
const o = b.value[l], a = e.value.style.chart.tooltip.customFormat;
|
|
282
|
-
if (
|
|
306
|
+
if (Zt(a) && eo(() => a({
|
|
283
307
|
seriesIndex: l,
|
|
284
308
|
datapoint: t,
|
|
285
309
|
series: b.value,
|
|
286
310
|
config: e.value
|
|
287
311
|
})))
|
|
288
|
-
|
|
312
|
+
Q.value = a({
|
|
289
313
|
seriesIndex: l,
|
|
290
314
|
datapoint: t,
|
|
291
315
|
series: b.value,
|
|
@@ -293,30 +317,30 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
293
317
|
});
|
|
294
318
|
else {
|
|
295
319
|
let r = "";
|
|
296
|
-
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, r += `<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="${o.color}" />${
|
|
297
|
-
e.value.style.chart.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
})}</b></div
|
|
320
|
+
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, r += `<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="${o.color}" />${ft.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t.absoluteIndex})" />` : ""}</svg>`, r += `<b>${Le({
|
|
321
|
+
showVal: e.value.style.chart.tooltip.showValue,
|
|
322
|
+
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
323
|
+
val: `<span>${Ye(
|
|
324
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
325
|
+
o.value,
|
|
326
|
+
V({
|
|
327
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
328
|
+
v: o.value,
|
|
329
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
330
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
331
|
+
}),
|
|
332
|
+
{ datapoint: t, seriesIndex: l }
|
|
333
|
+
)}</span>`,
|
|
334
|
+
percentage: V({
|
|
335
|
+
v: o.value / _.value * 100,
|
|
336
|
+
s: "%",
|
|
337
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
338
|
+
})
|
|
339
|
+
})}</b></div>`, Q.value = r;
|
|
316
340
|
}
|
|
317
341
|
G.value = !0;
|
|
318
342
|
}
|
|
319
|
-
const
|
|
343
|
+
const D = g(() => {
|
|
320
344
|
const t = b.value.map((o) => ({
|
|
321
345
|
name: o.name,
|
|
322
346
|
color: o.color
|
|
@@ -325,15 +349,15 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
325
349
|
}), X = g(() => {
|
|
326
350
|
const t = [
|
|
327
351
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
328
|
-
|
|
352
|
+
V({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: _.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
329
353
|
"100%"
|
|
330
|
-
], l =
|
|
354
|
+
], l = D.value.head.map((r, d) => [
|
|
331
355
|
{
|
|
332
356
|
color: r.color,
|
|
333
357
|
name: r.name
|
|
334
358
|
},
|
|
335
|
-
|
|
336
|
-
isNaN(
|
|
359
|
+
V({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
360
|
+
isNaN(D.value.body[d] / _.value) ? "-" : (D.value.body[d] / _.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
337
361
|
]), o = {
|
|
338
362
|
th: {
|
|
339
363
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -360,29 +384,29 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
360
384
|
});
|
|
361
385
|
function se(t = null) {
|
|
362
386
|
zt(() => {
|
|
363
|
-
const l =
|
|
387
|
+
const l = D.value.head.map((r, d) => [[
|
|
364
388
|
r.name
|
|
365
|
-
], [
|
|
366
|
-
t ? t(a) :
|
|
389
|
+
], [D.value.body[d]], [isNaN(D.value.body[d] / _.value) ? "-" : D.value.body[d] / _.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = Kt(o);
|
|
390
|
+
t ? t(a) : Qt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
367
391
|
});
|
|
368
392
|
}
|
|
369
|
-
const
|
|
370
|
-
function
|
|
371
|
-
|
|
393
|
+
const B = u(!1);
|
|
394
|
+
function Ne(t) {
|
|
395
|
+
B.value = t, fe.value += 1;
|
|
372
396
|
}
|
|
373
|
-
function
|
|
397
|
+
function Re() {
|
|
374
398
|
k.value.showTable = !k.value.showTable;
|
|
375
399
|
}
|
|
376
|
-
function
|
|
400
|
+
function Ve() {
|
|
377
401
|
k.value.showTooltip = !k.value.showTooltip;
|
|
378
402
|
}
|
|
379
|
-
const
|
|
403
|
+
const Y = u(!1);
|
|
380
404
|
function ue() {
|
|
381
|
-
|
|
405
|
+
Y.value = !Y.value;
|
|
382
406
|
}
|
|
383
|
-
async function
|
|
384
|
-
if (!
|
|
385
|
-
const { width: l, height: o } =
|
|
407
|
+
async function St({ scale: t = 2 } = {}) {
|
|
408
|
+
if (!F.value) return;
|
|
409
|
+
const { width: l, height: o } = F.value.getBoundingClientRect(), a = l / o, { imageUri: r, base64: d } = await go({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
386
410
|
return {
|
|
387
411
|
imageUri: r,
|
|
388
412
|
base64: d,
|
|
@@ -392,18 +416,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
392
416
|
aspectRatio: a
|
|
393
417
|
};
|
|
394
418
|
}
|
|
395
|
-
const
|
|
419
|
+
const z = g(() => {
|
|
396
420
|
const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
|
|
397
421
|
return {
|
|
398
|
-
component: t ?
|
|
422
|
+
component: t ? dt : st,
|
|
399
423
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
400
424
|
props: t ? {
|
|
401
425
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
402
426
|
color: e.value.table.th.color,
|
|
403
427
|
headerColor: e.value.table.th.color,
|
|
404
428
|
headerBg: e.value.table.th.backgroundColor,
|
|
405
|
-
isFullscreen:
|
|
406
|
-
fullscreenParent:
|
|
429
|
+
isFullscreen: B.value,
|
|
430
|
+
fullscreenParent: F.value,
|
|
407
431
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
408
432
|
} : {
|
|
409
433
|
hideDetails: !0,
|
|
@@ -422,59 +446,59 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
422
446
|
}
|
|
423
447
|
};
|
|
424
448
|
});
|
|
425
|
-
|
|
449
|
+
q(() => k.value.showTable, (t) => {
|
|
426
450
|
e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
427
451
|
});
|
|
428
|
-
function
|
|
452
|
+
function Me() {
|
|
429
453
|
k.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
430
454
|
}
|
|
431
|
-
const
|
|
455
|
+
const Dt = g(() => ne.value.map((t) => ({
|
|
432
456
|
...t,
|
|
433
457
|
name: t.display
|
|
434
|
-
}))), Ot = g(() => e.value.style.chart.backgroundColor),
|
|
458
|
+
}))), Ot = g(() => e.value.style.chart.backgroundColor), Et = g(() => e.value.style.chart.legend), xt = g(() => e.value.style.chart.title), { exportSvg: It, getSvg: Pt } = uo({
|
|
435
459
|
svg: oe,
|
|
436
460
|
title: xt,
|
|
437
|
-
legend:
|
|
438
|
-
legendItems:
|
|
461
|
+
legend: Et,
|
|
462
|
+
legendItems: Dt,
|
|
439
463
|
backgroundColor: Ot
|
|
440
464
|
});
|
|
441
|
-
async function
|
|
465
|
+
async function Ue({ isCb: t }) {
|
|
442
466
|
if (t) {
|
|
443
|
-
const { blob: l, url: o, text: a, dataUrl: r } = await
|
|
467
|
+
const { blob: l, url: o, text: a, dataUrl: r } = await Pt();
|
|
444
468
|
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: r });
|
|
445
469
|
} else
|
|
446
|
-
|
|
470
|
+
It();
|
|
447
471
|
}
|
|
448
|
-
return
|
|
449
|
-
getData:
|
|
450
|
-
getImage:
|
|
451
|
-
generatePdf:
|
|
472
|
+
return lt({
|
|
473
|
+
getData: $t,
|
|
474
|
+
getImage: St,
|
|
475
|
+
generatePdf: Ee,
|
|
452
476
|
generateCsv: se,
|
|
453
|
-
generateImage:
|
|
454
|
-
generateSvg:
|
|
455
|
-
hideSeries:
|
|
456
|
-
showSeries:
|
|
457
|
-
toggleTable:
|
|
458
|
-
toggleTooltip:
|
|
477
|
+
generateImage: xe,
|
|
478
|
+
generateSvg: Ue,
|
|
479
|
+
hideSeries: kt,
|
|
480
|
+
showSeries: Ct,
|
|
481
|
+
toggleTable: Re,
|
|
482
|
+
toggleTooltip: Ve,
|
|
459
483
|
toggleAnnotator: ue,
|
|
460
|
-
toggleFullscreen:
|
|
484
|
+
toggleFullscreen: Ne
|
|
461
485
|
}), (t, l) => (i(), f("div", {
|
|
462
486
|
ref_key: "ringsChart",
|
|
463
|
-
ref:
|
|
464
|
-
class: j(`vue-data-ui-component vue-ui-rings ${
|
|
487
|
+
ref: F,
|
|
488
|
+
class: j(`vue-data-ui-component vue-ui-rings ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
465
489
|
style: L(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
466
490
|
id: `rings_${m.value}`,
|
|
467
491
|
onMouseleave: l[2] || (l[2] = (o) => {
|
|
468
|
-
|
|
492
|
+
T.value = null, G.value = !1, n(Fe)(!1);
|
|
469
493
|
}),
|
|
470
494
|
onMouseenter: l[3] || (l[3] = () => n(Fe)(!0))
|
|
471
495
|
}, [
|
|
472
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
496
|
+
e.value.userOptions.buttons.annotator ? (i(), E(n(it), {
|
|
473
497
|
key: 0,
|
|
474
498
|
svgRef: n(oe),
|
|
475
499
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
476
500
|
color: e.value.style.chart.color,
|
|
477
|
-
active:
|
|
501
|
+
active: Y.value,
|
|
478
502
|
onClose: ue
|
|
479
503
|
}, {
|
|
480
504
|
"annotator-action-close": c(() => [
|
|
@@ -497,7 +521,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
497
521
|
]),
|
|
498
522
|
_: 3
|
|
499
523
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
|
|
500
|
-
|
|
524
|
+
bt.value ? (i(), f("div", {
|
|
501
525
|
key: 1,
|
|
502
526
|
ref_key: "noTitle",
|
|
503
527
|
ref: Ce,
|
|
@@ -510,7 +534,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
510
534
|
ref: be,
|
|
511
535
|
style: "width:100%;background:transparent"
|
|
512
536
|
}, [
|
|
513
|
-
(i(),
|
|
537
|
+
(i(), E(po, {
|
|
514
538
|
key: `title_${ke.value}`,
|
|
515
539
|
config: {
|
|
516
540
|
title: {
|
|
@@ -526,15 +550,15 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
526
550
|
], 512)) : C("", !0),
|
|
527
551
|
w("div", {
|
|
528
552
|
id: `legend-top-${m.value}`
|
|
529
|
-
}, null, 8,
|
|
530
|
-
e.value.userOptions.show && pe.value && (n(_e) || n(te)) ? (i(),
|
|
553
|
+
}, null, 8, mo),
|
|
554
|
+
e.value.userOptions.show && pe.value && (n(_e) || n(te)) ? (i(), E(n(ct), {
|
|
531
555
|
ref_key: "userOptionsRef",
|
|
532
556
|
ref: ee,
|
|
533
557
|
key: `user_options_${fe.value}`,
|
|
534
558
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
535
559
|
color: e.value.style.chart.color,
|
|
536
|
-
isPrinting: n(
|
|
537
|
-
isImaging: n(
|
|
560
|
+
isPrinting: n(De),
|
|
561
|
+
isImaging: n(Oe),
|
|
538
562
|
uid: m.value,
|
|
539
563
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
540
564
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -544,22 +568,22 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
544
568
|
hasTable: e.value.userOptions.buttons.table,
|
|
545
569
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
546
570
|
isTooltip: k.value.showTooltip,
|
|
547
|
-
isFullscreen:
|
|
571
|
+
isFullscreen: B.value,
|
|
548
572
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
549
|
-
chartElement:
|
|
573
|
+
chartElement: F.value,
|
|
550
574
|
position: e.value.userOptions.position,
|
|
551
575
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
552
|
-
isAnnotation:
|
|
576
|
+
isAnnotation: Y.value,
|
|
553
577
|
callbacks: e.value.userOptions.callbacks,
|
|
554
578
|
printScale: e.value.userOptions.print.scale,
|
|
555
579
|
tableDialog: e.value.table.useDialog,
|
|
556
|
-
onToggleFullscreen:
|
|
557
|
-
onGeneratePdf: n(
|
|
580
|
+
onToggleFullscreen: Ne,
|
|
581
|
+
onGeneratePdf: n(Ee),
|
|
558
582
|
onGenerateCsv: se,
|
|
559
|
-
onGenerateImage: n(
|
|
560
|
-
onGenerateSvg:
|
|
561
|
-
onToggleTable:
|
|
562
|
-
onToggleTooltip:
|
|
583
|
+
onGenerateImage: n(xe),
|
|
584
|
+
onGenerateSvg: Ue,
|
|
585
|
+
onToggleTable: Re,
|
|
586
|
+
onToggleTooltip: Ve,
|
|
563
587
|
onToggleAnnotator: ue,
|
|
564
588
|
style: L({
|
|
565
589
|
visibility: n(_e) ? n(te) ? "visible" : "hidden" : "visible"
|
|
@@ -632,12 +656,12 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
632
656
|
(i(), f("svg", {
|
|
633
657
|
ref_key: "svgRef",
|
|
634
658
|
ref: oe,
|
|
635
|
-
xmlns: n(
|
|
636
|
-
class: j({ "vue-data-ui-fullscreen--on":
|
|
659
|
+
xmlns: n(Yt),
|
|
660
|
+
class: j({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value, resizing: Z.value || n(I) }),
|
|
637
661
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
638
662
|
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
639
663
|
}, [
|
|
640
|
-
|
|
664
|
+
J(n(vt)),
|
|
641
665
|
t.$slots["chart-background"] ? (i(), f("foreignObject", {
|
|
642
666
|
key: 0,
|
|
643
667
|
x: 0,
|
|
@@ -649,7 +673,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
649
673
|
}
|
|
650
674
|
}, [
|
|
651
675
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
652
|
-
], 8,
|
|
676
|
+
], 8, ko)) : C("", !0),
|
|
653
677
|
w("defs", null, [
|
|
654
678
|
(i(!0), f(ce, null, ve(b.value, (o, a) => (i(), f("radialGradient", {
|
|
655
679
|
cx: "50%",
|
|
@@ -661,84 +685,84 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
661
685
|
}, [
|
|
662
686
|
w("stop", {
|
|
663
687
|
offset: "0%",
|
|
664
|
-
"stop-color": n(qt)(n(
|
|
665
|
-
}, null, 8,
|
|
688
|
+
"stop-color": n(qt)(n(Jt)(o.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
689
|
+
}, null, 8, Ao),
|
|
666
690
|
w("stop", {
|
|
667
691
|
offset: "100%",
|
|
668
692
|
"stop-color": o.color
|
|
669
|
-
}, null, 8,
|
|
670
|
-
], 8,
|
|
693
|
+
}, null, 8, $o)
|
|
694
|
+
], 8, wo))), 256))
|
|
671
695
|
]),
|
|
672
|
-
t.$slots.pattern ? (i(), f("g",
|
|
696
|
+
t.$slots.pattern ? (i(), f("g", To, [
|
|
673
697
|
(i(!0), f(ce, null, ve(b.value, (o) => (i(), f("defs", null, [
|
|
674
|
-
v(t.$slots, "pattern",
|
|
698
|
+
v(t.$slots, "pattern", We({ ref_for: !0 }, { seriesIndex: o.absoluteIndex, patternId: `pattern_${m.value}_${o.absoluteIndex}` }), void 0, !0)
|
|
675
699
|
]))), 256))
|
|
676
700
|
])) : C("", !0),
|
|
677
701
|
(i(!0), f(ce, null, ve(b.value, (o, a) => (i(), f("g", null, [
|
|
678
702
|
w("circle", {
|
|
679
703
|
class: j({
|
|
680
|
-
"vue-ui-rings-item":
|
|
681
|
-
"vue-rings-item-onload": !
|
|
682
|
-
"vue-ui-rings-opacity":
|
|
704
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
705
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
706
|
+
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
683
707
|
}),
|
|
684
708
|
style: L(`animation-delay:${a * 100}ms`),
|
|
685
709
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
686
710
|
cx: s.value.width / 2,
|
|
687
711
|
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
688
|
-
r: n(
|
|
712
|
+
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
689
713
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
690
|
-
}, null, 14,
|
|
714
|
+
}, null, 14, Fo),
|
|
691
715
|
w("circle", {
|
|
692
716
|
class: j({
|
|
693
|
-
"vue-ui-rings-item":
|
|
694
|
-
"vue-rings-item-onload": !
|
|
717
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
718
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
695
719
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
696
|
-
"vue-ui-rings-blur":
|
|
720
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
697
721
|
}),
|
|
698
722
|
style: L(`animation-delay:${a * 100}ms`),
|
|
699
723
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
700
724
|
"stroke-width": o.strokeWidth < 0.5 ? 0.5 : o.strokeWidth,
|
|
701
725
|
cx: s.value.width / 2,
|
|
702
726
|
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
703
|
-
r: n(
|
|
727
|
+
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
704
728
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${m.value}_${a})` : o.color
|
|
705
|
-
}, null, 14,
|
|
729
|
+
}, null, 14, _o),
|
|
706
730
|
t.$slots.pattern ? (i(), f("circle", {
|
|
707
731
|
key: 0,
|
|
708
732
|
class: j({
|
|
709
|
-
"vue-ui-rings-item":
|
|
710
|
-
"vue-rings-item-onload": !
|
|
733
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
734
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
711
735
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
712
|
-
"vue-ui-rings-blur":
|
|
736
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
713
737
|
}),
|
|
714
738
|
style: L(`animation-delay:${a * 100}ms`),
|
|
715
739
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
716
740
|
"stroke-width": o.strokeWidth < 0.5 ? 0.5 : o.strokeWidth,
|
|
717
741
|
cx: s.value.width / 2,
|
|
718
742
|
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
719
|
-
r: n(
|
|
743
|
+
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
720
744
|
fill: `url(#pattern_${m.value}_${o.absoluteIndex})`
|
|
721
|
-
}, null, 14,
|
|
745
|
+
}, null, 14, So)) : C("", !0),
|
|
722
746
|
w("circle", {
|
|
723
747
|
stroke: "none",
|
|
724
748
|
cx: s.value.width / 2,
|
|
725
749
|
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
726
|
-
r: n(
|
|
750
|
+
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
727
751
|
fill: "transparent",
|
|
728
|
-
onMouseenter: (r) =>
|
|
729
|
-
onMouseleave: (r) =>
|
|
730
|
-
onClick: (r) =>
|
|
731
|
-
}, null, 40,
|
|
752
|
+
onMouseenter: (r) => _t(o, a),
|
|
753
|
+
onMouseleave: (r) => Ft(o, a),
|
|
754
|
+
onClick: (r) => Tt(o, a)
|
|
755
|
+
}, null, 40, Do)
|
|
732
756
|
]))), 256)),
|
|
733
757
|
v(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
734
|
-
], 14,
|
|
735
|
-
t.$slots.watermark ? (i(), f("div",
|
|
736
|
-
v(t.$slots, "watermark", A($({ isPrinting: n(
|
|
758
|
+
], 14, Co)),
|
|
759
|
+
t.$slots.watermark ? (i(), f("div", Oo, [
|
|
760
|
+
v(t.$slots, "watermark", A($({ isPrinting: n(De) || n(Oe) })), void 0, !0)
|
|
737
761
|
])) : C("", !0),
|
|
738
762
|
w("div", {
|
|
739
763
|
id: `legend-bottom-${m.value}`
|
|
740
|
-
}, null, 8,
|
|
741
|
-
$e.value ? (i(),
|
|
764
|
+
}, null, 8, Eo),
|
|
765
|
+
$e.value ? (i(), E(Mt, {
|
|
742
766
|
key: 5,
|
|
743
767
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
744
768
|
}, [
|
|
@@ -746,25 +770,25 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
746
770
|
ref_key: "chartLegend",
|
|
747
771
|
ref: ye
|
|
748
772
|
}, [
|
|
749
|
-
e.value.style.chart.legend.show ? (i(),
|
|
773
|
+
e.value.style.chart.legend.show ? (i(), E(fo, {
|
|
750
774
|
key: `legend_${Ae.value}`,
|
|
751
775
|
legendSet: ne.value,
|
|
752
|
-
config:
|
|
753
|
-
onClickMarker: l[0] || (l[0] = ({ legend: o }) =>
|
|
776
|
+
config: At.value,
|
|
777
|
+
onClickMarker: l[0] || (l[0] = ({ legend: o }) => U(o.uid))
|
|
754
778
|
}, ie({
|
|
755
779
|
item: c(({ legend: o, index: a }) => [
|
|
756
780
|
n(I) ? C("", !0) : (i(), f("div", {
|
|
757
781
|
key: 0,
|
|
758
|
-
onClick: (r) =>
|
|
782
|
+
onClick: (r) => U(o.uid),
|
|
759
783
|
style: L(`opacity:${h.value.includes(o.uid) ? 0.5 : 1}`)
|
|
760
|
-
}, de(o.display), 13,
|
|
784
|
+
}, de(o.display), 13, xo))
|
|
761
785
|
]),
|
|
762
786
|
_: 2
|
|
763
787
|
}, [
|
|
764
788
|
t.$slots.pattern ? {
|
|
765
789
|
name: "legend-pattern",
|
|
766
790
|
fn: c(({ legend: o, index: a }) => [
|
|
767
|
-
|
|
791
|
+
J(ho, {
|
|
768
792
|
shape: o.shape,
|
|
769
793
|
radius: 30,
|
|
770
794
|
stroke: "none",
|
|
@@ -788,7 +812,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
788
812
|
}, [
|
|
789
813
|
v(t.$slots, "source", {}, void 0, !0)
|
|
790
814
|
], 512)) : C("", !0),
|
|
791
|
-
|
|
815
|
+
J(n(nt), {
|
|
792
816
|
show: k.value.showTooltip && G.value && h.value.length < y.dataset.length,
|
|
793
817
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
794
818
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -799,9 +823,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
799
823
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
800
824
|
position: e.value.style.chart.tooltip.position,
|
|
801
825
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
802
|
-
parent:
|
|
803
|
-
content:
|
|
804
|
-
isFullscreen:
|
|
826
|
+
parent: F.value,
|
|
827
|
+
content: Q.value,
|
|
828
|
+
isFullscreen: B.value,
|
|
805
829
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
806
830
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
807
831
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -816,30 +840,30 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
816
840
|
]),
|
|
817
841
|
_: 3
|
|
818
842
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
819
|
-
pe.value && e.value.userOptions.buttons.table ? (i(),
|
|
843
|
+
pe.value && e.value.userOptions.buttons.table ? (i(), E(Ut(z.value.component), We({ key: 7 }, z.value.props, {
|
|
820
844
|
ref_key: "tableUnit",
|
|
821
845
|
ref: M,
|
|
822
|
-
onClose:
|
|
846
|
+
onClose: Me
|
|
823
847
|
}), ie({
|
|
824
848
|
content: c(() => [
|
|
825
|
-
(i(),
|
|
849
|
+
(i(), E(n(ut), {
|
|
826
850
|
key: `table_${we.value}`,
|
|
827
851
|
colNames: X.value.colNames,
|
|
828
852
|
head: X.value.head,
|
|
829
853
|
body: X.value.body,
|
|
830
854
|
config: X.value.config,
|
|
831
|
-
title: e.value.table.useDialog ? "" :
|
|
855
|
+
title: e.value.table.useDialog ? "" : z.value.title,
|
|
832
856
|
withCloseButton: !e.value.table.useDialog,
|
|
833
|
-
onClose:
|
|
857
|
+
onClose: Me
|
|
834
858
|
}, {
|
|
835
859
|
th: c(({ th: o }) => [
|
|
836
860
|
w("div", {
|
|
837
861
|
innerHTML: o,
|
|
838
862
|
style: { display: "flex", "align-items": "center" }
|
|
839
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, Io)
|
|
840
864
|
]),
|
|
841
865
|
td: c(({ td: o }) => [
|
|
842
|
-
|
|
866
|
+
je(de(o.name || o), 1)
|
|
843
867
|
]),
|
|
844
868
|
_: 1
|
|
845
869
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -849,7 +873,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
849
873
|
e.value.table.useDialog ? {
|
|
850
874
|
name: "title",
|
|
851
875
|
fn: c(() => [
|
|
852
|
-
|
|
876
|
+
je(de(z.value.title), 1)
|
|
853
877
|
]),
|
|
854
878
|
key: "0"
|
|
855
879
|
} : void 0,
|
|
@@ -861,24 +885,24 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
861
885
|
class: "vue-ui-user-options-button",
|
|
862
886
|
onClick: l[1] || (l[1] = (o) => se(e.value.userOptions.callbacks.csv))
|
|
863
887
|
}, [
|
|
864
|
-
|
|
888
|
+
J(n(rt), {
|
|
865
889
|
name: "excel",
|
|
866
|
-
stroke:
|
|
890
|
+
stroke: z.value.props.color
|
|
867
891
|
}, null, 8, ["stroke"])
|
|
868
892
|
])
|
|
869
893
|
]),
|
|
870
894
|
key: "1"
|
|
871
895
|
} : void 0
|
|
872
896
|
]), 1040)) : C("", !0),
|
|
873
|
-
n(I) ? (i(),
|
|
874
|
-
], 46,
|
|
897
|
+
n(I) ? (i(), E(so, { key: 8 })) : C("", !0)
|
|
898
|
+
], 46, yo));
|
|
875
899
|
}
|
|
876
|
-
},
|
|
900
|
+
}, Bo = /* @__PURE__ */ bo(Po, [["__scopeId", "data-v-0ab006de"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
877
901
|
__proto__: null,
|
|
878
|
-
default:
|
|
902
|
+
default: Bo
|
|
879
903
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
880
904
|
export {
|
|
881
|
-
|
|
905
|
+
Qo as a,
|
|
882
906
|
Zo as b,
|
|
883
|
-
|
|
907
|
+
Bo as v
|
|
884
908
|
};
|