vue-data-ui 3.22.0 → 3.22.1

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