vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,1252 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, Bt as n, C as r, E as i, Gt as a, K as ee, Lt as te, Nt as o, Q as ne, W as re, Y as s, bt as ie, et as ae, ft as oe, i as se, qt as ce, st as le, t as ue, x as de, y as fe, zt as pe } from "./lib-CnHx5WfV.js";
3
+ import { t as me } from "./useConfig-DYM3f6EI.js";
4
+ import { t as he } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ve } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ye } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as be } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as xe } from "./img-CNdXiUfZ.js";
10
+ import { n as Se } from "./Title-Cr3jP7Qd.js";
11
+ import { t as Ce } from "./Shape-B5ksaGa1.js";
12
+ import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as Te } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as Ee } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as De } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as Oe } from "./BaseLegendToggle-BrQ2OlzI.js";
17
+ import { t as ke } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as je } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Me } from "./labelUtils-JaoYKi2N.js";
21
+ import { t as Ne } from "./Legend-5VQGLnmx.js";
22
+ import { t as Pe } from "./vue_ui_rings-BVgD2aMn.js";
23
+ import { Fragment as Fe, Teleport as Ie, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Be, nextTick as Ve, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as He, onMounted as Ue, openBlock as v, ref as y, renderList as We, renderSlot as b, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as qe, toRefs as Je, unref as x, useSlots as Ye, watch as Xe, withCtx as S } from "vue";
24
+ //#region src/components/vue-ui-rings.vue
25
+ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
26
+ "xmlns",
27
+ "viewBox",
28
+ "aria-describedby"
29
+ ], rt = ["width", "height"], it = { key: 1 }, at = [
30
+ "stroke",
31
+ "cx",
32
+ "cy",
33
+ "r",
34
+ "fill"
35
+ ], ot = [
36
+ "stroke",
37
+ "stroke-width",
38
+ "cx",
39
+ "cy",
40
+ "r",
41
+ "fill"
42
+ ], st = [
43
+ "stroke",
44
+ "stroke-width",
45
+ "cx",
46
+ "cy",
47
+ "r",
48
+ "fill"
49
+ ], ct = [
50
+ "cx",
51
+ "cy",
52
+ "r",
53
+ "onMouseenter",
54
+ "onMouseleave",
55
+ "onClick"
56
+ ], lt = [
57
+ "x",
58
+ "y",
59
+ "width",
60
+ "height",
61
+ "fill",
62
+ "rx"
63
+ ], ut = [
64
+ "cx",
65
+ "cy",
66
+ "r",
67
+ "fill",
68
+ "stroke"
69
+ ], dt = [
70
+ "x",
71
+ "y",
72
+ "text-anchor",
73
+ "font-size",
74
+ "fill",
75
+ "font-weight",
76
+ "onMouseenter",
77
+ "onMouseleave",
78
+ "onClick",
79
+ "innerHTML"
80
+ ], ft = {
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
+ }, pt = {
91
+ key: 5,
92
+ class: "vue-data-ui-watermark"
93
+ }, mt = ["id"], ht = ["onClick"], gt = ["innerHTML"], _t = /*#__PURE__*/ we({
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: we, emit: Ze }) {
111
+ let _t = p(() => import("./Tooltip-CDbLl3TD.js")), vt = p(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), yt = p(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), bt = p(() => import("./DataTable-ByZy5gt1.js")), xt = p(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), St = p(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Ct = p(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), wt = p(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_rings: Tt } = me(), { isThemeValid: Et, warnInvalidTheme: Dt } = be(), Ot = Ye(), C = e, w = y(!1), kt = c(() => !!C.dataset && C.dataset.length), T = y(ee()), E = y(!1), At = y(""), D = y(null), jt = y(0), O = y(null), Mt = y(null), Nt = y(null), Pt = y(null), Ft = y(null), It = y(0), Lt = y(0), Rt = y(0), zt = y(!1), Bt = y(!1), k = y(null), Vt = y(null), Ht = y(!1), Ut = y(!1), A = y(null), Wt = y({
112
+ x: 0,
113
+ y: 0
114
+ }), j = y("pointer"), Gt = y(!1), M = y(Qt()), N = c(() => M.value.userOptions.useCursorPointer), Kt = c(() => ce({
115
+ defaultConfig: {
116
+ userOptions: { show: !1 },
117
+ table: { show: !1 },
118
+ style: { chart: {
119
+ backgroundColor: "#99999930",
120
+ layout: {
121
+ rings: {
122
+ stroke: "#6A6A6A",
123
+ gradient: { underlayerColor: "#FFFFFF" }
124
+ },
125
+ labels: { dataLabels: { show: !1 } }
126
+ },
127
+ legend: { backgroundColor: "transparent" }
128
+ } }
129
+ },
130
+ userConfig: M.value.skeletonConfig ?? {}
131
+ })), { loading: P, FINAL_DATASET: qt, manualLoading: Jt } = ge({
132
+ ...Je(C),
133
+ FINAL_CONFIG: M,
134
+ prepareConfig: Qt,
135
+ skeletonDataset: C.config?.skeletonDataset ?? [
136
+ {
137
+ name: "_",
138
+ values: [13],
139
+ color: "#808080"
140
+ },
141
+ {
142
+ name: "_",
143
+ values: [8],
144
+ color: "#969696"
145
+ },
146
+ {
147
+ name: "_",
148
+ values: [5],
149
+ color: "#ADADAD"
150
+ },
151
+ {
152
+ name: "_",
153
+ values: [3],
154
+ color: "#C4C4C4"
155
+ },
156
+ {
157
+ name: "_",
158
+ values: [2],
159
+ color: "#DBDBDB"
160
+ }
161
+ ],
162
+ skeletonConfig: ce({
163
+ defaultConfig: M.value,
164
+ userConfig: Kt.value
165
+ })
166
+ }), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Ae({ config: M.value }), { svgRef: F } = je({ config: M.value.style.chart.title });
167
+ function Qt() {
168
+ let e = ye({
169
+ userConfig: C.config,
170
+ defaultConfig: Tt
171
+ }), t = e.theme;
172
+ if (!t) return e;
173
+ if (!Et.value(e)) return Dt(e), e;
174
+ let n = ye({
175
+ userConfig: Pe[t] || C.config,
176
+ defaultConfig: e
177
+ });
178
+ return {
179
+ ...ye({
180
+ userConfig: C.config,
181
+ defaultConfig: n
182
+ }),
183
+ customPalette: e.customPalette.length ? e.customPalette : a[e.theme] || o
184
+ };
185
+ }
186
+ Xe(() => C.config, (e) => {
187
+ P.value || (M.value = Qt()), Yt.value = !M.value.userOptions.showOnChartHover, tn(), It.value += 1, Lt.value += 1, Rt.value += 1, z.value.showTable = M.value.table.show, z.value.showTooltip = M.value.style.chart.tooltip.show, z.value.showLabels = M.value.style.chart.layout.labels.dataLabels.show, B.value.width = M.value.style.chart.size, B.value.height = M.value.style.chart.size;
188
+ }, { deep: !0 });
189
+ let $t = c(() => {
190
+ let { markers: e } = M.value.style.chart.layout.labels.dataLabels, t = q.value / 2, n = z.value.showLabels ? e.position === "left" ? t : -t : 0, r = z.value.showLabels ? B.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
191
+ return {
192
+ x: M.value.responsive ? i : n / M.value.style.chart.size * B.value.width,
193
+ y: 0 / M.value.style.chart.size * B.value.height
194
+ };
195
+ }), I = c(() => ({
196
+ x: B.value.width / 2 + $t.value.x,
197
+ y: B.value.height / 2 + $t.value.y
198
+ }));
199
+ Xe(() => C.dataset, (e) => {
200
+ Array.isArray(e) && e.length > 0 && (Jt.value = !1);
201
+ }, { deep: !0 });
202
+ let L = Ke(null), R = Ke(null);
203
+ Ue(() => {
204
+ Bt.value = !0, tn();
205
+ });
206
+ let en = c(() => !!M.value.debug);
207
+ function tn() {
208
+ if (t(C.dataset) ? (ae({
209
+ componentName: "VueUiRings",
210
+ type: "dataset",
211
+ debug: en.value
212
+ }), Jt.value = !0) : C.dataset.forEach((e, t) => {
213
+ e.values.length || (ae({
214
+ componentName: "VueUiRings",
215
+ type: "dataset",
216
+ debug: en.value
217
+ }), Jt.value = !0), oe({
218
+ datasetObject: e,
219
+ requiredAttributes: ["name", "values"]
220
+ }).forEach((e) => {
221
+ ae({
222
+ componentName: "VueUiRings",
223
+ type: "datasetSerieAttribute",
224
+ property: e,
225
+ index: t,
226
+ debug: en.value
227
+ });
228
+ });
229
+ }), t(C.dataset) || (Jt.value = M.value.loading), M.value.responsive) {
230
+ let e = Te(() => {
231
+ zt.value = !0;
232
+ let { width: e, height: t } = Ee({
233
+ chart: O.value,
234
+ title: M.value.style.chart.title.text ? Mt.value : null,
235
+ legend: M.value.style.chart.legend.show ? Nt.value : null,
236
+ source: Pt.value,
237
+ noTitle: Ft.value
238
+ });
239
+ requestAnimationFrame(() => {
240
+ B.value.width = e, B.value.height = t - 12, zt.value = !1;
241
+ });
242
+ });
243
+ L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = O.value.parentNode, L.value.observe(R.value);
244
+ }
245
+ setTimeout(() => {
246
+ w.value = !0;
247
+ }, 600);
248
+ }
249
+ He(() => {
250
+ L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
251
+ });
252
+ let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = he({
253
+ elementId: `rings_${T.value}`,
254
+ fileName: M.value.style.chart.title.text || "vue-ui-rings",
255
+ options: M.value.userOptions.print
256
+ }), sn = c(() => M.value.userOptions.show && !M.value.style.chart.title.text), cn = c(() => r(M.value.customPalette)), z = y({
257
+ showTable: M.value.table.show,
258
+ showTooltip: M.value.style.chart.tooltip.show,
259
+ showLabels: M.value.style.chart.layout.labels.dataLabels.show
260
+ });
261
+ Xe(M, () => {
262
+ z.value = {
263
+ showTable: M.value.table.show,
264
+ showTooltip: M.value.style.chart.tooltip.show,
265
+ showLabels: M.value.style.chart.layout.labels.dataLabels.show
266
+ };
267
+ }, { immediate: !0 });
268
+ let B = y({
269
+ height: M.value.style.chart.size,
270
+ width: M.value.style.chart.size
271
+ }), ln = c(() => Math.min(B.value.height, B.value.width)), un = Ze, V = y([]);
272
+ function dn() {
273
+ V.value.length ? V.value = [] : W.value.forEach((e) => {
274
+ V.value.push(e.uid);
275
+ }), fn();
276
+ }
277
+ function fn() {
278
+ un("selectLegend", K.value.map((e) => ({
279
+ name: e.name,
280
+ color: e.color,
281
+ value: e.value
282
+ })));
283
+ }
284
+ function H(e) {
285
+ if (V.value.includes(e)) V.value = V.value.filter((t) => t !== e);
286
+ else {
287
+ if (V.value.length === U.value.length - 1) return;
288
+ V.value.push(e);
289
+ }
290
+ fn();
291
+ }
292
+ function pn(e) {
293
+ return U.value.length ? U.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiRings - There are no series to show."), null);
294
+ }
295
+ function mn(e) {
296
+ let t = pn(e);
297
+ t !== null && V.value.includes(t.uid) && H(t.uid);
298
+ }
299
+ function hn(e) {
300
+ let t = pn(e);
301
+ t !== null && (V.value.includes(t.uid) || H(t.uid));
302
+ }
303
+ let gn = c(() => Math.max(...U.value.filter((e) => !V.value.includes(e.uid)).map(({ value: e }) => e)));
304
+ function _n(e) {
305
+ return e / gn.value;
306
+ }
307
+ let U = c(() => qt.value.map(({ values: e, name: t, color: n = null }, r) => {
308
+ let i = te(e).reduce((e, t) => e + t, 0);
309
+ return {
310
+ name: t,
311
+ color: n || de(n) || cn.value[r] || o[r] || o[r % o.length],
312
+ value: i,
313
+ proportion: i / qt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
314
+ uid: ee(),
315
+ absoluteIndex: r
316
+ };
317
+ })), W = c(() => U.value.map((e, t) => {
318
+ let n = se(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
319
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
320
+ v: e.value,
321
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
322
+ r: M.value.style.chart.legend.roundingValue
323
+ }), {
324
+ datapoint: e,
325
+ index: t
326
+ }), r = isNaN(e.value / G.value) ? "-" : s({
327
+ v: e.value / G.value * 100,
328
+ s: "%",
329
+ r: M.value.style.chart.legend.roundingPercentage
330
+ }), i = Sn({
331
+ showVal: M.value.style.chart.legend.showValue,
332
+ showPercentage: M.value.style.chart.legend.showPercentage,
333
+ val: n,
334
+ percentage: V.value.includes(e.uid) ? "-%" : r
335
+ });
336
+ return {
337
+ ...e,
338
+ shape: "circle",
339
+ opacity: V.value.includes(e.uid) ? .5 : 1,
340
+ segregate: () => H(e.uid),
341
+ isSegregated: V.value.includes(e.uid),
342
+ display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${i}`
343
+ };
344
+ }).toSorted((e, t) => t.value - e.value)), vn = c(() => ({
345
+ cy: "rings-div-legend",
346
+ backgroundColor: M.value.style.chart.legend.backgroundColor,
347
+ color: M.value.style.chart.legend.color,
348
+ fontSize: M.value.style.chart.legend.fontSize,
349
+ paddingBottom: 12,
350
+ fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
351
+ })), G = c(() => U.value.filter((e) => !V.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), K = c(() => U.value.filter((e) => !V.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, a) => ({
352
+ absoluteIndex: i,
353
+ uid: r,
354
+ name: e,
355
+ color: n || de(n) || cn.value[a] || o[a] || o[a % o.length],
356
+ value: t,
357
+ proportion: _n(t),
358
+ percentage: t / G.value * 100,
359
+ strokeWidth: M.value.style.chart.layout.rings.strokeWidth * _n(t)
360
+ })).toSorted((e, t) => t.value - e.value));
361
+ function yn() {
362
+ return K.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
363
+ name: e,
364
+ color: t,
365
+ value: n,
366
+ absoluteValues: r,
367
+ percentage: i
368
+ }));
369
+ }
370
+ let q = c(() => ln.value - M.value.style.chart.layout.rings.strokeWidth * 2);
371
+ function bn(e, t) {
372
+ M.value.events.datapointClick && M.value.events.datapointClick({
373
+ datapoint: e,
374
+ seriesIndex: t
375
+ });
376
+ }
377
+ function xn(e, t) {
378
+ D.value = null, E.value = !1, A.value = null, j.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
379
+ datapoint: e,
380
+ seriesIndex: t
381
+ });
382
+ }
383
+ function Sn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
384
+ let i = M.value.style.chart.layout.labels.dataLabels;
385
+ return Me({
386
+ config: i,
387
+ val: e,
388
+ percentage: t,
389
+ showVal: n,
390
+ showPercentage: r
391
+ });
392
+ }
393
+ function Cn(e) {
394
+ let t = M.value.style.chart.layout.labels.dataLabels, n = se(t.formatter, e.value, s({
395
+ p: t.prefix,
396
+ v: e.value,
397
+ s: t.suffix,
398
+ r: t.roundingValue
399
+ })), r = s({
400
+ v: e.percentage,
401
+ s: "%",
402
+ r: t.roundingPercentage
403
+ });
404
+ return `${e.name}\n${Sn({
405
+ val: n,
406
+ percentage: r,
407
+ showVal: t.showValue,
408
+ showPercentage: t.showPercentage
409
+ })}`;
410
+ }
411
+ function J(e) {
412
+ return fe(q.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : q.value * e.proportion / 2 * .9);
413
+ }
414
+ function wn(e, t) {
415
+ return t === 0 ? I.value.y : I.value.y + q.value * K.value[0].proportion / 2 - q.value * e.proportion / 2 - 2 * (t + 1);
416
+ }
417
+ function Y(e, t) {
418
+ let n = M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(q.value / 2) : q.value / 2;
419
+ return {
420
+ x: I.value.x + n,
421
+ y: wn(e, t) - J(e)
422
+ };
423
+ }
424
+ let Tn = y(null);
425
+ function En(e, t, n = "pointer") {
426
+ if (M.value.events.datapointEnter && M.value.events.datapointEnter({
427
+ datapoint: e,
428
+ seriesIndex: t
429
+ }), V.value.length === C.dataset.length) return;
430
+ Tn.value = {
431
+ datapoint: e,
432
+ seriesIndex: t,
433
+ series: K.value,
434
+ config: M.value
435
+ }, D.value = t, A.value = t, j.value = n;
436
+ let r = K.value[t], i = M.value.style.chart.tooltip.customFormat;
437
+ if (ie(i) && le(() => i({
438
+ seriesIndex: t,
439
+ datapoint: e,
440
+ series: K.value,
441
+ config: M.value
442
+ }))) At.value = i({
443
+ seriesIndex: t,
444
+ datapoint: e,
445
+ series: K.value,
446
+ config: M.value
447
+ });
448
+ else {
449
+ let n = "";
450
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.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="${r.color}" />${Ot.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${T.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${Sn({
451
+ showVal: M.value.style.chart.tooltip.showValue,
452
+ showPercentage: M.value.style.chart.tooltip.showPercentage,
453
+ val: `<span>${se(M.value.style.chart.layout.labels.dataLabels.formatter, r.value, s({
454
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
455
+ v: r.value,
456
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
457
+ r: M.value.style.chart.tooltip.roundingValue
458
+ }), {
459
+ datapoint: e,
460
+ seriesIndex: t
461
+ })}</span>`,
462
+ percentage: s({
463
+ v: r.value / G.value * 100,
464
+ s: "%",
465
+ r: M.value.style.chart.tooltip.roundingPercentage
466
+ })
467
+ })}</b></div>`, At.value = n;
468
+ }
469
+ E.value = !0;
470
+ }
471
+ let X = c(() => ({
472
+ head: K.value.map((e) => ({
473
+ name: e.name,
474
+ color: e.color
475
+ })),
476
+ body: K.value.map((e) => e.value)
477
+ })), Z = c(() => {
478
+ let e = [
479
+ " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
480
+ s({
481
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
482
+ v: G.value,
483
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
484
+ r: M.value.table.td.roundingValue
485
+ }),
486
+ "100%"
487
+ ], t = X.value.head.map((e, t) => [
488
+ {
489
+ color: e.color,
490
+ name: e.name
491
+ },
492
+ s({
493
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
494
+ v: X.value.body[t],
495
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
496
+ r: M.value.table.td.roundingValue
497
+ }),
498
+ isNaN(X.value.body[t] / G.value) ? "-" : (X.value.body[t] / G.value * 100).toFixed(M.value.table.td.roundingPercentage) + "%"
499
+ ]);
500
+ return {
501
+ head: e,
502
+ body: t,
503
+ a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
504
+ config: {
505
+ th: {
506
+ backgroundColor: M.value.table.th.backgroundColor,
507
+ color: M.value.table.th.color,
508
+ outline: M.value.table.th.outline
509
+ },
510
+ td: {
511
+ backgroundColor: M.value.table.td.backgroundColor,
512
+ color: M.value.table.td.color,
513
+ outline: M.value.table.td.outline
514
+ },
515
+ breakpoint: M.value.table.responsiveBreakpoint
516
+ },
517
+ colNames: [
518
+ M.value.table.columnNames.series,
519
+ M.value.table.columnNames.value,
520
+ M.value.table.columnNames.percentage
521
+ ]
522
+ };
523
+ });
524
+ function Dn(e = null) {
525
+ Ve(() => {
526
+ let t = X.value.head.map((e, t) => [
527
+ [e.name],
528
+ [X.value.body[t]],
529
+ [isNaN(X.value.body[t] / G.value) ? "-" : X.value.body[t] / G.value * 100]
530
+ ]), n = i([
531
+ [M.value.style.chart.title.text],
532
+ [M.value.style.chart.title.subtitle.text],
533
+ [
534
+ [""],
535
+ ["val"],
536
+ ["%"]
537
+ ]
538
+ ].concat(t));
539
+ e ? e(n) : ne({
540
+ csvContent: n,
541
+ title: M.value.style.chart.title.text || "vue-ui-rings"
542
+ });
543
+ });
544
+ }
545
+ let Q = y(!1);
546
+ function On(e) {
547
+ Q.value = e, jt.value += 1;
548
+ }
549
+ function kn() {
550
+ z.value.showTable = !z.value.showTable;
551
+ }
552
+ function An() {
553
+ z.value.showTooltip = !z.value.showTooltip;
554
+ }
555
+ function jn() {
556
+ z.value.showLabels = !z.value.showLabels;
557
+ }
558
+ let Mn = y(!1);
559
+ function Nn() {
560
+ Mn.value = !Mn.value;
561
+ }
562
+ async function Pn({ scale: e = 2 } = {}) {
563
+ if (!O.value) return;
564
+ let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
565
+ domElement: O.value,
566
+ base64: !0,
567
+ img: !0,
568
+ scale: e
569
+ });
570
+ return {
571
+ imageUri: i,
572
+ base64: a,
573
+ title: M.value.style.chart.title.text,
574
+ width: t,
575
+ height: n,
576
+ aspectRatio: r
577
+ };
578
+ }
579
+ let $ = c(() => {
580
+ let e = M.value.table.useDialog && !M.value.table.show, t = z.value.showTable;
581
+ return {
582
+ component: e ? wt : yt,
583
+ title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
584
+ props: e ? {
585
+ backgroundColor: M.value.table.th.backgroundColor,
586
+ color: M.value.table.th.color,
587
+ headerColor: M.value.table.th.color,
588
+ headerBg: M.value.table.th.backgroundColor,
589
+ isFullscreen: Q.value,
590
+ fullscreenParent: O.value,
591
+ forcedWidth: Math.min(800, window.innerWidth * .8),
592
+ isCursorPointer: N.value
593
+ } : {
594
+ hideDetails: !0,
595
+ config: {
596
+ open: t,
597
+ maxHeight: 1e4,
598
+ body: {
599
+ backgroundColor: M.value.style.chart.backgroundColor,
600
+ color: M.value.style.chart.color
601
+ },
602
+ head: {
603
+ backgroundColor: M.value.style.chart.backgroundColor,
604
+ color: M.value.style.chart.color
605
+ }
606
+ }
607
+ }
608
+ };
609
+ });
610
+ Xe(() => z.value.showTable, (e) => {
611
+ M.value.table.show || (e && M.value.table.useDialog && k.value ? k.value.open() : "close" in k.value && k.value.close());
612
+ });
613
+ function Fn() {
614
+ z.value.showTable = !1, Vt.value && Vt.value.setTableIconState(!1);
615
+ }
616
+ let In = c(() => W.value.map((e) => ({
617
+ ...e,
618
+ name: e.display
619
+ }))), Ln = c(() => M.value.style.chart.backgroundColor), Rn = c(() => M.value.style.chart.legend), { exportSvg: zn, getSvg: Bn } = ve({
620
+ svg: F,
621
+ title: c(() => M.value.style.chart.title),
622
+ legend: Rn,
623
+ legendItems: In,
624
+ backgroundColor: Ln
625
+ });
626
+ async function Vn({ isCb: e }) {
627
+ Ut.value = !0, await Ve();
628
+ try {
629
+ if (e) {
630
+ let { blob: e, url: t, text: n, dataUrl: r } = await Bn();
631
+ await Promise.resolve(M.value.userOptions.callbacks.svg({
632
+ blob: e,
633
+ url: t,
634
+ text: n,
635
+ dataUrl: r
636
+ }));
637
+ } else await Promise.resolve(zn());
638
+ } finally {
639
+ Ut.value = !1;
640
+ }
641
+ }
642
+ function Hn(e) {
643
+ if (e?.stage === "start") {
644
+ Ht.value = !0;
645
+ return;
646
+ }
647
+ if (e?.stage === "end") {
648
+ Ht.value = !1;
649
+ return;
650
+ }
651
+ on();
652
+ }
653
+ async function Un() {
654
+ if (un("copyAlt", {
655
+ config: M.value,
656
+ dataset: K.value
657
+ }), !M.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(M.value.userOptions.callbacks.altCopy({
662
+ config: M.value,
663
+ dataset: K.value
664
+ }));
665
+ }
666
+ function Wn() {
667
+ A.value = null, Gt.value = !0;
668
+ }
669
+ function Gn() {
670
+ A.value = null, j.value = "pointer", E.value = !1, D.value = null, Gt.value = !1;
671
+ }
672
+ function Kn(e) {
673
+ if (!F.value || Mn.value || document.activeElement !== F.value || !K.value.length || V.value.length === C.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
+ A.value = null, j.value = "pointer", E.value = !1, D.value = null;
678
+ return;
679
+ }
680
+ if (r) {
681
+ if (A.value === null) return;
682
+ let e = K.value[A.value];
683
+ if (!e) return;
684
+ bn(e, A.value);
685
+ return;
686
+ }
687
+ let a = A.value;
688
+ a === null || a < 0 || a >= K.value.length ? a = n ? 0 : K.value.length - 1 : n ? (a += 1, a >= K.value.length && (a = 0)) : t && (--a, a < 0 && (a = K.value.length - 1));
689
+ let ee = K.value[a];
690
+ ee && (qn(a), En(ee, a, "keyboard"));
691
+ }
692
+ function qn(e) {
693
+ if (!Number.isFinite(e) || !F.value) return;
694
+ let t = K.value[e];
695
+ if (!t) return;
696
+ let n = Y(t, e), r = F.value.getBoundingClientRect();
697
+ Wt.value = {
698
+ x: r.left + n.x / B.value.width * r.width,
699
+ y: r.top + n.y / B.value.height * r.height
700
+ };
701
+ }
702
+ let Jn = c(() => ({
703
+ headers: Z.value?.colNames ?? [],
704
+ rows: Z.value?.a11yBody ?? []
705
+ }));
706
+ return we({
707
+ getData: yn,
708
+ getImage: Pn,
709
+ generatePdf: an,
710
+ generateCsv: Dn,
711
+ generateImage: on,
712
+ generateSvg: Vn,
713
+ hideSeries: hn,
714
+ showSeries: mn,
715
+ toggleTable: kn,
716
+ toggleTooltip: An,
717
+ toggleAnnotator: Nn,
718
+ toggleFullscreen: On,
719
+ toggleLabels: jn,
720
+ copyAlt: Un
721
+ }), (e, t) => (v(), d("div", {
722
+ ref_key: "ringsChart",
723
+ ref: O,
724
+ class: h(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
725
+ style: _(`font-family:${M.value.style.fontFamily};text-align:center;width:100%;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
726
+ id: `rings_${T.value}`,
727
+ onMouseleave: t[2] ||= (e) => {
728
+ D.value = null, E.value = !1, x(Xt)(!1);
729
+ },
730
+ onMouseenter: t[3] ||= () => x(Xt)(!0)
731
+ }, [
732
+ f("div", {
733
+ id: `chart-instructions-${T.value}`,
734
+ class: "sr-only"
735
+ }, [f("p", null, qe(M.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
736
+ Jn.value?.rows?.length ? (v(), l(ke, {
737
+ key: 0,
738
+ uid: T.value,
739
+ head: Jn.value.headers,
740
+ body: Jn.value.rows,
741
+ notice: M.value.a11y.translations.tableAvailable,
742
+ caption: M.value.a11y.translations.tableCaption
743
+ }, null, 8, [
744
+ "uid",
745
+ "head",
746
+ "body",
747
+ "notice",
748
+ "caption"
749
+ ])) : u("", !0),
750
+ M.value.userOptions.buttons.annotator ? (v(), l(x(xt), {
751
+ key: 1,
752
+ svgRef: x(F),
753
+ backgroundColor: M.value.style.chart.backgroundColor,
754
+ color: M.value.style.chart.color,
755
+ active: Mn.value,
756
+ isCursorPointer: N.value,
757
+ onClose: Nn
758
+ }, {
759
+ "annotator-action-close": S(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
760
+ "annotator-action-color": S(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
761
+ "annotator-action-draw": S(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
762
+ "annotator-action-undo": S(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
763
+ "annotator-action-redo": S(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
764
+ "annotator-action-delete": S(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
765
+ _: 3
766
+ }, 8, [
767
+ "svgRef",
768
+ "backgroundColor",
769
+ "color",
770
+ "active",
771
+ "isCursorPointer"
772
+ ])) : u("", !0),
773
+ sn.value ? (v(), d("div", {
774
+ key: 2,
775
+ ref_key: "noTitle",
776
+ ref: Ft,
777
+ class: "vue-data-ui-no-title-space",
778
+ style: "height:36px; width: 100%;background:transparent"
779
+ }, null, 512)) : u("", !0),
780
+ M.value.style.chart.title.text ? (v(), d("div", {
781
+ key: 3,
782
+ ref_key: "chartTitle",
783
+ ref: Mt,
784
+ style: "width:100%;background:transparent"
785
+ }, [(v(), l(Se, {
786
+ key: `title_${It.value}`,
787
+ config: {
788
+ title: {
789
+ cy: "rings-div-title",
790
+ ...M.value.style.chart.title
791
+ },
792
+ subtitle: {
793
+ cy: "rings-div-subtitle",
794
+ ...M.value.style.chart.title.subtitle
795
+ }
796
+ }
797
+ }, null, 8, ["config"]))], 512)) : u("", !0),
798
+ f("div", { id: `legend-top-${T.value}` }, null, 8, et),
799
+ M.value.userOptions.show && kt.value && (x(Zt) || x(Yt)) ? (v(), l(x(St), {
800
+ ref_key: "userOptionsRef",
801
+ ref: Vt,
802
+ key: `user_options_${jt.value}`,
803
+ backgroundColor: M.value.style.chart.backgroundColor,
804
+ color: M.value.style.chart.color,
805
+ isPrinting: x(nn),
806
+ isImaging: x(rn),
807
+ uid: T.value,
808
+ hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
809
+ hasPdf: M.value.userOptions.buttons.pdf,
810
+ hasXls: M.value.userOptions.buttons.csv,
811
+ hasImg: M.value.userOptions.buttons.img,
812
+ hasSvg: M.value.userOptions.buttons.svg,
813
+ hasTable: M.value.userOptions.buttons.table,
814
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
815
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
816
+ hasLabel: M.value.userOptions.buttons.labels,
817
+ isTooltip: z.value.showTooltip,
818
+ isFullscreen: Q.value,
819
+ titles: { ...M.value.userOptions.buttonTitles },
820
+ chartElement: O.value,
821
+ position: M.value.userOptions.position,
822
+ hasAnnotator: M.value.userOptions.buttons.annotator,
823
+ isAnnotation: Mn.value,
824
+ callbacks: M.value.userOptions.callbacks,
825
+ printScale: M.value.userOptions.print.scale,
826
+ tableDialog: M.value.table.useDialog,
827
+ isCursorPointer: N.value,
828
+ onToggleFullscreen: On,
829
+ onGeneratePdf: x(an),
830
+ onGenerateCsv: Dn,
831
+ onGenerateImage: Hn,
832
+ onGenerateSvg: Vn,
833
+ onToggleTable: kn,
834
+ onToggleTooltip: An,
835
+ onToggleAnnotator: Nn,
836
+ onToggleLabels: jn,
837
+ onCopyAlt: Un,
838
+ style: _({ visibility: x(Zt) ? x(Yt) ? "visible" : "hidden" : "visible" })
839
+ }, Le({ _: 2 }, [
840
+ e.$slots.menuIcon ? {
841
+ name: "menuIcon",
842
+ fn: S(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
843
+ isOpen: t,
844
+ color: n
845
+ })), void 0, !0)]),
846
+ key: "0"
847
+ } : void 0,
848
+ e.$slots.optionTooltip ? {
849
+ name: "optionTooltip",
850
+ fn: S(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
851
+ key: "1"
852
+ } : void 0,
853
+ e.$slots.optionPdf ? {
854
+ name: "optionPdf",
855
+ fn: S(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
856
+ key: "2"
857
+ } : void 0,
858
+ e.$slots.optionCsv ? {
859
+ name: "optionCsv",
860
+ fn: S(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
861
+ key: "3"
862
+ } : void 0,
863
+ e.$slots.optionImg ? {
864
+ name: "optionImg",
865
+ fn: S(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
866
+ key: "4"
867
+ } : void 0,
868
+ e.$slots.optionSvg ? {
869
+ name: "optionSvg",
870
+ fn: S(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
871
+ key: "5"
872
+ } : void 0,
873
+ e.$slots.optionTable ? {
874
+ name: "optionTable",
875
+ fn: S(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
876
+ key: "6"
877
+ } : void 0,
878
+ e.$slots.optionLabels ? {
879
+ name: "optionLabels",
880
+ fn: S(() => [b(e.$slots, "optionLabels", {}, void 0, !0)]),
881
+ key: "7"
882
+ } : void 0,
883
+ e.$slots.optionFullscreen ? {
884
+ name: "optionFullscreen",
885
+ fn: S(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(m({
886
+ toggleFullscreen: t,
887
+ isFullscreen: n
888
+ })), void 0, !0)]),
889
+ key: "8"
890
+ } : void 0,
891
+ e.$slots.optionAnnotator ? {
892
+ name: "optionAnnotator",
893
+ fn: S(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(m({
894
+ toggleAnnotator: t,
895
+ isAnnotator: n
896
+ })), void 0, !0)]),
897
+ key: "9"
898
+ } : void 0,
899
+ e.$slots.optionAltCopy ? {
900
+ name: "optionAltCopy",
901
+ fn: S(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
902
+ key: "10"
903
+ } : void 0,
904
+ e.$slots["custom-menu-before"] ? {
905
+ name: "custom-menu-before",
906
+ fn: S(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
907
+ key: "11"
908
+ } : void 0,
909
+ e.$slots["custom-menu-after"] ? {
910
+ name: "custom-menu-after",
911
+ fn: S(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
912
+ key: "12"
913
+ } : void 0
914
+ ]), 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.style".split("."))) : u("", !0),
915
+ f("div", tt, [(v(), d("svg", {
916
+ ref_key: "svgRef",
917
+ ref: F,
918
+ xmlns: x(ue),
919
+ class: h({
920
+ "vue-data-ui-fullscreen--on": Q.value,
921
+ "vue-data-ui-fulscreen--off": !Q.value,
922
+ resizing: zt.value || x(P)
923
+ }),
924
+ viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
925
+ style: _(`max-width:100%;overflow:hidden;background:transparent;color:${M.value.style.chart.color}`),
926
+ "aria-describedby": `chart-instructions-${T.value}`,
927
+ tabindex: "0",
928
+ onFocus: Wn,
929
+ onBlur: Gn,
930
+ onKeydown: Kn
931
+ }, [
932
+ ze(x(Ct)),
933
+ e.$slots["chart-background"] ? (v(), d("foreignObject", {
934
+ key: 0,
935
+ x: 0,
936
+ y: 0,
937
+ width: B.value.width <= 0 ? 10 : B.value.width,
938
+ height: B.value.height <= 0 ? 10 : B.value.height,
939
+ style: { pointerEvents: "none" }
940
+ }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : u("", !0),
941
+ f("defs", null, [(v(!0), d(Fe, null, We(K.value, (e, t) => (v(), l(De, {
942
+ t: "radial",
943
+ cx: "50%",
944
+ cy: "30%",
945
+ r: "50%",
946
+ fx: "50%",
947
+ fy: "50%",
948
+ id: `gradient_${T.value}_${t}`,
949
+ key: `gradient_${T.value}_${t}`,
950
+ stops: [[
951
+ "0%",
952
+ x(pe)(x(n)(e.color, .05), 100 - M.value.style.chart.layout.rings.gradient.intensity),
953
+ 1
954
+ ], [
955
+ "100%",
956
+ e.color,
957
+ 1
958
+ ]]
959
+ }, null, 8, ["id", "stops"]))), 128))]),
960
+ e.$slots.pattern ? (v(), d("g", it, [(v(!0), d(Fe, null, We(K.value, (t) => (v(), d("defs", null, [b(e.$slots, "pattern", Be({ ref_for: !0 }, {
961
+ seriesIndex: t.absoluteIndex,
962
+ patternId: `pattern_${T.value}_${t.absoluteIndex}`
963
+ }), void 0, !0)]))), 256))])) : u("", !0),
964
+ (v(!0), d(Fe, null, We(K.value, (t, n) => (v(), d("g", null, [
965
+ f("circle", {
966
+ class: h({
967
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
968
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
969
+ "vue-ui-rings-opacity": D.value !== null && D.value !== n
970
+ }),
971
+ style: _(`animation-delay:${n * 100}ms`),
972
+ stroke: M.value.style.chart.layout.rings.stroke,
973
+ cx: I.value.x,
974
+ cy: wn(t, n),
975
+ r: J(t),
976
+ fill: M.value.style.chart.layout.rings.gradient.underlayerColor
977
+ }, null, 14, at),
978
+ f("circle", {
979
+ class: h({
980
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
981
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
982
+ "vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
983
+ "vue-ui-rings-blur": D.value !== null && D.value !== n
984
+ }),
985
+ style: _(`animation-delay:${n * 100}ms`),
986
+ stroke: M.value.style.chart.layout.rings.stroke,
987
+ "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
988
+ cx: I.value.x,
989
+ cy: wn(t, n),
990
+ r: J(t),
991
+ fill: M.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${T.value}_${n})` : t.color
992
+ }, null, 14, ot),
993
+ e.$slots.pattern ? (v(), d("circle", {
994
+ key: 0,
995
+ class: h({
996
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
997
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
998
+ "vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
999
+ "vue-ui-rings-blur": D.value !== null && D.value !== n
1000
+ }),
1001
+ style: _(`animation-delay:${n * 100}ms`),
1002
+ stroke: M.value.style.chart.layout.rings.stroke,
1003
+ "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
1004
+ cx: I.value.x,
1005
+ cy: wn(t, n),
1006
+ r: J(t),
1007
+ fill: `url(#pattern_${T.value}_${t.absoluteIndex})`
1008
+ }, null, 14, st)) : u("", !0),
1009
+ f("circle", {
1010
+ stroke: "none",
1011
+ cx: I.value.x,
1012
+ cy: wn(t, n),
1013
+ r: J(t),
1014
+ fill: "transparent",
1015
+ onMouseenter: (e) => En(t, n, "pointer"),
1016
+ onMouseleave: (e) => xn(t, n),
1017
+ onClick: (e) => bn(t, n)
1018
+ }, null, 40, ct),
1019
+ z.value.showLabels ? (v(), d(Fe, { key: 1 }, [
1020
+ f("rect", {
1021
+ x: M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(t, n).x : I.value.x,
1022
+ y: Y(t, n).y - M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
1023
+ width: Math.abs(I.value.x - Y(t, n).x),
1024
+ height: M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1025
+ fill: M.value.style.chart.layout.labels.dataLabels.markers.stroke,
1026
+ rx: M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1027
+ class: h({
1028
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
1029
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
1030
+ "vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
1031
+ "vue-ui-rings-blur": D.value !== null && D.value !== n
1032
+ })
1033
+ }, null, 10, lt),
1034
+ f("circle", {
1035
+ cx: Y(t, n).x,
1036
+ cy: Y(t, n).y,
1037
+ r: M.value.style.chart.layout.labels.dataLabels.markers.radius,
1038
+ fill: t.color,
1039
+ stroke: M.value.style.chart.backgroundColor,
1040
+ class: h({
1041
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
1042
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
1043
+ "vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
1044
+ "vue-ui-rings-blur": D.value !== null && D.value !== n
1045
+ })
1046
+ }, null, 10, ut),
1047
+ f("text", {
1048
+ x: Y(t, n).x + (M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -M.value.style.chart.layout.labels.dataLabels.offsetX : M.value.style.chart.layout.labels.dataLabels.offsetX),
1049
+ y: Y(t, n).y + M.value.style.chart.layout.labels.dataLabels.fontSize / 3,
1050
+ "text-anchor": M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
1051
+ "font-size": M.value.style.chart.layout.labels.dataLabels.fontSize,
1052
+ fill: M.value.style.chart.layout.labels.dataLabels.color,
1053
+ "font-weight": M.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
1054
+ class: h({
1055
+ "vue-ui-rings-item": w.value && M.value.useCssAnimation,
1056
+ "vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(P),
1057
+ "vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
1058
+ "vue-ui-rings-blur": D.value !== null && D.value !== n
1059
+ }),
1060
+ onMouseenter: (e) => En(t, n, "pointer"),
1061
+ onMouseleave: (e) => xn(t, n),
1062
+ onClick: (e) => bn(t, n),
1063
+ innerHTML: x(re)({
1064
+ content: Cn(t),
1065
+ fontSize: M.value.style.chart.layout.labels.dataLabels.fontSize,
1066
+ fill: M.value.style.chart.layout.labels.dataLabels.color,
1067
+ x: Y(t, n).x + (M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -M.value.style.chart.layout.labels.dataLabels.offsetX - 6 - M.value.style.chart.layout.labels.dataLabels.markers.radius : M.value.style.chart.layout.labels.dataLabels.offsetX + 6 + M.value.style.chart.layout.labels.dataLabels.markers.radius),
1068
+ y: Y(t, n).y + M.value.style.chart.layout.labels.dataLabels.fontSize / 3,
1069
+ translateY: !0
1070
+ })
1071
+ }, null, 42, dt)
1072
+ ], 64)) : u("", !0)
1073
+ ]))), 256)),
1074
+ b(e.$slots, "svg", { svg: {
1075
+ ...B.value,
1076
+ isPrintingImg: x(nn) || x(rn) || Ht.value,
1077
+ isPrintingSvg: Ut.value
1078
+ } }, void 0, !0)
1079
+ ], 46, nt)), e.$slots.hint ? (v(), d("div", ft, [b(e.$slots, "hint", g(m({
1080
+ hint: M.value.a11y.translations.keyboardNavigation,
1081
+ isVisible: Gt.value
1082
+ })), void 0, !0)])) : u("", !0)]),
1083
+ e.$slots.watermark ? (v(), d("div", pt, [b(e.$slots, "watermark", g(m({ isPrinting: x(nn) || x(rn) || Ht.value || Ut.value })), void 0, !0)])) : u("", !0),
1084
+ f("div", { id: `legend-bottom-${T.value}` }, null, 8, mt),
1085
+ Bt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(Ie, {
1086
+ key: 6,
1087
+ to: M.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
1088
+ }, [f("div", {
1089
+ ref_key: "chartLegend",
1090
+ ref: Nt
1091
+ }, [b(e.$slots, "legend", { legend: W.value }, () => [M.value.style.chart.legend.show ? (v(), l(Ne, {
1092
+ key: `legend_${Rt.value}`,
1093
+ legendSet: W.value,
1094
+ config: vn.value,
1095
+ isCursorPointer: N.value,
1096
+ onClickMarker: t[0] ||= ({ legend: e }) => H(e.uid)
1097
+ }, Le({
1098
+ item: S(({ legend: e, index: t }) => [x(P) ? u("", !0) : (v(), d("div", {
1099
+ key: 0,
1100
+ onClick: (t) => H(e.uid),
1101
+ style: _(`opacity:${V.value.includes(e.uid) ? .5 : 1}`)
1102
+ }, qe(e.display), 13, ht))]),
1103
+ legendToggle: S(() => [W.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !x(P) ? (v(), l(Oe, {
1104
+ key: 0,
1105
+ backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1106
+ color: M.value.style.chart.legend.selectAllToggle.color,
1107
+ fontSize: M.value.style.chart.legend.fontSize,
1108
+ checked: V.value.length > 0,
1109
+ isCursorPointer: N.value,
1110
+ onToggle: dn
1111
+ }, null, 8, [
1112
+ "backgroundColor",
1113
+ "color",
1114
+ "fontSize",
1115
+ "checked",
1116
+ "isCursorPointer"
1117
+ ])) : u("", !0)]),
1118
+ _: 2
1119
+ }, [e.$slots.pattern ? {
1120
+ name: "legend-pattern",
1121
+ fn: S(({ legend: e, index: t }) => [ze(Ce, {
1122
+ shape: e.shape,
1123
+ radius: 30,
1124
+ stroke: "none",
1125
+ plot: {
1126
+ x: 30,
1127
+ y: 30
1128
+ },
1129
+ fill: `url(#pattern_${T.value}_${t})`
1130
+ }, null, 8, ["shape", "fill"])]),
1131
+ key: "0"
1132
+ } : void 0]), 1032, [
1133
+ "legendSet",
1134
+ "config",
1135
+ "isCursorPointer"
1136
+ ])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
1137
+ e.$slots.source ? (v(), d("div", {
1138
+ key: 7,
1139
+ ref_key: "source",
1140
+ ref: Pt,
1141
+ dir: "auto"
1142
+ }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1143
+ ze(x(_t), {
1144
+ teleportTo: M.value.style.chart.tooltip.teleportTo,
1145
+ show: z.value.showTooltip && E.value && V.value.length < C.dataset.length,
1146
+ backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1147
+ color: M.value.style.chart.tooltip.color,
1148
+ borderRadius: M.value.style.chart.tooltip.borderRadius,
1149
+ borderColor: M.value.style.chart.tooltip.borderColor,
1150
+ borderWidth: M.value.style.chart.tooltip.borderWidth,
1151
+ fontSize: M.value.style.chart.tooltip.fontSize,
1152
+ backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
1153
+ position: M.value.style.chart.tooltip.position,
1154
+ offsetX: M.value.style.chart.tooltip.offsetX,
1155
+ offsetY: M.value.style.chart.tooltip.offsetY,
1156
+ parent: O.value,
1157
+ content: At.value,
1158
+ isFullscreen: Q.value,
1159
+ isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
1160
+ smooth: M.value.style.chart.tooltip.smooth,
1161
+ backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1162
+ smoothForce: M.value.style.chart.tooltip.smoothForce,
1163
+ smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1164
+ isA11yMode: j.value === "keyboard",
1165
+ a11yPosition: Wt.value
1166
+ }, {
1167
+ "tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...Tn.value })), void 0, !0)]),
1168
+ tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...Tn.value })), void 0, !0)]),
1169
+ "tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...Tn.value })), void 0, !0)]),
1170
+ _: 3
1171
+ }, 8, [
1172
+ "teleportTo",
1173
+ "show",
1174
+ "backgroundColor",
1175
+ "color",
1176
+ "borderRadius",
1177
+ "borderColor",
1178
+ "borderWidth",
1179
+ "fontSize",
1180
+ "backgroundOpacity",
1181
+ "position",
1182
+ "offsetX",
1183
+ "offsetY",
1184
+ "parent",
1185
+ "content",
1186
+ "isFullscreen",
1187
+ "isCustom",
1188
+ "smooth",
1189
+ "backdropFilter",
1190
+ "smoothForce",
1191
+ "smoothSnapThreshold",
1192
+ "isA11yMode",
1193
+ "a11yPosition"
1194
+ ]),
1195
+ kt.value && M.value.userOptions.buttons.table ? (v(), l(Ge($.value.component), Be({ key: 8 }, $.value.props, {
1196
+ ref_key: "tableUnit",
1197
+ ref: k,
1198
+ onClose: Fn
1199
+ }), Le({
1200
+ content: S(() => [(v(), l(x(bt), {
1201
+ key: `table_${Lt.value}`,
1202
+ colNames: Z.value.colNames,
1203
+ head: Z.value.head,
1204
+ body: Z.value.body,
1205
+ config: Z.value.config,
1206
+ title: M.value.table.useDialog ? "" : $.value.title,
1207
+ withCloseButton: !M.value.table.useDialog,
1208
+ isCursorPointer: N.value,
1209
+ onClose: Fn
1210
+ }, {
1211
+ th: S(({ th: e }) => [f("div", {
1212
+ innerHTML: e,
1213
+ style: {
1214
+ display: "flex",
1215
+ "align-items": "center"
1216
+ }
1217
+ }, null, 8, gt)]),
1218
+ td: S(({ td: e }) => [Re(qe(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
+ }, [M.value.table.useDialog ? {
1231
+ name: "title",
1232
+ fn: S(() => [Re(qe($.value.title), 1)]),
1233
+ key: "0"
1234
+ } : void 0, M.value.table.useDialog ? {
1235
+ name: "actions",
1236
+ fn: S(() => [f("button", {
1237
+ tabindex: "0",
1238
+ class: "vue-ui-user-options-button",
1239
+ onClick: t[1] ||= (e) => Dn(M.value.userOptions.callbacks.csv),
1240
+ style: _({ cursor: N.value ? "pointer" : "default" })
1241
+ }, [ze(x(vt), {
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", {}, () => [x(P) ? (v(), l(_e, { key: 0 })) : u("", !0)], !0)
1248
+ ], 46, Qe));
1249
+ }
1250
+ }, [["__scopeId", "data-v-7ca35ef0"]]);
1251
+ //#endregion
1252
+ export { Ze as n, _t as t };