vue-data-ui 3.0.0-next.7 → 3.0.0-next.70

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -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-Cg-RjxqH.js";
3
- import { u as ue } from "./useNestedProp-C_G5E08Y.js";
4
- import { u as De } from "./usePrinter-BUzmyQf9.js";
5
- import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as He } from "./useChartAccessibility-9icAAmYg.js";
7
- import Xe from "./Legend-B2hrDh4G.js";
8
- import Ke from "./Title-B7Xb3YuE.js";
9
- import qe from "./img-D72yZNUg.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-CRomxzaL.js")), $ = _(() => import("./BaseIcon-BCZfTCeM.js")), ve = _(() => import("./DataTable-mQ6Wd-rR.js")), ye = _(() => import("./PackageVersion-CeEYZfaH.js")), he = _(() => import("./PenAndPaper-DhSxfUrQ.js")), fe = _(() => import("./vue-ui-skeleton-CUOhCY4p.js")), pe = _(() => import("./UserOptions-0tvMM8PF.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
- };