vue-data-ui 3.23.9 → 3.23.11

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.
Files changed (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
  13. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
  95. package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
  96. package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
  110. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
  112. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
  114. package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
  115. package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
  117. package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
  118. package/dist/vue-ui-chord-BuConnPN.js +1345 -0
  119. package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
  120. package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
  121. package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
  122. package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
  123. package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
  124. package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
  125. package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
  126. package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
  128. package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
  129. package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
  130. package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
  131. package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
  132. package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
  133. package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
  134. package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
  135. package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
  136. package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
  138. package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
  141. package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
  142. package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
  143. package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
  145. package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
  147. package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
  148. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
  150. package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
  151. package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
  152. package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
  153. package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
  154. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
  159. package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
  161. package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
  162. package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
  163. package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
  164. package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
  167. package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
  168. package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
  170. package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
  171. package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
  172. package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
  174. package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
  175. package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
  176. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  177. package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
  178. package/package.json +1 -1
  179. package/dist/exposedLib-C0DPCgFj.js +0 -28
  180. package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
  181. package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
  182. package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
  183. package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
  184. package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
  185. package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
  186. package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
  187. package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
  188. package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
  189. package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
  191. package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
  192. package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
  193. package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
  194. package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
  195. package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
  196. package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
  197. package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
  198. package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
  199. package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
  200. package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
@@ -0,0 +1,1233 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, It as r, Jt as i, Nt as a, S as o, St as ee, X as s, Xt as te, i as ne, lt as re, nt as ie, q as ae, t as oe, w as se } from "./lib-Dqr_-I6Y.js";
3
+ import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ue } from "./useConfig-DwdGsXTx.js";
5
+ import { t as de } from "./usePrinter-CEiH1b6R.js";
6
+ import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as me } from "./useNestedProp-CulPqtou.js";
8
+ import { t as he } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ge } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as _e } from "./useTransitions-g_zBREk2.js";
11
+ import { t as ve } from "./img-Bkzj3lDD.js";
12
+ import { n as ye } from "./Title-CaVA8EIw.js";
13
+ import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as Ce } from "./BaseLegendToggle-CtEdLr4R.js";
16
+ import { t as we } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as De } from "./labelUtils-iX76cA2-.js";
20
+ import { t as Oe } from "./Legend-BJtY2RA9.js";
21
+ import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
22
+ import { t as Ae } from "./vue_ui_onion-1FTFFS46.js";
23
+ import { Fragment as c, Teleport as je, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Fe, nextTick as Ie, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Le, onMounted as Re, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as ze, shallowRef as Be, toDisplayString as Ve, toRefs as He, unref as C, watch as w, withCtx as T } from "vue";
24
+ //#region src/components/vue-ui-onion.vue
25
+ var Ue = /* @__PURE__ */ e({ default: () => dt }), We = ["id"], Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
26
+ "xmlns",
27
+ "aria-describedby",
28
+ "viewBox"
29
+ ], Ye = ["width", "height"], Xe = [
30
+ "cx",
31
+ "cy",
32
+ "r",
33
+ "stroke",
34
+ "stroke-width",
35
+ "stroke-dasharray",
36
+ "stroke-dashoffset"
37
+ ], Ze = [
38
+ "cx",
39
+ "cy",
40
+ "r",
41
+ "stroke",
42
+ "stroke-width",
43
+ "stroke-dasharray",
44
+ "stroke-dashoffset"
45
+ ], Qe = ["id"], $e = ["stdDeviation"], et = ["filter"], tt = [
46
+ "cx",
47
+ "cy",
48
+ "r",
49
+ "stroke-width",
50
+ "stroke-dasharray",
51
+ "stroke-dashoffset"
52
+ ], nt = [
53
+ "cx",
54
+ "cy",
55
+ "r",
56
+ "stroke-width",
57
+ "stroke-dasharray",
58
+ "stroke-dashoffset",
59
+ "onMouseenter",
60
+ "onMouseleave",
61
+ "onClick"
62
+ ], rt = { key: 2 }, it = [
63
+ "onMouseenter",
64
+ "onMouseleave",
65
+ "onClick"
66
+ ], at = [
67
+ "transform",
68
+ "font-size",
69
+ "fill",
70
+ "font-weight"
71
+ ], ot = {
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
+ }, st = {
82
+ key: 5,
83
+ class: "vue-data-ui-watermark"
84
+ }, ct = ["id"], lt = ["onClick"], ut = ["innerHTML"], dt = /*#__PURE__*/ be({
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: be, emit: Ue }) {
102
+ let dt = m(() => import("./Tooltip-CVxJe3UW.js")), ft = m(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), pt = m(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), mt = m(() => import("./DataTable-CmyEubtT.js")), ht = m(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), gt = m(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), _t = m(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), vt = m(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_onion: yt } = ue(), { isThemeValid: bt, warnInvalidTheme: xt } = he(), E = e, St = l(() => !!E.dataset && E.dataset.length), D = b(ae()), Ct = b(null), wt = b(0), O = b(!1), Tt = b(""), k = b([]), A = b(null), Et = b(null), Dt = b(null), Ot = b(null), kt = b(null), At = b(0), jt = b(0), Mt = b(0), Nt = b(!1), Pt = b(!1), Ft = b(null), j = b(null), It = b({
103
+ x: 0,
104
+ y: 0
105
+ }), M = b("pointer"), Lt = b(!1), N = b(Wt());
106
+ ce({
107
+ config: () => N.value,
108
+ dataset: () => E.dataset,
109
+ component: "VueUiOnion",
110
+ rules: [le.emptyArray, {
111
+ test: (e) => e.length > 8,
112
+ message: [
113
+ "👀 The number of series is > 8. Consider:",
114
+ "",
115
+ "▶️ Grouping small values dynamically into a single \"Other\" series.",
116
+ "",
117
+ "▶️ Using filters to let users choose a maximum number of series to display.",
118
+ "",
119
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
120
+ ]
121
+ }]
122
+ });
123
+ let { transitionEnabled: P } = _e({
124
+ config: () => N.value.transitions,
125
+ dataset: () => E.dataset
126
+ }), F = l(() => N.value.userOptions.useCursorPointer), Rt = l(() => te({
127
+ defaultConfig: {
128
+ userOptions: { show: !1 },
129
+ table: { show: !1 },
130
+ style: { chart: {
131
+ backgroundColor: "#99999930",
132
+ layout: {
133
+ gutter: { color: "#99999950" },
134
+ labels: { show: !1 }
135
+ },
136
+ legend: { backgroundColor: "transparent" }
137
+ } }
138
+ },
139
+ userConfig: N.value.skeletonConfig ?? {}
140
+ })), { loading: I, FINAL_DATASET: zt, manualLoading: Bt } = fe({
141
+ ...He(E),
142
+ FINAL_CONFIG: N,
143
+ prepareConfig: Wt,
144
+ callback: () => {
145
+ Promise.resolve().then(async () => {
146
+ await Ie(), dn();
147
+ });
148
+ },
149
+ skeletonDataset: E.config?.skeletonDataset ?? [
150
+ {
151
+ name: "_",
152
+ percentage: 50,
153
+ value: 1,
154
+ color: "#DBDBDB"
155
+ },
156
+ {
157
+ name: "_",
158
+ percentage: 50,
159
+ value: 1,
160
+ color: "#C4C4C4"
161
+ },
162
+ {
163
+ name: "_",
164
+ percentage: 50,
165
+ value: 1,
166
+ color: "#ADADAD"
167
+ },
168
+ {
169
+ name: "_",
170
+ percentage: 50,
171
+ value: 1,
172
+ color: "#969696"
173
+ }
174
+ ],
175
+ skeletonConfig: te({
176
+ defaultConfig: N.value,
177
+ userConfig: Rt.value
178
+ })
179
+ }), { userOptionsVisible: Vt, setUserOptionsVisibility: Ht, keepUserOptionState: Ut } = Te({ config: N.value }), { svgRef: L } = Ee({ config: N.value.style.chart.title });
180
+ function Wt() {
181
+ let e = me({
182
+ userConfig: E.config,
183
+ defaultConfig: yt
184
+ }), t = e.theme;
185
+ if (!t) return e;
186
+ if (!bt.value(e)) return xt(e), e;
187
+ let n = me({
188
+ userConfig: Ae[t] || E.config,
189
+ defaultConfig: e
190
+ }), a = me({
191
+ userConfig: E.config,
192
+ defaultConfig: n
193
+ });
194
+ return {
195
+ ...a,
196
+ customPalette: a.customPalette.length ? a.customPalette : i[t] || r
197
+ };
198
+ }
199
+ w(() => E.config, (e) => {
200
+ I.value || (N.value = Wt()), Vt.value = !N.value.userOptions.showOnChartHover, an(), At.value += 1, jt.value += 1, Mt.value += 1, R.value.showTable = N.value.table.show, R.value.showTooltip = N.value.style.chart.tooltip.show;
201
+ }, { deep: !0 });
202
+ let { isPrinting: Gt, isImaging: Kt, generatePdf: qt, generateImage: Jt } = de({
203
+ elementId: `vue-ui-onion_${D.value}`,
204
+ fileName: N.value.style.chart.title.text || "vue-ui-onion",
205
+ options: N.value.userOptions.print
206
+ }), Yt = l(() => N.value.userOptions.show && !N.value.style.chart.title.text), Xt = l(() => se(N.value.customPalette)), R = b({
207
+ showTable: N.value.table.show,
208
+ showTooltip: N.value.style.chart.tooltip.show
209
+ });
210
+ w(N, () => {
211
+ R.value = {
212
+ showTable: N.value.table.show,
213
+ showTooltip: N.value.style.chart.tooltip.show
214
+ };
215
+ }, { immediate: !0 });
216
+ let z = b({
217
+ height: 512,
218
+ width: 512,
219
+ padding: {
220
+ top: 64,
221
+ left: 64,
222
+ right: 64,
223
+ bottom: 64
224
+ },
225
+ minRadius: 64
226
+ }), B = Be(null), V = Be(null);
227
+ Re(() => {
228
+ Pt.value = !0, an();
229
+ });
230
+ let { autoSizeLabels: Zt } = ke({
231
+ svgRef: L,
232
+ fontSize: () => N.value.style.chart.layout.labels.fontSize,
233
+ minFontSize: () => N.value.style.chart.layout.labels.minFontSize,
234
+ labelClass: ".vue-ui-onion-label"
235
+ }), H = null, U = null, W = 0;
236
+ function Qt() {
237
+ H !== null && (cancelAnimationFrame(H), H = null), U !== null && (clearTimeout(U), U = null);
238
+ }
239
+ function $t(e) {
240
+ return String(e).split(",").map((e) => {
241
+ let t = e.trim(), n = Number.parseFloat(t);
242
+ return Number.isFinite(n) ? t.endsWith("ms") ? n : n * 1e3 : 0;
243
+ });
244
+ }
245
+ function en() {
246
+ return typeof window > "u" || !P.value || Nt.value || I.value || !L.value ? 0 : Array.from(L.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
247
+ let n = window.getComputedStyle(t);
248
+ if (n.transitionProperty === "none") return e;
249
+ let r = $t(n.transitionDuration), i = $t(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
250
+ return Math.max(e, o);
251
+ }, 0);
252
+ }
253
+ function tn() {
254
+ typeof window > "u" || (H = requestAnimationFrame(() => {
255
+ H = null, Zt();
256
+ }));
257
+ }
258
+ function G() {
259
+ if (typeof window > "u") return;
260
+ let e = ++W;
261
+ Qt(), Ie(() => {
262
+ e === W && (H = requestAnimationFrame(() => {
263
+ if (H = null, e !== W) return;
264
+ let t = en();
265
+ if (t <= 0) {
266
+ tn();
267
+ return;
268
+ }
269
+ U = setTimeout(() => {
270
+ U = null, e === W && tn();
271
+ }, t + 34);
272
+ }));
273
+ });
274
+ }
275
+ let nn = l(() => N.value.debug), rn = null;
276
+ function an() {
277
+ if (a(E.dataset) && (ie({
278
+ componentName: "VueUiOnion",
279
+ type: "dataset",
280
+ debug: nn.value
281
+ }), Bt.value = !0), a(E.dataset) || (Bt.value = N.value.loading), N.value.responsive) {
282
+ let e = 64 / 512, t = xe(() => {
283
+ rn && clearTimeout(rn), Nt.value = !0;
284
+ let { width: t, height: n } = Se({
285
+ chart: A.value,
286
+ title: N.value.style.chart.title.text ? Et.value : null,
287
+ legend: N.value.style.chart.legend.show ? Dt.value : null,
288
+ source: Ot.value,
289
+ noTitle: kt.value
290
+ });
291
+ n -= 12, requestAnimationFrame(async () => {
292
+ z.value.width = t, z.value.height = n, z.value.padding.top = Math.max(t, n) * e, z.value.padding.right = Math.max(t, n) * e, z.value.padding.bottom = Math.max(t, n) * e, z.value.padding.left = Math.max(t, n) * e, z.value.minRadius = Math.min(t, n) * e, rn = setTimeout(() => {
293
+ Nt.value = !1, G();
294
+ }, 0);
295
+ });
296
+ });
297
+ B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(t), V.value = A.value.parentNode, B.value.observe(V.value);
298
+ }
299
+ G();
300
+ }
301
+ Le(() => {
302
+ W += 1, Qt(), B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
303
+ });
304
+ let K = l(() => ({
305
+ top: z.value.padding.top,
306
+ left: z.value.padding.left,
307
+ right: z.value.width - z.value.padding.right,
308
+ bottom: z.value.height - z.value.padding.bottom,
309
+ centerX: z.value.width / 2,
310
+ centerY: z.value.height / 2,
311
+ width: z.value.width - z.value.padding.right - z.value.padding.left,
312
+ height: z.value.height - z.value.padding.bottom - z.value.padding.top,
313
+ minRadius: z.value.minRadius,
314
+ maxRadius: Math.min(z.value.width, z.value.height) - z.value.padding.top * 2
315
+ })), q = l(() => (nn.value && zt.value.forEach((e, t) => {
316
+ [null, void 0].includes(e.name) && ie({
317
+ componentName: "VueUiOnion",
318
+ type: "datasetSerieAttribute",
319
+ property: "name",
320
+ index: t
321
+ }), [void 0].includes(e.percentage) && ie({
322
+ componentName: "VueUiOnion",
323
+ type: "datasetSerieAttribute",
324
+ property: "percentage",
325
+ index: t
326
+ });
327
+ }), zt.value.map((e, t) => {
328
+ let n = `onion_serie_${t}_${D.value}`;
329
+ return {
330
+ ...e,
331
+ percentage: e.percentage || 0,
332
+ targetPercentage: e.percentage || 0,
333
+ color: o(e.color) || Xt.value[t] || r[t],
334
+ id: n,
335
+ shape: "circle",
336
+ opacity: k.value.includes(n) ? .5 : 1,
337
+ absoluteIndex: t,
338
+ segregate: () => _n(n),
339
+ isSegregated: k.value.includes(n)
340
+ };
341
+ }))), J = l(() => q.value.map((e, t) => {
342
+ let n = N.value.style.chart.legend.showValue, r = N.value.style.chart.legend.showPercentage, i = Dn({
343
+ showVal: n,
344
+ showPercentage: r,
345
+ val: ne(N.value.style.chart.layout.labels.value.formatter, e.value, s({
346
+ p: e.prefix || "",
347
+ v: e.value,
348
+ s: e.suffix || "",
349
+ r: N.value.style.chart.legend.roundingValue
350
+ })),
351
+ percentage: s({
352
+ v: e.percentage ?? 0,
353
+ s: "%",
354
+ r: N.value.style.chart.legend.roundingPercentage
355
+ }),
356
+ config: N.value.style.chart.legend
357
+ });
358
+ return {
359
+ ...e,
360
+ display: `${e.name}${n || r ? ": " : ""}${i}`
361
+ };
362
+ })), on = b(q.value), sn = l(() => N.value.useStartAnimation), cn = b(null), ln = l(() => Math.max(...q.value.map((e) => e.percentage))), un = b(!1);
363
+ w(() => q.value, dn, {
364
+ immediate: !0,
365
+ deep: !0
366
+ }), w(() => E.dataset, (e) => {
367
+ Array.isArray(e) && e.length > 0 && (Bt.value = !1), G();
368
+ }, {
369
+ deep: !0,
370
+ flush: "post"
371
+ });
372
+ function dn() {
373
+ if (sn.value && !un.value && !I.value) {
374
+ on.value = q.value.map((e) => ({
375
+ ...e,
376
+ percentage: 0
377
+ }));
378
+ let e = 0;
379
+ function t() {
380
+ e >= ln.value ? (cancelAnimationFrame(cn.value), on.value = q.value, un.value = !0) : (on.value = q.value.map((t) => ({
381
+ ...t,
382
+ percentage: e < t.targetPercentage ? e : t.targetPercentage
383
+ })), e += 1, requestAnimationFrame(t), un.value = !0);
384
+ }
385
+ t();
386
+ } else on.value = q.value;
387
+ }
388
+ let fn = l(() => ({
389
+ cy: "onion-div-legend",
390
+ backgroundColor: N.value.style.chart.legend.backgroundColor,
391
+ color: N.value.style.chart.legend.color,
392
+ fontSize: N.value.style.chart.legend.fontSize,
393
+ paddingBottom: 12,
394
+ fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
395
+ })), pn = l(() => q.value.filter((e) => !k.value.includes(e.id)).length), Y = l(() => {
396
+ let e = Math.min(K.value.width, K.value.height) / 2 / q.value.length;
397
+ return {
398
+ gutter: (e > N.value.style.chart.layout.maxThickness ? N.value.style.chart.layout.maxThickness : e) * N.value.style.chart.layout.gutter.width,
399
+ track: (e > N.value.style.chart.layout.maxThickness ? N.value.style.chart.layout.maxThickness : e) * N.value.style.chart.layout.track.width
400
+ };
401
+ }), X = l(() => on.value.filter((e) => !k.value.includes(e.id)).map((e, t) => {
402
+ let n = (K.value.maxRadius - Y.value.track) / pn.value / 2 * (1 + t), r = K.value.centerY - n;
403
+ return {
404
+ percentage: e.percentage || 0,
405
+ ...e,
406
+ labelY: r,
407
+ radius: n,
408
+ path: mn(n, e.percentage || 0)
409
+ };
410
+ }));
411
+ function mn(e, t) {
412
+ let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
413
+ return {
414
+ bgDashArray: `${r} ${n}`,
415
+ bgDashOffset: 0,
416
+ dashArray: i,
417
+ dashOffset: a,
418
+ fullOffset: 0,
419
+ active: `
420
+ M ${K.value.centerX},${K.value.centerY - e}
421
+ A ${e},${e} 0 1 1
422
+ ${K.value.centerX + e * Math.cos(Math.PI * 3 / 4)},${K.value.centerY + e * Math.sin(Math.PI * 3 / 4)}
423
+ `.trim()
424
+ };
425
+ }
426
+ let hn = Ue;
427
+ function gn() {
428
+ k.value.length ? k.value = [] : J.value.forEach((e) => {
429
+ k.value.push(e.id);
430
+ }), G(), hn("selectLegend", X.value);
431
+ }
432
+ function _n(e) {
433
+ if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e);
434
+ else {
435
+ if (k.value.length === q.value.length - 1) return;
436
+ k.value.push(e);
437
+ }
438
+ G(), hn("selectLegend", X.value);
439
+ }
440
+ function vn(e) {
441
+ return q.value.length ? q.value.find((t) => t.name === e) || (nn.value && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (nn.value && console.warn("VueUiOnion - There are no series to show."), null);
442
+ }
443
+ function yn(e) {
444
+ let t = vn(e);
445
+ t !== null && k.value.includes(t.id) && _n(t.id);
446
+ }
447
+ function bn(e) {
448
+ let t = vn(e);
449
+ t !== null && (k.value.includes(t.id) || _n(t.id));
450
+ }
451
+ function xn() {
452
+ return X.value;
453
+ }
454
+ let Sn = l(() => ({
455
+ head: [
456
+ N.value.table.translations.serie,
457
+ N.value.table.translations.percentage,
458
+ N.value.table.translations.value
459
+ ],
460
+ body: X.value.map((e) => [
461
+ e.name,
462
+ e.percentage,
463
+ e.value
464
+ ])
465
+ })), Z = l(() => {
466
+ let e = Sn.value.head;
467
+ return {
468
+ head: e,
469
+ body: X.value.map((e) => [
470
+ `<span style="color:${e.color}" aria-hidden="true">⬤</span> ${e.name}`,
471
+ `${Number(e.percentage ?? 0).toFixed(N.value.table.td.roundingPercentage).toLocaleString()}%`,
472
+ `${e.prefix || ""}${[
473
+ null,
474
+ void 0,
475
+ NaN,
476
+ "NaN"
477
+ ].includes(e.value) ? "-" : e.value.toFixed(N.value.table.td.roundingValue).toLocaleString()}${e.suffix || ""}`
478
+ ]),
479
+ config: {
480
+ th: {
481
+ backgroundColor: N.value.table.th.backgroundColor,
482
+ color: N.value.table.th.color,
483
+ outline: N.value.table.th.outline
484
+ },
485
+ td: {
486
+ backgroundColor: N.value.table.td.backgroundColor,
487
+ color: N.value.table.td.color,
488
+ outline: N.value.table.td.outline
489
+ },
490
+ breakpoint: N.value.table.responsiveBreakpoint
491
+ },
492
+ colNames: e
493
+ };
494
+ });
495
+ function Cn(e = null) {
496
+ Ie(() => {
497
+ let r = [
498
+ [N.value.style.chart.title.text],
499
+ [N.value.style.chart.title.subtitle.text],
500
+ [""]
501
+ ], i = Sn.value.head, a = Sn.value.body, o = r.concat([i]).concat(a), ee = n(o);
502
+ e ? e(ee) : t({
503
+ csvContent: ee,
504
+ title: N.value.style.chart.title.text || "vue-ui-onion"
505
+ });
506
+ });
507
+ }
508
+ let Q = b(void 0), $ = b(!1);
509
+ function wn(e) {
510
+ $.value = e, wt.value += 1;
511
+ }
512
+ function Tn({ datapoint: e }) {
513
+ N.value.events.datapointClick && N.value.events.datapointClick({
514
+ datapoint: e,
515
+ seriesIndex: e.absoluteIndex
516
+ });
517
+ }
518
+ function En({ datapoint: e }) {
519
+ Q.value = void 0, O.value = !1, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
520
+ datapoint: e,
521
+ seriesIndex: e.absoluteIndex
522
+ });
523
+ }
524
+ function Dn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
525
+ return De({
526
+ config: i,
527
+ val: e,
528
+ percentage: t,
529
+ showVal: n,
530
+ showPercentage: r
531
+ });
532
+ }
533
+ function On(e, t) {
534
+ let n = N.value.style.chart.layout.labels.value.show, r = N.value.style.chart.layout.labels.percentage.show, i = Dn({
535
+ config: N.value.style.chart.layout.labels,
536
+ showVal: n,
537
+ showPercentage: r,
538
+ val: ne(N.value.style.chart.layout.labels.value.formatter, e.value, s({
539
+ p: e.prefix || "",
540
+ v: e.value || 0,
541
+ s: e.suffix || "",
542
+ r: N.value.style.chart.layout.labels.roundingValue
543
+ }), {
544
+ datapoint: e,
545
+ seriesIndex: t
546
+ }),
547
+ percentage: s({
548
+ v: e.percentage,
549
+ s: "%",
550
+ r: N.value.style.chart.layout.labels.roundingPercentage
551
+ })
552
+ });
553
+ return `${e.name}${n || r ? ": " : ""}${i}`;
554
+ }
555
+ let kn = b(null);
556
+ function An({ datapoint: e, seriesIndex: t, show: n = !0, triggerMode: r = "pointer" }) {
557
+ N.value.events.datapointEnter && N.value.events.datapointEnter({
558
+ datapoint: e,
559
+ seriesIndex: e.absoluteIndex
560
+ }), M.value = r, j.value = t;
561
+ let i = e.absoluteIndex;
562
+ Q.value = t, kn.value = {
563
+ datapoint: e,
564
+ seriesIndex: i,
565
+ series: q.value,
566
+ config: N.value
567
+ }, O.value = n;
568
+ let a = "", o = N.value.style.chart.tooltip.customFormat;
569
+ if (ee(o) && re(() => o({
570
+ seriesIndex: i,
571
+ datapoint: e,
572
+ series: q.value,
573
+ config: N.value
574
+ }))) Tt.value = o({
575
+ seriesIndex: i,
576
+ datapoint: e,
577
+ series: q.value,
578
+ config: N.value
579
+ });
580
+ else {
581
+ let n = N.value.style.chart.tooltip.showPercentage, r = N.value.style.chart.tooltip.showValue;
582
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.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>${Dn({
583
+ config: N.value.style.chart.tooltip,
584
+ showVal: r,
585
+ showPercentage: n,
586
+ val: `<span>${ne(N.value.style.chart.layout.labels.value.formatter, e.value, s({
587
+ p: e.prefix || "",
588
+ v: e.value,
589
+ s: e.suffix || "",
590
+ r: N.value.style.chart.tooltip.roundingValue
591
+ }), {
592
+ datapoint: e,
593
+ seriesIndex: t
594
+ })}</span>`,
595
+ percentage: s({
596
+ v: e.percentage,
597
+ s: "%",
598
+ r: N.value.style.chart.tooltip.roundingPercentage
599
+ })
600
+ })}</b></div>`, Tt.value = `<div>${a}</div>`;
601
+ }
602
+ }
603
+ function jn() {
604
+ R.value.showTable = !R.value.showTable;
605
+ }
606
+ function Mn() {
607
+ R.value.showTooltip = !R.value.showTooltip;
608
+ }
609
+ let Nn = b(!1);
610
+ function Pn() {
611
+ Nn.value = !Nn.value;
612
+ }
613
+ async function Fn({ scale: e = 2 } = {}) {
614
+ if (!A.value) return;
615
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
616
+ domElement: A.value,
617
+ base64: !0,
618
+ img: !0,
619
+ scale: e
620
+ });
621
+ return {
622
+ imageUri: i,
623
+ base64: a,
624
+ title: N.value.style.chart.title.text,
625
+ width: t,
626
+ height: n,
627
+ aspectRatio: r
628
+ };
629
+ }
630
+ let In = l(() => {
631
+ let e = N.value.table.useDialog && !N.value.table.show, t = R.value.showTable;
632
+ return {
633
+ component: e ? vt : pt,
634
+ title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
635
+ props: e ? {
636
+ backgroundColor: N.value.table.th.backgroundColor,
637
+ color: N.value.table.th.color,
638
+ headerColor: N.value.table.th.color,
639
+ headerBg: N.value.table.th.backgroundColor,
640
+ isFullscreen: $.value,
641
+ fullscreenParent: A.value,
642
+ forcedWidth: Math.min(600, window.innerWidth * .8),
643
+ isCursorPointer: F.value
644
+ } : {
645
+ hideDetails: !0,
646
+ config: {
647
+ open: t,
648
+ maxHeight: 1e4,
649
+ body: {
650
+ backgroundColor: N.value.style.chart.backgroundColor,
651
+ color: N.value.style.chart.color
652
+ },
653
+ head: {
654
+ backgroundColor: N.value.style.chart.backgroundColor,
655
+ color: N.value.style.chart.color
656
+ }
657
+ }
658
+ }
659
+ };
660
+ });
661
+ w(() => R.value.showTable, (e) => {
662
+ N.value.table.show || (e && N.value.table.useDialog && Ft.value ? Ft.value.open() : "close" in Ft.value && Ft.value.close());
663
+ });
664
+ let Ln = l(() => J.value.map((e) => ({
665
+ ...e,
666
+ name: e.display
667
+ }))), Rn = l(() => N.value.style.chart.backgroundColor), zn = l(() => N.value.style.chart.legend), Bn = l(() => N.value.style.chart.title), { isCallbackImaging: Vn, isCallbackSvg: Hn, generateSvg: Un, onGenerateImage: Wn } = ge({
668
+ svg: L,
669
+ title: Bn,
670
+ legend: zn,
671
+ legendItems: Ln,
672
+ backgroundColor: Rn,
673
+ getSvgCallback: () => N.value.userOptions.callbacks.svg,
674
+ generateImage: Jt
675
+ });
676
+ async function Gn() {
677
+ if (hn("copyAlt", {
678
+ config: N.value,
679
+ dataset: X.value
680
+ }), !N.value.userOptions.callbacks.altCopy) {
681
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
682
+ return;
683
+ }
684
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
685
+ config: N.value,
686
+ dataset: X.value
687
+ }));
688
+ }
689
+ function Kn() {
690
+ j.value = null, Lt.value = !0;
691
+ }
692
+ function qn() {
693
+ j.value = null, M.value = "pointer", O.value = !1, Q.value = void 0, Lt.value = !1;
694
+ }
695
+ function Jn(e) {
696
+ if (!L.value || Nn.value || document.activeElement !== L.value || !X.value.length) return;
697
+ let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
698
+ if (!t && !n && !r && !i) return;
699
+ if (e.preventDefault(), e.stopPropagation(), i) {
700
+ j.value = null, M.value = "pointer", O.value = !1, Q.value = void 0;
701
+ return;
702
+ }
703
+ if (r) {
704
+ if (j.value === null) return;
705
+ let e = X.value[j.value];
706
+ if (!e) return;
707
+ Tn({ datapoint: e });
708
+ return;
709
+ }
710
+ let a = j.value;
711
+ a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
712
+ let o = X.value[a];
713
+ o && (Yn(a), An({
714
+ datapoint: o,
715
+ seriesIndex: a,
716
+ show: !0,
717
+ triggerMode: "keyboard"
718
+ }));
719
+ }
720
+ function Yn(e) {
721
+ if (!Number.isFinite(e) || !L.value) return;
722
+ let t = X.value[e];
723
+ if (!t) return;
724
+ let n = t.radius, r = Math.PI * 7 / 4, i = K.value.centerX + n * Math.cos(r), a = K.value.centerY + n * Math.sin(r), o = L.value.getBoundingClientRect();
725
+ It.value = {
726
+ x: o.left + i / z.value.width * o.width,
727
+ y: o.top + a / z.value.height * o.height
728
+ };
729
+ }
730
+ let Xn = l(() => ({
731
+ headers: Z.value?.colNames ?? [],
732
+ rows: Z.value?.body ?? []
733
+ }));
734
+ return be({
735
+ getData: xn,
736
+ getImage: Fn,
737
+ generatePdf: qt,
738
+ generateCsv: Cn,
739
+ generateImage: Jt,
740
+ generateSvg: Un,
741
+ hideSeries: bn,
742
+ showSeries: yn,
743
+ toggleTable: jn,
744
+ toggleTooltip: Mn,
745
+ toggleAnnotator: Pn,
746
+ toggleFullscreen: wn,
747
+ copyAlt: Gn
748
+ }), (e, t) => (y(), f("div", {
749
+ class: g(`vue-data-ui-component vue-ui-onion ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
750
+ ref_key: "onionChart",
751
+ ref: A,
752
+ id: `vue-ui-onion_${D.value}`,
753
+ style: v(`font-family:${N.value.style.fontFamily};width:100%; ${N.value.responsive ? "height: 100%;" : ""} text-align:center;background:${N.value.style.chart.backgroundColor}`),
754
+ onMouseenter: t[4] ||= () => C(Ht)(!0),
755
+ onMouseleave: t[5] ||= () => C(Ht)(!1)
756
+ }, [
757
+ p("div", {
758
+ id: `chart-instructions-${D.value}`,
759
+ class: "sr-only"
760
+ }, [p("p", null, Ve(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
761
+ Xn.value?.rows?.length ? (y(), u(we, {
762
+ key: 0,
763
+ uid: D.value,
764
+ head: Xn.value.headers,
765
+ body: Xn.value.rows,
766
+ notice: N.value.a11y.translations.tableAvailable,
767
+ caption: N.value.a11y.translations.tableCaption
768
+ }, null, 8, [
769
+ "uid",
770
+ "head",
771
+ "body",
772
+ "notice",
773
+ "caption"
774
+ ])) : d("", !0),
775
+ N.value.userOptions.buttons.annotator ? (y(), u(C(gt), {
776
+ key: 1,
777
+ svgRef: C(L),
778
+ backgroundColor: N.value.style.chart.backgroundColor,
779
+ color: N.value.style.chart.color,
780
+ active: Nn.value,
781
+ isCursorPointer: F.value,
782
+ onClose: Pn
783
+ }, {
784
+ "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
785
+ "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
786
+ "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
787
+ "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
788
+ "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
789
+ "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
790
+ _: 3
791
+ }, 8, [
792
+ "svgRef",
793
+ "backgroundColor",
794
+ "color",
795
+ "active",
796
+ "isCursorPointer"
797
+ ])) : d("", !0),
798
+ Yt.value ? (y(), f("div", {
799
+ key: 2,
800
+ ref_key: "noTitle",
801
+ ref: kt,
802
+ class: "vue-data-ui-no-title-space",
803
+ style: "height:36px; width: 100%;background:transparent"
804
+ }, null, 512)) : d("", !0),
805
+ N.value.style.chart.title.text ? (y(), f("div", {
806
+ key: 3,
807
+ ref_key: "chartTitle",
808
+ ref: Et,
809
+ style: "width:100%;background:transparent"
810
+ }, [(y(), u(ye, {
811
+ key: `title_${At.value}`,
812
+ config: {
813
+ title: {
814
+ cy: "onion-div-title",
815
+ ...N.value.style.chart.title
816
+ },
817
+ subtitle: {
818
+ cy: "onion-div-subtitle",
819
+ ...N.value.style.chart.title.subtitle
820
+ }
821
+ }
822
+ }, null, 8, ["config"]))], 512)) : d("", !0),
823
+ p("div", { id: `legend-top-${D.value}` }, null, 8, Ke),
824
+ N.value.userOptions.show && St.value && (C(Ut) || C(Vt)) ? (y(), u(C(ht), {
825
+ ref_key: "details",
826
+ ref: Ct,
827
+ key: `user_options${wt.value}`,
828
+ backgroundColor: N.value.style.chart.backgroundColor,
829
+ color: N.value.style.chart.color,
830
+ isImaging: C(Kt),
831
+ isPrinting: C(Gt),
832
+ uid: D.value,
833
+ hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
834
+ hasPdf: N.value.userOptions.buttons.pdf,
835
+ hasImg: N.value.userOptions.buttons.img,
836
+ hasSvg: N.value.userOptions.buttons.svg,
837
+ hasXls: N.value.userOptions.buttons.csv,
838
+ hasTable: N.value.userOptions.buttons.table,
839
+ hasFullscreen: N.value.userOptions.buttons.fullscreen,
840
+ hasAltCopy: N.value.userOptions.buttons.altCopy,
841
+ isFullscreen: $.value,
842
+ isTooltip: R.value.showTooltip,
843
+ titles: { ...N.value.userOptions.buttonTitles },
844
+ chartElement: A.value,
845
+ position: N.value.userOptions.position,
846
+ hasAnnotator: N.value.userOptions.buttons.annotator,
847
+ isAnnotation: Nn.value,
848
+ callbacks: N.value.userOptions.callbacks,
849
+ printScale: N.value.userOptions.print.scale,
850
+ tableDialog: N.value.table.useDialog,
851
+ isCursorPointer: F.value,
852
+ onToggleFullscreen: wn,
853
+ onGeneratePdf: C(qt),
854
+ onGenerateCsv: Cn,
855
+ onGenerateImage: C(Wn),
856
+ onGenerateSvg: C(Un),
857
+ onToggleTable: jn,
858
+ onToggleTooltip: Mn,
859
+ onToggleAnnotator: Pn,
860
+ onCopyAlt: Gn,
861
+ style: v({ visibility: C(Ut) ? C(Vt) ? "visible" : "hidden" : "visible" })
862
+ }, Me({ _: 2 }, [
863
+ e.$slots.menuIcon ? {
864
+ name: "menuIcon",
865
+ fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
866
+ isOpen: t,
867
+ color: n
868
+ })), void 0, !0)]),
869
+ key: "0"
870
+ } : void 0,
871
+ e.$slots.optionTooltip ? {
872
+ name: "optionTooltip",
873
+ fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
874
+ key: "1"
875
+ } : void 0,
876
+ e.$slots.optionPdf ? {
877
+ name: "optionPdf",
878
+ fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
879
+ key: "2"
880
+ } : void 0,
881
+ e.$slots.optionCsv ? {
882
+ name: "optionCsv",
883
+ fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
884
+ key: "3"
885
+ } : void 0,
886
+ e.$slots.optionImg ? {
887
+ name: "optionImg",
888
+ fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
889
+ key: "4"
890
+ } : void 0,
891
+ e.$slots.optionSvg ? {
892
+ name: "optionSvg",
893
+ fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
894
+ key: "5"
895
+ } : void 0,
896
+ e.$slots.optionTable ? {
897
+ name: "optionTable",
898
+ fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
899
+ key: "6"
900
+ } : void 0,
901
+ e.$slots.optionFullscreen ? {
902
+ name: "optionFullscreen",
903
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
904
+ toggleFullscreen: t,
905
+ isFullscreen: n
906
+ })), void 0, !0)]),
907
+ key: "7"
908
+ } : void 0,
909
+ e.$slots.optionAnnotator ? {
910
+ name: "optionAnnotator",
911
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
912
+ toggleAnnotator: t,
913
+ isAnnotator: n
914
+ })), void 0, !0)]),
915
+ key: "8"
916
+ } : void 0,
917
+ e.$slots.optionAltCopy ? {
918
+ name: "optionAltCopy",
919
+ fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
920
+ key: "9"
921
+ } : void 0,
922
+ e.$slots["custom-menu-before"] ? {
923
+ name: "custom-menu-before",
924
+ fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
925
+ key: "10"
926
+ } : void 0,
927
+ e.$slots["custom-menu-after"] ? {
928
+ name: "custom-menu-after",
929
+ fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
930
+ key: "11"
931
+ } : void 0
932
+ ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : d("", !0),
933
+ p("div", qe, [(y(), f("svg", {
934
+ ref_key: "svgRef",
935
+ ref: L,
936
+ xmlns: C(oe),
937
+ "aria-describedby": `chart-instructions-${D.value}`,
938
+ class: g({
939
+ "vue-data-ui-fullscreen--on": $.value,
940
+ "vue-data-ui-fulscreen--off": !$.value,
941
+ resizing: Nt.value,
942
+ "vue-data-ui-no-transition": !C(P) || Nt.value || C(I)
943
+ }),
944
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
945
+ style: v(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
946
+ tabindex: "0",
947
+ onFocus: Kn,
948
+ onBlur: qn,
949
+ onKeydown: Jn
950
+ }, [
951
+ Pe(C(_t)),
952
+ e.$slots["chart-background"] ? (y(), f("foreignObject", {
953
+ key: 0,
954
+ x: 0,
955
+ y: 0,
956
+ width: z.value.width <= 0 ? 10 : z.value.width,
957
+ height: z.value.height <= 0 ? 10 : z.value.height,
958
+ style: { pointerEvents: "none" }
959
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : d("", !0),
960
+ (y(!0), f(c, null, x(X.value, (e, t) => (y(), f("circle", {
961
+ cx: K.value.centerX,
962
+ cy: K.value.centerY,
963
+ r: e.radius <= 0 ? 1e-4 : e.radius,
964
+ stroke: N.value.style.chart.layout.gutter.color,
965
+ "stroke-width": Y.value.gutter,
966
+ fill: "none",
967
+ "stroke-dasharray": e.path.bgDashArray,
968
+ "stroke-dashoffset": e.path.fullOffset,
969
+ "stroke-linecap": "round",
970
+ class: g({
971
+ "vue-ui-onion-path": !0,
972
+ "vue-ui-onion-blur": N.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
973
+ "vue-data-ui-transition": C(P)
974
+ }),
975
+ style: {
976
+ transform: "rotate(-90deg)",
977
+ transformOrigin: "50% 50%"
978
+ }
979
+ }, null, 10, Xe))), 256)),
980
+ (y(!0), f(c, null, x(X.value, (e, t) => (y(), f("circle", {
981
+ cx: K.value.centerX,
982
+ cy: K.value.centerY,
983
+ r: e.radius < 0 ? 1e-4 : e.radius,
984
+ stroke: `${e.color}`,
985
+ "stroke-width": Y.value.track,
986
+ fill: "none",
987
+ "stroke-dasharray": e.path.dashArray,
988
+ "stroke-dashoffset": e.path.dashOffset,
989
+ class: g({
990
+ "vue-ui-onion-path": !0,
991
+ "vue-ui-onion-blur": N.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
992
+ "vue-data-ui-transition": C(P)
993
+ }),
994
+ "stroke-linecap": "round",
995
+ style: {
996
+ transform: "rotate(-90deg)",
997
+ transformOrigin: "50% 50%"
998
+ }
999
+ }, null, 10, Ze))), 256)),
1000
+ p("defs", null, [p("filter", {
1001
+ id: `blur_${D.value}`,
1002
+ x: "-50%",
1003
+ y: "-50%",
1004
+ width: "200%",
1005
+ height: "200%"
1006
+ }, [p("feGaussianBlur", {
1007
+ in: "SourceGraphic",
1008
+ stdDeviation: 100 / N.value.style.chart.gradientIntensity
1009
+ }, null, 8, $e)], 8, Qe)]),
1010
+ N.value.style.chart.useGradient ? (y(), f("g", {
1011
+ key: 1,
1012
+ filter: `url(#blur_${D.value})`
1013
+ }, [(y(!0), f(c, null, x(X.value, (e, t) => (y(), f("circle", {
1014
+ cx: K.value.centerX,
1015
+ cy: K.value.centerY,
1016
+ r: e.radius <= 0 ? 1e-4 : e.radius,
1017
+ stroke: "white",
1018
+ "stroke-width": Y.value.track / 3,
1019
+ fill: "none",
1020
+ "stroke-linecap": "round",
1021
+ "stroke-dasharray": e.path.dashArray,
1022
+ "stroke-dashoffset": e.path.dashOffset,
1023
+ style: {
1024
+ transform: "rotate(-90deg)",
1025
+ transformOrigin: "50% 50%"
1026
+ },
1027
+ class: g({ "vue-data-ui-transition": C(P) })
1028
+ }, null, 10, tt))), 256))], 8, et)) : d("", !0),
1029
+ (y(!0), f(c, null, x(X.value, (e, t) => (y(), f("circle", {
1030
+ cx: K.value.centerX,
1031
+ cy: K.value.centerY,
1032
+ r: e.radius <= 0 ? 1e-4 : e.radius,
1033
+ stroke: "transparent",
1034
+ "stroke-width": Math.max(Y.value.track, Y.value.gutter),
1035
+ fill: "none",
1036
+ "stroke-dasharray": e.path.bgDashArray,
1037
+ "stroke-dashoffset": e.path.fullOffset,
1038
+ "stroke-linecap": "round",
1039
+ class: "vue-ui-onion-path",
1040
+ style: {
1041
+ transform: "rotate(-90deg)",
1042
+ transformOrigin: "50% 50%"
1043
+ },
1044
+ onMouseenter: (n) => An({
1045
+ datapoint: e,
1046
+ show: !0,
1047
+ seriesIndex: t,
1048
+ triggerMode: "pointer"
1049
+ }),
1050
+ onMouseleave: (t) => En({ datapoint: e }),
1051
+ onClick: (t) => Tn({ datapoint: e })
1052
+ }, null, 40, nt))), 256)),
1053
+ N.value.style.chart.layout.labels.show ? (y(), f("g", rt, [(y(!0), f(c, null, x(X.value, (e, t) => (y(), f("g", {
1054
+ key: `dl_${e.id}`,
1055
+ onMouseenter: (n) => An({
1056
+ datapoint: e,
1057
+ show: !0,
1058
+ seriesIndex: t,
1059
+ triggerMode: "pointer"
1060
+ }),
1061
+ onMouseleave: (t) => En({ datapoint: e }),
1062
+ onClick: (t) => Tn({ datapoint: e })
1063
+ }, [k.value.includes(e.id) ? d("", !0) : (y(), f("text", {
1064
+ key: 0,
1065
+ class: g(["vue-ui-onion-label", { "vue-data-ui-transition": C(P) }]),
1066
+ transform: `translate(${z.value.width / 2 - Y.value.gutter * .8 + N.value.style.chart.layout.labels.offsetX},${e.labelY + N.value.style.chart.layout.labels.offsetY})`,
1067
+ "text-anchor": "end",
1068
+ "font-size": N.value.style.chart.layout.labels.fontSize,
1069
+ fill: N.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value === t ? e.color : N.value.style.chart.layout.labels.color,
1070
+ "font-weight": N.value.style.chart.layout.labels.bold ? "bold" : "normal"
1071
+ }, Ve(On(e, t)), 11, at))], 40, it))), 128))])) : d("", !0),
1072
+ S(e.$slots, "svg", { svg: {
1073
+ ...z.value,
1074
+ drawingArea: K.value,
1075
+ isPrintingImg: C(Gt) || C(Kt) || C(Vn),
1076
+ isPrintingSvg: C(Hn)
1077
+ } }, void 0, !0)
1078
+ ], 46, Je)), e.$slots.hint ? (y(), f("div", ot, [S(e.$slots, "hint", _(h({
1079
+ hint: N.value.a11y.translations.keyboardNavigation,
1080
+ isVisible: Lt.value
1081
+ })), void 0, !0)])) : d("", !0)]),
1082
+ e.$slots.watermark ? (y(), f("div", st, [S(e.$slots, "watermark", _(h({ isPrinting: C(Gt) || C(Kt) || C(Vn) || C(Hn) })), void 0, !0)])) : d("", !0),
1083
+ p("div", { id: `legend-bottom-${D.value}` }, null, 8, ct),
1084
+ Pt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(je, {
1085
+ key: 6,
1086
+ to: N.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1087
+ }, [p("div", {
1088
+ ref_key: "chartLegend",
1089
+ ref: Dt
1090
+ }, [S(e.$slots, "legend", { legend: J.value }, () => [N.value.style.chart.legend.show ? (y(), u(Oe, {
1091
+ key: `legend_${Mt.value}`,
1092
+ legendSet: J.value,
1093
+ config: fn.value,
1094
+ isCursorPointer: F.value,
1095
+ onClickMarker: t[0] ||= ({ legend: e }) => _n(e.id)
1096
+ }, {
1097
+ item: T(({ legend: e }) => [C(I) ? d("", !0) : (y(), f("div", {
1098
+ key: 0,
1099
+ "data-cy-legend-item": "",
1100
+ onClick: (t) => e.segregate(),
1101
+ style: v(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
1102
+ }, Ve(e.display), 13, lt))]),
1103
+ legendToggle: T(() => [J.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !C(I) ? (y(), u(Ce, {
1104
+ key: 0,
1105
+ backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1106
+ color: N.value.style.chart.legend.selectAllToggle.color,
1107
+ fontSize: N.value.style.chart.legend.fontSize,
1108
+ checked: k.value.length > 0,
1109
+ isCursorPointer: F.value,
1110
+ onToggle: gn
1111
+ }, null, 8, [
1112
+ "backgroundColor",
1113
+ "color",
1114
+ "fontSize",
1115
+ "checked",
1116
+ "isCursorPointer"
1117
+ ])) : d("", !0)]),
1118
+ _: 1
1119
+ }, 8, [
1120
+ "legendSet",
1121
+ "config",
1122
+ "isCursorPointer"
1123
+ ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1124
+ e.$slots.source ? (y(), f("div", {
1125
+ key: 7,
1126
+ ref_key: "source",
1127
+ ref: Ot,
1128
+ dir: "auto"
1129
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1130
+ Pe(C(dt), {
1131
+ teleportTo: N.value.style.chart.tooltip.teleportTo,
1132
+ show: R.value.showTooltip && O.value,
1133
+ backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1134
+ color: N.value.style.chart.tooltip.color,
1135
+ borderRadius: N.value.style.chart.tooltip.borderRadius,
1136
+ borderColor: N.value.style.chart.tooltip.borderColor,
1137
+ borderWidth: N.value.style.chart.tooltip.borderWidth,
1138
+ fontSize: N.value.style.chart.tooltip.fontSize,
1139
+ backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1140
+ position: N.value.style.chart.tooltip.position,
1141
+ offsetX: N.value.style.chart.tooltip.offsetX,
1142
+ offsetY: N.value.style.chart.tooltip.offsetY,
1143
+ parent: A.value,
1144
+ content: Tt.value,
1145
+ isFullscreen: $.value,
1146
+ isCustom: C(ee)(N.value.style.chart.tooltip.customFormat),
1147
+ smooth: N.value.style.chart.tooltip.smooth,
1148
+ backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1149
+ smoothForce: N.value.style.chart.tooltip.smoothForce,
1150
+ smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1151
+ isA11yMode: M.value === "keyboard",
1152
+ a11yPosition: It.value
1153
+ }, {
1154
+ "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...kn.value })), void 0, !0)]),
1155
+ tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...kn.value })), void 0, !0)]),
1156
+ "tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...kn.value })), void 0, !0)]),
1157
+ _: 3
1158
+ }, 8, [
1159
+ "teleportTo",
1160
+ "show",
1161
+ "backgroundColor",
1162
+ "color",
1163
+ "borderRadius",
1164
+ "borderColor",
1165
+ "borderWidth",
1166
+ "fontSize",
1167
+ "backgroundOpacity",
1168
+ "position",
1169
+ "offsetX",
1170
+ "offsetY",
1171
+ "parent",
1172
+ "content",
1173
+ "isFullscreen",
1174
+ "isCustom",
1175
+ "smooth",
1176
+ "backdropFilter",
1177
+ "smoothForce",
1178
+ "smoothSnapThreshold",
1179
+ "isA11yMode",
1180
+ "a11yPosition"
1181
+ ]),
1182
+ St.value && N.value.userOptions.buttons.table ? (y(), u(ze(In.value.component), Fe({ key: 8 }, In.value.props, {
1183
+ ref_key: "tableUnit",
1184
+ ref: Ft,
1185
+ onClose: t[3] ||= (e) => R.value.showTable = !1
1186
+ }), Me({
1187
+ content: T(() => [(y(), u(C(mt), {
1188
+ key: `table_${jt.value}`,
1189
+ colNames: Z.value.colNames,
1190
+ head: Z.value.head,
1191
+ body: Z.value.body,
1192
+ config: Z.value.config,
1193
+ title: N.value.table.useDialog ? "" : In.value.title,
1194
+ withCloseButton: !N.value.table.useDialog,
1195
+ isCursorPointer: F.value,
1196
+ onClose: t[2] ||= (e) => R.value.showTable = !1
1197
+ }, {
1198
+ th: T(({ th: e }) => [Ne(Ve(e), 1)]),
1199
+ td: T(({ td: e }) => [p("div", { innerHTML: e }, null, 8, ut)]),
1200
+ _: 1
1201
+ }, 8, [
1202
+ "colNames",
1203
+ "head",
1204
+ "body",
1205
+ "config",
1206
+ "title",
1207
+ "withCloseButton",
1208
+ "isCursorPointer"
1209
+ ]))]),
1210
+ _: 2
1211
+ }, [N.value.table.useDialog ? {
1212
+ name: "title",
1213
+ fn: T(() => [Ne(Ve(In.value.title), 1)]),
1214
+ key: "0"
1215
+ } : void 0, N.value.table.useDialog ? {
1216
+ name: "actions",
1217
+ fn: T(() => [p("button", {
1218
+ tabindex: "0",
1219
+ class: "vue-ui-user-options-button",
1220
+ onClick: t[1] ||= (e) => Cn(N.value.userOptions.callbacks.csv),
1221
+ style: v({ cursor: F.value ? "pointer" : "default" })
1222
+ }, [Pe(C(ft), {
1223
+ name: "fileCsv",
1224
+ stroke: In.value.props.color
1225
+ }, null, 8, ["stroke"])], 4)]),
1226
+ key: "1"
1227
+ } : void 0]), 1040)) : d("", !0),
1228
+ S(e.$slots, "skeleton", {}, () => [C(I) ? (y(), u(pe, { key: 0 })) : d("", !0)], !0)
1229
+ ], 46, We));
1230
+ }
1231
+ }, [["__scopeId", "data-v-e202bda3"]]);
1232
+ //#endregion
1233
+ export { Ue as n, dt as t };