vue-data-ui 3.1.1 → 3.1.3
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-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
- package/dist/Legend-5qvgVkrY.js +85 -0
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
- package/dist/Title-CqYBs02Y.js +88 -0
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
- package/dist/pdf-BG8PiGFH.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -3
- package/dist/types/vue-data-ui.d.ts +28 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
- package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
- package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
- package/package.json +1 -1
- package/dist/Legend-8_V5egWW.js +0 -72
- package/dist/Title-Dz-j6ERs.js +0 -61
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as T, ref as u, computed as c, toRefs as Je, onMounted as Qe, watch as ke, createElementBlock as v, openBlock as r, unref as a, normalizeStyle as j, normalizeClass as be, createBlock as m, createCommentVNode as d, createElementVNode as s, createVNode as z, createSlots as Ce, withCtx as y, renderSlot as f, normalizeProps as W, guardReactiveProps as G, Fragment as we, renderList as xe, toDisplayString as L, Teleport as Ze, resolveDynamicComponent as et, mergeProps as tt, createTextVNode as $e, nextTick as _e } from "vue";
|
|
2
|
+
import { u as ot, c as lt, t as at, o as st, f as Ae, b as nt, R as rt, X as ut, s as x, x as it, S as dt, k as Me, i as H, v as ct, w as vt } from "./index-CaxArMHL.js";
|
|
3
|
+
import { t as yt, u as ht } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ft, B as pt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as gt } from "./usePrinter-BYtPmEo8.js";
|
|
6
|
+
import { u as Te } from "./useNestedProp-tWT02_6S.js";
|
|
7
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import bt from "./img-DSrvx9J6.js";
|
|
10
|
+
import Ct from "./Title-CqYBs02Y.js";
|
|
11
|
+
import wt from "./Legend-5qvgVkrY.js";
|
|
12
|
+
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const $t = ["id"], _t = ["id"], At = ["xmlns", "viewBox"], Mt = ["width", "height"], Tt = ["id"], Pt = ["stop-color"], Nt = ["stop-color"], Ot = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Lt = ["d", "stroke", "stroke-width"], It = ["transform"], Dt = ["stroke"], St = ["fill"], Ft = ["transform"], Bt = ["stroke"], Rt = ["fill"], Et = ["transform"], Vt = ["stroke"], Ut = ["fill"], jt = ["transform"], zt = ["stroke"], Wt = ["fill"], Gt = ["transform"], Ht = ["stroke"], Xt = ["fill"], Kt = ["d", "stroke", "stroke-width", "fill"], qt = ["x1", "y1", "x2", "y2", "stroke"], Yt = ["cx", "cy", "fill", "stroke"], Jt = ["cx", "cy", "fill", "stroke"], Qt = ["x", "y", "fill", "font-weight"], Zt = ["x", "y", "fill"], eo = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, to = ["id"], oo = ["onClick"], lo = {
|
|
17
17
|
key: 5,
|
|
18
18
|
style: { "font-weight": "bold" }
|
|
19
|
-
},
|
|
19
|
+
}, ao = { key: 6 }, so = ["innerHTML"], no = {
|
|
20
20
|
__name: "vue-ui-mood-radar",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -32,14 +32,14 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
35
|
+
setup(Pe, { expose: Ne }) {
|
|
36
|
+
const P = T(() => import("./BaseIcon-BcOSijbz.js")), Oe = T(() => import("./vue-ui-accordion-DUlNpLir.js")), Le = T(() => import("./DataTable-Cm8Tt9PQ.js")), Ie = T(() => import("./PenAndPaper-CyH7Ip2i.js")), De = T(() => import("./UserOptions-ZmwlARCV.js")), Se = T(() => import("./PackageVersion-0XlRFsI_.js")), Fe = T(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_mood_radar: Be } = ot(), $ = Pe, k = u(lt()), C = u(null), p = u(null), te = u(null), Re = u(0), Ee = u(0), oe = u(0), le = u(null), ae = u(null), I = u(null), E = u(null), se = u(null), ne = u(!1), D = u(null), X = u(null), re = c(() => !!$.dataset && Object.keys($.dataset).length), e = u(Y()), { loading: K, FINAL_DATASET: _ } = ft({
|
|
37
|
+
...Je($),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
|
-
prepareConfig:
|
|
39
|
+
prepareConfig: Y,
|
|
40
40
|
callback: () => {
|
|
41
41
|
Promise.resolve().then(async () => {
|
|
42
|
-
await
|
|
42
|
+
await _e(), A.value.showTable = e.value.table.show;
|
|
43
43
|
});
|
|
44
44
|
},
|
|
45
45
|
skeletonDataset: {
|
|
@@ -49,7 +49,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
49
49
|
4: 1,
|
|
50
50
|
5: 1
|
|
51
51
|
},
|
|
52
|
-
skeletonConfig:
|
|
52
|
+
skeletonConfig: at({
|
|
53
53
|
defaultConfig: e.value,
|
|
54
54
|
userConfig: {
|
|
55
55
|
userOptions: { show: !1 },
|
|
@@ -90,88 +90,88 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Qe(() => {
|
|
94
|
+
ne.value = !0, ue();
|
|
95
95
|
});
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
if (
|
|
96
|
+
const Ve = c(() => e.value.debug);
|
|
97
|
+
function ue() {
|
|
98
|
+
if (st($.dataset) && Ae({
|
|
99
99
|
componentName: "VueUiMoodRadar",
|
|
100
100
|
type: "dataset",
|
|
101
|
-
debug:
|
|
101
|
+
debug: Ve.value
|
|
102
102
|
}), e.value.responsive) {
|
|
103
|
-
const o =
|
|
104
|
-
const { width: l, height: t } =
|
|
103
|
+
const o = yt(() => {
|
|
104
|
+
const { width: l, height: t } = ht({
|
|
105
105
|
chart: C.value,
|
|
106
|
-
title: e.value.style.chart.title.text ?
|
|
107
|
-
legend: e.value.style.chart.legend.show ?
|
|
108
|
-
noTitle:
|
|
109
|
-
source:
|
|
106
|
+
title: e.value.style.chart.title.text ? le.value : null,
|
|
107
|
+
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
108
|
+
noTitle: te.value,
|
|
109
|
+
source: se.value
|
|
110
110
|
});
|
|
111
111
|
requestAnimationFrame(() => {
|
|
112
112
|
n.value.width = l, n.value.height = t - 12;
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
I.value && (
|
|
115
|
+
I.value && (E.value && I.value.unobserve(E.value), I.value.disconnect()), I.value = new ResizeObserver(o), E.value = C.value.parentNode, I.value.observe(E.value);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
const { userOptionsVisible:
|
|
119
|
-
function
|
|
120
|
-
const o =
|
|
121
|
-
userConfig:
|
|
122
|
-
defaultConfig:
|
|
118
|
+
const { userOptionsVisible: q, setUserOptionsVisibility: ie, keepUserOptionState: de } = mt({ config: e.value }), { svgRef: ce } = kt({ config: e.value.style.chart.title });
|
|
119
|
+
function Y() {
|
|
120
|
+
const o = Te({
|
|
121
|
+
userConfig: $.config,
|
|
122
|
+
defaultConfig: Be
|
|
123
123
|
});
|
|
124
124
|
return o.theme ? {
|
|
125
|
-
...
|
|
126
|
-
userConfig:
|
|
125
|
+
...Te({
|
|
126
|
+
userConfig: nt.vue_ui_mood_radar[o.theme] || $.config,
|
|
127
127
|
defaultConfig: o
|
|
128
128
|
})
|
|
129
129
|
} : o;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
e.value =
|
|
131
|
+
ke(() => $.config, (o) => {
|
|
132
|
+
e.value = Y(), q.value = !e.value.userOptions.showOnChartHover, ue(), Re.value += 1, Ee.value += 1, oe.value += 1, A.value.showTable = e.value.table.show;
|
|
133
133
|
}, { deep: !0 });
|
|
134
|
-
const { isPrinting:
|
|
134
|
+
const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage: fe } = gt({
|
|
135
135
|
elementId: k.value,
|
|
136
136
|
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
137
137
|
options: e.value.userOptions.print
|
|
138
|
-
}),
|
|
138
|
+
}), Ue = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = u({
|
|
139
139
|
showTable: e.value.table.show
|
|
140
140
|
}), n = u({
|
|
141
141
|
height: 256,
|
|
142
142
|
width: 256
|
|
143
|
-
}),
|
|
143
|
+
}), je = {
|
|
144
144
|
5: { x: 128, y: 35 },
|
|
145
145
|
4: { x: 218, y: 98.5 },
|
|
146
146
|
3: { x: 185, y: 204 },
|
|
147
147
|
2: { x: 70, y: 204 },
|
|
148
148
|
1: { x: 38.5, y: 98.5 }
|
|
149
|
-
},
|
|
149
|
+
}, ze = c(() => {
|
|
150
150
|
const o = {};
|
|
151
|
-
return
|
|
151
|
+
return Q.value.forEach((l) => {
|
|
152
152
|
o[l.key] = { x: l.x, y: l.y };
|
|
153
153
|
}), o;
|
|
154
154
|
});
|
|
155
155
|
function S(o) {
|
|
156
|
-
const l =
|
|
156
|
+
const l = je[o], t = ze.value[o] || l;
|
|
157
157
|
return `translate(${t.x - l.x}, ${t.y - l.y})`;
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const J = c(() => rt({
|
|
160
160
|
plot: { x: n.value.width / 2, y: n.value.height / 2 },
|
|
161
161
|
radius: Math.min(n.value.height, n.value.width) * 0.35,
|
|
162
162
|
sides: 5,
|
|
163
163
|
rotation: 11
|
|
164
164
|
}));
|
|
165
|
-
function
|
|
165
|
+
function We({ centerX: o, centerY: l, apexX: t, apexY: i, proportion: b, key: g, value: Ye }) {
|
|
166
166
|
return {
|
|
167
167
|
x: o + (t - o) * b,
|
|
168
168
|
y: l + (i - l) * b,
|
|
169
169
|
key: g,
|
|
170
|
-
value:
|
|
170
|
+
value: Ye
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
const t = typeof
|
|
173
|
+
const Ge = c(() => Math.max(...Object.values(_.value).map((o) => isNaN(o) ? 0 : o))), M = c(() => Object.values(_.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), h = c(() => Object.keys(_.value).map((o, l) => {
|
|
174
|
+
const t = typeof _.value[o] != "number" || isNaN(_.value[o]) ? 0 : _.value[o];
|
|
175
175
|
return {
|
|
176
176
|
index: l,
|
|
177
177
|
key: o,
|
|
@@ -179,19 +179,19 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
179
179
|
proportion: t / M.value,
|
|
180
180
|
color: e.value.style.chart.layout.smileys.colors[o]
|
|
181
181
|
};
|
|
182
|
-
}).sort((o, l) => l.key - o.key)),
|
|
183
|
-
[null, void 0].includes(
|
|
182
|
+
}).sort((o, l) => l.key - o.key)), Q = c(() => (["1", "2", "3", "4", "5"].forEach((o) => {
|
|
183
|
+
[null, void 0].includes(_.value[o]) && Ae({
|
|
184
184
|
componentName: "VueUiMoodRadar",
|
|
185
185
|
type: "datasetAttribute",
|
|
186
186
|
property: o
|
|
187
187
|
});
|
|
188
|
-
}),
|
|
189
|
-
const t =
|
|
188
|
+
}), J.value.coordinates.map((o, l) => {
|
|
189
|
+
const t = We({
|
|
190
190
|
centerX: n.value.width / 2,
|
|
191
191
|
centerY: n.value.height / 2,
|
|
192
192
|
apexX: o.x,
|
|
193
193
|
apexY: o.y,
|
|
194
|
-
proportion: h.value[l].value /
|
|
194
|
+
proportion: h.value[l].value / Ge.value,
|
|
195
195
|
key: h.value[l].key,
|
|
196
196
|
value: h.value[l].value
|
|
197
197
|
});
|
|
@@ -200,7 +200,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
200
200
|
plots: t,
|
|
201
201
|
key: h.value[l].key
|
|
202
202
|
};
|
|
203
|
-
}))),
|
|
203
|
+
}))), He = c(() => ({
|
|
204
204
|
cy: "mood-radar-legend",
|
|
205
205
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
206
206
|
color: e.value.style.chart.legend.color,
|
|
@@ -208,7 +208,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
208
208
|
paddingBottom: 12,
|
|
209
209
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
210
210
|
}));
|
|
211
|
-
function
|
|
211
|
+
function Xe(o) {
|
|
212
212
|
o === p.value ? p.value = null : (p.value = o, N(o));
|
|
213
213
|
}
|
|
214
214
|
function F(o) {
|
|
@@ -225,19 +225,19 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
225
225
|
const l = h.value.find((t) => t.key === o);
|
|
226
226
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const w = c(() => {
|
|
229
229
|
const o = h.value.map((t) => ({
|
|
230
230
|
name: t.key,
|
|
231
231
|
color: t.color
|
|
232
232
|
})), l = h.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
233
233
|
return { head: o, body: l };
|
|
234
234
|
});
|
|
235
|
-
function
|
|
236
|
-
|
|
237
|
-
const l =
|
|
235
|
+
function Z(o = null) {
|
|
236
|
+
_e(() => {
|
|
237
|
+
const l = w.value.head.map((b, g) => [[
|
|
238
238
|
b.name
|
|
239
|
-
], [
|
|
240
|
-
o ? o(i) :
|
|
239
|
+
], [w.value.body[g]], [isNaN(w.value.body[g] / M.value) ? "-" : w.value.body[g] / M.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = ct(t);
|
|
240
|
+
o ? o(i) : vt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
const V = c(() => {
|
|
@@ -245,13 +245,13 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
245
245
|
' <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>',
|
|
246
246
|
Number(M.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
247
247
|
"100%"
|
|
248
|
-
], l =
|
|
248
|
+
], l = w.value.head.map((b, g) => [
|
|
249
249
|
{
|
|
250
250
|
color: b.color,
|
|
251
251
|
name: b.name
|
|
252
252
|
},
|
|
253
|
-
|
|
254
|
-
isNaN(
|
|
253
|
+
w.value.body[g].toFixed(e.value.table.td.roundingValue),
|
|
254
|
+
isNaN(w.value.body[g] / M.value) ? "-" : (w.value.body[g] / M.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
255
255
|
]), t = {
|
|
256
256
|
th: {
|
|
257
257
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -276,23 +276,23 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
276
276
|
colNames: i
|
|
277
277
|
};
|
|
278
278
|
});
|
|
279
|
-
function
|
|
279
|
+
function Ke() {
|
|
280
280
|
return h.value;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function pe() {
|
|
283
|
+
A.value.showTable = !A.value.showTable;
|
|
284
284
|
}
|
|
285
285
|
const O = u(!1);
|
|
286
|
-
function
|
|
286
|
+
function ge(o) {
|
|
287
287
|
O.value = o;
|
|
288
288
|
}
|
|
289
289
|
const U = u(!1);
|
|
290
|
-
function
|
|
290
|
+
function ee() {
|
|
291
291
|
U.value = !U.value;
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
293
|
+
async function qe({ scale: o = 2 } = {}) {
|
|
294
294
|
if (!C.value) return;
|
|
295
|
-
const { width: l, height: t } = C.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: g } = await
|
|
295
|
+
const { width: l, height: t } = C.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: g } = await bt({ domElement: C.value, base64: !0, img: !0, scale: o });
|
|
296
296
|
return {
|
|
297
297
|
imageUri: b,
|
|
298
298
|
base64: g,
|
|
@@ -302,10 +302,10 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
302
302
|
aspectRatio: i
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
const o = e.value.table.useDialog && !e.value.table.show, l =
|
|
305
|
+
const R = c(() => {
|
|
306
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = A.value.showTable;
|
|
307
307
|
return {
|
|
308
|
-
component: o ?
|
|
308
|
+
component: o ? Fe : Oe,
|
|
309
309
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
310
310
|
props: o ? {
|
|
311
311
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -332,48 +332,52 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
});
|
|
335
|
-
|
|
335
|
+
ke(() => A.value.showTable, (o) => {
|
|
336
336
|
e.value.table.show || (o && e.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
|
|
337
|
-
})
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
337
|
+
});
|
|
338
|
+
function me() {
|
|
339
|
+
A.value.showTable = !1, X.value && X.value.setTableIconState(!1);
|
|
340
|
+
}
|
|
341
|
+
return Ne({
|
|
342
|
+
getData: Ke,
|
|
343
|
+
getImage: qe,
|
|
344
|
+
generatePdf: he,
|
|
345
|
+
generateCsv: Z,
|
|
346
|
+
generateImage: fe,
|
|
347
|
+
toggleTable: pe,
|
|
348
|
+
toggleAnnotator: ee,
|
|
349
|
+
toggleFullscreen: ge
|
|
346
350
|
}), (o, l) => (r(), v("div", {
|
|
347
|
-
class:
|
|
351
|
+
class: be(`vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
348
352
|
ref_key: "moodRadarChart",
|
|
349
353
|
ref: C,
|
|
350
354
|
id: `${k.value}`,
|
|
351
355
|
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
352
|
-
onMouseenter: l[
|
|
353
|
-
onMouseleave: l[
|
|
356
|
+
onMouseenter: l[16] || (l[16] = () => a(ie)(!0)),
|
|
357
|
+
onMouseleave: l[17] || (l[17] = () => a(ie)(!1))
|
|
354
358
|
}, [
|
|
355
|
-
e.value.userOptions.buttons.annotator ? (r(), m(a(
|
|
359
|
+
e.value.userOptions.buttons.annotator ? (r(), m(a(Ie), {
|
|
356
360
|
key: 0,
|
|
357
|
-
svgRef: a(
|
|
361
|
+
svgRef: a(ce),
|
|
358
362
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
359
363
|
color: e.value.style.chart.color,
|
|
360
364
|
active: U.value,
|
|
361
|
-
onClose:
|
|
365
|
+
onClose: ee
|
|
362
366
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
363
|
-
|
|
367
|
+
Ue.value ? (r(), v("div", {
|
|
364
368
|
key: 1,
|
|
365
369
|
ref_key: "noTitle",
|
|
366
|
-
ref:
|
|
370
|
+
ref: te,
|
|
367
371
|
class: "vue-data-ui-no-title-space",
|
|
368
372
|
style: "height:36px; width: 100%;background:transparent"
|
|
369
373
|
}, null, 512)) : d("", !0),
|
|
370
374
|
e.value.style.chart.title.text ? (r(), v("div", {
|
|
371
375
|
key: 2,
|
|
372
376
|
ref_key: "chartTitle",
|
|
373
|
-
ref:
|
|
377
|
+
ref: le,
|
|
374
378
|
style: "width:100%;background:transparent"
|
|
375
379
|
}, [
|
|
376
|
-
z(
|
|
380
|
+
z(Ct, {
|
|
377
381
|
config: {
|
|
378
382
|
title: {
|
|
379
383
|
cy: "mood-radar-title",
|
|
@@ -388,15 +392,15 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
388
392
|
], 512)) : d("", !0),
|
|
389
393
|
s("div", {
|
|
390
394
|
id: `legend-top-${k.value}`
|
|
391
|
-
}, null, 8,
|
|
392
|
-
e.value.userOptions.show &&
|
|
395
|
+
}, null, 8, _t),
|
|
396
|
+
e.value.userOptions.show && re.value && (a(de) || a(q)) ? (r(), m(a(De), {
|
|
393
397
|
key: 3,
|
|
394
|
-
ref_key: "
|
|
395
|
-
ref:
|
|
398
|
+
ref_key: "userOptionsRef",
|
|
399
|
+
ref: X,
|
|
396
400
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
401
|
color: e.value.style.chart.color,
|
|
398
|
-
isPrinting: a(
|
|
399
|
-
isImaging: a(
|
|
402
|
+
isPrinting: a(ve),
|
|
403
|
+
isImaging: a(ye),
|
|
400
404
|
uid: k.value,
|
|
401
405
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
402
406
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -411,16 +415,17 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
411
415
|
isAnnotation: U.value,
|
|
412
416
|
callbacks: e.value.userOptions.callbacks,
|
|
413
417
|
printScale: e.value.userOptions.print.scale,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
tableDialog: e.value.table.useDialog,
|
|
419
|
+
onToggleFullscreen: ge,
|
|
420
|
+
onGeneratePdf: a(he),
|
|
421
|
+
onGenerateCsv: Z,
|
|
422
|
+
onGenerateImage: a(fe),
|
|
423
|
+
onToggleTable: pe,
|
|
424
|
+
onToggleAnnotator: ee,
|
|
420
425
|
style: j({
|
|
421
|
-
visibility: a(
|
|
426
|
+
visibility: a(de) ? a(q) ? "visible" : "hidden" : "visible"
|
|
422
427
|
})
|
|
423
|
-
},
|
|
428
|
+
}, Ce({ _: 2 }, [
|
|
424
429
|
o.$slots.menuIcon ? {
|
|
425
430
|
name: "menuIcon",
|
|
426
431
|
fn: y(({ isOpen: t, color: i }) => [
|
|
@@ -470,16 +475,16 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
470
475
|
]),
|
|
471
476
|
key: "6"
|
|
472
477
|
} : void 0
|
|
473
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
478
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
474
479
|
(r(), v("svg", {
|
|
475
480
|
ref_key: "svgRef",
|
|
476
|
-
ref:
|
|
477
|
-
xmlns: a(
|
|
481
|
+
ref: ce,
|
|
482
|
+
xmlns: a(ut),
|
|
478
483
|
viewBox: `0 0 ${n.value.width} ${n.value.height}`,
|
|
479
|
-
class:
|
|
484
|
+
class: be({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
480
485
|
style: j(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
481
486
|
}, [
|
|
482
|
-
z(a(
|
|
487
|
+
z(a(Se)),
|
|
483
488
|
o.$slots["chart-background"] ? (r(), v("foreignObject", {
|
|
484
489
|
key: 0,
|
|
485
490
|
x: 0,
|
|
@@ -491,7 +496,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
491
496
|
}
|
|
492
497
|
}, [
|
|
493
498
|
f(o.$slots, "chart-background", {}, void 0, !0)
|
|
494
|
-
], 8,
|
|
499
|
+
], 8, Mt)) : d("", !0),
|
|
495
500
|
s("defs", null, [
|
|
496
501
|
s("radialGradient", {
|
|
497
502
|
cx: "50%",
|
|
@@ -503,30 +508,30 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
503
508
|
}, [
|
|
504
509
|
s("stop", {
|
|
505
510
|
offset: "0%",
|
|
506
|
-
"stop-color": a(
|
|
511
|
+
"stop-color": a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
507
512
|
}, null, 8, Pt),
|
|
508
513
|
s("stop", {
|
|
509
514
|
offset: "100%",
|
|
510
|
-
"stop-color": a(
|
|
511
|
-
}, null, 8,
|
|
512
|
-
], 8,
|
|
515
|
+
"stop-color": a(x)(a(it)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
516
|
+
}, null, 8, Nt)
|
|
517
|
+
], 8, Tt)
|
|
513
518
|
]),
|
|
514
|
-
(r(!0), v(
|
|
519
|
+
(r(!0), v(we, null, xe(J.value.coordinates, (t) => (r(), v("line", {
|
|
515
520
|
x1: n.value.width / 2,
|
|
516
521
|
y1: n.value.height / 2,
|
|
517
522
|
x2: t.x,
|
|
518
523
|
y2: t.y,
|
|
519
524
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
520
525
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
521
|
-
}, null, 8,
|
|
526
|
+
}, null, 8, Ot))), 256)),
|
|
522
527
|
s("path", {
|
|
523
|
-
d:
|
|
528
|
+
d: J.value.path,
|
|
524
529
|
fill: "none",
|
|
525
530
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
526
531
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
527
532
|
"stroke-linejoin": "round",
|
|
528
533
|
"stroke-linecap": "round"
|
|
529
|
-
}, null, 8,
|
|
534
|
+
}, null, 8, Lt),
|
|
530
535
|
s("g", {
|
|
531
536
|
transform: S("5")
|
|
532
537
|
}, [
|
|
@@ -536,18 +541,18 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
536
541
|
"stroke-width": "1",
|
|
537
542
|
"stroke-linecap": "round",
|
|
538
543
|
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"
|
|
539
|
-
}, null, 8,
|
|
544
|
+
}, null, 8, Dt),
|
|
540
545
|
s("circle", {
|
|
541
546
|
class: "vue-ui-mood-radar-trap",
|
|
542
547
|
cx: "128",
|
|
543
548
|
cy: "25",
|
|
544
549
|
r: "20",
|
|
545
|
-
fill: p.value === "5" ? a(
|
|
550
|
+
fill: p.value === "5" ? a(x)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
546
551
|
onMouseenter: l[0] || (l[0] = (t) => F("5")),
|
|
547
552
|
onMouseleave: l[1] || (l[1] = (t) => B("5")),
|
|
548
553
|
onClick: l[2] || (l[2] = (t) => N("5"))
|
|
549
|
-
}, null, 40,
|
|
550
|
-
], 8,
|
|
554
|
+
}, null, 40, St)
|
|
555
|
+
], 8, It),
|
|
551
556
|
s("g", {
|
|
552
557
|
transform: S("4")
|
|
553
558
|
}, [
|
|
@@ -557,18 +562,18 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
557
562
|
"stroke-width": "1",
|
|
558
563
|
"stroke-linecap": "round",
|
|
559
564
|
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"
|
|
560
|
-
}, null, 8,
|
|
565
|
+
}, null, 8, Bt),
|
|
561
566
|
s("circle", {
|
|
562
567
|
class: "vue-ui-mood-radar-trap",
|
|
563
568
|
cx: "227",
|
|
564
569
|
cy: "95.5",
|
|
565
570
|
r: "20",
|
|
566
|
-
fill: p.value === "4" ? a(
|
|
571
|
+
fill: p.value === "4" ? a(x)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
567
572
|
onMouseenter: l[3] || (l[3] = (t) => F("4")),
|
|
568
573
|
onMouseleave: l[4] || (l[4] = (t) => B("4")),
|
|
569
574
|
onClick: l[5] || (l[5] = (t) => N("4"))
|
|
570
|
-
}, null, 40,
|
|
571
|
-
], 8,
|
|
575
|
+
}, null, 40, Rt)
|
|
576
|
+
], 8, Ft),
|
|
572
577
|
s("g", {
|
|
573
578
|
transform: S("3")
|
|
574
579
|
}, [
|
|
@@ -578,17 +583,17 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
578
583
|
"stroke-width": "1",
|
|
579
584
|
"stroke-linecap": "round",
|
|
580
585
|
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"
|
|
581
|
-
}, null, 8,
|
|
586
|
+
}, null, 8, Vt),
|
|
582
587
|
s("circle", {
|
|
583
588
|
class: "vue-ui-mood-radar-trap",
|
|
584
589
|
cx: "190",
|
|
585
590
|
cy: "213.5",
|
|
586
591
|
r: "20",
|
|
587
|
-
fill: p.value === "3" ? a(
|
|
592
|
+
fill: p.value === "3" ? a(x)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
588
593
|
onMouseenter: l[6] || (l[6] = (t) => F("3")),
|
|
589
594
|
onMouseleave: l[7] || (l[7] = (t) => B("3")),
|
|
590
595
|
onClick: l[8] || (l[8] = (t) => N("3"))
|
|
591
|
-
}, null, 40,
|
|
596
|
+
}, null, 40, Ut)
|
|
592
597
|
], 8, Et),
|
|
593
598
|
s("g", {
|
|
594
599
|
transform: S("2")
|
|
@@ -599,18 +604,18 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
599
604
|
"stroke-width": "1",
|
|
600
605
|
"stroke-linecap": "round",
|
|
601
606
|
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"
|
|
602
|
-
}, null, 8,
|
|
607
|
+
}, null, 8, zt),
|
|
603
608
|
s("circle", {
|
|
604
609
|
class: "vue-ui-mood-radar-trap",
|
|
605
610
|
cx: "65",
|
|
606
611
|
cy: "213.5",
|
|
607
612
|
r: "20",
|
|
608
|
-
fill: p.value === "2" ? a(
|
|
613
|
+
fill: p.value === "2" ? a(x)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
609
614
|
onMouseenter: l[9] || (l[9] = (t) => F("2")),
|
|
610
615
|
onMouseleave: l[10] || (l[10] = (t) => B("2")),
|
|
611
616
|
onClick: l[11] || (l[11] = (t) => N("2"))
|
|
612
|
-
}, null, 40,
|
|
613
|
-
], 8,
|
|
617
|
+
}, null, 40, Wt)
|
|
618
|
+
], 8, jt),
|
|
614
619
|
s("g", {
|
|
615
620
|
transform: S("1")
|
|
616
621
|
}, [
|
|
@@ -620,27 +625,27 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
620
625
|
"stroke-width": "1",
|
|
621
626
|
"stroke-linecap": "round",
|
|
622
627
|
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"
|
|
623
|
-
}, null, 8,
|
|
628
|
+
}, null, 8, Ht),
|
|
624
629
|
s("circle", {
|
|
625
630
|
class: "vue-ui-mood-radar-trap",
|
|
626
631
|
cx: "29",
|
|
627
632
|
cy: "95.5",
|
|
628
633
|
r: "20",
|
|
629
|
-
fill: p.value === "1" ? a(
|
|
634
|
+
fill: p.value === "1" ? a(x)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
630
635
|
onMouseenter: l[12] || (l[12] = (t) => F("1")),
|
|
631
636
|
onMouseleave: l[13] || (l[13] = (t) => B("1")),
|
|
632
637
|
onClick: l[14] || (l[14] = (t) => N("1"))
|
|
633
|
-
}, null, 40,
|
|
634
|
-
], 8,
|
|
638
|
+
}, null, 40, Xt)
|
|
639
|
+
], 8, Gt),
|
|
635
640
|
s("path", {
|
|
636
|
-
d: a(
|
|
641
|
+
d: a(dt)(Q.value.map((t) => t.plots)),
|
|
637
642
|
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
638
643
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
639
644
|
"stroke-linecap": "round",
|
|
640
645
|
"stroke-linejoin": "round",
|
|
641
|
-
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a(
|
|
642
|
-
}, null, 8,
|
|
643
|
-
(r(!0), v(
|
|
646
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a(x)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
647
|
+
}, null, 8, Kt),
|
|
648
|
+
(r(!0), v(we, null, xe(Q.value.map((t) => t.plots), (t, i) => (r(), v("g", {
|
|
644
649
|
class: "vue-ui-mood-radar-trap",
|
|
645
650
|
style: j(`opacity:${p.value == t.key ? "1" : "0"}`)
|
|
646
651
|
}, [
|
|
@@ -650,7 +655,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
650
655
|
x2: n.value.width / 2,
|
|
651
656
|
y2: n.value.height / 2,
|
|
652
657
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
653
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, qt),
|
|
654
659
|
s("circle", {
|
|
655
660
|
cx: t.x,
|
|
656
661
|
cy: t.y,
|
|
@@ -658,7 +663,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
658
663
|
r: "3",
|
|
659
664
|
stroke: e.value.style.chart.backgroundColor,
|
|
660
665
|
"stroke-width": 0.5
|
|
661
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, Yt),
|
|
662
667
|
s("circle", {
|
|
663
668
|
cx: n.value.width / 2,
|
|
664
669
|
cy: n.value.height / 2,
|
|
@@ -666,7 +671,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
666
671
|
r: "3",
|
|
667
672
|
stroke: e.value.style.chart.backgroundColor,
|
|
668
673
|
"stroke-width": 0.5
|
|
669
|
-
}, null, 8,
|
|
674
|
+
}, null, 8, Jt),
|
|
670
675
|
s("text", {
|
|
671
676
|
x: n.value.width / 2,
|
|
672
677
|
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
|
|
@@ -674,7 +679,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
674
679
|
"font-size": "12",
|
|
675
680
|
"text-anchor": "middle",
|
|
676
681
|
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
677
|
-
}, L(a(
|
|
682
|
+
}, L(a(Me)(
|
|
678
683
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
679
684
|
t.value,
|
|
680
685
|
a(H)({
|
|
@@ -684,7 +689,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
684
689
|
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
685
690
|
}),
|
|
686
691
|
{ datapoint: t, seriesIndex: i }
|
|
687
|
-
)), 9,
|
|
692
|
+
)), 9, Qt),
|
|
688
693
|
s("text", {
|
|
689
694
|
x: n.value.width / 2,
|
|
690
695
|
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
|
|
@@ -695,66 +700,66 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
695
700
|
v: t.value / M.value * 100,
|
|
696
701
|
s: "%",
|
|
697
702
|
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
698
|
-
})) + ") ", 9,
|
|
703
|
+
})) + ") ", 9, Zt)
|
|
699
704
|
], 4))), 256)),
|
|
700
705
|
f(o.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
701
|
-
], 14,
|
|
702
|
-
o.$slots.watermark ? (r(), v("div",
|
|
703
|
-
f(o.$slots, "watermark", W(G({ isPrinting: a(
|
|
706
|
+
], 14, At)),
|
|
707
|
+
o.$slots.watermark ? (r(), v("div", eo, [
|
|
708
|
+
f(o.$slots, "watermark", W(G({ isPrinting: a(ve) || a(ye) })), void 0, !0)
|
|
704
709
|
])) : d("", !0),
|
|
705
710
|
s("div", {
|
|
706
711
|
id: `legend-bottom-${k.value}`
|
|
707
|
-
}, null, 8,
|
|
708
|
-
|
|
712
|
+
}, null, 8, to),
|
|
713
|
+
ne.value ? (r(), m(Ze, {
|
|
709
714
|
key: 5,
|
|
710
715
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
711
716
|
}, [
|
|
712
717
|
s("div", {
|
|
713
718
|
ref_key: "chartLegend",
|
|
714
|
-
ref:
|
|
719
|
+
ref: ae
|
|
715
720
|
}, [
|
|
716
|
-
e.value.style.chart.legend.show ? (r(), m(
|
|
721
|
+
e.value.style.chart.legend.show ? (r(), m(wt, {
|
|
717
722
|
legendSet: h.value,
|
|
718
|
-
config:
|
|
719
|
-
key: `legend_${
|
|
723
|
+
config: He.value,
|
|
724
|
+
key: `legend_${oe.value}`,
|
|
720
725
|
style: { display: "flex", "row-gap": "6px" }
|
|
721
726
|
}, {
|
|
722
727
|
item: y(({ legend: t, index: i }) => [
|
|
723
728
|
s("div", {
|
|
724
|
-
onClick: () =>
|
|
729
|
+
onClick: () => Xe(t.key),
|
|
725
730
|
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
726
731
|
}, [
|
|
727
|
-
t.key == 1 ? (r(), m(a(
|
|
732
|
+
t.key == 1 ? (r(), m(a(P), {
|
|
728
733
|
key: 0,
|
|
729
734
|
strokeWidth: 1,
|
|
730
735
|
name: "moodSad",
|
|
731
736
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
732
737
|
}, null, 8, ["stroke"])) : d("", !0),
|
|
733
|
-
t.key == 2 ? (r(), m(a(
|
|
738
|
+
t.key == 2 ? (r(), m(a(P), {
|
|
734
739
|
key: 1,
|
|
735
740
|
strokeWidth: 1,
|
|
736
741
|
name: "moodFlat",
|
|
737
742
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
738
743
|
}, null, 8, ["stroke"])) : d("", !0),
|
|
739
|
-
t.key == 3 ? (r(), m(a(
|
|
744
|
+
t.key == 3 ? (r(), m(a(P), {
|
|
740
745
|
key: 2,
|
|
741
746
|
strokeWidth: 1,
|
|
742
747
|
name: "moodNeutral",
|
|
743
748
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
744
749
|
}, null, 8, ["stroke"])) : d("", !0),
|
|
745
|
-
t.key == 4 ? (r(), m(a(
|
|
750
|
+
t.key == 4 ? (r(), m(a(P), {
|
|
746
751
|
key: 3,
|
|
747
752
|
strokeWidth: 1,
|
|
748
753
|
name: "smiley",
|
|
749
754
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
750
755
|
}, null, 8, ["stroke"])) : d("", !0),
|
|
751
|
-
t.key == 5 ? (r(), m(a(
|
|
756
|
+
t.key == 5 ? (r(), m(a(P), {
|
|
752
757
|
key: 4,
|
|
753
758
|
strokeWidth: 1,
|
|
754
759
|
name: "moodHappy",
|
|
755
760
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
756
761
|
}, null, 8, ["stroke"])) : d("", !0),
|
|
757
|
-
a(
|
|
762
|
+
a(K) ? d("", !0) : (r(), v("span", lo, L(a(Me)(
|
|
758
763
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
759
764
|
t.value,
|
|
760
765
|
a(H)({
|
|
@@ -765,12 +770,12 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
765
770
|
}),
|
|
766
771
|
{ datapoint: t, seriesIndex: i }
|
|
767
772
|
)), 1)),
|
|
768
|
-
a(
|
|
773
|
+
a(K) ? d("", !0) : (r(), v("span", ao, "(" + L(a(H)({
|
|
769
774
|
v: t.proportion * 100,
|
|
770
775
|
s: "%",
|
|
771
776
|
r: e.value.style.chart.legend.roundingPercentage
|
|
772
777
|
})) + ")", 1))
|
|
773
|
-
], 8,
|
|
778
|
+
], 8, oo)
|
|
774
779
|
]),
|
|
775
780
|
_: 1
|
|
776
781
|
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
@@ -780,34 +785,34 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
780
785
|
o.$slots.source ? (r(), v("div", {
|
|
781
786
|
key: 6,
|
|
782
787
|
ref_key: "source",
|
|
783
|
-
ref:
|
|
788
|
+
ref: se,
|
|
784
789
|
dir: "auto"
|
|
785
790
|
}, [
|
|
786
791
|
f(o.$slots, "source", {}, void 0, !0)
|
|
787
792
|
], 512)) : d("", !0),
|
|
788
|
-
|
|
793
|
+
re.value ? (r(), m(et(R.value.component), tt({ key: 7 }, R.value.props, {
|
|
789
794
|
ref_key: "tableUnit",
|
|
790
795
|
ref: D,
|
|
791
|
-
onClose:
|
|
792
|
-
}),
|
|
796
|
+
onClose: me
|
|
797
|
+
}), Ce({
|
|
793
798
|
content: y(() => [
|
|
794
|
-
z(a(
|
|
799
|
+
z(a(Le), {
|
|
795
800
|
colNames: V.value.colNames,
|
|
796
801
|
head: V.value.head,
|
|
797
802
|
body: V.value.body,
|
|
798
803
|
config: V.value.config,
|
|
799
|
-
title: e.value.table.useDialog ? "" :
|
|
804
|
+
title: e.value.table.useDialog ? "" : R.value.title,
|
|
800
805
|
withCloseButton: !e.value.table.useDialog,
|
|
801
|
-
onClose:
|
|
806
|
+
onClose: me
|
|
802
807
|
}, {
|
|
803
808
|
th: y(({ th: t }) => [
|
|
804
809
|
s("div", {
|
|
805
810
|
innerHTML: t,
|
|
806
811
|
style: { display: "flex", "align-items": "center" }
|
|
807
|
-
}, null, 8,
|
|
812
|
+
}, null, 8, so)
|
|
808
813
|
]),
|
|
809
814
|
td: y(({ td: t }) => [
|
|
810
|
-
|
|
815
|
+
$e(L(t.name || t), 1)
|
|
811
816
|
]),
|
|
812
817
|
_: 1
|
|
813
818
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -817,7 +822,7 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
817
822
|
e.value.table.useDialog ? {
|
|
818
823
|
name: "title",
|
|
819
824
|
fn: y(() => [
|
|
820
|
-
|
|
825
|
+
$e(L(R.value.title), 1)
|
|
821
826
|
]),
|
|
822
827
|
key: "0"
|
|
823
828
|
} : void 0,
|
|
@@ -827,21 +832,21 @@ const xt = ["id"], $t = ["id"], _t = ["xmlns", "viewBox"], At = ["width", "heigh
|
|
|
827
832
|
s("button", {
|
|
828
833
|
tabindex: "0",
|
|
829
834
|
class: "vue-ui-user-options-button",
|
|
830
|
-
onClick: l[15] || (l[15] = (t) =>
|
|
835
|
+
onClick: l[15] || (l[15] = (t) => Z(e.value.userOptions.callbacks.csv))
|
|
831
836
|
}, [
|
|
832
|
-
z(a(
|
|
837
|
+
z(a(P), {
|
|
833
838
|
name: "excel",
|
|
834
|
-
stroke:
|
|
839
|
+
stroke: R.value.props.color
|
|
835
840
|
}, null, 8, ["stroke"])
|
|
836
841
|
])
|
|
837
842
|
]),
|
|
838
843
|
key: "1"
|
|
839
844
|
} : void 0
|
|
840
845
|
]), 1040)) : d("", !0),
|
|
841
|
-
a(
|
|
842
|
-
], 46,
|
|
846
|
+
a(K) ? (r(), m(pt, { key: 8 })) : d("", !0)
|
|
847
|
+
], 46, $t));
|
|
843
848
|
}
|
|
844
|
-
},
|
|
849
|
+
}, bo = /* @__PURE__ */ xt(no, [["__scopeId", "data-v-ffacf64d"]]);
|
|
845
850
|
export {
|
|
846
|
-
|
|
851
|
+
bo as default
|
|
847
852
|
};
|