vue-data-ui 3.15.12 → 3.16.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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1086 @@
1
+ import { defineAsyncComponent as N, ref as i, computed as d, toRefs as Mt, onMounted as Nt, watch as Be, openBlock as u, createElementBlock as m, normalizeStyle as B, normalizeClass as Ee, createElementVNode as n, toDisplayString as E, createBlock as k, createCommentVNode as f, unref as l, withCtx as y, renderSlot as v, normalizeProps as C, guardReactiveProps as w, createVNode as te, createSlots as Re, Fragment as Ve, renderList as Ke, Teleport as Lt, resolveDynamicComponent as Dt, mergeProps as It, createTextVNode as Ue, nextTick as fe } from "vue";
2
+ import { j as Ft, t as je, o as Bt, q as We, A as Et, k as he, l as R, X as Rt, u as T, v as Vt, ah as Kt, a0 as Ut, a1 as jt } from "./lib-DBptbyyI.js";
3
+ import { t as Wt, u as zt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Gt } from "./useConfig-DO94Aj5s.js";
5
+ import { u as Ht, B as Xt } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as qt } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as Yt } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as ge } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as Jt } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
12
+ import eo from "./img-LXxMLmCg.js";
13
+ import to from "./Title-BeMKE1cj.js";
14
+ import oo from "./vue_ui_mood_radar-BUs6Fdn8.js";
15
+ import ao from "./Legend-CS7Xo5LK.js";
16
+ import { A as lo } from "./A11yDataTable-KcVAX2cP.js";
17
+ import { _ as no } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const so = ["id"], ro = ["id"], uo = ["id"], io = { style: { position: "relative" } }, co = ["xmlns", "aria-describedby", "viewBox"], vo = ["width", "height"], yo = ["id"], fo = ["stop-color"], ho = ["stop-color"], go = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], po = ["d", "stroke", "stroke-width"], mo = ["transform"], bo = ["stroke"], ko = ["aria-label", "fill"], Co = ["transform"], wo = ["stroke"], $o = ["aria-label", "fill"], xo = ["transform"], Ao = ["stroke"], Po = ["aria-label", "fill"], To = ["transform"], Oo = ["stroke"], _o = ["aria-label", "fill"], So = ["transform"], Mo = ["stroke"], No = ["aria-label", "fill"], Lo = ["d", "stroke", "stroke-width", "fill"], Do = ["x1", "y1", "x2", "y2", "stroke"], Io = ["cx", "cy", "fill", "stroke"], Fo = ["cx", "cy", "fill", "stroke"], Bo = ["x", "y", "fill", "font-weight"], Eo = ["x", "y", "fill"], Ro = {
19
+ key: 0,
20
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
21
+ "data-dom-to-png-ignore": "",
22
+ "aria-hidden": "true"
23
+ }, Vo = {
24
+ key: 5,
25
+ class: "vue-data-ui-watermark"
26
+ }, Ko = ["id"], Uo = ["onClick", "onKeydown"], jo = ["innerHTML"], Wo = {
27
+ __name: "vue-ui-mood-radar",
28
+ props: {
29
+ config: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ },
35
+ dataset: {
36
+ type: Object,
37
+ default() {
38
+ return {};
39
+ }
40
+ }
41
+ },
42
+ emits: ["copyAlt"],
43
+ setup(ze, { expose: Ge, emit: He }) {
44
+ const L = N(() => import("./BaseIcon-Cb3zzG6s.js")), Xe = N(() => import("./vue-ui-accordion-nvggWcGN.js")), qe = N(() => import("./DataTable-DT2kIdQ6.js")), Ye = N(() => import("./PenAndPaper-Ct3qJ4lA.js")), Je = N(() => import("./UserOptions-rW2fRf3V.js")), Qe = N(() => import("./PackageVersion-DPO-OOVI.js")), Ze = N(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_mood_radar: et } = Gt(), { isThemeValid: tt, warnInvalidTheme: ot } = Jt(), $ = ze, at = He, b = i(Ft()), A = i(null), p = i(null), pe = i(null), lt = i(0), nt = i(0), me = i(0), be = i(null), ke = i(null), V = i(null), Y = i(null), Ce = i(null), we = i(!1), K = i(null), oe = i(null), J = i(!1), Q = i(!1), O = i(null), ae = i(!1), $e = d(() => !!$.dataset && Object.keys($.dataset).length), e = i(se()), D = d(() => e.value.userOptions.useCursorPointer), st = d(() => je({
45
+ defaultConfig: {
46
+ userOptions: { show: !1 },
47
+ table: { show: !1 },
48
+ style: {
49
+ chart: {
50
+ backgroundColor: "#99999930",
51
+ layout: {
52
+ grid: {
53
+ stroke: "#6A6A6A"
54
+ },
55
+ outerPolygon: {
56
+ stroke: "#6A6A6A"
57
+ },
58
+ dataPolygon: {
59
+ color: "#6A6A6A",
60
+ opacity: 30,
61
+ stroke: "#6A6A6A"
62
+ },
63
+ smileys: {
64
+ colors: {
65
+ 1: "#DBDBDB",
66
+ 2: "#C4C4C4",
67
+ 3: "#ADADAD",
68
+ 4: "#969696",
69
+ 5: "#808080"
70
+ }
71
+ },
72
+ dataLabel: {
73
+ color: "transparent"
74
+ }
75
+ },
76
+ legend: {
77
+ backgroundColor: "transparent"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ userConfig: e.value.skeletonConfig ?? {}
83
+ })), { loading: le, FINAL_DATASET: _ } = Ht({
84
+ ...Mt($),
85
+ FINAL_CONFIG: e,
86
+ prepareConfig: se,
87
+ callback: () => {
88
+ Promise.resolve().then(async () => {
89
+ await fe(), S.value.showTable = e.value.table.show;
90
+ });
91
+ },
92
+ skeletonDataset: $.config?.skeletonDataset ?? {
93
+ 1: 1,
94
+ 2: 1,
95
+ 3: 1,
96
+ 4: 1,
97
+ 5: 1
98
+ },
99
+ skeletonConfig: je({
100
+ defaultConfig: e.value,
101
+ userConfig: st.value
102
+ })
103
+ });
104
+ Nt(() => {
105
+ we.value = !0, xe();
106
+ });
107
+ const rt = d(() => e.value.debug);
108
+ function xe() {
109
+ if (Bt($.dataset) && We({
110
+ componentName: "VueUiMoodRadar",
111
+ type: "dataset",
112
+ debug: rt.value
113
+ }), e.value.responsive) {
114
+ const t = Wt(() => {
115
+ const { width: a, height: o } = zt({
116
+ chart: A.value,
117
+ title: e.value.style.chart.title.text ? be.value : null,
118
+ legend: e.value.style.chart.legend.show ? ke.value : null,
119
+ noTitle: pe.value,
120
+ source: Ce.value
121
+ });
122
+ requestAnimationFrame(() => {
123
+ r.value.width = a, r.value.height = o - 12;
124
+ });
125
+ });
126
+ V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect()), V.value = new ResizeObserver(t), Y.value = A.value.parentNode, V.value.observe(Y.value);
127
+ }
128
+ }
129
+ const { userOptionsVisible: ne, setUserOptionsVisibility: Ae, keepUserOptionState: Pe } = Qt({ config: e.value }), { svgRef: U } = Zt({ config: e.value.style.chart.title });
130
+ function se() {
131
+ const t = ge({
132
+ userConfig: $.config,
133
+ defaultConfig: et
134
+ }), a = t.theme;
135
+ if (!a) return t;
136
+ if (!tt.value(t))
137
+ return ot(t), t;
138
+ const o = ge({
139
+ userConfig: oo[a] || $.config,
140
+ defaultConfig: t
141
+ });
142
+ return ge({
143
+ userConfig: $.config,
144
+ defaultConfig: o
145
+ });
146
+ }
147
+ Be(() => $.config, (t) => {
148
+ e.value = se(), ne.value = !e.value.userOptions.showOnChartHover, xe(), lt.value += 1, nt.value += 1, me.value += 1, S.value.showTable = e.value.table.show;
149
+ }, { deep: !0 });
150
+ const { isPrinting: re, isImaging: ue, generatePdf: Te, generateImage: Oe } = qt({
151
+ elementId: b.value,
152
+ fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
153
+ options: e.value.userOptions.print
154
+ }), ut = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), S = i({
155
+ showTable: e.value.table.show
156
+ }), r = i({
157
+ height: 256,
158
+ width: 256
159
+ }), it = {
160
+ 5: { x: 128, y: 35 },
161
+ 4: { x: 218, y: 98.5 },
162
+ 3: { x: 185, y: 204 },
163
+ 2: { x: 70, y: 204 },
164
+ 1: { x: 38.5, y: 98.5 }
165
+ }, ct = d(() => {
166
+ const t = {};
167
+ return ce.value.forEach((a) => {
168
+ t[a.key] = { x: a.x, y: a.y };
169
+ }), t;
170
+ });
171
+ function j(t) {
172
+ const a = it[t], o = ct.value[t] || a;
173
+ return `translate(${o.x - a.x}, ${o.y - a.y})`;
174
+ }
175
+ const ie = d(() => Et({
176
+ plot: { x: r.value.width / 2, y: r.value.height / 2 },
177
+ radius: Math.min(r.value.height, r.value.width) * 0.35,
178
+ sides: 5,
179
+ rotation: 11
180
+ }));
181
+ function dt({ centerX: t, centerY: a, apexX: o, apexY: s, proportion: g, key: c, value: ee }) {
182
+ return {
183
+ x: t + (o - t) * g,
184
+ y: a + (s - a) * g,
185
+ key: c,
186
+ value: ee
187
+ };
188
+ }
189
+ const vt = d(() => Math.max(...Object.values(_.value).map((t) => isNaN(t) ? 0 : t))), x = d(() => Object.values(_.value).reduce((t, a) => (isNaN(t) ? 0 : t) + (isNaN(a) ? 0 : a), 0)), h = d(() => Object.keys(_.value).map((t, a) => {
190
+ const o = typeof _.value[t] != "number" || isNaN(_.value[t]) ? 0 : _.value[t];
191
+ return {
192
+ index: a,
193
+ key: t,
194
+ value: o,
195
+ proportion: o / x.value,
196
+ color: e.value.style.chart.layout.smileys.colors[t]
197
+ };
198
+ }).sort((t, a) => a.key - t.key)), _e = d(() => h.value.map((t, a) => ({
199
+ ...t,
200
+ display: `${he(
201
+ e.value.style.chart.layout.dataLabel.formatter,
202
+ t.value,
203
+ R({
204
+ p: e.value.style.chart.layout.dataLabel.prefix,
205
+ v: t.value,
206
+ s: e.value.style.chart.layout.dataLabel.suffix,
207
+ r: e.value.style.chart.layout.dataLabel.roundingValue
208
+ })
209
+ )}${le.value ? "" : ` (${R({
210
+ v: t.proportion * 100,
211
+ s: "%",
212
+ r: e.value.style.chart.legend.roundingPercentage
213
+ })})`}`
214
+ }))), ce = d(() => (["1", "2", "3", "4", "5"].forEach((t) => {
215
+ [null, void 0].includes(_.value[t]) && We({
216
+ componentName: "VueUiMoodRadar",
217
+ type: "datasetAttribute",
218
+ property: t
219
+ });
220
+ }), ie.value.coordinates.map((t, a) => {
221
+ const o = dt({
222
+ centerX: r.value.width / 2,
223
+ centerY: r.value.height / 2,
224
+ apexX: t.x,
225
+ apexY: t.y,
226
+ proportion: h.value[a].value / vt.value,
227
+ key: h.value[a].key,
228
+ value: h.value[a].value
229
+ });
230
+ return {
231
+ ...t,
232
+ plots: o,
233
+ key: h.value[a].key
234
+ };
235
+ }))), yt = d(() => ({
236
+ cy: "mood-radar-legend",
237
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
238
+ color: e.value.style.chart.legend.color,
239
+ fontSize: e.value.style.chart.legend.fontSize,
240
+ paddingBottom: 12,
241
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
242
+ }));
243
+ function Z(t) {
244
+ t === p.value ? p.value = null : (p.value = t, I(t));
245
+ }
246
+ function W(t) {
247
+ p.value = t;
248
+ const a = h.value.find((o) => o.key === t);
249
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.index });
250
+ }
251
+ function z(t) {
252
+ p.value = null;
253
+ const a = h.value.find((o) => o.key === t);
254
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.index });
255
+ }
256
+ function I(t) {
257
+ const a = h.value.find((o) => o.key === t);
258
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.index });
259
+ }
260
+ const P = d(() => {
261
+ const t = h.value.map((o) => ({
262
+ name: o.key,
263
+ color: o.color
264
+ })), a = h.value.map((o) => isNaN(o.value) ? 0 : o.value);
265
+ return { head: t, body: a };
266
+ });
267
+ function de(t = null) {
268
+ fe(() => {
269
+ const a = P.value.head.map((g, c) => [[
270
+ g.name
271
+ ], [P.value.body[c]], [isNaN(P.value.body[c] / x.value) ? "-" : P.value.body[c] / x.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Ut(o);
272
+ t ? t(s) : jt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
273
+ });
274
+ }
275
+ const G = d(() => {
276
+ const t = [
277
+ ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
278
+ Number(x.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
279
+ "100%"
280
+ ], a = P.value.head.map((g, c) => [
281
+ {
282
+ color: g.color,
283
+ name: g.name
284
+ },
285
+ P.value.body[c].toFixed(e.value.table.td.roundingValue),
286
+ isNaN(P.value.body[c] / x.value) ? "-" : (P.value.body[c] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
287
+ ]), o = {
288
+ th: {
289
+ backgroundColor: e.value.table.th.backgroundColor,
290
+ color: e.value.table.th.color,
291
+ outline: e.value.table.th.outline
292
+ },
293
+ td: {
294
+ backgroundColor: e.value.table.td.backgroundColor,
295
+ color: e.value.table.td.color,
296
+ outline: e.value.table.td.outline
297
+ },
298
+ breakpoint: e.value.table.responsiveBreakpoint
299
+ }, s = [
300
+ e.value.table.columnNames.series,
301
+ e.value.table.columnNames.value,
302
+ e.value.table.columnNames.percentage
303
+ ];
304
+ return {
305
+ head: t,
306
+ body: a,
307
+ config: o,
308
+ colNames: s
309
+ };
310
+ });
311
+ function ft() {
312
+ return h.value;
313
+ }
314
+ function Se() {
315
+ S.value.showTable = !S.value.showTable;
316
+ }
317
+ const F = i(!1);
318
+ function Me(t) {
319
+ F.value = t;
320
+ }
321
+ const H = i(!1);
322
+ function ve() {
323
+ H.value = !H.value;
324
+ }
325
+ async function ht({ scale: t = 2 } = {}) {
326
+ if (!A.value) return;
327
+ const { width: a, height: o } = A.value.getBoundingClientRect(), s = a / o, { imageUri: g, base64: c } = await eo({ domElement: A.value, base64: !0, img: !0, scale: t });
328
+ return {
329
+ imageUri: g,
330
+ base64: c,
331
+ title: e.value.style.chart.title.text,
332
+ width: a,
333
+ height: o,
334
+ aspectRatio: s
335
+ };
336
+ }
337
+ const X = d(() => {
338
+ const t = e.value.table.useDialog && !e.value.table.show, a = S.value.showTable;
339
+ return {
340
+ component: t ? Ze : Xe,
341
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
342
+ props: t ? {
343
+ backgroundColor: e.value.table.th.backgroundColor,
344
+ color: e.value.table.th.color,
345
+ headerColor: e.value.table.th.color,
346
+ headerBg: e.value.table.th.backgroundColor,
347
+ isFullscreen: F.value,
348
+ fullscreenParent: A.value,
349
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
350
+ isCursorPointer: D.value
351
+ } : {
352
+ hideDetails: !0,
353
+ config: {
354
+ open: a,
355
+ maxHeight: 1e4,
356
+ body: {
357
+ backgroundColor: e.value.style.chart.backgroundColor,
358
+ color: e.value.style.chart.color
359
+ },
360
+ head: {
361
+ backgroundColor: e.value.style.chart.backgroundColor,
362
+ color: e.value.style.chart.color
363
+ }
364
+ }
365
+ }
366
+ };
367
+ });
368
+ Be(() => S.value.showTable, (t) => {
369
+ e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
370
+ });
371
+ function Ne() {
372
+ S.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
373
+ }
374
+ const gt = d(() => _e.value.map((t) => ({
375
+ ...t,
376
+ name: t.display,
377
+ shape: "circle"
378
+ }))), pt = d(() => e.value.style.chart.backgroundColor), mt = d(() => e.value.style.chart.legend), bt = d(() => e.value.style.chart.title), { exportSvg: kt, getSvg: Ct } = Yt({
379
+ svg: U,
380
+ title: bt,
381
+ legend: mt,
382
+ legendItems: gt,
383
+ backgroundColor: pt
384
+ });
385
+ async function Le({ isCb: t }) {
386
+ Q.value = !0, await fe();
387
+ try {
388
+ if (t) {
389
+ const { blob: a, url: o, text: s, dataUrl: g } = await Ct();
390
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: o, text: s, dataUrl: g }));
391
+ } else
392
+ await Promise.resolve(kt());
393
+ } finally {
394
+ Q.value = !1;
395
+ }
396
+ }
397
+ function wt(t) {
398
+ if (t?.stage === "start") {
399
+ J.value = !0;
400
+ return;
401
+ }
402
+ if (t?.stage === "end") {
403
+ J.value = !1;
404
+ return;
405
+ }
406
+ Oe();
407
+ }
408
+ async function De() {
409
+ if (at("copyAlt", {
410
+ config: e.value,
411
+ dataset: h.value
412
+ }), !e.value.userOptions.callbacks.altCopy) {
413
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
414
+ return;
415
+ }
416
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
417
+ config: e.value,
418
+ dataset: h.value
419
+ }));
420
+ }
421
+ const M = d(() => h.value.map((t) => String(t.key)));
422
+ function $t() {
423
+ Ae(!0);
424
+ }
425
+ function xt() {
426
+ Ae(!1);
427
+ }
428
+ function At(t) {
429
+ return h.value.find((a) => String(a.key) === String(t));
430
+ }
431
+ function Ie(t, a, o) {
432
+ return he(
433
+ e.value.style.chart.layout.dataLabel.formatter,
434
+ t,
435
+ R({
436
+ p: e.value.style.chart.layout.dataLabel.prefix,
437
+ v: t,
438
+ s: e.value.style.chart.layout.dataLabel.suffix,
439
+ r: e.value.style.chart.layout.dataLabel.roundingValue
440
+ }),
441
+ { datapoint: o, seriesIndex: a }
442
+ );
443
+ }
444
+ function Fe(t) {
445
+ return R({
446
+ v: x.value ? t / x.value * 100 : 0,
447
+ s: "%",
448
+ r: e.value.style.chart.layout.dataLabel.roundingPercentage
449
+ });
450
+ }
451
+ function q(t) {
452
+ const a = At(t);
453
+ return a ? `${t}, ${Ie(a.value, a.index, a)}, ${Fe(a.value)}` : `${t}`;
454
+ }
455
+ function Pt(t) {
456
+ const a = M.value[t];
457
+ a && (O.value = t, p.value = a);
458
+ }
459
+ function Tt() {
460
+ ae.value = !0;
461
+ }
462
+ function Ot() {
463
+ O.value = null, p.value = null, ae.value = !1;
464
+ }
465
+ function _t(t) {
466
+ if (!U.value || !M.value.length || H.value || document.activeElement !== U.value) return;
467
+ const a = ["ArrowLeft", "ArrowUp"].includes(t.key), o = ["ArrowRight", "ArrowDown"].includes(t.key), s = t.key === "Enter" || t.key === " ", g = t.key === "Escape";
468
+ if (!a && !o && !s && !g) return;
469
+ if (t.preventDefault(), t.stopPropagation(), g) {
470
+ O.value = null, p.value = null;
471
+ return;
472
+ }
473
+ if (s) {
474
+ if (O.value === null) return;
475
+ const ee = M.value[O.value];
476
+ if (!ee) return;
477
+ Z(ee);
478
+ return;
479
+ }
480
+ let c = O.value;
481
+ c === null || c < 0 || c >= M.value.length ? c = o ? 0 : M.value.length - 1 : o ? (c += 1, c >= M.value.length && (c = 0)) : a && (c -= 1, c < 0 && (c = M.value.length - 1)), Pt(c);
482
+ }
483
+ function St(t, a) {
484
+ const o = t.key === "Enter" || t.key === " ", s = t.key === "Escape";
485
+ if (!(!o && !s)) {
486
+ if (t.preventDefault(), t.stopPropagation(), s) {
487
+ O.value = null, p.value = null;
488
+ return;
489
+ }
490
+ Z(String(a));
491
+ }
492
+ }
493
+ const ye = d(() => {
494
+ const t = G.value?.colNames ?? [], a = h.value.map((o) => [
495
+ String(o.key),
496
+ Ie(o.value, o.index, o),
497
+ Fe(o.value)
498
+ ]);
499
+ return { headers: t, rows: a };
500
+ });
501
+ return Ge({
502
+ getData: ft,
503
+ getImage: ht,
504
+ generatePdf: Te,
505
+ generateCsv: de,
506
+ generateImage: Oe,
507
+ generateSvg: Le,
508
+ toggleTable: Se,
509
+ toggleAnnotator: ve,
510
+ toggleFullscreen: Me,
511
+ copyAlt: De
512
+ }), (t, a) => (u(), m("div", {
513
+ class: Ee(`vue-data-ui-component vue-ui-mood-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
514
+ ref_key: "moodRadarChart",
515
+ ref: A,
516
+ id: `${b.value}`,
517
+ style: B(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
518
+ onMouseenter: $t,
519
+ onMouseleave: xt
520
+ }, [
521
+ n("div", {
522
+ id: `chart-instructions-${b.value}`,
523
+ class: "sr-only"
524
+ }, [
525
+ n("p", null, E(e.value.a11y.translations.keyboardNavigation), 1)
526
+ ], 8, ro),
527
+ ye.value?.rows?.length ? (u(), k(lo, {
528
+ key: 0,
529
+ uid: b.value,
530
+ head: ye.value.headers,
531
+ body: ye.value.rows,
532
+ notice: e.value.a11y.translations.tableAvailable,
533
+ caption: e.value.a11y.translations.tableCaption
534
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : f("", !0),
535
+ e.value.userOptions.buttons.annotator ? (u(), k(l(Ye), {
536
+ key: 1,
537
+ svgRef: l(U),
538
+ backgroundColor: e.value.style.chart.backgroundColor,
539
+ color: e.value.style.chart.color,
540
+ active: H.value,
541
+ isCursorPointer: D.value,
542
+ onClose: ve
543
+ }, {
544
+ "annotator-action-close": y(() => [
545
+ v(t.$slots, "annotator-action-close", {}, void 0, !0)
546
+ ]),
547
+ "annotator-action-color": y(({ color: o }) => [
548
+ v(t.$slots, "annotator-action-color", C(w({ color: o })), void 0, !0)
549
+ ]),
550
+ "annotator-action-draw": y(({ mode: o }) => [
551
+ v(t.$slots, "annotator-action-draw", C(w({ mode: o })), void 0, !0)
552
+ ]),
553
+ "annotator-action-undo": y(({ disabled: o }) => [
554
+ v(t.$slots, "annotator-action-undo", C(w({ disabled: o })), void 0, !0)
555
+ ]),
556
+ "annotator-action-redo": y(({ disabled: o }) => [
557
+ v(t.$slots, "annotator-action-redo", C(w({ disabled: o })), void 0, !0)
558
+ ]),
559
+ "annotator-action-delete": y(({ disabled: o }) => [
560
+ v(t.$slots, "annotator-action-delete", C(w({ disabled: o })), void 0, !0)
561
+ ]),
562
+ _: 3
563
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : f("", !0),
564
+ ut.value ? (u(), m("div", {
565
+ key: 2,
566
+ ref_key: "noTitle",
567
+ ref: pe,
568
+ class: "vue-data-ui-no-title-space",
569
+ style: "height:36px; width: 100%;background:transparent"
570
+ }, null, 512)) : f("", !0),
571
+ e.value.style.chart.title.text ? (u(), m("div", {
572
+ key: 3,
573
+ ref_key: "chartTitle",
574
+ ref: be,
575
+ style: "width:100%;background:transparent"
576
+ }, [
577
+ te(to, {
578
+ config: {
579
+ title: {
580
+ cy: "mood-radar-title",
581
+ ...e.value.style.chart.title
582
+ },
583
+ subtitle: {
584
+ cy: "mood-radar-subtitle",
585
+ ...e.value.style.chart.title.subtitle
586
+ }
587
+ }
588
+ }, null, 8, ["config"])
589
+ ], 512)) : f("", !0),
590
+ n("div", {
591
+ id: `legend-top-${b.value}`
592
+ }, null, 8, uo),
593
+ e.value.userOptions.show && $e.value && (l(Pe) || l(ne)) ? (u(), k(l(Je), {
594
+ key: 4,
595
+ ref_key: "userOptionsRef",
596
+ ref: oe,
597
+ backgroundColor: e.value.style.chart.backgroundColor,
598
+ color: e.value.style.chart.color,
599
+ isPrinting: l(re),
600
+ isImaging: l(ue),
601
+ uid: b.value,
602
+ hasPdf: e.value.userOptions.buttons.pdf,
603
+ hasXls: e.value.userOptions.buttons.csv,
604
+ hasImg: e.value.userOptions.buttons.img,
605
+ hasSvg: e.value.userOptions.buttons.svg,
606
+ hasTable: e.value.userOptions.buttons.table,
607
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
608
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
609
+ isFullscreen: F.value,
610
+ titles: { ...e.value.userOptions.buttonTitles },
611
+ chartElement: A.value,
612
+ position: e.value.userOptions.position,
613
+ hasAnnotator: e.value.userOptions.buttons.annotator,
614
+ isAnnotation: H.value,
615
+ callbacks: e.value.userOptions.callbacks,
616
+ printScale: e.value.userOptions.print.scale,
617
+ tableDialog: e.value.table.useDialog,
618
+ isCursorPointer: D.value,
619
+ onToggleFullscreen: Me,
620
+ onGeneratePdf: l(Te),
621
+ onGenerateCsv: de,
622
+ onGenerateImage: wt,
623
+ onGenerateSvg: Le,
624
+ onToggleTable: Se,
625
+ onToggleAnnotator: ve,
626
+ onCopyAlt: De,
627
+ style: B({
628
+ visibility: l(Pe) ? l(ne) ? "visible" : "hidden" : "visible"
629
+ })
630
+ }, Re({ _: 2 }, [
631
+ t.$slots.menuIcon ? {
632
+ name: "menuIcon",
633
+ fn: y(({ isOpen: o, color: s }) => [
634
+ v(t.$slots, "menuIcon", C(w({ isOpen: o, color: s })), void 0, !0)
635
+ ]),
636
+ key: "0"
637
+ } : void 0,
638
+ t.$slots.optionPdf ? {
639
+ name: "optionPdf",
640
+ fn: y(() => [
641
+ v(t.$slots, "optionPdf", {}, void 0, !0)
642
+ ]),
643
+ key: "1"
644
+ } : void 0,
645
+ t.$slots.optionCsv ? {
646
+ name: "optionCsv",
647
+ fn: y(() => [
648
+ v(t.$slots, "optionCsv", {}, void 0, !0)
649
+ ]),
650
+ key: "2"
651
+ } : void 0,
652
+ t.$slots.optionImg ? {
653
+ name: "optionImg",
654
+ fn: y(() => [
655
+ v(t.$slots, "optionImg", {}, void 0, !0)
656
+ ]),
657
+ key: "3"
658
+ } : void 0,
659
+ t.$slots.optionSvg ? {
660
+ name: "optionSvg",
661
+ fn: y(() => [
662
+ v(t.$slots, "optionSvg", {}, void 0, !0)
663
+ ]),
664
+ key: "4"
665
+ } : void 0,
666
+ t.$slots.optionTable ? {
667
+ name: "optionTable",
668
+ fn: y(() => [
669
+ v(t.$slots, "optionTable", {}, void 0, !0)
670
+ ]),
671
+ key: "5"
672
+ } : void 0,
673
+ t.$slots.optionFullscreen ? {
674
+ name: "optionFullscreen",
675
+ fn: y(({ toggleFullscreen: o, isFullscreen: s }) => [
676
+ v(t.$slots, "optionFullscreen", C(w({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
677
+ ]),
678
+ key: "6"
679
+ } : void 0,
680
+ t.$slots.optionAnnotator ? {
681
+ name: "optionAnnotator",
682
+ fn: y(({ toggleAnnotator: o, isAnnotator: s }) => [
683
+ v(t.$slots, "optionAnnotator", C(w({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
684
+ ]),
685
+ key: "7"
686
+ } : void 0,
687
+ t.$slots.optionAltCopy ? {
688
+ name: "optionAltCopy",
689
+ fn: y(({ altCopy: o }) => [
690
+ v(t.$slots, "optionAltCopy", C(w({ altCopy: o })), void 0, !0)
691
+ ]),
692
+ key: "8"
693
+ } : void 0
694
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : f("", !0),
695
+ n("div", io, [
696
+ (u(), m("svg", {
697
+ ref_key: "svgRef",
698
+ ref: U,
699
+ xmlns: l(Rt),
700
+ "aria-describedby": `chart-instructions-${b.value}`,
701
+ viewBox: `0 0 ${r.value.width} ${r.value.height}`,
702
+ class: Ee({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
703
+ style: B(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
704
+ tabindex: "0",
705
+ onFocus: Tt,
706
+ onBlur: Ot,
707
+ onKeydown: _t
708
+ }, [
709
+ te(l(Qe)),
710
+ t.$slots["chart-background"] ? (u(), m("foreignObject", {
711
+ key: 0,
712
+ x: 0,
713
+ y: 0,
714
+ width: r.value.width,
715
+ height: r.value.height,
716
+ style: {
717
+ pointerEvents: "none"
718
+ }
719
+ }, [
720
+ v(t.$slots, "chart-background", {}, void 0, !0)
721
+ ], 8, vo)) : f("", !0),
722
+ n("defs", null, [
723
+ n("radialGradient", {
724
+ cx: "50%",
725
+ cy: "50%",
726
+ r: "50%",
727
+ fx: "50%",
728
+ fy: "50%",
729
+ id: `mood_radar_gradient_${b.value}`
730
+ }, [
731
+ n("stop", {
732
+ offset: "0%",
733
+ "stop-color": l(T)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
734
+ }, null, 8, fo),
735
+ n("stop", {
736
+ offset: "100%",
737
+ "stop-color": l(T)(l(Vt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
738
+ }, null, 8, ho)
739
+ ], 8, yo)
740
+ ]),
741
+ (u(!0), m(Ve, null, Ke(ie.value.coordinates, (o) => (u(), m("line", {
742
+ x1: r.value.width / 2,
743
+ y1: r.value.height / 2,
744
+ x2: o.x,
745
+ y2: o.y,
746
+ stroke: e.value.style.chart.layout.grid.stroke,
747
+ "stroke-width": e.value.style.chart.layout.grid.strokeWidth
748
+ }, null, 8, go))), 256)),
749
+ n("path", {
750
+ d: ie.value.path,
751
+ fill: "none",
752
+ stroke: e.value.style.chart.layout.outerPolygon.stroke,
753
+ "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
754
+ "stroke-linejoin": "round",
755
+ "stroke-linecap": "round"
756
+ }, null, 8, po),
757
+ n("g", {
758
+ transform: j("5")
759
+ }, [
760
+ n("path", {
761
+ fill: "none",
762
+ stroke: e.value.style.chart.layout.smileys.colors[5],
763
+ "stroke-width": "1",
764
+ "stroke-linecap": "round",
765
+ d: "M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"
766
+ }, null, 8, bo),
767
+ n("circle", {
768
+ role: "button",
769
+ class: "vue-ui-mood-radar-trap",
770
+ cx: "128",
771
+ cy: "25",
772
+ r: "20",
773
+ "aria-label": q("5"),
774
+ fill: p.value === "5" ? l(T)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
775
+ onMouseenter: a[0] || (a[0] = (o) => W("5")),
776
+ onMouseleave: a[1] || (a[1] = (o) => z("5")),
777
+ onClick: a[2] || (a[2] = (o) => I("5"))
778
+ }, null, 40, ko)
779
+ ], 8, mo),
780
+ n("g", {
781
+ transform: j("4")
782
+ }, [
783
+ n("path", {
784
+ fill: "none",
785
+ stroke: e.value.style.chart.layout.smileys.colors[4],
786
+ "stroke-width": "1",
787
+ "stroke-linecap": "round",
788
+ d: "M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"
789
+ }, null, 8, wo),
790
+ n("circle", {
791
+ class: "vue-ui-mood-radar-trap",
792
+ cx: "227",
793
+ cy: "95.5",
794
+ r: "20",
795
+ "aria-label": q("4"),
796
+ fill: p.value === "4" ? l(T)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
797
+ onMouseenter: a[3] || (a[3] = (o) => W("4")),
798
+ onMouseleave: a[4] || (a[4] = (o) => z("4")),
799
+ onClick: a[5] || (a[5] = (o) => I("4"))
800
+ }, null, 40, $o)
801
+ ], 8, Co),
802
+ n("g", {
803
+ transform: j("3")
804
+ }, [
805
+ n("path", {
806
+ fill: "none",
807
+ stroke: e.value.style.chart.layout.smileys.colors[3],
808
+ "stroke-width": "1",
809
+ "stroke-linecap": "round",
810
+ d: "M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"
811
+ }, null, 8, Ao),
812
+ n("circle", {
813
+ class: "vue-ui-mood-radar-trap",
814
+ cx: "190",
815
+ cy: "213.5",
816
+ r: "20",
817
+ "aria-label": q("3"),
818
+ fill: p.value === "3" ? l(T)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
819
+ onMouseenter: a[6] || (a[6] = (o) => W("3")),
820
+ onMouseleave: a[7] || (a[7] = (o) => z("3")),
821
+ onClick: a[8] || (a[8] = (o) => I("3"))
822
+ }, null, 40, Po)
823
+ ], 8, xo),
824
+ n("g", {
825
+ transform: j("2")
826
+ }, [
827
+ n("path", {
828
+ fill: "none",
829
+ stroke: e.value.style.chart.layout.smileys.colors[2],
830
+ "stroke-width": "1",
831
+ "stroke-linecap": "round",
832
+ d: "M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"
833
+ }, null, 8, Oo),
834
+ n("circle", {
835
+ class: "vue-ui-mood-radar-trap",
836
+ cx: "65",
837
+ cy: "213.5",
838
+ r: "20",
839
+ "aria-label": q("2"),
840
+ fill: p.value === "2" ? l(T)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
841
+ onMouseenter: a[9] || (a[9] = (o) => W("2")),
842
+ onMouseleave: a[10] || (a[10] = (o) => z("2")),
843
+ onClick: a[11] || (a[11] = (o) => I("2"))
844
+ }, null, 40, _o)
845
+ ], 8, To),
846
+ n("g", {
847
+ transform: j("1")
848
+ }, [
849
+ n("path", {
850
+ fill: "none",
851
+ stroke: e.value.style.chart.layout.smileys.colors[1],
852
+ "stroke-width": "1",
853
+ "stroke-linecap": "round",
854
+ d: "M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"
855
+ }, null, 8, Mo),
856
+ n("circle", {
857
+ class: "vue-ui-mood-radar-trap",
858
+ cx: "29",
859
+ cy: "95.5",
860
+ r: "20",
861
+ "aria-label": q("1"),
862
+ fill: p.value === "1" ? l(T)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
863
+ onMouseenter: a[12] || (a[12] = (o) => W("1")),
864
+ onMouseleave: a[13] || (a[13] = (o) => z("1")),
865
+ onClick: a[14] || (a[14] = (o) => I("1"))
866
+ }, null, 40, No)
867
+ ], 8, So),
868
+ n("path", {
869
+ d: l(Kt)(ce.value.map((o) => o.plots)),
870
+ stroke: e.value.style.chart.layout.dataPolygon.stroke,
871
+ "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
872
+ "stroke-linecap": "round",
873
+ "stroke-linejoin": "round",
874
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${b.value})` : l(T)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
875
+ }, null, 8, Lo),
876
+ (u(!0), m(Ve, null, Ke(ce.value.map((o) => o.plots), (o, s) => (u(), m("g", {
877
+ class: "vue-ui-mood-radar-trap",
878
+ style: B(`opacity:${p.value == o.key ? "1" : "0"}`)
879
+ }, [
880
+ n("line", {
881
+ x1: o.x,
882
+ y1: o.y,
883
+ x2: r.value.width / 2,
884
+ y2: r.value.height / 2,
885
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
886
+ }, null, 8, Do),
887
+ n("circle", {
888
+ cx: o.x,
889
+ cy: o.y,
890
+ fill: e.value.style.chart.layout.smileys.colors[o.key],
891
+ r: "3",
892
+ stroke: e.value.style.chart.backgroundColor,
893
+ "stroke-width": 0.5
894
+ }, null, 8, Io),
895
+ n("circle", {
896
+ cx: r.value.width / 2,
897
+ cy: r.value.height / 2,
898
+ fill: e.value.style.chart.layout.smileys.colors[o.key],
899
+ r: "3",
900
+ stroke: e.value.style.chart.backgroundColor,
901
+ "stroke-width": 0.5
902
+ }, null, 8, Fo),
903
+ n("text", {
904
+ x: r.value.width / 2,
905
+ y: ["5", 5].includes(o.key) ? r.value.height / 2 * 1.13 : r.value.height / 2 * 0.9375,
906
+ fill: e.value.style.chart.layout.dataLabel.color,
907
+ "font-size": "12",
908
+ "text-anchor": "middle",
909
+ "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
910
+ }, E(l(he)(
911
+ e.value.style.chart.layout.dataLabel.formatter,
912
+ o.value,
913
+ l(R)({
914
+ p: e.value.style.chart.layout.dataLabel.prefix,
915
+ v: o.value,
916
+ s: e.value.style.chart.layout.dataLabel.suffix,
917
+ r: e.value.style.chart.layout.dataLabel.roundingValue
918
+ }),
919
+ { datapoint: o, seriesIndex: s }
920
+ )), 9, Bo),
921
+ n("text", {
922
+ x: r.value.width / 2,
923
+ y: ["5", 5].includes(o.key) ? r.value.height / 2 * 1.273 : r.value.height / 2 * 0.7968,
924
+ fill: e.value.style.chart.layout.dataLabel.color,
925
+ "font-size": "12",
926
+ "text-anchor": "middle"
927
+ }, " (" + E(l(R)({
928
+ v: o.value / x.value * 100,
929
+ s: "%",
930
+ r: e.value.style.chart.layout.dataLabel.roundingPercentage
931
+ })) + ") ", 9, Eo)
932
+ ], 4))), 256)),
933
+ v(t.$slots, "svg", {
934
+ svg: {
935
+ ...r.value,
936
+ isPrintingImg: l(re) | l(ue) | J.value,
937
+ isPrintingSvg: Q.value
938
+ }
939
+ }, void 0, !0)
940
+ ], 46, co)),
941
+ t.$slots.hint ? (u(), m("div", Ro, [
942
+ v(t.$slots, "hint", C(w({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: ae.value })), void 0, !0)
943
+ ])) : f("", !0)
944
+ ]),
945
+ t.$slots.watermark ? (u(), m("div", Vo, [
946
+ v(t.$slots, "watermark", C(w({ isPrinting: l(re) || l(ue) || J.value || Q.value })), void 0, !0)
947
+ ])) : f("", !0),
948
+ n("div", {
949
+ id: `legend-bottom-${b.value}`
950
+ }, null, 8, Ko),
951
+ we.value ? (u(), k(Lt, {
952
+ key: 6,
953
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
954
+ }, [
955
+ n("div", {
956
+ ref_key: "chartLegend",
957
+ ref: ke
958
+ }, [
959
+ e.value.style.chart.legend.show ? (u(), k(ao, {
960
+ legendSet: _e.value,
961
+ config: yt.value,
962
+ key: `legend_${me.value}`,
963
+ isCursorPointer: D.value,
964
+ style: { display: "flex", "row-gap": "6px" },
965
+ onFocusMarker: a[15] || (a[15] = ({ legend: o }) => Z(o.key))
966
+ }, {
967
+ item: y(({ legend: o, index: s }) => [
968
+ n("div", {
969
+ role: "button",
970
+ onClick: () => Z(o.key),
971
+ style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" },
972
+ onKeydown: (g) => St(g, String(o.key))
973
+ }, [
974
+ o.key == 1 ? (u(), k(l(L), {
975
+ key: 0,
976
+ strokeWidth: 1,
977
+ name: "moodSad",
978
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
979
+ }, null, 8, ["stroke"])) : f("", !0),
980
+ o.key == 2 ? (u(), k(l(L), {
981
+ key: 1,
982
+ strokeWidth: 1,
983
+ name: "moodFlat",
984
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
985
+ }, null, 8, ["stroke"])) : f("", !0),
986
+ o.key == 3 ? (u(), k(l(L), {
987
+ key: 2,
988
+ strokeWidth: 1,
989
+ name: "moodNeutral",
990
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
991
+ }, null, 8, ["stroke"])) : f("", !0),
992
+ o.key == 4 ? (u(), k(l(L), {
993
+ key: 3,
994
+ strokeWidth: 1,
995
+ name: "smiley",
996
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
997
+ }, null, 8, ["stroke"])) : f("", !0),
998
+ o.key == 5 ? (u(), k(l(L), {
999
+ key: 4,
1000
+ strokeWidth: 1,
1001
+ name: "moodHappy",
1002
+ stroke: e.value.style.chart.layout.smileys.colors[o.key]
1003
+ }, null, 8, ["stroke"])) : f("", !0),
1004
+ l(le) ? f("", !0) : (u(), m("span", {
1005
+ key: 5,
1006
+ style: B({ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal" })
1007
+ }, E(o.display), 5))
1008
+ ], 40, Uo)
1009
+ ]),
1010
+ _: 1
1011
+ }, 8, ["legendSet", "config", "isCursorPointer"])) : f("", !0),
1012
+ v(t.$slots, "legend", { legend: h.value }, void 0, !0)
1013
+ ], 512)
1014
+ ], 8, ["to"])) : f("", !0),
1015
+ t.$slots.source ? (u(), m("div", {
1016
+ key: 7,
1017
+ ref_key: "source",
1018
+ ref: Ce,
1019
+ dir: "auto"
1020
+ }, [
1021
+ v(t.$slots, "source", {}, void 0, !0)
1022
+ ], 512)) : f("", !0),
1023
+ $e.value && e.value.userOptions.buttons.table ? (u(), k(Dt(X.value.component), It({ key: 8 }, X.value.props, {
1024
+ ref_key: "tableUnit",
1025
+ ref: K,
1026
+ onClose: Ne
1027
+ }), Re({
1028
+ content: y(() => [
1029
+ te(l(qe), {
1030
+ colNames: G.value.colNames,
1031
+ head: G.value.head,
1032
+ body: G.value.body,
1033
+ config: G.value.config,
1034
+ title: e.value.table.useDialog ? "" : X.value.title,
1035
+ withCloseButton: !e.value.table.useDialog,
1036
+ isCursorPointer: D.value,
1037
+ onClose: Ne
1038
+ }, {
1039
+ th: y(({ th: o }) => [
1040
+ n("div", {
1041
+ innerHTML: o,
1042
+ style: { display: "flex", "align-items": "center" }
1043
+ }, null, 8, jo)
1044
+ ]),
1045
+ td: y(({ td: o }) => [
1046
+ Ue(E(o.name || o), 1)
1047
+ ]),
1048
+ _: 1
1049
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
1050
+ ]),
1051
+ _: 2
1052
+ }, [
1053
+ e.value.table.useDialog ? {
1054
+ name: "title",
1055
+ fn: y(() => [
1056
+ Ue(E(X.value.title), 1)
1057
+ ]),
1058
+ key: "0"
1059
+ } : void 0,
1060
+ e.value.table.useDialog ? {
1061
+ name: "actions",
1062
+ fn: y(() => [
1063
+ n("button", {
1064
+ tabindex: "0",
1065
+ class: "vue-ui-user-options-button",
1066
+ onClick: a[16] || (a[16] = (o) => de(e.value.userOptions.callbacks.csv)),
1067
+ style: B({ cursor: D.value ? "pointer" : "default" })
1068
+ }, [
1069
+ te(l(L), {
1070
+ name: "fileCsv",
1071
+ stroke: X.value.props.color
1072
+ }, null, 8, ["stroke"])
1073
+ ], 4)
1074
+ ]),
1075
+ key: "1"
1076
+ } : void 0
1077
+ ]), 1040)) : f("", !0),
1078
+ v(t.$slots, "skeleton", {}, () => [
1079
+ l(le) ? (u(), k(Xt, { key: 0 })) : f("", !0)
1080
+ ], !0)
1081
+ ], 46, so));
1082
+ }
1083
+ }, ua = /* @__PURE__ */ no(Wo, [["__scopeId", "data-v-33a34595"]]);
1084
+ export {
1085
+ ua as default
1086
+ };