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,1287 @@
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 o, Nt as s, Q as ee, Y as c, bt as te, et as l, ft as ne, i as re, j as ie, kt as ae, qt as oe, st as se, t as ce, x as le, y as ue, zt as de } from "./lib-CnHx5WfV.js";
3
+ import { t as fe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as pe } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ge } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as _e } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ye } from "./img-CNdXiUfZ.js";
10
+ import { n as be } from "./Title-Cr3jP7Qd.js";
11
+ import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as Se } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as Ce } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as we } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as Te } from "./BaseLegendToggle-BrQ2OlzI.js";
16
+ import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as De } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as ke } from "./Legend-5VQGLnmx.js";
20
+ import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-BUPt2iaP.js";
21
+ import { t as je } from "./vue_ui_radar-jafTED5j.js";
22
+ import { Fragment as u, Teleport as Me, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ie, nextTick as Le, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Re, onMounted as ze, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as T, toRefs as He, unref as E, watch as Ue, withCtx as D } from "vue";
23
+ //#region src/components/vue-ui-radar.vue
24
+ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
25
+ "xmlns",
26
+ "aria-describedby",
27
+ "viewBox"
28
+ ], Xe = ["width", "height"], Ze = { key: 1 }, Qe = [
29
+ "x1",
30
+ "y1",
31
+ "x2",
32
+ "y2",
33
+ "stroke",
34
+ "stroke-width"
35
+ ], $e = { key: 0 }, et = [
36
+ "d",
37
+ "stroke",
38
+ "stroke-width"
39
+ ], tt = [
40
+ "d",
41
+ "stroke",
42
+ "stroke-width"
43
+ ], nt = { key: 2 }, rt = [
44
+ "x",
45
+ "y",
46
+ "text-anchor",
47
+ "font-size",
48
+ "fill",
49
+ "onMouseenter",
50
+ "onMouseleave",
51
+ "onClick"
52
+ ], it = [
53
+ "points",
54
+ "stroke",
55
+ "stroke-width"
56
+ ], at = [
57
+ "points",
58
+ "stroke",
59
+ "stroke-width",
60
+ "fill"
61
+ ], ot = [
62
+ "d",
63
+ "stroke",
64
+ "stroke-width",
65
+ "stroke-dasharray"
66
+ ], st = { key: 4 }, ct = [
67
+ "cx",
68
+ "cy",
69
+ "fill",
70
+ "r",
71
+ "stroke"
72
+ ], lt = {
73
+ key: 0,
74
+ style: {
75
+ position: "absolute",
76
+ top: "100%",
77
+ left: "0",
78
+ width: "100%"
79
+ },
80
+ "data-dom-to-png-ignore": "",
81
+ "aria-hidden": "true"
82
+ }, ut = {
83
+ key: 5,
84
+ class: "vue-data-ui-watermark"
85
+ }, dt = ["id"], ft = ["onClick"], pt = { class: "vue-data-ui-legend-item" }, mt = [
86
+ "stroke",
87
+ "stroke-width",
88
+ "stroke-dasharray"
89
+ ], ht = {
90
+ key: 0,
91
+ style: {
92
+ "max-width": "200px",
93
+ margin: "0 auto"
94
+ }
95
+ }, gt = {
96
+ class: "vue-ui-radar-tooltip-datalabel",
97
+ style: { width: "100%" }
98
+ }, _t = { class: "vue-ui-radar-tooltip-datalabel-name" }, vt = { key: 0 }, yt = /*#__PURE__*/ xe({
99
+ __name: "vue-ui-radar",
100
+ props: {
101
+ config: {
102
+ type: Object,
103
+ default() {
104
+ return {};
105
+ }
106
+ },
107
+ dataset: {
108
+ type: Object,
109
+ default() {
110
+ return {};
111
+ }
112
+ }
113
+ },
114
+ emits: ["selectLegend", "copyAlt"],
115
+ setup(e, { expose: xe, emit: We }) {
116
+ let yt = g(() => import("./Tooltip-CDbLl3TD.js")), bt = g(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), xt = g(() => import("./vue-ui-sparkbar-BPh45vBP.js").then((e) => e.n)), St = g(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Ct = g(() => import("./DataTable-ByZy5gt1.js")), wt = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Tt = g(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Et = g(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), Dt = g(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_radar: Ot } = fe(), { isThemeValid: kt, warnInvalidTheme: At } = ve(), O = e, jt = d(() => !!O.dataset && Object.keys(O.dataset).length), k = S(o()), A = S(!1), Mt = S(""), Nt = S(0), j = S(null), Pt = S(null), Ft = S(null), It = S(null), Lt = S(null), Rt = S(0), zt = S(0), Bt = S(0), Vt = S(!1), M = S(null), Ht = S(null), Ut = S(!1), Wt = S(!1), N = S(null), Gt = S({
117
+ x: 0,
118
+ y: 0
119
+ }), P = S("pointer"), Kt = S(!1), F = S(Qt()), I = d(() => F.value.userOptions.useCursorPointer), qt = d(() => oe({
120
+ defaultConfig: {
121
+ userOptions: { show: !1 },
122
+ table: { show: !1 },
123
+ useCssAnimation: !1,
124
+ style: { chart: {
125
+ backgroundColor: "#99999930",
126
+ layout: {
127
+ grid: { stroke: "#6A6A6A90" },
128
+ labels: { dataLabels: { show: !1 } },
129
+ outerPolygon: { stroke: "#6A6A6A" }
130
+ },
131
+ legend: { backgroundColor: "transparent" }
132
+ } }
133
+ },
134
+ userConfig: F.value.skeletonConfig ?? {}
135
+ })), { loading: Jt, FINAL_DATASET: L } = me({
136
+ ...He(O),
137
+ FINAL_CONFIG: F,
138
+ prepareConfig: Qt,
139
+ callback: () => {
140
+ Promise.resolve().then(async () => {
141
+ await Le(), H.value.showTable = F.value.table.show;
142
+ });
143
+ },
144
+ skeletonDataset: O.config?.skeletonDataset ?? {
145
+ categories: [{
146
+ name: "_",
147
+ color: "#6A6A6A"
148
+ }],
149
+ series: [
150
+ {
151
+ name: "_",
152
+ values: [.6],
153
+ target: 1
154
+ },
155
+ {
156
+ name: "_",
157
+ values: [.6],
158
+ target: 1
159
+ },
160
+ {
161
+ name: "_",
162
+ values: [.6],
163
+ target: 1
164
+ },
165
+ {
166
+ name: "_",
167
+ values: [.6],
168
+ target: 1
169
+ },
170
+ {
171
+ name: "_",
172
+ values: [.6],
173
+ target: 1
174
+ },
175
+ {
176
+ name: "_",
177
+ values: [.6],
178
+ target: 1
179
+ }
180
+ ]
181
+ },
182
+ skeletonConfig: oe({
183
+ defaultConfig: F.value,
184
+ userConfig: qt.value
185
+ })
186
+ }), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = De({ config: F.value }), { svgRef: R } = Oe({ config: F.value.style.chart.title });
187
+ function Qt() {
188
+ let e = _e({
189
+ userConfig: O.config,
190
+ defaultConfig: Ot
191
+ }), t = e.theme;
192
+ if (!t) return e;
193
+ if (!kt.value(e)) return At(e), e;
194
+ let n = _e({
195
+ userConfig: je[t] || O.config,
196
+ defaultConfig: e
197
+ }), r = _e({
198
+ userConfig: O.config,
199
+ defaultConfig: n
200
+ });
201
+ return {
202
+ ...r,
203
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || s
204
+ };
205
+ }
206
+ Ue(() => O.config, (e) => {
207
+ F.value = Qt(), Yt.value = !F.value.userOptions.showOnChartHover, $t(), Rt.value += 1, zt.value += 1, Bt.value += 1, H.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.chart.tooltip ? F.value.style.chart.tooltip.show : !1;
208
+ }, { deep: !0 });
209
+ let z = Ve(null), B = Ve(null), V = d(() => F.value.debug);
210
+ function $t() {
211
+ if (t(O.dataset) && l({
212
+ componentName: "VueUiRadar",
213
+ type: "dataset",
214
+ debug: V.value
215
+ }), F.value.responsive) {
216
+ let e = Se(() => {
217
+ let { width: e, height: t } = Ce({
218
+ chart: j.value,
219
+ title: F.value.style.chart.title.text ? Pt.value : null,
220
+ legend: F.value.style.chart.legend.show ? Ft.value : null,
221
+ source: It.value,
222
+ noTitle: Lt.value
223
+ });
224
+ requestAnimationFrame(() => {
225
+ U.value.width = e, U.value.height = t, En();
226
+ });
227
+ });
228
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
229
+ }
230
+ En();
231
+ }
232
+ ze(() => {
233
+ Vt.value = !0, $t();
234
+ }), Re(() => {
235
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
236
+ });
237
+ let { isPrinting: en, isImaging: tn, generatePdf: nn, generateImage: rn } = pe({
238
+ elementId: `vue-ui-radar_${k.value}`,
239
+ fileName: F.value.style.chart.title.text || "vue-ui-radar",
240
+ options: F.value.userOptions.print
241
+ }), an = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), on = d(() => r(F.value.customPalette)), H = S({
242
+ dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
243
+ showTable: F.value.table.show,
244
+ showTooltip: F.value.style.chart.tooltip.show
245
+ }), sn = d(() => ({ style: {
246
+ backgroundColor: "#FFFFFF00",
247
+ animation: {
248
+ show: F.value.style.chart.tooltip.animation.show,
249
+ animationFrames: F.value.style.chart.tooltip.animation.animationFrames
250
+ },
251
+ labels: {
252
+ fontSize: F.value.style.chart.tooltip.fontSize,
253
+ name: { color: F.value.style.chart.tooltip.color }
254
+ },
255
+ gutter: {
256
+ backgroundColor: "#CCCCCC",
257
+ opacity: 30
258
+ }
259
+ } })), U = S({
260
+ height: 312,
261
+ width: 512
262
+ }), cn = We, W = S([]), G = S(null), K = S(!1);
263
+ function ln() {
264
+ W.value.length ? W.value = [] : X.value.forEach((e, t) => {
265
+ W.value.push(t);
266
+ }), un();
267
+ }
268
+ function un() {
269
+ cn("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
270
+ name: e.name,
271
+ color: e.color,
272
+ proportion: e.totalProportion
273
+ })));
274
+ }
275
+ function dn(e) {
276
+ K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
277
+ K.value = !1, G.value = null;
278
+ }, 500)) : (W.value.push(e), setTimeout(() => {
279
+ K.value = !1;
280
+ }, 500)), un();
281
+ }
282
+ function fn() {
283
+ return X.value.map((e) => ({
284
+ name: e.name,
285
+ color: e.color,
286
+ proportion: e.totalProportion
287
+ }));
288
+ }
289
+ function pn() {
290
+ let e = L.value;
291
+ if ([null, void 0].includes(e?.categories)) {
292
+ l({
293
+ componentName: "VueUiRadar",
294
+ type: "dataset",
295
+ debug: V.value
296
+ }), l({
297
+ componentName: "VueUiRadar",
298
+ type: "datasetAttribute",
299
+ property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
300
+ debug: V.value
301
+ });
302
+ return;
303
+ }
304
+ e.categories.length === 0 ? l({
305
+ componentName: "VueUiRadar",
306
+ type: "datasetAttributeEmpty",
307
+ property: "categories",
308
+ debug: V.value
309
+ }) : e.categories.forEach((e, t) => {
310
+ ne({
311
+ datasetObject: e,
312
+ requiredAttributes: ["name"]
313
+ }).forEach((e) => {
314
+ l({
315
+ componentName: "VueUiRadar",
316
+ type: "datasetAttribute",
317
+ property: `category.${e} at index ${t}`,
318
+ index: t,
319
+ debug: V.value
320
+ });
321
+ });
322
+ }), [null, void 0].includes(e?.series) ? l({
323
+ componentName: "VueUiRadar",
324
+ type: "datasetAttribute",
325
+ property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
326
+ debug: V.value
327
+ }) : e.series.forEach((e, t) => {
328
+ ne({
329
+ datasetObject: e,
330
+ requiredAttributes: [
331
+ "name",
332
+ "values",
333
+ "target"
334
+ ]
335
+ }).forEach((e) => {
336
+ l({
337
+ componentName: "VueUiRadar",
338
+ type: "datasetSerieAttribute",
339
+ key: "series",
340
+ property: e,
341
+ index: t,
342
+ debug: V.value
343
+ });
344
+ });
345
+ });
346
+ }
347
+ Ue(() => L.value, () => pn(), {
348
+ deep: !0,
349
+ immediate: !0
350
+ });
351
+ let q = d(() => {
352
+ let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = on.value ?? s;
353
+ return e.map((e, n) => ({
354
+ name: e?.name ?? "",
355
+ categoryId: `radar_category_${k.value}_${n}`,
356
+ color: le(e?.color) || t[n] || s[n % s.length],
357
+ prefix: e?.prefix ?? "",
358
+ suffix: e?.suffix ?? ""
359
+ }));
360
+ }), J = d(() => L.value.series.map((e, t) => ({
361
+ ...e,
362
+ color: le(e.color) || on.value[t] || s[t] || s[t % s.length],
363
+ serieId: `radar_serie_${k.value}_${t}`,
364
+ formatter: e.formatter || null,
365
+ absoluteIndex: t
366
+ })));
367
+ function mn(e) {
368
+ return J.value.length ? X.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
369
+ }
370
+ function hn(e) {
371
+ let t = mn(e);
372
+ t !== null && W.value.includes(t.absoluteIndex) && dn(t.absoluteIndex);
373
+ }
374
+ function gn(e) {
375
+ let t = mn(e);
376
+ t !== null && (W.value.includes(t.absoluteIndex) || dn(t.absoluteIndex));
377
+ }
378
+ let _n = d(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
379
+ function vn(e) {
380
+ return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || _n.value || 1;
381
+ }
382
+ let yn = d(() => J.value.map((e, t) => {
383
+ let n = Sn.value.coordinates[t];
384
+ return Dn({
385
+ centerX: U.value.width / 2,
386
+ centerY: U.value.height / 2,
387
+ apexX: n.x,
388
+ apexY: n.y,
389
+ proportion: (e.target || 0) / vn(e)
390
+ });
391
+ })), bn = d(() => J.value.length), xn = d(() => Math.min(U.value.width, U.value.height) / 3), Sn = d(() => ie({
392
+ plot: {
393
+ x: U.value.width / 2,
394
+ y: U.value.height / 2
395
+ },
396
+ radius: xn.value,
397
+ sides: bn.value,
398
+ rotation: 0
399
+ })), Cn = d(() => {
400
+ let e = [];
401
+ for (let t = 0; t < xn.value; t += xn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
402
+ return e;
403
+ }), Y = d(() => Sn.value.coordinates.map((e, t) => {
404
+ let n = J.value[t], r = J.value[t].values.map((t) => Dn({
405
+ centerX: U.value.width / 2,
406
+ centerY: U.value.height / 2,
407
+ apexX: e.x,
408
+ apexY: e.y,
409
+ proportion: t / vn(n)
410
+ }));
411
+ return {
412
+ ...e,
413
+ ...n,
414
+ plots: r
415
+ };
416
+ }).map((e) => ({
417
+ ...e,
418
+ labelX: wn(e).x,
419
+ labelY: wn(e).y,
420
+ labelAnchor: wn(e).anchor
421
+ })));
422
+ function wn({ x: e, y: t }) {
423
+ let n = "middle";
424
+ return e = Math.round(e), t = Math.round(t), e > U.value.width / 2 && (e += 12, n = "start"), e < U.value.width / 2 && (e -= 12, n = "end"), t > U.value.height / 2 + 1 && (t += 20), t < U.value.height / 2 - 1 && (t -= 12), t === U.value.height / 2 && (t += 4), {
425
+ x: e,
426
+ y: t,
427
+ anchor: n
428
+ };
429
+ }
430
+ let Tn = d({
431
+ get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
432
+ set: (e) => e
433
+ }), { autoSizeLabels: En } = Ae({
434
+ svgRef: R,
435
+ fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
436
+ minFontSize: 6,
437
+ sizeRef: Tn,
438
+ labelClass: ".vue-ui-radar-apex-label"
439
+ });
440
+ function Dn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
441
+ return {
442
+ x: e + (n - e) * i,
443
+ y: t + (r - t) * i
444
+ };
445
+ }
446
+ let X = d(() => {
447
+ let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || _n.value)));
448
+ return q.value.map((t, n) => {
449
+ let r = ue(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
450
+ return {
451
+ ...t,
452
+ absoluteIndex: n,
453
+ totalProportion: r,
454
+ shape: "circle",
455
+ opacity: W.value.includes(n) ? .5 : 1,
456
+ segregate: () => dn(n),
457
+ isSegregated: W.value.includes(n),
458
+ display: `${t.name}: ${c({
459
+ v: (r ?? 0) * 100,
460
+ s: "%",
461
+ r: F.value.style.chart.legend.roundingPercentage
462
+ })}`
463
+ };
464
+ });
465
+ }), On = d(() => ({
466
+ cy: "radar-div-legend",
467
+ backgroundColor: F.value.style.chart.legend.backgroundColor,
468
+ color: F.value.style.chart.legend.color,
469
+ fontSize: F.value.style.chart.legend.fontSize,
470
+ paddingBottom: 12,
471
+ fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
472
+ })), Z = d(() => {
473
+ let e = [
474
+ {
475
+ name: F.value.translations.datapoint,
476
+ color: ""
477
+ },
478
+ {
479
+ name: F.value.translations.target,
480
+ color: ""
481
+ },
482
+ ...X.value
483
+ ];
484
+ return {
485
+ head: e,
486
+ body: L.value.series.map((e) => [
487
+ e.name,
488
+ re(e.formatter, e.target, c({
489
+ p: e.prefix,
490
+ v: e.target,
491
+ s: e.suffix,
492
+ r: F.value.table.td.roundingValue
493
+ })),
494
+ ...e.values.map((t, n) => `${re(e.formatter, t, c({
495
+ p: q.value[n]?.prefix ?? "",
496
+ v: t,
497
+ s: q.value[n]?.suffix ?? "",
498
+ r: F.value.table.td.roundingValue
499
+ }))} (${isNaN(t / e.target) ? "" : c({
500
+ v: t / e.target * 100,
501
+ s: "%",
502
+ r: F.value.table.td.roundingPercentage
503
+ })})`)
504
+ ]),
505
+ config: {
506
+ th: {
507
+ backgroundColor: F.value.table.th.backgroundColor,
508
+ color: F.value.table.th.color,
509
+ outline: F.value.table.th.outline
510
+ },
511
+ td: {
512
+ backgroundColor: F.value.table.td.backgroundColor,
513
+ color: F.value.table.td.color,
514
+ outline: F.value.table.td.outline
515
+ },
516
+ breakpoint: F.value.table.responsiveBreakpoint
517
+ },
518
+ colNames: e
519
+ };
520
+ }), Q = S(null), kn = S([]), An = S(null);
521
+ function jn(e, t) {
522
+ A.value = !1, Q.value = null, N.value = null, P.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
523
+ datapoint: e,
524
+ seriesIndex: t
525
+ });
526
+ }
527
+ function Mn(e, t) {
528
+ F.value.events.datapointClick && F.value.events.datapointClick({
529
+ datapoint: e,
530
+ seriesIndex: t
531
+ });
532
+ }
533
+ function Nn(e, t, n = "pointer") {
534
+ F.value.events.datapointEnter && F.value.events.datapointEnter({
535
+ datapoint: e,
536
+ seriesIndex: t
537
+ }), P.value = n, N.value = t;
538
+ let r = q.value.slice();
539
+ kn.value = [], Q.value = t, A.value = !0, An.value = {
540
+ datapoint: e,
541
+ seriesIndex: t,
542
+ series: {
543
+ categories: r,
544
+ datapoints: J.value,
545
+ radar: Y.value
546
+ },
547
+ config: F.value
548
+ };
549
+ let i = F.value.style.chart.tooltip.customFormat;
550
+ if (te(i) && se(() => i({
551
+ seriesIndex: t,
552
+ datapoint: e,
553
+ series: {
554
+ categories: r,
555
+ datapoints: J.value,
556
+ radar: Y.value
557
+ },
558
+ config: F.value
559
+ }))) {
560
+ Mt.value = i({
561
+ seriesIndex: t,
562
+ datapoint: e,
563
+ series: {
564
+ categories: r,
565
+ datapoints: J.value,
566
+ radar: Y.value
567
+ },
568
+ config: F.value
569
+ });
570
+ return;
571
+ }
572
+ Mt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
573
+ for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
574
+ let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = re(e.formatter, i, c({
575
+ p: q.value[t].prefix,
576
+ v: i,
577
+ s: q.value[t].suffix,
578
+ r: F.value.style.chart.tooltip.roundingValue
579
+ }), { datapoint: e }), s = c({
580
+ v: a,
581
+ s: "%",
582
+ r: F.value.style.chart.tooltip.roundingPercentage
583
+ }), ee = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
584
+ kn.value.push({
585
+ name: n?.name ?? `#${t + 1}`,
586
+ value: e.values[t] / e.target * 100,
587
+ color: n?.color,
588
+ suffix: ee,
589
+ prefix: "",
590
+ rounding: F.value.style.chart.tooltip.roundingPercentage,
591
+ formatter: e.formatter
592
+ });
593
+ }
594
+ }
595
+ function Pn(e = null) {
596
+ Le(() => {
597
+ let t = [
598
+ [F.value.style.chart.title.text],
599
+ [F.value.style.chart.title.subtitle.text],
600
+ [""]
601
+ ], n = [
602
+ [""],
603
+ [F.value.translations.target],
604
+ ...X.value.flatMap((e) => [[e.name], ["%"]])
605
+ ], r = L.value.series.map((e, t) => [
606
+ e.name,
607
+ e.target,
608
+ ...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
609
+ ]), a = i(t.concat([n]).concat(r));
610
+ e ? e(a) : ee({
611
+ csvContent: a,
612
+ title: F.value.style.chart.title.text || "vue-ui-radar"
613
+ });
614
+ });
615
+ }
616
+ let $ = S(!1);
617
+ function Fn(e) {
618
+ $.value = e, Nt.value += 1;
619
+ }
620
+ function In() {
621
+ H.value.showTable = !H.value.showTable;
622
+ }
623
+ function Ln() {
624
+ H.value.showTooltip = !H.value.showTooltip;
625
+ }
626
+ let Rn = S(!1);
627
+ function zn() {
628
+ Rn.value = !Rn.value;
629
+ }
630
+ async function Bn({ scale: e = 2 } = {}) {
631
+ if (!j.value) return;
632
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
633
+ domElement: j.value,
634
+ base64: !0,
635
+ img: !0,
636
+ scale: e
637
+ });
638
+ return {
639
+ imageUri: i,
640
+ base64: a,
641
+ title: F.value.style.chart.title.text,
642
+ width: t,
643
+ height: n,
644
+ aspectRatio: r
645
+ };
646
+ }
647
+ let Vn = d(() => {
648
+ let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
649
+ return {
650
+ component: e ? Dt : St,
651
+ title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
652
+ props: e ? {
653
+ backgroundColor: F.value.table.th.backgroundColor,
654
+ color: F.value.table.th.color,
655
+ headerColor: F.value.table.th.color,
656
+ headerBg: F.value.table.th.backgroundColor,
657
+ isFullscreen: $.value,
658
+ fullscreenParent: j.value,
659
+ forcedWidth: Math.min(800, window.innerWidth * .8),
660
+ isCursorPointer: I.value
661
+ } : {
662
+ hideDetails: !0,
663
+ config: {
664
+ open: t,
665
+ maxHeight: 1e4,
666
+ body: {
667
+ backgroundColor: F.value.style.chart.backgroundColor,
668
+ color: F.value.style.chart.color
669
+ },
670
+ head: {
671
+ backgroundColor: F.value.style.chart.backgroundColor,
672
+ color: F.value.style.chart.color
673
+ }
674
+ }
675
+ }
676
+ };
677
+ });
678
+ Ue(() => H.value.showTable, (e) => {
679
+ F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
680
+ });
681
+ function Hn() {
682
+ H.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
683
+ }
684
+ let Un = d(() => X.value.map((e) => ({
685
+ ...e,
686
+ name: e.display
687
+ }))), Wn = d(() => F.value.style.chart.backgroundColor), Gn = d(() => F.value.style.chart.legend), { exportSvg: Kn, getSvg: qn } = ge({
688
+ svg: R,
689
+ title: d(() => F.value.style.chart.title),
690
+ legend: Gn,
691
+ legendItems: Un,
692
+ backgroundColor: Wn
693
+ });
694
+ async function Jn({ isCb: e }) {
695
+ Wt.value = !0, await Le();
696
+ try {
697
+ if (e) {
698
+ let { blob: e, url: t, text: n, dataUrl: r } = await qn();
699
+ await Promise.resolve(F.value.userOptions.callbacks.svg({
700
+ blob: e,
701
+ url: t,
702
+ text: n,
703
+ dataUrl: r
704
+ }));
705
+ } else await Promise.resolve(Kn());
706
+ } finally {
707
+ Wt.value = !1;
708
+ }
709
+ }
710
+ function Yn(e) {
711
+ if (e?.stage === "start") {
712
+ Ut.value = !0;
713
+ return;
714
+ }
715
+ if (e?.stage === "end") {
716
+ Ut.value = !1;
717
+ return;
718
+ }
719
+ rn();
720
+ }
721
+ async function Xn() {
722
+ if (cn("copyAlt", {
723
+ config: F.value,
724
+ dataset: Y.value
725
+ }), !F.value.userOptions.callbacks.altCopy) {
726
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
727
+ return;
728
+ }
729
+ await Promise.resolve(F.value.userOptions.callbacks.altCopy({
730
+ config: F.value,
731
+ dataset: Y.value
732
+ }));
733
+ }
734
+ function Zn() {
735
+ N.value = null, Kt.value = !0;
736
+ }
737
+ function Qn() {
738
+ N.value = null, P.value = "pointer", A.value = !1, Q.value = null, Kt.value = !1;
739
+ }
740
+ function $n(e) {
741
+ if (!Number.isFinite(e) || !R.value) return;
742
+ let t = Y.value[e];
743
+ if (!t) return;
744
+ let n = R.value.getBoundingClientRect();
745
+ Gt.value = {
746
+ x: n.left + t.labelX / U.value.width * n.width,
747
+ y: n.top + t.labelY / U.value.height * n.height
748
+ };
749
+ }
750
+ function er(e) {
751
+ if (!R.value || Rn.value || document.activeElement !== R.value || !Y.value.length) return;
752
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
753
+ if (!t && !n && !r && !i) return;
754
+ if (e.preventDefault(), e.stopPropagation(), i) {
755
+ N.value = null, P.value = "pointer", A.value = !1, Q.value = null;
756
+ return;
757
+ }
758
+ if (r) {
759
+ if (N.value === null) return;
760
+ let e = Y.value[N.value];
761
+ if (!e) return;
762
+ Mn(e, N.value);
763
+ return;
764
+ }
765
+ let a = N.value;
766
+ a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
767
+ let o = Y.value[a];
768
+ o && (N.value = a, $n(a), Nn(o, a, "keyboard"));
769
+ }
770
+ let tr = d(() => ({
771
+ headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
772
+ rows: Z.value?.body ?? []
773
+ }));
774
+ return xe({
775
+ getData: fn,
776
+ getImage: Bn,
777
+ generatePdf: nn,
778
+ generateCsv: Pn,
779
+ generateImage: rn,
780
+ generateSvg: Jn,
781
+ hideSeries: gn,
782
+ showSeries: hn,
783
+ toggleTable: In,
784
+ toggleTooltip: Ln,
785
+ toggleAnnotator: zn,
786
+ toggleFullscreen: Fn,
787
+ copyAlt: Xn
788
+ }), (e, t) => (x(), m("div", {
789
+ class: v(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
790
+ ref_key: "radarChart",
791
+ ref: j,
792
+ id: `vue-ui-radar_${k.value}`,
793
+ style: b(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
794
+ onMouseenter: t[2] ||= () => E(Xt)(!0),
795
+ onMouseleave: t[3] ||= () => E(Xt)(!1)
796
+ }, [
797
+ h("div", {
798
+ id: `chart-instructions-${k.value}`,
799
+ class: "sr-only"
800
+ }, [h("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
801
+ tr.value?.rows?.length ? (x(), f(Ee, {
802
+ key: 0,
803
+ uid: k.value,
804
+ head: tr.value.headers,
805
+ body: tr.value.rows,
806
+ notice: F.value.a11y.translations.tableAvailable,
807
+ caption: F.value.a11y.translations.tableCaption
808
+ }, null, 8, [
809
+ "uid",
810
+ "head",
811
+ "body",
812
+ "notice",
813
+ "caption"
814
+ ])) : p("", !0),
815
+ F.value.userOptions.buttons.annotator ? (x(), f(E(wt), {
816
+ key: 1,
817
+ svgRef: E(R),
818
+ backgroundColor: F.value.style.chart.backgroundColor,
819
+ color: F.value.style.chart.color,
820
+ active: Rn.value,
821
+ isCursorPointer: I.value,
822
+ onClose: zn
823
+ }, {
824
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
825
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
826
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
827
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
828
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
829
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
830
+ _: 3
831
+ }, 8, [
832
+ "svgRef",
833
+ "backgroundColor",
834
+ "color",
835
+ "active",
836
+ "isCursorPointer"
837
+ ])) : p("", !0),
838
+ an.value ? (x(), m("div", {
839
+ key: 2,
840
+ ref_key: "noTitle",
841
+ ref: Lt,
842
+ class: "vue-data-ui-no-title-space",
843
+ style: "height:36px; width: 100%;background:transparent"
844
+ }, null, 512)) : p("", !0),
845
+ F.value.style.chart.title.text ? (x(), m("div", {
846
+ key: 3,
847
+ ref_key: "chartTitle",
848
+ ref: Pt,
849
+ style: "width:100%;background:transparent;padding-bottom:12px"
850
+ }, [(x(), f(be, {
851
+ key: `title_${Rt.value}`,
852
+ config: {
853
+ title: {
854
+ cy: "radar-div-title",
855
+ ...F.value.style.chart.title
856
+ },
857
+ subtitle: {
858
+ cy: "radar-div-subtitle",
859
+ ...F.value.style.chart.title.subtitle
860
+ }
861
+ }
862
+ }, null, 8, ["config"]))], 512)) : p("", !0),
863
+ h("div", { id: `legend-top-${k.value}` }, null, 8, qe),
864
+ F.value.userOptions.show && jt.value && (E(Zt) || E(Yt)) ? (x(), f(E(Tt), {
865
+ ref_key: "userOptionsRef",
866
+ ref: Ht,
867
+ key: `user_options_${Nt.value}`,
868
+ backgroundColor: F.value.style.chart.backgroundColor,
869
+ color: F.value.style.chart.color,
870
+ isImaging: E(tn),
871
+ isPrinting: E(en),
872
+ uid: k.value,
873
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
874
+ hasPdf: F.value.userOptions.buttons.pdf,
875
+ hasImg: F.value.userOptions.buttons.img,
876
+ hasSvg: F.value.userOptions.buttons.svg,
877
+ hasXls: F.value.userOptions.buttons.csv,
878
+ hasTable: F.value.userOptions.buttons.table,
879
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
880
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
881
+ isFullscreen: $.value,
882
+ isTooltip: H.value.showTooltip,
883
+ titles: { ...F.value.userOptions.buttonTitles },
884
+ chartElement: j.value,
885
+ position: F.value.userOptions.position,
886
+ hasAnnotator: F.value.userOptions.buttons.annotator,
887
+ isAnnotation: Rn.value,
888
+ callbacks: F.value.userOptions.callbacks,
889
+ printScale: F.value.userOptions.print.scale,
890
+ tableDialog: F.value.table.useDialog,
891
+ isCursorPointer: I.value,
892
+ onToggleFullscreen: Fn,
893
+ onGeneratePdf: E(nn),
894
+ onGenerateCsv: Pn,
895
+ onGenerateImage: Yn,
896
+ onGenerateSvg: Jn,
897
+ onToggleTable: In,
898
+ onToggleTooltip: Ln,
899
+ onToggleAnnotator: zn,
900
+ onCopyAlt: Xn,
901
+ style: b({ visibility: E(Zt) ? E(Yt) ? "visible" : "hidden" : "visible" })
902
+ }, Ne({ _: 2 }, [
903
+ e.$slots.menuIcon ? {
904
+ name: "menuIcon",
905
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
906
+ isOpen: t,
907
+ color: n
908
+ })), void 0, !0)]),
909
+ key: "0"
910
+ } : void 0,
911
+ e.$slots.optionTooltip ? {
912
+ name: "optionTooltip",
913
+ fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
914
+ key: "1"
915
+ } : void 0,
916
+ e.$slots.optionPdf ? {
917
+ name: "optionPdf",
918
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
919
+ key: "2"
920
+ } : void 0,
921
+ e.$slots.optionCsv ? {
922
+ name: "optionCsv",
923
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
924
+ key: "3"
925
+ } : void 0,
926
+ e.$slots.optionImg ? {
927
+ name: "optionImg",
928
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
929
+ key: "4"
930
+ } : void 0,
931
+ e.$slots.optionSvg ? {
932
+ name: "optionSvg",
933
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
934
+ key: "5"
935
+ } : void 0,
936
+ e.$slots.optionTable ? {
937
+ name: "optionTable",
938
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
939
+ key: "6"
940
+ } : void 0,
941
+ e.$slots.optionFullscreen ? {
942
+ name: "optionFullscreen",
943
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
944
+ toggleFullscreen: t,
945
+ isFullscreen: n
946
+ })), void 0, !0)]),
947
+ key: "7"
948
+ } : void 0,
949
+ e.$slots.optionAnnotator ? {
950
+ name: "optionAnnotator",
951
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
952
+ toggleAnnotator: t,
953
+ isAnnotator: n
954
+ })), void 0, !0)]),
955
+ key: "8"
956
+ } : void 0,
957
+ e.$slots.optionAltCopy ? {
958
+ name: "optionAltCopy",
959
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
960
+ key: "9"
961
+ } : void 0,
962
+ e.$slots["custom-menu-before"] ? {
963
+ name: "custom-menu-before",
964
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
965
+ key: "10"
966
+ } : void 0,
967
+ e.$slots["custom-menu-after"] ? {
968
+ name: "custom-menu-after",
969
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
970
+ key: "11"
971
+ } : void 0
972
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
973
+ h("div", Je, [(x(), m("svg", {
974
+ ref_key: "svgRef",
975
+ ref: R,
976
+ xmlns: E(ce),
977
+ "aria-describedby": `chart-instructions-${k.value}`,
978
+ class: v({
979
+ "vue-data-ui-fullscreen--on": $.value,
980
+ "vue-data-ui-fulscreen--off": !$.value
981
+ }),
982
+ viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
983
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
984
+ tabindex: "0",
985
+ onFocus: Zn,
986
+ onBlur: Qn,
987
+ onKeydown: er
988
+ }, [
989
+ Fe(E(Et)),
990
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
991
+ key: 0,
992
+ x: 0,
993
+ y: 0,
994
+ width: U.value.width <= 0 ? 10 : U.value.width,
995
+ height: U.value.height <= 0 ? 10 : U.value.height,
996
+ style: { pointerEvents: "none" }
997
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : p("", !0),
998
+ h("defs", null, [(x(!0), m(u, null, C(q.value, (e, t) => (x(), f(we, {
999
+ t: "radial",
1000
+ cx: "50%",
1001
+ cy: "50%",
1002
+ r: "50%",
1003
+ fx: "50%",
1004
+ fy: "50%",
1005
+ id: `radar_gradient_${k.value}_${t}`,
1006
+ key: `radar_gradient_${k.value}_${t}`,
1007
+ stops: [[
1008
+ "0%",
1009
+ E(de)(E(n)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
1010
+ 1
1011
+ ], [
1012
+ "100%",
1013
+ E(de)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
1014
+ 1
1015
+ ]]
1016
+ }, null, 8, ["id", "stops"]))), 128))]),
1017
+ F.value.style.chart.layout.grid.show ? (x(), m("g", Ze, [(x(!0), m(u, null, C(Y.value, (e) => (x(), m("line", {
1018
+ x1: U.value.width / 2,
1019
+ y1: U.value.height / 2,
1020
+ x2: e.x,
1021
+ y2: e.y,
1022
+ stroke: F.value.style.chart.layout.grid.stroke,
1023
+ "stroke-width": F.value.style.chart.layout.grid.strokeWidth
1024
+ }, null, 8, Qe))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (x(), m("g", $e, [(x(!0), m(u, null, C(Cn.value, (e) => (x(), m("path", {
1025
+ d: E(ie)({
1026
+ plot: {
1027
+ x: U.value.width / 2,
1028
+ y: U.value.height / 2
1029
+ },
1030
+ radius: e,
1031
+ sides: bn.value,
1032
+ rotation: 0
1033
+ }).path,
1034
+ fill: "none",
1035
+ stroke: F.value.style.chart.layout.grid.stroke,
1036
+ "stroke-width": F.value.style.chart.layout.grid.strokeWidth
1037
+ }, null, 8, et))), 256))])) : p("", !0)])) : p("", !0),
1038
+ h("path", {
1039
+ d: Sn.value.path,
1040
+ fill: "none",
1041
+ stroke: F.value.style.chart.layout.outerPolygon.stroke,
1042
+ "stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
1043
+ "stroke-linejoin": "round",
1044
+ "stroke-linecap": "round"
1045
+ }, null, 8, tt),
1046
+ F.value.style.chart.layout.labels.dataLabels.show ? (x(), m("g", nt, [(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("text", {
1047
+ class: "vue-ui-radar-apex-label",
1048
+ x: e.labelX,
1049
+ y: e.labelY,
1050
+ "text-anchor": e.labelAnchor,
1051
+ "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1052
+ fill: F.value.style.chart.layout.labels.dataLabels.color,
1053
+ onMouseenter: (n) => Nn(e, t, "pointer"),
1054
+ onMouseleave: (n) => jn(e, t),
1055
+ onClick: (n) => Mn(e, t)
1056
+ }, T(e.name), 41, rt))), 256))])) : p("", !0),
1057
+ (x(!0), m(u, null, C(q.value, (e, t) => (x(), m("g", null, [h("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), m("polygon", {
1058
+ key: 0,
1059
+ points: E(ae)(Y.value.map((e) => e.plots[t]), !1, !0),
1060
+ stroke: F.value.style.chart.backgroundColor,
1061
+ "stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
1062
+ fill: "none",
1063
+ class: v({
1064
+ "animated-out": W.value.includes(t) && F.value.useCssAnimation,
1065
+ "animated-in": K.value && G.value === t && F.value.useCssAnimation
1066
+ })
1067
+ }, null, 10, it)) : p("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), m("polygon", {
1068
+ key: 1,
1069
+ points: E(ae)(Y.value.map((e) => e.plots[t]), !1, !0),
1070
+ stroke: e.color,
1071
+ "stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
1072
+ fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(de)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
1073
+ class: v({
1074
+ "animated-out": W.value.includes(t) && F.value.useCssAnimation,
1075
+ "animated-in": K.value && G.value === t && F.value.useCssAnimation
1076
+ })
1077
+ }, null, 10, at)) : p("", !0)])]))), 256)),
1078
+ F.value.style.chart.layout.targetReference.show ? (x(), m("path", {
1079
+ key: 3,
1080
+ class: "vue-ui-radar-target-polygon",
1081
+ d: `M${E(ae)(yn.value, !1, !0)}Z`,
1082
+ fill: "none",
1083
+ stroke: F.value.style.chart.layout.targetReference.stroke,
1084
+ "stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
1085
+ "stroke-linejoin": "round",
1086
+ "stroke-linecap": "round",
1087
+ "stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray
1088
+ }, null, 8, ot)) : p("", !0),
1089
+ F.value.style.chart.layout.plots.show ? (x(), m("g", st, [(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [(x(!0), m(u, null, C(e.plots, (e, n) => (x(), m("circle", {
1090
+ cx: e.x,
1091
+ cy: e.y,
1092
+ fill: W.value.includes(n) ? "transparent" : q.value[n] ? q.value[n].color : "transparent",
1093
+ r: Q.value !== null && Q.value === t ? F.value.style.chart.layout.plots.radius * 1.6 : F.value.style.chart.layout.plots.radius,
1094
+ stroke: W.value.includes(n) ? "transparent" : F.value.style.chart.backgroundColor,
1095
+ "stroke-width": .5,
1096
+ class: v({
1097
+ "animated-out": W.value.includes(n) && F.value.useCssAnimation,
1098
+ "animated-in": K.value && G.value === n && F.value.useCssAnimation
1099
+ })
1100
+ }, null, 10, ct))), 256))]))), 256))])) : p("", !0),
1101
+ w(e.$slots, "svg", { svg: {
1102
+ ...U.value,
1103
+ outerPolygon: Sn.value,
1104
+ isPrintingImg: E(en) || E(tn) || Ut.value,
1105
+ isPrintingSvg: Wt.value
1106
+ } }, void 0, !0)
1107
+ ], 46, Ye)), e.$slots.hint ? (x(), m("div", lt, [w(e.$slots, "hint", y(_({
1108
+ hint: F.value.a11y.translations.keyboardNavigation,
1109
+ isVisible: Kt.value
1110
+ })), void 0, !0)])) : p("", !0)]),
1111
+ e.$slots.watermark ? (x(), m("div", ut, [w(e.$slots, "watermark", y(_({ isPrinting: E(en) || E(tn) || Ut.value || Wt.value })), void 0, !0)])) : p("", !0),
1112
+ h("div", { id: `legend-bottom-${k.value}` }, null, 8, dt),
1113
+ Vt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Me, {
1114
+ key: 6,
1115
+ to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1116
+ }, [h("div", {
1117
+ ref_key: "chartLegend",
1118
+ ref: Ft
1119
+ }, [w(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (x(), f(ke, {
1120
+ key: `legend_${Bt.value}`,
1121
+ legendSet: X.value,
1122
+ config: On.value,
1123
+ isCursorPointer: I.value,
1124
+ onClickMarker: t[0] ||= ({ i: e }) => dn(e)
1125
+ }, Ne({
1126
+ item: D(({ legend: e, index: t }) => [E(Jt) ? p("", !0) : (x(), m("div", {
1127
+ key: 0,
1128
+ onClick: (t) => e.segregate(),
1129
+ style: b(`opacity:${W.value.includes(t) ? .5 : 1}`)
1130
+ }, T(e.display), 13, ft))]),
1131
+ legendToggle: D(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(Jt) ? (x(), f(Te, {
1132
+ key: 0,
1133
+ backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
1134
+ color: F.value.style.chart.legend.selectAllToggle.color,
1135
+ fontSize: F.value.style.chart.legend.fontSize,
1136
+ checked: W.value.length > 0,
1137
+ isCursorPointer: I.value,
1138
+ onToggle: ln
1139
+ }, null, 8, [
1140
+ "backgroundColor",
1141
+ "color",
1142
+ "fontSize",
1143
+ "checked",
1144
+ "isCursorPointer"
1145
+ ])) : p("", !0)]),
1146
+ _: 2
1147
+ }, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
1148
+ name: "after",
1149
+ fn: D(() => [h("div", pt, [h("div", { style: b({
1150
+ display: "flex",
1151
+ height: F.value.style.chart.legend.fontSize
1152
+ }) }, [(x(), m("svg", {
1153
+ style: b({ width: F.value.style.chart.legend.fontSize * 2 }),
1154
+ viewBox: "0 0 16 8"
1155
+ }, [h("line", {
1156
+ x1: "0",
1157
+ x2: "16",
1158
+ y1: "4",
1159
+ y2: "4",
1160
+ stroke: F.value.style.chart.layout.targetReference.stroke,
1161
+ "stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
1162
+ "stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
1163
+ "stroke-linecap": "round"
1164
+ }, null, 8, mt)], 4))], 4), h("span", null, T(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
1165
+ key: "0"
1166
+ } : void 0]), 1032, [
1167
+ "legendSet",
1168
+ "config",
1169
+ "isCursorPointer"
1170
+ ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1171
+ e.$slots.source ? (x(), m("div", {
1172
+ key: 7,
1173
+ ref_key: "source",
1174
+ ref: It,
1175
+ dir: "auto"
1176
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1177
+ Fe(E(yt), {
1178
+ teleportTo: F.value.style.chart.tooltip.teleportTo,
1179
+ show: H.value.showTooltip && A.value,
1180
+ backgroundColor: F.value.style.chart.tooltip.backgroundColor,
1181
+ color: F.value.style.chart.tooltip.color,
1182
+ borderRadius: F.value.style.chart.tooltip.borderRadius,
1183
+ borderColor: F.value.style.chart.tooltip.borderColor,
1184
+ borderWidth: F.value.style.chart.tooltip.borderWidth,
1185
+ backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
1186
+ fontSize: F.value.style.chart.tooltip.fontSize,
1187
+ position: F.value.style.chart.tooltip.position,
1188
+ offsetX: F.value.style.chart.tooltip.offsetX,
1189
+ offsetY: F.value.style.chart.tooltip.offsetY,
1190
+ parent: j.value,
1191
+ content: Mt.value,
1192
+ isFullscreen: $.value,
1193
+ isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
1194
+ smooth: F.value.style.chart.tooltip.smooth,
1195
+ backdropFilter: F.value.style.chart.tooltip.backdropFilter,
1196
+ smoothForce: F.value.style.chart.tooltip.smoothForce,
1197
+ smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
1198
+ isA11yMode: P.value === "keyboard",
1199
+ a11yPosition: Gt.value
1200
+ }, {
1201
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...An.value })), void 0, !0)]),
1202
+ tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...An.value })), void 0, !0)]),
1203
+ "tooltip-after": D(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (x(), m("div", ht, [Fe(E(xt), {
1204
+ dataset: kn.value,
1205
+ config: sn.value,
1206
+ backgroundOpacity: 0
1207
+ }, {
1208
+ "data-label": D(({ bar: e }) => [h("div", gt, [h("span", _t, T(e.name + (F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? (x(), m("span", vt, T(e.suffix), 1)) : p("", !0)])]),
1209
+ _: 1
1210
+ }, 8, ["dataset", "config"])])) : p("", !0), w(e.$slots, "tooltip-after", y(_({ ...An.value })), void 0, !0)]),
1211
+ _: 3
1212
+ }, 8, [
1213
+ "teleportTo",
1214
+ "show",
1215
+ "backgroundColor",
1216
+ "color",
1217
+ "borderRadius",
1218
+ "borderColor",
1219
+ "borderWidth",
1220
+ "backgroundOpacity",
1221
+ "fontSize",
1222
+ "position",
1223
+ "offsetX",
1224
+ "offsetY",
1225
+ "parent",
1226
+ "content",
1227
+ "isFullscreen",
1228
+ "isCustom",
1229
+ "smooth",
1230
+ "backdropFilter",
1231
+ "smoothForce",
1232
+ "smoothSnapThreshold",
1233
+ "isA11yMode",
1234
+ "a11yPosition"
1235
+ ]),
1236
+ jt.value && F.value.userOptions.buttons.table ? (x(), f(Be(Vn.value.component), Ie({ key: 8 }, Vn.value.props, {
1237
+ ref_key: "tableUnit",
1238
+ ref: M,
1239
+ onClose: Hn
1240
+ }), Ne({
1241
+ content: D(() => [(x(), f(E(Ct), {
1242
+ key: `table_${zt.value}`,
1243
+ colNames: Z.value.colNames,
1244
+ head: Z.value.head,
1245
+ body: Z.value.body,
1246
+ config: Z.value.config,
1247
+ title: F.value.table.useDialog ? "" : Vn.value.title,
1248
+ withCloseButton: !F.value.table.useDialog,
1249
+ isCursorPointer: I.value,
1250
+ onClose: Hn
1251
+ }, {
1252
+ th: D(({ th: e }) => [Pe(T(e.name), 1)]),
1253
+ td: D(({ td: e }) => [Pe(T(e), 1)]),
1254
+ _: 1
1255
+ }, 8, [
1256
+ "colNames",
1257
+ "head",
1258
+ "body",
1259
+ "config",
1260
+ "title",
1261
+ "withCloseButton",
1262
+ "isCursorPointer"
1263
+ ]))]),
1264
+ _: 2
1265
+ }, [F.value.table.useDialog ? {
1266
+ name: "title",
1267
+ fn: D(() => [Pe(T(Vn.value.title), 1)]),
1268
+ key: "0"
1269
+ } : void 0, F.value.table.useDialog ? {
1270
+ name: "actions",
1271
+ fn: D(() => [h("button", {
1272
+ tabindex: "0",
1273
+ class: "vue-ui-user-options-button",
1274
+ onClick: t[1] ||= (e) => Pn(F.value.userOptions.callbacks.csv),
1275
+ style: b({ cursor: I.value ? "pointer" : "default" })
1276
+ }, [Fe(E(bt), {
1277
+ name: "fileCsv",
1278
+ stroke: Vn.value.props.color
1279
+ }, null, 8, ["stroke"])], 4)]),
1280
+ key: "1"
1281
+ } : void 0]), 1040)) : p("", !0),
1282
+ w(e.$slots, "skeleton", {}, () => [E(Jt) ? (x(), f(he, { key: 0 })) : p("", !0)], !0)
1283
+ ], 46, Ge));
1284
+ }
1285
+ }, [["__scopeId", "data-v-ee3081b3"]]);
1286
+ //#endregion
1287
+ export { We as n, yt as t };