vue-data-ui 3.15.12 → 3.16.1
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 +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-bump.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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,1045 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as D, computed as d, ref as u, toRefs as Ut, watch as Y, shallowRef as je, onMounted as Et, onBeforeUnmount as Yt, openBlock as r, createElementBlock as g, unref as s, normalizeStyle as F, normalizeClass as Q, createBlock as x, withCtx as i, renderSlot as v, normalizeProps as k, guardReactiveProps as C, createCommentVNode as m, createElementVNode as _, createSlots as qe, createVNode as fe, Fragment as X, renderList as G, toDisplayString as Z, Teleport as Xt, resolveDynamicComponent as Gt, mergeProps as Ht, createTextVNode as Je, nextTick as pe } from "vue";
|
|
2
|
-
import { j as Wt, t as Ke, m as jt, p as Qe, n as qt, o as Ze, q as me, s as Jt, k as ye, l as B, X as Kt, T as et, a0 as Qt, a1 as Zt, U as ea } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { b as ta } from "./labelUtils-CTXUc3V9.js";
|
|
4
|
-
import { t as aa, u as la } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as oa } from "./useConfig-CIgyKZ6R.js";
|
|
6
|
-
import { u as na, B as sa } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
-
import { u as ra } from "./usePrinter-DiK5R6k-.js";
|
|
8
|
-
import { u as ua } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
-
import { u as be } from "./useNestedProp-BBT0mbHh.js";
|
|
10
|
-
import { u as ia } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
-
import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as va } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
-
import { u as da } from "./useAutoSizeLabelsInsideViewbox-80fzdfxt.js";
|
|
14
|
-
import ga from "./img-BYYzY_QU.js";
|
|
15
|
-
import ha from "./Title-BfyrP-jp.js";
|
|
16
|
-
import fa from "./Legend-1LMMsPxL.js";
|
|
17
|
-
import pa from "./vue_ui_onion-CxWH9_OZ.js";
|
|
18
|
-
import { B as ma } from "./BaseLegendToggle-Y61xahI4.js";
|
|
19
|
-
import { _ as ya } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
const ba = ["id"], ka = ["id"], Ca = ["xmlns", "viewBox"], wa = ["width", "height"], $a = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ta = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pa = ["id"], Sa = ["stdDeviation"], Oa = ["filter"], xa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Aa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], Ia = { key: 2 }, Da = ["onMouseenter", "onMouseleave", "onClick"], Fa = ["x", "y", "font-size", "fill", "font-weight"], _a = {
|
|
21
|
-
key: 4,
|
|
22
|
-
class: "vue-data-ui-watermark"
|
|
23
|
-
}, La = ["id"], Ma = ["onClick"], Ra = ["innerHTML"], za = {
|
|
24
|
-
__name: "vue-ui-onion",
|
|
25
|
-
props: {
|
|
26
|
-
config: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default() {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
dataset: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default() {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
emits: ["selectLegend", "copyAlt"],
|
|
40
|
-
setup(tt, { expose: at, emit: lt }) {
|
|
41
|
-
const ot = D(() => import("./Tooltip-DL3QgjZf.js")), nt = D(() => import("./BaseIcon-CNx8Tzl5.js")), st = D(() => import("./vue-ui-accordion-BGHTqIBt.js")), rt = D(() => import("./DataTable-Bo1pmAqG.js")), ut = D(() => import("./UserOptions-CrLqEimB.js")), it = D(() => import("./PenAndPaper-DWV1FMIi.js")), ct = D(() => import("./PackageVersion-DN9d0ME5.js")), vt = D(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_onion: dt } = oa(), { isThemeValid: gt, warnInvalidTheme: ht } = ia(), w = tt, ke = d(() => !!w.dataset && w.dataset.length), P = u(Wt()), ft = u(null), Ce = u(0), ee = u(!1), te = u(""), h = u([]), S = u(null), we = u(null), $e = u(null), Te = u(null), Pe = u(null), Se = u(0), Oe = u(0), xe = u(0), O = u(!1), Ae = u(!1), N = u(null), H = u(!1), W = u(!1), e = u(oe()), L = d(() => e.value.userOptions.useCursorPointer), pt = d(() => Ke({
|
|
42
|
-
defaultConfig: {
|
|
43
|
-
userOptions: { show: !1 },
|
|
44
|
-
table: { show: !1 },
|
|
45
|
-
style: {
|
|
46
|
-
chart: {
|
|
47
|
-
backgroundColor: "#99999930",
|
|
48
|
-
layout: {
|
|
49
|
-
gutter: {
|
|
50
|
-
color: "#99999950"
|
|
51
|
-
},
|
|
52
|
-
labels: { show: !1 }
|
|
53
|
-
},
|
|
54
|
-
legend: {
|
|
55
|
-
backgroundColor: "transparent"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
61
|
-
})), { loading: $, FINAL_DATASET: Ie, manualLoading: ae } = na({
|
|
62
|
-
...Ut(w),
|
|
63
|
-
FINAL_CONFIG: e,
|
|
64
|
-
prepareConfig: oe,
|
|
65
|
-
callback: () => {
|
|
66
|
-
Promise.resolve().then(async () => {
|
|
67
|
-
await pe(), ze();
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
71
|
-
{ name: "_", percentage: 50, value: 1, color: "#DBDBDB" },
|
|
72
|
-
{ name: "_", percentage: 50, value: 1, color: "#C4C4C4" },
|
|
73
|
-
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
74
|
-
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
75
|
-
],
|
|
76
|
-
skeletonConfig: Ke({
|
|
77
|
-
defaultConfig: e.value,
|
|
78
|
-
userConfig: pt.value
|
|
79
|
-
})
|
|
80
|
-
}), { userOptionsVisible: le, setUserOptionsVisibility: De, keepUserOptionState: Fe } = ca({ config: e.value }), { svgRef: j } = va({ config: e.value.style.chart.title });
|
|
81
|
-
function oe() {
|
|
82
|
-
const t = be({
|
|
83
|
-
userConfig: w.config,
|
|
84
|
-
defaultConfig: dt
|
|
85
|
-
}), l = t.theme;
|
|
86
|
-
if (!l) return t;
|
|
87
|
-
if (!gt.value(t))
|
|
88
|
-
return ht(t), t;
|
|
89
|
-
const a = be({
|
|
90
|
-
userConfig: pa[l] || w.config,
|
|
91
|
-
defaultConfig: t
|
|
92
|
-
}), o = be({
|
|
93
|
-
userConfig: w.config,
|
|
94
|
-
defaultConfig: a
|
|
95
|
-
});
|
|
96
|
-
return {
|
|
97
|
-
...o,
|
|
98
|
-
customPalette: o.customPalette.length ? o.customPalette : jt[l] || Qe
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
Y(() => w.config, (t) => {
|
|
102
|
-
$.value || (e.value = oe()), le.value = !e.value.userOptions.showOnChartHover, Re(), Se.value += 1, Oe.value += 1, xe.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
103
|
-
}, { deep: !0 });
|
|
104
|
-
const { isPrinting: ne, isImaging: se, generatePdf: _e, generateImage: Le } = ra({
|
|
105
|
-
elementId: `vue-ui-onion_${P.value}`,
|
|
106
|
-
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
107
|
-
options: e.value.userOptions.print
|
|
108
|
-
}), mt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = d(() => qt(e.value.customPalette)), y = u({
|
|
109
|
-
showTable: e.value.table.show,
|
|
110
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
111
|
-
});
|
|
112
|
-
Y(e, () => {
|
|
113
|
-
y.value = {
|
|
114
|
-
showTable: e.value.table.show,
|
|
115
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
116
|
-
};
|
|
117
|
-
}, { immediate: !0 });
|
|
118
|
-
const n = u({
|
|
119
|
-
height: 512,
|
|
120
|
-
width: 512,
|
|
121
|
-
padding: {
|
|
122
|
-
top: 64,
|
|
123
|
-
left: 64,
|
|
124
|
-
right: 64,
|
|
125
|
-
bottom: 64
|
|
126
|
-
},
|
|
127
|
-
minRadius: 64
|
|
128
|
-
}), A = je(null), z = je(null);
|
|
129
|
-
Et(() => {
|
|
130
|
-
Ae.value = !0, Re();
|
|
131
|
-
});
|
|
132
|
-
const bt = d({
|
|
133
|
-
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
134
|
-
set: (t) => t
|
|
135
|
-
}), { autoSizeLabels: Me } = da({
|
|
136
|
-
svgRef: j,
|
|
137
|
-
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
138
|
-
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
139
|
-
sizeRef: bt,
|
|
140
|
-
labelClass: ".vue-ui-onion-label"
|
|
141
|
-
}), kt = d(() => e.value.debug);
|
|
142
|
-
let re = null;
|
|
143
|
-
function Re() {
|
|
144
|
-
if (Ze(w.dataset) && (me({
|
|
145
|
-
componentName: "VueUiOnion",
|
|
146
|
-
type: "dataset",
|
|
147
|
-
debug: kt.value
|
|
148
|
-
}), ae.value = !0), Ze(w.dataset) || (ae.value = e.value.loading), e.value.responsive) {
|
|
149
|
-
const l = aa(() => {
|
|
150
|
-
re && clearTimeout(re), O.value = !0;
|
|
151
|
-
let { width: a, height: o } = la({
|
|
152
|
-
chart: S.value,
|
|
153
|
-
title: e.value.style.chart.title.text ? we.value : null,
|
|
154
|
-
legend: e.value.style.chart.legend.show ? $e.value : null,
|
|
155
|
-
source: Te.value,
|
|
156
|
-
noTitle: Pe.value
|
|
157
|
-
});
|
|
158
|
-
o -= 12, requestAnimationFrame(async () => {
|
|
159
|
-
n.value.width = a, n.value.height = o, n.value.padding.top = Math.max(a, o) * 0.125, n.value.padding.right = Math.max(a, o) * 0.125, n.value.padding.bottom = Math.max(a, o) * 0.125, n.value.padding.left = Math.max(a, o) * 0.125, n.value.minRadius = Math.min(a, o) * 0.125, re = setTimeout(() => {
|
|
160
|
-
O.value = !1, Me();
|
|
161
|
-
}, 0);
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
A.value && (z.value && A.value.unobserve(z.value), A.value.disconnect()), A.value = new ResizeObserver(l), z.value = S.value.parentNode, A.value.observe(z.value);
|
|
165
|
-
}
|
|
166
|
-
requestAnimationFrame(Me);
|
|
167
|
-
}
|
|
168
|
-
Yt(() => {
|
|
169
|
-
A.value && (z.value && A.value.unobserve(z.value), A.value.disconnect());
|
|
170
|
-
});
|
|
171
|
-
const f = d(() => ({
|
|
172
|
-
top: n.value.padding.top,
|
|
173
|
-
left: n.value.padding.left,
|
|
174
|
-
right: n.value.width - n.value.padding.right,
|
|
175
|
-
bottom: n.value.height - n.value.padding.bottom,
|
|
176
|
-
centerX: n.value.width / 2,
|
|
177
|
-
centerY: n.value.height / 2,
|
|
178
|
-
width: n.value.width - n.value.padding.right - n.value.padding.left,
|
|
179
|
-
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
180
|
-
minRadius: n.value.minRadius,
|
|
181
|
-
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
182
|
-
})), p = d(() => (Ie.value.forEach((t, l) => {
|
|
183
|
-
[null, void 0].includes(t.name) && me({
|
|
184
|
-
componentName: "VueUiOnion",
|
|
185
|
-
type: "datasetSerieAttribute",
|
|
186
|
-
property: "name",
|
|
187
|
-
index: l
|
|
188
|
-
}), [void 0].includes(t.percentage) && me({
|
|
189
|
-
componentName: "VueUiOnion",
|
|
190
|
-
type: "datasetSerieAttribute",
|
|
191
|
-
property: "percentage",
|
|
192
|
-
index: l
|
|
193
|
-
});
|
|
194
|
-
}), Ie.value.map((t, l) => {
|
|
195
|
-
const a = `onion_serie_${l}_${P.value}`;
|
|
196
|
-
return {
|
|
197
|
-
...t,
|
|
198
|
-
percentage: t.percentage || 0,
|
|
199
|
-
targetPercentage: t.percentage || 0,
|
|
200
|
-
color: Jt(t.color) || yt.value[l] || Qe[l],
|
|
201
|
-
id: a,
|
|
202
|
-
shape: "circle",
|
|
203
|
-
opacity: h.value.includes(a) ? 0.5 : 1,
|
|
204
|
-
absoluteIndex: l,
|
|
205
|
-
segregate: () => q(a),
|
|
206
|
-
isSegregated: h.value.includes(a)
|
|
207
|
-
};
|
|
208
|
-
}))), V = d(() => p.value.map((t, l) => {
|
|
209
|
-
const a = e.value.style.chart.legend.showValue, o = e.value.style.chart.legend.showPercentage, c = ye(
|
|
210
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
211
|
-
t.value,
|
|
212
|
-
B({
|
|
213
|
-
p: t.prefix || "",
|
|
214
|
-
v: t.value,
|
|
215
|
-
s: t.suffix || "",
|
|
216
|
-
r: e.value.style.chart.legend.roundingValue
|
|
217
|
-
})
|
|
218
|
-
), b = B({
|
|
219
|
-
v: t.percentage ?? 0,
|
|
220
|
-
s: "%",
|
|
221
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
222
|
-
}), he = ve({
|
|
223
|
-
showVal: a,
|
|
224
|
-
showPercentage: o,
|
|
225
|
-
val: c,
|
|
226
|
-
percentage: b,
|
|
227
|
-
config: e.value.style.chart.legend
|
|
228
|
-
});
|
|
229
|
-
return {
|
|
230
|
-
...t,
|
|
231
|
-
display: `${t.name}${a || o ? ": " : ""}${he}`
|
|
232
|
-
};
|
|
233
|
-
})), U = u(p.value), Ct = d(() => e.value.useStartAnimation), wt = u(null), $t = d(() => Math.max(...p.value.map((t) => t.percentage))), ue = u(!1);
|
|
234
|
-
Y(() => p.value, ze, { immediate: !0, deep: !0 }), Y(() => w.dataset, (t) => {
|
|
235
|
-
Array.isArray(t) && t.length > 0 && (ae.value = !1);
|
|
236
|
-
}, { deep: !0 });
|
|
237
|
-
function ze() {
|
|
238
|
-
if (Ct.value && !ue.value && !$.value) {
|
|
239
|
-
let l = function() {
|
|
240
|
-
t >= $t.value ? (cancelAnimationFrame(wt.value), U.value = p.value, ue.value = !0) : (U.value = p.value.map((a) => ({
|
|
241
|
-
...a,
|
|
242
|
-
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
243
|
-
})), t += 1, requestAnimationFrame(l), ue.value = !0);
|
|
244
|
-
};
|
|
245
|
-
U.value = p.value.map((a) => ({
|
|
246
|
-
...a,
|
|
247
|
-
percentage: 0
|
|
248
|
-
}));
|
|
249
|
-
let t = 0;
|
|
250
|
-
l();
|
|
251
|
-
} else
|
|
252
|
-
U.value = p.value;
|
|
253
|
-
}
|
|
254
|
-
const Tt = d(() => ({
|
|
255
|
-
cy: "onion-div-legend",
|
|
256
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
257
|
-
color: e.value.style.chart.legend.color,
|
|
258
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
259
|
-
paddingBottom: 12,
|
|
260
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
261
|
-
})), Pt = d(() => p.value.filter((t) => !h.value.includes(t.id)).length), M = d(() => {
|
|
262
|
-
const t = Math.min(f.value.width, f.value.height) / 2 / p.value.length;
|
|
263
|
-
return {
|
|
264
|
-
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
265
|
-
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
266
|
-
};
|
|
267
|
-
}), T = d(() => U.value.filter((t) => !h.value.includes(t.id)).map((t, l) => {
|
|
268
|
-
const a = (f.value.maxRadius - M.value.track) / Pt.value / 2 * (1 + l), o = f.value.centerY - a;
|
|
269
|
-
return {
|
|
270
|
-
percentage: t.percentage || 0,
|
|
271
|
-
...t,
|
|
272
|
-
labelY: o,
|
|
273
|
-
radius: a,
|
|
274
|
-
path: St(a, t.percentage || 0)
|
|
275
|
-
};
|
|
276
|
-
}));
|
|
277
|
-
function St(t, l) {
|
|
278
|
-
const a = 2 * Math.PI * t, o = a * 0.75, c = `${o} ${a}`, b = o * (1 - l / 100);
|
|
279
|
-
return {
|
|
280
|
-
bgDashArray: `${o} ${a}`,
|
|
281
|
-
bgDashOffset: 0,
|
|
282
|
-
dashArray: c,
|
|
283
|
-
dashOffset: b,
|
|
284
|
-
fullOffset: 0,
|
|
285
|
-
active: `
|
|
286
|
-
M ${f.value.centerX},${f.value.centerY - t}
|
|
287
|
-
A ${t},${t} 0 1 1
|
|
288
|
-
${f.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${f.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
289
|
-
`.trim()
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
const Be = lt;
|
|
293
|
-
function Ot() {
|
|
294
|
-
h.value.length ? h.value = [] : V.value.forEach((t) => {
|
|
295
|
-
h.value.push(t.id);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function q(t) {
|
|
299
|
-
if (h.value.includes(t))
|
|
300
|
-
h.value = h.value.filter((l) => l !== t);
|
|
301
|
-
else {
|
|
302
|
-
if (h.value.length === p.value.length - 1) return;
|
|
303
|
-
h.value.push(t);
|
|
304
|
-
}
|
|
305
|
-
Be("selectLegend", T.value);
|
|
306
|
-
}
|
|
307
|
-
function Ne(t) {
|
|
308
|
-
if (!p.value.length)
|
|
309
|
-
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
310
|
-
const l = p.value.find((a) => a.name === t);
|
|
311
|
-
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
312
|
-
}
|
|
313
|
-
function xt(t) {
|
|
314
|
-
const l = Ne(t);
|
|
315
|
-
l !== null && h.value.includes(l.id) && q(l.id);
|
|
316
|
-
}
|
|
317
|
-
function At(t) {
|
|
318
|
-
const l = Ne(t);
|
|
319
|
-
l !== null && (h.value.includes(l.id) || q(l.id));
|
|
320
|
-
}
|
|
321
|
-
function It() {
|
|
322
|
-
return T.value;
|
|
323
|
-
}
|
|
324
|
-
const ie = d(() => {
|
|
325
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = T.value.map((a) => [
|
|
326
|
-
a.name,
|
|
327
|
-
a.percentage,
|
|
328
|
-
a.value
|
|
329
|
-
]);
|
|
330
|
-
return { head: t, body: l };
|
|
331
|
-
}), J = d(() => {
|
|
332
|
-
const t = ie.value.head, l = T.value.map((o) => [
|
|
333
|
-
`<span style="color:${o.color}">⬤</span> ${o.name}`,
|
|
334
|
-
`${Number(o.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
335
|
-
`${o.prefix || ""}${[null, void 0, NaN, "NaN"].includes(o.value) ? "-" : o.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${o.suffix || ""}`
|
|
336
|
-
]), a = {
|
|
337
|
-
th: {
|
|
338
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
339
|
-
color: e.value.table.th.color,
|
|
340
|
-
outline: e.value.table.th.outline
|
|
341
|
-
},
|
|
342
|
-
td: {
|
|
343
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
344
|
-
color: e.value.table.td.color,
|
|
345
|
-
outline: e.value.table.td.outline
|
|
346
|
-
},
|
|
347
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
348
|
-
};
|
|
349
|
-
return { head: t, body: l, config: a, colNames: t };
|
|
350
|
-
});
|
|
351
|
-
function ce(t = null) {
|
|
352
|
-
pe(() => {
|
|
353
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ie.value.head, o = ie.value.body, c = l.concat([a]).concat(o), b = Qt(c);
|
|
354
|
-
t ? t(b) : Zt({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
const I = u(void 0), R = u(!1);
|
|
358
|
-
function Ve(t) {
|
|
359
|
-
R.value = t, Ce.value += 1;
|
|
360
|
-
}
|
|
361
|
-
function Ue({ datapoint: t }) {
|
|
362
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
363
|
-
}
|
|
364
|
-
function Ee({ datapoint: t }) {
|
|
365
|
-
I.value = void 0, ee.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
366
|
-
}
|
|
367
|
-
function ve({
|
|
368
|
-
val: t,
|
|
369
|
-
percentage: l,
|
|
370
|
-
showVal: a,
|
|
371
|
-
showPercentage: o,
|
|
372
|
-
config: c
|
|
373
|
-
}) {
|
|
374
|
-
return ta({
|
|
375
|
-
config: c,
|
|
376
|
-
val: t,
|
|
377
|
-
percentage: l,
|
|
378
|
-
showVal: a,
|
|
379
|
-
showPercentage: o
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
function Dt(t, l) {
|
|
383
|
-
const a = e.value.style.chart.layout.labels.value.show, o = e.value.style.chart.layout.labels.percentage.show, c = ve({
|
|
384
|
-
config: e.value.style.chart.layout.labels,
|
|
385
|
-
showVal: a,
|
|
386
|
-
showPercentage: o,
|
|
387
|
-
val: ye(
|
|
388
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
389
|
-
t.value,
|
|
390
|
-
B({
|
|
391
|
-
p: t.prefix || "",
|
|
392
|
-
v: t.value || 0,
|
|
393
|
-
s: t.suffix || "",
|
|
394
|
-
r: e.value.style.chart.layout.labels.roundingValue
|
|
395
|
-
}),
|
|
396
|
-
{ datapoint: t, seriesIndex: l }
|
|
397
|
-
),
|
|
398
|
-
percentage: B({
|
|
399
|
-
v: t.percentage,
|
|
400
|
-
s: "%",
|
|
401
|
-
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
402
|
-
})
|
|
403
|
-
});
|
|
404
|
-
return `${t.name}${a || o ? ": " : ""}${c}`;
|
|
405
|
-
}
|
|
406
|
-
const de = u(null);
|
|
407
|
-
function Ye({ datapoint: t, seriesIndex: l, show: a = !0 }) {
|
|
408
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
409
|
-
const o = t.absoluteIndex;
|
|
410
|
-
I.value = l, de.value = {
|
|
411
|
-
datapoint: t,
|
|
412
|
-
seriesIndex: o,
|
|
413
|
-
series: p.value,
|
|
414
|
-
config: e.value
|
|
415
|
-
}, ee.value = a;
|
|
416
|
-
let c = "";
|
|
417
|
-
const b = e.value.style.chart.tooltip.customFormat;
|
|
418
|
-
if (et(b) && ea(() => b({
|
|
419
|
-
seriesIndex: o,
|
|
420
|
-
datapoint: t,
|
|
421
|
-
series: p.value,
|
|
422
|
-
config: e.value
|
|
423
|
-
})))
|
|
424
|
-
te.value = b({
|
|
425
|
-
seriesIndex: o,
|
|
426
|
-
datapoint: t,
|
|
427
|
-
series: p.value,
|
|
428
|
-
config: e.value
|
|
429
|
-
});
|
|
430
|
-
else {
|
|
431
|
-
const he = e.value.style.chart.tooltip.showPercentage, Vt = e.value.style.chart.tooltip.showValue;
|
|
432
|
-
c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, c += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/></svg>`, c += `<b>${ve({
|
|
433
|
-
config: e.value.style.chart.tooltip,
|
|
434
|
-
showVal: Vt,
|
|
435
|
-
showPercentage: he,
|
|
436
|
-
val: `<span>${ye(
|
|
437
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
438
|
-
t.value,
|
|
439
|
-
B({
|
|
440
|
-
p: t.prefix || "",
|
|
441
|
-
v: t.value,
|
|
442
|
-
s: t.suffix || "",
|
|
443
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
444
|
-
}),
|
|
445
|
-
{
|
|
446
|
-
datapoint: t,
|
|
447
|
-
seriesIndex: l
|
|
448
|
-
}
|
|
449
|
-
)}</span>`,
|
|
450
|
-
percentage: B({
|
|
451
|
-
v: t.percentage,
|
|
452
|
-
s: "%",
|
|
453
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
454
|
-
})
|
|
455
|
-
})}</b></div>`, te.value = `<div>${c}</div>`;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
function Xe() {
|
|
459
|
-
y.value.showTable = !y.value.showTable;
|
|
460
|
-
}
|
|
461
|
-
function Ge() {
|
|
462
|
-
y.value.showTooltip = !y.value.showTooltip;
|
|
463
|
-
}
|
|
464
|
-
const K = u(!1);
|
|
465
|
-
function ge() {
|
|
466
|
-
K.value = !K.value;
|
|
467
|
-
}
|
|
468
|
-
async function Ft({ scale: t = 2 } = {}) {
|
|
469
|
-
if (!S.value) return;
|
|
470
|
-
const { width: l, height: a } = S.value.getBoundingClientRect(), o = l / a, { imageUri: c, base64: b } = await ga({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
471
|
-
return {
|
|
472
|
-
imageUri: c,
|
|
473
|
-
base64: b,
|
|
474
|
-
title: e.value.style.chart.title.text,
|
|
475
|
-
width: l,
|
|
476
|
-
height: a,
|
|
477
|
-
aspectRatio: o
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
const E = d(() => {
|
|
481
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
482
|
-
return {
|
|
483
|
-
component: t ? vt : st,
|
|
484
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
485
|
-
props: t ? {
|
|
486
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
487
|
-
color: e.value.table.th.color,
|
|
488
|
-
headerColor: e.value.table.th.color,
|
|
489
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
490
|
-
isFullscreen: R.value,
|
|
491
|
-
fullscreenParent: S.value,
|
|
492
|
-
forcedWidth: Math.min(600, window.innerWidth * 0.8),
|
|
493
|
-
isCursorPointer: L.value
|
|
494
|
-
} : {
|
|
495
|
-
hideDetails: !0,
|
|
496
|
-
config: {
|
|
497
|
-
open: l,
|
|
498
|
-
maxHeight: 1e4,
|
|
499
|
-
body: {
|
|
500
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
501
|
-
color: e.value.style.chart.color
|
|
502
|
-
},
|
|
503
|
-
head: {
|
|
504
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
505
|
-
color: e.value.style.chart.color
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
});
|
|
511
|
-
Y(() => y.value.showTable, (t) => {
|
|
512
|
-
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
513
|
-
});
|
|
514
|
-
const _t = d(() => V.value.map((t) => ({
|
|
515
|
-
...t,
|
|
516
|
-
name: t.display
|
|
517
|
-
}))), Lt = d(() => e.value.style.chart.backgroundColor), Mt = d(() => e.value.style.chart.legend), Rt = d(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Bt } = ua({
|
|
518
|
-
svg: j,
|
|
519
|
-
title: Rt,
|
|
520
|
-
legend: Mt,
|
|
521
|
-
legendItems: _t,
|
|
522
|
-
backgroundColor: Lt
|
|
523
|
-
});
|
|
524
|
-
async function He({ isCb: t }) {
|
|
525
|
-
W.value = !0, await pe();
|
|
526
|
-
try {
|
|
527
|
-
if (t) {
|
|
528
|
-
const { blob: l, url: a, text: o, dataUrl: c } = await Bt();
|
|
529
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: c }));
|
|
530
|
-
} else
|
|
531
|
-
await Promise.resolve(zt());
|
|
532
|
-
} finally {
|
|
533
|
-
W.value = !1;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
function Nt(t) {
|
|
537
|
-
if (t?.stage === "start") {
|
|
538
|
-
H.value = !0;
|
|
539
|
-
return;
|
|
540
|
-
}
|
|
541
|
-
if (t?.stage === "end") {
|
|
542
|
-
H.value = !1;
|
|
543
|
-
return;
|
|
544
|
-
}
|
|
545
|
-
Le();
|
|
546
|
-
}
|
|
547
|
-
async function We() {
|
|
548
|
-
if (Be("copyAlt", {
|
|
549
|
-
config: e.value,
|
|
550
|
-
dataset: T.value
|
|
551
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
552
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
556
|
-
config: e.value,
|
|
557
|
-
dataset: T.value
|
|
558
|
-
}));
|
|
559
|
-
}
|
|
560
|
-
return at({
|
|
561
|
-
getData: It,
|
|
562
|
-
getImage: Ft,
|
|
563
|
-
generatePdf: _e,
|
|
564
|
-
generateCsv: ce,
|
|
565
|
-
generateImage: Le,
|
|
566
|
-
generateSvg: He,
|
|
567
|
-
hideSeries: At,
|
|
568
|
-
showSeries: xt,
|
|
569
|
-
toggleTable: Xe,
|
|
570
|
-
toggleTooltip: Ge,
|
|
571
|
-
toggleAnnotator: ge,
|
|
572
|
-
toggleFullscreen: Ve,
|
|
573
|
-
copyAlt: We
|
|
574
|
-
}), (t, l) => (r(), g("div", {
|
|
575
|
-
class: Q(`vue-data-ui-component vue-ui-onion ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
576
|
-
ref_key: "onionChart",
|
|
577
|
-
ref: S,
|
|
578
|
-
id: `vue-ui-onion_${P.value}`,
|
|
579
|
-
style: F(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
580
|
-
onMouseenter: l[4] || (l[4] = () => s(De)(!0)),
|
|
581
|
-
onMouseleave: l[5] || (l[5] = () => s(De)(!1))
|
|
582
|
-
}, [
|
|
583
|
-
e.value.userOptions.buttons.annotator ? (r(), x(s(it), {
|
|
584
|
-
key: 0,
|
|
585
|
-
svgRef: s(j),
|
|
586
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
587
|
-
color: e.value.style.chart.color,
|
|
588
|
-
active: K.value,
|
|
589
|
-
isCursorPointer: L.value,
|
|
590
|
-
onClose: ge
|
|
591
|
-
}, {
|
|
592
|
-
"annotator-action-close": i(() => [
|
|
593
|
-
v(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
594
|
-
]),
|
|
595
|
-
"annotator-action-color": i(({ color: a }) => [
|
|
596
|
-
v(t.$slots, "annotator-action-color", k(C({ color: a })), void 0, !0)
|
|
597
|
-
]),
|
|
598
|
-
"annotator-action-draw": i(({ mode: a }) => [
|
|
599
|
-
v(t.$slots, "annotator-action-draw", k(C({ mode: a })), void 0, !0)
|
|
600
|
-
]),
|
|
601
|
-
"annotator-action-undo": i(({ disabled: a }) => [
|
|
602
|
-
v(t.$slots, "annotator-action-undo", k(C({ disabled: a })), void 0, !0)
|
|
603
|
-
]),
|
|
604
|
-
"annotator-action-redo": i(({ disabled: a }) => [
|
|
605
|
-
v(t.$slots, "annotator-action-redo", k(C({ disabled: a })), void 0, !0)
|
|
606
|
-
]),
|
|
607
|
-
"annotator-action-delete": i(({ disabled: a }) => [
|
|
608
|
-
v(t.$slots, "annotator-action-delete", k(C({ disabled: a })), void 0, !0)
|
|
609
|
-
]),
|
|
610
|
-
_: 3
|
|
611
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : m("", !0),
|
|
612
|
-
mt.value ? (r(), g("div", {
|
|
613
|
-
key: 1,
|
|
614
|
-
ref_key: "noTitle",
|
|
615
|
-
ref: Pe,
|
|
616
|
-
class: "vue-data-ui-no-title-space",
|
|
617
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
618
|
-
}, null, 512)) : m("", !0),
|
|
619
|
-
e.value.style.chart.title.text ? (r(), g("div", {
|
|
620
|
-
key: 2,
|
|
621
|
-
ref_key: "chartTitle",
|
|
622
|
-
ref: we,
|
|
623
|
-
style: "width:100%;background:transparent"
|
|
624
|
-
}, [
|
|
625
|
-
(r(), x(ha, {
|
|
626
|
-
key: `title_${Se.value}`,
|
|
627
|
-
config: {
|
|
628
|
-
title: {
|
|
629
|
-
cy: "onion-div-title",
|
|
630
|
-
...e.value.style.chart.title
|
|
631
|
-
},
|
|
632
|
-
subtitle: {
|
|
633
|
-
cy: "onion-div-subtitle",
|
|
634
|
-
...e.value.style.chart.title.subtitle
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}, null, 8, ["config"]))
|
|
638
|
-
], 512)) : m("", !0),
|
|
639
|
-
_("div", {
|
|
640
|
-
id: `legend-top-${P.value}`
|
|
641
|
-
}, null, 8, ka),
|
|
642
|
-
e.value.userOptions.show && ke.value && (s(Fe) || s(le)) ? (r(), x(s(ut), {
|
|
643
|
-
ref_key: "details",
|
|
644
|
-
ref: ft,
|
|
645
|
-
key: `user_options${Ce.value}`,
|
|
646
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
647
|
-
color: e.value.style.chart.color,
|
|
648
|
-
isImaging: s(se),
|
|
649
|
-
isPrinting: s(ne),
|
|
650
|
-
uid: P.value,
|
|
651
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
652
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
653
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
654
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
655
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
656
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
657
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
658
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
659
|
-
isFullscreen: R.value,
|
|
660
|
-
isTooltip: y.value.showTooltip,
|
|
661
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
662
|
-
chartElement: S.value,
|
|
663
|
-
position: e.value.userOptions.position,
|
|
664
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
665
|
-
isAnnotation: K.value,
|
|
666
|
-
callbacks: e.value.userOptions.callbacks,
|
|
667
|
-
printScale: e.value.userOptions.print.scale,
|
|
668
|
-
tableDialog: e.value.table.useDialog,
|
|
669
|
-
isCursorPointer: L.value,
|
|
670
|
-
onToggleFullscreen: Ve,
|
|
671
|
-
onGeneratePdf: s(_e),
|
|
672
|
-
onGenerateCsv: ce,
|
|
673
|
-
onGenerateImage: Nt,
|
|
674
|
-
onGenerateSvg: He,
|
|
675
|
-
onToggleTable: Xe,
|
|
676
|
-
onToggleTooltip: Ge,
|
|
677
|
-
onToggleAnnotator: ge,
|
|
678
|
-
onCopyAlt: We,
|
|
679
|
-
style: F({
|
|
680
|
-
visibility: s(Fe) ? s(le) ? "visible" : "hidden" : "visible"
|
|
681
|
-
})
|
|
682
|
-
}, qe({ _: 2 }, [
|
|
683
|
-
t.$slots.menuIcon ? {
|
|
684
|
-
name: "menuIcon",
|
|
685
|
-
fn: i(({ isOpen: a, color: o }) => [
|
|
686
|
-
v(t.$slots, "menuIcon", k(C({ isOpen: a, color: o })), void 0, !0)
|
|
687
|
-
]),
|
|
688
|
-
key: "0"
|
|
689
|
-
} : void 0,
|
|
690
|
-
t.$slots.optionTooltip ? {
|
|
691
|
-
name: "optionTooltip",
|
|
692
|
-
fn: i(() => [
|
|
693
|
-
v(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
694
|
-
]),
|
|
695
|
-
key: "1"
|
|
696
|
-
} : void 0,
|
|
697
|
-
t.$slots.optionPdf ? {
|
|
698
|
-
name: "optionPdf",
|
|
699
|
-
fn: i(() => [
|
|
700
|
-
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
701
|
-
]),
|
|
702
|
-
key: "2"
|
|
703
|
-
} : void 0,
|
|
704
|
-
t.$slots.optionCsv ? {
|
|
705
|
-
name: "optionCsv",
|
|
706
|
-
fn: i(() => [
|
|
707
|
-
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
708
|
-
]),
|
|
709
|
-
key: "3"
|
|
710
|
-
} : void 0,
|
|
711
|
-
t.$slots.optionImg ? {
|
|
712
|
-
name: "optionImg",
|
|
713
|
-
fn: i(() => [
|
|
714
|
-
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
715
|
-
]),
|
|
716
|
-
key: "4"
|
|
717
|
-
} : void 0,
|
|
718
|
-
t.$slots.optionSvg ? {
|
|
719
|
-
name: "optionSvg",
|
|
720
|
-
fn: i(() => [
|
|
721
|
-
v(t.$slots, "optionSvg", {}, void 0, !0)
|
|
722
|
-
]),
|
|
723
|
-
key: "5"
|
|
724
|
-
} : void 0,
|
|
725
|
-
t.$slots.optionTable ? {
|
|
726
|
-
name: "optionTable",
|
|
727
|
-
fn: i(() => [
|
|
728
|
-
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
729
|
-
]),
|
|
730
|
-
key: "6"
|
|
731
|
-
} : void 0,
|
|
732
|
-
t.$slots.optionFullscreen ? {
|
|
733
|
-
name: "optionFullscreen",
|
|
734
|
-
fn: i(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
735
|
-
v(t.$slots, "optionFullscreen", k(C({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
736
|
-
]),
|
|
737
|
-
key: "7"
|
|
738
|
-
} : void 0,
|
|
739
|
-
t.$slots.optionAnnotator ? {
|
|
740
|
-
name: "optionAnnotator",
|
|
741
|
-
fn: i(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
742
|
-
v(t.$slots, "optionAnnotator", k(C({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
743
|
-
]),
|
|
744
|
-
key: "8"
|
|
745
|
-
} : void 0,
|
|
746
|
-
t.$slots.optionAltCopy ? {
|
|
747
|
-
name: "optionAltCopy",
|
|
748
|
-
fn: i(({ altCopy: a }) => [
|
|
749
|
-
v(t.$slots, "optionAltCopy", k(C({ altCopy: a })), void 0, !0)
|
|
750
|
-
]),
|
|
751
|
-
key: "9"
|
|
752
|
-
} : void 0
|
|
753
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : m("", !0),
|
|
754
|
-
(r(), g("svg", {
|
|
755
|
-
ref_key: "svgRef",
|
|
756
|
-
ref: j,
|
|
757
|
-
xmlns: s(Kt),
|
|
758
|
-
class: Q({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value, resizing: O.value }),
|
|
759
|
-
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
760
|
-
style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
761
|
-
}, [
|
|
762
|
-
fe(s(ct)),
|
|
763
|
-
t.$slots["chart-background"] ? (r(), g("foreignObject", {
|
|
764
|
-
key: 0,
|
|
765
|
-
x: 0,
|
|
766
|
-
y: 0,
|
|
767
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
768
|
-
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
769
|
-
style: {
|
|
770
|
-
pointerEvents: "none"
|
|
771
|
-
}
|
|
772
|
-
}, [
|
|
773
|
-
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
774
|
-
], 8, wa)) : m("", !0),
|
|
775
|
-
(r(!0), g(X, null, G(T.value, (a, o) => (r(), g("circle", {
|
|
776
|
-
cx: f.value.centerX,
|
|
777
|
-
cy: f.value.centerY,
|
|
778
|
-
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
779
|
-
stroke: e.value.style.chart.layout.gutter.color,
|
|
780
|
-
"stroke-width": M.value.gutter,
|
|
781
|
-
fill: "none",
|
|
782
|
-
"stroke-dasharray": a.path.bgDashArray,
|
|
783
|
-
"stroke-dashoffset": a.path.fullOffset,
|
|
784
|
-
"stroke-linecap": "round",
|
|
785
|
-
class: Q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== o }),
|
|
786
|
-
style: F({
|
|
787
|
-
transform: "rotate(-90deg)",
|
|
788
|
-
transformOrigin: "50% 50%",
|
|
789
|
-
transition: O.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
790
|
-
animation: O.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
791
|
-
})
|
|
792
|
-
}, null, 14, $a))), 256)),
|
|
793
|
-
(r(!0), g(X, null, G(T.value, (a, o) => (r(), g("circle", {
|
|
794
|
-
cx: f.value.centerX,
|
|
795
|
-
cy: f.value.centerY,
|
|
796
|
-
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
797
|
-
stroke: `${a.color}`,
|
|
798
|
-
"stroke-width": M.value.track,
|
|
799
|
-
fill: "none",
|
|
800
|
-
"stroke-dasharray": a.path.dashArray,
|
|
801
|
-
"stroke-dashoffset": a.path.dashOffset,
|
|
802
|
-
class: Q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== o }),
|
|
803
|
-
"stroke-linecap": "round",
|
|
804
|
-
style: F({
|
|
805
|
-
transform: "rotate(-90deg)",
|
|
806
|
-
transformOrigin: "50% 50%",
|
|
807
|
-
transition: O.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
808
|
-
animation: O.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
809
|
-
})
|
|
810
|
-
}, null, 14, Ta))), 256)),
|
|
811
|
-
_("defs", null, [
|
|
812
|
-
_("filter", {
|
|
813
|
-
id: `blur_${P.value}`,
|
|
814
|
-
x: "-50%",
|
|
815
|
-
y: "-50%",
|
|
816
|
-
width: "200%",
|
|
817
|
-
height: "200%"
|
|
818
|
-
}, [
|
|
819
|
-
_("feGaussianBlur", {
|
|
820
|
-
in: "SourceGraphic",
|
|
821
|
-
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
822
|
-
}, null, 8, Sa)
|
|
823
|
-
], 8, Pa)
|
|
824
|
-
]),
|
|
825
|
-
e.value.style.chart.useGradient ? (r(), g("g", {
|
|
826
|
-
key: 1,
|
|
827
|
-
filter: `url(#blur_${P.value})`
|
|
828
|
-
}, [
|
|
829
|
-
(r(!0), g(X, null, G(T.value, (a, o) => (r(), g("circle", {
|
|
830
|
-
cx: f.value.centerX,
|
|
831
|
-
cy: f.value.centerY,
|
|
832
|
-
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
833
|
-
stroke: "white",
|
|
834
|
-
"stroke-width": M.value.track / 3,
|
|
835
|
-
fill: "none",
|
|
836
|
-
"stroke-linecap": "round",
|
|
837
|
-
"stroke-dasharray": a.path.dashArray,
|
|
838
|
-
"stroke-dashoffset": a.path.dashOffset,
|
|
839
|
-
style: F({
|
|
840
|
-
transform: "rotate(-90deg)",
|
|
841
|
-
transformOrigin: "50% 50%",
|
|
842
|
-
transition: O.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
843
|
-
animation: O.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
844
|
-
})
|
|
845
|
-
}, null, 12, xa))), 256))
|
|
846
|
-
], 8, Oa)) : m("", !0),
|
|
847
|
-
(r(!0), g(X, null, G(T.value, (a, o) => (r(), g("circle", {
|
|
848
|
-
cx: f.value.centerX,
|
|
849
|
-
cy: f.value.centerY,
|
|
850
|
-
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
851
|
-
stroke: "transparent",
|
|
852
|
-
"stroke-width": Math.max(M.value.track, M.value.gutter),
|
|
853
|
-
fill: "none",
|
|
854
|
-
"stroke-dasharray": a.path.bgDashArray,
|
|
855
|
-
"stroke-dashoffset": a.path.fullOffset,
|
|
856
|
-
"stroke-linecap": "round",
|
|
857
|
-
class: "vue-ui-onion-path",
|
|
858
|
-
style: {
|
|
859
|
-
transform: "rotate(-90deg)",
|
|
860
|
-
transformOrigin: "50% 50%"
|
|
861
|
-
},
|
|
862
|
-
onMouseenter: (c) => Ye({
|
|
863
|
-
datapoint: a,
|
|
864
|
-
show: !0,
|
|
865
|
-
seriesIndex: o
|
|
866
|
-
}),
|
|
867
|
-
onMouseleave: (c) => Ee({ datapoint: a }),
|
|
868
|
-
onClick: (c) => Ue({ datapoint: a })
|
|
869
|
-
}, null, 40, Aa))), 256)),
|
|
870
|
-
e.value.style.chart.layout.labels.show ? (r(), g("g", Ia, [
|
|
871
|
-
(r(!0), g(X, null, G(T.value, (a, o) => (r(), g("g", {
|
|
872
|
-
onMouseenter: (c) => Ye({
|
|
873
|
-
datapoint: a,
|
|
874
|
-
show: !0,
|
|
875
|
-
seriesIndex: o
|
|
876
|
-
}),
|
|
877
|
-
onMouseleave: (c) => Ee({ datapoint: a }),
|
|
878
|
-
onClick: (c) => Ue({ datapoint: a })
|
|
879
|
-
}, [
|
|
880
|
-
h.value.includes(a.id) ? m("", !0) : (r(), g("text", {
|
|
881
|
-
key: 0,
|
|
882
|
-
class: "vue-ui-onion-label",
|
|
883
|
-
x: n.value.width / 2 - M.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
884
|
-
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
885
|
-
"text-anchor": "end",
|
|
886
|
-
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
887
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value === o ? a.color : e.value.style.chart.layout.labels.color,
|
|
888
|
-
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
889
|
-
}, Z(Dt(a, o)), 9, Fa))
|
|
890
|
-
], 40, Da))), 256))
|
|
891
|
-
])) : m("", !0),
|
|
892
|
-
v(t.$slots, "svg", {
|
|
893
|
-
svg: {
|
|
894
|
-
...n.value,
|
|
895
|
-
isPrintingImg: s(ne) | s(se) | H.value,
|
|
896
|
-
isPrintingSvg: W.value
|
|
897
|
-
}
|
|
898
|
-
}, void 0, !0)
|
|
899
|
-
], 14, Ca)),
|
|
900
|
-
t.$slots.watermark ? (r(), g("div", _a, [
|
|
901
|
-
v(t.$slots, "watermark", k(C({ isPrinting: s(ne) || s(se) || H.value || W.value })), void 0, !0)
|
|
902
|
-
])) : m("", !0),
|
|
903
|
-
_("div", {
|
|
904
|
-
id: `legend-bottom-${P.value}`
|
|
905
|
-
}, null, 8, La),
|
|
906
|
-
Ae.value ? (r(), x(Xt, {
|
|
907
|
-
key: 5,
|
|
908
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
909
|
-
}, [
|
|
910
|
-
_("div", {
|
|
911
|
-
ref_key: "chartLegend",
|
|
912
|
-
ref: $e
|
|
913
|
-
}, [
|
|
914
|
-
e.value.style.chart.legend.show ? (r(), x(fa, {
|
|
915
|
-
key: `legend_${xe.value}`,
|
|
916
|
-
legendSet: V.value,
|
|
917
|
-
config: Tt.value,
|
|
918
|
-
isCursorPointer: L.value,
|
|
919
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) => q(a.id))
|
|
920
|
-
}, {
|
|
921
|
-
item: i(({ legend: a }) => [
|
|
922
|
-
s($) ? m("", !0) : (r(), g("div", {
|
|
923
|
-
key: 0,
|
|
924
|
-
"data-cy-legend-item": "",
|
|
925
|
-
onClick: (o) => a.segregate(),
|
|
926
|
-
style: F(`opacity:${h.value.includes(a.id) ? 0.5 : 1}`)
|
|
927
|
-
}, Z(a.display), 13, Ma))
|
|
928
|
-
]),
|
|
929
|
-
legendToggle: i(() => [
|
|
930
|
-
V.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !s($) ? (r(), x(ma, {
|
|
931
|
-
key: 0,
|
|
932
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
933
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
934
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
935
|
-
checked: h.value.length > 0,
|
|
936
|
-
isCursorPointer: L.value,
|
|
937
|
-
onToggle: Ot
|
|
938
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : m("", !0)
|
|
939
|
-
]),
|
|
940
|
-
_: 1
|
|
941
|
-
}, 8, ["legendSet", "config", "isCursorPointer"])) : v(t.$slots, "legend", {
|
|
942
|
-
key: 1,
|
|
943
|
-
legend: V.value
|
|
944
|
-
}, void 0, !0)
|
|
945
|
-
], 512)
|
|
946
|
-
], 8, ["to"])) : m("", !0),
|
|
947
|
-
t.$slots.source ? (r(), g("div", {
|
|
948
|
-
key: 6,
|
|
949
|
-
ref_key: "source",
|
|
950
|
-
ref: Te,
|
|
951
|
-
dir: "auto"
|
|
952
|
-
}, [
|
|
953
|
-
v(t.$slots, "source", {}, void 0, !0)
|
|
954
|
-
], 512)) : m("", !0),
|
|
955
|
-
fe(s(ot), {
|
|
956
|
-
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
957
|
-
show: y.value.showTooltip && ee.value,
|
|
958
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
959
|
-
color: e.value.style.chart.tooltip.color,
|
|
960
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
961
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
962
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
963
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
964
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
965
|
-
position: e.value.style.chart.tooltip.position,
|
|
966
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
967
|
-
parent: S.value,
|
|
968
|
-
content: te.value,
|
|
969
|
-
isFullscreen: R.value,
|
|
970
|
-
isCustom: s(et)(e.value.style.chart.tooltip.customFormat),
|
|
971
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
972
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
973
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
974
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
975
|
-
}, {
|
|
976
|
-
"tooltip-before": i(() => [
|
|
977
|
-
v(t.$slots, "tooltip-before", k(C({ ...de.value })), void 0, !0)
|
|
978
|
-
]),
|
|
979
|
-
"tooltip-after": i(() => [
|
|
980
|
-
v(t.$slots, "tooltip-after", k(C({ ...de.value })), void 0, !0)
|
|
981
|
-
]),
|
|
982
|
-
_: 3
|
|
983
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
984
|
-
ke.value && e.value.userOptions.buttons.table ? (r(), x(Gt(E.value.component), Ht({ key: 7 }, E.value.props, {
|
|
985
|
-
ref_key: "tableUnit",
|
|
986
|
-
ref: N,
|
|
987
|
-
onClose: l[3] || (l[3] = (a) => y.value.showTable = !1)
|
|
988
|
-
}), qe({
|
|
989
|
-
content: i(() => [
|
|
990
|
-
(r(), x(s(rt), {
|
|
991
|
-
key: `table_${Oe.value}`,
|
|
992
|
-
colNames: J.value.colNames,
|
|
993
|
-
head: J.value.head,
|
|
994
|
-
body: J.value.body,
|
|
995
|
-
config: J.value.config,
|
|
996
|
-
title: e.value.table.useDialog ? "" : E.value.title,
|
|
997
|
-
withCloseButton: !e.value.table.useDialog,
|
|
998
|
-
isCursorPointer: L.value,
|
|
999
|
-
onClose: l[2] || (l[2] = (a) => y.value.showTable = !1)
|
|
1000
|
-
}, {
|
|
1001
|
-
th: i(({ th: a }) => [
|
|
1002
|
-
Je(Z(a), 1)
|
|
1003
|
-
]),
|
|
1004
|
-
td: i(({ td: a }) => [
|
|
1005
|
-
_("div", { innerHTML: a }, null, 8, Ra)
|
|
1006
|
-
]),
|
|
1007
|
-
_: 1
|
|
1008
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1009
|
-
]),
|
|
1010
|
-
_: 2
|
|
1011
|
-
}, [
|
|
1012
|
-
e.value.table.useDialog ? {
|
|
1013
|
-
name: "title",
|
|
1014
|
-
fn: i(() => [
|
|
1015
|
-
Je(Z(E.value.title), 1)
|
|
1016
|
-
]),
|
|
1017
|
-
key: "0"
|
|
1018
|
-
} : void 0,
|
|
1019
|
-
e.value.table.useDialog ? {
|
|
1020
|
-
name: "actions",
|
|
1021
|
-
fn: i(() => [
|
|
1022
|
-
_("button", {
|
|
1023
|
-
tabindex: "0",
|
|
1024
|
-
class: "vue-ui-user-options-button",
|
|
1025
|
-
onClick: l[1] || (l[1] = (a) => ce(e.value.userOptions.callbacks.csv)),
|
|
1026
|
-
style: F({ cursor: L.value ? "pointer" : "default" })
|
|
1027
|
-
}, [
|
|
1028
|
-
fe(s(nt), {
|
|
1029
|
-
name: "fileCsv",
|
|
1030
|
-
stroke: E.value.props.color
|
|
1031
|
-
}, null, 8, ["stroke"])
|
|
1032
|
-
], 4)
|
|
1033
|
-
]),
|
|
1034
|
-
key: "1"
|
|
1035
|
-
} : void 0
|
|
1036
|
-
]), 1040)) : m("", !0),
|
|
1037
|
-
v(t.$slots, "skeleton", {}, () => [
|
|
1038
|
-
s($) ? (r(), x(sa, { key: 0 })) : m("", !0)
|
|
1039
|
-
], !0)
|
|
1040
|
-
], 46, ba));
|
|
1041
|
-
}
|
|
1042
|
-
}, ll = /* @__PURE__ */ ya(za, [["__scopeId", "data-v-9f33c2d6"]]);
|
|
1043
|
-
export {
|
|
1044
|
-
ll as default
|
|
1045
|
-
};
|