vue-data-ui 3.22.7 → 3.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,1200 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Gt as t, Ot as n, Q as r, S as i, Ut as a, W as o, X as ee, at as te, b as ne, i as re, jt as ie, q as s, t as ae, vt as oe, w as se } from "./lib-EAmk-PgA.js";
|
|
3
|
-
import { t as ce } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as le } from "./usePrinter-DnGzpp6Q.js";
|
|
5
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as fe } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as pe } from "./useNestedProp-D8XqxgOU.js";
|
|
8
|
-
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as he } from "./img-B_abIg0o.js";
|
|
10
|
-
import { n as ge } from "./Title-PiTKr6sp.js";
|
|
11
|
-
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { c as ve } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
-
import { t as ye } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as be } from "./BaseLegendToggle-CHnlKalt.js";
|
|
15
|
-
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
-
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
-
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as we } from "./labelUtils-CTDRZdP1.js";
|
|
19
|
-
import { t as Te } from "./Legend-kAr7Vqqu.js";
|
|
20
|
-
import { t as Ee } from "./useAutoSizeLabelsInsideViewbox-CyOGrdD_.js";
|
|
21
|
-
import { t as De } from "./vue_ui_onion-1FTFFS46.js";
|
|
22
|
-
import { Fragment as c, Teleport as Oe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Fe, onMounted as Ie, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as S, toRefs as ze, unref as C, watch as w, withCtx as T } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-onion.vue
|
|
24
|
-
var Be = /* @__PURE__ */ e({ default: () => ct }), Ve = ["id"], He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], Ke = ["width", "height"], qe = [
|
|
29
|
-
"cx",
|
|
30
|
-
"cy",
|
|
31
|
-
"r",
|
|
32
|
-
"stroke",
|
|
33
|
-
"stroke-width",
|
|
34
|
-
"stroke-dasharray",
|
|
35
|
-
"stroke-dashoffset"
|
|
36
|
-
], Je = [
|
|
37
|
-
"cx",
|
|
38
|
-
"cy",
|
|
39
|
-
"r",
|
|
40
|
-
"stroke",
|
|
41
|
-
"stroke-width",
|
|
42
|
-
"stroke-dasharray",
|
|
43
|
-
"stroke-dashoffset"
|
|
44
|
-
], Ye = ["id"], Xe = ["stdDeviation"], Ze = ["filter"], Qe = [
|
|
45
|
-
"cx",
|
|
46
|
-
"cy",
|
|
47
|
-
"r",
|
|
48
|
-
"stroke-width",
|
|
49
|
-
"stroke-dasharray",
|
|
50
|
-
"stroke-dashoffset"
|
|
51
|
-
], $e = [
|
|
52
|
-
"cx",
|
|
53
|
-
"cy",
|
|
54
|
-
"r",
|
|
55
|
-
"stroke-width",
|
|
56
|
-
"stroke-dasharray",
|
|
57
|
-
"stroke-dashoffset",
|
|
58
|
-
"onMouseenter",
|
|
59
|
-
"onMouseleave",
|
|
60
|
-
"onClick"
|
|
61
|
-
], et = { key: 2 }, tt = [
|
|
62
|
-
"onMouseenter",
|
|
63
|
-
"onMouseleave",
|
|
64
|
-
"onClick"
|
|
65
|
-
], nt = [
|
|
66
|
-
"x",
|
|
67
|
-
"y",
|
|
68
|
-
"font-size",
|
|
69
|
-
"fill",
|
|
70
|
-
"font-weight"
|
|
71
|
-
], rt = {
|
|
72
|
-
key: 0,
|
|
73
|
-
style: {
|
|
74
|
-
position: "absolute",
|
|
75
|
-
top: "100%",
|
|
76
|
-
left: "0",
|
|
77
|
-
width: "100%"
|
|
78
|
-
},
|
|
79
|
-
"data-dom-to-png-ignore": "",
|
|
80
|
-
"aria-hidden": "true"
|
|
81
|
-
}, it = {
|
|
82
|
-
key: 5,
|
|
83
|
-
class: "vue-data-ui-watermark"
|
|
84
|
-
}, at = ["id"], ot = ["onClick"], st = ["innerHTML"], ct = /*#__PURE__*/ _e({
|
|
85
|
-
__name: "vue-ui-onion",
|
|
86
|
-
props: {
|
|
87
|
-
config: {
|
|
88
|
-
type: Object,
|
|
89
|
-
default() {
|
|
90
|
-
return {};
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
dataset: {
|
|
94
|
-
type: Array,
|
|
95
|
-
default() {
|
|
96
|
-
return [];
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
emits: ["selectLegend", "copyAlt"],
|
|
101
|
-
setup(e, { expose: _e, emit: Be }) {
|
|
102
|
-
let ct = m(() => import("./Tooltip-B8yYfISA.js")), lt = m(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), ut = m(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), dt = m(() => import("./DataTable-CVF7DoZn.js")), ft = m(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), pt = m(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), mt = m(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), ht = m(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_onion: gt } = ce(), { isThemeValid: _t, warnInvalidTheme: vt } = me(), E = e, yt = l(() => !!E.dataset && E.dataset.length), D = y(o()), bt = y(null), xt = y(0), O = y(!1), St = y(""), k = y([]), A = y(null), Ct = y(null), wt = y(null), Tt = y(null), Et = y(null), Dt = y(0), Ot = y(0), kt = y(0), j = y(!1), At = y(!1), M = y(null), jt = y(!1), Mt = y(!1), N = y(null), Nt = y({
|
|
103
|
-
x: 0,
|
|
104
|
-
y: 0
|
|
105
|
-
}), P = y("pointer"), Pt = y(!1), F = y(Vt()), I = l(() => F.value.userOptions.useCursorPointer), Ft = l(() => t({
|
|
106
|
-
defaultConfig: {
|
|
107
|
-
userOptions: { show: !1 },
|
|
108
|
-
table: { show: !1 },
|
|
109
|
-
style: { chart: {
|
|
110
|
-
backgroundColor: "#99999930",
|
|
111
|
-
layout: {
|
|
112
|
-
gutter: { color: "#99999950" },
|
|
113
|
-
labels: { show: !1 }
|
|
114
|
-
},
|
|
115
|
-
legend: { backgroundColor: "transparent" }
|
|
116
|
-
} }
|
|
117
|
-
},
|
|
118
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
119
|
-
})), { loading: L, FINAL_DATASET: It, manualLoading: Lt } = ue({
|
|
120
|
-
...ze(E),
|
|
121
|
-
FINAL_CONFIG: F,
|
|
122
|
-
prepareConfig: Vt,
|
|
123
|
-
callback: () => {
|
|
124
|
-
Promise.resolve().then(async () => {
|
|
125
|
-
await Ne(), rn();
|
|
126
|
-
});
|
|
127
|
-
},
|
|
128
|
-
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
129
|
-
{
|
|
130
|
-
name: "_",
|
|
131
|
-
percentage: 50,
|
|
132
|
-
value: 1,
|
|
133
|
-
color: "#DBDBDB"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "_",
|
|
137
|
-
percentage: 50,
|
|
138
|
-
value: 1,
|
|
139
|
-
color: "#C4C4C4"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "_",
|
|
143
|
-
percentage: 50,
|
|
144
|
-
value: 1,
|
|
145
|
-
color: "#ADADAD"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "_",
|
|
149
|
-
percentage: 50,
|
|
150
|
-
value: 1,
|
|
151
|
-
color: "#969696"
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
skeletonConfig: t({
|
|
155
|
-
defaultConfig: F.value,
|
|
156
|
-
userConfig: Ft.value
|
|
157
|
-
})
|
|
158
|
-
}), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Se({ config: F.value }), { svgRef: R } = Ce({ config: F.value.style.chart.title });
|
|
159
|
-
function Vt() {
|
|
160
|
-
let e = pe({
|
|
161
|
-
userConfig: E.config,
|
|
162
|
-
defaultConfig: gt
|
|
163
|
-
}), t = e.theme;
|
|
164
|
-
if (!t) return e;
|
|
165
|
-
if (!_t.value(e)) return vt(e), e;
|
|
166
|
-
let n = pe({
|
|
167
|
-
userConfig: De[t] || E.config,
|
|
168
|
-
defaultConfig: e
|
|
169
|
-
}), r = pe({
|
|
170
|
-
userConfig: E.config,
|
|
171
|
-
defaultConfig: n
|
|
172
|
-
});
|
|
173
|
-
return {
|
|
174
|
-
...r,
|
|
175
|
-
customPalette: r.customPalette.length ? r.customPalette : a[t] || ie
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
w(() => E.config, (e) => {
|
|
179
|
-
L.value || (F.value = Vt()), Rt.value = !F.value.userOptions.showOnChartHover, Qt(), Dt.value += 1, Ot.value += 1, kt.value += 1, z.value.showTable = F.value.table.show, z.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
180
|
-
}, { deep: !0 });
|
|
181
|
-
let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = le({
|
|
182
|
-
elementId: `vue-ui-onion_${D.value}`,
|
|
183
|
-
fileName: F.value.style.chart.title.text || "vue-ui-onion",
|
|
184
|
-
options: F.value.userOptions.print
|
|
185
|
-
}), Kt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), qt = l(() => i(F.value.customPalette)), z = y({
|
|
186
|
-
showTable: F.value.table.show,
|
|
187
|
-
showTooltip: F.value.style.chart.tooltip.show
|
|
188
|
-
});
|
|
189
|
-
w(F, () => {
|
|
190
|
-
z.value = {
|
|
191
|
-
showTable: F.value.table.show,
|
|
192
|
-
showTooltip: F.value.style.chart.tooltip.show
|
|
193
|
-
};
|
|
194
|
-
}, { immediate: !0 });
|
|
195
|
-
let B = y({
|
|
196
|
-
height: 512,
|
|
197
|
-
width: 512,
|
|
198
|
-
padding: {
|
|
199
|
-
top: 64,
|
|
200
|
-
left: 64,
|
|
201
|
-
right: 64,
|
|
202
|
-
bottom: 64
|
|
203
|
-
},
|
|
204
|
-
minRadius: 64
|
|
205
|
-
}), V = Re(null), H = Re(null);
|
|
206
|
-
Ie(() => {
|
|
207
|
-
At.value = !0, Qt();
|
|
208
|
-
});
|
|
209
|
-
let Jt = l({
|
|
210
|
-
get: () => F.value.style.chart.layout.labels.fontSize,
|
|
211
|
-
set: (e) => e
|
|
212
|
-
}), { autoSizeLabels: Yt } = Ee({
|
|
213
|
-
svgRef: R,
|
|
214
|
-
fontSize: F.value.style.chart.layout.labels.fontSize,
|
|
215
|
-
minFontSize: F.value.style.chart.layout.labels.minFontSize,
|
|
216
|
-
sizeRef: Jt,
|
|
217
|
-
labelClass: ".vue-ui-onion-label"
|
|
218
|
-
}), Xt = l(() => F.value.debug), Zt = null;
|
|
219
|
-
function Qt() {
|
|
220
|
-
if (n(E.dataset) && (r({
|
|
221
|
-
componentName: "VueUiOnion",
|
|
222
|
-
type: "dataset",
|
|
223
|
-
debug: Xt.value
|
|
224
|
-
}), Lt.value = !0), n(E.dataset) || (Lt.value = F.value.loading), F.value.responsive) {
|
|
225
|
-
let e = 64 / 512, t = ve(() => {
|
|
226
|
-
Zt && clearTimeout(Zt), j.value = !0;
|
|
227
|
-
let { width: t, height: n } = ye({
|
|
228
|
-
chart: A.value,
|
|
229
|
-
title: F.value.style.chart.title.text ? Ct.value : null,
|
|
230
|
-
legend: F.value.style.chart.legend.show ? wt.value : null,
|
|
231
|
-
source: Tt.value,
|
|
232
|
-
noTitle: Et.value
|
|
233
|
-
});
|
|
234
|
-
n -= 12, requestAnimationFrame(async () => {
|
|
235
|
-
B.value.width = t, B.value.height = n, B.value.padding.top = Math.max(t, n) * e, B.value.padding.right = Math.max(t, n) * e, B.value.padding.bottom = Math.max(t, n) * e, B.value.padding.left = Math.max(t, n) * e, B.value.minRadius = Math.min(t, n) * e, Zt = setTimeout(() => {
|
|
236
|
-
j.value = !1, Yt();
|
|
237
|
-
}, 0);
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(t), H.value = A.value.parentNode, V.value.observe(H.value);
|
|
241
|
-
}
|
|
242
|
-
requestAnimationFrame(Yt);
|
|
243
|
-
}
|
|
244
|
-
Fe(() => {
|
|
245
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
246
|
-
});
|
|
247
|
-
let U = l(() => ({
|
|
248
|
-
top: B.value.padding.top,
|
|
249
|
-
left: B.value.padding.left,
|
|
250
|
-
right: B.value.width - B.value.padding.right,
|
|
251
|
-
bottom: B.value.height - B.value.padding.bottom,
|
|
252
|
-
centerX: B.value.width / 2,
|
|
253
|
-
centerY: B.value.height / 2,
|
|
254
|
-
width: B.value.width - B.value.padding.right - B.value.padding.left,
|
|
255
|
-
height: B.value.height - B.value.padding.bottom - B.value.padding.top,
|
|
256
|
-
minRadius: B.value.minRadius,
|
|
257
|
-
maxRadius: Math.min(B.value.width, B.value.height) - B.value.padding.top * 2
|
|
258
|
-
})), W = l(() => (It.value.forEach((e, t) => {
|
|
259
|
-
[null, void 0].includes(e.name) && r({
|
|
260
|
-
componentName: "VueUiOnion",
|
|
261
|
-
type: "datasetSerieAttribute",
|
|
262
|
-
property: "name",
|
|
263
|
-
index: t
|
|
264
|
-
}), [void 0].includes(e.percentage) && r({
|
|
265
|
-
componentName: "VueUiOnion",
|
|
266
|
-
type: "datasetSerieAttribute",
|
|
267
|
-
property: "percentage",
|
|
268
|
-
index: t
|
|
269
|
-
});
|
|
270
|
-
}), It.value.map((e, t) => {
|
|
271
|
-
let n = `onion_serie_${t}_${D.value}`;
|
|
272
|
-
return {
|
|
273
|
-
...e,
|
|
274
|
-
percentage: e.percentage || 0,
|
|
275
|
-
targetPercentage: e.percentage || 0,
|
|
276
|
-
color: ne(e.color) || qt.value[t] || ie[t],
|
|
277
|
-
id: n,
|
|
278
|
-
shape: "circle",
|
|
279
|
-
opacity: k.value.includes(n) ? .5 : 1,
|
|
280
|
-
absoluteIndex: t,
|
|
281
|
-
segregate: () => un(n),
|
|
282
|
-
isSegregated: k.value.includes(n)
|
|
283
|
-
};
|
|
284
|
-
}))), G = l(() => W.value.map((e, t) => {
|
|
285
|
-
let n = F.value.style.chart.legend.showValue, r = F.value.style.chart.legend.showPercentage, i = bn({
|
|
286
|
-
showVal: n,
|
|
287
|
-
showPercentage: r,
|
|
288
|
-
val: re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
|
|
289
|
-
p: e.prefix || "",
|
|
290
|
-
v: e.value,
|
|
291
|
-
s: e.suffix || "",
|
|
292
|
-
r: F.value.style.chart.legend.roundingValue
|
|
293
|
-
})),
|
|
294
|
-
percentage: s({
|
|
295
|
-
v: e.percentage ?? 0,
|
|
296
|
-
s: "%",
|
|
297
|
-
r: F.value.style.chart.legend.roundingPercentage
|
|
298
|
-
}),
|
|
299
|
-
config: F.value.style.chart.legend
|
|
300
|
-
});
|
|
301
|
-
return {
|
|
302
|
-
...e,
|
|
303
|
-
display: `${e.name}${n || r ? ": " : ""}${i}`
|
|
304
|
-
};
|
|
305
|
-
})), K = y(W.value), $t = l(() => F.value.useStartAnimation), en = y(null), tn = l(() => Math.max(...W.value.map((e) => e.percentage))), nn = y(!1);
|
|
306
|
-
w(() => W.value, rn, {
|
|
307
|
-
immediate: !0,
|
|
308
|
-
deep: !0
|
|
309
|
-
}), w(() => E.dataset, (e) => {
|
|
310
|
-
Array.isArray(e) && e.length > 0 && (Lt.value = !1);
|
|
311
|
-
}, { deep: !0 });
|
|
312
|
-
function rn() {
|
|
313
|
-
if ($t.value && !nn.value && !L.value) {
|
|
314
|
-
K.value = W.value.map((e) => ({
|
|
315
|
-
...e,
|
|
316
|
-
percentage: 0
|
|
317
|
-
}));
|
|
318
|
-
let e = 0;
|
|
319
|
-
function t() {
|
|
320
|
-
e >= tn.value ? (cancelAnimationFrame(en.value), K.value = W.value, nn.value = !0) : (K.value = W.value.map((t) => ({
|
|
321
|
-
...t,
|
|
322
|
-
percentage: e < t.targetPercentage ? e : t.targetPercentage
|
|
323
|
-
})), e += 1, requestAnimationFrame(t), nn.value = !0);
|
|
324
|
-
}
|
|
325
|
-
t();
|
|
326
|
-
} else K.value = W.value;
|
|
327
|
-
}
|
|
328
|
-
let an = l(() => ({
|
|
329
|
-
cy: "onion-div-legend",
|
|
330
|
-
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
331
|
-
color: F.value.style.chart.legend.color,
|
|
332
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
333
|
-
paddingBottom: 12,
|
|
334
|
-
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
335
|
-
})), on = l(() => W.value.filter((e) => !k.value.includes(e.id)).length), q = l(() => {
|
|
336
|
-
let e = Math.min(U.value.width, U.value.height) / 2 / W.value.length;
|
|
337
|
-
return {
|
|
338
|
-
gutter: (e > F.value.style.chart.layout.maxThickness ? F.value.style.chart.layout.maxThickness : e) * F.value.style.chart.layout.gutter.width,
|
|
339
|
-
track: (e > F.value.style.chart.layout.maxThickness ? F.value.style.chart.layout.maxThickness : e) * F.value.style.chart.layout.track.width
|
|
340
|
-
};
|
|
341
|
-
}), J = l(() => K.value.filter((e) => !k.value.includes(e.id)).map((e, t) => {
|
|
342
|
-
let n = (U.value.maxRadius - q.value.track) / on.value / 2 * (1 + t), r = U.value.centerY - n;
|
|
343
|
-
return {
|
|
344
|
-
percentage: e.percentage || 0,
|
|
345
|
-
...e,
|
|
346
|
-
labelY: r,
|
|
347
|
-
radius: n,
|
|
348
|
-
path: sn(n, e.percentage || 0)
|
|
349
|
-
};
|
|
350
|
-
}));
|
|
351
|
-
function sn(e, t) {
|
|
352
|
-
let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
|
|
353
|
-
return {
|
|
354
|
-
bgDashArray: `${r} ${n}`,
|
|
355
|
-
bgDashOffset: 0,
|
|
356
|
-
dashArray: i,
|
|
357
|
-
dashOffset: a,
|
|
358
|
-
fullOffset: 0,
|
|
359
|
-
active: `
|
|
360
|
-
M ${U.value.centerX},${U.value.centerY - e}
|
|
361
|
-
A ${e},${e} 0 1 1
|
|
362
|
-
${U.value.centerX + e * Math.cos(Math.PI * 3 / 4)},${U.value.centerY + e * Math.sin(Math.PI * 3 / 4)}
|
|
363
|
-
`.trim()
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
let cn = Be;
|
|
367
|
-
function ln() {
|
|
368
|
-
k.value.length ? k.value = [] : G.value.forEach((e) => {
|
|
369
|
-
k.value.push(e.id);
|
|
370
|
-
}), cn("selectLegend", J.value);
|
|
371
|
-
}
|
|
372
|
-
function un(e) {
|
|
373
|
-
if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e);
|
|
374
|
-
else {
|
|
375
|
-
if (k.value.length === W.value.length - 1) return;
|
|
376
|
-
k.value.push(e);
|
|
377
|
-
}
|
|
378
|
-
cn("selectLegend", J.value);
|
|
379
|
-
}
|
|
380
|
-
function dn(e) {
|
|
381
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiOnion - There are no series to show."), null);
|
|
382
|
-
}
|
|
383
|
-
function fn(e) {
|
|
384
|
-
let t = dn(e);
|
|
385
|
-
t !== null && k.value.includes(t.id) && un(t.id);
|
|
386
|
-
}
|
|
387
|
-
function pn(e) {
|
|
388
|
-
let t = dn(e);
|
|
389
|
-
t !== null && (k.value.includes(t.id) || un(t.id));
|
|
390
|
-
}
|
|
391
|
-
function mn() {
|
|
392
|
-
return J.value;
|
|
393
|
-
}
|
|
394
|
-
let hn = l(() => ({
|
|
395
|
-
head: [
|
|
396
|
-
F.value.table.translations.serie,
|
|
397
|
-
F.value.table.translations.percentage,
|
|
398
|
-
F.value.table.translations.value
|
|
399
|
-
],
|
|
400
|
-
body: J.value.map((e) => [
|
|
401
|
-
e.name,
|
|
402
|
-
e.percentage,
|
|
403
|
-
e.value
|
|
404
|
-
])
|
|
405
|
-
})), Y = l(() => {
|
|
406
|
-
let e = hn.value.head;
|
|
407
|
-
return {
|
|
408
|
-
head: e,
|
|
409
|
-
body: J.value.map((e) => [
|
|
410
|
-
`<span style="color:${e.color}" aria-hidden="true">⬤</span> ${e.name}`,
|
|
411
|
-
`${Number(e.percentage ?? 0).toFixed(F.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
412
|
-
`${e.prefix || ""}${[
|
|
413
|
-
null,
|
|
414
|
-
void 0,
|
|
415
|
-
NaN,
|
|
416
|
-
"NaN"
|
|
417
|
-
].includes(e.value) ? "-" : e.value.toFixed(F.value.table.td.roundingValue).toLocaleString()}${e.suffix || ""}`
|
|
418
|
-
]),
|
|
419
|
-
config: {
|
|
420
|
-
th: {
|
|
421
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
422
|
-
color: F.value.table.th.color,
|
|
423
|
-
outline: F.value.table.th.outline
|
|
424
|
-
},
|
|
425
|
-
td: {
|
|
426
|
-
backgroundColor: F.value.table.td.backgroundColor,
|
|
427
|
-
color: F.value.table.td.color,
|
|
428
|
-
outline: F.value.table.td.outline
|
|
429
|
-
},
|
|
430
|
-
breakpoint: F.value.table.responsiveBreakpoint
|
|
431
|
-
},
|
|
432
|
-
colNames: e
|
|
433
|
-
};
|
|
434
|
-
});
|
|
435
|
-
function gn(e = null) {
|
|
436
|
-
Ne(() => {
|
|
437
|
-
let t = [
|
|
438
|
-
[F.value.style.chart.title.text],
|
|
439
|
-
[F.value.style.chart.title.subtitle.text],
|
|
440
|
-
[""]
|
|
441
|
-
], n = hn.value.head, r = hn.value.body, i = se(t.concat([n]).concat(r));
|
|
442
|
-
e ? e(i) : ee({
|
|
443
|
-
csvContent: i,
|
|
444
|
-
title: F.value.style.chart.title.text || "vue-ui-onion"
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
let X = y(void 0), Z = y(!1);
|
|
449
|
-
function _n(e) {
|
|
450
|
-
Z.value = e, xt.value += 1;
|
|
451
|
-
}
|
|
452
|
-
function vn({ datapoint: e }) {
|
|
453
|
-
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
454
|
-
datapoint: e,
|
|
455
|
-
seriesIndex: e.absoluteIndex
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
function yn({ datapoint: e }) {
|
|
459
|
-
X.value = void 0, O.value = !1, N.value = null, P.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
460
|
-
datapoint: e,
|
|
461
|
-
seriesIndex: e.absoluteIndex
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
function bn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
465
|
-
return we({
|
|
466
|
-
config: i,
|
|
467
|
-
val: e,
|
|
468
|
-
percentage: t,
|
|
469
|
-
showVal: n,
|
|
470
|
-
showPercentage: r
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
function xn(e, t) {
|
|
474
|
-
let n = F.value.style.chart.layout.labels.value.show, r = F.value.style.chart.layout.labels.percentage.show, i = bn({
|
|
475
|
-
config: F.value.style.chart.layout.labels,
|
|
476
|
-
showVal: n,
|
|
477
|
-
showPercentage: r,
|
|
478
|
-
val: re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
|
|
479
|
-
p: e.prefix || "",
|
|
480
|
-
v: e.value || 0,
|
|
481
|
-
s: e.suffix || "",
|
|
482
|
-
r: F.value.style.chart.layout.labels.roundingValue
|
|
483
|
-
}), {
|
|
484
|
-
datapoint: e,
|
|
485
|
-
seriesIndex: t
|
|
486
|
-
}),
|
|
487
|
-
percentage: s({
|
|
488
|
-
v: e.percentage,
|
|
489
|
-
s: "%",
|
|
490
|
-
r: F.value.style.chart.layout.labels.roundingPercentage
|
|
491
|
-
})
|
|
492
|
-
});
|
|
493
|
-
return `${e.name}${n || r ? ": " : ""}${i}`;
|
|
494
|
-
}
|
|
495
|
-
let Sn = y(null);
|
|
496
|
-
function Cn({ datapoint: e, seriesIndex: t, show: n = !0, triggerMode: r = "pointer" }) {
|
|
497
|
-
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
498
|
-
datapoint: e,
|
|
499
|
-
seriesIndex: e.absoluteIndex
|
|
500
|
-
}), P.value = r, N.value = t;
|
|
501
|
-
let i = e.absoluteIndex;
|
|
502
|
-
X.value = t, Sn.value = {
|
|
503
|
-
datapoint: e,
|
|
504
|
-
seriesIndex: i,
|
|
505
|
-
series: W.value,
|
|
506
|
-
config: F.value
|
|
507
|
-
}, O.value = n;
|
|
508
|
-
let a = "", o = F.value.style.chart.tooltip.customFormat;
|
|
509
|
-
if (oe(o) && te(() => o({
|
|
510
|
-
seriesIndex: i,
|
|
511
|
-
datapoint: e,
|
|
512
|
-
series: W.value,
|
|
513
|
-
config: F.value
|
|
514
|
-
}))) St.value = o({
|
|
515
|
-
seriesIndex: i,
|
|
516
|
-
datapoint: e,
|
|
517
|
-
series: W.value,
|
|
518
|
-
config: F.value
|
|
519
|
-
});
|
|
520
|
-
else {
|
|
521
|
-
let n = F.value.style.chart.tooltip.showPercentage, r = F.value.style.chart.tooltip.showValue;
|
|
522
|
-
a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<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="${e.color}"/></svg>`, a += `<b>${bn({
|
|
523
|
-
config: F.value.style.chart.tooltip,
|
|
524
|
-
showVal: r,
|
|
525
|
-
showPercentage: n,
|
|
526
|
-
val: `<span>${re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
|
|
527
|
-
p: e.prefix || "",
|
|
528
|
-
v: e.value,
|
|
529
|
-
s: e.suffix || "",
|
|
530
|
-
r: F.value.style.chart.tooltip.roundingValue
|
|
531
|
-
}), {
|
|
532
|
-
datapoint: e,
|
|
533
|
-
seriesIndex: t
|
|
534
|
-
})}</span>`,
|
|
535
|
-
percentage: s({
|
|
536
|
-
v: e.percentage,
|
|
537
|
-
s: "%",
|
|
538
|
-
r: F.value.style.chart.tooltip.roundingPercentage
|
|
539
|
-
})
|
|
540
|
-
})}</b></div>`, St.value = `<div>${a}</div>`;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
function wn() {
|
|
544
|
-
z.value.showTable = !z.value.showTable;
|
|
545
|
-
}
|
|
546
|
-
function Tn() {
|
|
547
|
-
z.value.showTooltip = !z.value.showTooltip;
|
|
548
|
-
}
|
|
549
|
-
let Q = y(!1);
|
|
550
|
-
function En() {
|
|
551
|
-
Q.value = !Q.value;
|
|
552
|
-
}
|
|
553
|
-
async function Dn({ scale: e = 2 } = {}) {
|
|
554
|
-
if (!A.value) return;
|
|
555
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
556
|
-
domElement: A.value,
|
|
557
|
-
base64: !0,
|
|
558
|
-
img: !0,
|
|
559
|
-
scale: e
|
|
560
|
-
});
|
|
561
|
-
return {
|
|
562
|
-
imageUri: i,
|
|
563
|
-
base64: a,
|
|
564
|
-
title: F.value.style.chart.title.text,
|
|
565
|
-
width: t,
|
|
566
|
-
height: n,
|
|
567
|
-
aspectRatio: r
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
let $ = l(() => {
|
|
571
|
-
let e = F.value.table.useDialog && !F.value.table.show, t = z.value.showTable;
|
|
572
|
-
return {
|
|
573
|
-
component: e ? ht : ut,
|
|
574
|
-
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
575
|
-
props: e ? {
|
|
576
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
577
|
-
color: F.value.table.th.color,
|
|
578
|
-
headerColor: F.value.table.th.color,
|
|
579
|
-
headerBg: F.value.table.th.backgroundColor,
|
|
580
|
-
isFullscreen: Z.value,
|
|
581
|
-
fullscreenParent: A.value,
|
|
582
|
-
forcedWidth: Math.min(600, window.innerWidth * .8),
|
|
583
|
-
isCursorPointer: I.value
|
|
584
|
-
} : {
|
|
585
|
-
hideDetails: !0,
|
|
586
|
-
config: {
|
|
587
|
-
open: t,
|
|
588
|
-
maxHeight: 1e4,
|
|
589
|
-
body: {
|
|
590
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
591
|
-
color: F.value.style.chart.color
|
|
592
|
-
},
|
|
593
|
-
head: {
|
|
594
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
595
|
-
color: F.value.style.chart.color
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
});
|
|
601
|
-
w(() => z.value.showTable, (e) => {
|
|
602
|
-
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
603
|
-
});
|
|
604
|
-
let On = l(() => G.value.map((e) => ({
|
|
605
|
-
...e,
|
|
606
|
-
name: e.display
|
|
607
|
-
}))), kn = l(() => F.value.style.chart.backgroundColor), An = l(() => F.value.style.chart.legend), { exportSvg: jn, getSvg: Mn } = fe({
|
|
608
|
-
svg: R,
|
|
609
|
-
title: l(() => F.value.style.chart.title),
|
|
610
|
-
legend: An,
|
|
611
|
-
legendItems: On,
|
|
612
|
-
backgroundColor: kn
|
|
613
|
-
});
|
|
614
|
-
async function Nn({ isCb: e }) {
|
|
615
|
-
Mt.value = !0, await Ne();
|
|
616
|
-
try {
|
|
617
|
-
if (e) {
|
|
618
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Mn();
|
|
619
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
620
|
-
blob: e,
|
|
621
|
-
url: t,
|
|
622
|
-
text: n,
|
|
623
|
-
dataUrl: r
|
|
624
|
-
}));
|
|
625
|
-
} else await Promise.resolve(jn());
|
|
626
|
-
} finally {
|
|
627
|
-
Mt.value = !1;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
function Pn(e) {
|
|
631
|
-
if (e?.stage === "start") {
|
|
632
|
-
jt.value = !0;
|
|
633
|
-
return;
|
|
634
|
-
}
|
|
635
|
-
if (e?.stage === "end") {
|
|
636
|
-
jt.value = !1;
|
|
637
|
-
return;
|
|
638
|
-
}
|
|
639
|
-
Gt();
|
|
640
|
-
}
|
|
641
|
-
async function Fn() {
|
|
642
|
-
if (cn("copyAlt", {
|
|
643
|
-
config: F.value,
|
|
644
|
-
dataset: J.value
|
|
645
|
-
}), !F.value.userOptions.callbacks.altCopy) {
|
|
646
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
650
|
-
config: F.value,
|
|
651
|
-
dataset: J.value
|
|
652
|
-
}));
|
|
653
|
-
}
|
|
654
|
-
function In() {
|
|
655
|
-
N.value = null, Pt.value = !0;
|
|
656
|
-
}
|
|
657
|
-
function Ln() {
|
|
658
|
-
N.value = null, P.value = "pointer", O.value = !1, X.value = void 0, Pt.value = !1;
|
|
659
|
-
}
|
|
660
|
-
function Rn(e) {
|
|
661
|
-
if (!R.value || Q.value || document.activeElement !== R.value || !J.value.length) return;
|
|
662
|
-
let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
663
|
-
if (!t && !n && !r && !i) return;
|
|
664
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
665
|
-
N.value = null, P.value = "pointer", O.value = !1, X.value = void 0;
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
if (r) {
|
|
669
|
-
if (N.value === null) return;
|
|
670
|
-
let e = J.value[N.value];
|
|
671
|
-
if (!e) return;
|
|
672
|
-
vn({ datapoint: e });
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
let a = N.value;
|
|
676
|
-
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1));
|
|
677
|
-
let o = J.value[a];
|
|
678
|
-
o && (zn(a), Cn({
|
|
679
|
-
datapoint: o,
|
|
680
|
-
seriesIndex: a,
|
|
681
|
-
show: !0,
|
|
682
|
-
triggerMode: "keyboard"
|
|
683
|
-
}));
|
|
684
|
-
}
|
|
685
|
-
function zn(e) {
|
|
686
|
-
if (!Number.isFinite(e) || !R.value) return;
|
|
687
|
-
let t = J.value[e];
|
|
688
|
-
if (!t) return;
|
|
689
|
-
let n = t.radius, r = Math.PI * 7 / 4, i = U.value.centerX + n * Math.cos(r), a = U.value.centerY + n * Math.sin(r), o = R.value.getBoundingClientRect();
|
|
690
|
-
Nt.value = {
|
|
691
|
-
x: o.left + i / B.value.width * o.width,
|
|
692
|
-
y: o.top + a / B.value.height * o.height
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
let Bn = l(() => ({
|
|
696
|
-
headers: Y.value?.colNames ?? [],
|
|
697
|
-
rows: Y.value?.body ?? []
|
|
698
|
-
}));
|
|
699
|
-
return _e({
|
|
700
|
-
getData: mn,
|
|
701
|
-
getImage: Dn,
|
|
702
|
-
generatePdf: Wt,
|
|
703
|
-
generateCsv: gn,
|
|
704
|
-
generateImage: Gt,
|
|
705
|
-
generateSvg: Nn,
|
|
706
|
-
hideSeries: pn,
|
|
707
|
-
showSeries: fn,
|
|
708
|
-
toggleTable: wn,
|
|
709
|
-
toggleTooltip: Tn,
|
|
710
|
-
toggleAnnotator: En,
|
|
711
|
-
toggleFullscreen: _n,
|
|
712
|
-
copyAlt: Fn
|
|
713
|
-
}), (e, t) => (v(), f("div", {
|
|
714
|
-
class: Pe(`vue-data-ui-component vue-ui-onion ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
715
|
-
ref_key: "onionChart",
|
|
716
|
-
ref: A,
|
|
717
|
-
id: `vue-ui-onion_${D.value}`,
|
|
718
|
-
style: _(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
719
|
-
onMouseenter: t[4] ||= () => C(zt)(!0),
|
|
720
|
-
onMouseleave: t[5] ||= () => C(zt)(!1)
|
|
721
|
-
}, [
|
|
722
|
-
p("div", {
|
|
723
|
-
id: `chart-instructions-${D.value}`,
|
|
724
|
-
class: "sr-only"
|
|
725
|
-
}, [p("p", null, S(F.value.a11y.translations.keyboardNavigation), 1)], 8, He),
|
|
726
|
-
Bn.value?.rows?.length ? (v(), u(xe, {
|
|
727
|
-
key: 0,
|
|
728
|
-
uid: D.value,
|
|
729
|
-
head: Bn.value.headers,
|
|
730
|
-
body: Bn.value.rows,
|
|
731
|
-
notice: F.value.a11y.translations.tableAvailable,
|
|
732
|
-
caption: F.value.a11y.translations.tableCaption
|
|
733
|
-
}, null, 8, [
|
|
734
|
-
"uid",
|
|
735
|
-
"head",
|
|
736
|
-
"body",
|
|
737
|
-
"notice",
|
|
738
|
-
"caption"
|
|
739
|
-
])) : d("", !0),
|
|
740
|
-
F.value.userOptions.buttons.annotator ? (v(), u(C(pt), {
|
|
741
|
-
key: 1,
|
|
742
|
-
svgRef: C(R),
|
|
743
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
744
|
-
color: F.value.style.chart.color,
|
|
745
|
-
active: Q.value,
|
|
746
|
-
isCursorPointer: I.value,
|
|
747
|
-
onClose: En
|
|
748
|
-
}, {
|
|
749
|
-
"annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
750
|
-
"annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
751
|
-
"annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
752
|
-
"annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
753
|
-
"annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
754
|
-
"annotator-action-delete": T(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
755
|
-
_: 3
|
|
756
|
-
}, 8, [
|
|
757
|
-
"svgRef",
|
|
758
|
-
"backgroundColor",
|
|
759
|
-
"color",
|
|
760
|
-
"active",
|
|
761
|
-
"isCursorPointer"
|
|
762
|
-
])) : d("", !0),
|
|
763
|
-
Kt.value ? (v(), f("div", {
|
|
764
|
-
key: 2,
|
|
765
|
-
ref_key: "noTitle",
|
|
766
|
-
ref: Et,
|
|
767
|
-
class: "vue-data-ui-no-title-space",
|
|
768
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
769
|
-
}, null, 512)) : d("", !0),
|
|
770
|
-
F.value.style.chart.title.text ? (v(), f("div", {
|
|
771
|
-
key: 3,
|
|
772
|
-
ref_key: "chartTitle",
|
|
773
|
-
ref: Ct,
|
|
774
|
-
style: "width:100%;background:transparent"
|
|
775
|
-
}, [(v(), u(ge, {
|
|
776
|
-
key: `title_${Dt.value}`,
|
|
777
|
-
config: {
|
|
778
|
-
title: {
|
|
779
|
-
cy: "onion-div-title",
|
|
780
|
-
...F.value.style.chart.title
|
|
781
|
-
},
|
|
782
|
-
subtitle: {
|
|
783
|
-
cy: "onion-div-subtitle",
|
|
784
|
-
...F.value.style.chart.title.subtitle
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
788
|
-
p("div", { id: `legend-top-${D.value}` }, null, 8, Ue),
|
|
789
|
-
F.value.userOptions.show && yt.value && (C(Bt) || C(Rt)) ? (v(), u(C(ft), {
|
|
790
|
-
ref_key: "details",
|
|
791
|
-
ref: bt,
|
|
792
|
-
key: `user_options${xt.value}`,
|
|
793
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
794
|
-
color: F.value.style.chart.color,
|
|
795
|
-
isImaging: C(Ut),
|
|
796
|
-
isPrinting: C(Ht),
|
|
797
|
-
uid: D.value,
|
|
798
|
-
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
799
|
-
hasPdf: F.value.userOptions.buttons.pdf,
|
|
800
|
-
hasImg: F.value.userOptions.buttons.img,
|
|
801
|
-
hasSvg: F.value.userOptions.buttons.svg,
|
|
802
|
-
hasXls: F.value.userOptions.buttons.csv,
|
|
803
|
-
hasTable: F.value.userOptions.buttons.table,
|
|
804
|
-
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
805
|
-
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
806
|
-
isFullscreen: Z.value,
|
|
807
|
-
isTooltip: z.value.showTooltip,
|
|
808
|
-
titles: { ...F.value.userOptions.buttonTitles },
|
|
809
|
-
chartElement: A.value,
|
|
810
|
-
position: F.value.userOptions.position,
|
|
811
|
-
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
812
|
-
isAnnotation: Q.value,
|
|
813
|
-
callbacks: F.value.userOptions.callbacks,
|
|
814
|
-
printScale: F.value.userOptions.print.scale,
|
|
815
|
-
tableDialog: F.value.table.useDialog,
|
|
816
|
-
isCursorPointer: I.value,
|
|
817
|
-
onToggleFullscreen: _n,
|
|
818
|
-
onGeneratePdf: C(Wt),
|
|
819
|
-
onGenerateCsv: gn,
|
|
820
|
-
onGenerateImage: Pn,
|
|
821
|
-
onGenerateSvg: Nn,
|
|
822
|
-
onToggleTable: wn,
|
|
823
|
-
onToggleTooltip: Tn,
|
|
824
|
-
onToggleAnnotator: En,
|
|
825
|
-
onCopyAlt: Fn,
|
|
826
|
-
style: _({ visibility: C(Bt) ? C(Rt) ? "visible" : "hidden" : "visible" })
|
|
827
|
-
}, ke({ _: 2 }, [
|
|
828
|
-
e.$slots.menuIcon ? {
|
|
829
|
-
name: "menuIcon",
|
|
830
|
-
fn: T(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
831
|
-
isOpen: t,
|
|
832
|
-
color: n
|
|
833
|
-
})), void 0, !0)]),
|
|
834
|
-
key: "0"
|
|
835
|
-
} : void 0,
|
|
836
|
-
e.$slots.optionTooltip ? {
|
|
837
|
-
name: "optionTooltip",
|
|
838
|
-
fn: T(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
839
|
-
key: "1"
|
|
840
|
-
} : void 0,
|
|
841
|
-
e.$slots.optionPdf ? {
|
|
842
|
-
name: "optionPdf",
|
|
843
|
-
fn: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
844
|
-
key: "2"
|
|
845
|
-
} : void 0,
|
|
846
|
-
e.$slots.optionCsv ? {
|
|
847
|
-
name: "optionCsv",
|
|
848
|
-
fn: T(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
849
|
-
key: "3"
|
|
850
|
-
} : void 0,
|
|
851
|
-
e.$slots.optionImg ? {
|
|
852
|
-
name: "optionImg",
|
|
853
|
-
fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
854
|
-
key: "4"
|
|
855
|
-
} : void 0,
|
|
856
|
-
e.$slots.optionSvg ? {
|
|
857
|
-
name: "optionSvg",
|
|
858
|
-
fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
859
|
-
key: "5"
|
|
860
|
-
} : void 0,
|
|
861
|
-
e.$slots.optionTable ? {
|
|
862
|
-
name: "optionTable",
|
|
863
|
-
fn: T(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
864
|
-
key: "6"
|
|
865
|
-
} : void 0,
|
|
866
|
-
e.$slots.optionFullscreen ? {
|
|
867
|
-
name: "optionFullscreen",
|
|
868
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
869
|
-
toggleFullscreen: t,
|
|
870
|
-
isFullscreen: n
|
|
871
|
-
})), void 0, !0)]),
|
|
872
|
-
key: "7"
|
|
873
|
-
} : void 0,
|
|
874
|
-
e.$slots.optionAnnotator ? {
|
|
875
|
-
name: "optionAnnotator",
|
|
876
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
877
|
-
toggleAnnotator: t,
|
|
878
|
-
isAnnotator: n
|
|
879
|
-
})), void 0, !0)]),
|
|
880
|
-
key: "8"
|
|
881
|
-
} : void 0,
|
|
882
|
-
e.$slots.optionAltCopy ? {
|
|
883
|
-
name: "optionAltCopy",
|
|
884
|
-
fn: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
885
|
-
key: "9"
|
|
886
|
-
} : void 0,
|
|
887
|
-
e.$slots["custom-menu-before"] ? {
|
|
888
|
-
name: "custom-menu-before",
|
|
889
|
-
fn: T(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
890
|
-
key: "10"
|
|
891
|
-
} : void 0,
|
|
892
|
-
e.$slots["custom-menu-after"] ? {
|
|
893
|
-
name: "custom-menu-after",
|
|
894
|
-
fn: T(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
895
|
-
key: "11"
|
|
896
|
-
} : void 0
|
|
897
|
-
]), 1032, /* @__PURE__ */ "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".split("."))) : d("", !0),
|
|
898
|
-
p("div", We, [(v(), f("svg", {
|
|
899
|
-
ref_key: "svgRef",
|
|
900
|
-
ref: R,
|
|
901
|
-
xmlns: C(ae),
|
|
902
|
-
"aria-describedby": `chart-instructions-${D.value}`,
|
|
903
|
-
class: Pe({
|
|
904
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
905
|
-
"vue-data-ui-fulscreen--off": !Z.value,
|
|
906
|
-
resizing: j.value
|
|
907
|
-
}),
|
|
908
|
-
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
909
|
-
style: _(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
910
|
-
tabindex: "0",
|
|
911
|
-
onFocus: In,
|
|
912
|
-
onBlur: Ln,
|
|
913
|
-
onKeydown: Rn
|
|
914
|
-
}, [
|
|
915
|
-
je(C(mt)),
|
|
916
|
-
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
917
|
-
key: 0,
|
|
918
|
-
x: 0,
|
|
919
|
-
y: 0,
|
|
920
|
-
width: B.value.width <= 0 ? 10 : B.value.width,
|
|
921
|
-
height: B.value.height <= 0 ? 10 : B.value.height,
|
|
922
|
-
style: { pointerEvents: "none" }
|
|
923
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : d("", !0),
|
|
924
|
-
(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
|
|
925
|
-
cx: U.value.centerX,
|
|
926
|
-
cy: U.value.centerY,
|
|
927
|
-
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
928
|
-
stroke: F.value.style.chart.layout.gutter.color,
|
|
929
|
-
"stroke-width": q.value.gutter,
|
|
930
|
-
fill: "none",
|
|
931
|
-
"stroke-dasharray": e.path.bgDashArray,
|
|
932
|
-
"stroke-dashoffset": e.path.fullOffset,
|
|
933
|
-
"stroke-linecap": "round",
|
|
934
|
-
class: Pe({
|
|
935
|
-
"vue-ui-onion-path": !0,
|
|
936
|
-
"vue-ui-onion-blur": F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t
|
|
937
|
-
}),
|
|
938
|
-
style: _({
|
|
939
|
-
transform: "rotate(-90deg)",
|
|
940
|
-
transformOrigin: "50% 50%",
|
|
941
|
-
transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
|
|
942
|
-
animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
|
|
943
|
-
})
|
|
944
|
-
}, null, 14, qe))), 256)),
|
|
945
|
-
(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
|
|
946
|
-
cx: U.value.centerX,
|
|
947
|
-
cy: U.value.centerY,
|
|
948
|
-
r: e.radius < 0 ? 1e-4 : e.radius,
|
|
949
|
-
stroke: `${e.color}`,
|
|
950
|
-
"stroke-width": q.value.track,
|
|
951
|
-
fill: "none",
|
|
952
|
-
"stroke-dasharray": e.path.dashArray,
|
|
953
|
-
"stroke-dashoffset": e.path.dashOffset,
|
|
954
|
-
class: Pe({
|
|
955
|
-
"vue-ui-onion-path": !0,
|
|
956
|
-
"vue-ui-onion-blur": F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t
|
|
957
|
-
}),
|
|
958
|
-
"stroke-linecap": "round",
|
|
959
|
-
style: _({
|
|
960
|
-
transform: "rotate(-90deg)",
|
|
961
|
-
transformOrigin: "50% 50%",
|
|
962
|
-
transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
|
|
963
|
-
animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
|
|
964
|
-
})
|
|
965
|
-
}, null, 14, Je))), 256)),
|
|
966
|
-
p("defs", null, [p("filter", {
|
|
967
|
-
id: `blur_${D.value}`,
|
|
968
|
-
x: "-50%",
|
|
969
|
-
y: "-50%",
|
|
970
|
-
width: "200%",
|
|
971
|
-
height: "200%"
|
|
972
|
-
}, [p("feGaussianBlur", {
|
|
973
|
-
in: "SourceGraphic",
|
|
974
|
-
stdDeviation: 100 / F.value.style.chart.gradientIntensity
|
|
975
|
-
}, null, 8, Xe)], 8, Ye)]),
|
|
976
|
-
F.value.style.chart.useGradient ? (v(), f("g", {
|
|
977
|
-
key: 1,
|
|
978
|
-
filter: `url(#blur_${D.value})`
|
|
979
|
-
}, [(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
|
|
980
|
-
cx: U.value.centerX,
|
|
981
|
-
cy: U.value.centerY,
|
|
982
|
-
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
983
|
-
stroke: "white",
|
|
984
|
-
"stroke-width": q.value.track / 3,
|
|
985
|
-
fill: "none",
|
|
986
|
-
"stroke-linecap": "round",
|
|
987
|
-
"stroke-dasharray": e.path.dashArray,
|
|
988
|
-
"stroke-dashoffset": e.path.dashOffset,
|
|
989
|
-
style: _({
|
|
990
|
-
transform: "rotate(-90deg)",
|
|
991
|
-
transformOrigin: "50% 50%",
|
|
992
|
-
transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
|
|
993
|
-
animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
|
|
994
|
-
})
|
|
995
|
-
}, null, 12, Qe))), 256))], 8, Ze)) : d("", !0),
|
|
996
|
-
(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
|
|
997
|
-
cx: U.value.centerX,
|
|
998
|
-
cy: U.value.centerY,
|
|
999
|
-
r: e.radius <= 0 ? 1e-4 : e.radius,
|
|
1000
|
-
stroke: "transparent",
|
|
1001
|
-
"stroke-width": Math.max(q.value.track, q.value.gutter),
|
|
1002
|
-
fill: "none",
|
|
1003
|
-
"stroke-dasharray": e.path.bgDashArray,
|
|
1004
|
-
"stroke-dashoffset": e.path.fullOffset,
|
|
1005
|
-
"stroke-linecap": "round",
|
|
1006
|
-
class: "vue-ui-onion-path",
|
|
1007
|
-
style: {
|
|
1008
|
-
transform: "rotate(-90deg)",
|
|
1009
|
-
transformOrigin: "50% 50%"
|
|
1010
|
-
},
|
|
1011
|
-
onMouseenter: (n) => Cn({
|
|
1012
|
-
datapoint: e,
|
|
1013
|
-
show: !0,
|
|
1014
|
-
seriesIndex: t,
|
|
1015
|
-
triggerMode: "pointer"
|
|
1016
|
-
}),
|
|
1017
|
-
onMouseleave: (t) => yn({ datapoint: e }),
|
|
1018
|
-
onClick: (t) => vn({ datapoint: e })
|
|
1019
|
-
}, null, 40, $e))), 256)),
|
|
1020
|
-
F.value.style.chart.layout.labels.show ? (v(), f("g", et, [(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("g", {
|
|
1021
|
-
onMouseenter: (n) => Cn({
|
|
1022
|
-
datapoint: e,
|
|
1023
|
-
show: !0,
|
|
1024
|
-
seriesIndex: t,
|
|
1025
|
-
triggerMode: "pointer"
|
|
1026
|
-
}),
|
|
1027
|
-
onMouseleave: (t) => yn({ datapoint: e }),
|
|
1028
|
-
onClick: (t) => vn({ datapoint: e })
|
|
1029
|
-
}, [k.value.includes(e.id) ? d("", !0) : (v(), f("text", {
|
|
1030
|
-
key: 0,
|
|
1031
|
-
class: "vue-ui-onion-label",
|
|
1032
|
-
x: B.value.width / 2 - q.value.gutter * .8 + F.value.style.chart.layout.labels.offsetX,
|
|
1033
|
-
y: e.labelY + F.value.style.chart.layout.labels.offsetY,
|
|
1034
|
-
"text-anchor": "end",
|
|
1035
|
-
"font-size": F.value.style.chart.layout.labels.fontSize,
|
|
1036
|
-
fill: F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value === t ? e.color : F.value.style.chart.layout.labels.color,
|
|
1037
|
-
"font-weight": F.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
1038
|
-
}, S(xn(e, t)), 9, nt))], 40, tt))), 256))])) : d("", !0),
|
|
1039
|
-
x(e.$slots, "svg", { svg: {
|
|
1040
|
-
...B.value,
|
|
1041
|
-
drawingArea: U.value,
|
|
1042
|
-
isPrintingImg: C(Ht) || C(Ut) || jt.value,
|
|
1043
|
-
isPrintingSvg: Mt.value
|
|
1044
|
-
} }, void 0, !0)
|
|
1045
|
-
], 46, Ge)), e.$slots.hint ? (v(), f("div", rt, [x(e.$slots, "hint", g(h({
|
|
1046
|
-
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1047
|
-
isVisible: Pt.value
|
|
1048
|
-
})), void 0, !0)])) : d("", !0)]),
|
|
1049
|
-
e.$slots.watermark ? (v(), f("div", it, [x(e.$slots, "watermark", g(h({ isPrinting: C(Ht) || C(Ut) || jt.value || Mt.value })), void 0, !0)])) : d("", !0),
|
|
1050
|
-
p("div", { id: `legend-bottom-${D.value}` }, null, 8, at),
|
|
1051
|
-
At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Oe, {
|
|
1052
|
-
key: 6,
|
|
1053
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1054
|
-
}, [p("div", {
|
|
1055
|
-
ref_key: "chartLegend",
|
|
1056
|
-
ref: wt
|
|
1057
|
-
}, [x(e.$slots, "legend", { legend: G.value }, () => [F.value.style.chart.legend.show ? (v(), u(Te, {
|
|
1058
|
-
key: `legend_${kt.value}`,
|
|
1059
|
-
legendSet: G.value,
|
|
1060
|
-
config: an.value,
|
|
1061
|
-
isCursorPointer: I.value,
|
|
1062
|
-
onClickMarker: t[0] ||= ({ legend: e }) => un(e.id)
|
|
1063
|
-
}, {
|
|
1064
|
-
item: T(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", {
|
|
1065
|
-
key: 0,
|
|
1066
|
-
"data-cy-legend-item": "",
|
|
1067
|
-
onClick: (t) => e.segregate(),
|
|
1068
|
-
style: _(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
|
|
1069
|
-
}, S(e.display), 13, ot))]),
|
|
1070
|
-
legendToggle: T(() => [G.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !C(L) ? (v(), u(be, {
|
|
1071
|
-
key: 0,
|
|
1072
|
-
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1073
|
-
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1074
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
1075
|
-
checked: k.value.length > 0,
|
|
1076
|
-
isCursorPointer: I.value,
|
|
1077
|
-
onToggle: ln
|
|
1078
|
-
}, null, 8, [
|
|
1079
|
-
"backgroundColor",
|
|
1080
|
-
"color",
|
|
1081
|
-
"fontSize",
|
|
1082
|
-
"checked",
|
|
1083
|
-
"isCursorPointer"
|
|
1084
|
-
])) : d("", !0)]),
|
|
1085
|
-
_: 1
|
|
1086
|
-
}, 8, [
|
|
1087
|
-
"legendSet",
|
|
1088
|
-
"config",
|
|
1089
|
-
"isCursorPointer"
|
|
1090
|
-
])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
1091
|
-
e.$slots.source ? (v(), f("div", {
|
|
1092
|
-
key: 7,
|
|
1093
|
-
ref_key: "source",
|
|
1094
|
-
ref: Tt,
|
|
1095
|
-
dir: "auto"
|
|
1096
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1097
|
-
je(C(ct), {
|
|
1098
|
-
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1099
|
-
show: z.value.showTooltip && O.value,
|
|
1100
|
-
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1101
|
-
color: F.value.style.chart.tooltip.color,
|
|
1102
|
-
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
1103
|
-
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
1104
|
-
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
1105
|
-
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
1106
|
-
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
1107
|
-
position: F.value.style.chart.tooltip.position,
|
|
1108
|
-
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1109
|
-
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1110
|
-
parent: A.value,
|
|
1111
|
-
content: St.value,
|
|
1112
|
-
isFullscreen: Z.value,
|
|
1113
|
-
isCustom: C(oe)(F.value.style.chart.tooltip.customFormat),
|
|
1114
|
-
smooth: F.value.style.chart.tooltip.smooth,
|
|
1115
|
-
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1116
|
-
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1117
|
-
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1118
|
-
isA11yMode: P.value === "keyboard",
|
|
1119
|
-
a11yPosition: Nt.value
|
|
1120
|
-
}, {
|
|
1121
|
-
"tooltip-before": T(() => [x(e.$slots, "tooltip-before", g(h({ ...Sn.value })), void 0, !0)]),
|
|
1122
|
-
tooltip: T(() => [x(e.$slots, "tooltip", g(h({ ...Sn.value })), void 0, !0)]),
|
|
1123
|
-
"tooltip-after": T(() => [x(e.$slots, "tooltip-after", g(h({ ...Sn.value })), void 0, !0)]),
|
|
1124
|
-
_: 3
|
|
1125
|
-
}, 8, [
|
|
1126
|
-
"teleportTo",
|
|
1127
|
-
"show",
|
|
1128
|
-
"backgroundColor",
|
|
1129
|
-
"color",
|
|
1130
|
-
"borderRadius",
|
|
1131
|
-
"borderColor",
|
|
1132
|
-
"borderWidth",
|
|
1133
|
-
"fontSize",
|
|
1134
|
-
"backgroundOpacity",
|
|
1135
|
-
"position",
|
|
1136
|
-
"offsetX",
|
|
1137
|
-
"offsetY",
|
|
1138
|
-
"parent",
|
|
1139
|
-
"content",
|
|
1140
|
-
"isFullscreen",
|
|
1141
|
-
"isCustom",
|
|
1142
|
-
"smooth",
|
|
1143
|
-
"backdropFilter",
|
|
1144
|
-
"smoothForce",
|
|
1145
|
-
"smoothSnapThreshold",
|
|
1146
|
-
"isA11yMode",
|
|
1147
|
-
"a11yPosition"
|
|
1148
|
-
]),
|
|
1149
|
-
yt.value && F.value.userOptions.buttons.table ? (v(), u(Le($.value.component), Me({ key: 8 }, $.value.props, {
|
|
1150
|
-
ref_key: "tableUnit",
|
|
1151
|
-
ref: M,
|
|
1152
|
-
onClose: t[3] ||= (e) => z.value.showTable = !1
|
|
1153
|
-
}), ke({
|
|
1154
|
-
content: T(() => [(v(), u(C(dt), {
|
|
1155
|
-
key: `table_${Ot.value}`,
|
|
1156
|
-
colNames: Y.value.colNames,
|
|
1157
|
-
head: Y.value.head,
|
|
1158
|
-
body: Y.value.body,
|
|
1159
|
-
config: Y.value.config,
|
|
1160
|
-
title: F.value.table.useDialog ? "" : $.value.title,
|
|
1161
|
-
withCloseButton: !F.value.table.useDialog,
|
|
1162
|
-
isCursorPointer: I.value,
|
|
1163
|
-
onClose: t[2] ||= (e) => z.value.showTable = !1
|
|
1164
|
-
}, {
|
|
1165
|
-
th: T(({ th: e }) => [Ae(S(e), 1)]),
|
|
1166
|
-
td: T(({ td: e }) => [p("div", { innerHTML: e }, null, 8, st)]),
|
|
1167
|
-
_: 1
|
|
1168
|
-
}, 8, [
|
|
1169
|
-
"colNames",
|
|
1170
|
-
"head",
|
|
1171
|
-
"body",
|
|
1172
|
-
"config",
|
|
1173
|
-
"title",
|
|
1174
|
-
"withCloseButton",
|
|
1175
|
-
"isCursorPointer"
|
|
1176
|
-
]))]),
|
|
1177
|
-
_: 2
|
|
1178
|
-
}, [F.value.table.useDialog ? {
|
|
1179
|
-
name: "title",
|
|
1180
|
-
fn: T(() => [Ae(S($.value.title), 1)]),
|
|
1181
|
-
key: "0"
|
|
1182
|
-
} : void 0, F.value.table.useDialog ? {
|
|
1183
|
-
name: "actions",
|
|
1184
|
-
fn: T(() => [p("button", {
|
|
1185
|
-
tabindex: "0",
|
|
1186
|
-
class: "vue-ui-user-options-button",
|
|
1187
|
-
onClick: t[1] ||= (e) => gn(F.value.userOptions.callbacks.csv),
|
|
1188
|
-
style: _({ cursor: I.value ? "pointer" : "default" })
|
|
1189
|
-
}, [je(C(lt), {
|
|
1190
|
-
name: "fileCsv",
|
|
1191
|
-
stroke: $.value.props.color
|
|
1192
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1193
|
-
key: "1"
|
|
1194
|
-
} : void 0]), 1040)) : d("", !0),
|
|
1195
|
-
x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(de, { key: 0 })) : d("", !0)], !0)
|
|
1196
|
-
], 46, Ve));
|
|
1197
|
-
}
|
|
1198
|
-
}, [["__scopeId", "data-v-2e5c3df8"]]);
|
|
1199
|
-
//#endregion
|
|
1200
|
-
export { Be as n, ct as t };
|