vue-data-ui 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,944 @@
|
|
|
1
|
+
import { defineAsyncComponent as S, computed as d, ref as u, toRefs as zt, watch as U, shallowRef as Ue, onMounted as Lt, onBeforeUnmount as Nt, createElementBlock as v, openBlock as s, unref as r, normalizeStyle as E, normalizeClass as q, createBlock as _, createCommentVNode as p, createElementVNode as I, createVNode as ce, withCtx as i, renderSlot as c, normalizeProps as y, guardReactiveProps as C, createSlots as Ge, Fragment as G, renderList as Y, toDisplayString as R, Teleport as Vt, resolveDynamicComponent as Ut, mergeProps as Gt, createTextVNode as Ye, nextTick as Xe } from "vue";
|
|
2
|
+
import { c as Yt, t as Xt, i as jt, p as je, j as Ht, o as He, g as de, l as Wt, d as z, X as qt, a as ve, x as We, u as Jt, q as Kt, R as Qt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Zt, u as eo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as to, a as ge } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as oo, B as lo } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ao } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as no } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as ro } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as so } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as io } from "./useAutoSizeLabelsInsideViewbox-DOALwU4q.js";
|
|
12
|
+
import co from "./img-DUzJeMlr.js";
|
|
13
|
+
import vo from "./Title-DfFUb9hd.js";
|
|
14
|
+
import go from "./Legend-Web3GjlR.js";
|
|
15
|
+
import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
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
|
+
default: {},
|
|
18
|
+
dark: qe,
|
|
19
|
+
celebration: Je,
|
|
20
|
+
celebrationNight: Ke,
|
|
21
|
+
hack: Qe,
|
|
22
|
+
zen: Ze,
|
|
23
|
+
concrete: et
|
|
24
|
+
}, Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: Je,
|
|
27
|
+
celebrationNight: Ke,
|
|
28
|
+
concrete: et,
|
|
29
|
+
dark: qe,
|
|
30
|
+
default: tt,
|
|
31
|
+
hack: Qe,
|
|
32
|
+
zen: Ze
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), fo = ["id"], po = ["id"], bo = ["xmlns", "viewBox"], mo = ["width", "height"], yo = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Co = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ko = ["id"], wo = ["stdDeviation"], Ao = ["filter"], $o = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], To = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], xo = { key: 2 }, Fo = ["onMouseenter", "onMouseleave", "onClick"], Oo = ["x", "y", "font-size", "fill", "font-weight"], Do = {
|
|
34
|
+
key: 4,
|
|
35
|
+
class: "vue-data-ui-watermark"
|
|
36
|
+
}, So = ["id"], _o = ["onClick"], Io = ["innerHTML"], Bo = {
|
|
37
|
+
__name: "vue-ui-onion",
|
|
38
|
+
props: {
|
|
39
|
+
config: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default() {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dataset: {
|
|
46
|
+
type: Array,
|
|
47
|
+
default() {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["selectLegend"],
|
|
53
|
+
setup(ot, { expose: lt, emit: at }) {
|
|
54
|
+
const nt = S(() => import("./Tooltip-WD0Ros6G.js")), rt = S(() => import("./BaseIcon-CofSxalQ.js")), st = S(() => import("./vue-ui-accordion-DSdZUn2C.js")), ut = S(() => import("./DataTable-CHaOCmsE.js")), it = S(() => import("./UserOptions-B3I-s3Lw.js")), ct = S(() => import("./PenAndPaper-HCZQTkqi.js")), dt = S(() => import("./PackageVersion-Bq_mtsqr.js")), vt = S(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_onion: gt } = to(), { isThemeValid: ht, warnInvalidTheme: ft } = ro(), k = ot, he = d(() => !!k.dataset && k.dataset.length), w = u(Yt()), 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), Ce = u(0), ke = u(0), we = u(0), x = u(!1), Ae = u(!1), L = u(null), e = u(ee()), { loading: A, FINAL_DATASET: $e, manualLoading: Q } = oo({
|
|
55
|
+
...zt(k),
|
|
56
|
+
FINAL_CONFIG: e,
|
|
57
|
+
prepareConfig: ee,
|
|
58
|
+
callback: () => {
|
|
59
|
+
Promise.resolve().then(async () => {
|
|
60
|
+
await Xe(), Be();
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
skeletonDataset: [
|
|
64
|
+
{ name: "_", percentage: 50, value: 1, color: "#DBDBDB" },
|
|
65
|
+
{ name: "_", percentage: 50, value: 1, color: "#C4C4C4" },
|
|
66
|
+
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
67
|
+
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
68
|
+
],
|
|
69
|
+
skeletonConfig: Xt({
|
|
70
|
+
defaultConfig: e.value,
|
|
71
|
+
userConfig: {
|
|
72
|
+
userOptions: { show: !1 },
|
|
73
|
+
table: { show: !1 },
|
|
74
|
+
style: {
|
|
75
|
+
chart: {
|
|
76
|
+
backgroundColor: "#99999930",
|
|
77
|
+
layout: {
|
|
78
|
+
gutter: {
|
|
79
|
+
color: "#99999950"
|
|
80
|
+
},
|
|
81
|
+
labels: { show: !1 }
|
|
82
|
+
},
|
|
83
|
+
legend: {
|
|
84
|
+
backgroundColor: "transparent"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
}), { userOptionsVisible: Z, setUserOptionsVisibility: Te, keepUserOptionState: xe } = so({ config: e.value }), { svgRef: X } = uo({ config: e.value.style.chart.title });
|
|
91
|
+
function ee() {
|
|
92
|
+
const t = ge({
|
|
93
|
+
userConfig: k.config,
|
|
94
|
+
defaultConfig: gt
|
|
95
|
+
}), l = t.theme;
|
|
96
|
+
if (!l) return t;
|
|
97
|
+
if (!ht.value(t))
|
|
98
|
+
return ft(t), t;
|
|
99
|
+
const o = ge({
|
|
100
|
+
userConfig: tt[l] || k.config,
|
|
101
|
+
defaultConfig: t
|
|
102
|
+
}), a = ge({
|
|
103
|
+
userConfig: k.config,
|
|
104
|
+
defaultConfig: o
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
...a,
|
|
108
|
+
customPalette: a.customPalette.length ? a.customPalette : jt[l] || je
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
U(() => k.config, (t) => {
|
|
112
|
+
A.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Ie(), Ce.value += 1, ke.value += 1, we.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
113
|
+
}, { deep: !0 });
|
|
114
|
+
const { isPrinting: Fe, isImaging: Oe, generatePdf: De, generateImage: Se } = ao({
|
|
115
|
+
elementId: `vue-ui-onion_${w.value}`,
|
|
116
|
+
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
117
|
+
options: e.value.userOptions.print
|
|
118
|
+
}), bt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), mt = d(() => Ht(e.value.customPalette)), m = u({
|
|
119
|
+
showTable: e.value.table.show,
|
|
120
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
121
|
+
});
|
|
122
|
+
U(e, () => {
|
|
123
|
+
m.value = {
|
|
124
|
+
showTable: e.value.table.show,
|
|
125
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
126
|
+
};
|
|
127
|
+
}, { immediate: !0 });
|
|
128
|
+
const n = u({
|
|
129
|
+
height: 512,
|
|
130
|
+
width: 512,
|
|
131
|
+
padding: {
|
|
132
|
+
top: 64,
|
|
133
|
+
left: 64,
|
|
134
|
+
right: 64,
|
|
135
|
+
bottom: 64
|
|
136
|
+
},
|
|
137
|
+
minRadius: 64
|
|
138
|
+
}), O = Ue(null), M = Ue(null);
|
|
139
|
+
Lt(() => {
|
|
140
|
+
Ae.value = !0, Ie();
|
|
141
|
+
});
|
|
142
|
+
const yt = d({
|
|
143
|
+
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
144
|
+
set: (t) => t
|
|
145
|
+
}), { autoSizeLabels: _e } = io({
|
|
146
|
+
svgRef: X,
|
|
147
|
+
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
148
|
+
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
149
|
+
sizeRef: yt,
|
|
150
|
+
labelClass: ".vue-ui-onion-label"
|
|
151
|
+
}), Ct = d(() => e.value.debug);
|
|
152
|
+
let te = null;
|
|
153
|
+
function Ie() {
|
|
154
|
+
if (He(k.dataset) && (de({
|
|
155
|
+
componentName: "VueUiOnion",
|
|
156
|
+
type: "dataset",
|
|
157
|
+
debug: Ct.value
|
|
158
|
+
}), Q.value = !0), He(k.dataset) || (Q.value = e.value.loading), e.value.responsive) {
|
|
159
|
+
const l = Zt(() => {
|
|
160
|
+
te && clearTimeout(te), x.value = !0;
|
|
161
|
+
let { width: o, height: a } = eo({
|
|
162
|
+
chart: T.value,
|
|
163
|
+
title: e.value.style.chart.title.text ? pe.value : null,
|
|
164
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
165
|
+
source: me.value,
|
|
166
|
+
noTitle: ye.value
|
|
167
|
+
});
|
|
168
|
+
a -= 12, requestAnimationFrame(async () => {
|
|
169
|
+
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
|
+
x.value = !1, _e();
|
|
171
|
+
}, 0);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(l), M.value = T.value.parentNode, O.value.observe(M.value);
|
|
175
|
+
}
|
|
176
|
+
requestAnimationFrame(_e);
|
|
177
|
+
}
|
|
178
|
+
Nt(() => {
|
|
179
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
|
|
180
|
+
});
|
|
181
|
+
const h = d(() => ({
|
|
182
|
+
top: n.value.padding.top,
|
|
183
|
+
left: n.value.padding.left,
|
|
184
|
+
right: n.value.width - n.value.padding.right,
|
|
185
|
+
bottom: n.value.height - n.value.padding.bottom,
|
|
186
|
+
centerX: n.value.width / 2,
|
|
187
|
+
centerY: n.value.height / 2,
|
|
188
|
+
width: n.value.width - n.value.padding.right - n.value.padding.left,
|
|
189
|
+
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
190
|
+
minRadius: n.value.minRadius,
|
|
191
|
+
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
192
|
+
})), f = d(() => ($e.value.forEach((t, l) => {
|
|
193
|
+
[null, void 0].includes(t.name) && de({
|
|
194
|
+
componentName: "VueUiOnion",
|
|
195
|
+
type: "datasetSerieAttribute",
|
|
196
|
+
property: "name",
|
|
197
|
+
index: l
|
|
198
|
+
}), [void 0].includes(t.percentage) && de({
|
|
199
|
+
componentName: "VueUiOnion",
|
|
200
|
+
type: "datasetSerieAttribute",
|
|
201
|
+
property: "percentage",
|
|
202
|
+
index: l
|
|
203
|
+
});
|
|
204
|
+
}), $e.value.map((t, l) => {
|
|
205
|
+
const o = `onion_serie_${l}_${w.value}`;
|
|
206
|
+
return {
|
|
207
|
+
...t,
|
|
208
|
+
percentage: t.percentage || 0,
|
|
209
|
+
targetPercentage: t.percentage || 0,
|
|
210
|
+
color: Wt(t.color) || mt.value[l] || je[l],
|
|
211
|
+
id: o,
|
|
212
|
+
shape: "circle",
|
|
213
|
+
opacity: b.value.includes(o) ? 0.5 : 1,
|
|
214
|
+
absoluteIndex: l,
|
|
215
|
+
segregate: () => j(o),
|
|
216
|
+
isSegregated: b.value.includes(o)
|
|
217
|
+
};
|
|
218
|
+
}))), oe = d(() => f.value.map((t, l) => ({
|
|
219
|
+
...t,
|
|
220
|
+
display: `${t.name ? t.name + ": " : ""}${z({
|
|
221
|
+
v: t.percentage ?? 0,
|
|
222
|
+
s: "%",
|
|
223
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
224
|
+
})}`
|
|
225
|
+
}))), N = u(f.value), kt = d(() => e.value.useStartAnimation), wt = u(null), At = d(() => Math.max(...f.value.map((t) => t.percentage))), le = u(!1);
|
|
226
|
+
U(() => f.value, Be, { immediate: !0, deep: !0 }), U(() => k.dataset, (t) => {
|
|
227
|
+
Array.isArray(t) && t.length > 0 && (Q.value = !1);
|
|
228
|
+
}, { deep: !0 });
|
|
229
|
+
function Be() {
|
|
230
|
+
if (kt.value && !le.value && !A.value) {
|
|
231
|
+
let l = function() {
|
|
232
|
+
t >= At.value ? (cancelAnimationFrame(wt.value), N.value = f.value, le.value = !0) : (N.value = f.value.map((o) => ({
|
|
233
|
+
...o,
|
|
234
|
+
percentage: t < o.targetPercentage ? t : o.targetPercentage
|
|
235
|
+
})), t += 1, requestAnimationFrame(l), le.value = !0);
|
|
236
|
+
};
|
|
237
|
+
N.value = f.value.map((o) => ({
|
|
238
|
+
...o,
|
|
239
|
+
percentage: 0
|
|
240
|
+
}));
|
|
241
|
+
let t = 0;
|
|
242
|
+
l();
|
|
243
|
+
} else
|
|
244
|
+
N.value = f.value;
|
|
245
|
+
}
|
|
246
|
+
const $t = d(() => ({
|
|
247
|
+
cy: "onion-div-legend",
|
|
248
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
|
+
color: e.value.style.chart.legend.color,
|
|
250
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
251
|
+
paddingBottom: 12,
|
|
252
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
|
+
})), Tt = d(() => f.value.filter((t) => !b.value.includes(t.id)).length), B = d(() => {
|
|
254
|
+
const t = Math.min(h.value.width, h.value.height) / 2 / f.value.length;
|
|
255
|
+
return {
|
|
256
|
+
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
257
|
+
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
258
|
+
};
|
|
259
|
+
}), F = d(() => N.value.filter((t) => !b.value.includes(t.id)).map((t, l) => {
|
|
260
|
+
const o = (h.value.maxRadius - B.value.track) / Tt.value / 2 * (1 + l), a = h.value.centerY - o;
|
|
261
|
+
return {
|
|
262
|
+
percentage: t.percentage || 0,
|
|
263
|
+
...t,
|
|
264
|
+
labelY: a,
|
|
265
|
+
radius: o,
|
|
266
|
+
path: xt(o, t.percentage || 0)
|
|
267
|
+
};
|
|
268
|
+
}));
|
|
269
|
+
function xt(t, l) {
|
|
270
|
+
const o = 2 * Math.PI * t, a = o * 0.75, g = `${a} ${o}`, $ = a * (1 - l / 100);
|
|
271
|
+
return {
|
|
272
|
+
bgDashArray: `${a} ${o}`,
|
|
273
|
+
bgDashOffset: 0,
|
|
274
|
+
dashArray: g,
|
|
275
|
+
dashOffset: $,
|
|
276
|
+
fullOffset: 0,
|
|
277
|
+
active: `
|
|
278
|
+
M ${h.value.centerX},${h.value.centerY - t}
|
|
279
|
+
A ${t},${t} 0 1 1
|
|
280
|
+
${h.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${h.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
281
|
+
`.trim()
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
const Ft = at;
|
|
285
|
+
function j(t) {
|
|
286
|
+
if (b.value.includes(t))
|
|
287
|
+
b.value = b.value.filter((l) => l !== t);
|
|
288
|
+
else {
|
|
289
|
+
if (b.value.length === f.value.length - 1) return;
|
|
290
|
+
b.value.push(t);
|
|
291
|
+
}
|
|
292
|
+
Ft("selectLegend", F.value);
|
|
293
|
+
}
|
|
294
|
+
function Pe(t) {
|
|
295
|
+
if (!f.value.length)
|
|
296
|
+
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
297
|
+
const l = f.value.find((o) => o.name === t);
|
|
298
|
+
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
299
|
+
}
|
|
300
|
+
function Ot(t) {
|
|
301
|
+
const l = Pe(t);
|
|
302
|
+
l !== null && b.value.includes(l.id) && j(l.id);
|
|
303
|
+
}
|
|
304
|
+
function Dt(t) {
|
|
305
|
+
const l = Pe(t);
|
|
306
|
+
l !== null && (b.value.includes(l.id) || j(l.id));
|
|
307
|
+
}
|
|
308
|
+
function St() {
|
|
309
|
+
return F.value;
|
|
310
|
+
}
|
|
311
|
+
const ae = d(() => {
|
|
312
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = F.value.map((o) => [
|
|
313
|
+
o.name,
|
|
314
|
+
o.percentage,
|
|
315
|
+
o.value
|
|
316
|
+
]);
|
|
317
|
+
return { head: t, body: l };
|
|
318
|
+
}), H = d(() => {
|
|
319
|
+
const t = ae.value.head, l = F.value.map((a) => [
|
|
320
|
+
`<span style="color:${a.color}">⬤</span> ${a.name}`,
|
|
321
|
+
`${Number(a.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
322
|
+
`${a.prefix || ""}${[null, void 0, NaN, "NaN"].includes(a.value) ? "-" : a.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${a.suffix || ""}`
|
|
323
|
+
]), o = {
|
|
324
|
+
th: {
|
|
325
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
326
|
+
color: e.value.table.th.color,
|
|
327
|
+
outline: e.value.table.th.outline
|
|
328
|
+
},
|
|
329
|
+
td: {
|
|
330
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
331
|
+
color: e.value.table.td.color,
|
|
332
|
+
outline: e.value.table.td.outline
|
|
333
|
+
},
|
|
334
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
335
|
+
};
|
|
336
|
+
return { head: t, body: l, config: o, colNames: t };
|
|
337
|
+
});
|
|
338
|
+
function ne(t = null) {
|
|
339
|
+
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, g = l.concat([o]).concat(a), $ = Jt(g);
|
|
341
|
+
t ? t($) : Kt({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
const D = u(void 0), P = u(!1);
|
|
345
|
+
function Ee(t) {
|
|
346
|
+
P.value = t, fe.value += 1;
|
|
347
|
+
}
|
|
348
|
+
function Me({ datapoint: t }) {
|
|
349
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
350
|
+
}
|
|
351
|
+
function Re({ datapoint: t }) {
|
|
352
|
+
D.value = void 0, J.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
353
|
+
}
|
|
354
|
+
const re = u(null);
|
|
355
|
+
function ze({ datapoint: t, seriesIndex: l, show: o = !0 }) {
|
|
356
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
357
|
+
const a = t.absoluteIndex;
|
|
358
|
+
D.value = l, re.value = {
|
|
359
|
+
datapoint: t,
|
|
360
|
+
seriesIndex: a,
|
|
361
|
+
series: f.value,
|
|
362
|
+
config: e.value
|
|
363
|
+
}, J.value = o;
|
|
364
|
+
let g = "";
|
|
365
|
+
const $ = e.value.style.chart.tooltip.customFormat;
|
|
366
|
+
if (We($) && Qt(() => $({
|
|
367
|
+
seriesIndex: a,
|
|
368
|
+
datapoint: t,
|
|
369
|
+
series: f.value,
|
|
370
|
+
config: e.value
|
|
371
|
+
})))
|
|
372
|
+
K.value = $({
|
|
373
|
+
seriesIndex: a,
|
|
374
|
+
datapoint: t,
|
|
375
|
+
series: f.value,
|
|
376
|
+
config: e.value
|
|
377
|
+
});
|
|
378
|
+
else {
|
|
379
|
+
const ue = e.value.style.chart.tooltip.showPercentage, ie = e.value.style.chart.tooltip.showValue;
|
|
380
|
+
g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${ue ? z({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${ue && ie ? "(" : ""}${ie ? ve(
|
|
381
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
382
|
+
t.value,
|
|
383
|
+
z({
|
|
384
|
+
p: t.prefix || "",
|
|
385
|
+
v: t.value,
|
|
386
|
+
s: t.suffix || "",
|
|
387
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
388
|
+
}),
|
|
389
|
+
{ datapoint: t, seriesIndex: l }
|
|
390
|
+
) : ""}${ue && ie ? ")" : ""}</div>`, K.value = `<div>${g}</div>`;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
function Le() {
|
|
394
|
+
m.value.showTable = !m.value.showTable;
|
|
395
|
+
}
|
|
396
|
+
function Ne() {
|
|
397
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
398
|
+
}
|
|
399
|
+
const W = u(!1);
|
|
400
|
+
function se() {
|
|
401
|
+
W.value = !W.value;
|
|
402
|
+
}
|
|
403
|
+
async function _t({ scale: t = 2 } = {}) {
|
|
404
|
+
if (!T.value) return;
|
|
405
|
+
const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: g, base64: $ } = await co({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
406
|
+
return {
|
|
407
|
+
imageUri: g,
|
|
408
|
+
base64: $,
|
|
409
|
+
title: e.value.style.chart.title.text,
|
|
410
|
+
width: l,
|
|
411
|
+
height: o,
|
|
412
|
+
aspectRatio: a
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
const V = d(() => {
|
|
416
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = m.value.showTable;
|
|
417
|
+
return {
|
|
418
|
+
component: t ? vt : st,
|
|
419
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
420
|
+
props: t ? {
|
|
421
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
422
|
+
color: e.value.table.th.color,
|
|
423
|
+
headerColor: e.value.table.th.color,
|
|
424
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
425
|
+
isFullscreen: P.value,
|
|
426
|
+
fullscreenParent: T.value,
|
|
427
|
+
forcedWidth: Math.min(600, window.innerWidth * 0.8)
|
|
428
|
+
} : {
|
|
429
|
+
hideDetails: !0,
|
|
430
|
+
config: {
|
|
431
|
+
open: l,
|
|
432
|
+
maxHeight: 1e4,
|
|
433
|
+
body: {
|
|
434
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
435
|
+
color: e.value.style.chart.color
|
|
436
|
+
},
|
|
437
|
+
head: {
|
|
438
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
439
|
+
color: e.value.style.chart.color
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
});
|
|
445
|
+
U(() => m.value.showTable, (t) => {
|
|
446
|
+
e.value.table.show || (t && e.value.table.useDialog && L.value ? L.value.open() : "close" in L.value && L.value.close());
|
|
447
|
+
});
|
|
448
|
+
const It = d(() => oe.value.map((t) => ({
|
|
449
|
+
...t,
|
|
450
|
+
name: t.display
|
|
451
|
+
}))), Bt = d(() => e.value.style.chart.backgroundColor), Pt = d(() => e.value.style.chart.legend), Et = d(() => e.value.style.chart.title), { exportSvg: Mt, getSvg: Rt } = no({
|
|
452
|
+
svg: X,
|
|
453
|
+
title: Et,
|
|
454
|
+
legend: Pt,
|
|
455
|
+
legendItems: It,
|
|
456
|
+
backgroundColor: Bt
|
|
457
|
+
});
|
|
458
|
+
async function Ve({ isCb: t }) {
|
|
459
|
+
if (t) {
|
|
460
|
+
const { blob: l, url: o, text: a, dataUrl: g } = await Rt();
|
|
461
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: g });
|
|
462
|
+
} else
|
|
463
|
+
Mt();
|
|
464
|
+
}
|
|
465
|
+
return lt({
|
|
466
|
+
getData: St,
|
|
467
|
+
getImage: _t,
|
|
468
|
+
generatePdf: De,
|
|
469
|
+
generateCsv: ne,
|
|
470
|
+
generateImage: Se,
|
|
471
|
+
generateSvg: Ve,
|
|
472
|
+
hideSeries: Dt,
|
|
473
|
+
showSeries: Ot,
|
|
474
|
+
toggleTable: Le,
|
|
475
|
+
toggleTooltip: Ne,
|
|
476
|
+
toggleAnnotator: se,
|
|
477
|
+
toggleFullscreen: Ee
|
|
478
|
+
}), (t, l) => (s(), v("div", {
|
|
479
|
+
class: q(`vue-data-ui-component vue-ui-onion ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
480
|
+
ref_key: "onionChart",
|
|
481
|
+
ref: T,
|
|
482
|
+
id: `vue-ui-onion_${w.value}`,
|
|
483
|
+
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] = () => r(Te)(!0)),
|
|
485
|
+
onMouseleave: l[5] || (l[5] = () => r(Te)(!1))
|
|
486
|
+
}, [
|
|
487
|
+
e.value.userOptions.buttons.annotator ? (s(), _(r(ct), {
|
|
488
|
+
key: 0,
|
|
489
|
+
svgRef: r(X),
|
|
490
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
|
+
color: e.value.style.chart.color,
|
|
492
|
+
active: W.value,
|
|
493
|
+
onClose: se
|
|
494
|
+
}, {
|
|
495
|
+
"annotator-action-close": i(() => [
|
|
496
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
497
|
+
]),
|
|
498
|
+
"annotator-action-color": i(({ color: o }) => [
|
|
499
|
+
c(t.$slots, "annotator-action-color", y(C({ color: o })), void 0, !0)
|
|
500
|
+
]),
|
|
501
|
+
"annotator-action-draw": i(({ mode: o }) => [
|
|
502
|
+
c(t.$slots, "annotator-action-draw", y(C({ mode: o })), void 0, !0)
|
|
503
|
+
]),
|
|
504
|
+
"annotator-action-undo": i(({ disabled: o }) => [
|
|
505
|
+
c(t.$slots, "annotator-action-undo", y(C({ disabled: o })), void 0, !0)
|
|
506
|
+
]),
|
|
507
|
+
"annotator-action-redo": i(({ disabled: o }) => [
|
|
508
|
+
c(t.$slots, "annotator-action-redo", y(C({ disabled: o })), void 0, !0)
|
|
509
|
+
]),
|
|
510
|
+
"annotator-action-delete": i(({ disabled: o }) => [
|
|
511
|
+
c(t.$slots, "annotator-action-delete", y(C({ disabled: o })), void 0, !0)
|
|
512
|
+
]),
|
|
513
|
+
_: 3
|
|
514
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
515
|
+
bt.value ? (s(), v("div", {
|
|
516
|
+
key: 1,
|
|
517
|
+
ref_key: "noTitle",
|
|
518
|
+
ref: ye,
|
|
519
|
+
class: "vue-data-ui-no-title-space",
|
|
520
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
521
|
+
}, null, 512)) : p("", !0),
|
|
522
|
+
e.value.style.chart.title.text ? (s(), v("div", {
|
|
523
|
+
key: 2,
|
|
524
|
+
ref_key: "chartTitle",
|
|
525
|
+
ref: pe,
|
|
526
|
+
style: "width:100%;background:transparent"
|
|
527
|
+
}, [
|
|
528
|
+
(s(), _(vo, {
|
|
529
|
+
key: `title_${Ce.value}`,
|
|
530
|
+
config: {
|
|
531
|
+
title: {
|
|
532
|
+
cy: "onion-div-title",
|
|
533
|
+
...e.value.style.chart.title
|
|
534
|
+
},
|
|
535
|
+
subtitle: {
|
|
536
|
+
cy: "onion-div-subtitle",
|
|
537
|
+
...e.value.style.chart.title.subtitle
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}, null, 8, ["config"]))
|
|
541
|
+
], 512)) : p("", !0),
|
|
542
|
+
I("div", {
|
|
543
|
+
id: `legend-top-${w.value}`
|
|
544
|
+
}, null, 8, po),
|
|
545
|
+
e.value.userOptions.show && he.value && (r(xe) || r(Z)) ? (s(), _(r(it), {
|
|
546
|
+
ref_key: "details",
|
|
547
|
+
ref: pt,
|
|
548
|
+
key: `user_options${fe.value}`,
|
|
549
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
550
|
+
color: e.value.style.chart.color,
|
|
551
|
+
isImaging: r(Oe),
|
|
552
|
+
isPrinting: r(Fe),
|
|
553
|
+
uid: w.value,
|
|
554
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
555
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
556
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
557
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
558
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
559
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
560
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
561
|
+
isFullscreen: P.value,
|
|
562
|
+
isTooltip: m.value.showTooltip,
|
|
563
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
564
|
+
chartElement: T.value,
|
|
565
|
+
position: e.value.userOptions.position,
|
|
566
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
|
+
isAnnotation: W.value,
|
|
568
|
+
callbacks: e.value.userOptions.callbacks,
|
|
569
|
+
printScale: e.value.userOptions.print.scale,
|
|
570
|
+
tableDialog: e.value.table.useDialog,
|
|
571
|
+
onToggleFullscreen: Ee,
|
|
572
|
+
onGeneratePdf: r(De),
|
|
573
|
+
onGenerateCsv: ne,
|
|
574
|
+
onGenerateImage: r(Se),
|
|
575
|
+
onGenerateSvg: Ve,
|
|
576
|
+
onToggleTable: Le,
|
|
577
|
+
onToggleTooltip: Ne,
|
|
578
|
+
onToggleAnnotator: se,
|
|
579
|
+
style: E({
|
|
580
|
+
visibility: r(xe) ? r(Z) ? "visible" : "hidden" : "visible"
|
|
581
|
+
})
|
|
582
|
+
}, Ge({ _: 2 }, [
|
|
583
|
+
t.$slots.menuIcon ? {
|
|
584
|
+
name: "menuIcon",
|
|
585
|
+
fn: i(({ isOpen: o, color: a }) => [
|
|
586
|
+
c(t.$slots, "menuIcon", y(C({ isOpen: o, color: a })), void 0, !0)
|
|
587
|
+
]),
|
|
588
|
+
key: "0"
|
|
589
|
+
} : void 0,
|
|
590
|
+
t.$slots.optionTooltip ? {
|
|
591
|
+
name: "optionTooltip",
|
|
592
|
+
fn: i(() => [
|
|
593
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
594
|
+
]),
|
|
595
|
+
key: "1"
|
|
596
|
+
} : void 0,
|
|
597
|
+
t.$slots.optionPdf ? {
|
|
598
|
+
name: "optionPdf",
|
|
599
|
+
fn: i(() => [
|
|
600
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
601
|
+
]),
|
|
602
|
+
key: "2"
|
|
603
|
+
} : void 0,
|
|
604
|
+
t.$slots.optionCsv ? {
|
|
605
|
+
name: "optionCsv",
|
|
606
|
+
fn: i(() => [
|
|
607
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
608
|
+
]),
|
|
609
|
+
key: "3"
|
|
610
|
+
} : void 0,
|
|
611
|
+
t.$slots.optionImg ? {
|
|
612
|
+
name: "optionImg",
|
|
613
|
+
fn: i(() => [
|
|
614
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
615
|
+
]),
|
|
616
|
+
key: "4"
|
|
617
|
+
} : void 0,
|
|
618
|
+
t.$slots.optionSvg ? {
|
|
619
|
+
name: "optionSvg",
|
|
620
|
+
fn: i(() => [
|
|
621
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
622
|
+
]),
|
|
623
|
+
key: "5"
|
|
624
|
+
} : void 0,
|
|
625
|
+
t.$slots.optionTable ? {
|
|
626
|
+
name: "optionTable",
|
|
627
|
+
fn: i(() => [
|
|
628
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
629
|
+
]),
|
|
630
|
+
key: "6"
|
|
631
|
+
} : void 0,
|
|
632
|
+
t.$slots.optionFullscreen ? {
|
|
633
|
+
name: "optionFullscreen",
|
|
634
|
+
fn: i(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
635
|
+
c(t.$slots, "optionFullscreen", y(C({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
636
|
+
]),
|
|
637
|
+
key: "7"
|
|
638
|
+
} : void 0,
|
|
639
|
+
t.$slots.optionAnnotator ? {
|
|
640
|
+
name: "optionAnnotator",
|
|
641
|
+
fn: i(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
642
|
+
c(t.$slots, "optionAnnotator", y(C({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
643
|
+
]),
|
|
644
|
+
key: "8"
|
|
645
|
+
} : void 0
|
|
646
|
+
]), 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
|
+
(s(), v("svg", {
|
|
648
|
+
ref_key: "svgRef",
|
|
649
|
+
ref: X,
|
|
650
|
+
xmlns: r(qt),
|
|
651
|
+
class: q({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: x.value }),
|
|
652
|
+
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
653
|
+
style: E(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
654
|
+
}, [
|
|
655
|
+
ce(r(dt)),
|
|
656
|
+
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
657
|
+
key: 0,
|
|
658
|
+
x: 0,
|
|
659
|
+
y: 0,
|
|
660
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
661
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
662
|
+
style: {
|
|
663
|
+
pointerEvents: "none"
|
|
664
|
+
}
|
|
665
|
+
}, [
|
|
666
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
667
|
+
], 8, mo)) : p("", !0),
|
|
668
|
+
(s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
|
|
669
|
+
cx: h.value.centerX,
|
|
670
|
+
cy: h.value.centerY,
|
|
671
|
+
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
672
|
+
stroke: e.value.style.chart.layout.gutter.color,
|
|
673
|
+
"stroke-width": B.value.gutter,
|
|
674
|
+
fill: "none",
|
|
675
|
+
"stroke-dasharray": o.path.bgDashArray,
|
|
676
|
+
"stroke-dashoffset": o.path.fullOffset,
|
|
677
|
+
"stroke-linecap": "round",
|
|
678
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== a }),
|
|
679
|
+
style: E({
|
|
680
|
+
transform: "rotate(-90deg)",
|
|
681
|
+
transformOrigin: "50% 50%",
|
|
682
|
+
transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
|
|
683
|
+
animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
|
|
684
|
+
})
|
|
685
|
+
}, null, 14, yo))), 256)),
|
|
686
|
+
(s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
|
|
687
|
+
cx: h.value.centerX,
|
|
688
|
+
cy: h.value.centerY,
|
|
689
|
+
r: o.radius < 0 ? 1e-4 : o.radius,
|
|
690
|
+
stroke: `${o.color}`,
|
|
691
|
+
"stroke-width": B.value.track,
|
|
692
|
+
fill: "none",
|
|
693
|
+
"stroke-dasharray": o.path.dashArray,
|
|
694
|
+
"stroke-dashoffset": o.path.dashOffset,
|
|
695
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== a }),
|
|
696
|
+
"stroke-linecap": "round",
|
|
697
|
+
style: E({
|
|
698
|
+
transform: "rotate(-90deg)",
|
|
699
|
+
transformOrigin: "50% 50%",
|
|
700
|
+
transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
|
|
701
|
+
animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
|
|
702
|
+
})
|
|
703
|
+
}, null, 14, Co))), 256)),
|
|
704
|
+
I("defs", null, [
|
|
705
|
+
I("filter", {
|
|
706
|
+
id: `blur_${w.value}`,
|
|
707
|
+
x: "-50%",
|
|
708
|
+
y: "-50%",
|
|
709
|
+
width: "200%",
|
|
710
|
+
height: "200%"
|
|
711
|
+
}, [
|
|
712
|
+
I("feGaussianBlur", {
|
|
713
|
+
in: "SourceGraphic",
|
|
714
|
+
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
715
|
+
}, null, 8, wo)
|
|
716
|
+
], 8, ko)
|
|
717
|
+
]),
|
|
718
|
+
e.value.style.chart.useGradient ? (s(), v("g", {
|
|
719
|
+
key: 1,
|
|
720
|
+
filter: `url(#blur_${w.value})`
|
|
721
|
+
}, [
|
|
722
|
+
(s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
|
|
723
|
+
cx: h.value.centerX,
|
|
724
|
+
cy: h.value.centerY,
|
|
725
|
+
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
726
|
+
stroke: "white",
|
|
727
|
+
"stroke-width": B.value.track / 3,
|
|
728
|
+
fill: "none",
|
|
729
|
+
"stroke-linecap": "round",
|
|
730
|
+
"stroke-dasharray": o.path.dashArray,
|
|
731
|
+
"stroke-dashoffset": o.path.dashOffset,
|
|
732
|
+
style: E({
|
|
733
|
+
transform: "rotate(-90deg)",
|
|
734
|
+
transformOrigin: "50% 50%",
|
|
735
|
+
transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
|
|
736
|
+
animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
|
|
737
|
+
})
|
|
738
|
+
}, null, 12, $o))), 256))
|
|
739
|
+
], 8, Ao)) : p("", !0),
|
|
740
|
+
(s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
|
|
741
|
+
cx: h.value.centerX,
|
|
742
|
+
cy: h.value.centerY,
|
|
743
|
+
r: o.radius <= 0 ? 1e-4 : o.radius,
|
|
744
|
+
stroke: "transparent",
|
|
745
|
+
"stroke-width": Math.max(B.value.track, B.value.gutter),
|
|
746
|
+
fill: "none",
|
|
747
|
+
"stroke-dasharray": o.path.bgDashArray,
|
|
748
|
+
"stroke-dashoffset": o.path.fullOffset,
|
|
749
|
+
"stroke-linecap": "round",
|
|
750
|
+
class: "vue-ui-onion-path",
|
|
751
|
+
style: {
|
|
752
|
+
transform: "rotate(-90deg)",
|
|
753
|
+
transformOrigin: "50% 50%"
|
|
754
|
+
},
|
|
755
|
+
onMouseenter: (g) => ze({
|
|
756
|
+
datapoint: o,
|
|
757
|
+
show: !0,
|
|
758
|
+
seriesIndex: a
|
|
759
|
+
}),
|
|
760
|
+
onMouseleave: (g) => Re({ datapoint: o }),
|
|
761
|
+
onClick: (g) => Me({ datapoint: o })
|
|
762
|
+
}, null, 40, To))), 256)),
|
|
763
|
+
e.value.style.chart.layout.labels.show ? (s(), v("g", xo, [
|
|
764
|
+
(s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("g", {
|
|
765
|
+
onMouseenter: (g) => ze({
|
|
766
|
+
datapoint: o,
|
|
767
|
+
show: !0,
|
|
768
|
+
seriesIndex: a
|
|
769
|
+
}),
|
|
770
|
+
onMouseleave: (g) => Re({ datapoint: o }),
|
|
771
|
+
onClick: (g) => Me({ datapoint: o })
|
|
772
|
+
}, [
|
|
773
|
+
b.value.includes(o.id) ? p("", !0) : (s(), v("text", {
|
|
774
|
+
key: 0,
|
|
775
|
+
class: "vue-ui-onion-label",
|
|
776
|
+
x: n.value.width / 2 - B.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
777
|
+
y: o.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
778
|
+
"text-anchor": "end",
|
|
779
|
+
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
780
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value === a ? o.color : e.value.style.chart.layout.labels.color,
|
|
781
|
+
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
782
|
+
}, R(o.name ? o.name + ": " : "") + " " + R(e.value.style.chart.layout.labels.percentage.show ? r(z)({
|
|
783
|
+
v: o.percentage,
|
|
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))
|
|
808
|
+
])) : p("", !0),
|
|
809
|
+
c(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
810
|
+
], 14, bo)),
|
|
811
|
+
t.$slots.watermark ? (s(), v("div", Do, [
|
|
812
|
+
c(t.$slots, "watermark", y(C({ isPrinting: r(Fe) || r(Oe) })), void 0, !0)
|
|
813
|
+
])) : p("", !0),
|
|
814
|
+
I("div", {
|
|
815
|
+
id: `legend-bottom-${w.value}`
|
|
816
|
+
}, null, 8, So),
|
|
817
|
+
Ae.value ? (s(), _(Vt, {
|
|
818
|
+
key: 5,
|
|
819
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
820
|
+
}, [
|
|
821
|
+
I("div", {
|
|
822
|
+
ref_key: "chartLegend",
|
|
823
|
+
ref: be
|
|
824
|
+
}, [
|
|
825
|
+
e.value.style.chart.legend.show ? (s(), _(go, {
|
|
826
|
+
key: `legend_${we.value}`,
|
|
827
|
+
legendSet: oe.value,
|
|
828
|
+
config: $t.value,
|
|
829
|
+
onClickMarker: l[0] || (l[0] = ({ legend: o }) => j(o.id))
|
|
830
|
+
}, {
|
|
831
|
+
item: i(({ legend: o }) => [
|
|
832
|
+
r(A) ? p("", !0) : (s(), v("div", {
|
|
833
|
+
key: 0,
|
|
834
|
+
"data-cy-legend-item": "",
|
|
835
|
+
onClick: (a) => o.segregate(),
|
|
836
|
+
style: E(`opacity:${b.value.includes(o.id) ? 0.5 : 1}`)
|
|
837
|
+
}, R(o.display), 13, _o))
|
|
838
|
+
]),
|
|
839
|
+
_: 1
|
|
840
|
+
}, 8, ["legendSet", "config"])) : c(t.$slots, "legend", {
|
|
841
|
+
key: 1,
|
|
842
|
+
legend: oe.value
|
|
843
|
+
}, void 0, !0)
|
|
844
|
+
], 512)
|
|
845
|
+
], 8, ["to"])) : p("", !0),
|
|
846
|
+
t.$slots.source ? (s(), v("div", {
|
|
847
|
+
key: 6,
|
|
848
|
+
ref_key: "source",
|
|
849
|
+
ref: me,
|
|
850
|
+
dir: "auto"
|
|
851
|
+
}, [
|
|
852
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
853
|
+
], 512)) : p("", !0),
|
|
854
|
+
ce(r(nt), {
|
|
855
|
+
show: m.value.showTooltip && J.value,
|
|
856
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
857
|
+
color: e.value.style.chart.tooltip.color,
|
|
858
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
859
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
860
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
861
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
862
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
863
|
+
position: e.value.style.chart.tooltip.position,
|
|
864
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
865
|
+
parent: T.value,
|
|
866
|
+
content: K.value,
|
|
867
|
+
isFullscreen: P.value,
|
|
868
|
+
isCustom: r(We)(e.value.style.chart.tooltip.customFormat),
|
|
869
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
870
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
871
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
872
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
873
|
+
}, {
|
|
874
|
+
"tooltip-before": i(() => [
|
|
875
|
+
c(t.$slots, "tooltip-before", y(C({ ...re.value })), void 0, !0)
|
|
876
|
+
]),
|
|
877
|
+
"tooltip-after": i(() => [
|
|
878
|
+
c(t.$slots, "tooltip-after", y(C({ ...re.value })), void 0, !0)
|
|
879
|
+
]),
|
|
880
|
+
_: 3
|
|
881
|
+
}, 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 ? (s(), _(Ut(V.value.component), Gt({ key: 7 }, V.value.props, {
|
|
883
|
+
ref_key: "tableUnit",
|
|
884
|
+
ref: L,
|
|
885
|
+
onClose: l[3] || (l[3] = (o) => m.value.showTable = !1)
|
|
886
|
+
}), Ge({
|
|
887
|
+
content: i(() => [
|
|
888
|
+
(s(), _(r(ut), {
|
|
889
|
+
key: `table_${ke.value}`,
|
|
890
|
+
colNames: H.value.colNames,
|
|
891
|
+
head: H.value.head,
|
|
892
|
+
body: H.value.body,
|
|
893
|
+
config: H.value.config,
|
|
894
|
+
title: e.value.table.useDialog ? "" : V.value.title,
|
|
895
|
+
withCloseButton: !e.value.table.useDialog,
|
|
896
|
+
onClose: l[2] || (l[2] = (o) => m.value.showTable = !1)
|
|
897
|
+
}, {
|
|
898
|
+
th: i(({ th: o }) => [
|
|
899
|
+
Ye(R(o), 1)
|
|
900
|
+
]),
|
|
901
|
+
td: i(({ td: o }) => [
|
|
902
|
+
I("div", { innerHTML: o }, null, 8, Io)
|
|
903
|
+
]),
|
|
904
|
+
_: 1
|
|
905
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
906
|
+
]),
|
|
907
|
+
_: 2
|
|
908
|
+
}, [
|
|
909
|
+
e.value.table.useDialog ? {
|
|
910
|
+
name: "title",
|
|
911
|
+
fn: i(() => [
|
|
912
|
+
Ye(R(V.value.title), 1)
|
|
913
|
+
]),
|
|
914
|
+
key: "0"
|
|
915
|
+
} : void 0,
|
|
916
|
+
e.value.table.useDialog ? {
|
|
917
|
+
name: "actions",
|
|
918
|
+
fn: i(() => [
|
|
919
|
+
I("button", {
|
|
920
|
+
tabindex: "0",
|
|
921
|
+
class: "vue-ui-user-options-button",
|
|
922
|
+
onClick: l[1] || (l[1] = (o) => ne(e.value.userOptions.callbacks.csv))
|
|
923
|
+
}, [
|
|
924
|
+
ce(r(rt), {
|
|
925
|
+
name: "excel",
|
|
926
|
+
stroke: V.value.props.color
|
|
927
|
+
}, null, 8, ["stroke"])
|
|
928
|
+
])
|
|
929
|
+
]),
|
|
930
|
+
key: "1"
|
|
931
|
+
} : void 0
|
|
932
|
+
]), 1040)) : p("", !0),
|
|
933
|
+
r(A) ? (s(), _(lo, { key: 8 })) : p("", !0)
|
|
934
|
+
], 46, fo));
|
|
935
|
+
}
|
|
936
|
+
}, Po = /* @__PURE__ */ ho(Bo, [["__scopeId", "data-v-eec12458"]]), Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
937
|
+
__proto__: null,
|
|
938
|
+
default: Po
|
|
939
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
940
|
+
export {
|
|
941
|
+
Jo as a,
|
|
942
|
+
Ko as b,
|
|
943
|
+
Po as v
|
|
944
|
+
};
|