vue-data-ui 3.22.9 → 3.22.11

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