vue-data-ui 3.5.2 → 3.7.0

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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -1,903 +0,0 @@
1
- import { defineAsyncComponent as O, ref as u, computed as v, toRefs as nt, onMounted as st, watch as Ce, createElementBlock as f, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as we, createBlock as k, createCommentVNode as y, createElementVNode as n, withCtx as i, renderSlot as c, normalizeProps as C, guardReactiveProps as w, createVNode as G, createSlots as xe, Fragment as $e, renderList as Ae, toDisplayString as U, Teleport as rt, resolveDynamicComponent as ut, mergeProps as it, createTextVNode as _e, nextTick as Te } from "vue";
2
- import { c as dt, t as ct, o as vt, f as Me, k as yt, a as Pe, d as H, X as ht, s as A, i as ft, a8 as gt, P as pt, Q as mt } from "./lib-C_mNZmhD.js";
3
- import { t as kt, u as bt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ct, a as Oe } from "./useNestedProp-CReNavA0.js";
5
- import { u as wt, B as xt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as $t } from "./usePrinter-DTzqpYKF.js";
7
- import { u as At } from "./useSvgExport-DrjCWun4.js";
8
- import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
10
- import Mt from "./img-BecE5qXd.js";
11
- import Pt from "./Title-BzH_LEA3.js";
12
- import { t as Ot } from "./themes-AUNCOb2G.js";
13
- import Nt from "./Legend-G6GMcdAc.js";
14
- import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["id"], Et = ["stop-color"], Rt = ["stop-color"], Vt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Wt = ["transform"], jt = ["stroke"], zt = ["fill"], Gt = ["transform"], Ht = ["stroke"], Xt = ["fill"], Kt = ["transform"], qt = ["stroke"], Qt = ["fill"], Yt = ["transform"], Jt = ["stroke"], Zt = ["fill"], eo = ["transform"], to = ["stroke"], oo = ["fill"], lo = ["d", "stroke", "stroke-width", "fill"], ao = ["x1", "y1", "x2", "y2", "stroke"], no = ["cx", "cy", "fill", "stroke"], so = ["cx", "cy", "fill", "stroke"], ro = ["x", "y", "fill", "font-weight"], uo = ["x", "y", "fill"], io = {
16
- key: 4,
17
- class: "vue-data-ui-watermark"
18
- }, co = ["id"], vo = ["onClick"], yo = ["innerHTML"], ho = {
19
- __name: "vue-ui-mood-radar",
20
- props: {
21
- config: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- },
27
- dataset: {
28
- type: Object,
29
- default() {
30
- return {};
31
- }
32
- }
33
- },
34
- setup(Ne, { expose: Se }) {
35
- const N = O(() => import("./BaseIcon-BmMbm4d0.js")), Le = O(() => import("./vue-ui-accordion-BmFTVF1a.js")), Ie = O(() => import("./DataTable-BT7VF2ua.js")), De = O(() => import("./PenAndPaper-SZQIAgkg.js")), Fe = O(() => import("./UserOptions-CGnQt6Fd.js")), Be = O(() => import("./PackageVersion-Y7t79Jtq.js")), Ee = O(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_mood_radar: Re } = Ct(), _ = Ne, b = u(dt()), x = u(null), g = u(null), oe = u(null), Ve = u(0), Ue = u(0), le = u(0), ae = u(null), ne = u(null), I = u(null), W = u(null), se = u(null), re = u(!1), D = u(null), X = u(null), ue = v(() => !!_.dataset && Object.keys(_.dataset).length), e = u(Y()), { loading: K, FINAL_DATASET: T } = wt({
36
- ...nt(_),
37
- FINAL_CONFIG: e,
38
- prepareConfig: Y,
39
- callback: () => {
40
- Promise.resolve().then(async () => {
41
- await Te(), M.value.showTable = e.value.table.show;
42
- });
43
- },
44
- skeletonDataset: {
45
- 1: 1,
46
- 2: 1,
47
- 3: 1,
48
- 4: 1,
49
- 5: 1
50
- },
51
- skeletonConfig: ct({
52
- defaultConfig: e.value,
53
- userConfig: {
54
- userOptions: { show: !1 },
55
- table: { show: !1 },
56
- style: {
57
- chart: {
58
- backgroundColor: "#99999930",
59
- layout: {
60
- grid: {
61
- stroke: "#6A6A6A"
62
- },
63
- outerPolygon: {
64
- stroke: "#6A6A6A"
65
- },
66
- dataPolygon: {
67
- color: "#6A6A6A",
68
- opacity: 30,
69
- stroke: "#6A6A6A"
70
- },
71
- smileys: {
72
- colors: {
73
- 1: "#DBDBDB",
74
- 2: "#C4C4C4",
75
- 3: "#ADADAD",
76
- 4: "#969696",
77
- 5: "#808080"
78
- }
79
- },
80
- dataLabel: {
81
- color: "transparent"
82
- }
83
- },
84
- legend: {
85
- backgroundColor: "transparent"
86
- }
87
- }
88
- }
89
- }
90
- })
91
- });
92
- st(() => {
93
- re.value = !0, ie();
94
- });
95
- const We = v(() => e.value.debug);
96
- function ie() {
97
- if (vt(_.dataset) && Me({
98
- componentName: "VueUiMoodRadar",
99
- type: "dataset",
100
- debug: We.value
101
- }), e.value.responsive) {
102
- const t = kt(() => {
103
- const { width: l, height: o } = bt({
104
- chart: x.value,
105
- title: e.value.style.chart.title.text ? ae.value : null,
106
- legend: e.value.style.chart.legend.show ? ne.value : null,
107
- noTitle: oe.value,
108
- source: se.value
109
- });
110
- requestAnimationFrame(() => {
111
- s.value.width = l, s.value.height = o - 12;
112
- });
113
- });
114
- I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(t), W.value = x.value.parentNode, I.value.observe(W.value);
115
- }
116
- }
117
- const { userOptionsVisible: q, setUserOptionsVisibility: de, keepUserOptionState: ce } = _t({ config: e.value }), { svgRef: Q } = Tt({ config: e.value.style.chart.title });
118
- function Y() {
119
- const t = Oe({
120
- userConfig: _.config,
121
- defaultConfig: Re
122
- });
123
- return t.theme ? {
124
- ...Oe({
125
- userConfig: Ot.vue_ui_mood_radar[t.theme] || _.config,
126
- defaultConfig: t
127
- })
128
- } : t;
129
- }
130
- Ce(() => _.config, (t) => {
131
- e.value = Y(), q.value = !e.value.userOptions.showOnChartHover, ie(), Ve.value += 1, Ue.value += 1, le.value += 1, M.value.showTable = e.value.table.show;
132
- }, { deep: !0 });
133
- const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage: fe } = $t({
134
- elementId: b.value,
135
- fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
136
- options: e.value.userOptions.print
137
- }), je = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = u({
138
- showTable: e.value.table.show
139
- }), s = u({
140
- height: 256,
141
- width: 256
142
- }), ze = {
143
- 5: { x: 128, y: 35 },
144
- 4: { x: 218, y: 98.5 },
145
- 3: { x: 185, y: 204 },
146
- 2: { x: 70, y: 204 },
147
- 1: { x: 38.5, y: 98.5 }
148
- }, Ge = v(() => {
149
- const t = {};
150
- return Z.value.forEach((l) => {
151
- t[l.key] = { x: l.x, y: l.y };
152
- }), t;
153
- });
154
- function F(t) {
155
- const l = ze[t], o = Ge.value[t] || l;
156
- return `translate(${o.x - l.x}, ${o.y - l.y})`;
157
- }
158
- const J = v(() => yt({
159
- plot: { x: s.value.width / 2, y: s.value.height / 2 },
160
- radius: Math.min(s.value.height, s.value.width) * 0.35,
161
- sides: 5,
162
- rotation: 11
163
- }));
164
- function He({ centerX: t, centerY: l, apexX: o, apexY: d, proportion: p, key: m, value: at }) {
165
- return {
166
- x: t + (o - t) * p,
167
- y: l + (d - l) * p,
168
- key: m,
169
- value: at
170
- };
171
- }
172
- const Xe = v(() => Math.max(...Object.values(T.value).map((t) => isNaN(t) ? 0 : t))), P = v(() => Object.values(T.value).reduce((t, l) => (isNaN(t) ? 0 : t) + (isNaN(l) ? 0 : l), 0)), h = v(() => Object.keys(T.value).map((t, l) => {
173
- const o = typeof T.value[t] != "number" || isNaN(T.value[t]) ? 0 : T.value[t];
174
- return {
175
- index: l,
176
- key: t,
177
- value: o,
178
- proportion: o / P.value,
179
- color: e.value.style.chart.layout.smileys.colors[t]
180
- };
181
- }).sort((t, l) => l.key - t.key)), ge = v(() => h.value.map((t, l) => ({
182
- ...t,
183
- display: `${Pe(
184
- e.value.style.chart.layout.dataLabel.formatter,
185
- t.value,
186
- H({
187
- p: e.value.style.chart.layout.dataLabel.prefix,
188
- v: t.value,
189
- s: e.value.style.chart.layout.dataLabel.suffix,
190
- r: e.value.style.chart.layout.dataLabel.roundingValue
191
- })
192
- )}${K.value ? "" : ` (${H({
193
- v: t.proportion * 100,
194
- s: "%",
195
- r: e.value.style.chart.legend.roundingPercentage
196
- })})`}`
197
- }))), Z = v(() => (["1", "2", "3", "4", "5"].forEach((t) => {
198
- [null, void 0].includes(T.value[t]) && Me({
199
- componentName: "VueUiMoodRadar",
200
- type: "datasetAttribute",
201
- property: t
202
- });
203
- }), J.value.coordinates.map((t, l) => {
204
- const o = He({
205
- centerX: s.value.width / 2,
206
- centerY: s.value.height / 2,
207
- apexX: t.x,
208
- apexY: t.y,
209
- proportion: h.value[l].value / Xe.value,
210
- key: h.value[l].key,
211
- value: h.value[l].value
212
- });
213
- return {
214
- ...t,
215
- plots: o,
216
- key: h.value[l].key
217
- };
218
- }))), Ke = v(() => ({
219
- cy: "mood-radar-legend",
220
- backgroundColor: e.value.style.chart.legend.backgroundColor,
221
- color: e.value.style.chart.legend.color,
222
- fontSize: e.value.style.chart.legend.fontSize,
223
- paddingBottom: 12,
224
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
225
- }));
226
- function qe(t) {
227
- t === g.value ? g.value = null : (g.value = t, S(t));
228
- }
229
- function B(t) {
230
- g.value = t;
231
- const l = h.value.find((o) => o.key === t);
232
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
233
- }
234
- function E(t) {
235
- g.value = null;
236
- const l = h.value.find((o) => o.key === t);
237
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
238
- }
239
- function S(t) {
240
- const l = h.value.find((o) => o.key === t);
241
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
242
- }
243
- const $ = v(() => {
244
- const t = h.value.map((o) => ({
245
- name: o.key,
246
- color: o.color
247
- })), l = h.value.map((o) => isNaN(o.value) ? 0 : o.value);
248
- return { head: t, body: l };
249
- });
250
- function ee(t = null) {
251
- Te(() => {
252
- const l = $.value.head.map((p, m) => [[
253
- p.name
254
- ], [$.value.body[m]], [isNaN($.value.body[m] / P.value) ? "-" : $.value.body[m] / P.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), d = pt(o);
255
- t ? t(d) : mt({ csvContent: d, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
256
- });
257
- }
258
- const j = v(() => {
259
- const t = [
260
- ' <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>',
261
- Number(P.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
262
- "100%"
263
- ], l = $.value.head.map((p, m) => [
264
- {
265
- color: p.color,
266
- name: p.name
267
- },
268
- $.value.body[m].toFixed(e.value.table.td.roundingValue),
269
- isNaN($.value.body[m] / P.value) ? "-" : ($.value.body[m] / P.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
270
- ]), o = {
271
- th: {
272
- backgroundColor: e.value.table.th.backgroundColor,
273
- color: e.value.table.th.color,
274
- outline: e.value.table.th.outline
275
- },
276
- td: {
277
- backgroundColor: e.value.table.td.backgroundColor,
278
- color: e.value.table.td.color,
279
- outline: e.value.table.td.outline
280
- },
281
- breakpoint: e.value.table.responsiveBreakpoint
282
- }, d = [
283
- e.value.table.columnNames.series,
284
- e.value.table.columnNames.value,
285
- e.value.table.columnNames.percentage
286
- ];
287
- return {
288
- head: t,
289
- body: l,
290
- config: o,
291
- colNames: d
292
- };
293
- });
294
- function Qe() {
295
- return h.value;
296
- }
297
- function pe() {
298
- M.value.showTable = !M.value.showTable;
299
- }
300
- const L = u(!1);
301
- function me(t) {
302
- L.value = t;
303
- }
304
- const z = u(!1);
305
- function te() {
306
- z.value = !z.value;
307
- }
308
- async function Ye({ scale: t = 2 } = {}) {
309
- if (!x.value) return;
310
- const { width: l, height: o } = x.value.getBoundingClientRect(), d = l / o, { imageUri: p, base64: m } = await Mt({ domElement: x.value, base64: !0, img: !0, scale: t });
311
- return {
312
- imageUri: p,
313
- base64: m,
314
- title: e.value.style.chart.title.text,
315
- width: l,
316
- height: o,
317
- aspectRatio: d
318
- };
319
- }
320
- const R = v(() => {
321
- const t = e.value.table.useDialog && !e.value.table.show, l = M.value.showTable;
322
- return {
323
- component: t ? Ee : Le,
324
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
325
- props: t ? {
326
- backgroundColor: e.value.table.th.backgroundColor,
327
- color: e.value.table.th.color,
328
- headerColor: e.value.table.th.color,
329
- headerBg: e.value.table.th.backgroundColor,
330
- isFullscreen: L.value,
331
- fullscreenParent: x.value,
332
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
333
- } : {
334
- hideDetails: !0,
335
- config: {
336
- open: l,
337
- maxHeight: 1e4,
338
- body: {
339
- backgroundColor: e.value.style.chart.backgroundColor,
340
- color: e.value.style.chart.color
341
- },
342
- head: {
343
- backgroundColor: e.value.style.chart.backgroundColor,
344
- color: e.value.style.chart.color
345
- }
346
- }
347
- }
348
- };
349
- });
350
- Ce(() => M.value.showTable, (t) => {
351
- e.value.table.show || (t && e.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
352
- });
353
- function ke() {
354
- M.value.showTable = !1, X.value && X.value.setTableIconState(!1);
355
- }
356
- const Je = v(() => ge.value.map((t) => ({
357
- ...t,
358
- name: t.display,
359
- shape: "circle"
360
- }))), Ze = v(() => e.value.style.chart.backgroundColor), et = v(() => e.value.style.chart.legend), tt = v(() => e.value.style.chart.title), { exportSvg: ot, getSvg: lt } = At({
361
- svg: Q,
362
- title: tt,
363
- legend: et,
364
- legendItems: Je,
365
- backgroundColor: Ze
366
- });
367
- async function be({ isCb: t }) {
368
- if (t) {
369
- const { blob: l, url: o, text: d, dataUrl: p } = await lt();
370
- e.value.userOptions.callbacks.svg({ blob: l, url: o, text: d, dataUrl: p });
371
- } else
372
- ot();
373
- }
374
- return Se({
375
- getData: Qe,
376
- getImage: Ye,
377
- generatePdf: he,
378
- generateCsv: ee,
379
- generateImage: fe,
380
- generateSvg: be,
381
- toggleTable: pe,
382
- toggleAnnotator: te,
383
- toggleFullscreen: me
384
- }), (t, l) => (r(), f("div", {
385
- class: we(`vue-data-ui-component vue-ui-mood-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
386
- ref_key: "moodRadarChart",
387
- ref: x,
388
- id: `${b.value}`,
389
- style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
390
- onMouseenter: l[16] || (l[16] = () => a(de)(!0)),
391
- onMouseleave: l[17] || (l[17] = () => a(de)(!1))
392
- }, [
393
- e.value.userOptions.buttons.annotator ? (r(), k(a(De), {
394
- key: 0,
395
- svgRef: a(Q),
396
- backgroundColor: e.value.style.chart.backgroundColor,
397
- color: e.value.style.chart.color,
398
- active: z.value,
399
- onClose: te
400
- }, {
401
- "annotator-action-close": i(() => [
402
- c(t.$slots, "annotator-action-close", {}, void 0, !0)
403
- ]),
404
- "annotator-action-color": i(({ color: o }) => [
405
- c(t.$slots, "annotator-action-color", C(w({ color: o })), void 0, !0)
406
- ]),
407
- "annotator-action-draw": i(({ mode: o }) => [
408
- c(t.$slots, "annotator-action-draw", C(w({ mode: o })), void 0, !0)
409
- ]),
410
- "annotator-action-undo": i(({ disabled: o }) => [
411
- c(t.$slots, "annotator-action-undo", C(w({ disabled: o })), void 0, !0)
412
- ]),
413
- "annotator-action-redo": i(({ disabled: o }) => [
414
- c(t.$slots, "annotator-action-redo", C(w({ disabled: o })), void 0, !0)
415
- ]),
416
- "annotator-action-delete": i(({ disabled: o }) => [
417
- c(t.$slots, "annotator-action-delete", C(w({ disabled: o })), void 0, !0)
418
- ]),
419
- _: 3
420
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
421
- je.value ? (r(), f("div", {
422
- key: 1,
423
- ref_key: "noTitle",
424
- ref: oe,
425
- class: "vue-data-ui-no-title-space",
426
- style: "height:36px; width: 100%;background:transparent"
427
- }, null, 512)) : y("", !0),
428
- e.value.style.chart.title.text ? (r(), f("div", {
429
- key: 2,
430
- ref_key: "chartTitle",
431
- ref: ae,
432
- style: "width:100%;background:transparent"
433
- }, [
434
- G(Pt, {
435
- config: {
436
- title: {
437
- cy: "mood-radar-title",
438
- ...e.value.style.chart.title
439
- },
440
- subtitle: {
441
- cy: "mood-radar-subtitle",
442
- ...e.value.style.chart.title.subtitle
443
- }
444
- }
445
- }, null, 8, ["config"])
446
- ], 512)) : y("", !0),
447
- n("div", {
448
- id: `legend-top-${b.value}`
449
- }, null, 8, It),
450
- e.value.userOptions.show && ue.value && (a(ce) || a(q)) ? (r(), k(a(Fe), {
451
- key: 3,
452
- ref_key: "userOptionsRef",
453
- ref: X,
454
- backgroundColor: e.value.style.chart.backgroundColor,
455
- color: e.value.style.chart.color,
456
- isPrinting: a(ve),
457
- isImaging: a(ye),
458
- uid: b.value,
459
- hasPdf: e.value.userOptions.buttons.pdf,
460
- hasXls: e.value.userOptions.buttons.csv,
461
- hasImg: e.value.userOptions.buttons.img,
462
- hasSvg: e.value.userOptions.buttons.svg,
463
- hasTable: e.value.userOptions.buttons.table,
464
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
465
- isFullscreen: L.value,
466
- titles: { ...e.value.userOptions.buttonTitles },
467
- chartElement: x.value,
468
- position: e.value.userOptions.position,
469
- hasAnnotator: e.value.userOptions.buttons.annotator,
470
- isAnnotation: z.value,
471
- callbacks: e.value.userOptions.callbacks,
472
- printScale: e.value.userOptions.print.scale,
473
- tableDialog: e.value.table.useDialog,
474
- onToggleFullscreen: me,
475
- onGeneratePdf: a(he),
476
- onGenerateCsv: ee,
477
- onGenerateImage: a(fe),
478
- onGenerateSvg: be,
479
- onToggleTable: pe,
480
- onToggleAnnotator: te,
481
- style: V({
482
- visibility: a(ce) ? a(q) ? "visible" : "hidden" : "visible"
483
- })
484
- }, xe({ _: 2 }, [
485
- t.$slots.menuIcon ? {
486
- name: "menuIcon",
487
- fn: i(({ isOpen: o, color: d }) => [
488
- c(t.$slots, "menuIcon", C(w({ isOpen: o, color: d })), void 0, !0)
489
- ]),
490
- key: "0"
491
- } : void 0,
492
- t.$slots.optionPdf ? {
493
- name: "optionPdf",
494
- fn: i(() => [
495
- c(t.$slots, "optionPdf", {}, void 0, !0)
496
- ]),
497
- key: "1"
498
- } : void 0,
499
- t.$slots.optionCsv ? {
500
- name: "optionCsv",
501
- fn: i(() => [
502
- c(t.$slots, "optionCsv", {}, void 0, !0)
503
- ]),
504
- key: "2"
505
- } : void 0,
506
- t.$slots.optionImg ? {
507
- name: "optionImg",
508
- fn: i(() => [
509
- c(t.$slots, "optionImg", {}, void 0, !0)
510
- ]),
511
- key: "3"
512
- } : void 0,
513
- t.$slots.optionSvg ? {
514
- name: "optionSvg",
515
- fn: i(() => [
516
- c(t.$slots, "optionSvg", {}, void 0, !0)
517
- ]),
518
- key: "4"
519
- } : void 0,
520
- t.$slots.optionTable ? {
521
- name: "optionTable",
522
- fn: i(() => [
523
- c(t.$slots, "optionTable", {}, void 0, !0)
524
- ]),
525
- key: "5"
526
- } : void 0,
527
- t.$slots.optionFullscreen ? {
528
- name: "optionFullscreen",
529
- fn: i(({ toggleFullscreen: o, isFullscreen: d }) => [
530
- c(t.$slots, "optionFullscreen", C(w({ toggleFullscreen: o, isFullscreen: d })), void 0, !0)
531
- ]),
532
- key: "6"
533
- } : void 0,
534
- t.$slots.optionAnnotator ? {
535
- name: "optionAnnotator",
536
- fn: i(({ toggleAnnotator: o, isAnnotator: d }) => [
537
- c(t.$slots, "optionAnnotator", C(w({ toggleAnnotator: o, isAnnotator: d })), void 0, !0)
538
- ]),
539
- key: "7"
540
- } : void 0
541
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
542
- (r(), f("svg", {
543
- ref_key: "svgRef",
544
- ref: Q,
545
- xmlns: a(ht),
546
- viewBox: `0 0 ${s.value.width} ${s.value.height}`,
547
- class: we({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
548
- style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
549
- }, [
550
- G(a(Be)),
551
- t.$slots["chart-background"] ? (r(), f("foreignObject", {
552
- key: 0,
553
- x: 0,
554
- y: 0,
555
- width: s.value.width,
556
- height: s.value.height,
557
- style: {
558
- pointerEvents: "none"
559
- }
560
- }, [
561
- c(t.$slots, "chart-background", {}, void 0, !0)
562
- ], 8, Ft)) : y("", !0),
563
- n("defs", null, [
564
- n("radialGradient", {
565
- cx: "50%",
566
- cy: "50%",
567
- r: "50%",
568
- fx: "50%",
569
- fy: "50%",
570
- id: `mood_radar_gradient_${b.value}`
571
- }, [
572
- n("stop", {
573
- offset: "0%",
574
- "stop-color": a(A)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
575
- }, null, 8, Et),
576
- n("stop", {
577
- offset: "100%",
578
- "stop-color": a(A)(a(ft)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
579
- }, null, 8, Rt)
580
- ], 8, Bt)
581
- ]),
582
- (r(!0), f($e, null, Ae(J.value.coordinates, (o) => (r(), f("line", {
583
- x1: s.value.width / 2,
584
- y1: s.value.height / 2,
585
- x2: o.x,
586
- y2: o.y,
587
- stroke: e.value.style.chart.layout.grid.stroke,
588
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth
589
- }, null, 8, Vt))), 256)),
590
- n("path", {
591
- d: J.value.path,
592
- fill: "none",
593
- stroke: e.value.style.chart.layout.outerPolygon.stroke,
594
- "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
595
- "stroke-linejoin": "round",
596
- "stroke-linecap": "round"
597
- }, null, 8, Ut),
598
- n("g", {
599
- transform: F("5")
600
- }, [
601
- n("path", {
602
- fill: "none",
603
- stroke: e.value.style.chart.layout.smileys.colors[5],
604
- "stroke-width": "1",
605
- "stroke-linecap": "round",
606
- 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"
607
- }, null, 8, jt),
608
- n("circle", {
609
- class: "vue-ui-mood-radar-trap",
610
- cx: "128",
611
- cy: "25",
612
- r: "20",
613
- fill: g.value === "5" ? a(A)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
614
- onMouseenter: l[0] || (l[0] = (o) => B("5")),
615
- onMouseleave: l[1] || (l[1] = (o) => E("5")),
616
- onClick: l[2] || (l[2] = (o) => S("5"))
617
- }, null, 40, zt)
618
- ], 8, Wt),
619
- n("g", {
620
- transform: F("4")
621
- }, [
622
- n("path", {
623
- fill: "none",
624
- stroke: e.value.style.chart.layout.smileys.colors[4],
625
- "stroke-width": "1",
626
- "stroke-linecap": "round",
627
- 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"
628
- }, null, 8, Ht),
629
- n("circle", {
630
- class: "vue-ui-mood-radar-trap",
631
- cx: "227",
632
- cy: "95.5",
633
- r: "20",
634
- fill: g.value === "4" ? a(A)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
635
- onMouseenter: l[3] || (l[3] = (o) => B("4")),
636
- onMouseleave: l[4] || (l[4] = (o) => E("4")),
637
- onClick: l[5] || (l[5] = (o) => S("4"))
638
- }, null, 40, Xt)
639
- ], 8, Gt),
640
- n("g", {
641
- transform: F("3")
642
- }, [
643
- n("path", {
644
- fill: "none",
645
- stroke: e.value.style.chart.layout.smileys.colors[3],
646
- "stroke-width": "1",
647
- "stroke-linecap": "round",
648
- 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"
649
- }, null, 8, qt),
650
- n("circle", {
651
- class: "vue-ui-mood-radar-trap",
652
- cx: "190",
653
- cy: "213.5",
654
- r: "20",
655
- fill: g.value === "3" ? a(A)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
656
- onMouseenter: l[6] || (l[6] = (o) => B("3")),
657
- onMouseleave: l[7] || (l[7] = (o) => E("3")),
658
- onClick: l[8] || (l[8] = (o) => S("3"))
659
- }, null, 40, Qt)
660
- ], 8, Kt),
661
- n("g", {
662
- transform: F("2")
663
- }, [
664
- n("path", {
665
- fill: "none",
666
- stroke: e.value.style.chart.layout.smileys.colors[2],
667
- "stroke-width": "1",
668
- "stroke-linecap": "round",
669
- 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"
670
- }, null, 8, Jt),
671
- n("circle", {
672
- class: "vue-ui-mood-radar-trap",
673
- cx: "65",
674
- cy: "213.5",
675
- r: "20",
676
- fill: g.value === "2" ? a(A)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
677
- onMouseenter: l[9] || (l[9] = (o) => B("2")),
678
- onMouseleave: l[10] || (l[10] = (o) => E("2")),
679
- onClick: l[11] || (l[11] = (o) => S("2"))
680
- }, null, 40, Zt)
681
- ], 8, Yt),
682
- n("g", {
683
- transform: F("1")
684
- }, [
685
- n("path", {
686
- fill: "none",
687
- stroke: e.value.style.chart.layout.smileys.colors[1],
688
- "stroke-width": "1",
689
- "stroke-linecap": "round",
690
- 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"
691
- }, null, 8, to),
692
- n("circle", {
693
- class: "vue-ui-mood-radar-trap",
694
- cx: "29",
695
- cy: "95.5",
696
- r: "20",
697
- fill: g.value === "1" ? a(A)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
698
- onMouseenter: l[12] || (l[12] = (o) => B("1")),
699
- onMouseleave: l[13] || (l[13] = (o) => E("1")),
700
- onClick: l[14] || (l[14] = (o) => S("1"))
701
- }, null, 40, oo)
702
- ], 8, eo),
703
- n("path", {
704
- d: a(gt)(Z.value.map((o) => o.plots)),
705
- stroke: e.value.style.chart.layout.dataPolygon.stroke,
706
- "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
707
- "stroke-linecap": "round",
708
- "stroke-linejoin": "round",
709
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${b.value})` : a(A)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
710
- }, null, 8, lo),
711
- (r(!0), f($e, null, Ae(Z.value.map((o) => o.plots), (o, d) => (r(), f("g", {
712
- class: "vue-ui-mood-radar-trap",
713
- style: V(`opacity:${g.value == o.key ? "1" : "0"}`)
714
- }, [
715
- n("line", {
716
- x1: o.x,
717
- y1: o.y,
718
- x2: s.value.width / 2,
719
- y2: s.value.height / 2,
720
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
721
- }, null, 8, ao),
722
- n("circle", {
723
- cx: o.x,
724
- cy: o.y,
725
- fill: e.value.style.chart.layout.smileys.colors[o.key],
726
- r: "3",
727
- stroke: e.value.style.chart.backgroundColor,
728
- "stroke-width": 0.5
729
- }, null, 8, no),
730
- n("circle", {
731
- cx: s.value.width / 2,
732
- cy: s.value.height / 2,
733
- fill: e.value.style.chart.layout.smileys.colors[o.key],
734
- r: "3",
735
- stroke: e.value.style.chart.backgroundColor,
736
- "stroke-width": 0.5
737
- }, null, 8, so),
738
- n("text", {
739
- x: s.value.width / 2,
740
- y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.13 : s.value.height / 2 * 0.9375,
741
- fill: e.value.style.chart.layout.dataLabel.color,
742
- "font-size": "12",
743
- "text-anchor": "middle",
744
- "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
745
- }, U(a(Pe)(
746
- e.value.style.chart.layout.dataLabel.formatter,
747
- o.value,
748
- a(H)({
749
- p: e.value.style.chart.layout.dataLabel.prefix,
750
- v: o.value,
751
- s: e.value.style.chart.layout.dataLabel.suffix,
752
- r: e.value.style.chart.layout.dataLabel.roundingValue
753
- }),
754
- { datapoint: o, seriesIndex: d }
755
- )), 9, ro),
756
- n("text", {
757
- x: s.value.width / 2,
758
- y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.273 : s.value.height / 2 * 0.7968,
759
- fill: e.value.style.chart.layout.dataLabel.color,
760
- "font-size": "12",
761
- "text-anchor": "middle"
762
- }, " (" + U(a(H)({
763
- v: o.value / P.value * 100,
764
- s: "%",
765
- r: e.value.style.chart.layout.dataLabel.roundingPercentage
766
- })) + ") ", 9, uo)
767
- ], 4))), 256)),
768
- c(t.$slots, "svg", { svg: s.value }, void 0, !0)
769
- ], 14, Dt)),
770
- t.$slots.watermark ? (r(), f("div", io, [
771
- c(t.$slots, "watermark", C(w({ isPrinting: a(ve) || a(ye) })), void 0, !0)
772
- ])) : y("", !0),
773
- n("div", {
774
- id: `legend-bottom-${b.value}`
775
- }, null, 8, co),
776
- re.value ? (r(), k(rt, {
777
- key: 5,
778
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
779
- }, [
780
- n("div", {
781
- ref_key: "chartLegend",
782
- ref: ne
783
- }, [
784
- e.value.style.chart.legend.show ? (r(), k(Nt, {
785
- legendSet: ge.value,
786
- config: Ke.value,
787
- key: `legend_${le.value}`,
788
- style: { display: "flex", "row-gap": "6px" }
789
- }, {
790
- item: i(({ legend: o, index: d }) => [
791
- n("div", {
792
- onClick: () => qe(o.key),
793
- style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
794
- }, [
795
- o.key == 1 ? (r(), k(a(N), {
796
- key: 0,
797
- strokeWidth: 1,
798
- name: "moodSad",
799
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
800
- }, null, 8, ["stroke"])) : y("", !0),
801
- o.key == 2 ? (r(), k(a(N), {
802
- key: 1,
803
- strokeWidth: 1,
804
- name: "moodFlat",
805
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
806
- }, null, 8, ["stroke"])) : y("", !0),
807
- o.key == 3 ? (r(), k(a(N), {
808
- key: 2,
809
- strokeWidth: 1,
810
- name: "moodNeutral",
811
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
812
- }, null, 8, ["stroke"])) : y("", !0),
813
- o.key == 4 ? (r(), k(a(N), {
814
- key: 3,
815
- strokeWidth: 1,
816
- name: "smiley",
817
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
818
- }, null, 8, ["stroke"])) : y("", !0),
819
- o.key == 5 ? (r(), k(a(N), {
820
- key: 4,
821
- strokeWidth: 1,
822
- name: "moodHappy",
823
- stroke: e.value.style.chart.layout.smileys.colors[o.key]
824
- }, null, 8, ["stroke"])) : y("", !0),
825
- a(K) ? y("", !0) : (r(), f("span", {
826
- key: 5,
827
- style: V({ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal" })
828
- }, U(o.display), 5))
829
- ], 8, vo)
830
- ]),
831
- _: 1
832
- }, 8, ["legendSet", "config"])) : y("", !0),
833
- c(t.$slots, "legend", { legend: h.value }, void 0, !0)
834
- ], 512)
835
- ], 8, ["to"])) : y("", !0),
836
- t.$slots.source ? (r(), f("div", {
837
- key: 6,
838
- ref_key: "source",
839
- ref: se,
840
- dir: "auto"
841
- }, [
842
- c(t.$slots, "source", {}, void 0, !0)
843
- ], 512)) : y("", !0),
844
- ue.value && e.value.userOptions.buttons.table ? (r(), k(ut(R.value.component), it({ key: 7 }, R.value.props, {
845
- ref_key: "tableUnit",
846
- ref: D,
847
- onClose: ke
848
- }), xe({
849
- content: i(() => [
850
- G(a(Ie), {
851
- colNames: j.value.colNames,
852
- head: j.value.head,
853
- body: j.value.body,
854
- config: j.value.config,
855
- title: e.value.table.useDialog ? "" : R.value.title,
856
- withCloseButton: !e.value.table.useDialog,
857
- onClose: ke
858
- }, {
859
- th: i(({ th: o }) => [
860
- n("div", {
861
- innerHTML: o,
862
- style: { display: "flex", "align-items": "center" }
863
- }, null, 8, yo)
864
- ]),
865
- td: i(({ td: o }) => [
866
- _e(U(o.name || o), 1)
867
- ]),
868
- _: 1
869
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
870
- ]),
871
- _: 2
872
- }, [
873
- e.value.table.useDialog ? {
874
- name: "title",
875
- fn: i(() => [
876
- _e(U(R.value.title), 1)
877
- ]),
878
- key: "0"
879
- } : void 0,
880
- e.value.table.useDialog ? {
881
- name: "actions",
882
- fn: i(() => [
883
- n("button", {
884
- tabindex: "0",
885
- class: "vue-ui-user-options-button",
886
- onClick: l[15] || (l[15] = (o) => ee(e.value.userOptions.callbacks.csv))
887
- }, [
888
- G(a(N), {
889
- name: "excel",
890
- stroke: R.value.props.color
891
- }, null, 8, ["stroke"])
892
- ])
893
- ]),
894
- key: "1"
895
- } : void 0
896
- ]), 1040)) : y("", !0),
897
- a(K) ? (r(), k(xt, { key: 8 })) : y("", !0)
898
- ], 46, Lt));
899
- }
900
- }, Po = /* @__PURE__ */ St(ho, [["__scopeId", "data-v-a015dc84"]]);
901
- export {
902
- Po as default
903
- };