vue-data-ui 3.2.8 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
  84. package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
  90. package/dist/useSvgExport-DrjCWun4.js +750 -0
  91. package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
  106. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
  107. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
  109. package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
  119. package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
  146. package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,853 +0,0 @@
1
- import { defineAsyncComponent as T, ref as u, computed as c, toRefs as Je, onMounted as Qe, watch as ke, createElementBlock as v, openBlock as r, unref as a, normalizeStyle as j, normalizeClass as be, createBlock as m, createCommentVNode as d, createElementVNode as s, createVNode as z, createSlots as Ce, withCtx as y, renderSlot as f, normalizeProps as W, guardReactiveProps as G, Fragment as we, renderList as xe, toDisplayString as L, Teleport as Ze, resolveDynamicComponent as et, mergeProps as tt, createTextVNode as $e, nextTick as _e } from "vue";
2
- import { c as ot, t as lt, o as at, f as Ae, k as st, X as nt, s as x, i as rt, S as ut, a as Me, d as H, x as it, y as dt } from "./lib-BEpWEyMm.js";
3
- import { t as ct, u as vt } from "./useResponsive-DfdjqQps.js";
4
- import { u as yt, a as Te } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as ht, B as ft } from "./BaseScanner-BgWxam9d.js";
6
- import { u as pt } from "./usePrinter-w23K-ezx.js";
7
- import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as mt } from "./useChartAccessibility-9icAAmYg.js";
9
- import kt from "./img-DjWwQXVS.js";
10
- import bt from "./Title-DG2nloSB.js";
11
- import { t as Ct } from "./themes-Dw-dDudK.js";
12
- import wt from "./Legend-BpoFJ8fc.js";
13
- import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const $t = ["id"], _t = ["id"], At = ["xmlns", "viewBox"], Mt = ["width", "height"], Tt = ["id"], Pt = ["stop-color"], Nt = ["stop-color"], Ot = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Lt = ["d", "stroke", "stroke-width"], It = ["transform"], Dt = ["stroke"], St = ["fill"], Ft = ["transform"], Bt = ["stroke"], Rt = ["fill"], Et = ["transform"], Vt = ["stroke"], Ut = ["fill"], jt = ["transform"], zt = ["stroke"], Wt = ["fill"], Gt = ["transform"], Ht = ["stroke"], Xt = ["fill"], Kt = ["d", "stroke", "stroke-width", "fill"], qt = ["x1", "y1", "x2", "y2", "stroke"], Yt = ["cx", "cy", "fill", "stroke"], Jt = ["cx", "cy", "fill", "stroke"], Qt = ["x", "y", "fill", "font-weight"], Zt = ["x", "y", "fill"], eo = {
15
- key: 4,
16
- class: "vue-data-ui-watermark"
17
- }, to = ["id"], oo = ["onClick"], lo = {
18
- key: 5,
19
- style: { "font-weight": "bold" }
20
- }, ao = { key: 6 }, so = ["innerHTML"], no = {
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
- setup(Pe, { expose: Ne }) {
37
- const P = T(() => import("./BaseIcon-Bz-1GQhu.js")), Oe = T(() => import("./vue-ui-accordion-CDIzGCG1.js")), Le = T(() => import("./DataTable-BvjacRbw.js")), Ie = T(() => import("./PenAndPaper-CR8q353D.js")), De = T(() => import("./UserOptions-DsTgvAok.js")), Se = T(() => import("./PackageVersion-C40g0Rfc.js")), Fe = T(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_mood_radar: Be } = yt(), $ = Pe, k = u(ot()), C = u(null), p = u(null), te = u(null), Re = u(0), Ee = u(0), oe = u(0), le = u(null), ae = u(null), I = u(null), E = u(null), se = u(null), ne = u(!1), D = u(null), X = u(null), re = c(() => !!$.dataset && Object.keys($.dataset).length), e = u(Y()), { loading: K, FINAL_DATASET: _ } = ht({
38
- ...Je($),
39
- FINAL_CONFIG: e,
40
- prepareConfig: Y,
41
- callback: () => {
42
- Promise.resolve().then(async () => {
43
- await _e(), A.value.showTable = e.value.table.show;
44
- });
45
- },
46
- skeletonDataset: {
47
- 1: 1,
48
- 2: 1,
49
- 3: 1,
50
- 4: 1,
51
- 5: 1
52
- },
53
- skeletonConfig: lt({
54
- defaultConfig: e.value,
55
- userConfig: {
56
- userOptions: { show: !1 },
57
- table: { show: !1 },
58
- style: {
59
- chart: {
60
- backgroundColor: "#99999930",
61
- layout: {
62
- grid: {
63
- stroke: "#6A6A6A"
64
- },
65
- outerPolygon: {
66
- stroke: "#6A6A6A"
67
- },
68
- dataPolygon: {
69
- color: "#6A6A6A",
70
- opacity: 30,
71
- stroke: "#6A6A6A"
72
- },
73
- smileys: {
74
- colors: {
75
- 1: "#DBDBDB",
76
- 2: "#C4C4C4",
77
- 3: "#ADADAD",
78
- 4: "#969696",
79
- 5: "#808080"
80
- }
81
- },
82
- dataLabel: {
83
- color: "transparent"
84
- }
85
- },
86
- legend: {
87
- backgroundColor: "transparent"
88
- }
89
- }
90
- }
91
- }
92
- })
93
- });
94
- Qe(() => {
95
- ne.value = !0, ue();
96
- });
97
- const Ve = c(() => e.value.debug);
98
- function ue() {
99
- if (at($.dataset) && Ae({
100
- componentName: "VueUiMoodRadar",
101
- type: "dataset",
102
- debug: Ve.value
103
- }), e.value.responsive) {
104
- const o = ct(() => {
105
- const { width: l, height: t } = vt({
106
- chart: C.value,
107
- title: e.value.style.chart.title.text ? le.value : null,
108
- legend: e.value.style.chart.legend.show ? ae.value : null,
109
- noTitle: te.value,
110
- source: se.value
111
- });
112
- requestAnimationFrame(() => {
113
- n.value.width = l, n.value.height = t - 12;
114
- });
115
- });
116
- I.value && (E.value && I.value.unobserve(E.value), I.value.disconnect()), I.value = new ResizeObserver(o), E.value = C.value.parentNode, I.value.observe(E.value);
117
- }
118
- }
119
- const { userOptionsVisible: q, setUserOptionsVisibility: ie, keepUserOptionState: de } = gt({ config: e.value }), { svgRef: ce } = mt({ config: e.value.style.chart.title });
120
- function Y() {
121
- const o = Te({
122
- userConfig: $.config,
123
- defaultConfig: Be
124
- });
125
- return o.theme ? {
126
- ...Te({
127
- userConfig: Ct.vue_ui_mood_radar[o.theme] || $.config,
128
- defaultConfig: o
129
- })
130
- } : o;
131
- }
132
- ke(() => $.config, (o) => {
133
- e.value = Y(), q.value = !e.value.userOptions.showOnChartHover, ue(), Re.value += 1, Ee.value += 1, oe.value += 1, A.value.showTable = e.value.table.show;
134
- }, { deep: !0 });
135
- const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage: fe } = pt({
136
- elementId: k.value,
137
- fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
138
- options: e.value.userOptions.print
139
- }), Ue = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = u({
140
- showTable: e.value.table.show
141
- }), n = u({
142
- height: 256,
143
- width: 256
144
- }), je = {
145
- 5: { x: 128, y: 35 },
146
- 4: { x: 218, y: 98.5 },
147
- 3: { x: 185, y: 204 },
148
- 2: { x: 70, y: 204 },
149
- 1: { x: 38.5, y: 98.5 }
150
- }, ze = c(() => {
151
- const o = {};
152
- return Q.value.forEach((l) => {
153
- o[l.key] = { x: l.x, y: l.y };
154
- }), o;
155
- });
156
- function S(o) {
157
- const l = je[o], t = ze.value[o] || l;
158
- return `translate(${t.x - l.x}, ${t.y - l.y})`;
159
- }
160
- const J = c(() => st({
161
- plot: { x: n.value.width / 2, y: n.value.height / 2 },
162
- radius: Math.min(n.value.height, n.value.width) * 0.35,
163
- sides: 5,
164
- rotation: 11
165
- }));
166
- function We({ centerX: o, centerY: l, apexX: t, apexY: i, proportion: b, key: g, value: Ye }) {
167
- return {
168
- x: o + (t - o) * b,
169
- y: l + (i - l) * b,
170
- key: g,
171
- value: Ye
172
- };
173
- }
174
- const Ge = c(() => Math.max(...Object.values(_.value).map((o) => isNaN(o) ? 0 : o))), M = c(() => Object.values(_.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), h = c(() => Object.keys(_.value).map((o, l) => {
175
- const t = typeof _.value[o] != "number" || isNaN(_.value[o]) ? 0 : _.value[o];
176
- return {
177
- index: l,
178
- key: o,
179
- value: t,
180
- proportion: t / M.value,
181
- color: e.value.style.chart.layout.smileys.colors[o]
182
- };
183
- }).sort((o, l) => l.key - o.key)), Q = c(() => (["1", "2", "3", "4", "5"].forEach((o) => {
184
- [null, void 0].includes(_.value[o]) && Ae({
185
- componentName: "VueUiMoodRadar",
186
- type: "datasetAttribute",
187
- property: o
188
- });
189
- }), J.value.coordinates.map((o, l) => {
190
- const t = We({
191
- centerX: n.value.width / 2,
192
- centerY: n.value.height / 2,
193
- apexX: o.x,
194
- apexY: o.y,
195
- proportion: h.value[l].value / Ge.value,
196
- key: h.value[l].key,
197
- value: h.value[l].value
198
- });
199
- return {
200
- ...o,
201
- plots: t,
202
- key: h.value[l].key
203
- };
204
- }))), He = c(() => ({
205
- cy: "mood-radar-legend",
206
- backgroundColor: e.value.style.chart.legend.backgroundColor,
207
- color: e.value.style.chart.legend.color,
208
- fontSize: e.value.style.chart.legend.fontSize,
209
- paddingBottom: 12,
210
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
211
- }));
212
- function Xe(o) {
213
- o === p.value ? p.value = null : (p.value = o, N(o));
214
- }
215
- function F(o) {
216
- p.value = o;
217
- const l = h.value.find((t) => t.key === o);
218
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
219
- }
220
- function B(o) {
221
- p.value = null;
222
- const l = h.value.find((t) => t.key === o);
223
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
224
- }
225
- function N(o) {
226
- const l = h.value.find((t) => t.key === o);
227
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
228
- }
229
- const w = c(() => {
230
- const o = h.value.map((t) => ({
231
- name: t.key,
232
- color: t.color
233
- })), l = h.value.map((t) => isNaN(t.value) ? 0 : t.value);
234
- return { head: o, body: l };
235
- });
236
- function Z(o = null) {
237
- _e(() => {
238
- const l = w.value.head.map((b, g) => [[
239
- b.name
240
- ], [w.value.body[g]], [isNaN(w.value.body[g] / M.value) ? "-" : w.value.body[g] / M.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = it(t);
241
- o ? o(i) : dt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
242
- });
243
- }
244
- const V = c(() => {
245
- const o = [
246
- ' <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>',
247
- Number(M.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
248
- "100%"
249
- ], l = w.value.head.map((b, g) => [
250
- {
251
- color: b.color,
252
- name: b.name
253
- },
254
- w.value.body[g].toFixed(e.value.table.td.roundingValue),
255
- isNaN(w.value.body[g] / M.value) ? "-" : (w.value.body[g] / M.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
256
- ]), t = {
257
- th: {
258
- backgroundColor: e.value.table.th.backgroundColor,
259
- color: e.value.table.th.color,
260
- outline: e.value.table.th.outline
261
- },
262
- td: {
263
- backgroundColor: e.value.table.td.backgroundColor,
264
- color: e.value.table.td.color,
265
- outline: e.value.table.td.outline
266
- },
267
- breakpoint: e.value.table.responsiveBreakpoint
268
- }, i = [
269
- e.value.table.columnNames.series,
270
- e.value.table.columnNames.value,
271
- e.value.table.columnNames.percentage
272
- ];
273
- return {
274
- head: o,
275
- body: l,
276
- config: t,
277
- colNames: i
278
- };
279
- });
280
- function Ke() {
281
- return h.value;
282
- }
283
- function pe() {
284
- A.value.showTable = !A.value.showTable;
285
- }
286
- const O = u(!1);
287
- function ge(o) {
288
- O.value = o;
289
- }
290
- const U = u(!1);
291
- function ee() {
292
- U.value = !U.value;
293
- }
294
- async function qe({ scale: o = 2 } = {}) {
295
- if (!C.value) return;
296
- const { width: l, height: t } = C.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: g } = await kt({ domElement: C.value, base64: !0, img: !0, scale: o });
297
- return {
298
- imageUri: b,
299
- base64: g,
300
- title: e.value.style.chart.title.text,
301
- width: l,
302
- height: t,
303
- aspectRatio: i
304
- };
305
- }
306
- const R = c(() => {
307
- const o = e.value.table.useDialog && !e.value.table.show, l = A.value.showTable;
308
- return {
309
- component: o ? Fe : Oe,
310
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
311
- props: o ? {
312
- backgroundColor: e.value.table.th.backgroundColor,
313
- color: e.value.table.th.color,
314
- headerColor: e.value.table.th.color,
315
- headerBg: e.value.table.th.backgroundColor,
316
- isFullscreen: O.value,
317
- fullscreenParent: C.value,
318
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
319
- } : {
320
- hideDetails: !0,
321
- config: {
322
- open: l,
323
- maxHeight: 1e4,
324
- body: {
325
- backgroundColor: e.value.style.chart.backgroundColor,
326
- color: e.value.style.chart.color
327
- },
328
- head: {
329
- backgroundColor: e.value.style.chart.backgroundColor,
330
- color: e.value.style.chart.color
331
- }
332
- }
333
- }
334
- };
335
- });
336
- ke(() => A.value.showTable, (o) => {
337
- e.value.table.show || (o && e.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
338
- });
339
- function me() {
340
- A.value.showTable = !1, X.value && X.value.setTableIconState(!1);
341
- }
342
- return Ne({
343
- getData: Ke,
344
- getImage: qe,
345
- generatePdf: he,
346
- generateCsv: Z,
347
- generateImage: fe,
348
- toggleTable: pe,
349
- toggleAnnotator: ee,
350
- toggleFullscreen: ge
351
- }), (o, l) => (r(), v("div", {
352
- class: be(`vue-data-ui-component vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
353
- ref_key: "moodRadarChart",
354
- ref: C,
355
- id: `${k.value}`,
356
- style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
357
- onMouseenter: l[16] || (l[16] = () => a(ie)(!0)),
358
- onMouseleave: l[17] || (l[17] = () => a(ie)(!1))
359
- }, [
360
- e.value.userOptions.buttons.annotator ? (r(), m(a(Ie), {
361
- key: 0,
362
- svgRef: a(ce),
363
- backgroundColor: e.value.style.chart.backgroundColor,
364
- color: e.value.style.chart.color,
365
- active: U.value,
366
- onClose: ee
367
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
368
- Ue.value ? (r(), v("div", {
369
- key: 1,
370
- ref_key: "noTitle",
371
- ref: te,
372
- class: "vue-data-ui-no-title-space",
373
- style: "height:36px; width: 100%;background:transparent"
374
- }, null, 512)) : d("", !0),
375
- e.value.style.chart.title.text ? (r(), v("div", {
376
- key: 2,
377
- ref_key: "chartTitle",
378
- ref: le,
379
- style: "width:100%;background:transparent"
380
- }, [
381
- z(bt, {
382
- config: {
383
- title: {
384
- cy: "mood-radar-title",
385
- ...e.value.style.chart.title
386
- },
387
- subtitle: {
388
- cy: "mood-radar-subtitle",
389
- ...e.value.style.chart.title.subtitle
390
- }
391
- }
392
- }, null, 8, ["config"])
393
- ], 512)) : d("", !0),
394
- s("div", {
395
- id: `legend-top-${k.value}`
396
- }, null, 8, _t),
397
- e.value.userOptions.show && re.value && (a(de) || a(q)) ? (r(), m(a(De), {
398
- key: 3,
399
- ref_key: "userOptionsRef",
400
- ref: X,
401
- backgroundColor: e.value.style.chart.backgroundColor,
402
- color: e.value.style.chart.color,
403
- isPrinting: a(ve),
404
- isImaging: a(ye),
405
- uid: k.value,
406
- hasPdf: e.value.userOptions.buttons.pdf,
407
- hasXls: e.value.userOptions.buttons.csv,
408
- hasImg: e.value.userOptions.buttons.img,
409
- hasTable: e.value.userOptions.buttons.table,
410
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
411
- isFullscreen: O.value,
412
- titles: { ...e.value.userOptions.buttonTitles },
413
- chartElement: C.value,
414
- position: e.value.userOptions.position,
415
- hasAnnotator: e.value.userOptions.buttons.annotator,
416
- isAnnotation: U.value,
417
- callbacks: e.value.userOptions.callbacks,
418
- printScale: e.value.userOptions.print.scale,
419
- tableDialog: e.value.table.useDialog,
420
- onToggleFullscreen: ge,
421
- onGeneratePdf: a(he),
422
- onGenerateCsv: Z,
423
- onGenerateImage: a(fe),
424
- onToggleTable: pe,
425
- onToggleAnnotator: ee,
426
- style: j({
427
- visibility: a(de) ? a(q) ? "visible" : "hidden" : "visible"
428
- })
429
- }, Ce({ _: 2 }, [
430
- o.$slots.menuIcon ? {
431
- name: "menuIcon",
432
- fn: y(({ isOpen: t, color: i }) => [
433
- f(o.$slots, "menuIcon", W(G({ isOpen: t, color: i })), void 0, !0)
434
- ]),
435
- key: "0"
436
- } : void 0,
437
- o.$slots.optionPdf ? {
438
- name: "optionPdf",
439
- fn: y(() => [
440
- f(o.$slots, "optionPdf", {}, void 0, !0)
441
- ]),
442
- key: "1"
443
- } : void 0,
444
- o.$slots.optionCsv ? {
445
- name: "optionCsv",
446
- fn: y(() => [
447
- f(o.$slots, "optionCsv", {}, void 0, !0)
448
- ]),
449
- key: "2"
450
- } : void 0,
451
- o.$slots.optionImg ? {
452
- name: "optionImg",
453
- fn: y(() => [
454
- f(o.$slots, "optionImg", {}, void 0, !0)
455
- ]),
456
- key: "3"
457
- } : void 0,
458
- o.$slots.optionTable ? {
459
- name: "optionTable",
460
- fn: y(() => [
461
- f(o.$slots, "optionTable", {}, void 0, !0)
462
- ]),
463
- key: "4"
464
- } : void 0,
465
- o.$slots.optionFullscreen ? {
466
- name: "optionFullscreen",
467
- fn: y(({ toggleFullscreen: t, isFullscreen: i }) => [
468
- f(o.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
469
- ]),
470
- key: "5"
471
- } : void 0,
472
- o.$slots.optionAnnotator ? {
473
- name: "optionAnnotator",
474
- fn: y(({ toggleAnnotator: t, isAnnotator: i }) => [
475
- f(o.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
476
- ]),
477
- key: "6"
478
- } : void 0
479
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
480
- (r(), v("svg", {
481
- ref_key: "svgRef",
482
- ref: ce,
483
- xmlns: a(nt),
484
- viewBox: `0 0 ${n.value.width} ${n.value.height}`,
485
- class: be({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
486
- style: j(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
487
- }, [
488
- z(a(Se)),
489
- o.$slots["chart-background"] ? (r(), v("foreignObject", {
490
- key: 0,
491
- x: 0,
492
- y: 0,
493
- width: n.value.width,
494
- height: n.value.height,
495
- style: {
496
- pointerEvents: "none"
497
- }
498
- }, [
499
- f(o.$slots, "chart-background", {}, void 0, !0)
500
- ], 8, Mt)) : d("", !0),
501
- s("defs", null, [
502
- s("radialGradient", {
503
- cx: "50%",
504
- cy: "50%",
505
- r: "50%",
506
- fx: "50%",
507
- fy: "50%",
508
- id: `mood_radar_gradient_${k.value}`
509
- }, [
510
- s("stop", {
511
- offset: "0%",
512
- "stop-color": a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
513
- }, null, 8, Pt),
514
- s("stop", {
515
- offset: "100%",
516
- "stop-color": a(x)(a(rt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
517
- }, null, 8, Nt)
518
- ], 8, Tt)
519
- ]),
520
- (r(!0), v(we, null, xe(J.value.coordinates, (t) => (r(), v("line", {
521
- x1: n.value.width / 2,
522
- y1: n.value.height / 2,
523
- x2: t.x,
524
- y2: t.y,
525
- stroke: e.value.style.chart.layout.grid.stroke,
526
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth
527
- }, null, 8, Ot))), 256)),
528
- s("path", {
529
- d: J.value.path,
530
- fill: "none",
531
- stroke: e.value.style.chart.layout.outerPolygon.stroke,
532
- "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
533
- "stroke-linejoin": "round",
534
- "stroke-linecap": "round"
535
- }, null, 8, Lt),
536
- s("g", {
537
- transform: S("5")
538
- }, [
539
- s("path", {
540
- fill: "none",
541
- stroke: e.value.style.chart.layout.smileys.colors[5],
542
- "stroke-width": "1",
543
- "stroke-linecap": "round",
544
- 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"
545
- }, null, 8, Dt),
546
- s("circle", {
547
- class: "vue-ui-mood-radar-trap",
548
- cx: "128",
549
- cy: "25",
550
- r: "20",
551
- fill: p.value === "5" ? a(x)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
552
- onMouseenter: l[0] || (l[0] = (t) => F("5")),
553
- onMouseleave: l[1] || (l[1] = (t) => B("5")),
554
- onClick: l[2] || (l[2] = (t) => N("5"))
555
- }, null, 40, St)
556
- ], 8, It),
557
- s("g", {
558
- transform: S("4")
559
- }, [
560
- s("path", {
561
- fill: "none",
562
- stroke: e.value.style.chart.layout.smileys.colors[4],
563
- "stroke-width": "1",
564
- "stroke-linecap": "round",
565
- 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"
566
- }, null, 8, Bt),
567
- s("circle", {
568
- class: "vue-ui-mood-radar-trap",
569
- cx: "227",
570
- cy: "95.5",
571
- r: "20",
572
- fill: p.value === "4" ? a(x)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
573
- onMouseenter: l[3] || (l[3] = (t) => F("4")),
574
- onMouseleave: l[4] || (l[4] = (t) => B("4")),
575
- onClick: l[5] || (l[5] = (t) => N("4"))
576
- }, null, 40, Rt)
577
- ], 8, Ft),
578
- s("g", {
579
- transform: S("3")
580
- }, [
581
- s("path", {
582
- fill: "none",
583
- stroke: e.value.style.chart.layout.smileys.colors[3],
584
- "stroke-width": "1",
585
- "stroke-linecap": "round",
586
- 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"
587
- }, null, 8, Vt),
588
- s("circle", {
589
- class: "vue-ui-mood-radar-trap",
590
- cx: "190",
591
- cy: "213.5",
592
- r: "20",
593
- fill: p.value === "3" ? a(x)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
594
- onMouseenter: l[6] || (l[6] = (t) => F("3")),
595
- onMouseleave: l[7] || (l[7] = (t) => B("3")),
596
- onClick: l[8] || (l[8] = (t) => N("3"))
597
- }, null, 40, Ut)
598
- ], 8, Et),
599
- s("g", {
600
- transform: S("2")
601
- }, [
602
- s("path", {
603
- fill: "none",
604
- stroke: e.value.style.chart.layout.smileys.colors[2],
605
- "stroke-width": "1",
606
- "stroke-linecap": "round",
607
- 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"
608
- }, null, 8, zt),
609
- s("circle", {
610
- class: "vue-ui-mood-radar-trap",
611
- cx: "65",
612
- cy: "213.5",
613
- r: "20",
614
- fill: p.value === "2" ? a(x)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
615
- onMouseenter: l[9] || (l[9] = (t) => F("2")),
616
- onMouseleave: l[10] || (l[10] = (t) => B("2")),
617
- onClick: l[11] || (l[11] = (t) => N("2"))
618
- }, null, 40, Wt)
619
- ], 8, jt),
620
- s("g", {
621
- transform: S("1")
622
- }, [
623
- s("path", {
624
- fill: "none",
625
- stroke: e.value.style.chart.layout.smileys.colors[1],
626
- "stroke-width": "1",
627
- "stroke-linecap": "round",
628
- 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"
629
- }, null, 8, Ht),
630
- s("circle", {
631
- class: "vue-ui-mood-radar-trap",
632
- cx: "29",
633
- cy: "95.5",
634
- r: "20",
635
- fill: p.value === "1" ? a(x)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
636
- onMouseenter: l[12] || (l[12] = (t) => F("1")),
637
- onMouseleave: l[13] || (l[13] = (t) => B("1")),
638
- onClick: l[14] || (l[14] = (t) => N("1"))
639
- }, null, 40, Xt)
640
- ], 8, Gt),
641
- s("path", {
642
- d: a(ut)(Q.value.map((t) => t.plots)),
643
- stroke: e.value.style.chart.layout.dataPolygon.stroke,
644
- "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
645
- "stroke-linecap": "round",
646
- "stroke-linejoin": "round",
647
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
648
- }, null, 8, Kt),
649
- (r(!0), v(we, null, xe(Q.value.map((t) => t.plots), (t, i) => (r(), v("g", {
650
- class: "vue-ui-mood-radar-trap",
651
- style: j(`opacity:${p.value == t.key ? "1" : "0"}`)
652
- }, [
653
- s("line", {
654
- x1: t.x,
655
- y1: t.y,
656
- x2: n.value.width / 2,
657
- y2: n.value.height / 2,
658
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
659
- }, null, 8, qt),
660
- s("circle", {
661
- cx: t.x,
662
- cy: t.y,
663
- fill: e.value.style.chart.layout.smileys.colors[t.key],
664
- r: "3",
665
- stroke: e.value.style.chart.backgroundColor,
666
- "stroke-width": 0.5
667
- }, null, 8, Yt),
668
- s("circle", {
669
- cx: n.value.width / 2,
670
- cy: n.value.height / 2,
671
- fill: e.value.style.chart.layout.smileys.colors[t.key],
672
- r: "3",
673
- stroke: e.value.style.chart.backgroundColor,
674
- "stroke-width": 0.5
675
- }, null, 8, Jt),
676
- s("text", {
677
- x: n.value.width / 2,
678
- y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
679
- fill: e.value.style.chart.layout.dataLabel.color,
680
- "font-size": "12",
681
- "text-anchor": "middle",
682
- "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
683
- }, L(a(Me)(
684
- e.value.style.chart.layout.dataLabel.formatter,
685
- t.value,
686
- a(H)({
687
- p: e.value.style.chart.layout.dataLabel.prefix,
688
- v: t.value,
689
- s: e.value.style.chart.layout.dataLabel.suffix,
690
- r: e.value.style.chart.layout.dataLabel.roundingValue
691
- }),
692
- { datapoint: t, seriesIndex: i }
693
- )), 9, Qt),
694
- s("text", {
695
- x: n.value.width / 2,
696
- y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
697
- fill: e.value.style.chart.layout.dataLabel.color,
698
- "font-size": "12",
699
- "text-anchor": "middle"
700
- }, " (" + L(a(H)({
701
- v: t.value / M.value * 100,
702
- s: "%",
703
- r: e.value.style.chart.layout.dataLabel.roundingPercentage
704
- })) + ") ", 9, Zt)
705
- ], 4))), 256)),
706
- f(o.$slots, "svg", { svg: n.value }, void 0, !0)
707
- ], 14, At)),
708
- o.$slots.watermark ? (r(), v("div", eo, [
709
- f(o.$slots, "watermark", W(G({ isPrinting: a(ve) || a(ye) })), void 0, !0)
710
- ])) : d("", !0),
711
- s("div", {
712
- id: `legend-bottom-${k.value}`
713
- }, null, 8, to),
714
- ne.value ? (r(), m(Ze, {
715
- key: 5,
716
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
717
- }, [
718
- s("div", {
719
- ref_key: "chartLegend",
720
- ref: ae
721
- }, [
722
- e.value.style.chart.legend.show ? (r(), m(wt, {
723
- legendSet: h.value,
724
- config: He.value,
725
- key: `legend_${oe.value}`,
726
- style: { display: "flex", "row-gap": "6px" }
727
- }, {
728
- item: y(({ legend: t, index: i }) => [
729
- s("div", {
730
- onClick: () => Xe(t.key),
731
- style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
732
- }, [
733
- t.key == 1 ? (r(), m(a(P), {
734
- key: 0,
735
- strokeWidth: 1,
736
- name: "moodSad",
737
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
738
- }, null, 8, ["stroke"])) : d("", !0),
739
- t.key == 2 ? (r(), m(a(P), {
740
- key: 1,
741
- strokeWidth: 1,
742
- name: "moodFlat",
743
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
744
- }, null, 8, ["stroke"])) : d("", !0),
745
- t.key == 3 ? (r(), m(a(P), {
746
- key: 2,
747
- strokeWidth: 1,
748
- name: "moodNeutral",
749
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
750
- }, null, 8, ["stroke"])) : d("", !0),
751
- t.key == 4 ? (r(), m(a(P), {
752
- key: 3,
753
- strokeWidth: 1,
754
- name: "smiley",
755
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
756
- }, null, 8, ["stroke"])) : d("", !0),
757
- t.key == 5 ? (r(), m(a(P), {
758
- key: 4,
759
- strokeWidth: 1,
760
- name: "moodHappy",
761
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
762
- }, null, 8, ["stroke"])) : d("", !0),
763
- a(K) ? d("", !0) : (r(), v("span", lo, L(a(Me)(
764
- e.value.style.chart.layout.dataLabel.formatter,
765
- t.value,
766
- a(H)({
767
- p: e.value.style.chart.layout.dataLabel.prefix,
768
- v: t.value,
769
- s: e.value.style.chart.layout.dataLabel.suffix,
770
- r: e.value.style.chart.layout.dataLabel.roundingValue
771
- }),
772
- { datapoint: t, seriesIndex: i }
773
- )), 1)),
774
- a(K) ? d("", !0) : (r(), v("span", ao, "(" + L(a(H)({
775
- v: t.proportion * 100,
776
- s: "%",
777
- r: e.value.style.chart.legend.roundingPercentage
778
- })) + ")", 1))
779
- ], 8, oo)
780
- ]),
781
- _: 1
782
- }, 8, ["legendSet", "config"])) : d("", !0),
783
- f(o.$slots, "legend", { legend: h.value }, void 0, !0)
784
- ], 512)
785
- ], 8, ["to"])) : d("", !0),
786
- o.$slots.source ? (r(), v("div", {
787
- key: 6,
788
- ref_key: "source",
789
- ref: se,
790
- dir: "auto"
791
- }, [
792
- f(o.$slots, "source", {}, void 0, !0)
793
- ], 512)) : d("", !0),
794
- re.value && e.value.userOptions.buttons.table ? (r(), m(et(R.value.component), tt({ key: 7 }, R.value.props, {
795
- ref_key: "tableUnit",
796
- ref: D,
797
- onClose: me
798
- }), Ce({
799
- content: y(() => [
800
- z(a(Le), {
801
- colNames: V.value.colNames,
802
- head: V.value.head,
803
- body: V.value.body,
804
- config: V.value.config,
805
- title: e.value.table.useDialog ? "" : R.value.title,
806
- withCloseButton: !e.value.table.useDialog,
807
- onClose: me
808
- }, {
809
- th: y(({ th: t }) => [
810
- s("div", {
811
- innerHTML: t,
812
- style: { display: "flex", "align-items": "center" }
813
- }, null, 8, so)
814
- ]),
815
- td: y(({ td: t }) => [
816
- $e(L(t.name || t), 1)
817
- ]),
818
- _: 1
819
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
820
- ]),
821
- _: 2
822
- }, [
823
- e.value.table.useDialog ? {
824
- name: "title",
825
- fn: y(() => [
826
- $e(L(R.value.title), 1)
827
- ]),
828
- key: "0"
829
- } : void 0,
830
- e.value.table.useDialog ? {
831
- name: "actions",
832
- fn: y(() => [
833
- s("button", {
834
- tabindex: "0",
835
- class: "vue-ui-user-options-button",
836
- onClick: l[15] || (l[15] = (t) => Z(e.value.userOptions.callbacks.csv))
837
- }, [
838
- z(a(P), {
839
- name: "excel",
840
- stroke: R.value.props.color
841
- }, null, 8, ["stroke"])
842
- ])
843
- ]),
844
- key: "1"
845
- } : void 0
846
- ]), 1040)) : d("", !0),
847
- a(K) ? (r(), m(ft, { key: 8 })) : d("", !0)
848
- ], 46, $t));
849
- }
850
- }, Co = /* @__PURE__ */ xt(no, [["__scopeId", "data-v-d1ea7bd8"]]);
851
- export {
852
- Co as default
853
- };