vue-data-ui 3.0.0-next.9 → 3.0.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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
  15. package/dist/Slicer-t6e1t2iM.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-CjnS13nF.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
  41. package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
  42. package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
  45. package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
  46. package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
  53. package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
  55. package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
  56. package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
  57. package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
  58. package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
  59. package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
  62. package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
  63. package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
  65. package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
  68. package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
  69. package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
  71. package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
  72. package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
  73. package/dist/vue-ui-rings-BH81WmMS.js +728 -0
  74. package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
  77. package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
  78. package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
  79. package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
  81. package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
  83. package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
  84. package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
  88. package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
  90. package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
  91. package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
  93. package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
  94. package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
  95. package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
  97. package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,785 @@
1
+ import { defineAsyncComponent as M, ref as i, computed as y, toRefs as ze, onMounted as Ue, watch as We, createElementBlock as c, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as he, createBlock as m, createCommentVNode as d, createElementVNode as s, createVNode as Y, createSlots as Ge, withCtx as g, renderSlot as h, normalizeProps as j, guardReactiveProps as z, Fragment as fe, renderList as pe, toDisplayString as E, createTextVNode as He, nextTick as Xe } from "vue";
2
+ import { u as Ke, c as qe, t as Ye, o as Je, f as ge, b as Qe, R as Ze, X as et, s as x, x as tt, S as ot, k as me, i as U, v as lt, w as at } from "./index-Dzc2Gi60.js";
3
+ import { t as st, u as nt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as rt, B as ut } from "./useLoading-D7YHNtLX.js";
5
+ import { u as it } from "./usePrinter-DBRh8ZvS.js";
6
+ import { u as ke } from "./useNestedProp-CjnS13nF.js";
7
+ import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ct } from "./useChartAccessibility-9icAAmYg.js";
9
+ import vt from "./img-Vb4QHAHI.js";
10
+ import yt from "./Title-xTWR-Vil.js";
11
+ import ht from "./Legend-CMvJ6X5j.js";
12
+ import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["id"], bt = ["stop-color"], xt = ["stop-color"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], wt = ["d", "stroke", "stroke-width"], $t = ["transform"], At = ["stroke"], _t = ["fill"], Mt = ["transform"], Nt = ["stroke"], Pt = ["fill"], Tt = ["transform"], Ot = ["stroke"], Lt = ["fill"], It = ["transform"], St = ["stroke"], Ft = ["fill"], Et = ["transform"], Rt = ["stroke"], Bt = ["fill"], Dt = ["d", "stroke", "stroke-width", "fill"], Vt = ["x1", "y1", "x2", "y2", "stroke"], jt = ["cx", "cy", "fill", "stroke"], zt = ["cx", "cy", "fill", "stroke"], Ut = ["x", "y", "fill", "font-weight"], Wt = ["x", "y", "fill"], Gt = {
14
+ key: 4,
15
+ class: "vue-data-ui-watermark"
16
+ }, Ht = ["onClick"], Xt = {
17
+ key: 5,
18
+ style: { "font-weight": "bold" }
19
+ }, Kt = { key: 6 }, qt = ["innerHTML"], Yt = {
20
+ __name: "vue-ui-mood-radar",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ }
34
+ },
35
+ setup(be, { expose: xe }) {
36
+ const Ce = M(() => import("./vue-ui-accordion-CPk8wAuj.js")), N = M(() => import("./BaseIcon-DEl03NUZ.js")), we = M(() => import("./DataTable-ClgCsiJA.js")), $e = M(() => import("./PackageVersion-CD5VH_Al.js")), Ae = M(() => import("./PenAndPaper-D3WRn-G2.js")), _e = M(() => import("./UserOptions-CKKPgDLV.js")), { vue_ui_mood_radar: Me } = Ke(), C = be, P = i(qe()), w = i(null), Ne = i(null), f = i(null), J = i(null), Pe = i(0), Te = i(0), Q = i(0), Z = i(null), ee = i(null), T = i(null), R = i(null), te = i(null), oe = y(() => !!C.dataset && Object.keys(C.dataset).length), e = i(H()), { loading: W, FINAL_DATASET: $ } = rt({
37
+ ...ze(C),
38
+ FINAL_CONFIG: e,
39
+ prepareConfig: H,
40
+ skeletonDataset: {
41
+ 1: 1,
42
+ 2: 1,
43
+ 3: 1,
44
+ 4: 1,
45
+ 5: 1
46
+ },
47
+ skeletonConfig: Ye({
48
+ defaultConfig: e.value,
49
+ userConfig: {
50
+ userOptions: { show: !1 },
51
+ table: { show: !1 },
52
+ style: {
53
+ chart: {
54
+ backgroundColor: "#99999930",
55
+ layout: {
56
+ grid: {
57
+ stroke: "#6A6A6A"
58
+ },
59
+ outerPolygon: {
60
+ stroke: "#6A6A6A"
61
+ },
62
+ dataPolygon: {
63
+ color: "#6A6A6A",
64
+ opacity: 30,
65
+ stroke: "#6A6A6A"
66
+ },
67
+ smileys: {
68
+ colors: {
69
+ 1: "#DBDBDB",
70
+ 2: "#C4C4C4",
71
+ 3: "#ADADAD",
72
+ 4: "#969696",
73
+ 5: "#808080"
74
+ }
75
+ },
76
+ dataLabel: {
77
+ color: "transparent"
78
+ }
79
+ },
80
+ legend: {
81
+ backgroundColor: "transparent"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ })
87
+ });
88
+ Ue(() => {
89
+ le();
90
+ });
91
+ const Oe = y(() => e.value.debug);
92
+ function le() {
93
+ if (Je(C.dataset) && ge({
94
+ componentName: "VueUiMoodRadar",
95
+ type: "dataset",
96
+ debug: Oe.value
97
+ }), e.value.responsive) {
98
+ const o = st(() => {
99
+ const { width: l, height: t } = nt({
100
+ chart: w.value,
101
+ title: e.value.style.chart.title.text ? Z.value : null,
102
+ legend: e.value.style.chart.legend.show ? ee.value : null,
103
+ noTitle: J.value,
104
+ source: te.value
105
+ });
106
+ requestAnimationFrame(() => {
107
+ n.value.width = l, n.value.height = t - 12;
108
+ });
109
+ });
110
+ T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(o), R.value = w.value.parentNode, T.value.observe(R.value);
111
+ }
112
+ }
113
+ const { userOptionsVisible: G, setUserOptionsVisibility: ae, keepUserOptionState: se } = dt({ config: e.value }), { svgRef: ne } = ct({ config: e.value.style.chart.title });
114
+ function H() {
115
+ const o = ke({
116
+ userConfig: C.config,
117
+ defaultConfig: Me
118
+ });
119
+ return o.theme ? {
120
+ ...ke({
121
+ userConfig: Qe.vue_ui_mood_radar[o.theme] || C.config,
122
+ defaultConfig: o
123
+ })
124
+ } : o;
125
+ }
126
+ We(() => C.config, (o) => {
127
+ e.value = H(), G.value = !e.value.userOptions.showOnChartHover, le(), Pe.value += 1, Te.value += 1, Q.value += 1, O.value.showTable = e.value.table.show;
128
+ }, { deep: !0 });
129
+ const { isPrinting: re, isImaging: ue, generatePdf: ie, generateImage: de } = it({
130
+ elementId: P.value,
131
+ fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
132
+ options: e.value.userOptions.print
133
+ }), Le = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = i({
134
+ showTable: e.value.table.show
135
+ }), n = i({
136
+ height: 256,
137
+ width: 256
138
+ }), Ie = {
139
+ 5: { x: 128, y: 35 },
140
+ 4: { x: 218, y: 98.5 },
141
+ 3: { x: 185, y: 204 },
142
+ 2: { x: 70, y: 204 },
143
+ 1: { x: 38.5, y: 98.5 }
144
+ }, Se = y(() => {
145
+ const o = {};
146
+ return K.value.forEach((l) => {
147
+ o[l.key] = { x: l.x, y: l.y };
148
+ }), o;
149
+ });
150
+ function L(o) {
151
+ const l = Ie[o], t = Se.value[o] || l;
152
+ return `translate(${t.x - l.x}, ${t.y - l.y})`;
153
+ }
154
+ const X = y(() => Ze({
155
+ plot: { x: n.value.width / 2, y: n.value.height / 2 },
156
+ radius: Math.min(n.value.height, n.value.width) * 0.35,
157
+ sides: 5,
158
+ rotation: 11
159
+ }));
160
+ function Fe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: k, key: p, value: je }) {
161
+ return {
162
+ x: o + (t - o) * k,
163
+ y: l + (u - l) * k,
164
+ key: p,
165
+ value: je
166
+ };
167
+ }
168
+ const Ee = y(() => Math.max(...Object.values($.value).map((o) => isNaN(o) ? 0 : o))), A = y(() => Object.values($.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), v = y(() => Object.keys($.value).map((o, l) => {
169
+ const t = typeof $.value[o] != "number" || isNaN($.value[o]) ? 0 : $.value[o];
170
+ return {
171
+ index: l,
172
+ key: o,
173
+ value: t,
174
+ proportion: t / A.value,
175
+ color: e.value.style.chart.layout.smileys.colors[o]
176
+ };
177
+ }).sort((o, l) => l.key - o.key)), K = y(() => (["1", "2", "3", "4", "5"].forEach((o) => {
178
+ [null, void 0].includes($.value[o]) && ge({
179
+ componentName: "VueUiMoodRadar",
180
+ type: "datasetAttribute",
181
+ property: o
182
+ });
183
+ }), X.value.coordinates.map((o, l) => {
184
+ const t = Fe({
185
+ centerX: n.value.width / 2,
186
+ centerY: n.value.height / 2,
187
+ apexX: o.x,
188
+ apexY: o.y,
189
+ proportion: v.value[l].value / Ee.value,
190
+ key: v.value[l].key,
191
+ value: v.value[l].value
192
+ });
193
+ return {
194
+ ...o,
195
+ plots: t,
196
+ key: v.value[l].key
197
+ };
198
+ }))), Re = y(() => ({
199
+ cy: "mood-radar-legend",
200
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
201
+ color: e.value.style.chart.legend.color,
202
+ fontSize: e.value.style.chart.legend.fontSize,
203
+ paddingBottom: 12,
204
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
205
+ }));
206
+ function Be(o) {
207
+ o === f.value ? f.value = null : (f.value = o, _(o));
208
+ }
209
+ function I(o) {
210
+ f.value = o;
211
+ const l = v.value.find((t) => t.key === o);
212
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
213
+ }
214
+ function S(o) {
215
+ f.value = null;
216
+ const l = v.value.find((t) => t.key === o);
217
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
218
+ }
219
+ function _(o) {
220
+ const l = v.value.find((t) => t.key === o);
221
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
222
+ }
223
+ const b = y(() => {
224
+ const o = v.value.map((t) => ({
225
+ name: t.key,
226
+ color: t.color
227
+ })), l = v.value.map((t) => isNaN(t.value) ? 0 : t.value);
228
+ return { head: o, body: l };
229
+ });
230
+ function ce(o = null) {
231
+ Xe(() => {
232
+ const l = b.value.head.map((k, p) => [[
233
+ k.name
234
+ ], [b.value.body[p]], [isNaN(b.value.body[p] / A.value) ? "-" : b.value.body[p] / A.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), u = lt(t);
235
+ o ? o(u) : at({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
236
+ });
237
+ }
238
+ const B = y(() => {
239
+ const o = [
240
+ ' <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>',
241
+ Number(A.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
242
+ "100%"
243
+ ], l = b.value.head.map((k, p) => [
244
+ {
245
+ color: k.color,
246
+ name: k.name
247
+ },
248
+ b.value.body[p].toFixed(e.value.table.td.roundingValue),
249
+ isNaN(b.value.body[p] / A.value) ? "-" : (b.value.body[p] / A.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
250
+ ]), t = {
251
+ th: {
252
+ backgroundColor: e.value.table.th.backgroundColor,
253
+ color: e.value.table.th.color,
254
+ outline: e.value.table.th.outline
255
+ },
256
+ td: {
257
+ backgroundColor: e.value.table.td.backgroundColor,
258
+ color: e.value.table.td.color,
259
+ outline: e.value.table.td.outline
260
+ },
261
+ breakpoint: e.value.table.responsiveBreakpoint
262
+ }, u = [
263
+ e.value.table.columnNames.series,
264
+ e.value.table.columnNames.value,
265
+ e.value.table.columnNames.percentage
266
+ ];
267
+ return {
268
+ head: o,
269
+ body: l,
270
+ config: t,
271
+ colNames: u
272
+ };
273
+ });
274
+ function De() {
275
+ return v.value;
276
+ }
277
+ function ve() {
278
+ O.value.showTable = !O.value.showTable;
279
+ }
280
+ const F = i(!1);
281
+ function ye(o) {
282
+ F.value = o;
283
+ }
284
+ const D = i(!1);
285
+ function q() {
286
+ D.value = !D.value;
287
+ }
288
+ async function Ve({ scale: o = 2 } = {}) {
289
+ if (!w.value) return;
290
+ const { width: l, height: t } = w.value.getBoundingClientRect(), u = l / t, { imageUri: k, base64: p } = await vt({ domElement: w.value, base64: !0, img: !0, scale: o });
291
+ return {
292
+ imageUri: k,
293
+ base64: p,
294
+ title: e.value.style.chart.title.text,
295
+ width: l,
296
+ height: t,
297
+ aspectRatio: u
298
+ };
299
+ }
300
+ return xe({
301
+ getData: De,
302
+ getImage: Ve,
303
+ generatePdf: ie,
304
+ generateCsv: ce,
305
+ generateImage: de,
306
+ toggleTable: ve,
307
+ toggleAnnotator: q,
308
+ toggleFullscreen: ye
309
+ }), (o, l) => (r(), c("div", {
310
+ class: he(`vue-ui-mood-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
311
+ ref_key: "moodRadarChart",
312
+ ref: w,
313
+ id: `${P.value}`,
314
+ style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
315
+ onMouseenter: l[16] || (l[16] = () => a(ae)(!0)),
316
+ onMouseleave: l[17] || (l[17] = () => a(ae)(!1))
317
+ }, [
318
+ e.value.userOptions.buttons.annotator ? (r(), m(a(Ae), {
319
+ key: 0,
320
+ svgRef: a(ne),
321
+ backgroundColor: e.value.style.chart.backgroundColor,
322
+ color: e.value.style.chart.color,
323
+ active: D.value,
324
+ onClose: q
325
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
326
+ Le.value ? (r(), c("div", {
327
+ key: 1,
328
+ ref_key: "noTitle",
329
+ ref: J,
330
+ class: "vue-data-ui-no-title-space",
331
+ style: "height:36px; width: 100%;background:transparent"
332
+ }, null, 512)) : d("", !0),
333
+ e.value.style.chart.title.text ? (r(), c("div", {
334
+ key: 2,
335
+ ref_key: "chartTitle",
336
+ ref: Z,
337
+ style: "width:100%;background:transparent"
338
+ }, [
339
+ Y(yt, {
340
+ config: {
341
+ title: {
342
+ cy: "mood-radar-title",
343
+ ...e.value.style.chart.title
344
+ },
345
+ subtitle: {
346
+ cy: "mood-radar-subtitle",
347
+ ...e.value.style.chart.title.subtitle
348
+ }
349
+ }
350
+ }, null, 8, ["config"])
351
+ ], 512)) : d("", !0),
352
+ e.value.userOptions.show && oe.value && (a(se) || a(G)) ? (r(), m(a(_e), {
353
+ key: 3,
354
+ ref_key: "details",
355
+ ref: Ne,
356
+ backgroundColor: e.value.style.chart.backgroundColor,
357
+ color: e.value.style.chart.color,
358
+ isPrinting: a(re),
359
+ isImaging: a(ue),
360
+ uid: P.value,
361
+ hasPdf: e.value.userOptions.buttons.pdf,
362
+ hasXls: e.value.userOptions.buttons.csv,
363
+ hasImg: e.value.userOptions.buttons.img,
364
+ hasTable: e.value.userOptions.buttons.table,
365
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
366
+ isFullscreen: F.value,
367
+ titles: { ...e.value.userOptions.buttonTitles },
368
+ chartElement: w.value,
369
+ position: e.value.userOptions.position,
370
+ hasAnnotator: e.value.userOptions.buttons.annotator,
371
+ isAnnotation: D.value,
372
+ callbacks: e.value.userOptions.callbacks,
373
+ printScale: e.value.userOptions.print.scale,
374
+ onToggleFullscreen: ye,
375
+ onGeneratePdf: a(ie),
376
+ onGenerateCsv: ce,
377
+ onGenerateImage: a(de),
378
+ onToggleTable: ve,
379
+ onToggleAnnotator: q,
380
+ style: V({
381
+ visibility: a(se) ? a(G) ? "visible" : "hidden" : "visible"
382
+ })
383
+ }, Ge({ _: 2 }, [
384
+ o.$slots.menuIcon ? {
385
+ name: "menuIcon",
386
+ fn: g(({ isOpen: t, color: u }) => [
387
+ h(o.$slots, "menuIcon", j(z({ isOpen: t, color: u })), void 0, !0)
388
+ ]),
389
+ key: "0"
390
+ } : void 0,
391
+ o.$slots.optionPdf ? {
392
+ name: "optionPdf",
393
+ fn: g(() => [
394
+ h(o.$slots, "optionPdf", {}, void 0, !0)
395
+ ]),
396
+ key: "1"
397
+ } : void 0,
398
+ o.$slots.optionCsv ? {
399
+ name: "optionCsv",
400
+ fn: g(() => [
401
+ h(o.$slots, "optionCsv", {}, void 0, !0)
402
+ ]),
403
+ key: "2"
404
+ } : void 0,
405
+ o.$slots.optionImg ? {
406
+ name: "optionImg",
407
+ fn: g(() => [
408
+ h(o.$slots, "optionImg", {}, void 0, !0)
409
+ ]),
410
+ key: "3"
411
+ } : void 0,
412
+ o.$slots.optionTable ? {
413
+ name: "optionTable",
414
+ fn: g(() => [
415
+ h(o.$slots, "optionTable", {}, void 0, !0)
416
+ ]),
417
+ key: "4"
418
+ } : void 0,
419
+ o.$slots.optionFullscreen ? {
420
+ name: "optionFullscreen",
421
+ fn: g(({ toggleFullscreen: t, isFullscreen: u }) => [
422
+ h(o.$slots, "optionFullscreen", j(z({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
423
+ ]),
424
+ key: "5"
425
+ } : void 0,
426
+ o.$slots.optionAnnotator ? {
427
+ name: "optionAnnotator",
428
+ fn: g(({ toggleAnnotator: t, isAnnotator: u }) => [
429
+ h(o.$slots, "optionAnnotator", j(z({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
430
+ ]),
431
+ key: "6"
432
+ } : void 0
433
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
434
+ (r(), c("svg", {
435
+ ref_key: "svgRef",
436
+ ref: ne,
437
+ xmlns: a(et),
438
+ viewBox: `0 0 ${n.value.width} ${n.value.height}`,
439
+ class: he({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
440
+ style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
441
+ }, [
442
+ Y(a($e)),
443
+ o.$slots["chart-background"] ? (r(), c("foreignObject", {
444
+ key: 0,
445
+ x: 0,
446
+ y: 0,
447
+ width: n.value.width,
448
+ height: n.value.height,
449
+ style: {
450
+ pointerEvents: "none"
451
+ }
452
+ }, [
453
+ h(o.$slots, "chart-background", {}, void 0, !0)
454
+ ], 8, mt)) : d("", !0),
455
+ s("defs", null, [
456
+ s("radialGradient", {
457
+ cx: "50%",
458
+ cy: "50%",
459
+ r: "50%",
460
+ fx: "50%",
461
+ fy: "50%",
462
+ id: `mood_radar_gradient_${P.value}`
463
+ }, [
464
+ s("stop", {
465
+ offset: "0%",
466
+ "stop-color": a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
467
+ }, null, 8, bt),
468
+ s("stop", {
469
+ offset: "100%",
470
+ "stop-color": a(x)(a(tt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
471
+ }, null, 8, xt)
472
+ ], 8, kt)
473
+ ]),
474
+ (r(!0), c(fe, null, pe(X.value.coordinates, (t) => (r(), c("line", {
475
+ x1: n.value.width / 2,
476
+ y1: n.value.height / 2,
477
+ x2: t.x,
478
+ y2: t.y,
479
+ stroke: e.value.style.chart.layout.grid.stroke,
480
+ "stroke-width": e.value.style.chart.layout.grid.strokeWidth
481
+ }, null, 8, Ct))), 256)),
482
+ s("path", {
483
+ d: X.value.path,
484
+ fill: "none",
485
+ stroke: e.value.style.chart.layout.outerPolygon.stroke,
486
+ "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
487
+ "stroke-linejoin": "round",
488
+ "stroke-linecap": "round"
489
+ }, null, 8, wt),
490
+ s("g", {
491
+ transform: L("5")
492
+ }, [
493
+ s("path", {
494
+ fill: "none",
495
+ stroke: e.value.style.chart.layout.smileys.colors[5],
496
+ "stroke-width": "1",
497
+ "stroke-linecap": "round",
498
+ 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"
499
+ }, null, 8, At),
500
+ s("circle", {
501
+ class: "vue-ui-mood-radar-trap",
502
+ cx: "128",
503
+ cy: "25",
504
+ r: "20",
505
+ fill: f.value === "5" ? a(x)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
506
+ onMouseenter: l[0] || (l[0] = (t) => I("5")),
507
+ onMouseleave: l[1] || (l[1] = (t) => S("5")),
508
+ onClick: l[2] || (l[2] = (t) => _("5"))
509
+ }, null, 40, _t)
510
+ ], 8, $t),
511
+ s("g", {
512
+ transform: L("4")
513
+ }, [
514
+ s("path", {
515
+ fill: "none",
516
+ stroke: e.value.style.chart.layout.smileys.colors[4],
517
+ "stroke-width": "1",
518
+ "stroke-linecap": "round",
519
+ 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"
520
+ }, null, 8, Nt),
521
+ s("circle", {
522
+ class: "vue-ui-mood-radar-trap",
523
+ cx: "227",
524
+ cy: "95.5",
525
+ r: "20",
526
+ fill: f.value === "4" ? a(x)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
527
+ onMouseenter: l[3] || (l[3] = (t) => I("4")),
528
+ onMouseleave: l[4] || (l[4] = (t) => S("4")),
529
+ onClick: l[5] || (l[5] = (t) => _("4"))
530
+ }, null, 40, Pt)
531
+ ], 8, Mt),
532
+ s("g", {
533
+ transform: L("3")
534
+ }, [
535
+ s("path", {
536
+ fill: "none",
537
+ stroke: e.value.style.chart.layout.smileys.colors[3],
538
+ "stroke-width": "1",
539
+ "stroke-linecap": "round",
540
+ 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"
541
+ }, null, 8, Ot),
542
+ s("circle", {
543
+ class: "vue-ui-mood-radar-trap",
544
+ cx: "190",
545
+ cy: "213.5",
546
+ r: "20",
547
+ fill: f.value === "3" ? a(x)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
548
+ onMouseenter: l[6] || (l[6] = (t) => I("3")),
549
+ onMouseleave: l[7] || (l[7] = (t) => S("3")),
550
+ onClick: l[8] || (l[8] = (t) => _("3"))
551
+ }, null, 40, Lt)
552
+ ], 8, Tt),
553
+ s("g", {
554
+ transform: L("2")
555
+ }, [
556
+ s("path", {
557
+ fill: "none",
558
+ stroke: e.value.style.chart.layout.smileys.colors[2],
559
+ "stroke-width": "1",
560
+ "stroke-linecap": "round",
561
+ 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"
562
+ }, null, 8, St),
563
+ s("circle", {
564
+ class: "vue-ui-mood-radar-trap",
565
+ cx: "65",
566
+ cy: "213.5",
567
+ r: "20",
568
+ fill: f.value === "2" ? a(x)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
569
+ onMouseenter: l[9] || (l[9] = (t) => I("2")),
570
+ onMouseleave: l[10] || (l[10] = (t) => S("2")),
571
+ onClick: l[11] || (l[11] = (t) => _("2"))
572
+ }, null, 40, Ft)
573
+ ], 8, It),
574
+ s("g", {
575
+ transform: L("1")
576
+ }, [
577
+ s("path", {
578
+ fill: "none",
579
+ stroke: e.value.style.chart.layout.smileys.colors[1],
580
+ "stroke-width": "1",
581
+ "stroke-linecap": "round",
582
+ 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"
583
+ }, null, 8, Rt),
584
+ s("circle", {
585
+ class: "vue-ui-mood-radar-trap",
586
+ cx: "29",
587
+ cy: "95.5",
588
+ r: "20",
589
+ fill: f.value === "1" ? a(x)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
590
+ onMouseenter: l[12] || (l[12] = (t) => I("1")),
591
+ onMouseleave: l[13] || (l[13] = (t) => S("1")),
592
+ onClick: l[14] || (l[14] = (t) => _("1"))
593
+ }, null, 40, Bt)
594
+ ], 8, Et),
595
+ s("path", {
596
+ d: a(ot)(K.value.map((t) => t.plots)),
597
+ stroke: e.value.style.chart.layout.dataPolygon.stroke,
598
+ "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
599
+ "stroke-linecap": "round",
600
+ "stroke-linejoin": "round",
601
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
602
+ }, null, 8, Dt),
603
+ (r(!0), c(fe, null, pe(K.value.map((t) => t.plots), (t, u) => (r(), c("g", {
604
+ class: "vue-ui-mood-radar-trap",
605
+ style: V(`opacity:${f.value == t.key ? "1" : "0"}`)
606
+ }, [
607
+ s("line", {
608
+ x1: t.x,
609
+ y1: t.y,
610
+ x2: n.value.width / 2,
611
+ y2: n.value.height / 2,
612
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
613
+ }, null, 8, Vt),
614
+ s("circle", {
615
+ cx: t.x,
616
+ cy: t.y,
617
+ fill: e.value.style.chart.layout.smileys.colors[t.key],
618
+ r: "3",
619
+ stroke: e.value.style.chart.backgroundColor,
620
+ "stroke-width": 0.5
621
+ }, null, 8, jt),
622
+ s("circle", {
623
+ cx: n.value.width / 2,
624
+ cy: n.value.height / 2,
625
+ fill: e.value.style.chart.layout.smileys.colors[t.key],
626
+ r: "3",
627
+ stroke: e.value.style.chart.backgroundColor,
628
+ "stroke-width": 0.5
629
+ }, null, 8, zt),
630
+ s("text", {
631
+ x: n.value.width / 2,
632
+ y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
633
+ fill: e.value.style.chart.layout.dataLabel.color,
634
+ "font-size": "12",
635
+ "text-anchor": "middle",
636
+ "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
637
+ }, E(a(me)(
638
+ e.value.style.chart.layout.dataLabel.formatter,
639
+ t.value,
640
+ a(U)({
641
+ p: e.value.style.chart.layout.dataLabel.prefix,
642
+ v: t.value,
643
+ s: e.value.style.chart.layout.dataLabel.suffix,
644
+ r: e.value.style.chart.layout.dataLabel.roundingValue
645
+ }),
646
+ { datapoint: t, seriesIndex: u }
647
+ )), 9, Ut),
648
+ s("text", {
649
+ x: n.value.width / 2,
650
+ y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
651
+ fill: e.value.style.chart.layout.dataLabel.color,
652
+ "font-size": "12",
653
+ "text-anchor": "middle"
654
+ }, " (" + E(a(U)({
655
+ v: t.value / A.value * 100,
656
+ s: "%",
657
+ r: e.value.style.chart.layout.dataLabel.roundingPercentage
658
+ })) + ") ", 9, Wt)
659
+ ], 4))), 256)),
660
+ h(o.$slots, "svg", { svg: n.value }, void 0, !0)
661
+ ], 14, gt)),
662
+ o.$slots.watermark ? (r(), c("div", Gt, [
663
+ h(o.$slots, "watermark", j(z({ isPrinting: a(re) || a(ue) })), void 0, !0)
664
+ ])) : d("", !0),
665
+ s("div", {
666
+ ref_key: "chartLegend",
667
+ ref: ee
668
+ }, [
669
+ e.value.style.chart.legend.show ? (r(), m(ht, {
670
+ legendSet: v.value,
671
+ config: Re.value,
672
+ key: `legend_${Q.value}`,
673
+ style: { display: "flex", "row-gap": "6px" }
674
+ }, {
675
+ item: g(({ legend: t, index: u }) => [
676
+ s("div", {
677
+ onClick: () => Be(t.key),
678
+ style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
679
+ }, [
680
+ t.key == 1 ? (r(), m(a(N), {
681
+ key: 0,
682
+ strokeWidth: 1,
683
+ name: "moodSad",
684
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
685
+ }, null, 8, ["stroke"])) : d("", !0),
686
+ t.key == 2 ? (r(), m(a(N), {
687
+ key: 1,
688
+ strokeWidth: 1,
689
+ name: "moodFlat",
690
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
691
+ }, null, 8, ["stroke"])) : d("", !0),
692
+ t.key == 3 ? (r(), m(a(N), {
693
+ key: 2,
694
+ strokeWidth: 1,
695
+ name: "moodNeutral",
696
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
697
+ }, null, 8, ["stroke"])) : d("", !0),
698
+ t.key == 4 ? (r(), m(a(N), {
699
+ key: 3,
700
+ strokeWidth: 1,
701
+ name: "smiley",
702
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
703
+ }, null, 8, ["stroke"])) : d("", !0),
704
+ t.key == 5 ? (r(), m(a(N), {
705
+ key: 4,
706
+ strokeWidth: 1,
707
+ name: "moodHappy",
708
+ stroke: e.value.style.chart.layout.smileys.colors[t.key]
709
+ }, null, 8, ["stroke"])) : d("", !0),
710
+ a(W) ? d("", !0) : (r(), c("span", Xt, E(a(me)(
711
+ e.value.style.chart.layout.dataLabel.formatter,
712
+ t.value,
713
+ a(U)({
714
+ p: e.value.style.chart.layout.dataLabel.prefix,
715
+ v: t.value,
716
+ s: e.value.style.chart.layout.dataLabel.suffix,
717
+ r: e.value.style.chart.layout.dataLabel.roundingValue
718
+ }),
719
+ { datapoint: t, seriesIndex: u }
720
+ )), 1)),
721
+ a(W) ? d("", !0) : (r(), c("span", Kt, "(" + E(a(U)({
722
+ v: t.proportion * 100,
723
+ s: "%",
724
+ r: e.value.style.chart.legend.roundingPercentage
725
+ })) + ")", 1))
726
+ ], 8, Ht)
727
+ ]),
728
+ _: 1
729
+ }, 8, ["legendSet", "config"])) : d("", !0),
730
+ h(o.$slots, "legend", { legend: v.value }, void 0, !0)
731
+ ], 512),
732
+ o.$slots.source ? (r(), c("div", {
733
+ key: 5,
734
+ ref_key: "source",
735
+ ref: te,
736
+ dir: "auto"
737
+ }, [
738
+ h(o.$slots, "source", {}, void 0, !0)
739
+ ], 512)) : d("", !0),
740
+ oe.value ? (r(), m(a(Ce), {
741
+ key: 6,
742
+ hideDetails: "",
743
+ config: {
744
+ open: O.value.showTable,
745
+ maxHeight: 1e4,
746
+ body: {
747
+ backgroundColor: e.value.style.chart.backgroundColor,
748
+ color: e.value.style.chart.color
749
+ },
750
+ head: {
751
+ backgroundColor: e.value.style.chart.backgroundColor,
752
+ color: e.value.style.chart.color
753
+ }
754
+ }
755
+ }, {
756
+ content: g(() => [
757
+ Y(a(we), {
758
+ colNames: B.value.colNames,
759
+ head: B.value.head,
760
+ body: B.value.body,
761
+ config: B.value.config,
762
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
763
+ onClose: l[15] || (l[15] = (t) => O.value.showTable = !1)
764
+ }, {
765
+ th: g(({ th: t }) => [
766
+ s("div", {
767
+ innerHTML: t,
768
+ style: { display: "flex", "align-items": "center" }
769
+ }, null, 8, qt)
770
+ ]),
771
+ td: g(({ td: t }) => [
772
+ He(E(t.name || t), 1)
773
+ ]),
774
+ _: 1
775
+ }, 8, ["colNames", "head", "body", "config", "title"])
776
+ ]),
777
+ _: 1
778
+ }, 8, ["config"])) : d("", !0),
779
+ a(W) ? (r(), m(ut, { key: 7 })) : d("", !0)
780
+ ], 46, pt));
781
+ }
782
+ }, io = /* @__PURE__ */ ft(Yt, [["__scopeId", "data-v-32b86db4"]]);
783
+ export {
784
+ io as default
785
+ };