vue-data-ui 3.25.5 → 3.25.6

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