vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
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/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, computed as c, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as De } from "./usePrinter-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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-BzfnuLnw.js";
|
|
3
|
+
import { u as ue } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { u as De } from "./usePrinter-C9qkgv0r.js";
|
|
5
|
+
import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as He } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Xe from "./Legend-CYbP3Kfg.js";
|
|
8
|
+
import Ke from "./Title-pVYRzQXY.js";
|
|
9
|
+
import qe from "./img-ku4zevVD.js";
|
|
10
|
+
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Je = ["id"], Qe = {
|
|
11
12
|
key: 2,
|
|
12
13
|
style: "width:100%;background:transparent"
|
|
13
|
-
},
|
|
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 = {
|
|
14
15
|
key: 5,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, xt = ["onClick"], _t = { style: { "font-weight": "bold" } }, $t = {
|
|
17
18
|
key: 8,
|
|
18
19
|
ref: "source",
|
|
19
20
|
dir: "auto"
|
|
20
|
-
},
|
|
21
|
+
}, Mt = ["innerHTML"], Pt = {
|
|
21
22
|
__name: "vue-ui-mood-radar",
|
|
22
23
|
props: {
|
|
23
24
|
config: {
|
|
@@ -33,90 +34,90 @@ const qe = ["id"], Ye = {
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
setup(ie, { expose: de }) {
|
|
38
|
+
const ce = _(() => import("./vue-ui-accordion-DgZK-qDz.js")), $ = _(() => import("./BaseIcon-BmZ4MREl.js")), ve = _(() => import("./DataTable-CgL0Rz0x.js")), ye = _(() => import("./PackageVersion-CAkNkiIG.js")), he = _(() => import("./PenAndPaper-Cx1-5zdD.js")), fe = _(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), pe = _(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_mood_radar: me } = Fe(), d = ie, M = c(() => !!d.dataset && Object.keys(d.dataset).length);
|
|
39
|
+
Oe(() => {
|
|
39
40
|
W();
|
|
40
41
|
});
|
|
41
42
|
function W() {
|
|
42
|
-
|
|
43
|
+
Se(d.dataset) && re({
|
|
43
44
|
componentName: "VueUiMoodRadar",
|
|
44
45
|
type: "dataset"
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
const P =
|
|
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({
|
|
48
49
|
get: () => X(),
|
|
49
50
|
set: (o) => o
|
|
50
|
-
}), { userOptionsVisible: j, setUserOptionsVisibility:
|
|
51
|
+
}), { userOptionsVisible: j, setUserOptionsVisibility: D, keepUserOptionState: G } = Ge({ config: e.value }), { svgRef: H } = He({ config: e.value.style.chart.title });
|
|
51
52
|
function X() {
|
|
52
|
-
const o =
|
|
53
|
+
const o = ue({
|
|
53
54
|
userConfig: d.config,
|
|
54
|
-
defaultConfig:
|
|
55
|
+
defaultConfig: me
|
|
55
56
|
});
|
|
56
57
|
return o.theme ? {
|
|
57
|
-
...
|
|
58
|
-
userConfig:
|
|
58
|
+
...ue({
|
|
59
|
+
userConfig: Re.vue_ui_mood_radar[o.theme] || d.config,
|
|
59
60
|
defaultConfig: o
|
|
60
61
|
})
|
|
61
62
|
} : o;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
e.value = X(), j.value = !e.value.userOptions.showOnChartHover, W(),
|
|
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;
|
|
65
66
|
}, { deep: !0 });
|
|
66
67
|
const { isPrinting: K, isImaging: q, generatePdf: Y, generateImage: J } = De({
|
|
67
68
|
elementId: P.value,
|
|
68
69
|
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
69
70
|
options: e.value.userOptions.print
|
|
70
|
-
}),
|
|
71
|
+
}), we = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = h({
|
|
71
72
|
showTable: e.value.table.show
|
|
72
|
-
}),
|
|
73
|
+
}), m = c(() => ({
|
|
73
74
|
height: 256,
|
|
74
75
|
width: 256
|
|
75
|
-
})),
|
|
76
|
-
plot: { x: 128, y:
|
|
76
|
+
})), B = c(() => je({
|
|
77
|
+
plot: { x: 128, y: m.value.height / 2 },
|
|
77
78
|
radius: 90,
|
|
78
79
|
sides: 5,
|
|
79
80
|
rotation: 11
|
|
80
81
|
}));
|
|
81
|
-
function
|
|
82
|
+
function xe({ centerX: o, centerY: l, apexX: t, apexY: u, proportion: b, key: y, value: Ae }) {
|
|
82
83
|
return {
|
|
83
|
-
x: o + (t - o) *
|
|
84
|
-
y: l + (u - l) *
|
|
85
|
-
key:
|
|
86
|
-
value:
|
|
84
|
+
x: o + (t - o) * b,
|
|
85
|
+
y: l + (u - l) * b,
|
|
86
|
+
key: y,
|
|
87
|
+
value: Ae
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
const
|
|
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) => {
|
|
90
91
|
const t = typeof d.dataset[o] != "number" || isNaN(d.dataset[o]) ? 0 : d.dataset[o];
|
|
91
92
|
return {
|
|
92
93
|
index: l,
|
|
93
94
|
key: o,
|
|
94
95
|
value: t,
|
|
95
|
-
proportion: t /
|
|
96
|
+
proportion: t / x.value,
|
|
96
97
|
color: e.value.style.chart.layout.smileys.colors[o]
|
|
97
98
|
};
|
|
98
99
|
}).sort((o, l) => l.key - o.key)), Q = c(() => M.value ? (["1", "2", "3", "4", "5"].forEach((o) => {
|
|
99
|
-
[null, void 0].includes(d.dataset[o]) &&
|
|
100
|
+
[null, void 0].includes(d.dataset[o]) && re({
|
|
100
101
|
componentName: "VueUiMoodRadar",
|
|
101
102
|
type: "datasetAttribute",
|
|
102
103
|
property: o
|
|
103
104
|
});
|
|
104
|
-
}),
|
|
105
|
-
const t =
|
|
106
|
-
centerX:
|
|
107
|
-
centerY:
|
|
105
|
+
}), B.value.coordinates.map((o, l) => {
|
|
106
|
+
const t = xe({
|
|
107
|
+
centerX: m.value.width / 2,
|
|
108
|
+
centerY: m.value.height / 2,
|
|
108
109
|
apexX: o.x,
|
|
109
110
|
apexY: o.y,
|
|
110
|
-
proportion:
|
|
111
|
-
key:
|
|
112
|
-
value:
|
|
111
|
+
proportion: k.value[l].value / _e.value,
|
|
112
|
+
key: k.value[l].key,
|
|
113
|
+
value: k.value[l].value
|
|
113
114
|
});
|
|
114
115
|
return {
|
|
115
116
|
...o,
|
|
116
117
|
plots: t,
|
|
117
|
-
key:
|
|
118
|
+
key: k.value[l].key
|
|
118
119
|
};
|
|
119
|
-
})) : []),
|
|
120
|
+
})) : []), $e = c(() => ({
|
|
120
121
|
cy: "mood-radar-legend",
|
|
121
122
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
122
123
|
color: e.value.style.chart.legend.color,
|
|
@@ -124,36 +125,36 @@ const qe = ["id"], Ye = {
|
|
|
124
125
|
paddingBottom: 12,
|
|
125
126
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
126
127
|
}));
|
|
127
|
-
function
|
|
128
|
+
function Me(o) {
|
|
128
129
|
o === n.value ? n.value = null : n.value = o;
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
-
const o =
|
|
131
|
+
const C = c(() => {
|
|
132
|
+
const o = k.value.map((t) => ({
|
|
132
133
|
name: t.key,
|
|
133
134
|
color: t.color
|
|
134
|
-
})), l =
|
|
135
|
+
})), l = k.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
135
136
|
return { head: o, body: l };
|
|
136
137
|
});
|
|
137
138
|
function Z(o = null) {
|
|
138
139
|
Le(() => {
|
|
139
|
-
const l =
|
|
140
|
-
|
|
141
|
-
], [
|
|
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);
|
|
142
143
|
o ? o(u) : ze({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
|
-
const
|
|
146
|
+
const I = c(() => {
|
|
146
147
|
const o = [
|
|
147
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>',
|
|
148
|
-
Number(
|
|
149
|
+
Number(x.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
149
150
|
"100%"
|
|
150
|
-
], l =
|
|
151
|
+
], l = C.value.head.map((b, y) => [
|
|
151
152
|
{
|
|
152
|
-
color:
|
|
153
|
-
name:
|
|
153
|
+
color: b.color,
|
|
154
|
+
name: b.name
|
|
154
155
|
},
|
|
155
|
-
|
|
156
|
-
isNaN(
|
|
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) + "%"
|
|
157
158
|
]), t = {
|
|
158
159
|
th: {
|
|
159
160
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -178,53 +179,67 @@ const qe = ["id"], Ye = {
|
|
|
178
179
|
colNames: u
|
|
179
180
|
};
|
|
180
181
|
});
|
|
181
|
-
function
|
|
182
|
-
return
|
|
182
|
+
function Pe() {
|
|
183
|
+
return k.value;
|
|
183
184
|
}
|
|
184
185
|
function ee() {
|
|
185
|
-
|
|
186
|
+
A.value.showTable = !A.value.showTable;
|
|
186
187
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
const O = h(!1);
|
|
189
|
+
function te(o) {
|
|
190
|
+
O.value = o;
|
|
190
191
|
}
|
|
191
|
-
const L =
|
|
192
|
-
function
|
|
192
|
+
const L = h(!1);
|
|
193
|
+
function U() {
|
|
193
194
|
L.value = !L.value;
|
|
194
195
|
}
|
|
195
|
-
|
|
196
|
-
|
|
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,
|
|
197
211
|
generatePdf: Y,
|
|
198
212
|
generateCsv: Z,
|
|
199
213
|
generateImage: J,
|
|
200
214
|
toggleTable: ee,
|
|
201
|
-
toggleAnnotator:
|
|
202
|
-
|
|
203
|
-
|
|
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"}`),
|
|
204
219
|
ref_key: "moodRadarChart",
|
|
205
|
-
ref:
|
|
220
|
+
ref: N,
|
|
206
221
|
id: `${P.value}`,
|
|
207
|
-
style:
|
|
208
|
-
onMouseenter: l[11] || (l[11] = () => a(
|
|
209
|
-
onMouseleave: l[12] || (l[12] = () => a(
|
|
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))
|
|
210
225
|
}, [
|
|
211
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
226
|
+
e.value.userOptions.buttons.annotator ? (r(), g(a(he), {
|
|
212
227
|
key: 0,
|
|
213
228
|
svgRef: a(H),
|
|
214
229
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
215
230
|
color: e.value.style.chart.color,
|
|
216
231
|
active: L.value,
|
|
217
|
-
onClose:
|
|
232
|
+
onClose: U
|
|
218
233
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
219
|
-
|
|
234
|
+
we.value ? (r(), f("div", {
|
|
220
235
|
key: 1,
|
|
221
236
|
ref_key: "noTitle",
|
|
222
|
-
ref:
|
|
237
|
+
ref: ke,
|
|
223
238
|
class: "vue-data-ui-no-title-space",
|
|
224
239
|
style: "height:36px; width: 100%;background:transparent"
|
|
225
240
|
}, null, 512)) : i("", !0),
|
|
226
|
-
e.value.style.chart.title.text ? (r(),
|
|
227
|
-
|
|
241
|
+
e.value.style.chart.title.text ? (r(), f("div", Qe, [
|
|
242
|
+
E(Ke, {
|
|
228
243
|
config: {
|
|
229
244
|
title: {
|
|
230
245
|
cy: "mood-radar-title",
|
|
@@ -237,10 +252,10 @@ const qe = ["id"], Ye = {
|
|
|
237
252
|
}
|
|
238
253
|
}, null, 8, ["config"])
|
|
239
254
|
])) : i("", !0),
|
|
240
|
-
e.value.userOptions.show && M.value && (a(G) || a(j)) ? (r(),
|
|
255
|
+
e.value.userOptions.show && M.value && (a(G) || a(j)) ? (r(), g(a(pe), {
|
|
241
256
|
key: 3,
|
|
242
257
|
ref_key: "details",
|
|
243
|
-
ref:
|
|
258
|
+
ref: ge,
|
|
244
259
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
245
260
|
color: e.value.style.chart.color,
|
|
246
261
|
isPrinting: a(K),
|
|
@@ -251,95 +266,96 @@ const qe = ["id"], Ye = {
|
|
|
251
266
|
hasImg: e.value.userOptions.buttons.img,
|
|
252
267
|
hasTable: e.value.userOptions.buttons.table,
|
|
253
268
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
254
|
-
isFullscreen:
|
|
269
|
+
isFullscreen: O.value,
|
|
255
270
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
256
|
-
chartElement:
|
|
271
|
+
chartElement: N.value,
|
|
257
272
|
position: e.value.userOptions.position,
|
|
258
273
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
259
274
|
isAnnotation: L.value,
|
|
260
275
|
callbacks: e.value.userOptions.callbacks,
|
|
261
|
-
|
|
276
|
+
printScale: e.value.userOptions.print.scale,
|
|
277
|
+
onToggleFullscreen: te,
|
|
262
278
|
onGeneratePdf: a(Y),
|
|
263
279
|
onGenerateCsv: Z,
|
|
264
280
|
onGenerateImage: a(J),
|
|
265
281
|
onToggleTable: ee,
|
|
266
|
-
onToggleAnnotator:
|
|
267
|
-
style:
|
|
282
|
+
onToggleAnnotator: U,
|
|
283
|
+
style: F({
|
|
268
284
|
visibility: a(G) ? a(j) ? "visible" : "hidden" : "visible"
|
|
269
285
|
})
|
|
270
|
-
},
|
|
286
|
+
}, Ie({ _: 2 }, [
|
|
271
287
|
o.$slots.menuIcon ? {
|
|
272
288
|
name: "menuIcon",
|
|
273
|
-
fn:
|
|
274
|
-
v(o.$slots, "menuIcon",
|
|
289
|
+
fn: p(({ isOpen: t, color: u }) => [
|
|
290
|
+
v(o.$slots, "menuIcon", S(V({ isOpen: t, color: u })), void 0, !0)
|
|
275
291
|
]),
|
|
276
292
|
key: "0"
|
|
277
293
|
} : void 0,
|
|
278
294
|
o.$slots.optionPdf ? {
|
|
279
295
|
name: "optionPdf",
|
|
280
|
-
fn:
|
|
296
|
+
fn: p(() => [
|
|
281
297
|
v(o.$slots, "optionPdf", {}, void 0, !0)
|
|
282
298
|
]),
|
|
283
299
|
key: "1"
|
|
284
300
|
} : void 0,
|
|
285
301
|
o.$slots.optionCsv ? {
|
|
286
302
|
name: "optionCsv",
|
|
287
|
-
fn:
|
|
303
|
+
fn: p(() => [
|
|
288
304
|
v(o.$slots, "optionCsv", {}, void 0, !0)
|
|
289
305
|
]),
|
|
290
306
|
key: "2"
|
|
291
307
|
} : void 0,
|
|
292
308
|
o.$slots.optionImg ? {
|
|
293
309
|
name: "optionImg",
|
|
294
|
-
fn:
|
|
310
|
+
fn: p(() => [
|
|
295
311
|
v(o.$slots, "optionImg", {}, void 0, !0)
|
|
296
312
|
]),
|
|
297
313
|
key: "3"
|
|
298
314
|
} : void 0,
|
|
299
315
|
o.$slots.optionTable ? {
|
|
300
316
|
name: "optionTable",
|
|
301
|
-
fn:
|
|
317
|
+
fn: p(() => [
|
|
302
318
|
v(o.$slots, "optionTable", {}, void 0, !0)
|
|
303
319
|
]),
|
|
304
320
|
key: "4"
|
|
305
321
|
} : void 0,
|
|
306
322
|
o.$slots.optionFullscreen ? {
|
|
307
323
|
name: "optionFullscreen",
|
|
308
|
-
fn:
|
|
309
|
-
v(o.$slots, "optionFullscreen",
|
|
324
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
325
|
+
v(o.$slots, "optionFullscreen", S(V({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
310
326
|
]),
|
|
311
327
|
key: "5"
|
|
312
328
|
} : void 0,
|
|
313
329
|
o.$slots.optionAnnotator ? {
|
|
314
330
|
name: "optionAnnotator",
|
|
315
|
-
fn:
|
|
316
|
-
v(o.$slots, "optionAnnotator",
|
|
331
|
+
fn: p(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
332
|
+
v(o.$slots, "optionAnnotator", S(V({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
317
333
|
]),
|
|
318
334
|
key: "6"
|
|
319
335
|
} : void 0
|
|
320
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
321
|
-
M.value ? (r(),
|
|
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", {
|
|
322
338
|
key: 4,
|
|
323
339
|
ref_key: "svgRef",
|
|
324
340
|
ref: H,
|
|
325
|
-
xmlns: a(
|
|
326
|
-
viewBox: `0 0 ${
|
|
327
|
-
class:
|
|
328
|
-
style:
|
|
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}`)
|
|
329
345
|
}, [
|
|
330
|
-
|
|
331
|
-
o.$slots["chart-background"] ? (r(),
|
|
346
|
+
E(a(ye)),
|
|
347
|
+
o.$slots["chart-background"] ? (r(), f("foreignObject", {
|
|
332
348
|
key: 0,
|
|
333
349
|
x: 0,
|
|
334
350
|
y: 0,
|
|
335
|
-
width:
|
|
336
|
-
height:
|
|
351
|
+
width: m.value.width,
|
|
352
|
+
height: m.value.height,
|
|
337
353
|
style: {
|
|
338
354
|
pointerEvents: "none"
|
|
339
355
|
}
|
|
340
356
|
}, [
|
|
341
357
|
v(o.$slots, "chart-background", {}, void 0, !0)
|
|
342
|
-
], 8,
|
|
358
|
+
], 8, et)) : i("", !0),
|
|
343
359
|
s("defs", null, [
|
|
344
360
|
s("radialGradient", {
|
|
345
361
|
cx: "50%",
|
|
@@ -351,37 +367,37 @@ const qe = ["id"], Ye = {
|
|
|
351
367
|
}, [
|
|
352
368
|
s("stop", {
|
|
353
369
|
offset: "0%",
|
|
354
|
-
"stop-color": a(
|
|
355
|
-
}, null, 8,
|
|
370
|
+
"stop-color": a(w)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
371
|
+
}, null, 8, ot),
|
|
356
372
|
s("stop", {
|
|
357
373
|
offset: "100%",
|
|
358
|
-
"stop-color": a(
|
|
359
|
-
}, null, 8,
|
|
360
|
-
], 8,
|
|
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)
|
|
361
377
|
]),
|
|
362
|
-
(r(!0),
|
|
363
|
-
x1:
|
|
364
|
-
y1:
|
|
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,
|
|
365
381
|
x2: t.x,
|
|
366
382
|
y2: t.y,
|
|
367
383
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
368
384
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
369
|
-
}, null, 8,
|
|
385
|
+
}, null, 8, at))), 256)),
|
|
370
386
|
s("path", {
|
|
371
|
-
d:
|
|
387
|
+
d: B.value.path,
|
|
372
388
|
fill: "none",
|
|
373
389
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
374
390
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
375
391
|
"stroke-linejoin": "round",
|
|
376
392
|
"stroke-linecap": "round"
|
|
377
|
-
}, null, 8,
|
|
393
|
+
}, null, 8, st),
|
|
378
394
|
s("path", {
|
|
379
395
|
fill: "none",
|
|
380
396
|
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
381
397
|
"stroke-width": "1",
|
|
382
398
|
"stroke-linecap": "round",
|
|
383
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"
|
|
384
|
-
}, null, 8,
|
|
400
|
+
}, null, 8, rt),
|
|
385
401
|
s("circle", {
|
|
386
402
|
class: "vue-ui-mood-radar-trap",
|
|
387
403
|
onMouseenter: l[0] || (l[0] = (t) => n.value = 5),
|
|
@@ -389,15 +405,15 @@ const qe = ["id"], Ye = {
|
|
|
389
405
|
cx: "128",
|
|
390
406
|
cy: "25",
|
|
391
407
|
r: "20",
|
|
392
|
-
fill: n.value === 5 ? a(
|
|
393
|
-
}, null, 40,
|
|
408
|
+
fill: n.value === 5 ? a(w)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
|
|
409
|
+
}, null, 40, nt),
|
|
394
410
|
s("path", {
|
|
395
411
|
fill: "none",
|
|
396
412
|
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
397
413
|
"stroke-width": "1",
|
|
398
414
|
"stroke-linecap": "round",
|
|
399
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"
|
|
400
|
-
}, null, 8,
|
|
416
|
+
}, null, 8, ut),
|
|
401
417
|
s("circle", {
|
|
402
418
|
class: "vue-ui-mood-radar-trap",
|
|
403
419
|
onMouseenter: l[2] || (l[2] = (t) => n.value = 4),
|
|
@@ -405,15 +421,15 @@ const qe = ["id"], Ye = {
|
|
|
405
421
|
cx: "227",
|
|
406
422
|
cy: "95.5",
|
|
407
423
|
r: "20",
|
|
408
|
-
fill: n.value === 4 ? a(
|
|
409
|
-
}, null, 40,
|
|
424
|
+
fill: n.value === 4 ? a(w)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
|
|
425
|
+
}, null, 40, it),
|
|
410
426
|
s("path", {
|
|
411
427
|
fill: "none",
|
|
412
428
|
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
413
429
|
"stroke-width": "1",
|
|
414
430
|
"stroke-linecap": "round",
|
|
415
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"
|
|
416
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, dt),
|
|
417
433
|
s("circle", {
|
|
418
434
|
class: "vue-ui-mood-radar-trap",
|
|
419
435
|
onMouseenter: l[4] || (l[4] = (t) => n.value = 3),
|
|
@@ -421,15 +437,15 @@ const qe = ["id"], Ye = {
|
|
|
421
437
|
cx: "190",
|
|
422
438
|
cy: "213.5",
|
|
423
439
|
r: "20",
|
|
424
|
-
fill: n.value === 3 ? a(
|
|
425
|
-
}, null, 40,
|
|
440
|
+
fill: n.value === 3 ? a(w)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
|
|
441
|
+
}, null, 40, ct),
|
|
426
442
|
s("path", {
|
|
427
443
|
fill: "none",
|
|
428
444
|
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
429
445
|
"stroke-width": "1",
|
|
430
446
|
"stroke-linecap": "round",
|
|
431
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"
|
|
432
|
-
}, null, 8,
|
|
448
|
+
}, null, 8, vt),
|
|
433
449
|
s("circle", {
|
|
434
450
|
class: "vue-ui-mood-radar-trap",
|
|
435
451
|
onMouseenter: l[6] || (l[6] = (t) => n.value = 2),
|
|
@@ -437,15 +453,15 @@ const qe = ["id"], Ye = {
|
|
|
437
453
|
cx: "65",
|
|
438
454
|
cy: "213.5",
|
|
439
455
|
r: "20",
|
|
440
|
-
fill: n.value === 2 ? a(
|
|
441
|
-
}, null, 40,
|
|
456
|
+
fill: n.value === 2 ? a(w)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
|
|
457
|
+
}, null, 40, yt),
|
|
442
458
|
s("path", {
|
|
443
459
|
fill: "none",
|
|
444
460
|
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
445
461
|
"stroke-width": "1",
|
|
446
462
|
"stroke-linecap": "round",
|
|
447
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"
|
|
448
|
-
}, null, 8,
|
|
464
|
+
}, null, 8, ht),
|
|
449
465
|
s("circle", {
|
|
450
466
|
class: "vue-ui-mood-radar-trap",
|
|
451
467
|
onMouseenter: l[8] || (l[8] = (t) => n.value = 1),
|
|
@@ -453,19 +469,19 @@ const qe = ["id"], Ye = {
|
|
|
453
469
|
cx: "29",
|
|
454
470
|
cy: "95.5",
|
|
455
471
|
r: "20",
|
|
456
|
-
fill: n.value === 1 ? a(
|
|
457
|
-
}, null, 40,
|
|
472
|
+
fill: n.value === 1 ? a(w)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
|
|
473
|
+
}, null, 40, ft),
|
|
458
474
|
s("path", {
|
|
459
|
-
d: a(
|
|
475
|
+
d: a(Ee)(Q.value.map((t) => t.plots)),
|
|
460
476
|
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
461
477
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
462
478
|
"stroke-linecap": "round",
|
|
463
479
|
"stroke-linejoin": "round",
|
|
464
|
-
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${P.value})` : a(
|
|
465
|
-
}, null, 8,
|
|
466
|
-
(r(!0),
|
|
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", {
|
|
467
483
|
class: "vue-ui-mood-radar-trap",
|
|
468
|
-
style:
|
|
484
|
+
style: F(`opacity:${n.value == t.key ? "1" : "0"}`)
|
|
469
485
|
}, [
|
|
470
486
|
s("line", {
|
|
471
487
|
x1: t.x,
|
|
@@ -473,7 +489,7 @@ const qe = ["id"], Ye = {
|
|
|
473
489
|
x2: 128,
|
|
474
490
|
y2: 128,
|
|
475
491
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
476
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, mt),
|
|
477
493
|
s("circle", {
|
|
478
494
|
cx: t.x,
|
|
479
495
|
cy: t.y,
|
|
@@ -481,7 +497,7 @@ const qe = ["id"], Ye = {
|
|
|
481
497
|
r: "3",
|
|
482
498
|
stroke: e.value.style.chart.backgroundColor,
|
|
483
499
|
"stroke-width": 0.5
|
|
484
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, gt),
|
|
485
501
|
s("circle", {
|
|
486
502
|
cx: 128,
|
|
487
503
|
cy: 128,
|
|
@@ -489,7 +505,7 @@ const qe = ["id"], Ye = {
|
|
|
489
505
|
r: "3",
|
|
490
506
|
stroke: e.value.style.chart.backgroundColor,
|
|
491
507
|
"stroke-width": 0.5
|
|
492
|
-
}, null, 8,
|
|
508
|
+
}, null, 8, kt),
|
|
493
509
|
s("text", {
|
|
494
510
|
x: 128,
|
|
495
511
|
y: ["5", 5].includes(t.key) ? 145 : 120,
|
|
@@ -497,35 +513,35 @@ const qe = ["id"], Ye = {
|
|
|
497
513
|
"font-size": "12",
|
|
498
514
|
"text-anchor": "middle",
|
|
499
515
|
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
500
|
-
},
|
|
516
|
+
}, T(a(ne)(
|
|
501
517
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
502
518
|
t.value,
|
|
503
|
-
a(
|
|
519
|
+
a(R)({
|
|
504
520
|
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
505
521
|
v: t.value,
|
|
506
522
|
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
507
523
|
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
508
524
|
}),
|
|
509
525
|
{ datapoint: t, seriesIndex: u }
|
|
510
|
-
)), 9,
|
|
526
|
+
)), 9, bt),
|
|
511
527
|
s("text", {
|
|
512
528
|
x: 128,
|
|
513
529
|
y: ["5", 5].includes(t.key) ? 163 : 102,
|
|
514
530
|
fill: e.value.style.chart.layout.dataLabel.color,
|
|
515
531
|
"font-size": "12",
|
|
516
532
|
"text-anchor": "middle"
|
|
517
|
-
}, " (" +
|
|
518
|
-
v: t.value /
|
|
533
|
+
}, " (" + T(a(R)({
|
|
534
|
+
v: t.value / x.value * 100,
|
|
519
535
|
s: "%",
|
|
520
536
|
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
521
|
-
})) + ") ", 9,
|
|
537
|
+
})) + ") ", 9, Ct)
|
|
522
538
|
], 4))), 256)),
|
|
523
|
-
v(o.$slots, "svg", { svg:
|
|
524
|
-
], 14,
|
|
525
|
-
o.$slots.watermark ? (r(),
|
|
526
|
-
v(o.$slots, "watermark",
|
|
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)
|
|
527
543
|
])) : i("", !0),
|
|
528
|
-
M.value ? i("", !0) : (r(),
|
|
544
|
+
M.value ? i("", !0) : (r(), g(a(fe), {
|
|
529
545
|
key: 6,
|
|
530
546
|
config: {
|
|
531
547
|
type: "radar",
|
|
@@ -542,51 +558,51 @@ const qe = ["id"], Ye = {
|
|
|
542
558
|
}
|
|
543
559
|
}
|
|
544
560
|
}, null, 8, ["config"])),
|
|
545
|
-
e.value.style.chart.legend.show ? (r(),
|
|
546
|
-
legendSet:
|
|
547
|
-
config:
|
|
548
|
-
key: `legend_${
|
|
561
|
+
e.value.style.chart.legend.show ? (r(), g(Xe, {
|
|
562
|
+
legendSet: k.value,
|
|
563
|
+
config: $e.value,
|
|
564
|
+
key: `legend_${z.value}`,
|
|
549
565
|
style: { display: "flex", "row-gap": "6px" }
|
|
550
566
|
}, {
|
|
551
|
-
item:
|
|
567
|
+
item: p(({ legend: t, index: u }) => [
|
|
552
568
|
s("div", {
|
|
553
|
-
onClick: () =>
|
|
569
|
+
onClick: () => Me(t.key),
|
|
554
570
|
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
555
571
|
}, [
|
|
556
|
-
t.key == 1 ? (r(),
|
|
572
|
+
t.key == 1 ? (r(), g(a($), {
|
|
557
573
|
key: 0,
|
|
558
574
|
strokeWidth: 1,
|
|
559
575
|
name: "moodSad",
|
|
560
576
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
561
577
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
562
|
-
t.key == 2 ? (r(),
|
|
578
|
+
t.key == 2 ? (r(), g(a($), {
|
|
563
579
|
key: 1,
|
|
564
580
|
strokeWidth: 1,
|
|
565
581
|
name: "moodFlat",
|
|
566
582
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
567
583
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
568
|
-
t.key == 3 ? (r(),
|
|
584
|
+
t.key == 3 ? (r(), g(a($), {
|
|
569
585
|
key: 2,
|
|
570
586
|
strokeWidth: 1,
|
|
571
587
|
name: "moodNeutral",
|
|
572
588
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
573
589
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
574
|
-
t.key == 4 ? (r(),
|
|
590
|
+
t.key == 4 ? (r(), g(a($), {
|
|
575
591
|
key: 3,
|
|
576
592
|
strokeWidth: 1,
|
|
577
593
|
name: "smiley",
|
|
578
594
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
579
595
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
580
|
-
t.key == 5 ? (r(),
|
|
596
|
+
t.key == 5 ? (r(), g(a($), {
|
|
581
597
|
key: 4,
|
|
582
598
|
strokeWidth: 1,
|
|
583
599
|
name: "moodHappy",
|
|
584
600
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
585
601
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
586
|
-
s("span",
|
|
602
|
+
s("span", _t, T(a(ne)(
|
|
587
603
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
588
604
|
t.value,
|
|
589
|
-
a(
|
|
605
|
+
a(R)({
|
|
590
606
|
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
591
607
|
v: t.value,
|
|
592
608
|
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -594,24 +610,24 @@ const qe = ["id"], Ye = {
|
|
|
594
610
|
}),
|
|
595
611
|
{ datapoint: t, seriesIndex: u }
|
|
596
612
|
)), 1),
|
|
597
|
-
|
|
613
|
+
se(" (" + T(a(R)({
|
|
598
614
|
v: t.proportion * 100,
|
|
599
615
|
s: "%",
|
|
600
616
|
r: e.value.style.chart.legend.roundingPercentage
|
|
601
617
|
})) + ") ", 1)
|
|
602
|
-
], 8,
|
|
618
|
+
], 8, xt)
|
|
603
619
|
]),
|
|
604
620
|
_: 1
|
|
605
621
|
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
606
|
-
v(o.$slots, "legend", { legend:
|
|
607
|
-
o.$slots.source ? (r(),
|
|
622
|
+
v(o.$slots, "legend", { legend: k.value }, void 0, !0),
|
|
623
|
+
o.$slots.source ? (r(), f("div", $t, [
|
|
608
624
|
v(o.$slots, "source", {}, void 0, !0)
|
|
609
625
|
], 512)) : i("", !0),
|
|
610
|
-
M.value ? (r(),
|
|
626
|
+
M.value ? (r(), g(a(ce), {
|
|
611
627
|
key: 9,
|
|
612
628
|
hideDetails: "",
|
|
613
629
|
config: {
|
|
614
|
-
open:
|
|
630
|
+
open: A.value.showTable,
|
|
615
631
|
maxHeight: 1e4,
|
|
616
632
|
body: {
|
|
617
633
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -623,32 +639,32 @@ const qe = ["id"], Ye = {
|
|
|
623
639
|
}
|
|
624
640
|
}
|
|
625
641
|
}, {
|
|
626
|
-
content:
|
|
627
|
-
|
|
628
|
-
colNames:
|
|
629
|
-
head:
|
|
630
|
-
body:
|
|
631
|
-
config:
|
|
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,
|
|
632
648
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
633
|
-
onClose: l[10] || (l[10] = (t) =>
|
|
649
|
+
onClose: l[10] || (l[10] = (t) => A.value.showTable = !1)
|
|
634
650
|
}, {
|
|
635
|
-
th:
|
|
651
|
+
th: p(({ th: t }) => [
|
|
636
652
|
s("div", {
|
|
637
653
|
innerHTML: t,
|
|
638
654
|
style: { display: "flex", "align-items": "center" }
|
|
639
|
-
}, null, 8,
|
|
655
|
+
}, null, 8, Mt)
|
|
640
656
|
]),
|
|
641
|
-
td:
|
|
642
|
-
|
|
657
|
+
td: p(({ td: t }) => [
|
|
658
|
+
se(T(t.name || t), 1)
|
|
643
659
|
]),
|
|
644
660
|
_: 1
|
|
645
661
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
646
662
|
]),
|
|
647
663
|
_: 1
|
|
648
664
|
}, 8, ["config"])) : i("", !0)
|
|
649
|
-
], 46,
|
|
665
|
+
], 46, Je));
|
|
650
666
|
}
|
|
651
|
-
},
|
|
667
|
+
}, jt = /* @__PURE__ */ Ye(Pt, [["__scopeId", "data-v-b1ec6585"]]);
|
|
652
668
|
export {
|
|
653
|
-
|
|
669
|
+
jt as default
|
|
654
670
|
};
|