vue-data-ui 3.22.9 → 3.22.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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,1199 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, C as n, E as r, Gt as i, K as a, Nt as o, Q as ee, Y as s, bt as te, et as ne, i as re, qt as ie, st as ae, t as oe, x as se } from "./lib-CFm_J26b.js";
3
+ import { t as ce } from "./useConfig-C0V0eG7L.js";
4
+ import { t as le } from "./usePrinter-BH-xle1O.js";
5
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
7
+ import { t as pe } from "./useNestedProp-BY6DNN3i.js";
8
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as he } from "./img-Bikk1dGb.js";
10
+ import { n as ge } from "./Title-BuPs74IB.js";
11
+ import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
13
+ import { t as be } from "./BaseLegendToggle-DsWphmIb.js";
14
+ import { t as xe } from "./A11yDataTable-DdRsVULz.js";
15
+ import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as we } from "./labelUtils-BUhssos9.js";
18
+ import { t as Te } from "./Legend-C0xAnJdO.js";
19
+ import { t as Ee } from "./useAutoSizeLabelsInsideViewbox-C9RNjsGv.js";
20
+ import { t as De } from "./vue_ui_onion-1FTFFS46.js";
21
+ 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";
22
+ //#region src/components/vue-ui-onion.vue
23
+ var Be = /* @__PURE__ */ e({ default: () => ct }), Ve = ["id"], He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
24
+ "xmlns",
25
+ "aria-describedby",
26
+ "viewBox"
27
+ ], Ke = ["width", "height"], qe = [
28
+ "cx",
29
+ "cy",
30
+ "r",
31
+ "stroke",
32
+ "stroke-width",
33
+ "stroke-dasharray",
34
+ "stroke-dashoffset"
35
+ ], Je = [
36
+ "cx",
37
+ "cy",
38
+ "r",
39
+ "stroke",
40
+ "stroke-width",
41
+ "stroke-dasharray",
42
+ "stroke-dashoffset"
43
+ ], Ye = ["id"], Xe = ["stdDeviation"], Ze = ["filter"], Qe = [
44
+ "cx",
45
+ "cy",
46
+ "r",
47
+ "stroke-width",
48
+ "stroke-dasharray",
49
+ "stroke-dashoffset"
50
+ ], $e = [
51
+ "cx",
52
+ "cy",
53
+ "r",
54
+ "stroke-width",
55
+ "stroke-dasharray",
56
+ "stroke-dashoffset",
57
+ "onMouseenter",
58
+ "onMouseleave",
59
+ "onClick"
60
+ ], et = { key: 2 }, tt = [
61
+ "onMouseenter",
62
+ "onMouseleave",
63
+ "onClick"
64
+ ], nt = [
65
+ "x",
66
+ "y",
67
+ "font-size",
68
+ "fill",
69
+ "font-weight"
70
+ ], rt = {
71
+ key: 0,
72
+ style: {
73
+ position: "absolute",
74
+ top: "100%",
75
+ left: "0",
76
+ width: "100%"
77
+ },
78
+ "data-dom-to-png-ignore": "",
79
+ "aria-hidden": "true"
80
+ }, it = {
81
+ key: 5,
82
+ class: "vue-data-ui-watermark"
83
+ }, at = ["id"], ot = ["onClick"], st = ["innerHTML"], ct = /*#__PURE__*/ _e({
84
+ __name: "vue-ui-onion",
85
+ props: {
86
+ config: {
87
+ type: Object,
88
+ default() {
89
+ return {};
90
+ }
91
+ },
92
+ dataset: {
93
+ type: Array,
94
+ default() {
95
+ return [];
96
+ }
97
+ }
98
+ },
99
+ emits: ["selectLegend", "copyAlt"],
100
+ setup(e, { expose: _e, emit: Be }) {
101
+ let ct = m(() => import("./Tooltip-CA1rtSyl.js")), lt = m(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), ut = m(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), dt = m(() => import("./DataTable-DzPEVvSo.js")), ft = m(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), pt = m(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), mt = m(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), ht = m(() => import("./BaseDraggableDialog-3n8udWmh.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(a()), 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({
102
+ x: 0,
103
+ y: 0
104
+ }), P = y("pointer"), Pt = y(!1), F = y(Vt()), I = l(() => F.value.userOptions.useCursorPointer), Ft = l(() => ie({
105
+ defaultConfig: {
106
+ userOptions: { show: !1 },
107
+ table: { show: !1 },
108
+ style: { chart: {
109
+ backgroundColor: "#99999930",
110
+ layout: {
111
+ gutter: { color: "#99999950" },
112
+ labels: { show: !1 }
113
+ },
114
+ legend: { backgroundColor: "transparent" }
115
+ } }
116
+ },
117
+ userConfig: F.value.skeletonConfig ?? {}
118
+ })), { loading: L, FINAL_DATASET: It, manualLoading: Lt } = ue({
119
+ ...ze(E),
120
+ FINAL_CONFIG: F,
121
+ prepareConfig: Vt,
122
+ callback: () => {
123
+ Promise.resolve().then(async () => {
124
+ await Ne(), rn();
125
+ });
126
+ },
127
+ skeletonDataset: E.config?.skeletonDataset ?? [
128
+ {
129
+ name: "_",
130
+ percentage: 50,
131
+ value: 1,
132
+ color: "#DBDBDB"
133
+ },
134
+ {
135
+ name: "_",
136
+ percentage: 50,
137
+ value: 1,
138
+ color: "#C4C4C4"
139
+ },
140
+ {
141
+ name: "_",
142
+ percentage: 50,
143
+ value: 1,
144
+ color: "#ADADAD"
145
+ },
146
+ {
147
+ name: "_",
148
+ percentage: 50,
149
+ value: 1,
150
+ color: "#969696"
151
+ }
152
+ ],
153
+ skeletonConfig: ie({
154
+ defaultConfig: F.value,
155
+ userConfig: Ft.value
156
+ })
157
+ }), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Se({ config: F.value }), { svgRef: R } = Ce({ config: F.value.style.chart.title });
158
+ function Vt() {
159
+ let e = pe({
160
+ userConfig: E.config,
161
+ defaultConfig: gt
162
+ }), t = e.theme;
163
+ if (!t) return e;
164
+ if (!_t.value(e)) return vt(e), e;
165
+ let n = pe({
166
+ userConfig: De[t] || E.config,
167
+ defaultConfig: e
168
+ }), r = pe({
169
+ userConfig: E.config,
170
+ defaultConfig: n
171
+ });
172
+ return {
173
+ ...r,
174
+ customPalette: r.customPalette.length ? r.customPalette : i[t] || o
175
+ };
176
+ }
177
+ w(() => E.config, (e) => {
178
+ 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;
179
+ }, { deep: !0 });
180
+ let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = le({
181
+ elementId: `vue-ui-onion_${D.value}`,
182
+ fileName: F.value.style.chart.title.text || "vue-ui-onion",
183
+ options: F.value.userOptions.print
184
+ }), Kt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), qt = l(() => n(F.value.customPalette)), z = y({
185
+ showTable: F.value.table.show,
186
+ showTooltip: F.value.style.chart.tooltip.show
187
+ });
188
+ w(F, () => {
189
+ z.value = {
190
+ showTable: F.value.table.show,
191
+ showTooltip: F.value.style.chart.tooltip.show
192
+ };
193
+ }, { immediate: !0 });
194
+ let B = y({
195
+ height: 512,
196
+ width: 512,
197
+ padding: {
198
+ top: 64,
199
+ left: 64,
200
+ right: 64,
201
+ bottom: 64
202
+ },
203
+ minRadius: 64
204
+ }), V = Re(null), H = Re(null);
205
+ Ie(() => {
206
+ At.value = !0, Qt();
207
+ });
208
+ let Jt = l({
209
+ get: () => F.value.style.chart.layout.labels.fontSize,
210
+ set: (e) => e
211
+ }), { autoSizeLabels: Yt } = Ee({
212
+ svgRef: R,
213
+ fontSize: F.value.style.chart.layout.labels.fontSize,
214
+ minFontSize: F.value.style.chart.layout.labels.minFontSize,
215
+ sizeRef: Jt,
216
+ labelClass: ".vue-ui-onion-label"
217
+ }), Xt = l(() => F.value.debug), Zt = null;
218
+ function Qt() {
219
+ if (t(E.dataset) && (ne({
220
+ componentName: "VueUiOnion",
221
+ type: "dataset",
222
+ debug: Xt.value
223
+ }), Lt.value = !0), t(E.dataset) || (Lt.value = F.value.loading), F.value.responsive) {
224
+ let e = 64 / 512, t = ve(() => {
225
+ Zt && clearTimeout(Zt), j.value = !0;
226
+ let { width: t, height: n } = ye({
227
+ chart: A.value,
228
+ title: F.value.style.chart.title.text ? Ct.value : null,
229
+ legend: F.value.style.chart.legend.show ? wt.value : null,
230
+ source: Tt.value,
231
+ noTitle: Et.value
232
+ });
233
+ n -= 12, requestAnimationFrame(async () => {
234
+ 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(() => {
235
+ j.value = !1, Yt();
236
+ }, 0);
237
+ });
238
+ });
239
+ 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);
240
+ }
241
+ requestAnimationFrame(Yt);
242
+ }
243
+ Fe(() => {
244
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
245
+ });
246
+ let U = l(() => ({
247
+ top: B.value.padding.top,
248
+ left: B.value.padding.left,
249
+ right: B.value.width - B.value.padding.right,
250
+ bottom: B.value.height - B.value.padding.bottom,
251
+ centerX: B.value.width / 2,
252
+ centerY: B.value.height / 2,
253
+ width: B.value.width - B.value.padding.right - B.value.padding.left,
254
+ height: B.value.height - B.value.padding.bottom - B.value.padding.top,
255
+ minRadius: B.value.minRadius,
256
+ maxRadius: Math.min(B.value.width, B.value.height) - B.value.padding.top * 2
257
+ })), W = l(() => (It.value.forEach((e, t) => {
258
+ [null, void 0].includes(e.name) && ne({
259
+ componentName: "VueUiOnion",
260
+ type: "datasetSerieAttribute",
261
+ property: "name",
262
+ index: t
263
+ }), [void 0].includes(e.percentage) && ne({
264
+ componentName: "VueUiOnion",
265
+ type: "datasetSerieAttribute",
266
+ property: "percentage",
267
+ index: t
268
+ });
269
+ }), It.value.map((e, t) => {
270
+ let n = `onion_serie_${t}_${D.value}`;
271
+ return {
272
+ ...e,
273
+ percentage: e.percentage || 0,
274
+ targetPercentage: e.percentage || 0,
275
+ color: se(e.color) || qt.value[t] || o[t],
276
+ id: n,
277
+ shape: "circle",
278
+ opacity: k.value.includes(n) ? .5 : 1,
279
+ absoluteIndex: t,
280
+ segregate: () => un(n),
281
+ isSegregated: k.value.includes(n)
282
+ };
283
+ }))), G = l(() => W.value.map((e, t) => {
284
+ let n = F.value.style.chart.legend.showValue, r = F.value.style.chart.legend.showPercentage, i = bn({
285
+ showVal: n,
286
+ showPercentage: r,
287
+ val: re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
288
+ p: e.prefix || "",
289
+ v: e.value,
290
+ s: e.suffix || "",
291
+ r: F.value.style.chart.legend.roundingValue
292
+ })),
293
+ percentage: s({
294
+ v: e.percentage ?? 0,
295
+ s: "%",
296
+ r: F.value.style.chart.legend.roundingPercentage
297
+ }),
298
+ config: F.value.style.chart.legend
299
+ });
300
+ return {
301
+ ...e,
302
+ display: `${e.name}${n || r ? ": " : ""}${i}`
303
+ };
304
+ })), 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);
305
+ w(() => W.value, rn, {
306
+ immediate: !0,
307
+ deep: !0
308
+ }), w(() => E.dataset, (e) => {
309
+ Array.isArray(e) && e.length > 0 && (Lt.value = !1);
310
+ }, { deep: !0 });
311
+ function rn() {
312
+ if ($t.value && !nn.value && !L.value) {
313
+ K.value = W.value.map((e) => ({
314
+ ...e,
315
+ percentage: 0
316
+ }));
317
+ let e = 0;
318
+ function t() {
319
+ e >= tn.value ? (cancelAnimationFrame(en.value), K.value = W.value, nn.value = !0) : (K.value = W.value.map((t) => ({
320
+ ...t,
321
+ percentage: e < t.targetPercentage ? e : t.targetPercentage
322
+ })), e += 1, requestAnimationFrame(t), nn.value = !0);
323
+ }
324
+ t();
325
+ } else K.value = W.value;
326
+ }
327
+ let an = l(() => ({
328
+ cy: "onion-div-legend",
329
+ backgroundColor: F.value.style.chart.legend.backgroundColor,
330
+ color: F.value.style.chart.legend.color,
331
+ fontSize: F.value.style.chart.legend.fontSize,
332
+ paddingBottom: 12,
333
+ fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
334
+ })), on = l(() => W.value.filter((e) => !k.value.includes(e.id)).length), q = l(() => {
335
+ let e = Math.min(U.value.width, U.value.height) / 2 / W.value.length;
336
+ return {
337
+ gutter: (e > F.value.style.chart.layout.maxThickness ? F.value.style.chart.layout.maxThickness : e) * F.value.style.chart.layout.gutter.width,
338
+ track: (e > F.value.style.chart.layout.maxThickness ? F.value.style.chart.layout.maxThickness : e) * F.value.style.chart.layout.track.width
339
+ };
340
+ }), J = l(() => K.value.filter((e) => !k.value.includes(e.id)).map((e, t) => {
341
+ let n = (U.value.maxRadius - q.value.track) / on.value / 2 * (1 + t), r = U.value.centerY - n;
342
+ return {
343
+ percentage: e.percentage || 0,
344
+ ...e,
345
+ labelY: r,
346
+ radius: n,
347
+ path: sn(n, e.percentage || 0)
348
+ };
349
+ }));
350
+ function sn(e, t) {
351
+ let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
352
+ return {
353
+ bgDashArray: `${r} ${n}`,
354
+ bgDashOffset: 0,
355
+ dashArray: i,
356
+ dashOffset: a,
357
+ fullOffset: 0,
358
+ active: `
359
+ M ${U.value.centerX},${U.value.centerY - e}
360
+ A ${e},${e} 0 1 1
361
+ ${U.value.centerX + e * Math.cos(Math.PI * 3 / 4)},${U.value.centerY + e * Math.sin(Math.PI * 3 / 4)}
362
+ `.trim()
363
+ };
364
+ }
365
+ let cn = Be;
366
+ function ln() {
367
+ k.value.length ? k.value = [] : G.value.forEach((e) => {
368
+ k.value.push(e.id);
369
+ }), cn("selectLegend", J.value);
370
+ }
371
+ function un(e) {
372
+ if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e);
373
+ else {
374
+ if (k.value.length === W.value.length - 1) return;
375
+ k.value.push(e);
376
+ }
377
+ cn("selectLegend", J.value);
378
+ }
379
+ function dn(e) {
380
+ 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);
381
+ }
382
+ function fn(e) {
383
+ let t = dn(e);
384
+ t !== null && k.value.includes(t.id) && un(t.id);
385
+ }
386
+ function pn(e) {
387
+ let t = dn(e);
388
+ t !== null && (k.value.includes(t.id) || un(t.id));
389
+ }
390
+ function mn() {
391
+ return J.value;
392
+ }
393
+ let hn = l(() => ({
394
+ head: [
395
+ F.value.table.translations.serie,
396
+ F.value.table.translations.percentage,
397
+ F.value.table.translations.value
398
+ ],
399
+ body: J.value.map((e) => [
400
+ e.name,
401
+ e.percentage,
402
+ e.value
403
+ ])
404
+ })), Y = l(() => {
405
+ let e = hn.value.head;
406
+ return {
407
+ head: e,
408
+ body: J.value.map((e) => [
409
+ `<span style="color:${e.color}" aria-hidden="true">⬤</span> ${e.name}`,
410
+ `${Number(e.percentage ?? 0).toFixed(F.value.table.td.roundingPercentage).toLocaleString()}%`,
411
+ `${e.prefix || ""}${[
412
+ null,
413
+ void 0,
414
+ NaN,
415
+ "NaN"
416
+ ].includes(e.value) ? "-" : e.value.toFixed(F.value.table.td.roundingValue).toLocaleString()}${e.suffix || ""}`
417
+ ]),
418
+ config: {
419
+ th: {
420
+ backgroundColor: F.value.table.th.backgroundColor,
421
+ color: F.value.table.th.color,
422
+ outline: F.value.table.th.outline
423
+ },
424
+ td: {
425
+ backgroundColor: F.value.table.td.backgroundColor,
426
+ color: F.value.table.td.color,
427
+ outline: F.value.table.td.outline
428
+ },
429
+ breakpoint: F.value.table.responsiveBreakpoint
430
+ },
431
+ colNames: e
432
+ };
433
+ });
434
+ function gn(e = null) {
435
+ Ne(() => {
436
+ let t = [
437
+ [F.value.style.chart.title.text],
438
+ [F.value.style.chart.title.subtitle.text],
439
+ [""]
440
+ ], n = hn.value.head, i = hn.value.body, a = r(t.concat([n]).concat(i));
441
+ e ? e(a) : ee({
442
+ csvContent: a,
443
+ title: F.value.style.chart.title.text || "vue-ui-onion"
444
+ });
445
+ });
446
+ }
447
+ let X = y(void 0), Z = y(!1);
448
+ function _n(e) {
449
+ Z.value = e, xt.value += 1;
450
+ }
451
+ function vn({ datapoint: e }) {
452
+ F.value.events.datapointClick && F.value.events.datapointClick({
453
+ datapoint: e,
454
+ seriesIndex: e.absoluteIndex
455
+ });
456
+ }
457
+ function yn({ datapoint: e }) {
458
+ X.value = void 0, O.value = !1, N.value = null, P.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
459
+ datapoint: e,
460
+ seriesIndex: e.absoluteIndex
461
+ });
462
+ }
463
+ function bn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
464
+ return we({
465
+ config: i,
466
+ val: e,
467
+ percentage: t,
468
+ showVal: n,
469
+ showPercentage: r
470
+ });
471
+ }
472
+ function xn(e, t) {
473
+ let n = F.value.style.chart.layout.labels.value.show, r = F.value.style.chart.layout.labels.percentage.show, i = bn({
474
+ config: F.value.style.chart.layout.labels,
475
+ showVal: n,
476
+ showPercentage: r,
477
+ val: re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
478
+ p: e.prefix || "",
479
+ v: e.value || 0,
480
+ s: e.suffix || "",
481
+ r: F.value.style.chart.layout.labels.roundingValue
482
+ }), {
483
+ datapoint: e,
484
+ seriesIndex: t
485
+ }),
486
+ percentage: s({
487
+ v: e.percentage,
488
+ s: "%",
489
+ r: F.value.style.chart.layout.labels.roundingPercentage
490
+ })
491
+ });
492
+ return `${e.name}${n || r ? ": " : ""}${i}`;
493
+ }
494
+ let Sn = y(null);
495
+ function Cn({ datapoint: e, seriesIndex: t, show: n = !0, triggerMode: r = "pointer" }) {
496
+ F.value.events.datapointEnter && F.value.events.datapointEnter({
497
+ datapoint: e,
498
+ seriesIndex: e.absoluteIndex
499
+ }), P.value = r, N.value = t;
500
+ let i = e.absoluteIndex;
501
+ X.value = t, Sn.value = {
502
+ datapoint: e,
503
+ seriesIndex: i,
504
+ series: W.value,
505
+ config: F.value
506
+ }, O.value = n;
507
+ let a = "", o = F.value.style.chart.tooltip.customFormat;
508
+ if (te(o) && ae(() => o({
509
+ seriesIndex: i,
510
+ datapoint: e,
511
+ series: W.value,
512
+ config: F.value
513
+ }))) St.value = o({
514
+ seriesIndex: i,
515
+ datapoint: e,
516
+ series: W.value,
517
+ config: F.value
518
+ });
519
+ else {
520
+ let n = F.value.style.chart.tooltip.showPercentage, r = F.value.style.chart.tooltip.showValue;
521
+ 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({
522
+ config: F.value.style.chart.tooltip,
523
+ showVal: r,
524
+ showPercentage: n,
525
+ val: `<span>${re(F.value.style.chart.layout.labels.value.formatter, e.value, s({
526
+ p: e.prefix || "",
527
+ v: e.value,
528
+ s: e.suffix || "",
529
+ r: F.value.style.chart.tooltip.roundingValue
530
+ }), {
531
+ datapoint: e,
532
+ seriesIndex: t
533
+ })}</span>`,
534
+ percentage: s({
535
+ v: e.percentage,
536
+ s: "%",
537
+ r: F.value.style.chart.tooltip.roundingPercentage
538
+ })
539
+ })}</b></div>`, St.value = `<div>${a}</div>`;
540
+ }
541
+ }
542
+ function wn() {
543
+ z.value.showTable = !z.value.showTable;
544
+ }
545
+ function Tn() {
546
+ z.value.showTooltip = !z.value.showTooltip;
547
+ }
548
+ let Q = y(!1);
549
+ function En() {
550
+ Q.value = !Q.value;
551
+ }
552
+ async function Dn({ scale: e = 2 } = {}) {
553
+ if (!A.value) return;
554
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
555
+ domElement: A.value,
556
+ base64: !0,
557
+ img: !0,
558
+ scale: e
559
+ });
560
+ return {
561
+ imageUri: i,
562
+ base64: a,
563
+ title: F.value.style.chart.title.text,
564
+ width: t,
565
+ height: n,
566
+ aspectRatio: r
567
+ };
568
+ }
569
+ let $ = l(() => {
570
+ let e = F.value.table.useDialog && !F.value.table.show, t = z.value.showTable;
571
+ return {
572
+ component: e ? ht : ut,
573
+ title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
574
+ props: e ? {
575
+ backgroundColor: F.value.table.th.backgroundColor,
576
+ color: F.value.table.th.color,
577
+ headerColor: F.value.table.th.color,
578
+ headerBg: F.value.table.th.backgroundColor,
579
+ isFullscreen: Z.value,
580
+ fullscreenParent: A.value,
581
+ forcedWidth: Math.min(600, window.innerWidth * .8),
582
+ isCursorPointer: I.value
583
+ } : {
584
+ hideDetails: !0,
585
+ config: {
586
+ open: t,
587
+ maxHeight: 1e4,
588
+ body: {
589
+ backgroundColor: F.value.style.chart.backgroundColor,
590
+ color: F.value.style.chart.color
591
+ },
592
+ head: {
593
+ backgroundColor: F.value.style.chart.backgroundColor,
594
+ color: F.value.style.chart.color
595
+ }
596
+ }
597
+ }
598
+ };
599
+ });
600
+ w(() => z.value.showTable, (e) => {
601
+ F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
602
+ });
603
+ let On = l(() => G.value.map((e) => ({
604
+ ...e,
605
+ name: e.display
606
+ }))), kn = l(() => F.value.style.chart.backgroundColor), An = l(() => F.value.style.chart.legend), { exportSvg: jn, getSvg: Mn } = fe({
607
+ svg: R,
608
+ title: l(() => F.value.style.chart.title),
609
+ legend: An,
610
+ legendItems: On,
611
+ backgroundColor: kn
612
+ });
613
+ async function Nn({ isCb: e }) {
614
+ Mt.value = !0, await Ne();
615
+ try {
616
+ if (e) {
617
+ let { blob: e, url: t, text: n, dataUrl: r } = await Mn();
618
+ await Promise.resolve(F.value.userOptions.callbacks.svg({
619
+ blob: e,
620
+ url: t,
621
+ text: n,
622
+ dataUrl: r
623
+ }));
624
+ } else await Promise.resolve(jn());
625
+ } finally {
626
+ Mt.value = !1;
627
+ }
628
+ }
629
+ function Pn(e) {
630
+ if (e?.stage === "start") {
631
+ jt.value = !0;
632
+ return;
633
+ }
634
+ if (e?.stage === "end") {
635
+ jt.value = !1;
636
+ return;
637
+ }
638
+ Gt();
639
+ }
640
+ async function Fn() {
641
+ if (cn("copyAlt", {
642
+ config: F.value,
643
+ dataset: J.value
644
+ }), !F.value.userOptions.callbacks.altCopy) {
645
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
646
+ return;
647
+ }
648
+ await Promise.resolve(F.value.userOptions.callbacks.altCopy({
649
+ config: F.value,
650
+ dataset: J.value
651
+ }));
652
+ }
653
+ function In() {
654
+ N.value = null, Pt.value = !0;
655
+ }
656
+ function Ln() {
657
+ N.value = null, P.value = "pointer", O.value = !1, X.value = void 0, Pt.value = !1;
658
+ }
659
+ function Rn(e) {
660
+ if (!R.value || Q.value || document.activeElement !== R.value || !J.value.length) return;
661
+ let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
662
+ if (!t && !n && !r && !i) return;
663
+ if (e.preventDefault(), e.stopPropagation(), i) {
664
+ N.value = null, P.value = "pointer", O.value = !1, X.value = void 0;
665
+ return;
666
+ }
667
+ if (r) {
668
+ if (N.value === null) return;
669
+ let e = J.value[N.value];
670
+ if (!e) return;
671
+ vn({ datapoint: e });
672
+ return;
673
+ }
674
+ let a = N.value;
675
+ 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));
676
+ let o = J.value[a];
677
+ o && (zn(a), Cn({
678
+ datapoint: o,
679
+ seriesIndex: a,
680
+ show: !0,
681
+ triggerMode: "keyboard"
682
+ }));
683
+ }
684
+ function zn(e) {
685
+ if (!Number.isFinite(e) || !R.value) return;
686
+ let t = J.value[e];
687
+ if (!t) return;
688
+ 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();
689
+ Nt.value = {
690
+ x: o.left + i / B.value.width * o.width,
691
+ y: o.top + a / B.value.height * o.height
692
+ };
693
+ }
694
+ let Bn = l(() => ({
695
+ headers: Y.value?.colNames ?? [],
696
+ rows: Y.value?.body ?? []
697
+ }));
698
+ return _e({
699
+ getData: mn,
700
+ getImage: Dn,
701
+ generatePdf: Wt,
702
+ generateCsv: gn,
703
+ generateImage: Gt,
704
+ generateSvg: Nn,
705
+ hideSeries: pn,
706
+ showSeries: fn,
707
+ toggleTable: wn,
708
+ toggleTooltip: Tn,
709
+ toggleAnnotator: En,
710
+ toggleFullscreen: _n,
711
+ copyAlt: Fn
712
+ }), (e, t) => (v(), f("div", {
713
+ class: Pe(`vue-data-ui-component vue-ui-onion ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
714
+ ref_key: "onionChart",
715
+ ref: A,
716
+ id: `vue-ui-onion_${D.value}`,
717
+ style: _(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
718
+ onMouseenter: t[4] ||= () => C(zt)(!0),
719
+ onMouseleave: t[5] ||= () => C(zt)(!1)
720
+ }, [
721
+ p("div", {
722
+ id: `chart-instructions-${D.value}`,
723
+ class: "sr-only"
724
+ }, [p("p", null, S(F.value.a11y.translations.keyboardNavigation), 1)], 8, He),
725
+ Bn.value?.rows?.length ? (v(), u(xe, {
726
+ key: 0,
727
+ uid: D.value,
728
+ head: Bn.value.headers,
729
+ body: Bn.value.rows,
730
+ notice: F.value.a11y.translations.tableAvailable,
731
+ caption: F.value.a11y.translations.tableCaption
732
+ }, null, 8, [
733
+ "uid",
734
+ "head",
735
+ "body",
736
+ "notice",
737
+ "caption"
738
+ ])) : d("", !0),
739
+ F.value.userOptions.buttons.annotator ? (v(), u(C(pt), {
740
+ key: 1,
741
+ svgRef: C(R),
742
+ backgroundColor: F.value.style.chart.backgroundColor,
743
+ color: F.value.style.chart.color,
744
+ active: Q.value,
745
+ isCursorPointer: I.value,
746
+ onClose: En
747
+ }, {
748
+ "annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
749
+ "annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
750
+ "annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
751
+ "annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
752
+ "annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
753
+ "annotator-action-delete": T(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
754
+ _: 3
755
+ }, 8, [
756
+ "svgRef",
757
+ "backgroundColor",
758
+ "color",
759
+ "active",
760
+ "isCursorPointer"
761
+ ])) : d("", !0),
762
+ Kt.value ? (v(), f("div", {
763
+ key: 2,
764
+ ref_key: "noTitle",
765
+ ref: Et,
766
+ class: "vue-data-ui-no-title-space",
767
+ style: "height:36px; width: 100%;background:transparent"
768
+ }, null, 512)) : d("", !0),
769
+ F.value.style.chart.title.text ? (v(), f("div", {
770
+ key: 3,
771
+ ref_key: "chartTitle",
772
+ ref: Ct,
773
+ style: "width:100%;background:transparent"
774
+ }, [(v(), u(ge, {
775
+ key: `title_${Dt.value}`,
776
+ config: {
777
+ title: {
778
+ cy: "onion-div-title",
779
+ ...F.value.style.chart.title
780
+ },
781
+ subtitle: {
782
+ cy: "onion-div-subtitle",
783
+ ...F.value.style.chart.title.subtitle
784
+ }
785
+ }
786
+ }, null, 8, ["config"]))], 512)) : d("", !0),
787
+ p("div", { id: `legend-top-${D.value}` }, null, 8, Ue),
788
+ F.value.userOptions.show && yt.value && (C(Bt) || C(Rt)) ? (v(), u(C(ft), {
789
+ ref_key: "details",
790
+ ref: bt,
791
+ key: `user_options${xt.value}`,
792
+ backgroundColor: F.value.style.chart.backgroundColor,
793
+ color: F.value.style.chart.color,
794
+ isImaging: C(Ut),
795
+ isPrinting: C(Ht),
796
+ uid: D.value,
797
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
798
+ hasPdf: F.value.userOptions.buttons.pdf,
799
+ hasImg: F.value.userOptions.buttons.img,
800
+ hasSvg: F.value.userOptions.buttons.svg,
801
+ hasXls: F.value.userOptions.buttons.csv,
802
+ hasTable: F.value.userOptions.buttons.table,
803
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
804
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
805
+ isFullscreen: Z.value,
806
+ isTooltip: z.value.showTooltip,
807
+ titles: { ...F.value.userOptions.buttonTitles },
808
+ chartElement: A.value,
809
+ position: F.value.userOptions.position,
810
+ hasAnnotator: F.value.userOptions.buttons.annotator,
811
+ isAnnotation: Q.value,
812
+ callbacks: F.value.userOptions.callbacks,
813
+ printScale: F.value.userOptions.print.scale,
814
+ tableDialog: F.value.table.useDialog,
815
+ isCursorPointer: I.value,
816
+ onToggleFullscreen: _n,
817
+ onGeneratePdf: C(Wt),
818
+ onGenerateCsv: gn,
819
+ onGenerateImage: Pn,
820
+ onGenerateSvg: Nn,
821
+ onToggleTable: wn,
822
+ onToggleTooltip: Tn,
823
+ onToggleAnnotator: En,
824
+ onCopyAlt: Fn,
825
+ style: _({ visibility: C(Bt) ? C(Rt) ? "visible" : "hidden" : "visible" })
826
+ }, ke({ _: 2 }, [
827
+ e.$slots.menuIcon ? {
828
+ name: "menuIcon",
829
+ fn: T(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
830
+ isOpen: t,
831
+ color: n
832
+ })), void 0, !0)]),
833
+ key: "0"
834
+ } : void 0,
835
+ e.$slots.optionTooltip ? {
836
+ name: "optionTooltip",
837
+ fn: T(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
838
+ key: "1"
839
+ } : void 0,
840
+ e.$slots.optionPdf ? {
841
+ name: "optionPdf",
842
+ fn: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
843
+ key: "2"
844
+ } : void 0,
845
+ e.$slots.optionCsv ? {
846
+ name: "optionCsv",
847
+ fn: T(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
848
+ key: "3"
849
+ } : void 0,
850
+ e.$slots.optionImg ? {
851
+ name: "optionImg",
852
+ fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
853
+ key: "4"
854
+ } : void 0,
855
+ e.$slots.optionSvg ? {
856
+ name: "optionSvg",
857
+ fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
858
+ key: "5"
859
+ } : void 0,
860
+ e.$slots.optionTable ? {
861
+ name: "optionTable",
862
+ fn: T(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
863
+ key: "6"
864
+ } : void 0,
865
+ e.$slots.optionFullscreen ? {
866
+ name: "optionFullscreen",
867
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
868
+ toggleFullscreen: t,
869
+ isFullscreen: n
870
+ })), void 0, !0)]),
871
+ key: "7"
872
+ } : void 0,
873
+ e.$slots.optionAnnotator ? {
874
+ name: "optionAnnotator",
875
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
876
+ toggleAnnotator: t,
877
+ isAnnotator: n
878
+ })), void 0, !0)]),
879
+ key: "8"
880
+ } : void 0,
881
+ e.$slots.optionAltCopy ? {
882
+ name: "optionAltCopy",
883
+ fn: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
884
+ key: "9"
885
+ } : void 0,
886
+ e.$slots["custom-menu-before"] ? {
887
+ name: "custom-menu-before",
888
+ fn: T(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
889
+ key: "10"
890
+ } : void 0,
891
+ e.$slots["custom-menu-after"] ? {
892
+ name: "custom-menu-after",
893
+ fn: T(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
894
+ key: "11"
895
+ } : void 0
896
+ ]), 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),
897
+ p("div", We, [(v(), f("svg", {
898
+ ref_key: "svgRef",
899
+ ref: R,
900
+ xmlns: C(oe),
901
+ "aria-describedby": `chart-instructions-${D.value}`,
902
+ class: Pe({
903
+ "vue-data-ui-fullscreen--on": Z.value,
904
+ "vue-data-ui-fulscreen--off": !Z.value,
905
+ resizing: j.value
906
+ }),
907
+ viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
908
+ style: _(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
909
+ tabindex: "0",
910
+ onFocus: In,
911
+ onBlur: Ln,
912
+ onKeydown: Rn
913
+ }, [
914
+ je(C(mt)),
915
+ e.$slots["chart-background"] ? (v(), f("foreignObject", {
916
+ key: 0,
917
+ x: 0,
918
+ y: 0,
919
+ width: B.value.width <= 0 ? 10 : B.value.width,
920
+ height: B.value.height <= 0 ? 10 : B.value.height,
921
+ style: { pointerEvents: "none" }
922
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : d("", !0),
923
+ (v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
924
+ cx: U.value.centerX,
925
+ cy: U.value.centerY,
926
+ r: e.radius <= 0 ? 1e-4 : e.radius,
927
+ stroke: F.value.style.chart.layout.gutter.color,
928
+ "stroke-width": q.value.gutter,
929
+ fill: "none",
930
+ "stroke-dasharray": e.path.bgDashArray,
931
+ "stroke-dashoffset": e.path.fullOffset,
932
+ "stroke-linecap": "round",
933
+ class: Pe({
934
+ "vue-ui-onion-path": !0,
935
+ "vue-ui-onion-blur": F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t
936
+ }),
937
+ style: _({
938
+ transform: "rotate(-90deg)",
939
+ transformOrigin: "50% 50%",
940
+ transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
941
+ animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
942
+ })
943
+ }, null, 14, qe))), 256)),
944
+ (v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
945
+ cx: U.value.centerX,
946
+ cy: U.value.centerY,
947
+ r: e.radius < 0 ? 1e-4 : e.radius,
948
+ stroke: `${e.color}`,
949
+ "stroke-width": q.value.track,
950
+ fill: "none",
951
+ "stroke-dasharray": e.path.dashArray,
952
+ "stroke-dashoffset": e.path.dashOffset,
953
+ class: Pe({
954
+ "vue-ui-onion-path": !0,
955
+ "vue-ui-onion-blur": F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t
956
+ }),
957
+ "stroke-linecap": "round",
958
+ style: _({
959
+ transform: "rotate(-90deg)",
960
+ transformOrigin: "50% 50%",
961
+ transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
962
+ animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
963
+ })
964
+ }, null, 14, Je))), 256)),
965
+ p("defs", null, [p("filter", {
966
+ id: `blur_${D.value}`,
967
+ x: "-50%",
968
+ y: "-50%",
969
+ width: "200%",
970
+ height: "200%"
971
+ }, [p("feGaussianBlur", {
972
+ in: "SourceGraphic",
973
+ stdDeviation: 100 / F.value.style.chart.gradientIntensity
974
+ }, null, 8, Xe)], 8, Ye)]),
975
+ F.value.style.chart.useGradient ? (v(), f("g", {
976
+ key: 1,
977
+ filter: `url(#blur_${D.value})`
978
+ }, [(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
979
+ cx: U.value.centerX,
980
+ cy: U.value.centerY,
981
+ r: e.radius <= 0 ? 1e-4 : e.radius,
982
+ stroke: "white",
983
+ "stroke-width": q.value.track / 3,
984
+ fill: "none",
985
+ "stroke-linecap": "round",
986
+ "stroke-dasharray": e.path.dashArray,
987
+ "stroke-dashoffset": e.path.dashOffset,
988
+ style: _({
989
+ transform: "rotate(-90deg)",
990
+ transformOrigin: "50% 50%",
991
+ transition: j.value || C(L) ? "none" : "all 0.3s ease-in-out !important",
992
+ animation: j.value || C(L) ? "none" : "xyAnimation 0.5s ease-in"
993
+ })
994
+ }, null, 12, Qe))), 256))], 8, Ze)) : d("", !0),
995
+ (v(!0), f(c, null, b(J.value, (e, t) => (v(), f("circle", {
996
+ cx: U.value.centerX,
997
+ cy: U.value.centerY,
998
+ r: e.radius <= 0 ? 1e-4 : e.radius,
999
+ stroke: "transparent",
1000
+ "stroke-width": Math.max(q.value.track, q.value.gutter),
1001
+ fill: "none",
1002
+ "stroke-dasharray": e.path.bgDashArray,
1003
+ "stroke-dashoffset": e.path.fullOffset,
1004
+ "stroke-linecap": "round",
1005
+ class: "vue-ui-onion-path",
1006
+ style: {
1007
+ transform: "rotate(-90deg)",
1008
+ transformOrigin: "50% 50%"
1009
+ },
1010
+ onMouseenter: (n) => Cn({
1011
+ datapoint: e,
1012
+ show: !0,
1013
+ seriesIndex: t,
1014
+ triggerMode: "pointer"
1015
+ }),
1016
+ onMouseleave: (t) => yn({ datapoint: e }),
1017
+ onClick: (t) => vn({ datapoint: e })
1018
+ }, null, 40, $e))), 256)),
1019
+ F.value.style.chart.layout.labels.show ? (v(), f("g", et, [(v(!0), f(c, null, b(J.value, (e, t) => (v(), f("g", {
1020
+ onMouseenter: (n) => Cn({
1021
+ datapoint: e,
1022
+ show: !0,
1023
+ seriesIndex: t,
1024
+ triggerMode: "pointer"
1025
+ }),
1026
+ onMouseleave: (t) => yn({ datapoint: e }),
1027
+ onClick: (t) => vn({ datapoint: e })
1028
+ }, [k.value.includes(e.id) ? d("", !0) : (v(), f("text", {
1029
+ key: 0,
1030
+ class: "vue-ui-onion-label",
1031
+ x: B.value.width / 2 - q.value.gutter * .8 + F.value.style.chart.layout.labels.offsetX,
1032
+ y: e.labelY + F.value.style.chart.layout.labels.offsetY,
1033
+ "text-anchor": "end",
1034
+ "font-size": F.value.style.chart.layout.labels.fontSize,
1035
+ fill: F.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value === t ? e.color : F.value.style.chart.layout.labels.color,
1036
+ "font-weight": F.value.style.chart.layout.labels.bold ? "bold" : "normal"
1037
+ }, S(xn(e, t)), 9, nt))], 40, tt))), 256))])) : d("", !0),
1038
+ x(e.$slots, "svg", { svg: {
1039
+ ...B.value,
1040
+ drawingArea: U.value,
1041
+ isPrintingImg: C(Ht) || C(Ut) || jt.value,
1042
+ isPrintingSvg: Mt.value
1043
+ } }, void 0, !0)
1044
+ ], 46, Ge)), e.$slots.hint ? (v(), f("div", rt, [x(e.$slots, "hint", g(h({
1045
+ hint: F.value.a11y.translations.keyboardNavigation,
1046
+ isVisible: Pt.value
1047
+ })), void 0, !0)])) : d("", !0)]),
1048
+ 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),
1049
+ p("div", { id: `legend-bottom-${D.value}` }, null, 8, at),
1050
+ At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Oe, {
1051
+ key: 6,
1052
+ to: F.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1053
+ }, [p("div", {
1054
+ ref_key: "chartLegend",
1055
+ ref: wt
1056
+ }, [x(e.$slots, "legend", { legend: G.value }, () => [F.value.style.chart.legend.show ? (v(), u(Te, {
1057
+ key: `legend_${kt.value}`,
1058
+ legendSet: G.value,
1059
+ config: an.value,
1060
+ isCursorPointer: I.value,
1061
+ onClickMarker: t[0] ||= ({ legend: e }) => un(e.id)
1062
+ }, {
1063
+ item: T(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", {
1064
+ key: 0,
1065
+ "data-cy-legend-item": "",
1066
+ onClick: (t) => e.segregate(),
1067
+ style: _(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
1068
+ }, S(e.display), 13, ot))]),
1069
+ legendToggle: T(() => [G.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !C(L) ? (v(), u(be, {
1070
+ key: 0,
1071
+ backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
1072
+ color: F.value.style.chart.legend.selectAllToggle.color,
1073
+ fontSize: F.value.style.chart.legend.fontSize,
1074
+ checked: k.value.length > 0,
1075
+ isCursorPointer: I.value,
1076
+ onToggle: ln
1077
+ }, null, 8, [
1078
+ "backgroundColor",
1079
+ "color",
1080
+ "fontSize",
1081
+ "checked",
1082
+ "isCursorPointer"
1083
+ ])) : d("", !0)]),
1084
+ _: 1
1085
+ }, 8, [
1086
+ "legendSet",
1087
+ "config",
1088
+ "isCursorPointer"
1089
+ ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1090
+ e.$slots.source ? (v(), f("div", {
1091
+ key: 7,
1092
+ ref_key: "source",
1093
+ ref: Tt,
1094
+ dir: "auto"
1095
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1096
+ je(C(ct), {
1097
+ teleportTo: F.value.style.chart.tooltip.teleportTo,
1098
+ show: z.value.showTooltip && O.value,
1099
+ backgroundColor: F.value.style.chart.tooltip.backgroundColor,
1100
+ color: F.value.style.chart.tooltip.color,
1101
+ borderRadius: F.value.style.chart.tooltip.borderRadius,
1102
+ borderColor: F.value.style.chart.tooltip.borderColor,
1103
+ borderWidth: F.value.style.chart.tooltip.borderWidth,
1104
+ fontSize: F.value.style.chart.tooltip.fontSize,
1105
+ backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
1106
+ position: F.value.style.chart.tooltip.position,
1107
+ offsetX: F.value.style.chart.tooltip.offsetX,
1108
+ offsetY: F.value.style.chart.tooltip.offsetY,
1109
+ parent: A.value,
1110
+ content: St.value,
1111
+ isFullscreen: Z.value,
1112
+ isCustom: C(te)(F.value.style.chart.tooltip.customFormat),
1113
+ smooth: F.value.style.chart.tooltip.smooth,
1114
+ backdropFilter: F.value.style.chart.tooltip.backdropFilter,
1115
+ smoothForce: F.value.style.chart.tooltip.smoothForce,
1116
+ smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
1117
+ isA11yMode: P.value === "keyboard",
1118
+ a11yPosition: Nt.value
1119
+ }, {
1120
+ "tooltip-before": T(() => [x(e.$slots, "tooltip-before", g(h({ ...Sn.value })), void 0, !0)]),
1121
+ tooltip: T(() => [x(e.$slots, "tooltip", g(h({ ...Sn.value })), void 0, !0)]),
1122
+ "tooltip-after": T(() => [x(e.$slots, "tooltip-after", g(h({ ...Sn.value })), void 0, !0)]),
1123
+ _: 3
1124
+ }, 8, [
1125
+ "teleportTo",
1126
+ "show",
1127
+ "backgroundColor",
1128
+ "color",
1129
+ "borderRadius",
1130
+ "borderColor",
1131
+ "borderWidth",
1132
+ "fontSize",
1133
+ "backgroundOpacity",
1134
+ "position",
1135
+ "offsetX",
1136
+ "offsetY",
1137
+ "parent",
1138
+ "content",
1139
+ "isFullscreen",
1140
+ "isCustom",
1141
+ "smooth",
1142
+ "backdropFilter",
1143
+ "smoothForce",
1144
+ "smoothSnapThreshold",
1145
+ "isA11yMode",
1146
+ "a11yPosition"
1147
+ ]),
1148
+ yt.value && F.value.userOptions.buttons.table ? (v(), u(Le($.value.component), Me({ key: 8 }, $.value.props, {
1149
+ ref_key: "tableUnit",
1150
+ ref: M,
1151
+ onClose: t[3] ||= (e) => z.value.showTable = !1
1152
+ }), ke({
1153
+ content: T(() => [(v(), u(C(dt), {
1154
+ key: `table_${Ot.value}`,
1155
+ colNames: Y.value.colNames,
1156
+ head: Y.value.head,
1157
+ body: Y.value.body,
1158
+ config: Y.value.config,
1159
+ title: F.value.table.useDialog ? "" : $.value.title,
1160
+ withCloseButton: !F.value.table.useDialog,
1161
+ isCursorPointer: I.value,
1162
+ onClose: t[2] ||= (e) => z.value.showTable = !1
1163
+ }, {
1164
+ th: T(({ th: e }) => [Ae(S(e), 1)]),
1165
+ td: T(({ td: e }) => [p("div", { innerHTML: e }, null, 8, st)]),
1166
+ _: 1
1167
+ }, 8, [
1168
+ "colNames",
1169
+ "head",
1170
+ "body",
1171
+ "config",
1172
+ "title",
1173
+ "withCloseButton",
1174
+ "isCursorPointer"
1175
+ ]))]),
1176
+ _: 2
1177
+ }, [F.value.table.useDialog ? {
1178
+ name: "title",
1179
+ fn: T(() => [Ae(S($.value.title), 1)]),
1180
+ key: "0"
1181
+ } : void 0, F.value.table.useDialog ? {
1182
+ name: "actions",
1183
+ fn: T(() => [p("button", {
1184
+ tabindex: "0",
1185
+ class: "vue-ui-user-options-button",
1186
+ onClick: t[1] ||= (e) => gn(F.value.userOptions.callbacks.csv),
1187
+ style: _({ cursor: I.value ? "pointer" : "default" })
1188
+ }, [je(C(lt), {
1189
+ name: "fileCsv",
1190
+ stroke: $.value.props.color
1191
+ }, null, 8, ["stroke"])], 4)]),
1192
+ key: "1"
1193
+ } : void 0]), 1040)) : d("", !0),
1194
+ x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(de, { key: 0 })) : d("", !0)], !0)
1195
+ ], 46, Ve));
1196
+ }
1197
+ }, [["__scopeId", "data-v-2e5c3df8"]]);
1198
+ //#endregion
1199
+ export { Be as n, ct as t };