vue-data-ui 3.15.12 → 3.16.1

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