vue-data-ui 3.22.13 → 3.23.0

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