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
@@ -1,967 +0,0 @@
1
- import { defineAsyncComponent as _, ref as u, computed as v, toRefs as gt, onMounted as pt, watch as Te, openBlock as r, createElementBlock as h, unref as a, normalizeStyle as D, normalizeClass as Oe, createBlock as k, withCtx as i, renderSlot as d, normalizeProps as b, guardReactiveProps as C, createCommentVNode as y, createVNode as K, createElementVNode as n, createSlots as Me, Fragment as _e, renderList as Ne, toDisplayString as j, Teleport as mt, resolveDynamicComponent as kt, mergeProps as bt, createTextVNode as Se, nextTick as re } from "vue";
2
- import { j as Ct, t as Ie, o as wt, q as Le, A as $t, k as De, l as q, X as xt, u as P, v as At, ag as Pt, a0 as Tt, a1 as Ot } from "./lib-GwPnJSrY.js";
3
- import { t as Mt, u as _t } from "./useResponsive-DfdjqQps.js";
4
- import { u as Nt } from "./useConfig-CIgyKZ6R.js";
5
- import { u as St, B as It } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Lt } from "./usePrinter-DiK5R6k-.js";
7
- import { u as Dt } from "./useSvgExport-ByUukOZt.js";
8
- import { u as ue } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as Ft } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
12
- import Rt from "./img-BYYzY_QU.js";
13
- import Vt from "./Title-BfyrP-jp.js";
14
- import Ut from "./vue_ui_mood_radar-BUs6Fdn8.js";
15
- import jt from "./Legend-1LMMsPxL.js";
16
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const zt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], Xt = ["width", "height"], Kt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qt = ["d", "stroke", "stroke-width"], Zt = ["transform"], eo = ["stroke"], to = ["fill"], oo = ["transform"], lo = ["stroke"], ao = ["fill"], no = ["transform"], so = ["stroke"], ro = ["fill"], uo = ["transform"], io = ["stroke"], co = ["fill"], vo = ["transform"], yo = ["stroke"], fo = ["fill"], ho = ["d", "stroke", "stroke-width", "fill"], go = ["x1", "y1", "x2", "y2", "stroke"], po = ["cx", "cy", "fill", "stroke"], mo = ["cx", "cy", "fill", "stroke"], ko = ["x", "y", "fill", "font-weight"], bo = ["x", "y", "fill"], Co = {
18
- key: 4,
19
- class: "vue-data-ui-watermark"
20
- }, wo = ["id"], $o = ["onClick"], xo = ["innerHTML"], Ao = {
21
- __name: "vue-ui-mood-radar",
22
- props: {
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- },
29
- dataset: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- }
35
- },
36
- emits: ["copyAlt"],
37
- setup(Fe, { expose: Be, emit: Ee }) {
38
- const N = _(() => import("./BaseIcon-CNx8Tzl5.js")), Re = _(() => import("./vue-ui-accordion-BGHTqIBt.js")), Ve = _(() => import("./DataTable-Bo1pmAqG.js")), Ue = _(() => import("./PenAndPaper-DWV1FMIi.js")), je = _(() => import("./UserOptions-CrLqEimB.js")), We = _(() => import("./PackageVersion-DN9d0ME5.js")), ze = _(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_mood_radar: Ge } = Nt(), { isThemeValid: He, warnInvalidTheme: Xe } = Ft(), w = Fe, Ke = Ee, $ = u(Ct()), x = u(null), g = u(null), ie = u(null), qe = u(0), Ye = u(0), de = u(0), ce = u(null), ve = u(null), F = u(null), W = u(null), ye = u(null), fe = u(!1), B = u(null), Y = u(null), z = u(!1), G = u(!1), he = v(() => !!w.dataset && Object.keys(w.dataset).length), e = u(ee()), S = v(() => e.value.userOptions.useCursorPointer), Je = v(() => Ie({
39
- defaultConfig: {
40
- userOptions: { show: !1 },
41
- table: { show: !1 },
42
- style: {
43
- chart: {
44
- backgroundColor: "#99999930",
45
- layout: {
46
- grid: {
47
- stroke: "#6A6A6A"
48
- },
49
- outerPolygon: {
50
- stroke: "#6A6A6A"
51
- },
52
- dataPolygon: {
53
- color: "#6A6A6A",
54
- opacity: 30,
55
- stroke: "#6A6A6A"
56
- },
57
- smileys: {
58
- colors: {
59
- 1: "#DBDBDB",
60
- 2: "#C4C4C4",
61
- 3: "#ADADAD",
62
- 4: "#969696",
63
- 5: "#808080"
64
- }
65
- },
66
- dataLabel: {
67
- color: "transparent"
68
- }
69
- },
70
- legend: {
71
- backgroundColor: "transparent"
72
- }
73
- }
74
- }
75
- },
76
- userConfig: e.value.skeletonConfig ?? {}
77
- })), { loading: J, FINAL_DATASET: T } = St({
78
- ...gt(w),
79
- FINAL_CONFIG: e,
80
- prepareConfig: ee,
81
- callback: () => {
82
- Promise.resolve().then(async () => {
83
- await re(), O.value.showTable = e.value.table.show;
84
- });
85
- },
86
- skeletonDataset: w.config?.skeletonDataset ?? {
87
- 1: 1,
88
- 2: 1,
89
- 3: 1,
90
- 4: 1,
91
- 5: 1
92
- },
93
- skeletonConfig: Ie({
94
- defaultConfig: e.value,
95
- userConfig: Je.value
96
- })
97
- });
98
- pt(() => {
99
- fe.value = !0, ge();
100
- });
101
- const Qe = v(() => e.value.debug);
102
- function ge() {
103
- if (wt(w.dataset) && Le({
104
- componentName: "VueUiMoodRadar",
105
- type: "dataset",
106
- debug: Qe.value
107
- }), e.value.responsive) {
108
- const t = Mt(() => {
109
- const { width: l, height: o } = _t({
110
- chart: x.value,
111
- title: e.value.style.chart.title.text ? ce.value : null,
112
- legend: e.value.style.chart.legend.show ? ve.value : null,
113
- noTitle: ie.value,
114
- source: ye.value
115
- });
116
- requestAnimationFrame(() => {
117
- s.value.width = l, s.value.height = o - 12;
118
- });
119
- });
120
- F.value && (W.value && F.value.unobserve(W.value), F.value.disconnect()), F.value = new ResizeObserver(t), W.value = x.value.parentNode, F.value.observe(W.value);
121
- }
122
- }
123
- const { userOptionsVisible: Q, setUserOptionsVisibility: pe, keepUserOptionState: me } = Bt({ config: e.value }), { svgRef: Z } = Et({ config: e.value.style.chart.title });
124
- function ee() {
125
- const t = ue({
126
- userConfig: w.config,
127
- defaultConfig: Ge
128
- }), l = t.theme;
129
- if (!l) return t;
130
- if (!He.value(t))
131
- return Xe(t), t;
132
- const o = ue({
133
- userConfig: Ut[l] || w.config,
134
- defaultConfig: t
135
- });
136
- return ue({
137
- userConfig: w.config,
138
- defaultConfig: o
139
- });
140
- }
141
- Te(() => w.config, (t) => {
142
- e.value = ee(), Q.value = !e.value.userOptions.showOnChartHover, ge(), qe.value += 1, Ye.value += 1, de.value += 1, O.value.showTable = e.value.table.show;
143
- }, { deep: !0 });
144
- const { isPrinting: te, isImaging: oe, generatePdf: ke, generateImage: be } = Lt({
145
- elementId: $.value,
146
- fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
147
- options: e.value.userOptions.print
148
- }), Ze = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = u({
149
- showTable: e.value.table.show
150
- }), s = u({
151
- height: 256,
152
- width: 256
153
- }), et = {
154
- 5: { x: 128, y: 35 },
155
- 4: { x: 218, y: 98.5 },
156
- 3: { x: 185, y: 204 },
157
- 2: { x: 70, y: 204 },
158
- 1: { x: 38.5, y: 98.5 }
159
- }, tt = v(() => {
160
- const t = {};
161
- return ae.value.forEach((l) => {
162
- t[l.key] = { x: l.x, y: l.y };
163
- }), t;
164
- });
165
- function E(t) {
166
- const l = et[t], o = tt.value[t] || l;
167
- return `translate(${o.x - l.x}, ${o.y - l.y})`;
168
- }
169
- const le = v(() => $t({
170
- plot: { x: s.value.width / 2, y: s.value.height / 2 },
171
- radius: Math.min(s.value.height, s.value.width) * 0.35,
172
- sides: 5,
173
- rotation: 11
174
- }));
175
- function ot({ centerX: t, centerY: l, apexX: o, apexY: c, proportion: p, key: m, value: ht }) {
176
- return {
177
- x: t + (o - t) * p,
178
- y: l + (c - l) * p,
179
- key: m,
180
- value: ht
181
- };
182
- }
183
- const lt = v(() => Math.max(...Object.values(T.value).map((t) => isNaN(t) ? 0 : t))), M = v(() => Object.values(T.value).reduce((t, l) => (isNaN(t) ? 0 : t) + (isNaN(l) ? 0 : l), 0)), f = v(() => Object.keys(T.value).map((t, l) => {
184
- const o = typeof T.value[t] != "number" || isNaN(T.value[t]) ? 0 : T.value[t];
185
- return {
186
- index: l,
187
- key: t,
188
- value: o,
189
- proportion: o / M.value,
190
- color: e.value.style.chart.layout.smileys.colors[t]
191
- };
192
- }).sort((t, l) => l.key - t.key)), Ce = v(() => f.value.map((t, l) => ({
193
- ...t,
194
- display: `${De(
195
- e.value.style.chart.layout.dataLabel.formatter,
196
- t.value,
197
- q({
198
- p: e.value.style.chart.layout.dataLabel.prefix,
199
- v: t.value,
200
- s: e.value.style.chart.layout.dataLabel.suffix,
201
- r: e.value.style.chart.layout.dataLabel.roundingValue
202
- })
203
- )}${J.value ? "" : ` (${q({
204
- v: t.proportion * 100,
205
- s: "%",
206
- r: e.value.style.chart.legend.roundingPercentage
207
- })})`}`
208
- }))), ae = v(() => (["1", "2", "3", "4", "5"].forEach((t) => {
209
- [null, void 0].includes(T.value[t]) && Le({
210
- componentName: "VueUiMoodRadar",
211
- type: "datasetAttribute",
212
- property: t
213
- });
214
- }), le.value.coordinates.map((t, l) => {
215
- const o = ot({
216
- centerX: s.value.width / 2,
217
- centerY: s.value.height / 2,
218
- apexX: t.x,
219
- apexY: t.y,
220
- proportion: f.value[l].value / lt.value,
221
- key: f.value[l].key,
222
- value: f.value[l].value
223
- });
224
- return {
225
- ...t,
226
- plots: o,
227
- key: f.value[l].key
228
- };
229
- }))), at = v(() => ({
230
- cy: "mood-radar-legend",
231
- backgroundColor: e.value.style.chart.legend.backgroundColor,
232
- color: e.value.style.chart.legend.color,
233
- fontSize: e.value.style.chart.legend.fontSize,
234
- paddingBottom: 12,
235
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
236
- }));
237
- function nt(t) {
238
- t === g.value ? g.value = null : (g.value = t, I(t));
239
- }
240
- function R(t) {
241
- g.value = t;
242
- const l = f.value.find((o) => o.key === t);
243
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
244
- }
245
- function V(t) {
246
- g.value = null;
247
- const l = f.value.find((o) => o.key === t);
248
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
249
- }
250
- function I(t) {
251
- const l = f.value.find((o) => o.key === t);
252
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
253
- }
254
- const A = v(() => {
255
- const t = f.value.map((o) => ({
256
- name: o.key,
257
- color: o.color
258
- })), l = f.value.map((o) => isNaN(o.value) ? 0 : o.value);
259
- return { head: t, body: l };
260
- });
261
- function ne(t = null) {
262
- re(() => {
263
- const l = A.value.head.map((p, m) => [[
264
- p.name
265
- ], [A.value.body[m]], [isNaN(A.value.body[m] / M.value) ? "-" : A.value.body[m] / M.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), c = Tt(o);
266
- t ? t(c) : Ot({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
267
- });
268
- }
269
- const H = v(() => {
270
- const t = [
271
- ' <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>',
272
- Number(M.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
273
- "100%"
274
- ], l = A.value.head.map((p, m) => [
275
- {
276
- color: p.color,
277
- name: p.name
278
- },
279
- A.value.body[m].toFixed(e.value.table.td.roundingValue),
280
- isNaN(A.value.body[m] / M.value) ? "-" : (A.value.body[m] / M.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
281
- ]), o = {
282
- th: {
283
- backgroundColor: e.value.table.th.backgroundColor,
284
- color: e.value.table.th.color,
285
- outline: e.value.table.th.outline
286
- },
287
- td: {
288
- backgroundColor: e.value.table.td.backgroundColor,
289
- color: e.value.table.td.color,
290
- outline: e.value.table.td.outline
291
- },
292
- breakpoint: e.value.table.responsiveBreakpoint
293
- }, c = [
294
- e.value.table.columnNames.series,
295
- e.value.table.columnNames.value,
296
- e.value.table.columnNames.percentage
297
- ];
298
- return {
299
- head: t,
300
- body: l,
301
- config: o,
302
- colNames: c
303
- };
304
- });
305
- function st() {
306
- return f.value;
307
- }
308
- function we() {
309
- O.value.showTable = !O.value.showTable;
310
- }
311
- const L = u(!1);
312
- function $e(t) {
313
- L.value = t;
314
- }
315
- const X = u(!1);
316
- function se() {
317
- X.value = !X.value;
318
- }
319
- async function rt({ scale: t = 2 } = {}) {
320
- if (!x.value) return;
321
- const { width: l, height: o } = x.value.getBoundingClientRect(), c = l / o, { imageUri: p, base64: m } = await Rt({ domElement: x.value, base64: !0, img: !0, scale: t });
322
- return {
323
- imageUri: p,
324
- base64: m,
325
- title: e.value.style.chart.title.text,
326
- width: l,
327
- height: o,
328
- aspectRatio: c
329
- };
330
- }
331
- const U = v(() => {
332
- const t = e.value.table.useDialog && !e.value.table.show, l = O.value.showTable;
333
- return {
334
- component: t ? ze : Re,
335
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
336
- props: t ? {
337
- backgroundColor: e.value.table.th.backgroundColor,
338
- color: e.value.table.th.color,
339
- headerColor: e.value.table.th.color,
340
- headerBg: e.value.table.th.backgroundColor,
341
- isFullscreen: L.value,
342
- fullscreenParent: x.value,
343
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
344
- isCursorPointer: S.value
345
- } : {
346
- hideDetails: !0,
347
- config: {
348
- open: l,
349
- maxHeight: 1e4,
350
- body: {
351
- backgroundColor: e.value.style.chart.backgroundColor,
352
- color: e.value.style.chart.color
353
- },
354
- head: {
355
- backgroundColor: e.value.style.chart.backgroundColor,
356
- color: e.value.style.chart.color
357
- }
358
- }
359
- }
360
- };
361
- });
362
- Te(() => O.value.showTable, (t) => {
363
- e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : "close" in B.value && B.value.close());
364
- });
365
- function xe() {
366
- O.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
367
- }
368
- const ut = v(() => Ce.value.map((t) => ({
369
- ...t,
370
- name: t.display,
371
- shape: "circle"
372
- }))), it = v(() => e.value.style.chart.backgroundColor), dt = v(() => e.value.style.chart.legend), ct = v(() => e.value.style.chart.title), { exportSvg: vt, getSvg: yt } = Dt({
373
- svg: Z,
374
- title: ct,
375
- legend: dt,
376
- legendItems: ut,
377
- backgroundColor: it
378
- });
379
- async function Ae({ isCb: t }) {
380
- G.value = !0, await re();
381
- try {
382
- if (t) {
383
- const { blob: l, url: o, text: c, dataUrl: p } = await yt();
384
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: o, text: c, dataUrl: p }));
385
- } else
386
- await Promise.resolve(vt());
387
- } finally {
388
- G.value = !1;
389
- }
390
- }
391
- function ft(t) {
392
- if (t?.stage === "start") {
393
- z.value = !0;
394
- return;
395
- }
396
- if (t?.stage === "end") {
397
- z.value = !1;
398
- return;
399
- }
400
- be();
401
- }
402
- async function Pe() {
403
- if (Ke("copyAlt", {
404
- config: e.value,
405
- dataset: f.value
406
- }), !e.value.userOptions.callbacks.altCopy) {
407
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
408
- return;
409
- }
410
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
411
- config: e.value,
412
- dataset: f.value
413
- }));
414
- }
415
- return Be({
416
- getData: st,
417
- getImage: rt,
418
- generatePdf: ke,
419
- generateCsv: ne,
420
- generateImage: be,
421
- generateSvg: Ae,
422
- toggleTable: we,
423
- toggleAnnotator: se,
424
- toggleFullscreen: $e,
425
- copyAlt: Pe
426
- }), (t, l) => (r(), h("div", {
427
- class: Oe(`vue-data-ui-component vue-ui-mood-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
428
- ref_key: "moodRadarChart",
429
- ref: x,
430
- id: `${$.value}`,
431
- style: D(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
432
- onMouseenter: l[16] || (l[16] = () => a(pe)(!0)),
433
- onMouseleave: l[17] || (l[17] = () => a(pe)(!1))
434
- }, [
435
- e.value.userOptions.buttons.annotator ? (r(), k(a(Ue), {
436
- key: 0,
437
- svgRef: a(Z),
438
- backgroundColor: e.value.style.chart.backgroundColor,
439
- color: e.value.style.chart.color,
440
- active: X.value,
441
- isCursorPointer: S.value,
442
- onClose: se
443
- }, {
444
- "annotator-action-close": i(() => [
445
- d(t.$slots, "annotator-action-close", {}, void 0, !0)
446
- ]),
447
- "annotator-action-color": i(({ color: o }) => [
448
- d(t.$slots, "annotator-action-color", b(C({ color: o })), void 0, !0)
449
- ]),
450
- "annotator-action-draw": i(({ mode: o }) => [
451
- d(t.$slots, "annotator-action-draw", b(C({ mode: o })), void 0, !0)
452
- ]),
453
- "annotator-action-undo": i(({ disabled: o }) => [
454
- d(t.$slots, "annotator-action-undo", b(C({ disabled: o })), void 0, !0)
455
- ]),
456
- "annotator-action-redo": i(({ disabled: o }) => [
457
- d(t.$slots, "annotator-action-redo", b(C({ disabled: o })), void 0, !0)
458
- ]),
459
- "annotator-action-delete": i(({ disabled: o }) => [
460
- d(t.$slots, "annotator-action-delete", b(C({ disabled: o })), void 0, !0)
461
- ]),
462
- _: 3
463
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
464
- Ze.value ? (r(), h("div", {
465
- key: 1,
466
- ref_key: "noTitle",
467
- ref: ie,
468
- class: "vue-data-ui-no-title-space",
469
- style: "height:36px; width: 100%;background:transparent"
470
- }, null, 512)) : y("", !0),
471
- e.value.style.chart.title.text ? (r(), h("div", {
472
- key: 2,
473
- ref_key: "chartTitle",
474
- ref: ce,
475
- style: "width:100%;background:transparent"
476
- }, [
477
- K(Vt, {
478
- config: {
479
- title: {
480
- cy: "mood-radar-title",
481
- ...e.value.style.chart.title
482
- },
483
- subtitle: {
484
- cy: "mood-radar-subtitle",
485
- ...e.value.style.chart.title.subtitle
486
- }
487
- }
488
- }, null, 8, ["config"])
489
- ], 512)) : y("", !0),
490
- n("div", {
491
- id: `legend-top-${$.value}`
492
- }, null, 8, Gt),
493
- e.value.userOptions.show && he.value && (a(me) || a(Q)) ? (r(), k(a(je), {
494
- key: 3,
495
- ref_key: "userOptionsRef",
496
- ref: Y,
497
- backgroundColor: e.value.style.chart.backgroundColor,
498
- color: e.value.style.chart.color,
499
- isPrinting: a(te),
500
- isImaging: a(oe),
501
- uid: $.value,
502
- hasPdf: e.value.userOptions.buttons.pdf,
503
- hasXls: e.value.userOptions.buttons.csv,
504
- hasImg: e.value.userOptions.buttons.img,
505
- hasSvg: e.value.userOptions.buttons.svg,
506
- hasTable: e.value.userOptions.buttons.table,
507
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
508
- hasAltCopy: e.value.userOptions.buttons.altCopy,
509
- isFullscreen: L.value,
510
- titles: { ...e.value.userOptions.buttonTitles },
511
- chartElement: x.value,
512
- position: e.value.userOptions.position,
513
- hasAnnotator: e.value.userOptions.buttons.annotator,
514
- isAnnotation: X.value,
515
- callbacks: e.value.userOptions.callbacks,
516
- printScale: e.value.userOptions.print.scale,
517
- tableDialog: e.value.table.useDialog,
518
- isCursorPointer: S.value,
519
- onToggleFullscreen: $e,
520
- onGeneratePdf: a(ke),
521
- onGenerateCsv: ne,
522
- onGenerateImage: ft,
523
- onGenerateSvg: Ae,
524
- onToggleTable: we,
525
- onToggleAnnotator: se,
526
- onCopyAlt: Pe,
527
- style: D({
528
- visibility: a(me) ? a(Q) ? "visible" : "hidden" : "visible"
529
- })
530
- }, Me({ _: 2 }, [
531
- t.$slots.menuIcon ? {
532
- name: "menuIcon",
533
- fn: i(({ isOpen: o, color: c }) => [
534
- d(t.$slots, "menuIcon", b(C({ isOpen: o, color: c })), void 0, !0)
535
- ]),
536
- key: "0"
537
- } : void 0,
538
- t.$slots.optionPdf ? {
539
- name: "optionPdf",
540
- fn: i(() => [
541
- d(t.$slots, "optionPdf", {}, void 0, !0)
542
- ]),
543
- key: "1"
544
- } : void 0,
545
- t.$slots.optionCsv ? {
546
- name: "optionCsv",
547
- fn: i(() => [
548
- d(t.$slots, "optionCsv", {}, void 0, !0)
549
- ]),
550
- key: "2"
551
- } : void 0,
552
- t.$slots.optionImg ? {
553
- name: "optionImg",
554
- fn: i(() => [
555
- d(t.$slots, "optionImg", {}, void 0, !0)
556
- ]),
557
- key: "3"
558
- } : void 0,
559
- t.$slots.optionSvg ? {
560
- name: "optionSvg",
561
- fn: i(() => [
562
- d(t.$slots, "optionSvg", {}, void 0, !0)
563
- ]),
564
- key: "4"
565
- } : void 0,
566
- t.$slots.optionTable ? {
567
- name: "optionTable",
568
- fn: i(() => [
569
- d(t.$slots, "optionTable", {}, void 0, !0)
570
- ]),
571
- key: "5"
572
- } : void 0,
573
- t.$slots.optionFullscreen ? {
574
- name: "optionFullscreen",
575
- fn: i(({ toggleFullscreen: o, isFullscreen: c }) => [
576
- d(t.$slots, "optionFullscreen", b(C({ toggleFullscreen: o, isFullscreen: c })), void 0, !0)
577
- ]),
578
- key: "6"
579
- } : void 0,
580
- t.$slots.optionAnnotator ? {
581
- name: "optionAnnotator",
582
- fn: i(({ toggleAnnotator: o, isAnnotator: c }) => [
583
- d(t.$slots, "optionAnnotator", b(C({ toggleAnnotator: o, isAnnotator: c })), void 0, !0)
584
- ]),
585
- key: "7"
586
- } : void 0,
587
- t.$slots.optionAltCopy ? {
588
- name: "optionAltCopy",
589
- fn: i(({ altCopy: o }) => [
590
- d(t.$slots, "optionAltCopy", b(C({ altCopy: o })), void 0, !0)
591
- ]),
592
- key: "8"
593
- } : void 0
594
- ]), 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"])) : y("", !0),
595
- (r(), h("svg", {
596
- ref_key: "svgRef",
597
- ref: Z,
598
- xmlns: a(xt),
599
- viewBox: `0 0 ${s.value.width} ${s.value.height}`,
600
- class: Oe({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
601
- style: D(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
602
- }, [
603
- K(a(We)),
604
- t.$slots["chart-background"] ? (r(), h("foreignObject", {
605
- key: 0,
606
- x: 0,
607
- y: 0,
608
- width: s.value.width,
609
- height: s.value.height,
610
- style: {
611
- pointerEvents: "none"
612
- }
613
- }, [
614
- d(t.$slots, "chart-background", {}, void 0, !0)
615
- ], 8, Xt)) : y("", !0),
616
- n("defs", null, [
617
- n("radialGradient", {
618
- cx: "50%",
619
- cy: "50%",
620
- r: "50%",
621
- fx: "50%",
622
- fy: "50%",
623
- id: `mood_radar_gradient_${$.value}`
624
- }, [
625
- n("stop", {
626
- offset: "0%",
627
- "stop-color": a(P)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
628
- }, null, 8, qt),
629
- n("stop", {
630
- offset: "100%",
631
- "stop-color": a(P)(a(At)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
632
- }, null, 8, Yt)
633
- ], 8, Kt)
634
- ]),
635
- (r(!0), h(_e, null, Ne(le.value.coordinates, (o) => (r(), h("line", {
636
- x1: s.value.width / 2,
637
- y1: s.value.height / 2,
638
- x2: o.x,
639
- y2: o.y,
640
- stroke: e.value.style.chart.layout.grid.stroke,
641
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth
642
- }, null, 8, Jt))), 256)),
643
- n("path", {
644
- d: le.value.path,
645
- fill: "none",
646
- stroke: e.value.style.chart.layout.outerPolygon.stroke,
647
- "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
648
- "stroke-linejoin": "round",
649
- "stroke-linecap": "round"
650
- }, null, 8, Qt),
651
- n("g", {
652
- transform: E("5")
653
- }, [
654
- n("path", {
655
- fill: "none",
656
- stroke: e.value.style.chart.layout.smileys.colors[5],
657
- "stroke-width": "1",
658
- "stroke-linecap": "round",
659
- 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"
660
- }, null, 8, eo),
661
- n("circle", {
662
- class: "vue-ui-mood-radar-trap",
663
- cx: "128",
664
- cy: "25",
665
- r: "20",
666
- fill: g.value === "5" ? a(P)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
667
- onMouseenter: l[0] || (l[0] = (o) => R("5")),
668
- onMouseleave: l[1] || (l[1] = (o) => V("5")),
669
- onClick: l[2] || (l[2] = (o) => I("5"))
670
- }, null, 40, to)
671
- ], 8, Zt),
672
- n("g", {
673
- transform: E("4")
674
- }, [
675
- n("path", {
676
- fill: "none",
677
- stroke: e.value.style.chart.layout.smileys.colors[4],
678
- "stroke-width": "1",
679
- "stroke-linecap": "round",
680
- 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"
681
- }, null, 8, lo),
682
- n("circle", {
683
- class: "vue-ui-mood-radar-trap",
684
- cx: "227",
685
- cy: "95.5",
686
- r: "20",
687
- fill: g.value === "4" ? a(P)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
688
- onMouseenter: l[3] || (l[3] = (o) => R("4")),
689
- onMouseleave: l[4] || (l[4] = (o) => V("4")),
690
- onClick: l[5] || (l[5] = (o) => I("4"))
691
- }, null, 40, ao)
692
- ], 8, oo),
693
- n("g", {
694
- transform: E("3")
695
- }, [
696
- n("path", {
697
- fill: "none",
698
- stroke: e.value.style.chart.layout.smileys.colors[3],
699
- "stroke-width": "1",
700
- "stroke-linecap": "round",
701
- 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"
702
- }, null, 8, so),
703
- n("circle", {
704
- class: "vue-ui-mood-radar-trap",
705
- cx: "190",
706
- cy: "213.5",
707
- r: "20",
708
- fill: g.value === "3" ? a(P)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
709
- onMouseenter: l[6] || (l[6] = (o) => R("3")),
710
- onMouseleave: l[7] || (l[7] = (o) => V("3")),
711
- onClick: l[8] || (l[8] = (o) => I("3"))
712
- }, null, 40, ro)
713
- ], 8, no),
714
- n("g", {
715
- transform: E("2")
716
- }, [
717
- n("path", {
718
- fill: "none",
719
- stroke: e.value.style.chart.layout.smileys.colors[2],
720
- "stroke-width": "1",
721
- "stroke-linecap": "round",
722
- 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"
723
- }, null, 8, io),
724
- n("circle", {
725
- class: "vue-ui-mood-radar-trap",
726
- cx: "65",
727
- cy: "213.5",
728
- r: "20",
729
- fill: g.value === "2" ? a(P)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
730
- onMouseenter: l[9] || (l[9] = (o) => R("2")),
731
- onMouseleave: l[10] || (l[10] = (o) => V("2")),
732
- onClick: l[11] || (l[11] = (o) => I("2"))
733
- }, null, 40, co)
734
- ], 8, uo),
735
- n("g", {
736
- transform: E("1")
737
- }, [
738
- n("path", {
739
- fill: "none",
740
- stroke: e.value.style.chart.layout.smileys.colors[1],
741
- "stroke-width": "1",
742
- "stroke-linecap": "round",
743
- 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"
744
- }, null, 8, yo),
745
- n("circle", {
746
- class: "vue-ui-mood-radar-trap",
747
- cx: "29",
748
- cy: "95.5",
749
- r: "20",
750
- fill: g.value === "1" ? a(P)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
751
- onMouseenter: l[12] || (l[12] = (o) => R("1")),
752
- onMouseleave: l[13] || (l[13] = (o) => V("1")),
753
- onClick: l[14] || (l[14] = (o) => I("1"))
754
- }, null, 40, fo)
755
- ], 8, vo),
756
- n("path", {
757
- d: a(Pt)(ae.value.map((o) => o.plots)),
758
- stroke: e.value.style.chart.layout.dataPolygon.stroke,
759
- "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
760
- "stroke-linecap": "round",
761
- "stroke-linejoin": "round",
762
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${$.value})` : a(P)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
763
- }, null, 8, ho),
764
- (r(!0), h(_e, null, Ne(ae.value.map((o) => o.plots), (o, c) => (r(), h("g", {
765
- class: "vue-ui-mood-radar-trap",
766
- style: D(`opacity:${g.value == o.key ? "1" : "0"}`)
767
- }, [
768
- n("line", {
769
- x1: o.x,
770
- y1: o.y,
771
- x2: s.value.width / 2,
772
- y2: s.value.height / 2,
773
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
774
- }, null, 8, go),
775
- n("circle", {
776
- cx: o.x,
777
- cy: o.y,
778
- fill: e.value.style.chart.layout.smileys.colors[o.key],
779
- r: "3",
780
- stroke: e.value.style.chart.backgroundColor,
781
- "stroke-width": 0.5
782
- }, null, 8, po),
783
- n("circle", {
784
- cx: s.value.width / 2,
785
- cy: s.value.height / 2,
786
- fill: e.value.style.chart.layout.smileys.colors[o.key],
787
- r: "3",
788
- stroke: e.value.style.chart.backgroundColor,
789
- "stroke-width": 0.5
790
- }, null, 8, mo),
791
- n("text", {
792
- x: s.value.width / 2,
793
- y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.13 : s.value.height / 2 * 0.9375,
794
- fill: e.value.style.chart.layout.dataLabel.color,
795
- "font-size": "12",
796
- "text-anchor": "middle",
797
- "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
798
- }, j(a(De)(
799
- e.value.style.chart.layout.dataLabel.formatter,
800
- o.value,
801
- a(q)({
802
- p: e.value.style.chart.layout.dataLabel.prefix,
803
- v: o.value,
804
- s: e.value.style.chart.layout.dataLabel.suffix,
805
- r: e.value.style.chart.layout.dataLabel.roundingValue
806
- }),
807
- { datapoint: o, seriesIndex: c }
808
- )), 9, ko),
809
- n("text", {
810
- x: s.value.width / 2,
811
- y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.273 : s.value.height / 2 * 0.7968,
812
- fill: e.value.style.chart.layout.dataLabel.color,
813
- "font-size": "12",
814
- "text-anchor": "middle"
815
- }, " (" + j(a(q)({
816
- v: o.value / M.value * 100,
817
- s: "%",
818
- r: e.value.style.chart.layout.dataLabel.roundingPercentage
819
- })) + ") ", 9, bo)
820
- ], 4))), 256)),
821
- d(t.$slots, "svg", {
822
- svg: {
823
- ...s.value,
824
- isPrintingImg: a(te) | a(oe) | z.value,
825
- isPrintingSvg: G.value
826
- }
827
- }, void 0, !0)
828
- ], 14, Ht)),
829
- t.$slots.watermark ? (r(), h("div", Co, [
830
- d(t.$slots, "watermark", b(C({ isPrinting: a(te) || a(oe) || z.value || G.value })), void 0, !0)
831
- ])) : y("", !0),
832
- n("div", {
833
- id: `legend-bottom-${$.value}`
834
- }, null, 8, wo),
835
- fe.value ? (r(), k(mt, {
836
- key: 5,
837
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
838
- }, [
839
- n("div", {
840
- ref_key: "chartLegend",
841
- ref: ve
842
- }, [
843
- e.value.style.chart.legend.show ? (r(), k(jt, {
844
- legendSet: Ce.value,
845
- config: at.value,
846
- key: `legend_${de.value}`,
847
- isCursorPointer: S.value,
848
- style: { display: "flex", "row-gap": "6px" }
849
- }, {
850
- item: i(({ legend: o, index: c }) => [
851
- n("div", {
852
- onClick: () => nt(o.key),
853
- style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
854
- }, [
855
- o.key == 1 ? (r(), k(a(N), {
856
- key: 0,
857
- strokeWidth: 1,
858
- name: "moodSad",
859
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
860
- }, null, 8, ["stroke"])) : y("", !0),
861
- o.key == 2 ? (r(), k(a(N), {
862
- key: 1,
863
- strokeWidth: 1,
864
- name: "moodFlat",
865
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
866
- }, null, 8, ["stroke"])) : y("", !0),
867
- o.key == 3 ? (r(), k(a(N), {
868
- key: 2,
869
- strokeWidth: 1,
870
- name: "moodNeutral",
871
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
872
- }, null, 8, ["stroke"])) : y("", !0),
873
- o.key == 4 ? (r(), k(a(N), {
874
- key: 3,
875
- strokeWidth: 1,
876
- name: "smiley",
877
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
878
- }, null, 8, ["stroke"])) : y("", !0),
879
- o.key == 5 ? (r(), k(a(N), {
880
- key: 4,
881
- strokeWidth: 1,
882
- name: "moodHappy",
883
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
884
- }, null, 8, ["stroke"])) : y("", !0),
885
- a(J) ? y("", !0) : (r(), h("span", {
886
- key: 5,
887
- style: D({ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal" })
888
- }, j(o.display), 5))
889
- ], 8, $o)
890
- ]),
891
- _: 1
892
- }, 8, ["legendSet", "config", "isCursorPointer"])) : y("", !0),
893
- d(t.$slots, "legend", { legend: f.value }, void 0, !0)
894
- ], 512)
895
- ], 8, ["to"])) : y("", !0),
896
- t.$slots.source ? (r(), h("div", {
897
- key: 6,
898
- ref_key: "source",
899
- ref: ye,
900
- dir: "auto"
901
- }, [
902
- d(t.$slots, "source", {}, void 0, !0)
903
- ], 512)) : y("", !0),
904
- he.value && e.value.userOptions.buttons.table ? (r(), k(kt(U.value.component), bt({ key: 7 }, U.value.props, {
905
- ref_key: "tableUnit",
906
- ref: B,
907
- onClose: xe
908
- }), Me({
909
- content: i(() => [
910
- K(a(Ve), {
911
- colNames: H.value.colNames,
912
- head: H.value.head,
913
- body: H.value.body,
914
- config: H.value.config,
915
- title: e.value.table.useDialog ? "" : U.value.title,
916
- withCloseButton: !e.value.table.useDialog,
917
- isCursorPointer: S.value,
918
- onClose: xe
919
- }, {
920
- th: i(({ th: o }) => [
921
- n("div", {
922
- innerHTML: o,
923
- style: { display: "flex", "align-items": "center" }
924
- }, null, 8, xo)
925
- ]),
926
- td: i(({ td: o }) => [
927
- Se(j(o.name || o), 1)
928
- ]),
929
- _: 1
930
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
931
- ]),
932
- _: 2
933
- }, [
934
- e.value.table.useDialog ? {
935
- name: "title",
936
- fn: i(() => [
937
- Se(j(U.value.title), 1)
938
- ]),
939
- key: "0"
940
- } : void 0,
941
- e.value.table.useDialog ? {
942
- name: "actions",
943
- fn: i(() => [
944
- n("button", {
945
- tabindex: "0",
946
- class: "vue-ui-user-options-button",
947
- onClick: l[15] || (l[15] = (o) => ne(e.value.userOptions.callbacks.csv)),
948
- style: D({ cursor: S.value ? "pointer" : "default" })
949
- }, [
950
- K(a(N), {
951
- name: "fileCsv",
952
- stroke: U.value.props.color
953
- }, null, 8, ["stroke"])
954
- ], 4)
955
- ]),
956
- key: "1"
957
- } : void 0
958
- ]), 1040)) : y("", !0),
959
- d(t.$slots, "skeleton", {}, () => [
960
- a(J) ? (r(), k(It, { key: 0 })) : y("", !0)
961
- ], !0)
962
- ], 46, zt));
963
- }
964
- }, jo = /* @__PURE__ */ Wt(Ao, [["__scopeId", "data-v-22f6b271"]]);
965
- export {
966
- jo as default
967
- };