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
@@ -1,670 +0,0 @@
1
- import { defineAsyncComponent as _, computed as c, onMounted as Oe, ref as h, watch as Te, createElementBlock as f, openBlock as r, unref as a, normalizeStyle as F, normalizeClass as oe, createBlock as g, createCommentVNode as i, renderSlot as v, createVNode as E, createSlots as Ie, withCtx as p, normalizeProps as S, guardReactiveProps as V, createElementVNode as s, Fragment as le, renderList as ae, toDisplayString as T, createTextVNode as se, nextTick as Le } from "vue";
2
- import { u as Fe, o as Se, e as re, c as Ve, a as Re, R as je, X as Be, s as w, w as Ue, S as Ee, i as ne, f as R, q as We, r as ze } from "./index-CgShIRes.js";
3
- import { u as ue } from "./useNestedProp-BC4Ciblw.js";
4
- import { u as De } from "./usePrinter-rIrqBbbm.js";
5
- import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Xe from "./Legend-BZ06qU55.js";
8
- import Ke from "./Title-B2dA6-uH.js";
9
- import qe from "./img-C_9wps3s.js";
10
- import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Je = ["id"], Qe = {
12
- key: 2,
13
- style: "width:100%;background:transparent"
14
- }, Ze = ["xmlns", "viewBox"], et = ["width", "height"], tt = ["id"], ot = ["stop-color"], lt = ["stop-color"], at = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], st = ["d", "stroke", "stroke-width"], rt = ["stroke"], nt = ["fill"], ut = ["stroke"], it = ["fill"], dt = ["stroke"], ct = ["fill"], vt = ["stroke"], yt = ["fill"], ht = ["stroke"], ft = ["fill"], pt = ["d", "stroke", "stroke-width", "fill"], mt = ["x1", "y1", "stroke"], gt = ["cx", "cy", "fill", "stroke"], kt = ["fill", "stroke"], bt = ["y", "fill", "font-weight"], Ct = ["y", "fill"], wt = {
15
- key: 5,
16
- class: "vue-data-ui-watermark"
17
- }, xt = ["onClick"], _t = { style: { "font-weight": "bold" } }, $t = {
18
- key: 8,
19
- ref: "source",
20
- dir: "auto"
21
- }, Mt = ["innerHTML"], Pt = {
22
- __name: "vue-ui-mood-radar",
23
- props: {
24
- config: {
25
- type: Object,
26
- default() {
27
- return {};
28
- }
29
- },
30
- dataset: {
31
- type: Object,
32
- default() {
33
- return {};
34
- }
35
- }
36
- },
37
- setup(ie, { expose: de }) {
38
- const ce = _(() => import("./vue-ui-accordion-hlzscmAS.js")), $ = _(() => import("./BaseIcon-DxUUKVlt.js")), ve = _(() => import("./DataTable--paavNqF.js")), ye = _(() => import("./PackageVersion-2QvaZf9_.js")), he = _(() => import("./PenAndPaper-hGgW0EHz.js")), fe = _(() => import("./vue-ui-skeleton-BsBaCvoE.js")), pe = _(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_mood_radar: me } = Fe(), d = ie, M = c(() => !!d.dataset && Object.keys(d.dataset).length);
39
- Oe(() => {
40
- W();
41
- });
42
- function W() {
43
- Se(d.dataset) && re({
44
- componentName: "VueUiMoodRadar",
45
- type: "dataset"
46
- });
47
- }
48
- const P = h(Ve()), N = h(null), ge = h(null), n = h(null), ke = h(null), be = h(0), Ce = h(0), z = h(0), e = c({
49
- get: () => X(),
50
- set: (o) => o
51
- }), { userOptionsVisible: j, setUserOptionsVisibility: D, keepUserOptionState: G } = Ge({ config: e.value }), { svgRef: H } = He({ config: e.value.style.chart.title });
52
- function X() {
53
- const o = ue({
54
- userConfig: d.config,
55
- defaultConfig: me
56
- });
57
- return o.theme ? {
58
- ...ue({
59
- userConfig: Re.vue_ui_mood_radar[o.theme] || d.config,
60
- defaultConfig: o
61
- })
62
- } : o;
63
- }
64
- Te(() => d.config, (o) => {
65
- e.value = X(), j.value = !e.value.userOptions.showOnChartHover, W(), be.value += 1, Ce.value += 1, z.value += 1, A.value.showTable = e.value.table.show;
66
- }, { deep: !0 });
67
- const { isPrinting: K, isImaging: q, generatePdf: Y, generateImage: J } = De({
68
- elementId: P.value,
69
- fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
70
- options: e.value.userOptions.print
71
- }), we = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = h({
72
- showTable: e.value.table.show
73
- }), m = c(() => ({
74
- height: 256,
75
- width: 256
76
- })), B = c(() => je({
77
- plot: { x: 128, y: m.value.height / 2 },
78
- radius: 90,
79
- sides: 5,
80
- rotation: 11
81
- }));
82
- function xe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: b, key: y, value: Ae }) {
83
- return {
84
- x: o + (t - o) * b,
85
- y: l + (u - l) * b,
86
- key: y,
87
- value: Ae
88
- };
89
- }
90
- const _e = c(() => Math.max(...Object.values(d.dataset).map((o) => isNaN(o) ? 0 : o))), x = c(() => Object.values(d.dataset).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), k = c(() => Object.keys(d.dataset).map((o, l) => {
91
- const t = typeof d.dataset[o] != "number" || isNaN(d.dataset[o]) ? 0 : d.dataset[o];
92
- return {
93
- index: l,
94
- key: o,
95
- value: t,
96
- proportion: t / x.value,
97
- color: e.value.style.chart.layout.smileys.colors[o]
98
- };
99
- }).sort((o, l) => l.key - o.key)), Q = c(() => M.value ? (["1", "2", "3", "4", "5"].forEach((o) => {
100
- [null, void 0].includes(d.dataset[o]) && re({
101
- componentName: "VueUiMoodRadar",
102
- type: "datasetAttribute",
103
- property: o
104
- });
105
- }), B.value.coordinates.map((o, l) => {
106
- const t = xe({
107
- centerX: m.value.width / 2,
108
- centerY: m.value.height / 2,
109
- apexX: o.x,
110
- apexY: o.y,
111
- proportion: k.value[l].value / _e.value,
112
- key: k.value[l].key,
113
- value: k.value[l].value
114
- });
115
- return {
116
- ...o,
117
- plots: t,
118
- key: k.value[l].key
119
- };
120
- })) : []), $e = c(() => ({
121
- cy: "mood-radar-legend",
122
- backgroundColor: e.value.style.chart.legend.backgroundColor,
123
- color: e.value.style.chart.legend.color,
124
- fontSize: e.value.style.chart.legend.fontSize,
125
- paddingBottom: 12,
126
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
127
- }));
128
- function Me(o) {
129
- o === n.value ? n.value = null : n.value = o;
130
- }
131
- const C = c(() => {
132
- const o = k.value.map((t) => ({
133
- name: t.key,
134
- color: t.color
135
- })), l = k.value.map((t) => isNaN(t.value) ? 0 : t.value);
136
- return { head: o, body: l };
137
- });
138
- function Z(o = null) {
139
- Le(() => {
140
- const l = C.value.head.map((b, y) => [[
141
- b.name
142
- ], [C.value.body[y]], [isNaN(C.value.body[y] / x.value) ? "-" : C.value.body[y] / x.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), u = We(t);
143
- o ? o(u) : ze({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
144
- });
145
- }
146
- const I = c(() => {
147
- const o = [
148
- ' <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>',
149
- Number(x.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
150
- "100%"
151
- ], l = C.value.head.map((b, y) => [
152
- {
153
- color: b.color,
154
- name: b.name
155
- },
156
- C.value.body[y].toFixed(e.value.table.td.roundingValue),
157
- isNaN(C.value.body[y] / x.value) ? "-" : (C.value.body[y] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
158
- ]), t = {
159
- th: {
160
- backgroundColor: e.value.table.th.backgroundColor,
161
- color: e.value.table.th.color,
162
- outline: e.value.table.th.outline
163
- },
164
- td: {
165
- backgroundColor: e.value.table.td.backgroundColor,
166
- color: e.value.table.td.color,
167
- outline: e.value.table.td.outline
168
- },
169
- breakpoint: e.value.table.responsiveBreakpoint
170
- }, u = [
171
- e.value.table.columnNames.series,
172
- e.value.table.columnNames.value,
173
- e.value.table.columnNames.percentage
174
- ];
175
- return {
176
- head: o,
177
- body: l,
178
- config: t,
179
- colNames: u
180
- };
181
- });
182
- function Pe() {
183
- return k.value;
184
- }
185
- function ee() {
186
- A.value.showTable = !A.value.showTable;
187
- }
188
- const O = h(!1);
189
- function te(o) {
190
- O.value = o;
191
- }
192
- const L = h(!1);
193
- function U() {
194
- L.value = !L.value;
195
- }
196
- async function Ne({ scale: o = 2 } = {}) {
197
- if (!N.value) return;
198
- const { width: l, height: t } = N.value.getBoundingClientRect(), u = l / t, { imageUri: b, base64: y } = await qe({ domElement: N.value, base64: !0, img: !0, scale: o });
199
- return {
200
- imageUri: b,
201
- base64: y,
202
- title: e.value.style.chart.title.text,
203
- width: l,
204
- height: t,
205
- aspectRatio: u
206
- };
207
- }
208
- return de({
209
- getData: Pe,
210
- getImage: Ne,
211
- generatePdf: Y,
212
- generateCsv: Z,
213
- generateImage: J,
214
- toggleTable: ee,
215
- toggleAnnotator: U,
216
- toggleFullscreen: te
217
- }), (o, l) => (r(), f("div", {
218
- class: oe(`vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
219
- ref_key: "moodRadarChart",
220
- ref: N,
221
- id: `${P.value}`,
222
- style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
223
- onMouseenter: l[11] || (l[11] = () => a(D)(!0)),
224
- onMouseleave: l[12] || (l[12] = () => a(D)(!1))
225
- }, [
226
- e.value.userOptions.buttons.annotator ? (r(), g(a(he), {
227
- key: 0,
228
- svgRef: a(H),
229
- backgroundColor: e.value.style.chart.backgroundColor,
230
- color: e.value.style.chart.color,
231
- active: L.value,
232
- onClose: U
233
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
234
- we.value ? (r(), f("div", {
235
- key: 1,
236
- ref_key: "noTitle",
237
- ref: ke,
238
- class: "vue-data-ui-no-title-space",
239
- style: "height:36px; width: 100%;background:transparent"
240
- }, null, 512)) : i("", !0),
241
- e.value.style.chart.title.text ? (r(), f("div", Qe, [
242
- E(Ke, {
243
- config: {
244
- title: {
245
- cy: "mood-radar-title",
246
- ...e.value.style.chart.title
247
- },
248
- subtitle: {
249
- cy: "mood-radar-subtitle",
250
- ...e.value.style.chart.title.subtitle
251
- }
252
- }
253
- }, null, 8, ["config"])
254
- ])) : i("", !0),
255
- e.value.userOptions.show && M.value && (a(G) || a(j)) ? (r(), g(a(pe), {
256
- key: 3,
257
- ref_key: "details",
258
- ref: ge,
259
- backgroundColor: e.value.style.chart.backgroundColor,
260
- color: e.value.style.chart.color,
261
- isPrinting: a(K),
262
- isImaging: a(q),
263
- uid: P.value,
264
- hasPdf: e.value.userOptions.buttons.pdf,
265
- hasXls: e.value.userOptions.buttons.csv,
266
- hasImg: e.value.userOptions.buttons.img,
267
- hasTable: e.value.userOptions.buttons.table,
268
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
269
- isFullscreen: O.value,
270
- titles: { ...e.value.userOptions.buttonTitles },
271
- chartElement: N.value,
272
- position: e.value.userOptions.position,
273
- hasAnnotator: e.value.userOptions.buttons.annotator,
274
- isAnnotation: L.value,
275
- callbacks: e.value.userOptions.callbacks,
276
- printScale: e.value.userOptions.print.scale,
277
- onToggleFullscreen: te,
278
- onGeneratePdf: a(Y),
279
- onGenerateCsv: Z,
280
- onGenerateImage: a(J),
281
- onToggleTable: ee,
282
- onToggleAnnotator: U,
283
- style: F({
284
- visibility: a(G) ? a(j) ? "visible" : "hidden" : "visible"
285
- })
286
- }, Ie({ _: 2 }, [
287
- o.$slots.menuIcon ? {
288
- name: "menuIcon",
289
- fn: p(({ isOpen: t, color: u }) => [
290
- v(o.$slots, "menuIcon", S(V({ isOpen: t, color: u })), void 0, !0)
291
- ]),
292
- key: "0"
293
- } : void 0,
294
- o.$slots.optionPdf ? {
295
- name: "optionPdf",
296
- fn: p(() => [
297
- v(o.$slots, "optionPdf", {}, void 0, !0)
298
- ]),
299
- key: "1"
300
- } : void 0,
301
- o.$slots.optionCsv ? {
302
- name: "optionCsv",
303
- fn: p(() => [
304
- v(o.$slots, "optionCsv", {}, void 0, !0)
305
- ]),
306
- key: "2"
307
- } : void 0,
308
- o.$slots.optionImg ? {
309
- name: "optionImg",
310
- fn: p(() => [
311
- v(o.$slots, "optionImg", {}, void 0, !0)
312
- ]),
313
- key: "3"
314
- } : void 0,
315
- o.$slots.optionTable ? {
316
- name: "optionTable",
317
- fn: p(() => [
318
- v(o.$slots, "optionTable", {}, void 0, !0)
319
- ]),
320
- key: "4"
321
- } : void 0,
322
- o.$slots.optionFullscreen ? {
323
- name: "optionFullscreen",
324
- fn: p(({ toggleFullscreen: t, isFullscreen: u }) => [
325
- v(o.$slots, "optionFullscreen", S(V({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
326
- ]),
327
- key: "5"
328
- } : void 0,
329
- o.$slots.optionAnnotator ? {
330
- name: "optionAnnotator",
331
- fn: p(({ toggleAnnotator: t, isAnnotator: u }) => [
332
- v(o.$slots, "optionAnnotator", S(V({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
333
- ]),
334
- key: "6"
335
- } : void 0
336
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
337
- M.value ? (r(), f("svg", {
338
- key: 4,
339
- ref_key: "svgRef",
340
- ref: H,
341
- xmlns: a(Be),
342
- viewBox: `0 0 ${m.value.width} ${m.value.height}`,
343
- class: oe({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
344
- style: F(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
345
- }, [
346
- E(a(ye)),
347
- o.$slots["chart-background"] ? (r(), f("foreignObject", {
348
- key: 0,
349
- x: 0,
350
- y: 0,
351
- width: m.value.width,
352
- height: m.value.height,
353
- style: {
354
- pointerEvents: "none"
355
- }
356
- }, [
357
- v(o.$slots, "chart-background", {}, void 0, !0)
358
- ], 8, et)) : i("", !0),
359
- s("defs", null, [
360
- s("radialGradient", {
361
- cx: "50%",
362
- cy: "50%",
363
- r: "50%",
364
- fx: "50%",
365
- fy: "50%",
366
- id: `mood_radar_gradient_${P.value}`
367
- }, [
368
- s("stop", {
369
- offset: "0%",
370
- "stop-color": a(w)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
371
- }, null, 8, ot),
372
- s("stop", {
373
- offset: "100%",
374
- "stop-color": a(w)(a(Ue)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
375
- }, null, 8, lt)
376
- ], 8, tt)
377
- ]),
378
- (r(!0), f(le, null, ae(B.value.coordinates, (t) => (r(), f("line", {
379
- x1: m.value.width / 2,
380
- y1: m.value.height / 2,
381
- x2: t.x,
382
- y2: t.y,
383
- stroke: e.value.style.chart.layout.grid.stroke,
384
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth
385
- }, null, 8, at))), 256)),
386
- s("path", {
387
- d: B.value.path,
388
- fill: "none",
389
- stroke: e.value.style.chart.layout.outerPolygon.stroke,
390
- "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
391
- "stroke-linejoin": "round",
392
- "stroke-linecap": "round"
393
- }, null, 8, st),
394
- s("path", {
395
- fill: "none",
396
- stroke: e.value.style.chart.layout.smileys.colors[5],
397
- "stroke-width": "1",
398
- "stroke-linecap": "round",
399
- 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"
400
- }, null, 8, rt),
401
- s("circle", {
402
- class: "vue-ui-mood-radar-trap",
403
- onMouseenter: l[0] || (l[0] = (t) => n.value = 5),
404
- onMouseleave: l[1] || (l[1] = (t) => n.value = null),
405
- cx: "128",
406
- cy: "25",
407
- r: "20",
408
- fill: n.value === 5 ? a(w)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
409
- }, null, 40, nt),
410
- s("path", {
411
- fill: "none",
412
- stroke: e.value.style.chart.layout.smileys.colors[4],
413
- "stroke-width": "1",
414
- "stroke-linecap": "round",
415
- 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"
416
- }, null, 8, ut),
417
- s("circle", {
418
- class: "vue-ui-mood-radar-trap",
419
- onMouseenter: l[2] || (l[2] = (t) => n.value = 4),
420
- onMouseleave: l[3] || (l[3] = (t) => n.value = null),
421
- cx: "227",
422
- cy: "95.5",
423
- r: "20",
424
- fill: n.value === 4 ? a(w)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
425
- }, null, 40, it),
426
- s("path", {
427
- fill: "none",
428
- stroke: e.value.style.chart.layout.smileys.colors[3],
429
- "stroke-width": "1",
430
- "stroke-linecap": "round",
431
- 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"
432
- }, null, 8, dt),
433
- s("circle", {
434
- class: "vue-ui-mood-radar-trap",
435
- onMouseenter: l[4] || (l[4] = (t) => n.value = 3),
436
- onMouseleave: l[5] || (l[5] = (t) => n.value = null),
437
- cx: "190",
438
- cy: "213.5",
439
- r: "20",
440
- fill: n.value === 3 ? a(w)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
441
- }, null, 40, ct),
442
- s("path", {
443
- fill: "none",
444
- stroke: e.value.style.chart.layout.smileys.colors[2],
445
- "stroke-width": "1",
446
- "stroke-linecap": "round",
447
- 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"
448
- }, null, 8, vt),
449
- s("circle", {
450
- class: "vue-ui-mood-radar-trap",
451
- onMouseenter: l[6] || (l[6] = (t) => n.value = 2),
452
- onMouseleave: l[7] || (l[7] = (t) => n.value = null),
453
- cx: "65",
454
- cy: "213.5",
455
- r: "20",
456
- fill: n.value === 2 ? a(w)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
457
- }, null, 40, yt),
458
- s("path", {
459
- fill: "none",
460
- stroke: e.value.style.chart.layout.smileys.colors[1],
461
- "stroke-width": "1",
462
- "stroke-linecap": "round",
463
- 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"
464
- }, null, 8, ht),
465
- s("circle", {
466
- class: "vue-ui-mood-radar-trap",
467
- onMouseenter: l[8] || (l[8] = (t) => n.value = 1),
468
- onMouseleave: l[9] || (l[9] = (t) => n.value = null),
469
- cx: "29",
470
- cy: "95.5",
471
- r: "20",
472
- fill: n.value === 1 ? a(w)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
473
- }, null, 40, ft),
474
- s("path", {
475
- d: a(Ee)(Q.value.map((t) => t.plots)),
476
- stroke: e.value.style.chart.layout.dataPolygon.stroke,
477
- "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
478
- "stroke-linecap": "round",
479
- "stroke-linejoin": "round",
480
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(w)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
481
- }, null, 8, pt),
482
- (r(!0), f(le, null, ae(Q.value.map((t) => t.plots), (t, u) => (r(), f("g", {
483
- class: "vue-ui-mood-radar-trap",
484
- style: F(`opacity:${n.value == t.key ? "1" : "0"}`)
485
- }, [
486
- s("line", {
487
- x1: t.x,
488
- y1: t.y,
489
- x2: 128,
490
- y2: 128,
491
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
492
- }, null, 8, mt),
493
- s("circle", {
494
- cx: t.x,
495
- cy: t.y,
496
- fill: e.value.style.chart.layout.smileys.colors[t.key],
497
- r: "3",
498
- stroke: e.value.style.chart.backgroundColor,
499
- "stroke-width": 0.5
500
- }, null, 8, gt),
501
- s("circle", {
502
- cx: 128,
503
- cy: 128,
504
- fill: e.value.style.chart.layout.smileys.colors[t.key],
505
- r: "3",
506
- stroke: e.value.style.chart.backgroundColor,
507
- "stroke-width": 0.5
508
- }, null, 8, kt),
509
- s("text", {
510
- x: 128,
511
- y: ["5", 5].includes(t.key) ? 145 : 120,
512
- fill: e.value.style.chart.layout.dataLabel.color,
513
- "font-size": "12",
514
- "text-anchor": "middle",
515
- "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
516
- }, T(a(ne)(
517
- e.value.style.chart.layout.dataLabel.formatter,
518
- t.value,
519
- a(R)({
520
- p: e.value.style.chart.layout.dataLabel.prefix,
521
- v: t.value,
522
- s: e.value.style.chart.layout.dataLabel.suffix,
523
- r: e.value.style.chart.layout.dataLabel.roundingValue
524
- }),
525
- { datapoint: t, seriesIndex: u }
526
- )), 9, bt),
527
- s("text", {
528
- x: 128,
529
- y: ["5", 5].includes(t.key) ? 163 : 102,
530
- fill: e.value.style.chart.layout.dataLabel.color,
531
- "font-size": "12",
532
- "text-anchor": "middle"
533
- }, " (" + T(a(R)({
534
- v: t.value / x.value * 100,
535
- s: "%",
536
- r: e.value.style.chart.layout.dataLabel.roundingPercentage
537
- })) + ") ", 9, Ct)
538
- ], 4))), 256)),
539
- v(o.$slots, "svg", { svg: m.value }, void 0, !0)
540
- ], 14, Ze)) : i("", !0),
541
- o.$slots.watermark ? (r(), f("div", wt, [
542
- v(o.$slots, "watermark", S(V({ isPrinting: a(K) || a(q) })), void 0, !0)
543
- ])) : i("", !0),
544
- M.value ? i("", !0) : (r(), g(a(fe), {
545
- key: 6,
546
- config: {
547
- type: "radar",
548
- style: {
549
- backgroundColor: e.value.style.chart.backgroundColor,
550
- radar: {
551
- grid: {
552
- color: "#CCCCCC"
553
- },
554
- shapes: {
555
- color: "#CCCCCC"
556
- }
557
- }
558
- }
559
- }
560
- }, null, 8, ["config"])),
561
- e.value.style.chart.legend.show ? (r(), g(Xe, {
562
- legendSet: k.value,
563
- config: $e.value,
564
- key: `legend_${z.value}`,
565
- style: { display: "flex", "row-gap": "6px" }
566
- }, {
567
- item: p(({ legend: t, index: u }) => [
568
- s("div", {
569
- onClick: () => Me(t.key),
570
- style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
571
- }, [
572
- t.key == 1 ? (r(), g(a($), {
573
- key: 0,
574
- strokeWidth: 1,
575
- name: "moodSad",
576
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
577
- }, null, 8, ["stroke"])) : i("", !0),
578
- t.key == 2 ? (r(), g(a($), {
579
- key: 1,
580
- strokeWidth: 1,
581
- name: "moodFlat",
582
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
583
- }, null, 8, ["stroke"])) : i("", !0),
584
- t.key == 3 ? (r(), g(a($), {
585
- key: 2,
586
- strokeWidth: 1,
587
- name: "moodNeutral",
588
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
589
- }, null, 8, ["stroke"])) : i("", !0),
590
- t.key == 4 ? (r(), g(a($), {
591
- key: 3,
592
- strokeWidth: 1,
593
- name: "smiley",
594
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
595
- }, null, 8, ["stroke"])) : i("", !0),
596
- t.key == 5 ? (r(), g(a($), {
597
- key: 4,
598
- strokeWidth: 1,
599
- name: "moodHappy",
600
- stroke: e.value.style.chart.layout.smileys.colors[t.key]
601
- }, null, 8, ["stroke"])) : i("", !0),
602
- s("span", _t, T(a(ne)(
603
- e.value.style.chart.layout.dataLabel.formatter,
604
- t.value,
605
- a(R)({
606
- p: e.value.style.chart.layout.dataLabel.prefix,
607
- v: t.value,
608
- s: e.value.style.chart.layout.dataLabel.suffix,
609
- r: e.value.style.chart.layout.dataLabel.roundingValue
610
- }),
611
- { datapoint: t, seriesIndex: u }
612
- )), 1),
613
- se(" (" + T(a(R)({
614
- v: t.proportion * 100,
615
- s: "%",
616
- r: e.value.style.chart.legend.roundingPercentage
617
- })) + ") ", 1)
618
- ], 8, xt)
619
- ]),
620
- _: 1
621
- }, 8, ["legendSet", "config"])) : i("", !0),
622
- v(o.$slots, "legend", { legend: k.value }, void 0, !0),
623
- o.$slots.source ? (r(), f("div", $t, [
624
- v(o.$slots, "source", {}, void 0, !0)
625
- ], 512)) : i("", !0),
626
- M.value ? (r(), g(a(ce), {
627
- key: 9,
628
- hideDetails: "",
629
- config: {
630
- open: A.value.showTable,
631
- maxHeight: 1e4,
632
- body: {
633
- backgroundColor: e.value.style.chart.backgroundColor,
634
- color: e.value.style.chart.color
635
- },
636
- head: {
637
- backgroundColor: e.value.style.chart.backgroundColor,
638
- color: e.value.style.chart.color
639
- }
640
- }
641
- }, {
642
- content: p(() => [
643
- E(a(ve), {
644
- colNames: I.value.colNames,
645
- head: I.value.head,
646
- body: I.value.body,
647
- config: I.value.config,
648
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
649
- onClose: l[10] || (l[10] = (t) => A.value.showTable = !1)
650
- }, {
651
- th: p(({ th: t }) => [
652
- s("div", {
653
- innerHTML: t,
654
- style: { display: "flex", "align-items": "center" }
655
- }, null, 8, Mt)
656
- ]),
657
- td: p(({ td: t }) => [
658
- se(T(t.name || t), 1)
659
- ]),
660
- _: 1
661
- }, 8, ["colNames", "head", "body", "config", "title"])
662
- ]),
663
- _: 1
664
- }, 8, ["config"])) : i("", !0)
665
- ], 46, Je));
666
- }
667
- }, jt = /* @__PURE__ */ Ye(Pt, [["__scopeId", "data-v-b1ec6585"]]);
668
- export {
669
- jt as default
670
- };