vue-data-ui 3.2.8 → 3.3.0
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-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
import { defineAsyncComponent as M, ref as u, computed as d, toRefs as st, onMounted as nt, watch as Ce, createElementBlock as h, openBlock as r, unref as a, normalizeStyle as E, normalizeClass as we, createBlock as k, createCommentVNode as c, createElementVNode as s, createVNode as j, createSlots as xe, withCtx as v, renderSlot as g, normalizeProps as z, guardReactiveProps as G, Fragment as $e, renderList as _e, toDisplayString as R, Teleport as rt, resolveDynamicComponent as ut, mergeProps as it, createTextVNode as Ae, nextTick as Te } from "vue";
|
|
2
|
+
import { c as dt, t as ct, o as vt, f as Me, k as yt, a as Pe, d as H, X as ht, s as x, i as gt, S as ft, x as pt, y as mt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as kt, u as bt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ct, a as Oe } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as wt, B as xt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as $t } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as _t } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Mt from "./img-6wPuVVtk.js";
|
|
11
|
+
import Pt from "./Title-D17CJXko.js";
|
|
12
|
+
import { t as Ot } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import Nt from "./Legend-DsogCeTb.js";
|
|
14
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const St = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["id"], Et = ["stop-color"], Rt = ["stop-color"], Vt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Wt = ["transform"], jt = ["stroke"], zt = ["fill"], Gt = ["transform"], Ht = ["stroke"], Xt = ["fill"], Kt = ["transform"], qt = ["stroke"], Yt = ["fill"], Jt = ["transform"], Qt = ["stroke"], Zt = ["fill"], eo = ["transform"], to = ["stroke"], oo = ["fill"], lo = ["d", "stroke", "stroke-width", "fill"], ao = ["x1", "y1", "x2", "y2", "stroke"], so = ["cx", "cy", "fill", "stroke"], no = ["cx", "cy", "fill", "stroke"], ro = ["x", "y", "fill", "font-weight"], uo = ["x", "y", "fill"], io = {
|
|
16
|
+
key: 4,
|
|
17
|
+
class: "vue-data-ui-watermark"
|
|
18
|
+
}, co = ["id"], vo = ["onClick"], yo = ["innerHTML"], ho = {
|
|
19
|
+
__name: "vue-ui-mood-radar",
|
|
20
|
+
props: {
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
dataset: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default() {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(Ne, { expose: Le }) {
|
|
35
|
+
const P = M(() => import("./BaseIcon-CtqN7W_g.js")), Se = M(() => import("./vue-ui-accordion-Dch9YrCi.js")), Ie = M(() => import("./DataTable-BeI6gYJX.js")), De = M(() => import("./PenAndPaper-BxbYiPy4.js")), Fe = M(() => import("./UserOptions-B3vCIe-u.js")), Be = M(() => import("./PackageVersion-C9oklnuy.js")), Ee = M(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_mood_radar: Re } = Ct(), $ = Ne, b = u(dt()), C = u(null), f = u(null), oe = u(null), Ve = u(0), Ue = u(0), le = u(0), ae = u(null), se = u(null), L = u(null), V = u(null), ne = u(null), re = u(!1), S = u(null), X = u(null), ue = d(() => !!$.dataset && Object.keys($.dataset).length), e = u(J()), { loading: K, FINAL_DATASET: _ } = wt({
|
|
36
|
+
...st($),
|
|
37
|
+
FINAL_CONFIG: e,
|
|
38
|
+
prepareConfig: J,
|
|
39
|
+
callback: () => {
|
|
40
|
+
Promise.resolve().then(async () => {
|
|
41
|
+
await Te(), A.value.showTable = e.value.table.show;
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
skeletonDataset: {
|
|
45
|
+
1: 1,
|
|
46
|
+
2: 1,
|
|
47
|
+
3: 1,
|
|
48
|
+
4: 1,
|
|
49
|
+
5: 1
|
|
50
|
+
},
|
|
51
|
+
skeletonConfig: ct({
|
|
52
|
+
defaultConfig: e.value,
|
|
53
|
+
userConfig: {
|
|
54
|
+
userOptions: { show: !1 },
|
|
55
|
+
table: { show: !1 },
|
|
56
|
+
style: {
|
|
57
|
+
chart: {
|
|
58
|
+
backgroundColor: "#99999930",
|
|
59
|
+
layout: {
|
|
60
|
+
grid: {
|
|
61
|
+
stroke: "#6A6A6A"
|
|
62
|
+
},
|
|
63
|
+
outerPolygon: {
|
|
64
|
+
stroke: "#6A6A6A"
|
|
65
|
+
},
|
|
66
|
+
dataPolygon: {
|
|
67
|
+
color: "#6A6A6A",
|
|
68
|
+
opacity: 30,
|
|
69
|
+
stroke: "#6A6A6A"
|
|
70
|
+
},
|
|
71
|
+
smileys: {
|
|
72
|
+
colors: {
|
|
73
|
+
1: "#DBDBDB",
|
|
74
|
+
2: "#C4C4C4",
|
|
75
|
+
3: "#ADADAD",
|
|
76
|
+
4: "#969696",
|
|
77
|
+
5: "#808080"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
dataLabel: {
|
|
81
|
+
color: "transparent"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
legend: {
|
|
85
|
+
backgroundColor: "transparent"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
nt(() => {
|
|
93
|
+
re.value = !0, ie();
|
|
94
|
+
});
|
|
95
|
+
const We = d(() => e.value.debug);
|
|
96
|
+
function ie() {
|
|
97
|
+
if (vt($.dataset) && Me({
|
|
98
|
+
componentName: "VueUiMoodRadar",
|
|
99
|
+
type: "dataset",
|
|
100
|
+
debug: We.value
|
|
101
|
+
}), e.value.responsive) {
|
|
102
|
+
const t = kt(() => {
|
|
103
|
+
const { width: l, height: o } = bt({
|
|
104
|
+
chart: C.value,
|
|
105
|
+
title: e.value.style.chart.title.text ? ae.value : null,
|
|
106
|
+
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
107
|
+
noTitle: oe.value,
|
|
108
|
+
source: ne.value
|
|
109
|
+
});
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
n.value.width = l, n.value.height = o - 12;
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
L.value && (V.value && L.value.unobserve(V.value), L.value.disconnect()), L.value = new ResizeObserver(t), V.value = C.value.parentNode, L.value.observe(V.value);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const { userOptionsVisible: q, setUserOptionsVisibility: de, keepUserOptionState: ce } = At({ config: e.value }), { svgRef: Y } = Tt({ config: e.value.style.chart.title });
|
|
118
|
+
function J() {
|
|
119
|
+
const t = Oe({
|
|
120
|
+
userConfig: $.config,
|
|
121
|
+
defaultConfig: Re
|
|
122
|
+
});
|
|
123
|
+
return t.theme ? {
|
|
124
|
+
...Oe({
|
|
125
|
+
userConfig: Ot.vue_ui_mood_radar[t.theme] || $.config,
|
|
126
|
+
defaultConfig: t
|
|
127
|
+
})
|
|
128
|
+
} : t;
|
|
129
|
+
}
|
|
130
|
+
Ce(() => $.config, (t) => {
|
|
131
|
+
e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ie(), Ve.value += 1, Ue.value += 1, le.value += 1, A.value.showTable = e.value.table.show;
|
|
132
|
+
}, { deep: !0 });
|
|
133
|
+
const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage: ge } = $t({
|
|
134
|
+
elementId: b.value,
|
|
135
|
+
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
136
|
+
options: e.value.userOptions.print
|
|
137
|
+
}), je = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = u({
|
|
138
|
+
showTable: e.value.table.show
|
|
139
|
+
}), n = u({
|
|
140
|
+
height: 256,
|
|
141
|
+
width: 256
|
|
142
|
+
}), ze = {
|
|
143
|
+
5: { x: 128, y: 35 },
|
|
144
|
+
4: { x: 218, y: 98.5 },
|
|
145
|
+
3: { x: 185, y: 204 },
|
|
146
|
+
2: { x: 70, y: 204 },
|
|
147
|
+
1: { x: 38.5, y: 98.5 }
|
|
148
|
+
}, Ge = d(() => {
|
|
149
|
+
const t = {};
|
|
150
|
+
return Z.value.forEach((l) => {
|
|
151
|
+
t[l.key] = { x: l.x, y: l.y };
|
|
152
|
+
}), t;
|
|
153
|
+
});
|
|
154
|
+
function I(t) {
|
|
155
|
+
const l = ze[t], o = Ge.value[t] || l;
|
|
156
|
+
return `translate(${o.x - l.x}, ${o.y - l.y})`;
|
|
157
|
+
}
|
|
158
|
+
const Q = d(() => yt({
|
|
159
|
+
plot: { x: n.value.width / 2, y: n.value.height / 2 },
|
|
160
|
+
radius: Math.min(n.value.height, n.value.width) * 0.35,
|
|
161
|
+
sides: 5,
|
|
162
|
+
rotation: 11
|
|
163
|
+
}));
|
|
164
|
+
function He({ centerX: t, centerY: l, apexX: o, apexY: i, proportion: p, key: m, value: at }) {
|
|
165
|
+
return {
|
|
166
|
+
x: t + (o - t) * p,
|
|
167
|
+
y: l + (i - l) * p,
|
|
168
|
+
key: m,
|
|
169
|
+
value: at
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
const Xe = d(() => Math.max(...Object.values(_.value).map((t) => isNaN(t) ? 0 : t))), T = d(() => Object.values(_.value).reduce((t, l) => (isNaN(t) ? 0 : t) + (isNaN(l) ? 0 : l), 0)), y = d(() => Object.keys(_.value).map((t, l) => {
|
|
173
|
+
const o = typeof _.value[t] != "number" || isNaN(_.value[t]) ? 0 : _.value[t];
|
|
174
|
+
return {
|
|
175
|
+
index: l,
|
|
176
|
+
key: t,
|
|
177
|
+
value: o,
|
|
178
|
+
proportion: o / T.value,
|
|
179
|
+
color: e.value.style.chart.layout.smileys.colors[t]
|
|
180
|
+
};
|
|
181
|
+
}).sort((t, l) => l.key - t.key)), fe = d(() => y.value.map((t, l) => ({
|
|
182
|
+
...t,
|
|
183
|
+
display: `${Pe(
|
|
184
|
+
e.value.style.chart.layout.dataLabel.formatter,
|
|
185
|
+
t.value,
|
|
186
|
+
H({
|
|
187
|
+
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
188
|
+
v: t.value,
|
|
189
|
+
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
190
|
+
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
191
|
+
})
|
|
192
|
+
)}${K.value ? "" : ` (${H({
|
|
193
|
+
v: t.proportion * 100,
|
|
194
|
+
s: "%",
|
|
195
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
196
|
+
})})`}`
|
|
197
|
+
}))), Z = d(() => (["1", "2", "3", "4", "5"].forEach((t) => {
|
|
198
|
+
[null, void 0].includes(_.value[t]) && Me({
|
|
199
|
+
componentName: "VueUiMoodRadar",
|
|
200
|
+
type: "datasetAttribute",
|
|
201
|
+
property: t
|
|
202
|
+
});
|
|
203
|
+
}), Q.value.coordinates.map((t, l) => {
|
|
204
|
+
const o = He({
|
|
205
|
+
centerX: n.value.width / 2,
|
|
206
|
+
centerY: n.value.height / 2,
|
|
207
|
+
apexX: t.x,
|
|
208
|
+
apexY: t.y,
|
|
209
|
+
proportion: y.value[l].value / Xe.value,
|
|
210
|
+
key: y.value[l].key,
|
|
211
|
+
value: y.value[l].value
|
|
212
|
+
});
|
|
213
|
+
return {
|
|
214
|
+
...t,
|
|
215
|
+
plots: o,
|
|
216
|
+
key: y.value[l].key
|
|
217
|
+
};
|
|
218
|
+
}))), Ke = d(() => ({
|
|
219
|
+
cy: "mood-radar-legend",
|
|
220
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
221
|
+
color: e.value.style.chart.legend.color,
|
|
222
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
223
|
+
paddingBottom: 12,
|
|
224
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
225
|
+
}));
|
|
226
|
+
function qe(t) {
|
|
227
|
+
t === f.value ? f.value = null : (f.value = t, O(t));
|
|
228
|
+
}
|
|
229
|
+
function D(t) {
|
|
230
|
+
f.value = t;
|
|
231
|
+
const l = y.value.find((o) => o.key === t);
|
|
232
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
|
|
233
|
+
}
|
|
234
|
+
function F(t) {
|
|
235
|
+
f.value = null;
|
|
236
|
+
const l = y.value.find((o) => o.key === t);
|
|
237
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
|
|
238
|
+
}
|
|
239
|
+
function O(t) {
|
|
240
|
+
const l = y.value.find((o) => o.key === t);
|
|
241
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
|
|
242
|
+
}
|
|
243
|
+
const w = d(() => {
|
|
244
|
+
const t = y.value.map((o) => ({
|
|
245
|
+
name: o.key,
|
|
246
|
+
color: o.color
|
|
247
|
+
})), l = y.value.map((o) => isNaN(o.value) ? 0 : o.value);
|
|
248
|
+
return { head: t, body: l };
|
|
249
|
+
});
|
|
250
|
+
function ee(t = null) {
|
|
251
|
+
Te(() => {
|
|
252
|
+
const l = w.value.head.map((p, m) => [[
|
|
253
|
+
p.name
|
|
254
|
+
], [w.value.body[m]], [isNaN(w.value.body[m] / T.value) ? "-" : w.value.body[m] / T.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = pt(o);
|
|
255
|
+
t ? t(i) : mt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
const U = d(() => {
|
|
259
|
+
const t = [
|
|
260
|
+
' <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>',
|
|
261
|
+
Number(T.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
262
|
+
"100%"
|
|
263
|
+
], l = w.value.head.map((p, m) => [
|
|
264
|
+
{
|
|
265
|
+
color: p.color,
|
|
266
|
+
name: p.name
|
|
267
|
+
},
|
|
268
|
+
w.value.body[m].toFixed(e.value.table.td.roundingValue),
|
|
269
|
+
isNaN(w.value.body[m] / T.value) ? "-" : (w.value.body[m] / T.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
270
|
+
]), o = {
|
|
271
|
+
th: {
|
|
272
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
273
|
+
color: e.value.table.th.color,
|
|
274
|
+
outline: e.value.table.th.outline
|
|
275
|
+
},
|
|
276
|
+
td: {
|
|
277
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
278
|
+
color: e.value.table.td.color,
|
|
279
|
+
outline: e.value.table.td.outline
|
|
280
|
+
},
|
|
281
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
282
|
+
}, i = [
|
|
283
|
+
e.value.table.columnNames.series,
|
|
284
|
+
e.value.table.columnNames.value,
|
|
285
|
+
e.value.table.columnNames.percentage
|
|
286
|
+
];
|
|
287
|
+
return {
|
|
288
|
+
head: t,
|
|
289
|
+
body: l,
|
|
290
|
+
config: o,
|
|
291
|
+
colNames: i
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
function Ye() {
|
|
295
|
+
return y.value;
|
|
296
|
+
}
|
|
297
|
+
function pe() {
|
|
298
|
+
A.value.showTable = !A.value.showTable;
|
|
299
|
+
}
|
|
300
|
+
const N = u(!1);
|
|
301
|
+
function me(t) {
|
|
302
|
+
N.value = t;
|
|
303
|
+
}
|
|
304
|
+
const W = u(!1);
|
|
305
|
+
function te() {
|
|
306
|
+
W.value = !W.value;
|
|
307
|
+
}
|
|
308
|
+
async function Je({ scale: t = 2 } = {}) {
|
|
309
|
+
if (!C.value) return;
|
|
310
|
+
const { width: l, height: o } = C.value.getBoundingClientRect(), i = l / o, { imageUri: p, base64: m } = await Mt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
311
|
+
return {
|
|
312
|
+
imageUri: p,
|
|
313
|
+
base64: m,
|
|
314
|
+
title: e.value.style.chart.title.text,
|
|
315
|
+
width: l,
|
|
316
|
+
height: o,
|
|
317
|
+
aspectRatio: i
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
const B = d(() => {
|
|
321
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = A.value.showTable;
|
|
322
|
+
return {
|
|
323
|
+
component: t ? Ee : Se,
|
|
324
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
325
|
+
props: t ? {
|
|
326
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
327
|
+
color: e.value.table.th.color,
|
|
328
|
+
headerColor: e.value.table.th.color,
|
|
329
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
330
|
+
isFullscreen: N.value,
|
|
331
|
+
fullscreenParent: C.value,
|
|
332
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
333
|
+
} : {
|
|
334
|
+
hideDetails: !0,
|
|
335
|
+
config: {
|
|
336
|
+
open: l,
|
|
337
|
+
maxHeight: 1e4,
|
|
338
|
+
body: {
|
|
339
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
340
|
+
color: e.value.style.chart.color
|
|
341
|
+
},
|
|
342
|
+
head: {
|
|
343
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
344
|
+
color: e.value.style.chart.color
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
Ce(() => A.value.showTable, (t) => {
|
|
351
|
+
e.value.table.show || (t && e.value.table.useDialog && S.value ? S.value.open() : "close" in S.value && S.value.close());
|
|
352
|
+
});
|
|
353
|
+
function ke() {
|
|
354
|
+
A.value.showTable = !1, X.value && X.value.setTableIconState(!1);
|
|
355
|
+
}
|
|
356
|
+
const Qe = d(() => fe.value.map((t) => ({
|
|
357
|
+
...t,
|
|
358
|
+
name: t.display,
|
|
359
|
+
shape: "circle"
|
|
360
|
+
}))), Ze = d(() => e.value.style.chart.backgroundColor), et = d(() => e.value.style.chart.legend), tt = d(() => e.value.style.chart.title), { exportSvg: ot, getSvg: lt } = _t({
|
|
361
|
+
svg: Y,
|
|
362
|
+
title: tt,
|
|
363
|
+
legend: et,
|
|
364
|
+
legendItems: Qe,
|
|
365
|
+
backgroundColor: Ze
|
|
366
|
+
});
|
|
367
|
+
async function be({ isCb: t }) {
|
|
368
|
+
if (t) {
|
|
369
|
+
const { blob: l, url: o, text: i, dataUrl: p } = await lt();
|
|
370
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: i, dataUrl: p });
|
|
371
|
+
} else
|
|
372
|
+
ot();
|
|
373
|
+
}
|
|
374
|
+
return Le({
|
|
375
|
+
getData: Ye,
|
|
376
|
+
getImage: Je,
|
|
377
|
+
generatePdf: he,
|
|
378
|
+
generateCsv: ee,
|
|
379
|
+
generateImage: ge,
|
|
380
|
+
generateSvg: be,
|
|
381
|
+
toggleTable: pe,
|
|
382
|
+
toggleAnnotator: te,
|
|
383
|
+
toggleFullscreen: me
|
|
384
|
+
}), (t, l) => (r(), h("div", {
|
|
385
|
+
class: we(`vue-data-ui-component vue-ui-mood-radar ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
386
|
+
ref_key: "moodRadarChart",
|
|
387
|
+
ref: C,
|
|
388
|
+
id: `${b.value}`,
|
|
389
|
+
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
390
|
+
onMouseenter: l[16] || (l[16] = () => a(de)(!0)),
|
|
391
|
+
onMouseleave: l[17] || (l[17] = () => a(de)(!1))
|
|
392
|
+
}, [
|
|
393
|
+
e.value.userOptions.buttons.annotator ? (r(), k(a(De), {
|
|
394
|
+
key: 0,
|
|
395
|
+
svgRef: a(Y),
|
|
396
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
|
+
color: e.value.style.chart.color,
|
|
398
|
+
active: W.value,
|
|
399
|
+
onClose: te
|
|
400
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
401
|
+
je.value ? (r(), h("div", {
|
|
402
|
+
key: 1,
|
|
403
|
+
ref_key: "noTitle",
|
|
404
|
+
ref: oe,
|
|
405
|
+
class: "vue-data-ui-no-title-space",
|
|
406
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
407
|
+
}, null, 512)) : c("", !0),
|
|
408
|
+
e.value.style.chart.title.text ? (r(), h("div", {
|
|
409
|
+
key: 2,
|
|
410
|
+
ref_key: "chartTitle",
|
|
411
|
+
ref: ae,
|
|
412
|
+
style: "width:100%;background:transparent"
|
|
413
|
+
}, [
|
|
414
|
+
j(Pt, {
|
|
415
|
+
config: {
|
|
416
|
+
title: {
|
|
417
|
+
cy: "mood-radar-title",
|
|
418
|
+
...e.value.style.chart.title
|
|
419
|
+
},
|
|
420
|
+
subtitle: {
|
|
421
|
+
cy: "mood-radar-subtitle",
|
|
422
|
+
...e.value.style.chart.title.subtitle
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}, null, 8, ["config"])
|
|
426
|
+
], 512)) : c("", !0),
|
|
427
|
+
s("div", {
|
|
428
|
+
id: `legend-top-${b.value}`
|
|
429
|
+
}, null, 8, It),
|
|
430
|
+
e.value.userOptions.show && ue.value && (a(ce) || a(q)) ? (r(), k(a(Fe), {
|
|
431
|
+
key: 3,
|
|
432
|
+
ref_key: "userOptionsRef",
|
|
433
|
+
ref: X,
|
|
434
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
435
|
+
color: e.value.style.chart.color,
|
|
436
|
+
isPrinting: a(ve),
|
|
437
|
+
isImaging: a(ye),
|
|
438
|
+
uid: b.value,
|
|
439
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
440
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
441
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
442
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
443
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
444
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
445
|
+
isFullscreen: N.value,
|
|
446
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
447
|
+
chartElement: C.value,
|
|
448
|
+
position: e.value.userOptions.position,
|
|
449
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
450
|
+
isAnnotation: W.value,
|
|
451
|
+
callbacks: e.value.userOptions.callbacks,
|
|
452
|
+
printScale: e.value.userOptions.print.scale,
|
|
453
|
+
tableDialog: e.value.table.useDialog,
|
|
454
|
+
onToggleFullscreen: me,
|
|
455
|
+
onGeneratePdf: a(he),
|
|
456
|
+
onGenerateCsv: ee,
|
|
457
|
+
onGenerateImage: a(ge),
|
|
458
|
+
onGenerateSvg: be,
|
|
459
|
+
onToggleTable: pe,
|
|
460
|
+
onToggleAnnotator: te,
|
|
461
|
+
style: E({
|
|
462
|
+
visibility: a(ce) ? a(q) ? "visible" : "hidden" : "visible"
|
|
463
|
+
})
|
|
464
|
+
}, xe({ _: 2 }, [
|
|
465
|
+
t.$slots.menuIcon ? {
|
|
466
|
+
name: "menuIcon",
|
|
467
|
+
fn: v(({ isOpen: o, color: i }) => [
|
|
468
|
+
g(t.$slots, "menuIcon", z(G({ isOpen: o, color: i })), void 0, !0)
|
|
469
|
+
]),
|
|
470
|
+
key: "0"
|
|
471
|
+
} : void 0,
|
|
472
|
+
t.$slots.optionPdf ? {
|
|
473
|
+
name: "optionPdf",
|
|
474
|
+
fn: v(() => [
|
|
475
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
476
|
+
]),
|
|
477
|
+
key: "1"
|
|
478
|
+
} : void 0,
|
|
479
|
+
t.$slots.optionCsv ? {
|
|
480
|
+
name: "optionCsv",
|
|
481
|
+
fn: v(() => [
|
|
482
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
483
|
+
]),
|
|
484
|
+
key: "2"
|
|
485
|
+
} : void 0,
|
|
486
|
+
t.$slots.optionImg ? {
|
|
487
|
+
name: "optionImg",
|
|
488
|
+
fn: v(() => [
|
|
489
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
490
|
+
]),
|
|
491
|
+
key: "3"
|
|
492
|
+
} : void 0,
|
|
493
|
+
t.$slots.optionTable ? {
|
|
494
|
+
name: "optionTable",
|
|
495
|
+
fn: v(() => [
|
|
496
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
497
|
+
]),
|
|
498
|
+
key: "4"
|
|
499
|
+
} : void 0,
|
|
500
|
+
t.$slots.optionFullscreen ? {
|
|
501
|
+
name: "optionFullscreen",
|
|
502
|
+
fn: v(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
503
|
+
g(t.$slots, "optionFullscreen", z(G({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
504
|
+
]),
|
|
505
|
+
key: "5"
|
|
506
|
+
} : void 0,
|
|
507
|
+
t.$slots.optionAnnotator ? {
|
|
508
|
+
name: "optionAnnotator",
|
|
509
|
+
fn: v(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
510
|
+
g(t.$slots, "optionAnnotator", z(G({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
511
|
+
]),
|
|
512
|
+
key: "6"
|
|
513
|
+
} : void 0
|
|
514
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
515
|
+
(r(), h("svg", {
|
|
516
|
+
ref_key: "svgRef",
|
|
517
|
+
ref: Y,
|
|
518
|
+
xmlns: a(ht),
|
|
519
|
+
viewBox: `0 0 ${n.value.width} ${n.value.height}`,
|
|
520
|
+
class: we({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
521
|
+
style: E(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
522
|
+
}, [
|
|
523
|
+
j(a(Be)),
|
|
524
|
+
t.$slots["chart-background"] ? (r(), h("foreignObject", {
|
|
525
|
+
key: 0,
|
|
526
|
+
x: 0,
|
|
527
|
+
y: 0,
|
|
528
|
+
width: n.value.width,
|
|
529
|
+
height: n.value.height,
|
|
530
|
+
style: {
|
|
531
|
+
pointerEvents: "none"
|
|
532
|
+
}
|
|
533
|
+
}, [
|
|
534
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
535
|
+
], 8, Ft)) : c("", !0),
|
|
536
|
+
s("defs", null, [
|
|
537
|
+
s("radialGradient", {
|
|
538
|
+
cx: "50%",
|
|
539
|
+
cy: "50%",
|
|
540
|
+
r: "50%",
|
|
541
|
+
fx: "50%",
|
|
542
|
+
fy: "50%",
|
|
543
|
+
id: `mood_radar_gradient_${b.value}`
|
|
544
|
+
}, [
|
|
545
|
+
s("stop", {
|
|
546
|
+
offset: "0%",
|
|
547
|
+
"stop-color": a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
548
|
+
}, null, 8, Et),
|
|
549
|
+
s("stop", {
|
|
550
|
+
offset: "100%",
|
|
551
|
+
"stop-color": a(x)(a(gt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
552
|
+
}, null, 8, Rt)
|
|
553
|
+
], 8, Bt)
|
|
554
|
+
]),
|
|
555
|
+
(r(!0), h($e, null, _e(Q.value.coordinates, (o) => (r(), h("line", {
|
|
556
|
+
x1: n.value.width / 2,
|
|
557
|
+
y1: n.value.height / 2,
|
|
558
|
+
x2: o.x,
|
|
559
|
+
y2: o.y,
|
|
560
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
561
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
562
|
+
}, null, 8, Vt))), 256)),
|
|
563
|
+
s("path", {
|
|
564
|
+
d: Q.value.path,
|
|
565
|
+
fill: "none",
|
|
566
|
+
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
567
|
+
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
568
|
+
"stroke-linejoin": "round",
|
|
569
|
+
"stroke-linecap": "round"
|
|
570
|
+
}, null, 8, Ut),
|
|
571
|
+
s("g", {
|
|
572
|
+
transform: I("5")
|
|
573
|
+
}, [
|
|
574
|
+
s("path", {
|
|
575
|
+
fill: "none",
|
|
576
|
+
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
577
|
+
"stroke-width": "1",
|
|
578
|
+
"stroke-linecap": "round",
|
|
579
|
+
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"
|
|
580
|
+
}, null, 8, jt),
|
|
581
|
+
s("circle", {
|
|
582
|
+
class: "vue-ui-mood-radar-trap",
|
|
583
|
+
cx: "128",
|
|
584
|
+
cy: "25",
|
|
585
|
+
r: "20",
|
|
586
|
+
fill: f.value === "5" ? a(x)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
587
|
+
onMouseenter: l[0] || (l[0] = (o) => D("5")),
|
|
588
|
+
onMouseleave: l[1] || (l[1] = (o) => F("5")),
|
|
589
|
+
onClick: l[2] || (l[2] = (o) => O("5"))
|
|
590
|
+
}, null, 40, zt)
|
|
591
|
+
], 8, Wt),
|
|
592
|
+
s("g", {
|
|
593
|
+
transform: I("4")
|
|
594
|
+
}, [
|
|
595
|
+
s("path", {
|
|
596
|
+
fill: "none",
|
|
597
|
+
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
598
|
+
"stroke-width": "1",
|
|
599
|
+
"stroke-linecap": "round",
|
|
600
|
+
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"
|
|
601
|
+
}, null, 8, Ht),
|
|
602
|
+
s("circle", {
|
|
603
|
+
class: "vue-ui-mood-radar-trap",
|
|
604
|
+
cx: "227",
|
|
605
|
+
cy: "95.5",
|
|
606
|
+
r: "20",
|
|
607
|
+
fill: f.value === "4" ? a(x)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
608
|
+
onMouseenter: l[3] || (l[3] = (o) => D("4")),
|
|
609
|
+
onMouseleave: l[4] || (l[4] = (o) => F("4")),
|
|
610
|
+
onClick: l[5] || (l[5] = (o) => O("4"))
|
|
611
|
+
}, null, 40, Xt)
|
|
612
|
+
], 8, Gt),
|
|
613
|
+
s("g", {
|
|
614
|
+
transform: I("3")
|
|
615
|
+
}, [
|
|
616
|
+
s("path", {
|
|
617
|
+
fill: "none",
|
|
618
|
+
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
619
|
+
"stroke-width": "1",
|
|
620
|
+
"stroke-linecap": "round",
|
|
621
|
+
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"
|
|
622
|
+
}, null, 8, qt),
|
|
623
|
+
s("circle", {
|
|
624
|
+
class: "vue-ui-mood-radar-trap",
|
|
625
|
+
cx: "190",
|
|
626
|
+
cy: "213.5",
|
|
627
|
+
r: "20",
|
|
628
|
+
fill: f.value === "3" ? a(x)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
629
|
+
onMouseenter: l[6] || (l[6] = (o) => D("3")),
|
|
630
|
+
onMouseleave: l[7] || (l[7] = (o) => F("3")),
|
|
631
|
+
onClick: l[8] || (l[8] = (o) => O("3"))
|
|
632
|
+
}, null, 40, Yt)
|
|
633
|
+
], 8, Kt),
|
|
634
|
+
s("g", {
|
|
635
|
+
transform: I("2")
|
|
636
|
+
}, [
|
|
637
|
+
s("path", {
|
|
638
|
+
fill: "none",
|
|
639
|
+
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
640
|
+
"stroke-width": "1",
|
|
641
|
+
"stroke-linecap": "round",
|
|
642
|
+
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"
|
|
643
|
+
}, null, 8, Qt),
|
|
644
|
+
s("circle", {
|
|
645
|
+
class: "vue-ui-mood-radar-trap",
|
|
646
|
+
cx: "65",
|
|
647
|
+
cy: "213.5",
|
|
648
|
+
r: "20",
|
|
649
|
+
fill: f.value === "2" ? a(x)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
650
|
+
onMouseenter: l[9] || (l[9] = (o) => D("2")),
|
|
651
|
+
onMouseleave: l[10] || (l[10] = (o) => F("2")),
|
|
652
|
+
onClick: l[11] || (l[11] = (o) => O("2"))
|
|
653
|
+
}, null, 40, Zt)
|
|
654
|
+
], 8, Jt),
|
|
655
|
+
s("g", {
|
|
656
|
+
transform: I("1")
|
|
657
|
+
}, [
|
|
658
|
+
s("path", {
|
|
659
|
+
fill: "none",
|
|
660
|
+
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
661
|
+
"stroke-width": "1",
|
|
662
|
+
"stroke-linecap": "round",
|
|
663
|
+
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"
|
|
664
|
+
}, null, 8, to),
|
|
665
|
+
s("circle", {
|
|
666
|
+
class: "vue-ui-mood-radar-trap",
|
|
667
|
+
cx: "29",
|
|
668
|
+
cy: "95.5",
|
|
669
|
+
r: "20",
|
|
670
|
+
fill: f.value === "1" ? a(x)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
671
|
+
onMouseenter: l[12] || (l[12] = (o) => D("1")),
|
|
672
|
+
onMouseleave: l[13] || (l[13] = (o) => F("1")),
|
|
673
|
+
onClick: l[14] || (l[14] = (o) => O("1"))
|
|
674
|
+
}, null, 40, oo)
|
|
675
|
+
], 8, eo),
|
|
676
|
+
s("path", {
|
|
677
|
+
d: a(ft)(Z.value.map((o) => o.plots)),
|
|
678
|
+
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
679
|
+
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
680
|
+
"stroke-linecap": "round",
|
|
681
|
+
"stroke-linejoin": "round",
|
|
682
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${b.value})` : a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
683
|
+
}, null, 8, lo),
|
|
684
|
+
(r(!0), h($e, null, _e(Z.value.map((o) => o.plots), (o, i) => (r(), h("g", {
|
|
685
|
+
class: "vue-ui-mood-radar-trap",
|
|
686
|
+
style: E(`opacity:${f.value == o.key ? "1" : "0"}`)
|
|
687
|
+
}, [
|
|
688
|
+
s("line", {
|
|
689
|
+
x1: o.x,
|
|
690
|
+
y1: o.y,
|
|
691
|
+
x2: n.value.width / 2,
|
|
692
|
+
y2: n.value.height / 2,
|
|
693
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
694
|
+
}, null, 8, ao),
|
|
695
|
+
s("circle", {
|
|
696
|
+
cx: o.x,
|
|
697
|
+
cy: o.y,
|
|
698
|
+
fill: e.value.style.chart.layout.smileys.colors[o.key],
|
|
699
|
+
r: "3",
|
|
700
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
701
|
+
"stroke-width": 0.5
|
|
702
|
+
}, null, 8, so),
|
|
703
|
+
s("circle", {
|
|
704
|
+
cx: n.value.width / 2,
|
|
705
|
+
cy: n.value.height / 2,
|
|
706
|
+
fill: e.value.style.chart.layout.smileys.colors[o.key],
|
|
707
|
+
r: "3",
|
|
708
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
709
|
+
"stroke-width": 0.5
|
|
710
|
+
}, null, 8, no),
|
|
711
|
+
s("text", {
|
|
712
|
+
x: n.value.width / 2,
|
|
713
|
+
y: ["5", 5].includes(o.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
|
|
714
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
715
|
+
"font-size": "12",
|
|
716
|
+
"text-anchor": "middle",
|
|
717
|
+
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
718
|
+
}, R(a(Pe)(
|
|
719
|
+
e.value.style.chart.layout.dataLabel.formatter,
|
|
720
|
+
o.value,
|
|
721
|
+
a(H)({
|
|
722
|
+
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
723
|
+
v: o.value,
|
|
724
|
+
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
725
|
+
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
726
|
+
}),
|
|
727
|
+
{ datapoint: o, seriesIndex: i }
|
|
728
|
+
)), 9, ro),
|
|
729
|
+
s("text", {
|
|
730
|
+
x: n.value.width / 2,
|
|
731
|
+
y: ["5", 5].includes(o.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
|
|
732
|
+
fill: e.value.style.chart.layout.dataLabel.color,
|
|
733
|
+
"font-size": "12",
|
|
734
|
+
"text-anchor": "middle"
|
|
735
|
+
}, " (" + R(a(H)({
|
|
736
|
+
v: o.value / T.value * 100,
|
|
737
|
+
s: "%",
|
|
738
|
+
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
739
|
+
})) + ") ", 9, uo)
|
|
740
|
+
], 4))), 256)),
|
|
741
|
+
g(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
742
|
+
], 14, Dt)),
|
|
743
|
+
t.$slots.watermark ? (r(), h("div", io, [
|
|
744
|
+
g(t.$slots, "watermark", z(G({ isPrinting: a(ve) || a(ye) })), void 0, !0)
|
|
745
|
+
])) : c("", !0),
|
|
746
|
+
s("div", {
|
|
747
|
+
id: `legend-bottom-${b.value}`
|
|
748
|
+
}, null, 8, co),
|
|
749
|
+
re.value ? (r(), k(rt, {
|
|
750
|
+
key: 5,
|
|
751
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
752
|
+
}, [
|
|
753
|
+
s("div", {
|
|
754
|
+
ref_key: "chartLegend",
|
|
755
|
+
ref: se
|
|
756
|
+
}, [
|
|
757
|
+
e.value.style.chart.legend.show ? (r(), k(Nt, {
|
|
758
|
+
legendSet: fe.value,
|
|
759
|
+
config: Ke.value,
|
|
760
|
+
key: `legend_${le.value}`,
|
|
761
|
+
style: { display: "flex", "row-gap": "6px" }
|
|
762
|
+
}, {
|
|
763
|
+
item: v(({ legend: o, index: i }) => [
|
|
764
|
+
s("div", {
|
|
765
|
+
onClick: () => qe(o.key),
|
|
766
|
+
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
767
|
+
}, [
|
|
768
|
+
o.key == 1 ? (r(), k(a(P), {
|
|
769
|
+
key: 0,
|
|
770
|
+
strokeWidth: 1,
|
|
771
|
+
name: "moodSad",
|
|
772
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
773
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
774
|
+
o.key == 2 ? (r(), k(a(P), {
|
|
775
|
+
key: 1,
|
|
776
|
+
strokeWidth: 1,
|
|
777
|
+
name: "moodFlat",
|
|
778
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
779
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
780
|
+
o.key == 3 ? (r(), k(a(P), {
|
|
781
|
+
key: 2,
|
|
782
|
+
strokeWidth: 1,
|
|
783
|
+
name: "moodNeutral",
|
|
784
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
785
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
786
|
+
o.key == 4 ? (r(), k(a(P), {
|
|
787
|
+
key: 3,
|
|
788
|
+
strokeWidth: 1,
|
|
789
|
+
name: "smiley",
|
|
790
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
791
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
792
|
+
o.key == 5 ? (r(), k(a(P), {
|
|
793
|
+
key: 4,
|
|
794
|
+
strokeWidth: 1,
|
|
795
|
+
name: "moodHappy",
|
|
796
|
+
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
797
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
798
|
+
a(K) ? c("", !0) : (r(), h("span", {
|
|
799
|
+
key: 5,
|
|
800
|
+
style: E({ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal" })
|
|
801
|
+
}, R(o.display), 5))
|
|
802
|
+
], 8, vo)
|
|
803
|
+
]),
|
|
804
|
+
_: 1
|
|
805
|
+
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
806
|
+
g(t.$slots, "legend", { legend: y.value }, void 0, !0)
|
|
807
|
+
], 512)
|
|
808
|
+
], 8, ["to"])) : c("", !0),
|
|
809
|
+
t.$slots.source ? (r(), h("div", {
|
|
810
|
+
key: 6,
|
|
811
|
+
ref_key: "source",
|
|
812
|
+
ref: ne,
|
|
813
|
+
dir: "auto"
|
|
814
|
+
}, [
|
|
815
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
816
|
+
], 512)) : c("", !0),
|
|
817
|
+
ue.value && e.value.userOptions.buttons.table ? (r(), k(ut(B.value.component), it({ key: 7 }, B.value.props, {
|
|
818
|
+
ref_key: "tableUnit",
|
|
819
|
+
ref: S,
|
|
820
|
+
onClose: ke
|
|
821
|
+
}), xe({
|
|
822
|
+
content: v(() => [
|
|
823
|
+
j(a(Ie), {
|
|
824
|
+
colNames: U.value.colNames,
|
|
825
|
+
head: U.value.head,
|
|
826
|
+
body: U.value.body,
|
|
827
|
+
config: U.value.config,
|
|
828
|
+
title: e.value.table.useDialog ? "" : B.value.title,
|
|
829
|
+
withCloseButton: !e.value.table.useDialog,
|
|
830
|
+
onClose: ke
|
|
831
|
+
}, {
|
|
832
|
+
th: v(({ th: o }) => [
|
|
833
|
+
s("div", {
|
|
834
|
+
innerHTML: o,
|
|
835
|
+
style: { display: "flex", "align-items": "center" }
|
|
836
|
+
}, null, 8, yo)
|
|
837
|
+
]),
|
|
838
|
+
td: v(({ td: o }) => [
|
|
839
|
+
Ae(R(o.name || o), 1)
|
|
840
|
+
]),
|
|
841
|
+
_: 1
|
|
842
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
843
|
+
]),
|
|
844
|
+
_: 2
|
|
845
|
+
}, [
|
|
846
|
+
e.value.table.useDialog ? {
|
|
847
|
+
name: "title",
|
|
848
|
+
fn: v(() => [
|
|
849
|
+
Ae(R(B.value.title), 1)
|
|
850
|
+
]),
|
|
851
|
+
key: "0"
|
|
852
|
+
} : void 0,
|
|
853
|
+
e.value.table.useDialog ? {
|
|
854
|
+
name: "actions",
|
|
855
|
+
fn: v(() => [
|
|
856
|
+
s("button", {
|
|
857
|
+
tabindex: "0",
|
|
858
|
+
class: "vue-ui-user-options-button",
|
|
859
|
+
onClick: l[15] || (l[15] = (o) => ee(e.value.userOptions.callbacks.csv))
|
|
860
|
+
}, [
|
|
861
|
+
j(a(P), {
|
|
862
|
+
name: "excel",
|
|
863
|
+
stroke: B.value.props.color
|
|
864
|
+
}, null, 8, ["stroke"])
|
|
865
|
+
])
|
|
866
|
+
]),
|
|
867
|
+
key: "1"
|
|
868
|
+
} : void 0
|
|
869
|
+
]), 1040)) : c("", !0),
|
|
870
|
+
a(K) ? (r(), k(xt, { key: 8 })) : c("", !0)
|
|
871
|
+
], 46, St));
|
|
872
|
+
}
|
|
873
|
+
}, Po = /* @__PURE__ */ Lt(ho, [["__scopeId", "data-v-a940bb04"]]);
|
|
874
|
+
export {
|
|
875
|
+
Po as default
|
|
876
|
+
};
|