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