vue-data-ui 3.0.2 → 3.0.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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -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 N, ref as u, computed as y, toRefs as Ue, onMounted as We, watch as Ge, createElementBlock as c, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as fe, createBlock as g, createCommentVNode as d, createElementVNode as s, createVNode as Y, createSlots as He, withCtx as m, renderSlot as h, normalizeProps as j, guardReactiveProps as z, Fragment as pe, renderList as ge, toDisplayString as E, Teleport as Xe, createTextVNode as Ke, nextTick as qe } from "vue";
|
|
2
|
+
import { u as Ye, c as Je, t as Qe, o as Ze, f as me, b as et, R as tt, X as ot, s as C, x as lt, S as at, k as ke, i as U, v as st, w as nt } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as rt, u as ut } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as it, B as dt } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as ct } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as be } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import ht from "./img-CBdOMFyn.js";
|
|
10
|
+
import ft from "./Title-CINHji0n.js";
|
|
11
|
+
import pt from "./Legend-CevCqVZ5.js";
|
|
12
|
+
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const mt = ["id"], kt = ["id"], bt = ["xmlns", "viewBox"], xt = ["width", "height"], Ct = ["id"], wt = ["stop-color"], $t = ["stop-color"], _t = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = ["d", "stroke", "stroke-width"], Mt = ["transform"], Nt = ["stroke"], Pt = ["fill"], Tt = ["transform"], Ot = ["stroke"], Lt = ["fill"], It = ["transform"], St = ["stroke"], Ft = ["fill"], Et = ["transform"], Rt = ["stroke"], Bt = ["fill"], Dt = ["transform"], Vt = ["stroke"], jt = ["fill"], zt = ["d", "stroke", "stroke-width", "fill"], Ut = ["x1", "y1", "x2", "y2", "stroke"], Wt = ["cx", "cy", "fill", "stroke"], Gt = ["cx", "cy", "fill", "stroke"], Ht = ["x", "y", "fill", "font-weight"], Xt = ["x", "y", "fill"], Kt = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, qt = ["id"], Yt = ["onClick"], Jt = {
|
|
17
17
|
key: 5,
|
|
18
18
|
style: { "font-weight": "bold" }
|
|
19
|
-
},
|
|
19
|
+
}, Qt = { key: 6 }, Zt = ["innerHTML"], eo = {
|
|
20
20
|
__name: "vue-ui-mood-radar",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -32,9 +32,9 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
35
|
+
setup(xe, { expose: Ce }) {
|
|
36
|
+
const we = N(() => import("./vue-ui-accordion-s_m_NJzJ.js")), P = N(() => import("./BaseIcon-DLm6QTwr.js")), $e = N(() => import("./DataTable-CWzb1j8d.js")), _e = N(() => import("./PackageVersion-n4qokxnx.js")), Ae = N(() => import("./PenAndPaper-C_R9vJkU.js")), Me = N(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_mood_radar: Ne } = Ye(), w = xe, k = u(Je()), $ = u(null), Pe = u(null), f = u(null), J = u(null), Te = u(0), Oe = u(0), Q = u(0), Z = u(null), ee = u(null), T = u(null), R = u(null), te = u(null), oe = u(!1), le = y(() => !!w.dataset && Object.keys(w.dataset).length), e = u(H()), { loading: W, FINAL_DATASET: _ } = it({
|
|
37
|
+
...Ue(w),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
39
|
prepareConfig: H,
|
|
40
40
|
skeletonDataset: {
|
|
@@ -44,7 +44,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
44
44
|
4: 1,
|
|
45
45
|
5: 1
|
|
46
46
|
},
|
|
47
|
-
skeletonConfig:
|
|
47
|
+
skeletonConfig: Qe({
|
|
48
48
|
defaultConfig: e.value,
|
|
49
49
|
userConfig: {
|
|
50
50
|
userOptions: { show: !1 },
|
|
@@ -85,19 +85,19 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
We(() => {
|
|
89
|
+
oe.value = !0, ae();
|
|
90
90
|
});
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
91
|
+
const Le = y(() => e.value.debug);
|
|
92
|
+
function ae() {
|
|
93
|
+
if (Ze(w.dataset) && me({
|
|
94
94
|
componentName: "VueUiMoodRadar",
|
|
95
95
|
type: "dataset",
|
|
96
|
-
debug:
|
|
96
|
+
debug: Le.value
|
|
97
97
|
}), e.value.responsive) {
|
|
98
|
-
const o =
|
|
99
|
-
const { width: l, height: t } =
|
|
100
|
-
chart:
|
|
98
|
+
const o = rt(() => {
|
|
99
|
+
const { width: l, height: t } = ut({
|
|
100
|
+
chart: $.value,
|
|
101
101
|
title: e.value.style.chart.title.text ? Z.value : null,
|
|
102
102
|
legend: e.value.style.chart.legend.show ? ee.value : null,
|
|
103
103
|
noTitle: J.value,
|
|
@@ -107,66 +107,66 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
107
107
|
n.value.width = l, n.value.height = t - 12;
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(o), R.value =
|
|
110
|
+
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(o), R.value = $.value.parentNode, T.value.observe(R.value);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const { userOptionsVisible: G, setUserOptionsVisibility:
|
|
113
|
+
const { userOptionsVisible: G, setUserOptionsVisibility: se, keepUserOptionState: ne } = vt({ config: e.value }), { svgRef: re } = yt({ config: e.value.style.chart.title });
|
|
114
114
|
function H() {
|
|
115
|
-
const o =
|
|
116
|
-
userConfig:
|
|
117
|
-
defaultConfig:
|
|
115
|
+
const o = be({
|
|
116
|
+
userConfig: w.config,
|
|
117
|
+
defaultConfig: Ne
|
|
118
118
|
});
|
|
119
119
|
return o.theme ? {
|
|
120
|
-
...
|
|
121
|
-
userConfig:
|
|
120
|
+
...be({
|
|
121
|
+
userConfig: et.vue_ui_mood_radar[o.theme] || w.config,
|
|
122
122
|
defaultConfig: o
|
|
123
123
|
})
|
|
124
124
|
} : o;
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
e.value = H(), G.value = !e.value.userOptions.showOnChartHover,
|
|
126
|
+
Ge(() => w.config, (o) => {
|
|
127
|
+
e.value = H(), G.value = !e.value.userOptions.showOnChartHover, ae(), Te.value += 1, Oe.value += 1, Q.value += 1, O.value.showTable = e.value.table.show;
|
|
128
128
|
}, { deep: !0 });
|
|
129
|
-
const { isPrinting:
|
|
130
|
-
elementId:
|
|
129
|
+
const { isPrinting: ue, isImaging: ie, generatePdf: de, generateImage: ce } = ct({
|
|
130
|
+
elementId: k.value,
|
|
131
131
|
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
132
132
|
options: e.value.userOptions.print
|
|
133
|
-
}),
|
|
133
|
+
}), Ie = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = u({
|
|
134
134
|
showTable: e.value.table.show
|
|
135
|
-
}), n =
|
|
135
|
+
}), n = u({
|
|
136
136
|
height: 256,
|
|
137
137
|
width: 256
|
|
138
|
-
}),
|
|
138
|
+
}), Se = {
|
|
139
139
|
5: { x: 128, y: 35 },
|
|
140
140
|
4: { x: 218, y: 98.5 },
|
|
141
141
|
3: { x: 185, y: 204 },
|
|
142
142
|
2: { x: 70, y: 204 },
|
|
143
143
|
1: { x: 38.5, y: 98.5 }
|
|
144
|
-
},
|
|
144
|
+
}, Fe = y(() => {
|
|
145
145
|
const o = {};
|
|
146
146
|
return K.value.forEach((l) => {
|
|
147
147
|
o[l.key] = { x: l.x, y: l.y };
|
|
148
148
|
}), o;
|
|
149
149
|
});
|
|
150
150
|
function L(o) {
|
|
151
|
-
const l =
|
|
151
|
+
const l = Se[o], t = Fe.value[o] || l;
|
|
152
152
|
return `translate(${t.x - l.x}, ${t.y - l.y})`;
|
|
153
153
|
}
|
|
154
|
-
const X = y(() =>
|
|
154
|
+
const X = y(() => tt({
|
|
155
155
|
plot: { x: n.value.width / 2, y: n.value.height / 2 },
|
|
156
156
|
radius: Math.min(n.value.height, n.value.width) * 0.35,
|
|
157
157
|
sides: 5,
|
|
158
158
|
rotation: 11
|
|
159
159
|
}));
|
|
160
|
-
function
|
|
160
|
+
function Ee({ centerX: o, centerY: l, apexX: t, apexY: i, proportion: b, key: p, value: ze }) {
|
|
161
161
|
return {
|
|
162
|
-
x: o + (t - o) *
|
|
163
|
-
y: l + (
|
|
162
|
+
x: o + (t - o) * b,
|
|
163
|
+
y: l + (i - l) * b,
|
|
164
164
|
key: p,
|
|
165
|
-
value:
|
|
165
|
+
value: ze
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
const t = typeof
|
|
168
|
+
const Re = y(() => Math.max(...Object.values(_.value).map((o) => isNaN(o) ? 0 : o))), A = y(() => Object.values(_.value).reduce((o, l) => (isNaN(o) ? 0 : o) + (isNaN(l) ? 0 : l), 0)), v = y(() => Object.keys(_.value).map((o, l) => {
|
|
169
|
+
const t = typeof _.value[o] != "number" || isNaN(_.value[o]) ? 0 : _.value[o];
|
|
170
170
|
return {
|
|
171
171
|
index: l,
|
|
172
172
|
key: o,
|
|
@@ -175,18 +175,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
175
175
|
color: e.value.style.chart.layout.smileys.colors[o]
|
|
176
176
|
};
|
|
177
177
|
}).sort((o, l) => l.key - o.key)), K = y(() => (["1", "2", "3", "4", "5"].forEach((o) => {
|
|
178
|
-
[null, void 0].includes(
|
|
178
|
+
[null, void 0].includes(_.value[o]) && me({
|
|
179
179
|
componentName: "VueUiMoodRadar",
|
|
180
180
|
type: "datasetAttribute",
|
|
181
181
|
property: o
|
|
182
182
|
});
|
|
183
183
|
}), X.value.coordinates.map((o, l) => {
|
|
184
|
-
const t =
|
|
184
|
+
const t = Ee({
|
|
185
185
|
centerX: n.value.width / 2,
|
|
186
186
|
centerY: n.value.height / 2,
|
|
187
187
|
apexX: o.x,
|
|
188
188
|
apexY: o.y,
|
|
189
|
-
proportion: v.value[l].value /
|
|
189
|
+
proportion: v.value[l].value / Re.value,
|
|
190
190
|
key: v.value[l].key,
|
|
191
191
|
value: v.value[l].value
|
|
192
192
|
});
|
|
@@ -195,7 +195,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
195
195
|
plots: t,
|
|
196
196
|
key: v.value[l].key
|
|
197
197
|
};
|
|
198
|
-
}))),
|
|
198
|
+
}))), Be = y(() => ({
|
|
199
199
|
cy: "mood-radar-legend",
|
|
200
200
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
201
201
|
color: e.value.style.chart.legend.color,
|
|
@@ -203,8 +203,8 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
203
203
|
paddingBottom: 12,
|
|
204
204
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
205
205
|
}));
|
|
206
|
-
function
|
|
207
|
-
o === f.value ? f.value = null : (f.value = o,
|
|
206
|
+
function De(o) {
|
|
207
|
+
o === f.value ? f.value = null : (f.value = o, M(o));
|
|
208
208
|
}
|
|
209
209
|
function I(o) {
|
|
210
210
|
f.value = o;
|
|
@@ -216,23 +216,23 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
216
216
|
const l = v.value.find((t) => t.key === o);
|
|
217
217
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function M(o) {
|
|
220
220
|
const l = v.value.find((t) => t.key === o);
|
|
221
221
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const x = y(() => {
|
|
224
224
|
const o = v.value.map((t) => ({
|
|
225
225
|
name: t.key,
|
|
226
226
|
color: t.color
|
|
227
227
|
})), l = v.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
228
228
|
return { head: o, body: l };
|
|
229
229
|
});
|
|
230
|
-
function
|
|
231
|
-
|
|
232
|
-
const l =
|
|
233
|
-
|
|
234
|
-
], [
|
|
235
|
-
o ? o(
|
|
230
|
+
function ve(o = null) {
|
|
231
|
+
qe(() => {
|
|
232
|
+
const l = x.value.head.map((b, p) => [[
|
|
233
|
+
b.name
|
|
234
|
+
], [x.value.body[p]], [isNaN(x.value.body[p] / A.value) ? "-" : x.value.body[p] / A.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), i = st(t);
|
|
235
|
+
o ? o(i) : nt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
const B = y(() => {
|
|
@@ -240,13 +240,13 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
240
240
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
241
241
|
Number(A.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
242
242
|
"100%"
|
|
243
|
-
], l =
|
|
243
|
+
], l = x.value.head.map((b, p) => [
|
|
244
244
|
{
|
|
245
|
-
color:
|
|
246
|
-
name:
|
|
245
|
+
color: b.color,
|
|
246
|
+
name: b.name
|
|
247
247
|
},
|
|
248
|
-
|
|
249
|
-
isNaN(
|
|
248
|
+
x.value.body[p].toFixed(e.value.table.td.roundingValue),
|
|
249
|
+
isNaN(x.value.body[p] / A.value) ? "-" : (x.value.body[p] / A.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
250
250
|
]), t = {
|
|
251
251
|
th: {
|
|
252
252
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -259,7 +259,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
259
259
|
outline: e.value.table.td.outline
|
|
260
260
|
},
|
|
261
261
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
262
|
-
},
|
|
262
|
+
}, i = [
|
|
263
263
|
e.value.table.columnNames.series,
|
|
264
264
|
e.value.table.columnNames.value,
|
|
265
265
|
e.value.table.columnNames.percentage
|
|
@@ -268,62 +268,62 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
268
268
|
head: o,
|
|
269
269
|
body: l,
|
|
270
270
|
config: t,
|
|
271
|
-
colNames:
|
|
271
|
+
colNames: i
|
|
272
272
|
};
|
|
273
273
|
});
|
|
274
|
-
function
|
|
274
|
+
function Ve() {
|
|
275
275
|
return v.value;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ye() {
|
|
278
278
|
O.value.showTable = !O.value.showTable;
|
|
279
279
|
}
|
|
280
|
-
const F =
|
|
281
|
-
function
|
|
280
|
+
const F = u(!1);
|
|
281
|
+
function he(o) {
|
|
282
282
|
F.value = o;
|
|
283
283
|
}
|
|
284
|
-
const D =
|
|
284
|
+
const D = u(!1);
|
|
285
285
|
function q() {
|
|
286
286
|
D.value = !D.value;
|
|
287
287
|
}
|
|
288
|
-
async function
|
|
289
|
-
if (
|
|
290
|
-
const { width: l, height: t } =
|
|
288
|
+
async function je({ scale: o = 2 } = {}) {
|
|
289
|
+
if (!$.value) return;
|
|
290
|
+
const { width: l, height: t } = $.value.getBoundingClientRect(), i = l / t, { imageUri: b, base64: p } = await ht({ domElement: $.value, base64: !0, img: !0, scale: o });
|
|
291
291
|
return {
|
|
292
|
-
imageUri:
|
|
292
|
+
imageUri: b,
|
|
293
293
|
base64: p,
|
|
294
294
|
title: e.value.style.chart.title.text,
|
|
295
295
|
width: l,
|
|
296
296
|
height: t,
|
|
297
|
-
aspectRatio:
|
|
297
|
+
aspectRatio: i
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
return
|
|
301
|
-
getData:
|
|
302
|
-
getImage:
|
|
303
|
-
generatePdf:
|
|
304
|
-
generateCsv:
|
|
305
|
-
generateImage:
|
|
306
|
-
toggleTable:
|
|
300
|
+
return Ce({
|
|
301
|
+
getData: Ve,
|
|
302
|
+
getImage: je,
|
|
303
|
+
generatePdf: de,
|
|
304
|
+
generateCsv: ve,
|
|
305
|
+
generateImage: ce,
|
|
306
|
+
toggleTable: ye,
|
|
307
307
|
toggleAnnotator: q,
|
|
308
|
-
toggleFullscreen:
|
|
308
|
+
toggleFullscreen: he
|
|
309
309
|
}), (o, l) => (r(), c("div", {
|
|
310
|
-
class:
|
|
310
|
+
class: fe(`vue-ui-mood-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
311
311
|
ref_key: "moodRadarChart",
|
|
312
|
-
ref:
|
|
313
|
-
id: `${
|
|
312
|
+
ref: $,
|
|
313
|
+
id: `${k.value}`,
|
|
314
314
|
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
315
|
-
onMouseenter: l[16] || (l[16] = () => a(
|
|
316
|
-
onMouseleave: l[17] || (l[17] = () => a(
|
|
315
|
+
onMouseenter: l[16] || (l[16] = () => a(se)(!0)),
|
|
316
|
+
onMouseleave: l[17] || (l[17] = () => a(se)(!1))
|
|
317
317
|
}, [
|
|
318
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
318
|
+
e.value.userOptions.buttons.annotator ? (r(), g(a(Ae), {
|
|
319
319
|
key: 0,
|
|
320
|
-
svgRef: a(
|
|
320
|
+
svgRef: a(re),
|
|
321
321
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
322
322
|
color: e.value.style.chart.color,
|
|
323
323
|
active: D.value,
|
|
324
324
|
onClose: q
|
|
325
325
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
326
|
-
|
|
326
|
+
Ie.value ? (r(), c("div", {
|
|
327
327
|
key: 1,
|
|
328
328
|
ref_key: "noTitle",
|
|
329
329
|
ref: J,
|
|
@@ -336,7 +336,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
336
336
|
ref: Z,
|
|
337
337
|
style: "width:100%;background:transparent"
|
|
338
338
|
}, [
|
|
339
|
-
Y(
|
|
339
|
+
Y(ft, {
|
|
340
340
|
config: {
|
|
341
341
|
title: {
|
|
342
342
|
cy: "mood-radar-title",
|
|
@@ -349,15 +349,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
349
349
|
}
|
|
350
350
|
}, null, 8, ["config"])
|
|
351
351
|
], 512)) : d("", !0),
|
|
352
|
-
|
|
352
|
+
s("div", {
|
|
353
|
+
id: `legend-top-${k.value}`
|
|
354
|
+
}, null, 8, kt),
|
|
355
|
+
e.value.userOptions.show && le.value && (a(ne) || a(G)) ? (r(), g(a(Me), {
|
|
353
356
|
key: 3,
|
|
354
357
|
ref_key: "details",
|
|
355
|
-
ref:
|
|
358
|
+
ref: Pe,
|
|
356
359
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
360
|
color: e.value.style.chart.color,
|
|
358
|
-
isPrinting: a(
|
|
359
|
-
isImaging: a(
|
|
360
|
-
uid:
|
|
361
|
+
isPrinting: a(ue),
|
|
362
|
+
isImaging: a(ie),
|
|
363
|
+
uid: k.value,
|
|
361
364
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
362
365
|
hasXls: e.value.userOptions.buttons.csv,
|
|
363
366
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -365,81 +368,81 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
365
368
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
369
|
isFullscreen: F.value,
|
|
367
370
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
368
|
-
chartElement:
|
|
371
|
+
chartElement: $.value,
|
|
369
372
|
position: e.value.userOptions.position,
|
|
370
373
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
371
374
|
isAnnotation: D.value,
|
|
372
375
|
callbacks: e.value.userOptions.callbacks,
|
|
373
376
|
printScale: e.value.userOptions.print.scale,
|
|
374
|
-
onToggleFullscreen:
|
|
375
|
-
onGeneratePdf: a(
|
|
376
|
-
onGenerateCsv:
|
|
377
|
-
onGenerateImage: a(
|
|
378
|
-
onToggleTable:
|
|
377
|
+
onToggleFullscreen: he,
|
|
378
|
+
onGeneratePdf: a(de),
|
|
379
|
+
onGenerateCsv: ve,
|
|
380
|
+
onGenerateImage: a(ce),
|
|
381
|
+
onToggleTable: ye,
|
|
379
382
|
onToggleAnnotator: q,
|
|
380
383
|
style: V({
|
|
381
|
-
visibility: a(
|
|
384
|
+
visibility: a(ne) ? a(G) ? "visible" : "hidden" : "visible"
|
|
382
385
|
})
|
|
383
|
-
},
|
|
386
|
+
}, He({ _: 2 }, [
|
|
384
387
|
o.$slots.menuIcon ? {
|
|
385
388
|
name: "menuIcon",
|
|
386
|
-
fn:
|
|
387
|
-
h(o.$slots, "menuIcon", j(z({ isOpen: t, color:
|
|
389
|
+
fn: m(({ isOpen: t, color: i }) => [
|
|
390
|
+
h(o.$slots, "menuIcon", j(z({ isOpen: t, color: i })), void 0, !0)
|
|
388
391
|
]),
|
|
389
392
|
key: "0"
|
|
390
393
|
} : void 0,
|
|
391
394
|
o.$slots.optionPdf ? {
|
|
392
395
|
name: "optionPdf",
|
|
393
|
-
fn:
|
|
396
|
+
fn: m(() => [
|
|
394
397
|
h(o.$slots, "optionPdf", {}, void 0, !0)
|
|
395
398
|
]),
|
|
396
399
|
key: "1"
|
|
397
400
|
} : void 0,
|
|
398
401
|
o.$slots.optionCsv ? {
|
|
399
402
|
name: "optionCsv",
|
|
400
|
-
fn:
|
|
403
|
+
fn: m(() => [
|
|
401
404
|
h(o.$slots, "optionCsv", {}, void 0, !0)
|
|
402
405
|
]),
|
|
403
406
|
key: "2"
|
|
404
407
|
} : void 0,
|
|
405
408
|
o.$slots.optionImg ? {
|
|
406
409
|
name: "optionImg",
|
|
407
|
-
fn:
|
|
410
|
+
fn: m(() => [
|
|
408
411
|
h(o.$slots, "optionImg", {}, void 0, !0)
|
|
409
412
|
]),
|
|
410
413
|
key: "3"
|
|
411
414
|
} : void 0,
|
|
412
415
|
o.$slots.optionTable ? {
|
|
413
416
|
name: "optionTable",
|
|
414
|
-
fn:
|
|
417
|
+
fn: m(() => [
|
|
415
418
|
h(o.$slots, "optionTable", {}, void 0, !0)
|
|
416
419
|
]),
|
|
417
420
|
key: "4"
|
|
418
421
|
} : void 0,
|
|
419
422
|
o.$slots.optionFullscreen ? {
|
|
420
423
|
name: "optionFullscreen",
|
|
421
|
-
fn:
|
|
422
|
-
h(o.$slots, "optionFullscreen", j(z({ toggleFullscreen: t, isFullscreen:
|
|
424
|
+
fn: m(({ toggleFullscreen: t, isFullscreen: i }) => [
|
|
425
|
+
h(o.$slots, "optionFullscreen", j(z({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
|
|
423
426
|
]),
|
|
424
427
|
key: "5"
|
|
425
428
|
} : void 0,
|
|
426
429
|
o.$slots.optionAnnotator ? {
|
|
427
430
|
name: "optionAnnotator",
|
|
428
|
-
fn:
|
|
429
|
-
h(o.$slots, "optionAnnotator", j(z({ toggleAnnotator: t, isAnnotator:
|
|
431
|
+
fn: m(({ toggleAnnotator: t, isAnnotator: i }) => [
|
|
432
|
+
h(o.$slots, "optionAnnotator", j(z({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
|
|
430
433
|
]),
|
|
431
434
|
key: "6"
|
|
432
435
|
} : void 0
|
|
433
436
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
434
437
|
(r(), c("svg", {
|
|
435
438
|
ref_key: "svgRef",
|
|
436
|
-
ref:
|
|
437
|
-
xmlns: a(
|
|
439
|
+
ref: re,
|
|
440
|
+
xmlns: a(ot),
|
|
438
441
|
viewBox: `0 0 ${n.value.width} ${n.value.height}`,
|
|
439
|
-
class:
|
|
442
|
+
class: fe({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
440
443
|
style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
441
444
|
}, [
|
|
442
|
-
Y(a(
|
|
445
|
+
Y(a(_e)),
|
|
443
446
|
o.$slots["chart-background"] ? (r(), c("foreignObject", {
|
|
444
447
|
key: 0,
|
|
445
448
|
x: 0,
|
|
@@ -451,7 +454,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
451
454
|
}
|
|
452
455
|
}, [
|
|
453
456
|
h(o.$slots, "chart-background", {}, void 0, !0)
|
|
454
|
-
], 8,
|
|
457
|
+
], 8, xt)) : d("", !0),
|
|
455
458
|
s("defs", null, [
|
|
456
459
|
s("radialGradient", {
|
|
457
460
|
cx: "50%",
|
|
@@ -459,26 +462,26 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
459
462
|
r: "50%",
|
|
460
463
|
fx: "50%",
|
|
461
464
|
fy: "50%",
|
|
462
|
-
id: `mood_radar_gradient_${
|
|
465
|
+
id: `mood_radar_gradient_${k.value}`
|
|
463
466
|
}, [
|
|
464
467
|
s("stop", {
|
|
465
468
|
offset: "0%",
|
|
466
|
-
"stop-color": a(
|
|
467
|
-
}, null, 8,
|
|
469
|
+
"stop-color": a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
470
|
+
}, null, 8, wt),
|
|
468
471
|
s("stop", {
|
|
469
472
|
offset: "100%",
|
|
470
|
-
"stop-color": a(
|
|
471
|
-
}, null, 8,
|
|
472
|
-
], 8,
|
|
473
|
+
"stop-color": a(C)(a(lt)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
474
|
+
}, null, 8, $t)
|
|
475
|
+
], 8, Ct)
|
|
473
476
|
]),
|
|
474
|
-
(r(!0), c(
|
|
477
|
+
(r(!0), c(pe, null, ge(X.value.coordinates, (t) => (r(), c("line", {
|
|
475
478
|
x1: n.value.width / 2,
|
|
476
479
|
y1: n.value.height / 2,
|
|
477
480
|
x2: t.x,
|
|
478
481
|
y2: t.y,
|
|
479
482
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
480
483
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
481
|
-
}, null, 8,
|
|
484
|
+
}, null, 8, _t))), 256)),
|
|
482
485
|
s("path", {
|
|
483
486
|
d: X.value.path,
|
|
484
487
|
fill: "none",
|
|
@@ -486,7 +489,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
486
489
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
487
490
|
"stroke-linejoin": "round",
|
|
488
491
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, At),
|
|
490
493
|
s("g", {
|
|
491
494
|
transform: L("5")
|
|
492
495
|
}, [
|
|
@@ -496,18 +499,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
496
499
|
"stroke-width": "1",
|
|
497
500
|
"stroke-linecap": "round",
|
|
498
501
|
d: "M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"
|
|
499
|
-
}, null, 8,
|
|
502
|
+
}, null, 8, Nt),
|
|
500
503
|
s("circle", {
|
|
501
504
|
class: "vue-ui-mood-radar-trap",
|
|
502
505
|
cx: "128",
|
|
503
506
|
cy: "25",
|
|
504
507
|
r: "20",
|
|
505
|
-
fill: f.value === "5" ? a(
|
|
508
|
+
fill: f.value === "5" ? a(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
506
509
|
onMouseenter: l[0] || (l[0] = (t) => I("5")),
|
|
507
510
|
onMouseleave: l[1] || (l[1] = (t) => S("5")),
|
|
508
|
-
onClick: l[2] || (l[2] = (t) =>
|
|
509
|
-
}, null, 40,
|
|
510
|
-
], 8,
|
|
511
|
+
onClick: l[2] || (l[2] = (t) => M("5"))
|
|
512
|
+
}, null, 40, Pt)
|
|
513
|
+
], 8, Mt),
|
|
511
514
|
s("g", {
|
|
512
515
|
transform: L("4")
|
|
513
516
|
}, [
|
|
@@ -517,18 +520,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
517
520
|
"stroke-width": "1",
|
|
518
521
|
"stroke-linecap": "round",
|
|
519
522
|
d: "M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"
|
|
520
|
-
}, null, 8,
|
|
523
|
+
}, null, 8, Ot),
|
|
521
524
|
s("circle", {
|
|
522
525
|
class: "vue-ui-mood-radar-trap",
|
|
523
526
|
cx: "227",
|
|
524
527
|
cy: "95.5",
|
|
525
528
|
r: "20",
|
|
526
|
-
fill: f.value === "4" ? a(
|
|
529
|
+
fill: f.value === "4" ? a(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
527
530
|
onMouseenter: l[3] || (l[3] = (t) => I("4")),
|
|
528
531
|
onMouseleave: l[4] || (l[4] = (t) => S("4")),
|
|
529
|
-
onClick: l[5] || (l[5] = (t) =>
|
|
530
|
-
}, null, 40,
|
|
531
|
-
], 8,
|
|
532
|
+
onClick: l[5] || (l[5] = (t) => M("4"))
|
|
533
|
+
}, null, 40, Lt)
|
|
534
|
+
], 8, Tt),
|
|
532
535
|
s("g", {
|
|
533
536
|
transform: L("3")
|
|
534
537
|
}, [
|
|
@@ -538,18 +541,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
538
541
|
"stroke-width": "1",
|
|
539
542
|
"stroke-linecap": "round",
|
|
540
543
|
d: "M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"
|
|
541
|
-
}, null, 8,
|
|
544
|
+
}, null, 8, St),
|
|
542
545
|
s("circle", {
|
|
543
546
|
class: "vue-ui-mood-radar-trap",
|
|
544
547
|
cx: "190",
|
|
545
548
|
cy: "213.5",
|
|
546
549
|
r: "20",
|
|
547
|
-
fill: f.value === "3" ? a(
|
|
550
|
+
fill: f.value === "3" ? a(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
548
551
|
onMouseenter: l[6] || (l[6] = (t) => I("3")),
|
|
549
552
|
onMouseleave: l[7] || (l[7] = (t) => S("3")),
|
|
550
|
-
onClick: l[8] || (l[8] = (t) =>
|
|
551
|
-
}, null, 40,
|
|
552
|
-
], 8,
|
|
553
|
+
onClick: l[8] || (l[8] = (t) => M("3"))
|
|
554
|
+
}, null, 40, Ft)
|
|
555
|
+
], 8, It),
|
|
553
556
|
s("g", {
|
|
554
557
|
transform: L("2")
|
|
555
558
|
}, [
|
|
@@ -559,18 +562,18 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
559
562
|
"stroke-width": "1",
|
|
560
563
|
"stroke-linecap": "round",
|
|
561
564
|
d: "M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"
|
|
562
|
-
}, null, 8,
|
|
565
|
+
}, null, 8, Rt),
|
|
563
566
|
s("circle", {
|
|
564
567
|
class: "vue-ui-mood-radar-trap",
|
|
565
568
|
cx: "65",
|
|
566
569
|
cy: "213.5",
|
|
567
570
|
r: "20",
|
|
568
|
-
fill: f.value === "2" ? a(
|
|
571
|
+
fill: f.value === "2" ? a(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
569
572
|
onMouseenter: l[9] || (l[9] = (t) => I("2")),
|
|
570
573
|
onMouseleave: l[10] || (l[10] = (t) => S("2")),
|
|
571
|
-
onClick: l[11] || (l[11] = (t) =>
|
|
572
|
-
}, null, 40,
|
|
573
|
-
], 8,
|
|
574
|
+
onClick: l[11] || (l[11] = (t) => M("2"))
|
|
575
|
+
}, null, 40, Bt)
|
|
576
|
+
], 8, Et),
|
|
574
577
|
s("g", {
|
|
575
578
|
transform: L("1")
|
|
576
579
|
}, [
|
|
@@ -580,27 +583,27 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
580
583
|
"stroke-width": "1",
|
|
581
584
|
"stroke-linecap": "round",
|
|
582
585
|
d: "M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"
|
|
583
|
-
}, null, 8,
|
|
586
|
+
}, null, 8, Vt),
|
|
584
587
|
s("circle", {
|
|
585
588
|
class: "vue-ui-mood-radar-trap",
|
|
586
589
|
cx: "29",
|
|
587
590
|
cy: "95.5",
|
|
588
591
|
r: "20",
|
|
589
|
-
fill: f.value === "1" ? a(
|
|
592
|
+
fill: f.value === "1" ? a(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
590
593
|
onMouseenter: l[12] || (l[12] = (t) => I("1")),
|
|
591
594
|
onMouseleave: l[13] || (l[13] = (t) => S("1")),
|
|
592
|
-
onClick: l[14] || (l[14] = (t) =>
|
|
593
|
-
}, null, 40,
|
|
594
|
-
], 8,
|
|
595
|
+
onClick: l[14] || (l[14] = (t) => M("1"))
|
|
596
|
+
}, null, 40, jt)
|
|
597
|
+
], 8, Dt),
|
|
595
598
|
s("path", {
|
|
596
|
-
d: a(
|
|
599
|
+
d: a(at)(K.value.map((t) => t.plots)),
|
|
597
600
|
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
598
601
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
599
602
|
"stroke-linecap": "round",
|
|
600
603
|
"stroke-linejoin": "round",
|
|
601
|
-
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${
|
|
602
|
-
}, null, 8,
|
|
603
|
-
(r(!0), c(
|
|
604
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${k.value})` : a(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
605
|
+
}, null, 8, zt),
|
|
606
|
+
(r(!0), c(pe, null, ge(K.value.map((t) => t.plots), (t, i) => (r(), c("g", {
|
|
604
607
|
class: "vue-ui-mood-radar-trap",
|
|
605
608
|
style: V(`opacity:${f.value == t.key ? "1" : "0"}`)
|
|
606
609
|
}, [
|
|
@@ -610,7 +613,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
610
613
|
x2: n.value.width / 2,
|
|
611
614
|
y2: n.value.height / 2,
|
|
612
615
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
613
|
-
}, null, 8,
|
|
616
|
+
}, null, 8, Ut),
|
|
614
617
|
s("circle", {
|
|
615
618
|
cx: t.x,
|
|
616
619
|
cy: t.y,
|
|
@@ -618,7 +621,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
618
621
|
r: "3",
|
|
619
622
|
stroke: e.value.style.chart.backgroundColor,
|
|
620
623
|
"stroke-width": 0.5
|
|
621
|
-
}, null, 8,
|
|
624
|
+
}, null, 8, Wt),
|
|
622
625
|
s("circle", {
|
|
623
626
|
cx: n.value.width / 2,
|
|
624
627
|
cy: n.value.height / 2,
|
|
@@ -626,7 +629,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
626
629
|
r: "3",
|
|
627
630
|
stroke: e.value.style.chart.backgroundColor,
|
|
628
631
|
"stroke-width": 0.5
|
|
629
|
-
}, null, 8,
|
|
632
|
+
}, null, 8, Gt),
|
|
630
633
|
s("text", {
|
|
631
634
|
x: n.value.width / 2,
|
|
632
635
|
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.13 : n.value.height / 2 * 0.9375,
|
|
@@ -634,7 +637,7 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
634
637
|
"font-size": "12",
|
|
635
638
|
"text-anchor": "middle",
|
|
636
639
|
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
637
|
-
}, E(a(
|
|
640
|
+
}, E(a(ke)(
|
|
638
641
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
639
642
|
t.value,
|
|
640
643
|
a(U)({
|
|
@@ -643,8 +646,8 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
643
646
|
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
644
647
|
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
645
648
|
}),
|
|
646
|
-
{ datapoint: t, seriesIndex:
|
|
647
|
-
)), 9,
|
|
649
|
+
{ datapoint: t, seriesIndex: i }
|
|
650
|
+
)), 9, Ht),
|
|
648
651
|
s("text", {
|
|
649
652
|
x: n.value.width / 2,
|
|
650
653
|
y: ["5", 5].includes(t.key) ? n.value.height / 2 * 1.273 : n.value.height / 2 * 0.7968,
|
|
@@ -655,90 +658,98 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
655
658
|
v: t.value / A.value * 100,
|
|
656
659
|
s: "%",
|
|
657
660
|
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
658
|
-
})) + ") ", 9,
|
|
661
|
+
})) + ") ", 9, Xt)
|
|
659
662
|
], 4))), 256)),
|
|
660
663
|
h(o.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
661
|
-
], 14,
|
|
662
|
-
o.$slots.watermark ? (r(), c("div",
|
|
663
|
-
h(o.$slots, "watermark", j(z({ isPrinting: a(
|
|
664
|
+
], 14, bt)),
|
|
665
|
+
o.$slots.watermark ? (r(), c("div", Kt, [
|
|
666
|
+
h(o.$slots, "watermark", j(z({ isPrinting: a(ue) || a(ie) })), void 0, !0)
|
|
664
667
|
])) : d("", !0),
|
|
665
668
|
s("div", {
|
|
666
|
-
|
|
667
|
-
|
|
669
|
+
id: `legend-bottom-${k.value}`
|
|
670
|
+
}, null, 8, qt),
|
|
671
|
+
oe.value ? (r(), g(Xe, {
|
|
672
|
+
key: 5,
|
|
673
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
668
674
|
}, [
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
style
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
675
|
+
s("div", {
|
|
676
|
+
ref_key: "chartLegend",
|
|
677
|
+
ref: ee
|
|
678
|
+
}, [
|
|
679
|
+
e.value.style.chart.legend.show ? (r(), g(pt, {
|
|
680
|
+
legendSet: v.value,
|
|
681
|
+
config: Be.value,
|
|
682
|
+
key: `legend_${Q.value}`,
|
|
683
|
+
style: { display: "flex", "row-gap": "6px" }
|
|
684
|
+
}, {
|
|
685
|
+
item: m(({ legend: t, index: i }) => [
|
|
686
|
+
s("div", {
|
|
687
|
+
onClick: () => De(t.key),
|
|
688
|
+
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
689
|
+
}, [
|
|
690
|
+
t.key == 1 ? (r(), g(a(P), {
|
|
691
|
+
key: 0,
|
|
692
|
+
strokeWidth: 1,
|
|
693
|
+
name: "moodSad",
|
|
694
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
695
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
696
|
+
t.key == 2 ? (r(), g(a(P), {
|
|
697
|
+
key: 1,
|
|
698
|
+
strokeWidth: 1,
|
|
699
|
+
name: "moodFlat",
|
|
700
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
701
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
702
|
+
t.key == 3 ? (r(), g(a(P), {
|
|
703
|
+
key: 2,
|
|
704
|
+
strokeWidth: 1,
|
|
705
|
+
name: "moodNeutral",
|
|
706
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
707
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
708
|
+
t.key == 4 ? (r(), g(a(P), {
|
|
709
|
+
key: 3,
|
|
710
|
+
strokeWidth: 1,
|
|
711
|
+
name: "smiley",
|
|
712
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
713
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
714
|
+
t.key == 5 ? (r(), g(a(P), {
|
|
715
|
+
key: 4,
|
|
716
|
+
strokeWidth: 1,
|
|
717
|
+
name: "moodHappy",
|
|
718
|
+
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
719
|
+
}, null, 8, ["stroke"])) : d("", !0),
|
|
720
|
+
a(W) ? d("", !0) : (r(), c("span", Jt, E(a(ke)(
|
|
721
|
+
e.value.style.chart.layout.dataLabel.formatter,
|
|
722
|
+
t.value,
|
|
723
|
+
a(U)({
|
|
724
|
+
p: e.value.style.chart.layout.dataLabel.prefix,
|
|
725
|
+
v: t.value,
|
|
726
|
+
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
727
|
+
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
728
|
+
}),
|
|
729
|
+
{ datapoint: t, seriesIndex: i }
|
|
730
|
+
)), 1)),
|
|
731
|
+
a(W) ? d("", !0) : (r(), c("span", Qt, "(" + E(a(U)({
|
|
732
|
+
v: t.proportion * 100,
|
|
733
|
+
s: "%",
|
|
734
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
735
|
+
})) + ")", 1))
|
|
736
|
+
], 8, Yt)
|
|
737
|
+
]),
|
|
738
|
+
_: 1
|
|
739
|
+
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
740
|
+
h(o.$slots, "legend", { legend: v.value }, void 0, !0)
|
|
741
|
+
], 512)
|
|
742
|
+
], 8, ["to"])) : d("", !0),
|
|
732
743
|
o.$slots.source ? (r(), c("div", {
|
|
733
|
-
key:
|
|
744
|
+
key: 6,
|
|
734
745
|
ref_key: "source",
|
|
735
746
|
ref: te,
|
|
736
747
|
dir: "auto"
|
|
737
748
|
}, [
|
|
738
749
|
h(o.$slots, "source", {}, void 0, !0)
|
|
739
750
|
], 512)) : d("", !0),
|
|
740
|
-
|
|
741
|
-
key:
|
|
751
|
+
le.value ? (r(), g(a(we), {
|
|
752
|
+
key: 7,
|
|
742
753
|
hideDetails: "",
|
|
743
754
|
config: {
|
|
744
755
|
open: O.value.showTable,
|
|
@@ -753,8 +764,8 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
753
764
|
}
|
|
754
765
|
}
|
|
755
766
|
}, {
|
|
756
|
-
content:
|
|
757
|
-
Y(a(
|
|
767
|
+
content: m(() => [
|
|
768
|
+
Y(a($e), {
|
|
758
769
|
colNames: B.value.colNames,
|
|
759
770
|
head: B.value.head,
|
|
760
771
|
body: B.value.body,
|
|
@@ -762,24 +773,24 @@ const pt = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["i
|
|
|
762
773
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
763
774
|
onClose: l[15] || (l[15] = (t) => O.value.showTable = !1)
|
|
764
775
|
}, {
|
|
765
|
-
th:
|
|
776
|
+
th: m(({ th: t }) => [
|
|
766
777
|
s("div", {
|
|
767
778
|
innerHTML: t,
|
|
768
779
|
style: { display: "flex", "align-items": "center" }
|
|
769
|
-
}, null, 8,
|
|
780
|
+
}, null, 8, Zt)
|
|
770
781
|
]),
|
|
771
|
-
td:
|
|
772
|
-
|
|
782
|
+
td: m(({ td: t }) => [
|
|
783
|
+
Ke(E(t.name || t), 1)
|
|
773
784
|
]),
|
|
774
785
|
_: 1
|
|
775
786
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
776
787
|
]),
|
|
777
788
|
_: 1
|
|
778
789
|
}, 8, ["config"])) : d("", !0),
|
|
779
|
-
a(W) ? (r(),
|
|
780
|
-
], 46,
|
|
790
|
+
a(W) ? (r(), g(dt, { key: 8 })) : d("", !0)
|
|
791
|
+
], 46, mt));
|
|
781
792
|
}
|
|
782
|
-
},
|
|
793
|
+
}, ho = /* @__PURE__ */ gt(eo, [["__scopeId", "data-v-daa609e7"]]);
|
|
783
794
|
export {
|
|
784
|
-
|
|
795
|
+
ho as default
|
|
785
796
|
};
|