vue-data-ui 3.22.9 → 3.22.10

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