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.
- package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
- package/dist/Slicer-D8a4Wv1q.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
- package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +600 -22
- package/dist/types/vue-data-ui.d.ts +600 -22
- package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-DtUATNAU.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
- package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
- package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
- package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
- package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
- package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
- package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
- package/dist/vue-ui-flow-B1AOqk14.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
- package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
- package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
- package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
- package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
- package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
- package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
- package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
- package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
- package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
- package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
- package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
- package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
- package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
- package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
- package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
- package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
- package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
- package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
- package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
- package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
- package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
- package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
- package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
- package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
- package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
- package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
- package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
- package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
- package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -0,0 +1,785 @@
|
|
|
1
|
+
import { defineAsyncComponent as M, ref as i, computed as y, toRefs as ze, onMounted as Ue, watch as We, createElementBlock as c, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as he, createBlock as m, createCommentVNode as d, createElementVNode as s, createVNode as Y, createSlots as Ge, withCtx as g, renderSlot as h, normalizeProps as j, guardReactiveProps as z, Fragment as fe, renderList as pe, toDisplayString as E, createTextVNode as He, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as Ke, c as qe, t as Ye, o as Je, f as ge, b as Qe, R as Ze, X as et, s as x, x as tt, S as ot, k as me, i as U, v as lt, w as at } from "./index-CnY41r21.js";
|
|
3
|
+
import { t as st, u as nt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as rt, B as ut } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as it } from "./usePrinter-CJ1uZx0D.js";
|
|
6
|
+
import { u as ke } from "./useNestedProp-DtUATNAU.js";
|
|
7
|
+
import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import vt from "./img-_RMhslMZ.js";
|
|
10
|
+
import yt from "./Title-feqCv0Si.js";
|
|
11
|
+
import ht from "./Legend-ChXhJNzd.js";
|
|
12
|
+
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["id"], bt = ["stop-color"], xt = ["stop-color"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], wt = ["d", "stroke", "stroke-width"], $t = ["transform"], At = ["stroke"], _t = ["fill"], Mt = ["transform"], Nt = ["stroke"], Pt = ["fill"], Tt = ["transform"], Ot = ["stroke"], Lt = ["fill"], It = ["transform"], St = ["stroke"], Ft = ["fill"], Et = ["transform"], Rt = ["stroke"], Bt = ["fill"], Dt = ["d", "stroke", "stroke-width", "fill"], Vt = ["x1", "y1", "x2", "y2", "stroke"], jt = ["cx", "cy", "fill", "stroke"], zt = ["cx", "cy", "fill", "stroke"], Ut = ["x", "y", "fill", "font-weight"], Wt = ["x", "y", "fill"], Gt = {
|
|
14
|
+
key: 4,
|
|
15
|
+
class: "vue-data-ui-watermark"
|
|
16
|
+
}, Ht = ["onClick"], Xt = {
|
|
17
|
+
key: 5,
|
|
18
|
+
style: { "font-weight": "bold" }
|
|
19
|
+
}, Kt = { key: 6 }, qt = ["innerHTML"], Yt = {
|
|
20
|
+
__name: "vue-ui-mood-radar",
|
|
21
|
+
props: {
|
|
22
|
+
config: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dataset: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default() {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
setup(be, { expose: xe }) {
|
|
36
|
+
const Ce = M(() => import("./vue-ui-accordion-CnLY8CrQ.js")), N = M(() => import("./BaseIcon-BnbvQjs5.js")), we = M(() => import("./DataTable-CKpA_OA_.js")), $e = M(() => import("./PackageVersion-CBHvscRY.js")), Ae = M(() => import("./PenAndPaper-BCcfYvgR.js")), _e = M(() => import("./UserOptions-CGnAZpYs.js")), { vue_ui_mood_radar: Me } = Ke(), C = be, P = i(qe()), w = i(null), Ne = i(null), f = i(null), J = i(null), Pe = i(0), Te = i(0), Q = i(0), Z = i(null), ee = i(null), T = i(null), R = i(null), te = i(null), oe = y(() => !!C.dataset && Object.keys(C.dataset).length), e = i(H()), { loading: W, FINAL_DATASET: $ } = rt({
|
|
37
|
+
...ze(C),
|
|
38
|
+
FINAL_CONFIG: e,
|
|
39
|
+
prepareConfig: H,
|
|
40
|
+
skeletonDataset: {
|
|
41
|
+
1: 1,
|
|
42
|
+
2: 1,
|
|
43
|
+
3: 1,
|
|
44
|
+
4: 1,
|
|
45
|
+
5: 1
|
|
46
|
+
},
|
|
47
|
+
skeletonConfig: Ye({
|
|
48
|
+
defaultConfig: e.value,
|
|
49
|
+
userConfig: {
|
|
50
|
+
userOptions: { show: !1 },
|
|
51
|
+
table: { show: !1 },
|
|
52
|
+
style: {
|
|
53
|
+
chart: {
|
|
54
|
+
backgroundColor: "#99999930",
|
|
55
|
+
layout: {
|
|
56
|
+
grid: {
|
|
57
|
+
stroke: "#6A6A6A"
|
|
58
|
+
},
|
|
59
|
+
outerPolygon: {
|
|
60
|
+
stroke: "#6A6A6A"
|
|
61
|
+
},
|
|
62
|
+
dataPolygon: {
|
|
63
|
+
color: "#6A6A6A",
|
|
64
|
+
opacity: 30,
|
|
65
|
+
stroke: "#6A6A6A"
|
|
66
|
+
},
|
|
67
|
+
smileys: {
|
|
68
|
+
colors: {
|
|
69
|
+
1: "#DBDBDB",
|
|
70
|
+
2: "#C4C4C4",
|
|
71
|
+
3: "#ADADAD",
|
|
72
|
+
4: "#969696",
|
|
73
|
+
5: "#808080"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
dataLabel: {
|
|
77
|
+
color: "transparent"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
legend: {
|
|
81
|
+
backgroundColor: "transparent"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
Ue(() => {
|
|
89
|
+
le();
|
|
90
|
+
});
|
|
91
|
+
const Oe = y(() => e.value.debug);
|
|
92
|
+
function le() {
|
|
93
|
+
if (Je(C.dataset) && ge({
|
|
94
|
+
componentName: "VueUiMoodRadar",
|
|
95
|
+
type: "dataset",
|
|
96
|
+
debug: Oe.value
|
|
97
|
+
}), e.value.responsive) {
|
|
98
|
+
const o = st(() => {
|
|
99
|
+
const { width: l, height: t } = nt({
|
|
100
|
+
chart: w.value,
|
|
101
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
102
|
+
legend: e.value.style.chart.legend.show ? ee.value : null,
|
|
103
|
+
noTitle: J.value,
|
|
104
|
+
source: te.value
|
|
105
|
+
});
|
|
106
|
+
requestAnimationFrame(() => {
|
|
107
|
+
n.value.width = l, n.value.height = t - 12;
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(o), R.value = w.value.parentNode, T.value.observe(R.value);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const { userOptionsVisible: G, setUserOptionsVisibility: ae, keepUserOptionState: se } = dt({ config: e.value }), { svgRef: ne } = ct({ config: e.value.style.chart.title });
|
|
114
|
+
function H() {
|
|
115
|
+
const o = ke({
|
|
116
|
+
userConfig: C.config,
|
|
117
|
+
defaultConfig: Me
|
|
118
|
+
});
|
|
119
|
+
return o.theme ? {
|
|
120
|
+
...ke({
|
|
121
|
+
userConfig: Qe.vue_ui_mood_radar[o.theme] || C.config,
|
|
122
|
+
defaultConfig: o
|
|
123
|
+
})
|
|
124
|
+
} : o;
|
|
125
|
+
}
|
|
126
|
+
We(() => C.config, (o) => {
|
|
127
|
+
e.value = H(), G.value = !e.value.userOptions.showOnChartHover, le(), Pe.value += 1, Te.value += 1, Q.value += 1, O.value.showTable = e.value.table.show;
|
|
128
|
+
}, { deep: !0 });
|
|
129
|
+
const { isPrinting: re, isImaging: ue, generatePdf: ie, generateImage: de } = it({
|
|
130
|
+
elementId: P.value,
|
|
131
|
+
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
132
|
+
options: e.value.userOptions.print
|
|
133
|
+
}), Le = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = i({
|
|
134
|
+
showTable: e.value.table.show
|
|
135
|
+
}), n = i({
|
|
136
|
+
height: 256,
|
|
137
|
+
width: 256
|
|
138
|
+
}), Ie = {
|
|
139
|
+
5: { x: 128, y: 35 },
|
|
140
|
+
4: { x: 218, y: 98.5 },
|
|
141
|
+
3: { x: 185, y: 204 },
|
|
142
|
+
2: { x: 70, y: 204 },
|
|
143
|
+
1: { x: 38.5, y: 98.5 }
|
|
144
|
+
}, Se = y(() => {
|
|
145
|
+
const o = {};
|
|
146
|
+
return K.value.forEach((l) => {
|
|
147
|
+
o[l.key] = { x: l.x, y: l.y };
|
|
148
|
+
}), o;
|
|
149
|
+
});
|
|
150
|
+
function L(o) {
|
|
151
|
+
const l = Ie[o], t = Se.value[o] || l;
|
|
152
|
+
return `translate(${t.x - l.x}, ${t.y - l.y})`;
|
|
153
|
+
}
|
|
154
|
+
const X = y(() => Ze({
|
|
155
|
+
plot: { x: n.value.width / 2, y: n.value.height / 2 },
|
|
156
|
+
radius: Math.min(n.value.height, n.value.width) * 0.35,
|
|
157
|
+
sides: 5,
|
|
158
|
+
rotation: 11
|
|
159
|
+
}));
|
|
160
|
+
function Fe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: k, key: p, value: je }) {
|
|
161
|
+
return {
|
|
162
|
+
x: o + (t - o) * k,
|
|
163
|
+
y: l + (u - l) * k,
|
|
164
|
+
key: p,
|
|
165
|
+
value: je
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
const Ee = y(() => Math.max(...Object.values($.value).map((o) => isNaN(o) ? 0 : o))), A = y(() => Object.values($.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), v = y(() => Object.keys($.value).map((o, l) => {
|
|
169
|
+
const t = typeof $.value[o] != "number" || isNaN($.value[o]) ? 0 : $.value[o];
|
|
170
|
+
return {
|
|
171
|
+
index: l,
|
|
172
|
+
key: o,
|
|
173
|
+
value: t,
|
|
174
|
+
proportion: t / A.value,
|
|
175
|
+
color: e.value.style.chart.layout.smileys.colors[o]
|
|
176
|
+
};
|
|
177
|
+
}).sort((o, l) => l.key - o.key)), K = y(() => (["1", "2", "3", "4", "5"].forEach((o) => {
|
|
178
|
+
[null, void 0].includes($.value[o]) && ge({
|
|
179
|
+
componentName: "VueUiMoodRadar",
|
|
180
|
+
type: "datasetAttribute",
|
|
181
|
+
property: o
|
|
182
|
+
});
|
|
183
|
+
}), X.value.coordinates.map((o, l) => {
|
|
184
|
+
const t = Fe({
|
|
185
|
+
centerX: n.value.width / 2,
|
|
186
|
+
centerY: n.value.height / 2,
|
|
187
|
+
apexX: o.x,
|
|
188
|
+
apexY: o.y,
|
|
189
|
+
proportion: v.value[l].value / Ee.value,
|
|
190
|
+
key: v.value[l].key,
|
|
191
|
+
value: v.value[l].value
|
|
192
|
+
});
|
|
193
|
+
return {
|
|
194
|
+
...o,
|
|
195
|
+
plots: t,
|
|
196
|
+
key: v.value[l].key
|
|
197
|
+
};
|
|
198
|
+
}))), Re = y(() => ({
|
|
199
|
+
cy: "mood-radar-legend",
|
|
200
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
201
|
+
color: e.value.style.chart.legend.color,
|
|
202
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
203
|
+
paddingBottom: 12,
|
|
204
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
205
|
+
}));
|
|
206
|
+
function Be(o) {
|
|
207
|
+
o === f.value ? f.value = null : (f.value = o, _(o));
|
|
208
|
+
}
|
|
209
|
+
function I(o) {
|
|
210
|
+
f.value = o;
|
|
211
|
+
const l = v.value.find((t) => t.key === o);
|
|
212
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
|
|
213
|
+
}
|
|
214
|
+
function S(o) {
|
|
215
|
+
f.value = null;
|
|
216
|
+
const l = v.value.find((t) => t.key === o);
|
|
217
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
|
|
218
|
+
}
|
|
219
|
+
function _(o) {
|
|
220
|
+
const l = v.value.find((t) => t.key === o);
|
|
221
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
|
|
222
|
+
}
|
|
223
|
+
const b = y(() => {
|
|
224
|
+
const o = v.value.map((t) => ({
|
|
225
|
+
name: t.key,
|
|
226
|
+
color: t.color
|
|
227
|
+
})), l = v.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
228
|
+
return { head: o, body: l };
|
|
229
|
+
});
|
|
230
|
+
function ce(o = null) {
|
|
231
|
+
Xe(() => {
|
|
232
|
+
const l = b.value.head.map((k, p) => [[
|
|
233
|
+
k.name
|
|
234
|
+
], [b.value.body[p]], [isNaN(b.value.body[p] / A.value) ? "-" : b.value.body[p] / A.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), u = lt(t);
|
|
235
|
+
o ? o(u) : at({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
const B = y(() => {
|
|
239
|
+
const o = [
|
|
240
|
+
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
241
|
+
Number(A.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
242
|
+
"100%"
|
|
243
|
+
], l = b.value.head.map((k, p) => [
|
|
244
|
+
{
|
|
245
|
+
color: k.color,
|
|
246
|
+
name: k.name
|
|
247
|
+
},
|
|
248
|
+
b.value.body[p].toFixed(e.value.table.td.roundingValue),
|
|
249
|
+
isNaN(b.value.body[p] / A.value) ? "-" : (b.value.body[p] / A.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
250
|
+
]), t = {
|
|
251
|
+
th: {
|
|
252
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
253
|
+
color: e.value.table.th.color,
|
|
254
|
+
outline: e.value.table.th.outline
|
|
255
|
+
},
|
|
256
|
+
td: {
|
|
257
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
258
|
+
color: e.value.table.td.color,
|
|
259
|
+
outline: e.value.table.td.outline
|
|
260
|
+
},
|
|
261
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
262
|
+
}, u = [
|
|
263
|
+
e.value.table.columnNames.series,
|
|
264
|
+
e.value.table.columnNames.value,
|
|
265
|
+
e.value.table.columnNames.percentage
|
|
266
|
+
];
|
|
267
|
+
return {
|
|
268
|
+
head: o,
|
|
269
|
+
body: l,
|
|
270
|
+
config: t,
|
|
271
|
+
colNames: u
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
function De() {
|
|
275
|
+
return v.value;
|
|
276
|
+
}
|
|
277
|
+
function ve() {
|
|
278
|
+
O.value.showTable = !O.value.showTable;
|
|
279
|
+
}
|
|
280
|
+
const F = i(!1);
|
|
281
|
+
function ye(o) {
|
|
282
|
+
F.value = o;
|
|
283
|
+
}
|
|
284
|
+
const D = i(!1);
|
|
285
|
+
function q() {
|
|
286
|
+
D.value = !D.value;
|
|
287
|
+
}
|
|
288
|
+
async function Ve({ scale: o = 2 } = {}) {
|
|
289
|
+
if (!w.value) return;
|
|
290
|
+
const { width: l, height: t } = w.value.getBoundingClientRect(), u = l / t, { imageUri: k, base64: p } = await vt({ domElement: w.value, base64: !0, img: !0, scale: o });
|
|
291
|
+
return {
|
|
292
|
+
imageUri: k,
|
|
293
|
+
base64: p,
|
|
294
|
+
title: e.value.style.chart.title.text,
|
|
295
|
+
width: l,
|
|
296
|
+
height: t,
|
|
297
|
+
aspectRatio: u
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
return xe({
|
|
301
|
+
getData: De,
|
|
302
|
+
getImage: Ve,
|
|
303
|
+
generatePdf: ie,
|
|
304
|
+
generateCsv: ce,
|
|
305
|
+
generateImage: de,
|
|
306
|
+
toggleTable: ve,
|
|
307
|
+
toggleAnnotator: q,
|
|
308
|
+
toggleFullscreen: ye
|
|
309
|
+
}), (o, l) => (r(), c("div", {
|
|
310
|
+
class: he(`vue-ui-mood-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
311
|
+
ref_key: "moodRadarChart",
|
|
312
|
+
ref: w,
|
|
313
|
+
id: `${P.value}`,
|
|
314
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
315
|
+
onMouseenter: l[16] || (l[16] = () => a(ae)(!0)),
|
|
316
|
+
onMouseleave: l[17] || (l[17] = () => a(ae)(!1))
|
|
317
|
+
}, [
|
|
318
|
+
e.value.userOptions.buttons.annotator ? (r(), m(a(Ae), {
|
|
319
|
+
key: 0,
|
|
320
|
+
svgRef: a(ne),
|
|
321
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
322
|
+
color: e.value.style.chart.color,
|
|
323
|
+
active: D.value,
|
|
324
|
+
onClose: q
|
|
325
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
326
|
+
Le.value ? (r(), c("div", {
|
|
327
|
+
key: 1,
|
|
328
|
+
ref_key: "noTitle",
|
|
329
|
+
ref: J,
|
|
330
|
+
class: "vue-data-ui-no-title-space",
|
|
331
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
332
|
+
}, null, 512)) : d("", !0),
|
|
333
|
+
e.value.style.chart.title.text ? (r(), c("div", {
|
|
334
|
+
key: 2,
|
|
335
|
+
ref_key: "chartTitle",
|
|
336
|
+
ref: Z,
|
|
337
|
+
style: "width:100%;background:transparent"
|
|
338
|
+
}, [
|
|
339
|
+
Y(yt, {
|
|
340
|
+
config: {
|
|
341
|
+
title: {
|
|
342
|
+
cy: "mood-radar-title",
|
|
343
|
+
...e.value.style.chart.title
|
|
344
|
+
},
|
|
345
|
+
subtitle: {
|
|
346
|
+
cy: "mood-radar-subtitle",
|
|
347
|
+
...e.value.style.chart.title.subtitle
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}, null, 8, ["config"])
|
|
351
|
+
], 512)) : d("", !0),
|
|
352
|
+
e.value.userOptions.show && oe.value && (a(se) || a(G)) ? (r(), m(a(_e), {
|
|
353
|
+
key: 3,
|
|
354
|
+
ref_key: "details",
|
|
355
|
+
ref: Ne,
|
|
356
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
|
+
color: e.value.style.chart.color,
|
|
358
|
+
isPrinting: a(re),
|
|
359
|
+
isImaging: a(ue),
|
|
360
|
+
uid: P.value,
|
|
361
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
362
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
363
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
364
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
365
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
|
+
isFullscreen: F.value,
|
|
367
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
368
|
+
chartElement: w.value,
|
|
369
|
+
position: e.value.userOptions.position,
|
|
370
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
371
|
+
isAnnotation: D.value,
|
|
372
|
+
callbacks: e.value.userOptions.callbacks,
|
|
373
|
+
printScale: e.value.userOptions.print.scale,
|
|
374
|
+
onToggleFullscreen: ye,
|
|
375
|
+
onGeneratePdf: a(ie),
|
|
376
|
+
onGenerateCsv: ce,
|
|
377
|
+
onGenerateImage: a(de),
|
|
378
|
+
onToggleTable: ve,
|
|
379
|
+
onToggleAnnotator: q,
|
|
380
|
+
style: V({
|
|
381
|
+
visibility: a(se) ? a(G) ? "visible" : "hidden" : "visible"
|
|
382
|
+
})
|
|
383
|
+
}, Ge({ _: 2 }, [
|
|
384
|
+
o.$slots.menuIcon ? {
|
|
385
|
+
name: "menuIcon",
|
|
386
|
+
fn: g(({ isOpen: t, color: u }) => [
|
|
387
|
+
h(o.$slots, "menuIcon", j(z({ isOpen: t, color: u })), void 0, !0)
|
|
388
|
+
]),
|
|
389
|
+
key: "0"
|
|
390
|
+
} : void 0,
|
|
391
|
+
o.$slots.optionPdf ? {
|
|
392
|
+
name: "optionPdf",
|
|
393
|
+
fn: g(() => [
|
|
394
|
+
h(o.$slots, "optionPdf", {}, void 0, !0)
|
|
395
|
+
]),
|
|
396
|
+
key: "1"
|
|
397
|
+
} : void 0,
|
|
398
|
+
o.$slots.optionCsv ? {
|
|
399
|
+
name: "optionCsv",
|
|
400
|
+
fn: g(() => [
|
|
401
|
+
h(o.$slots, "optionCsv", {}, void 0, !0)
|
|
402
|
+
]),
|
|
403
|
+
key: "2"
|
|
404
|
+
} : void 0,
|
|
405
|
+
o.$slots.optionImg ? {
|
|
406
|
+
name: "optionImg",
|
|
407
|
+
fn: g(() => [
|
|
408
|
+
h(o.$slots, "optionImg", {}, void 0, !0)
|
|
409
|
+
]),
|
|
410
|
+
key: "3"
|
|
411
|
+
} : void 0,
|
|
412
|
+
o.$slots.optionTable ? {
|
|
413
|
+
name: "optionTable",
|
|
414
|
+
fn: g(() => [
|
|
415
|
+
h(o.$slots, "optionTable", {}, void 0, !0)
|
|
416
|
+
]),
|
|
417
|
+
key: "4"
|
|
418
|
+
} : void 0,
|
|
419
|
+
o.$slots.optionFullscreen ? {
|
|
420
|
+
name: "optionFullscreen",
|
|
421
|
+
fn: g(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
422
|
+
h(o.$slots, "optionFullscreen", j(z({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
423
|
+
]),
|
|
424
|
+
key: "5"
|
|
425
|
+
} : void 0,
|
|
426
|
+
o.$slots.optionAnnotator ? {
|
|
427
|
+
name: "optionAnnotator",
|
|
428
|
+
fn: g(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
429
|
+
h(o.$slots, "optionAnnotator", j(z({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
430
|
+
]),
|
|
431
|
+
key: "6"
|
|
432
|
+
} : void 0
|
|
433
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
434
|
+
(r(), c("svg", {
|
|
435
|
+
ref_key: "svgRef",
|
|
436
|
+
ref: ne,
|
|
437
|
+
xmlns: a(et),
|
|
438
|
+
viewBox: `0 0 ${n.value.width} ${n.value.height}`,
|
|
439
|
+
class: he({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
440
|
+
style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
441
|
+
}, [
|
|
442
|
+
Y(a($e)),
|
|
443
|
+
o.$slots["chart-background"] ? (r(), c("foreignObject", {
|
|
444
|
+
key: 0,
|
|
445
|
+
x: 0,
|
|
446
|
+
y: 0,
|
|
447
|
+
width: n.value.width,
|
|
448
|
+
height: n.value.height,
|
|
449
|
+
style: {
|
|
450
|
+
pointerEvents: "none"
|
|
451
|
+
}
|
|
452
|
+
}, [
|
|
453
|
+
h(o.$slots, "chart-background", {}, void 0, !0)
|
|
454
|
+
], 8, mt)) : d("", !0),
|
|
455
|
+
s("defs", null, [
|
|
456
|
+
s("radialGradient", {
|
|
457
|
+
cx: "50%",
|
|
458
|
+
cy: "50%",
|
|
459
|
+
r: "50%",
|
|
460
|
+
fx: "50%",
|
|
461
|
+
fy: "50%",
|
|
462
|
+
id: `mood_radar_gradient_${P.value}`
|
|
463
|
+
}, [
|
|
464
|
+
s("stop", {
|
|
465
|
+
offset: "0%",
|
|
466
|
+
"stop-color": a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
467
|
+
}, null, 8, bt),
|
|
468
|
+
s("stop", {
|
|
469
|
+
offset: "100%",
|
|
470
|
+
"stop-color": a(x)(a(tt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
471
|
+
}, null, 8, xt)
|
|
472
|
+
], 8, kt)
|
|
473
|
+
]),
|
|
474
|
+
(r(!0), c(fe, null, pe(X.value.coordinates, (t) => (r(), c("line", {
|
|
475
|
+
x1: n.value.width / 2,
|
|
476
|
+
y1: n.value.height / 2,
|
|
477
|
+
x2: t.x,
|
|
478
|
+
y2: t.y,
|
|
479
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
480
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
481
|
+
}, null, 8, Ct))), 256)),
|
|
482
|
+
s("path", {
|
|
483
|
+
d: X.value.path,
|
|
484
|
+
fill: "none",
|
|
485
|
+
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
486
|
+
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
487
|
+
"stroke-linejoin": "round",
|
|
488
|
+
"stroke-linecap": "round"
|
|
489
|
+
}, null, 8, wt),
|
|
490
|
+
s("g", {
|
|
491
|
+
transform: L("5")
|
|
492
|
+
}, [
|
|
493
|
+
s("path", {
|
|
494
|
+
fill: "none",
|
|
495
|
+
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
496
|
+
"stroke-width": "1",
|
|
497
|
+
"stroke-linecap": "round",
|
|
498
|
+
d: "M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"
|
|
499
|
+
}, null, 8, At),
|
|
500
|
+
s("circle", {
|
|
501
|
+
class: "vue-ui-mood-radar-trap",
|
|
502
|
+
cx: "128",
|
|
503
|
+
cy: "25",
|
|
504
|
+
r: "20",
|
|
505
|
+
fill: f.value === "5" ? a(x)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
506
|
+
onMouseenter: l[0] || (l[0] = (t) => I("5")),
|
|
507
|
+
onMouseleave: l[1] || (l[1] = (t) => S("5")),
|
|
508
|
+
onClick: l[2] || (l[2] = (t) => _("5"))
|
|
509
|
+
}, null, 40, _t)
|
|
510
|
+
], 8, $t),
|
|
511
|
+
s("g", {
|
|
512
|
+
transform: L("4")
|
|
513
|
+
}, [
|
|
514
|
+
s("path", {
|
|
515
|
+
fill: "none",
|
|
516
|
+
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
517
|
+
"stroke-width": "1",
|
|
518
|
+
"stroke-linecap": "round",
|
|
519
|
+
d: "M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"
|
|
520
|
+
}, null, 8, Nt),
|
|
521
|
+
s("circle", {
|
|
522
|
+
class: "vue-ui-mood-radar-trap",
|
|
523
|
+
cx: "227",
|
|
524
|
+
cy: "95.5",
|
|
525
|
+
r: "20",
|
|
526
|
+
fill: f.value === "4" ? a(x)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
527
|
+
onMouseenter: l[3] || (l[3] = (t) => I("4")),
|
|
528
|
+
onMouseleave: l[4] || (l[4] = (t) => S("4")),
|
|
529
|
+
onClick: l[5] || (l[5] = (t) => _("4"))
|
|
530
|
+
}, null, 40, Pt)
|
|
531
|
+
], 8, Mt),
|
|
532
|
+
s("g", {
|
|
533
|
+
transform: L("3")
|
|
534
|
+
}, [
|
|
535
|
+
s("path", {
|
|
536
|
+
fill: "none",
|
|
537
|
+
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
538
|
+
"stroke-width": "1",
|
|
539
|
+
"stroke-linecap": "round",
|
|
540
|
+
d: "M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"
|
|
541
|
+
}, null, 8, Ot),
|
|
542
|
+
s("circle", {
|
|
543
|
+
class: "vue-ui-mood-radar-trap",
|
|
544
|
+
cx: "190",
|
|
545
|
+
cy: "213.5",
|
|
546
|
+
r: "20",
|
|
547
|
+
fill: f.value === "3" ? a(x)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
548
|
+
onMouseenter: l[6] || (l[6] = (t) => I("3")),
|
|
549
|
+
onMouseleave: l[7] || (l[7] = (t) => S("3")),
|
|
550
|
+
onClick: l[8] || (l[8] = (t) => _("3"))
|
|
551
|
+
}, null, 40, Lt)
|
|
552
|
+
], 8, Tt),
|
|
553
|
+
s("g", {
|
|
554
|
+
transform: L("2")
|
|
555
|
+
}, [
|
|
556
|
+
s("path", {
|
|
557
|
+
fill: "none",
|
|
558
|
+
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
559
|
+
"stroke-width": "1",
|
|
560
|
+
"stroke-linecap": "round",
|
|
561
|
+
d: "M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"
|
|
562
|
+
}, null, 8, St),
|
|
563
|
+
s("circle", {
|
|
564
|
+
class: "vue-ui-mood-radar-trap",
|
|
565
|
+
cx: "65",
|
|
566
|
+
cy: "213.5",
|
|
567
|
+
r: "20",
|
|
568
|
+
fill: f.value === "2" ? a(x)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
569
|
+
onMouseenter: l[9] || (l[9] = (t) => I("2")),
|
|
570
|
+
onMouseleave: l[10] || (l[10] = (t) => S("2")),
|
|
571
|
+
onClick: l[11] || (l[11] = (t) => _("2"))
|
|
572
|
+
}, null, 40, Ft)
|
|
573
|
+
], 8, It),
|
|
574
|
+
s("g", {
|
|
575
|
+
transform: L("1")
|
|
576
|
+
}, [
|
|
577
|
+
s("path", {
|
|
578
|
+
fill: "none",
|
|
579
|
+
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
580
|
+
"stroke-width": "1",
|
|
581
|
+
"stroke-linecap": "round",
|
|
582
|
+
d: "M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"
|
|
583
|
+
}, null, 8, Rt),
|
|
584
|
+
s("circle", {
|
|
585
|
+
class: "vue-ui-mood-radar-trap",
|
|
586
|
+
cx: "29",
|
|
587
|
+
cy: "95.5",
|
|
588
|
+
r: "20",
|
|
589
|
+
fill: f.value === "1" ? a(x)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
590
|
+
onMouseenter: l[12] || (l[12] = (t) => I("1")),
|
|
591
|
+
onMouseleave: l[13] || (l[13] = (t) => S("1")),
|
|
592
|
+
onClick: l[14] || (l[14] = (t) => _("1"))
|
|
593
|
+
}, null, 40, Bt)
|
|
594
|
+
], 8, Et),
|
|
595
|
+
s("path", {
|
|
596
|
+
d: a(ot)(K.value.map((t) => t.plots)),
|
|
597
|
+
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
598
|
+
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
599
|
+
"stroke-linecap": "round",
|
|
600
|
+
"stroke-linejoin": "round",
|
|
601
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
602
|
+
}, null, 8, Dt),
|
|
603
|
+
(r(!0), c(fe, null, pe(K.value.map((t) => t.plots), (t, u) => (r(), c("g", {
|
|
604
|
+
class: "vue-ui-mood-radar-trap",
|
|
605
|
+
style: V(`opacity:${f.value == t.key ? "1" : "0"}`)
|
|
606
|
+
}, [
|
|
607
|
+
s("line", {
|
|
608
|
+
x1: t.x,
|
|
609
|
+
y1: t.y,
|
|
610
|
+
x2: n.value.width / 2,
|
|
611
|
+
y2: n.value.height / 2,
|
|
612
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
613
|
+
}, null, 8, Vt),
|
|
614
|
+
s("circle", {
|
|
615
|
+
cx: t.x,
|
|
616
|
+
cy: t.y,
|
|
617
|
+
fill: e.value.style.chart.layout.smileys.colors[t.key],
|
|
618
|
+
r: "3",
|
|
619
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
620
|
+
"stroke-width": 0.5
|
|
621
|
+
}, null, 8, jt),
|
|
622
|
+
s("circle", {
|
|
623
|
+
cx: n.value.width / 2,
|
|
624
|
+
cy: n.value.height / 2,
|
|
625
|
+
fill: e.value.style.chart.layout.smileys.colors[t.key],
|
|
626
|
+
r: "3",
|
|
627
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
628
|
+
"stroke-width": 0.5
|
|
629
|
+
}, null, 8, zt),
|
|
630
|
+
s("text", {
|
|
631
|
+
x: n.value.width / 2,
|
|
632
|
+
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
|
|
633
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
634
|
+
"font-size": "12",
|
|
635
|
+
"text-anchor": "middle",
|
|
636
|
+
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
637
|
+
}, E(a(me)(
|
|
638
|
+
e.value.style.chart.layout.dataLabel.formatter,
|
|
639
|
+
t.value,
|
|
640
|
+
a(U)({
|
|
641
|
+
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
642
|
+
v: t.value,
|
|
643
|
+
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
644
|
+
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
645
|
+
}),
|
|
646
|
+
{ datapoint: t, seriesIndex: u }
|
|
647
|
+
)), 9, Ut),
|
|
648
|
+
s("text", {
|
|
649
|
+
x: n.value.width / 2,
|
|
650
|
+
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
|
|
651
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
652
|
+
"font-size": "12",
|
|
653
|
+
"text-anchor": "middle"
|
|
654
|
+
}, " (" + E(a(U)({
|
|
655
|
+
v: t.value / A.value * 100,
|
|
656
|
+
s: "%",
|
|
657
|
+
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
658
|
+
})) + ") ", 9, Wt)
|
|
659
|
+
], 4))), 256)),
|
|
660
|
+
h(o.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
661
|
+
], 14, gt)),
|
|
662
|
+
o.$slots.watermark ? (r(), c("div", Gt, [
|
|
663
|
+
h(o.$slots, "watermark", j(z({ isPrinting: a(re) || a(ue) })), void 0, !0)
|
|
664
|
+
])) : d("", !0),
|
|
665
|
+
s("div", {
|
|
666
|
+
ref_key: "chartLegend",
|
|
667
|
+
ref: ee
|
|
668
|
+
}, [
|
|
669
|
+
e.value.style.chart.legend.show ? (r(), m(ht, {
|
|
670
|
+
legendSet: v.value,
|
|
671
|
+
config: Re.value,
|
|
672
|
+
key: `legend_${Q.value}`,
|
|
673
|
+
style: { display: "flex", "row-gap": "6px" }
|
|
674
|
+
}, {
|
|
675
|
+
item: g(({ legend: t, index: u }) => [
|
|
676
|
+
s("div", {
|
|
677
|
+
onClick: () => Be(t.key),
|
|
678
|
+
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
679
|
+
}, [
|
|
680
|
+
t.key == 1 ? (r(), m(a(N), {
|
|
681
|
+
key: 0,
|
|
682
|
+
strokeWidth: 1,
|
|
683
|
+
name: "moodSad",
|
|
684
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
685
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
686
|
+
t.key == 2 ? (r(), m(a(N), {
|
|
687
|
+
key: 1,
|
|
688
|
+
strokeWidth: 1,
|
|
689
|
+
name: "moodFlat",
|
|
690
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
691
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
692
|
+
t.key == 3 ? (r(), m(a(N), {
|
|
693
|
+
key: 2,
|
|
694
|
+
strokeWidth: 1,
|
|
695
|
+
name: "moodNeutral",
|
|
696
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
697
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
698
|
+
t.key == 4 ? (r(), m(a(N), {
|
|
699
|
+
key: 3,
|
|
700
|
+
strokeWidth: 1,
|
|
701
|
+
name: "smiley",
|
|
702
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
703
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
704
|
+
t.key == 5 ? (r(), m(a(N), {
|
|
705
|
+
key: 4,
|
|
706
|
+
strokeWidth: 1,
|
|
707
|
+
name: "moodHappy",
|
|
708
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
709
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
710
|
+
a(W) ? d("", !0) : (r(), c("span", Xt, E(a(me)(
|
|
711
|
+
e.value.style.chart.layout.dataLabel.formatter,
|
|
712
|
+
t.value,
|
|
713
|
+
a(U)({
|
|
714
|
+
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
715
|
+
v: t.value,
|
|
716
|
+
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
717
|
+
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
718
|
+
}),
|
|
719
|
+
{ datapoint: t, seriesIndex: u }
|
|
720
|
+
)), 1)),
|
|
721
|
+
a(W) ? d("", !0) : (r(), c("span", Kt, "(" + E(a(U)({
|
|
722
|
+
v: t.proportion * 100,
|
|
723
|
+
s: "%",
|
|
724
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
725
|
+
})) + ")", 1))
|
|
726
|
+
], 8, Ht)
|
|
727
|
+
]),
|
|
728
|
+
_: 1
|
|
729
|
+
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
730
|
+
h(o.$slots, "legend", { legend: v.value }, void 0, !0)
|
|
731
|
+
], 512),
|
|
732
|
+
o.$slots.source ? (r(), c("div", {
|
|
733
|
+
key: 5,
|
|
734
|
+
ref_key: "source",
|
|
735
|
+
ref: te,
|
|
736
|
+
dir: "auto"
|
|
737
|
+
}, [
|
|
738
|
+
h(o.$slots, "source", {}, void 0, !0)
|
|
739
|
+
], 512)) : d("", !0),
|
|
740
|
+
oe.value ? (r(), m(a(Ce), {
|
|
741
|
+
key: 6,
|
|
742
|
+
hideDetails: "",
|
|
743
|
+
config: {
|
|
744
|
+
open: O.value.showTable,
|
|
745
|
+
maxHeight: 1e4,
|
|
746
|
+
body: {
|
|
747
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
748
|
+
color: e.value.style.chart.color
|
|
749
|
+
},
|
|
750
|
+
head: {
|
|
751
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
752
|
+
color: e.value.style.chart.color
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}, {
|
|
756
|
+
content: g(() => [
|
|
757
|
+
Y(a(we), {
|
|
758
|
+
colNames: B.value.colNames,
|
|
759
|
+
head: B.value.head,
|
|
760
|
+
body: B.value.body,
|
|
761
|
+
config: B.value.config,
|
|
762
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
763
|
+
onClose: l[15] || (l[15] = (t) => O.value.showTable = !1)
|
|
764
|
+
}, {
|
|
765
|
+
th: g(({ th: t }) => [
|
|
766
|
+
s("div", {
|
|
767
|
+
innerHTML: t,
|
|
768
|
+
style: { display: "flex", "align-items": "center" }
|
|
769
|
+
}, null, 8, qt)
|
|
770
|
+
]),
|
|
771
|
+
td: g(({ td: t }) => [
|
|
772
|
+
He(E(t.name || t), 1)
|
|
773
|
+
]),
|
|
774
|
+
_: 1
|
|
775
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
776
|
+
]),
|
|
777
|
+
_: 1
|
|
778
|
+
}, 8, ["config"])) : d("", !0),
|
|
779
|
+
a(W) ? (r(), m(ut, { key: 7 })) : d("", !0)
|
|
780
|
+
], 46, pt));
|
|
781
|
+
}
|
|
782
|
+
}, io = /* @__PURE__ */ ft(Yt, [["__scopeId", "data-v-32b86db4"]]);
|
|
783
|
+
export {
|
|
784
|
+
io as default
|
|
785
|
+
};
|