vue-data-ui 3.25.11 → 3.25.13

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