vue-data-ui 2.2.89 → 2.2.91
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.
- package/dist/data-table-d-VcuH-r.js +1488 -0
- package/dist/{index.es-5fba9ad2.js → index.es-Dc9Fd4o6.js} +173 -301
- package/dist/legend-DJCYLsl_.js +61 -0
- package/dist/{purify.es-00041b4f.js → purify.es-BwOkayRK.js} +9 -18
- package/dist/style.css +1 -1
- package/dist/themes-lgjsYHsH.js +4967 -0
- package/dist/title-BF-9Qcni.js +56 -0
- package/dist/tooltip-D85WEOKi.js +94 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/user-options-DZgCz8UA.js +415 -0
- package/dist/vue-data-ui.js +455 -62
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
- package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
- package/dist/vue-ui-candlestick-diclGj95.js +807 -0
- package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
- package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
- package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
- package/dist/vue-ui-digits-CxMXID42.js +154 -0
- package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
- package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
- package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
- package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
- package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
- package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
- package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
- package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
- package/dist/vue-ui-onion-C0eowUT6.js +551 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
- package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
- package/dist/vue-ui-radar-Dyg38i33.js +853 -0
- package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
- package/dist/vue-ui-rings-BuXeijvb.js +507 -0
- package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
- package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
- package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
- package/dist/vue-ui-table-DM3zL89q.js +2180 -0
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
- package/dist/vue-ui-timer-BIFxjujK.js +451 -0
- package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
- package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
- package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
- package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
- package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
- package/package.json +5 -5
- package/dist/index-fb63a0e3.js +0 -58150
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
import { computed as u, onMounted as se, ref as C, openBlock as r, createElementBlock as p, normalizeClass as W, normalizeStyle as A, createVNode as z, createCommentVNode as i, createBlock as h, unref as d, createSlots as re, withCtx as m, renderSlot as b, normalizeProps as ne, guardReactiveProps as ue, createElementVNode as a, Fragment as D, renderList as G, toDisplayString as $, createTextVNode as E, nextTick as ie } from "vue";
|
|
2
|
+
import { _ as de, i as ce, j as U, e as ye, b as ve, X as he, o as L, x as me, L as fe, B as M, D as ge, v as ke, w as pe } from "./data-table-d-VcuH-r.js";
|
|
3
|
+
import { t as be } from "./themes-lgjsYHsH.js";
|
|
4
|
+
import { u as H, _ as Ce } from "./title-BF-9Qcni.js";
|
|
5
|
+
import { U as xe } from "./user-options-DZgCz8UA.js";
|
|
6
|
+
import { L as _e } from "./legend-DJCYLsl_.js";
|
|
7
|
+
import { u as we, a as $e, S as Me, A as Ne } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
8
|
+
const Pe = ["id"], Te = ["xmlns", "viewBox"], Ae = ["id"], Fe = ["stop-color"], Le = ["stop-color"], Ie = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Oe = ["d", "stroke", "stroke-width"], Se = ["stroke"], je = ["fill"], Be = ["stroke"], Ve = ["fill"], We = ["stroke"], ze = ["fill"], De = ["stroke"], Ge = ["fill"], Ee = ["stroke"], Ue = ["fill"], He = ["d", "stroke", "stroke-width", "fill"], Re = ["x1", "y1", "stroke"], Xe = ["cx", "cy", "fill", "stroke"], Ke = ["fill", "stroke"], Ye = ["y", "fill", "font-weight"], qe = ["y", "fill"], Je = ["onClick"], Qe = { style: { "font-weight": "bold" } }, Ze = ["innerHTML"], et = {
|
|
9
|
+
__name: "vue-ui-mood-radar",
|
|
10
|
+
props: {
|
|
11
|
+
config: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default() {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
dataset: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(R, { expose: X }) {
|
|
25
|
+
const n = R, { vue_ui_mood_radar: K } = we(), x = u(() => !!n.dataset && Object.keys(n.dataset).length);
|
|
26
|
+
se(() => {
|
|
27
|
+
ce(n.dataset) && U({
|
|
28
|
+
componentName: "VueUiMoodRadar",
|
|
29
|
+
type: "dataset"
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const _ = C(ye()), I = C(null), Y = C(null), s = C(null), e = u(() => {
|
|
33
|
+
const l = H({
|
|
34
|
+
userConfig: n.config,
|
|
35
|
+
defaultConfig: K
|
|
36
|
+
});
|
|
37
|
+
return l.theme ? {
|
|
38
|
+
...H({
|
|
39
|
+
userConfig: be.vue_ui_mood_radar[l.theme] || n.config,
|
|
40
|
+
defaultConfig: l
|
|
41
|
+
})
|
|
42
|
+
} : l;
|
|
43
|
+
}), { isPrinting: q, isImaging: J, generatePdf: O, generateImage: S } = $e({
|
|
44
|
+
elementId: _.value,
|
|
45
|
+
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar"
|
|
46
|
+
}), N = C({
|
|
47
|
+
showTable: e.value.table.show
|
|
48
|
+
}), f = u(() => ({
|
|
49
|
+
height: 256,
|
|
50
|
+
width: 256
|
|
51
|
+
})), F = u(() => ve({
|
|
52
|
+
plot: { x: 128, y: f.value.height / 2 },
|
|
53
|
+
radius: 90,
|
|
54
|
+
sides: 5,
|
|
55
|
+
rotation: 11
|
|
56
|
+
}));
|
|
57
|
+
function Q({ centerX: l, centerY: o, apexX: t, apexY: y, proportion: v, key: w, value: ae }) {
|
|
58
|
+
return {
|
|
59
|
+
x: l + (t - l) * v,
|
|
60
|
+
y: o + (y - o) * v,
|
|
61
|
+
key: w,
|
|
62
|
+
value: ae
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const Z = u(() => Math.max(...Object.values(n.dataset).map((l) => isNaN(l) ? 0 : l))), k = u(() => Object.values(n.dataset).reduce((l, o) => (isNaN(l) ? 0 : l) + (isNaN(o) ? 0 : o), 0)), c = u(() => Object.keys(n.dataset).map((l, o) => {
|
|
66
|
+
const t = typeof n.dataset[l] != "number" || isNaN(n.dataset[l]) ? 0 : n.dataset[l];
|
|
67
|
+
return {
|
|
68
|
+
index: o,
|
|
69
|
+
key: l,
|
|
70
|
+
value: t,
|
|
71
|
+
proportion: t / k.value,
|
|
72
|
+
color: e.value.style.chart.layout.smileys.colors[l]
|
|
73
|
+
};
|
|
74
|
+
}).sort((l, o) => o.key - l.key)), j = u(() => x.value ? (["1", "2", "3", "4", "5"].forEach((l) => {
|
|
75
|
+
[null, void 0].includes(n.dataset[l]) && U({
|
|
76
|
+
componentName: "VueUiMoodRadar",
|
|
77
|
+
type: "datasetAttribute",
|
|
78
|
+
property: l
|
|
79
|
+
});
|
|
80
|
+
}), F.value.coordinates.map((l, o) => {
|
|
81
|
+
const t = Q({
|
|
82
|
+
centerX: f.value.width / 2,
|
|
83
|
+
centerY: f.value.height / 2,
|
|
84
|
+
apexX: l.x,
|
|
85
|
+
apexY: l.y,
|
|
86
|
+
proportion: c.value[o].value / Z.value,
|
|
87
|
+
key: c.value[o].key,
|
|
88
|
+
value: c.value[o].value
|
|
89
|
+
});
|
|
90
|
+
return {
|
|
91
|
+
...l,
|
|
92
|
+
plots: t,
|
|
93
|
+
key: c.value[o].key
|
|
94
|
+
};
|
|
95
|
+
})) : []), ee = u(() => ({
|
|
96
|
+
cy: "mood-radar-legend",
|
|
97
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
98
|
+
color: e.value.style.chart.legend.color,
|
|
99
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
100
|
+
paddingBottom: 12,
|
|
101
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
102
|
+
}));
|
|
103
|
+
function te(l) {
|
|
104
|
+
l === s.value ? s.value = null : s.value = l;
|
|
105
|
+
}
|
|
106
|
+
const g = u(() => {
|
|
107
|
+
const l = c.value.map((t) => ({
|
|
108
|
+
name: t.key,
|
|
109
|
+
color: t.color
|
|
110
|
+
})), o = c.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
111
|
+
return { head: l, body: o };
|
|
112
|
+
});
|
|
113
|
+
function B() {
|
|
114
|
+
ie(() => {
|
|
115
|
+
const l = g.value.head.map((y, v) => [[
|
|
116
|
+
y.name
|
|
117
|
+
], [g.value.body[v]], [isNaN(g.value.body[v] / k.value) ? "-" : g.value.body[v] / k.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = ke(o);
|
|
118
|
+
pe({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
const P = u(() => {
|
|
122
|
+
const l = [
|
|
123
|
+
' <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>',
|
|
124
|
+
Number(k.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
125
|
+
"100%"
|
|
126
|
+
], o = g.value.head.map((v, w) => [
|
|
127
|
+
{
|
|
128
|
+
color: v.color,
|
|
129
|
+
name: v.name
|
|
130
|
+
},
|
|
131
|
+
g.value.body[w].toFixed(e.value.table.td.roundingValue),
|
|
132
|
+
isNaN(g.value.body[w] / k.value) ? "-" : (g.value.body[w] / k.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
133
|
+
]), t = {
|
|
134
|
+
th: {
|
|
135
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
136
|
+
color: e.value.table.th.color,
|
|
137
|
+
outline: e.value.table.th.outline
|
|
138
|
+
},
|
|
139
|
+
td: {
|
|
140
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
141
|
+
color: e.value.table.td.color,
|
|
142
|
+
outline: e.value.table.td.outline
|
|
143
|
+
},
|
|
144
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
145
|
+
}, y = [
|
|
146
|
+
e.value.table.columnNames.series,
|
|
147
|
+
e.value.table.columnNames.value,
|
|
148
|
+
e.value.table.columnNames.percentage
|
|
149
|
+
];
|
|
150
|
+
return {
|
|
151
|
+
head: l,
|
|
152
|
+
body: o,
|
|
153
|
+
config: t,
|
|
154
|
+
colNames: y
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
function le() {
|
|
158
|
+
return c.value;
|
|
159
|
+
}
|
|
160
|
+
function V() {
|
|
161
|
+
N.value.showTable = !N.value.showTable;
|
|
162
|
+
}
|
|
163
|
+
const T = C(!1);
|
|
164
|
+
function oe(l) {
|
|
165
|
+
T.value = l;
|
|
166
|
+
}
|
|
167
|
+
return X({
|
|
168
|
+
getData: le,
|
|
169
|
+
generatePdf: O,
|
|
170
|
+
generateCsv: B,
|
|
171
|
+
generateImage: S,
|
|
172
|
+
toggleTable: V
|
|
173
|
+
}), (l, o) => (r(), p("div", {
|
|
174
|
+
class: W(`vue-ui-mood-radar ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
175
|
+
ref_key: "moodRadarChart",
|
|
176
|
+
ref: I,
|
|
177
|
+
id: `${_.value}`,
|
|
178
|
+
style: A(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
|
|
179
|
+
}, [
|
|
180
|
+
e.value.style.chart.title.text ? (r(), p("div", {
|
|
181
|
+
key: 0,
|
|
182
|
+
style: A(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
183
|
+
}, [
|
|
184
|
+
z(Ce, {
|
|
185
|
+
config: {
|
|
186
|
+
title: {
|
|
187
|
+
cy: "mood-radar-title",
|
|
188
|
+
...e.value.style.chart.title
|
|
189
|
+
},
|
|
190
|
+
subtitle: {
|
|
191
|
+
cy: "mood-radar-subtitle",
|
|
192
|
+
...e.value.style.chart.title.subtitle
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}, null, 8, ["config"])
|
|
196
|
+
], 4)) : i("", !0),
|
|
197
|
+
e.value.userOptions.show && x.value ? (r(), h(xe, {
|
|
198
|
+
key: 1,
|
|
199
|
+
ref_key: "details",
|
|
200
|
+
ref: Y,
|
|
201
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
202
|
+
color: e.value.style.chart.color,
|
|
203
|
+
isPrinting: d(q),
|
|
204
|
+
isImaging: d(J),
|
|
205
|
+
uid: _.value,
|
|
206
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
207
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
208
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
209
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
210
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
211
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
212
|
+
chartElement: I.value,
|
|
213
|
+
onToggleFullscreen: oe,
|
|
214
|
+
onGeneratePdf: d(O),
|
|
215
|
+
onGenerateCsv: B,
|
|
216
|
+
onGenerateImage: d(S),
|
|
217
|
+
onToggleTable: V
|
|
218
|
+
}, re({ _: 2 }, [
|
|
219
|
+
l.$slots.optionPdf ? {
|
|
220
|
+
name: "optionPdf",
|
|
221
|
+
fn: m(() => [
|
|
222
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
223
|
+
]),
|
|
224
|
+
key: "0"
|
|
225
|
+
} : void 0,
|
|
226
|
+
l.$slots.optionCsv ? {
|
|
227
|
+
name: "optionCsv",
|
|
228
|
+
fn: m(() => [
|
|
229
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
230
|
+
]),
|
|
231
|
+
key: "1"
|
|
232
|
+
} : void 0,
|
|
233
|
+
l.$slots.optionImg ? {
|
|
234
|
+
name: "optionImg",
|
|
235
|
+
fn: m(() => [
|
|
236
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
237
|
+
]),
|
|
238
|
+
key: "2"
|
|
239
|
+
} : void 0,
|
|
240
|
+
l.$slots.optionTable ? {
|
|
241
|
+
name: "optionTable",
|
|
242
|
+
fn: m(() => [
|
|
243
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
244
|
+
]),
|
|
245
|
+
key: "3"
|
|
246
|
+
} : void 0,
|
|
247
|
+
l.$slots.optionFullscreen ? {
|
|
248
|
+
name: "optionFullscreen",
|
|
249
|
+
fn: m(({ toggleFullscreen: t, isFullscreen: y }) => [
|
|
250
|
+
b(l.$slots, "optionFullscreen", ne(ue({ toggleFullscreen: t, isFullscreen: y })), void 0, !0)
|
|
251
|
+
]),
|
|
252
|
+
key: "4"
|
|
253
|
+
} : void 0
|
|
254
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
|
|
255
|
+
x.value ? (r(), p("svg", {
|
|
256
|
+
key: 2,
|
|
257
|
+
xmlns: d(he),
|
|
258
|
+
viewBox: `0 0 ${f.value.width} ${f.value.height}`,
|
|
259
|
+
class: W({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
260
|
+
style: A(`overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
261
|
+
}, [
|
|
262
|
+
a("defs", null, [
|
|
263
|
+
a("radialGradient", {
|
|
264
|
+
cx: "50%",
|
|
265
|
+
cy: "50%",
|
|
266
|
+
r: "50%",
|
|
267
|
+
fx: "50%",
|
|
268
|
+
fy: "50%",
|
|
269
|
+
id: `mood_radar_gradient_${_.value}`
|
|
270
|
+
}, [
|
|
271
|
+
a("stop", {
|
|
272
|
+
offset: "0%",
|
|
273
|
+
"stop-color": e.value.style.chart.layout.dataPolygon.color + d(L)[e.value.style.chart.layout.dataPolygon.opacity]
|
|
274
|
+
}, null, 8, Fe),
|
|
275
|
+
a("stop", {
|
|
276
|
+
offset: "100%",
|
|
277
|
+
"stop-color": `${d(me)(
|
|
278
|
+
e.value.style.chart.layout.dataPolygon.color,
|
|
279
|
+
e.value.style.chart.layout.dataPolygon.gradient.intensity / 100
|
|
280
|
+
)}${d(L)[e.value.style.chart.layout.dataPolygon.opacity]}`
|
|
281
|
+
}, null, 8, Le)
|
|
282
|
+
], 8, Ae)
|
|
283
|
+
]),
|
|
284
|
+
(r(!0), p(D, null, G(F.value.coordinates, (t) => (r(), p("line", {
|
|
285
|
+
x1: f.value.width / 2,
|
|
286
|
+
y1: f.value.height / 2,
|
|
287
|
+
x2: t.x,
|
|
288
|
+
y2: t.y,
|
|
289
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
290
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
291
|
+
}, null, 8, Ie))), 256)),
|
|
292
|
+
a("path", {
|
|
293
|
+
d: F.value.path,
|
|
294
|
+
fill: "none",
|
|
295
|
+
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
296
|
+
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
297
|
+
"stroke-linejoin": "round",
|
|
298
|
+
"stroke-linecap": "round"
|
|
299
|
+
}, null, 8, Oe),
|
|
300
|
+
a("path", {
|
|
301
|
+
fill: "none",
|
|
302
|
+
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
303
|
+
"stroke-width": "1",
|
|
304
|
+
"stroke-linecap": "round",
|
|
305
|
+
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"
|
|
306
|
+
}, null, 8, Se),
|
|
307
|
+
a("circle", {
|
|
308
|
+
class: "vue-ui-mood-radar-trap",
|
|
309
|
+
onMouseenter: o[0] || (o[0] = (t) => s.value = 5),
|
|
310
|
+
onMouseleave: o[1] || (o[1] = (t) => s.value = null),
|
|
311
|
+
cx: "128",
|
|
312
|
+
cy: "25",
|
|
313
|
+
r: "20",
|
|
314
|
+
fill: s.value === 5 ? e.value.style.chart.layout.smileys.colors[5] + "33" : "transparent"
|
|
315
|
+
}, null, 40, je),
|
|
316
|
+
a("path", {
|
|
317
|
+
fill: "none",
|
|
318
|
+
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
319
|
+
"stroke-width": "1",
|
|
320
|
+
"stroke-linecap": "round",
|
|
321
|
+
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"
|
|
322
|
+
}, null, 8, Be),
|
|
323
|
+
a("circle", {
|
|
324
|
+
class: "vue-ui-mood-radar-trap",
|
|
325
|
+
onMouseenter: o[2] || (o[2] = (t) => s.value = 4),
|
|
326
|
+
onMouseleave: o[3] || (o[3] = (t) => s.value = null),
|
|
327
|
+
cx: "227",
|
|
328
|
+
cy: "95.5",
|
|
329
|
+
r: "20",
|
|
330
|
+
fill: s.value === 4 ? e.value.style.chart.layout.smileys.colors[4] + "33" : "transparent"
|
|
331
|
+
}, null, 40, Ve),
|
|
332
|
+
a("path", {
|
|
333
|
+
fill: "none",
|
|
334
|
+
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
335
|
+
"stroke-width": "1",
|
|
336
|
+
"stroke-linecap": "round",
|
|
337
|
+
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"
|
|
338
|
+
}, null, 8, We),
|
|
339
|
+
a("circle", {
|
|
340
|
+
class: "vue-ui-mood-radar-trap",
|
|
341
|
+
onMouseenter: o[4] || (o[4] = (t) => s.value = 3),
|
|
342
|
+
onMouseleave: o[5] || (o[5] = (t) => s.value = null),
|
|
343
|
+
cx: "190",
|
|
344
|
+
cy: "213.5",
|
|
345
|
+
r: "20",
|
|
346
|
+
fill: s.value === 3 ? e.value.style.chart.layout.smileys.colors[3] + "33" : "transparent"
|
|
347
|
+
}, null, 40, ze),
|
|
348
|
+
a("path", {
|
|
349
|
+
fill: "none",
|
|
350
|
+
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
351
|
+
"stroke-width": "1",
|
|
352
|
+
"stroke-linecap": "round",
|
|
353
|
+
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"
|
|
354
|
+
}, null, 8, De),
|
|
355
|
+
a("circle", {
|
|
356
|
+
class: "vue-ui-mood-radar-trap",
|
|
357
|
+
onMouseenter: o[6] || (o[6] = (t) => s.value = 2),
|
|
358
|
+
onMouseleave: o[7] || (o[7] = (t) => s.value = null),
|
|
359
|
+
cx: "65",
|
|
360
|
+
cy: "213.5",
|
|
361
|
+
r: "20",
|
|
362
|
+
fill: s.value === 2 ? e.value.style.chart.layout.smileys.colors[2] + "33" : "transparent"
|
|
363
|
+
}, null, 40, Ge),
|
|
364
|
+
a("path", {
|
|
365
|
+
fill: "none",
|
|
366
|
+
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
367
|
+
"stroke-width": "1",
|
|
368
|
+
"stroke-linecap": "round",
|
|
369
|
+
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"
|
|
370
|
+
}, null, 8, Ee),
|
|
371
|
+
a("circle", {
|
|
372
|
+
class: "vue-ui-mood-radar-trap",
|
|
373
|
+
onMouseenter: o[8] || (o[8] = (t) => s.value = 1),
|
|
374
|
+
onMouseleave: o[9] || (o[9] = (t) => s.value = null),
|
|
375
|
+
cx: "29",
|
|
376
|
+
cy: "95.5",
|
|
377
|
+
r: "20",
|
|
378
|
+
fill: s.value === 1 ? e.value.style.chart.layout.smileys.colors[1] + "33" : "transparent"
|
|
379
|
+
}, null, 40, Ue),
|
|
380
|
+
a("path", {
|
|
381
|
+
d: d(fe)(j.value.map((t) => t.plots)),
|
|
382
|
+
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
383
|
+
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
384
|
+
"stroke-linecap": "round",
|
|
385
|
+
"stroke-linejoin": "round",
|
|
386
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${_.value})` : e.value.style.chart.layout.dataPolygon.color + d(L)[e.value.style.chart.layout.dataPolygon.opacity]
|
|
387
|
+
}, null, 8, He),
|
|
388
|
+
(r(!0), p(D, null, G(j.value.map((t) => t.plots), (t, y) => (r(), p("g", {
|
|
389
|
+
class: "vue-ui-mood-radar-trap",
|
|
390
|
+
style: A(`opacity:${s.value == t.key ? "1" : "0"}`)
|
|
391
|
+
}, [
|
|
392
|
+
a("line", {
|
|
393
|
+
x1: t.x,
|
|
394
|
+
y1: t.y,
|
|
395
|
+
x2: 128,
|
|
396
|
+
y2: 128,
|
|
397
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
398
|
+
}, null, 8, Re),
|
|
399
|
+
a("circle", {
|
|
400
|
+
cx: t.x,
|
|
401
|
+
cy: t.y,
|
|
402
|
+
fill: e.value.style.chart.layout.smileys.colors[t.key],
|
|
403
|
+
r: "3",
|
|
404
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
405
|
+
"stroke-width": 0.5
|
|
406
|
+
}, null, 8, Xe),
|
|
407
|
+
a("circle", {
|
|
408
|
+
cx: 128,
|
|
409
|
+
cy: 128,
|
|
410
|
+
fill: e.value.style.chart.layout.smileys.colors[t.key],
|
|
411
|
+
r: "3",
|
|
412
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
413
|
+
"stroke-width": 0.5
|
|
414
|
+
}, null, 8, Ke),
|
|
415
|
+
a("text", {
|
|
416
|
+
x: 128,
|
|
417
|
+
y: ["5", 5].includes(t.key) ? 145 : 120,
|
|
418
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
419
|
+
"font-size": "12",
|
|
420
|
+
"text-anchor": "middle",
|
|
421
|
+
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
422
|
+
}, $(Number(t.value.toFixed(e.value.style.chart.layout.dataLabel.roundingValue)).toLocaleString()), 9, Ye),
|
|
423
|
+
a("text", {
|
|
424
|
+
x: 128,
|
|
425
|
+
y: ["5", 5].includes(t.key) ? 163 : 102,
|
|
426
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
427
|
+
"font-size": "12",
|
|
428
|
+
"text-anchor": "middle"
|
|
429
|
+
}, " (" + $(Number((t.value / k.value * 100).toFixed(e.value.style.chart.layout.dataLabel.roundingPercentage)).toLocaleString()) + "%) ", 9, qe)
|
|
430
|
+
], 4))), 256)),
|
|
431
|
+
b(l.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
432
|
+
], 14, Te)) : i("", !0),
|
|
433
|
+
x.value ? i("", !0) : (r(), h(Me, {
|
|
434
|
+
key: 3,
|
|
435
|
+
config: {
|
|
436
|
+
type: "radar",
|
|
437
|
+
style: {
|
|
438
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
439
|
+
radar: {
|
|
440
|
+
grid: {
|
|
441
|
+
color: "#CCCCCC"
|
|
442
|
+
},
|
|
443
|
+
shapes: {
|
|
444
|
+
color: "#CCCCCC"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}, null, 8, ["config"])),
|
|
450
|
+
e.value.style.chart.legend.show ? (r(), h(_e, {
|
|
451
|
+
key: 4,
|
|
452
|
+
legendSet: c.value,
|
|
453
|
+
config: ee.value,
|
|
454
|
+
style: { display: "flex", "row-gap": "6px" }
|
|
455
|
+
}, {
|
|
456
|
+
item: m(({ legend: t, index: y }) => [
|
|
457
|
+
a("div", {
|
|
458
|
+
onClick: () => te(t.key),
|
|
459
|
+
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
460
|
+
}, [
|
|
461
|
+
t.key == 1 ? (r(), h(M, {
|
|
462
|
+
key: 0,
|
|
463
|
+
strokeWidth: 1,
|
|
464
|
+
name: "moodSad",
|
|
465
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
466
|
+
}, null, 8, ["stroke"])) : i("", !0),
|
|
467
|
+
t.key == 2 ? (r(), h(M, {
|
|
468
|
+
key: 1,
|
|
469
|
+
strokeWidth: 1,
|
|
470
|
+
name: "moodFlat",
|
|
471
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
472
|
+
}, null, 8, ["stroke"])) : i("", !0),
|
|
473
|
+
t.key == 3 ? (r(), h(M, {
|
|
474
|
+
key: 2,
|
|
475
|
+
strokeWidth: 1,
|
|
476
|
+
name: "moodNeutral",
|
|
477
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
478
|
+
}, null, 8, ["stroke"])) : i("", !0),
|
|
479
|
+
t.key == 4 ? (r(), h(M, {
|
|
480
|
+
key: 3,
|
|
481
|
+
strokeWidth: 1,
|
|
482
|
+
name: "smiley",
|
|
483
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
484
|
+
}, null, 8, ["stroke"])) : i("", !0),
|
|
485
|
+
t.key == 5 ? (r(), h(M, {
|
|
486
|
+
key: 4,
|
|
487
|
+
strokeWidth: 1,
|
|
488
|
+
name: "moodHappy",
|
|
489
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
490
|
+
}, null, 8, ["stroke"])) : i("", !0),
|
|
491
|
+
a("span", Qe, $(t.value), 1),
|
|
492
|
+
E(" (" + $((isNaN(t.proportion) ? 0 : t.proportion * 100).toFixed(
|
|
493
|
+
e.value.style.chart.legend.roundingPercentage
|
|
494
|
+
)) + "%) ", 1)
|
|
495
|
+
], 8, Je)
|
|
496
|
+
]),
|
|
497
|
+
_: 1
|
|
498
|
+
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
499
|
+
b(l.$slots, "legend", { legend: c.value }, void 0, !0),
|
|
500
|
+
x.value ? (r(), h(Ne, {
|
|
501
|
+
key: 5,
|
|
502
|
+
hideDetails: "",
|
|
503
|
+
config: {
|
|
504
|
+
open: N.value.showTable,
|
|
505
|
+
maxHeight: 1e4,
|
|
506
|
+
body: {
|
|
507
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
508
|
+
color: e.value.style.chart.color
|
|
509
|
+
},
|
|
510
|
+
head: {
|
|
511
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
512
|
+
color: e.value.style.chart.color
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
content: m(() => [
|
|
517
|
+
z(ge, {
|
|
518
|
+
colNames: P.value.colNames,
|
|
519
|
+
head: P.value.head,
|
|
520
|
+
body: P.value.body,
|
|
521
|
+
config: P.value.config,
|
|
522
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
523
|
+
onClose: o[10] || (o[10] = (t) => N.value.showTable = !1)
|
|
524
|
+
}, {
|
|
525
|
+
th: m(({ th: t }) => [
|
|
526
|
+
a("div", {
|
|
527
|
+
innerHTML: t,
|
|
528
|
+
style: { display: "flex", "align-items": "center" }
|
|
529
|
+
}, null, 8, Ze)
|
|
530
|
+
]),
|
|
531
|
+
td: m(({ td: t }) => [
|
|
532
|
+
E($(t.name || t), 1)
|
|
533
|
+
]),
|
|
534
|
+
_: 1
|
|
535
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
536
|
+
]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["config"])) : i("", !0)
|
|
539
|
+
], 14, Pe));
|
|
540
|
+
}
|
|
541
|
+
}, ut = /* @__PURE__ */ de(et, [["__scopeId", "data-v-81cc3908"]]);
|
|
542
|
+
export {
|
|
543
|
+
ut as default
|
|
544
|
+
};
|