vue-data-ui 3.25.5 → 3.25.6

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