vue-data-ui 3.4.9 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
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
|
|
1
|
+
import { defineAsyncComponent as O, ref as u, computed as v, toRefs as nt, onMounted as st, watch as Ce, createElementBlock as f, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as we, createBlock as k, createCommentVNode as y, createElementVNode as n, withCtx as i, renderSlot as c, normalizeProps as C, guardReactiveProps as w, createVNode as G, createSlots as xe, Fragment as $e, renderList as Ae, toDisplayString as U, Teleport as rt, resolveDynamicComponent as ut, mergeProps as it, createTextVNode as _e, 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 A, i as ft, a8 as gt, P as pt, Q as mt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as kt, u as bt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ct, a as Oe } from "./useNestedProp-
|
|
4
|
+
import { u as Ct, a as Oe } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as wt, B as xt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as $t } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as At } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import Mt from "./img-BecE5qXd.js";
|
|
11
|
-
import Pt from "./Title-
|
|
11
|
+
import Pt from "./Title-isbiM8i8.js";
|
|
12
12
|
import { t as Ot } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import Nt from "./Legend-G6GMcdAc.js";
|
|
14
14
|
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Lt = ["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"], Qt = ["fill"], Yt = ["transform"], Jt = ["stroke"], Zt = ["fill"], eo = ["transform"], to = ["stroke"], oo = ["fill"], lo = ["d", "stroke", "stroke-width", "fill"], ao = ["x1", "y1", "x2", "y2", "stroke"],
|
|
15
|
+
const Lt = ["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"], Qt = ["fill"], Yt = ["transform"], Jt = ["stroke"], Zt = ["fill"], eo = ["transform"], to = ["stroke"], oo = ["fill"], lo = ["d", "stroke", "stroke-width", "fill"], ao = ["x1", "y1", "x2", "y2", "stroke"], no = ["cx", "cy", "fill", "stroke"], so = ["cx", "cy", "fill", "stroke"], ro = ["x", "y", "fill", "font-weight"], uo = ["x", "y", "fill"], io = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, co = ["id"], vo = ["onClick"], yo = ["innerHTML"], ho = {
|
|
@@ -32,13 +32,13 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ne, { expose: Se }) {
|
|
35
|
-
const
|
|
36
|
-
...
|
|
35
|
+
const N = O(() => import("./BaseIcon-BmMbm4d0.js")), Le = O(() => import("./vue-ui-accordion-CqhVCfc2.js")), Ie = O(() => import("./DataTable-BT7VF2ua.js")), De = O(() => import("./PenAndPaper-SZQIAgkg.js")), Fe = O(() => import("./UserOptions-CGnQt6Fd.js")), Be = O(() => import("./PackageVersion-DQvyATVa.js")), Ee = O(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_mood_radar: Re } = Ct(), _ = Ne, b = u(dt()), x = u(null), g = u(null), oe = u(null), Ve = u(0), Ue = u(0), le = u(0), ae = u(null), ne = u(null), I = u(null), W = u(null), se = u(null), re = u(!1), D = u(null), X = u(null), ue = v(() => !!_.dataset && Object.keys(_.dataset).length), e = u(Y()), { loading: K, FINAL_DATASET: T } = wt({
|
|
36
|
+
...nt(_),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: Y,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await Te(),
|
|
41
|
+
await Te(), M.value.showTable = e.value.table.show;
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: {
|
|
@@ -89,54 +89,54 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
89
89
|
}
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
st(() => {
|
|
93
93
|
re.value = !0, ie();
|
|
94
94
|
});
|
|
95
|
-
const We =
|
|
95
|
+
const We = v(() => e.value.debug);
|
|
96
96
|
function ie() {
|
|
97
|
-
if (vt(
|
|
97
|
+
if (vt(_.dataset) && Me({
|
|
98
98
|
componentName: "VueUiMoodRadar",
|
|
99
99
|
type: "dataset",
|
|
100
100
|
debug: We.value
|
|
101
101
|
}), e.value.responsive) {
|
|
102
102
|
const t = kt(() => {
|
|
103
103
|
const { width: l, height: o } = bt({
|
|
104
|
-
chart:
|
|
104
|
+
chart: x.value,
|
|
105
105
|
title: e.value.style.chart.title.text ? ae.value : null,
|
|
106
|
-
legend: e.value.style.chart.legend.show ?
|
|
106
|
+
legend: e.value.style.chart.legend.show ? ne.value : null,
|
|
107
107
|
noTitle: oe.value,
|
|
108
|
-
source:
|
|
108
|
+
source: se.value
|
|
109
109
|
});
|
|
110
110
|
requestAnimationFrame(() => {
|
|
111
|
-
|
|
111
|
+
s.value.width = l, s.value.height = o - 12;
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
|
-
|
|
114
|
+
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(t), W.value = x.value.parentNode, I.value.observe(W.value);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
const { userOptionsVisible: q, setUserOptionsVisibility: de, keepUserOptionState: ce } = _t({ config: e.value }), { svgRef: Q } = Tt({ config: e.value.style.chart.title });
|
|
118
118
|
function Y() {
|
|
119
119
|
const t = Oe({
|
|
120
|
-
userConfig:
|
|
120
|
+
userConfig: _.config,
|
|
121
121
|
defaultConfig: Re
|
|
122
122
|
});
|
|
123
123
|
return t.theme ? {
|
|
124
124
|
...Oe({
|
|
125
|
-
userConfig: Ot.vue_ui_mood_radar[t.theme] ||
|
|
125
|
+
userConfig: Ot.vue_ui_mood_radar[t.theme] || _.config,
|
|
126
126
|
defaultConfig: t
|
|
127
127
|
})
|
|
128
128
|
} : t;
|
|
129
129
|
}
|
|
130
|
-
Ce(() =>
|
|
131
|
-
e.value = Y(), q.value = !e.value.userOptions.showOnChartHover, ie(), Ve.value += 1, Ue.value += 1, le.value += 1,
|
|
130
|
+
Ce(() => _.config, (t) => {
|
|
131
|
+
e.value = Y(), q.value = !e.value.userOptions.showOnChartHover, ie(), Ve.value += 1, Ue.value += 1, le.value += 1, M.value.showTable = e.value.table.show;
|
|
132
132
|
}, { deep: !0 });
|
|
133
|
-
const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage:
|
|
133
|
+
const { isPrinting: ve, isImaging: ye, generatePdf: he, generateImage: fe } = $t({
|
|
134
134
|
elementId: b.value,
|
|
135
135
|
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
136
136
|
options: e.value.userOptions.print
|
|
137
|
-
}), je =
|
|
137
|
+
}), je = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = u({
|
|
138
138
|
showTable: e.value.table.show
|
|
139
|
-
}),
|
|
139
|
+
}), s = u({
|
|
140
140
|
height: 256,
|
|
141
141
|
width: 256
|
|
142
142
|
}), ze = {
|
|
@@ -145,40 +145,40 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
145
145
|
3: { x: 185, y: 204 },
|
|
146
146
|
2: { x: 70, y: 204 },
|
|
147
147
|
1: { x: 38.5, y: 98.5 }
|
|
148
|
-
}, Ge =
|
|
148
|
+
}, Ge = v(() => {
|
|
149
149
|
const t = {};
|
|
150
150
|
return Z.value.forEach((l) => {
|
|
151
151
|
t[l.key] = { x: l.x, y: l.y };
|
|
152
152
|
}), t;
|
|
153
153
|
});
|
|
154
|
-
function
|
|
154
|
+
function F(t) {
|
|
155
155
|
const l = ze[t], o = Ge.value[t] || l;
|
|
156
156
|
return `translate(${o.x - l.x}, ${o.y - l.y})`;
|
|
157
157
|
}
|
|
158
|
-
const J =
|
|
159
|
-
plot: { x:
|
|
160
|
-
radius: Math.min(
|
|
158
|
+
const J = v(() => yt({
|
|
159
|
+
plot: { x: s.value.width / 2, y: s.value.height / 2 },
|
|
160
|
+
radius: Math.min(s.value.height, s.value.width) * 0.35,
|
|
161
161
|
sides: 5,
|
|
162
162
|
rotation: 11
|
|
163
163
|
}));
|
|
164
|
-
function He({ centerX: t, centerY: l, apexX: o, apexY:
|
|
164
|
+
function He({ centerX: t, centerY: l, apexX: o, apexY: d, proportion: p, key: m, value: at }) {
|
|
165
165
|
return {
|
|
166
166
|
x: t + (o - t) * p,
|
|
167
|
-
y: l + (
|
|
167
|
+
y: l + (d - l) * p,
|
|
168
168
|
key: m,
|
|
169
169
|
value: at
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
const Xe =
|
|
173
|
-
const o = typeof
|
|
172
|
+
const Xe = v(() => Math.max(...Object.values(T.value).map((t) => isNaN(t) ? 0 : t))), P = v(() => Object.values(T.value).reduce((t, l) => (isNaN(t) ? 0 : t) + (isNaN(l) ? 0 : l), 0)), h = v(() => Object.keys(T.value).map((t, l) => {
|
|
173
|
+
const o = typeof T.value[t] != "number" || isNaN(T.value[t]) ? 0 : T.value[t];
|
|
174
174
|
return {
|
|
175
175
|
index: l,
|
|
176
176
|
key: t,
|
|
177
177
|
value: o,
|
|
178
|
-
proportion: o /
|
|
178
|
+
proportion: o / P.value,
|
|
179
179
|
color: e.value.style.chart.layout.smileys.colors[t]
|
|
180
180
|
};
|
|
181
|
-
}).sort((t, l) => l.key - t.key)),
|
|
181
|
+
}).sort((t, l) => l.key - t.key)), ge = v(() => h.value.map((t, l) => ({
|
|
182
182
|
...t,
|
|
183
183
|
display: `${Pe(
|
|
184
184
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
@@ -194,16 +194,16 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
194
194
|
s: "%",
|
|
195
195
|
r: e.value.style.chart.legend.roundingPercentage
|
|
196
196
|
})})`}`
|
|
197
|
-
}))), Z =
|
|
198
|
-
[null, void 0].includes(
|
|
197
|
+
}))), Z = v(() => (["1", "2", "3", "4", "5"].forEach((t) => {
|
|
198
|
+
[null, void 0].includes(T.value[t]) && Me({
|
|
199
199
|
componentName: "VueUiMoodRadar",
|
|
200
200
|
type: "datasetAttribute",
|
|
201
201
|
property: t
|
|
202
202
|
});
|
|
203
203
|
}), J.value.coordinates.map((t, l) => {
|
|
204
204
|
const o = He({
|
|
205
|
-
centerX:
|
|
206
|
-
centerY:
|
|
205
|
+
centerX: s.value.width / 2,
|
|
206
|
+
centerY: s.value.height / 2,
|
|
207
207
|
apexX: t.x,
|
|
208
208
|
apexY: t.y,
|
|
209
209
|
proportion: h.value[l].value / Xe.value,
|
|
@@ -215,7 +215,7 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
215
215
|
plots: o,
|
|
216
216
|
key: h.value[l].key
|
|
217
217
|
};
|
|
218
|
-
}))), Ke =
|
|
218
|
+
}))), Ke = v(() => ({
|
|
219
219
|
cy: "mood-radar-legend",
|
|
220
220
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
221
221
|
color: e.value.style.chart.legend.color,
|
|
@@ -224,23 +224,23 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
224
224
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
225
225
|
}));
|
|
226
226
|
function qe(t) {
|
|
227
|
-
t ===
|
|
227
|
+
t === g.value ? g.value = null : (g.value = t, S(t));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
229
|
+
function B(t) {
|
|
230
|
+
g.value = t;
|
|
231
231
|
const l = h.value.find((o) => o.key === t);
|
|
232
232
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.index });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
function E(t) {
|
|
235
|
+
g.value = null;
|
|
236
236
|
const l = h.value.find((o) => o.key === t);
|
|
237
237
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.index });
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function S(t) {
|
|
240
240
|
const l = h.value.find((o) => o.key === t);
|
|
241
241
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.index });
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const $ = v(() => {
|
|
244
244
|
const t = h.value.map((o) => ({
|
|
245
245
|
name: o.key,
|
|
246
246
|
color: o.color
|
|
@@ -249,24 +249,24 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
249
249
|
});
|
|
250
250
|
function ee(t = null) {
|
|
251
251
|
Te(() => {
|
|
252
|
-
const l =
|
|
252
|
+
const l = $.value.head.map((p, m) => [[
|
|
253
253
|
p.name
|
|
254
|
-
], [
|
|
255
|
-
t ? t(
|
|
254
|
+
], [$.value.body[m]], [isNaN($.value.body[m] / P.value) ? "-" : $.value.body[m] / P.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), d = pt(o);
|
|
255
|
+
t ? t(d) : mt({ csvContent: d, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const j = v(() => {
|
|
259
259
|
const t = [
|
|
260
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(
|
|
261
|
+
Number(P.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
262
262
|
"100%"
|
|
263
|
-
], l =
|
|
263
|
+
], l = $.value.head.map((p, m) => [
|
|
264
264
|
{
|
|
265
265
|
color: p.color,
|
|
266
266
|
name: p.name
|
|
267
267
|
},
|
|
268
|
-
|
|
269
|
-
isNaN(
|
|
268
|
+
$.value.body[m].toFixed(e.value.table.td.roundingValue),
|
|
269
|
+
isNaN($.value.body[m] / P.value) ? "-" : ($.value.body[m] / P.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
270
270
|
]), o = {
|
|
271
271
|
th: {
|
|
272
272
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -279,7 +279,7 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
279
279
|
outline: e.value.table.td.outline
|
|
280
280
|
},
|
|
281
281
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
282
|
-
},
|
|
282
|
+
}, d = [
|
|
283
283
|
e.value.table.columnNames.series,
|
|
284
284
|
e.value.table.columnNames.value,
|
|
285
285
|
e.value.table.columnNames.percentage
|
|
@@ -288,37 +288,37 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
288
288
|
head: t,
|
|
289
289
|
body: l,
|
|
290
290
|
config: o,
|
|
291
|
-
colNames:
|
|
291
|
+
colNames: d
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
294
|
function Qe() {
|
|
295
295
|
return h.value;
|
|
296
296
|
}
|
|
297
297
|
function pe() {
|
|
298
|
-
|
|
298
|
+
M.value.showTable = !M.value.showTable;
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const L = u(!1);
|
|
301
301
|
function me(t) {
|
|
302
|
-
|
|
302
|
+
L.value = t;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const z = u(!1);
|
|
305
305
|
function te() {
|
|
306
|
-
|
|
306
|
+
z.value = !z.value;
|
|
307
307
|
}
|
|
308
308
|
async function Ye({ scale: t = 2 } = {}) {
|
|
309
|
-
if (!
|
|
310
|
-
const { width: l, height: o } =
|
|
309
|
+
if (!x.value) return;
|
|
310
|
+
const { width: l, height: o } = x.value.getBoundingClientRect(), d = l / o, { imageUri: p, base64: m } = await Mt({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
311
311
|
return {
|
|
312
312
|
imageUri: p,
|
|
313
313
|
base64: m,
|
|
314
314
|
title: e.value.style.chart.title.text,
|
|
315
315
|
width: l,
|
|
316
316
|
height: o,
|
|
317
|
-
aspectRatio:
|
|
317
|
+
aspectRatio: d
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
const
|
|
321
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
320
|
+
const R = v(() => {
|
|
321
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = M.value.showTable;
|
|
322
322
|
return {
|
|
323
323
|
component: t ? Ee : Le,
|
|
324
324
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -327,8 +327,8 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
327
327
|
color: e.value.table.th.color,
|
|
328
328
|
headerColor: e.value.table.th.color,
|
|
329
329
|
headerBg: e.value.table.th.backgroundColor,
|
|
330
|
-
isFullscreen:
|
|
331
|
-
fullscreenParent:
|
|
330
|
+
isFullscreen: L.value,
|
|
331
|
+
fullscreenParent: x.value,
|
|
332
332
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
333
333
|
} : {
|
|
334
334
|
hideDetails: !0,
|
|
@@ -347,17 +347,17 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
349
|
});
|
|
350
|
-
Ce(() =>
|
|
351
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
350
|
+
Ce(() => M.value.showTable, (t) => {
|
|
351
|
+
e.value.table.show || (t && e.value.table.useDialog && D.value ? D.value.open() : "close" in D.value && D.value.close());
|
|
352
352
|
});
|
|
353
353
|
function ke() {
|
|
354
|
-
|
|
354
|
+
M.value.showTable = !1, X.value && X.value.setTableIconState(!1);
|
|
355
355
|
}
|
|
356
|
-
const Je =
|
|
356
|
+
const Je = v(() => ge.value.map((t) => ({
|
|
357
357
|
...t,
|
|
358
358
|
name: t.display,
|
|
359
359
|
shape: "circle"
|
|
360
|
-
}))), Ze =
|
|
360
|
+
}))), Ze = v(() => e.value.style.chart.backgroundColor), et = v(() => e.value.style.chart.legend), tt = v(() => e.value.style.chart.title), { exportSvg: ot, getSvg: lt } = At({
|
|
361
361
|
svg: Q,
|
|
362
362
|
title: tt,
|
|
363
363
|
legend: et,
|
|
@@ -366,8 +366,8 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
366
366
|
});
|
|
367
367
|
async function be({ isCb: t }) {
|
|
368
368
|
if (t) {
|
|
369
|
-
const { blob: l, url: o, text:
|
|
370
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text:
|
|
369
|
+
const { blob: l, url: o, text: d, dataUrl: p } = await lt();
|
|
370
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: d, dataUrl: p });
|
|
371
371
|
} else
|
|
372
372
|
ot();
|
|
373
373
|
}
|
|
@@ -376,17 +376,17 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
376
376
|
getImage: Ye,
|
|
377
377
|
generatePdf: he,
|
|
378
378
|
generateCsv: ee,
|
|
379
|
-
generateImage:
|
|
379
|
+
generateImage: fe,
|
|
380
380
|
generateSvg: be,
|
|
381
381
|
toggleTable: pe,
|
|
382
382
|
toggleAnnotator: te,
|
|
383
383
|
toggleFullscreen: me
|
|
384
|
-
}), (t, l) => (r(),
|
|
385
|
-
class: we(`vue-data-ui-component vue-ui-mood-radar ${
|
|
384
|
+
}), (t, l) => (r(), f("div", {
|
|
385
|
+
class: we(`vue-data-ui-component vue-ui-mood-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
386
386
|
ref_key: "moodRadarChart",
|
|
387
|
-
ref:
|
|
387
|
+
ref: x,
|
|
388
388
|
id: `${b.value}`,
|
|
389
|
-
style:
|
|
389
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
390
390
|
onMouseenter: l[16] || (l[16] = () => a(de)(!0)),
|
|
391
391
|
onMouseleave: l[17] || (l[17] = () => a(de)(!1))
|
|
392
392
|
}, [
|
|
@@ -395,23 +395,43 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
395
395
|
svgRef: a(Q),
|
|
396
396
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
397
|
color: e.value.style.chart.color,
|
|
398
|
-
active:
|
|
398
|
+
active: z.value,
|
|
399
399
|
onClose: te
|
|
400
|
-
},
|
|
401
|
-
|
|
400
|
+
}, {
|
|
401
|
+
"annotator-action-close": i(() => [
|
|
402
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
403
|
+
]),
|
|
404
|
+
"annotator-action-color": i(({ color: o }) => [
|
|
405
|
+
c(t.$slots, "annotator-action-color", C(w({ color: o })), void 0, !0)
|
|
406
|
+
]),
|
|
407
|
+
"annotator-action-draw": i(({ mode: o }) => [
|
|
408
|
+
c(t.$slots, "annotator-action-draw", C(w({ mode: o })), void 0, !0)
|
|
409
|
+
]),
|
|
410
|
+
"annotator-action-undo": i(({ disabled: o }) => [
|
|
411
|
+
c(t.$slots, "annotator-action-undo", C(w({ disabled: o })), void 0, !0)
|
|
412
|
+
]),
|
|
413
|
+
"annotator-action-redo": i(({ disabled: o }) => [
|
|
414
|
+
c(t.$slots, "annotator-action-redo", C(w({ disabled: o })), void 0, !0)
|
|
415
|
+
]),
|
|
416
|
+
"annotator-action-delete": i(({ disabled: o }) => [
|
|
417
|
+
c(t.$slots, "annotator-action-delete", C(w({ disabled: o })), void 0, !0)
|
|
418
|
+
]),
|
|
419
|
+
_: 3
|
|
420
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
421
|
+
je.value ? (r(), f("div", {
|
|
402
422
|
key: 1,
|
|
403
423
|
ref_key: "noTitle",
|
|
404
424
|
ref: oe,
|
|
405
425
|
class: "vue-data-ui-no-title-space",
|
|
406
426
|
style: "height:36px; width: 100%;background:transparent"
|
|
407
|
-
}, null, 512)) :
|
|
408
|
-
e.value.style.chart.title.text ? (r(),
|
|
427
|
+
}, null, 512)) : y("", !0),
|
|
428
|
+
e.value.style.chart.title.text ? (r(), f("div", {
|
|
409
429
|
key: 2,
|
|
410
430
|
ref_key: "chartTitle",
|
|
411
431
|
ref: ae,
|
|
412
432
|
style: "width:100%;background:transparent"
|
|
413
433
|
}, [
|
|
414
|
-
|
|
434
|
+
G(Pt, {
|
|
415
435
|
config: {
|
|
416
436
|
title: {
|
|
417
437
|
cy: "mood-radar-title",
|
|
@@ -423,8 +443,8 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
423
443
|
}
|
|
424
444
|
}
|
|
425
445
|
}, null, 8, ["config"])
|
|
426
|
-
], 512)) :
|
|
427
|
-
|
|
446
|
+
], 512)) : y("", !0),
|
|
447
|
+
n("div", {
|
|
428
448
|
id: `legend-top-${b.value}`
|
|
429
449
|
}, null, 8, It),
|
|
430
450
|
e.value.userOptions.show && ue.value && (a(ce) || a(q)) ? (r(), k(a(Fe), {
|
|
@@ -442,106 +462,106 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
442
462
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
443
463
|
hasTable: e.value.userOptions.buttons.table,
|
|
444
464
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
445
|
-
isFullscreen:
|
|
465
|
+
isFullscreen: L.value,
|
|
446
466
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
447
|
-
chartElement:
|
|
467
|
+
chartElement: x.value,
|
|
448
468
|
position: e.value.userOptions.position,
|
|
449
469
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
450
|
-
isAnnotation:
|
|
470
|
+
isAnnotation: z.value,
|
|
451
471
|
callbacks: e.value.userOptions.callbacks,
|
|
452
472
|
printScale: e.value.userOptions.print.scale,
|
|
453
473
|
tableDialog: e.value.table.useDialog,
|
|
454
474
|
onToggleFullscreen: me,
|
|
455
475
|
onGeneratePdf: a(he),
|
|
456
476
|
onGenerateCsv: ee,
|
|
457
|
-
onGenerateImage: a(
|
|
477
|
+
onGenerateImage: a(fe),
|
|
458
478
|
onGenerateSvg: be,
|
|
459
479
|
onToggleTable: pe,
|
|
460
480
|
onToggleAnnotator: te,
|
|
461
|
-
style:
|
|
481
|
+
style: V({
|
|
462
482
|
visibility: a(ce) ? a(q) ? "visible" : "hidden" : "visible"
|
|
463
483
|
})
|
|
464
484
|
}, xe({ _: 2 }, [
|
|
465
485
|
t.$slots.menuIcon ? {
|
|
466
486
|
name: "menuIcon",
|
|
467
|
-
fn:
|
|
468
|
-
|
|
487
|
+
fn: i(({ isOpen: o, color: d }) => [
|
|
488
|
+
c(t.$slots, "menuIcon", C(w({ isOpen: o, color: d })), void 0, !0)
|
|
469
489
|
]),
|
|
470
490
|
key: "0"
|
|
471
491
|
} : void 0,
|
|
472
492
|
t.$slots.optionPdf ? {
|
|
473
493
|
name: "optionPdf",
|
|
474
|
-
fn:
|
|
475
|
-
|
|
494
|
+
fn: i(() => [
|
|
495
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
476
496
|
]),
|
|
477
497
|
key: "1"
|
|
478
498
|
} : void 0,
|
|
479
499
|
t.$slots.optionCsv ? {
|
|
480
500
|
name: "optionCsv",
|
|
481
|
-
fn:
|
|
482
|
-
|
|
501
|
+
fn: i(() => [
|
|
502
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
483
503
|
]),
|
|
484
504
|
key: "2"
|
|
485
505
|
} : void 0,
|
|
486
506
|
t.$slots.optionImg ? {
|
|
487
507
|
name: "optionImg",
|
|
488
|
-
fn:
|
|
489
|
-
|
|
508
|
+
fn: i(() => [
|
|
509
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
490
510
|
]),
|
|
491
511
|
key: "3"
|
|
492
512
|
} : void 0,
|
|
493
513
|
t.$slots.optionSvg ? {
|
|
494
514
|
name: "optionSvg",
|
|
495
|
-
fn:
|
|
496
|
-
|
|
515
|
+
fn: i(() => [
|
|
516
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
497
517
|
]),
|
|
498
518
|
key: "4"
|
|
499
519
|
} : void 0,
|
|
500
520
|
t.$slots.optionTable ? {
|
|
501
521
|
name: "optionTable",
|
|
502
|
-
fn:
|
|
503
|
-
|
|
522
|
+
fn: i(() => [
|
|
523
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
504
524
|
]),
|
|
505
525
|
key: "5"
|
|
506
526
|
} : void 0,
|
|
507
527
|
t.$slots.optionFullscreen ? {
|
|
508
528
|
name: "optionFullscreen",
|
|
509
|
-
fn:
|
|
510
|
-
|
|
529
|
+
fn: i(({ toggleFullscreen: o, isFullscreen: d }) => [
|
|
530
|
+
c(t.$slots, "optionFullscreen", C(w({ toggleFullscreen: o, isFullscreen: d })), void 0, !0)
|
|
511
531
|
]),
|
|
512
532
|
key: "6"
|
|
513
533
|
} : void 0,
|
|
514
534
|
t.$slots.optionAnnotator ? {
|
|
515
535
|
name: "optionAnnotator",
|
|
516
|
-
fn:
|
|
517
|
-
|
|
536
|
+
fn: i(({ toggleAnnotator: o, isAnnotator: d }) => [
|
|
537
|
+
c(t.$slots, "optionAnnotator", C(w({ toggleAnnotator: o, isAnnotator: d })), void 0, !0)
|
|
518
538
|
]),
|
|
519
539
|
key: "7"
|
|
520
540
|
} : void 0
|
|
521
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
522
|
-
(r(),
|
|
541
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
542
|
+
(r(), f("svg", {
|
|
523
543
|
ref_key: "svgRef",
|
|
524
544
|
ref: Q,
|
|
525
545
|
xmlns: a(ht),
|
|
526
|
-
viewBox: `0 0 ${
|
|
527
|
-
class: we({ "vue-data-ui-fullscreen--on":
|
|
528
|
-
style:
|
|
546
|
+
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
547
|
+
class: we({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
548
|
+
style: V(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
529
549
|
}, [
|
|
530
|
-
|
|
531
|
-
t.$slots["chart-background"] ? (r(),
|
|
550
|
+
G(a(Be)),
|
|
551
|
+
t.$slots["chart-background"] ? (r(), f("foreignObject", {
|
|
532
552
|
key: 0,
|
|
533
553
|
x: 0,
|
|
534
554
|
y: 0,
|
|
535
|
-
width:
|
|
536
|
-
height:
|
|
555
|
+
width: s.value.width,
|
|
556
|
+
height: s.value.height,
|
|
537
557
|
style: {
|
|
538
558
|
pointerEvents: "none"
|
|
539
559
|
}
|
|
540
560
|
}, [
|
|
541
|
-
|
|
542
|
-
], 8, Ft)) :
|
|
543
|
-
|
|
544
|
-
|
|
561
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
562
|
+
], 8, Ft)) : y("", !0),
|
|
563
|
+
n("defs", null, [
|
|
564
|
+
n("radialGradient", {
|
|
545
565
|
cx: "50%",
|
|
546
566
|
cy: "50%",
|
|
547
567
|
r: "50%",
|
|
@@ -549,25 +569,25 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
549
569
|
fy: "50%",
|
|
550
570
|
id: `mood_radar_gradient_${b.value}`
|
|
551
571
|
}, [
|
|
552
|
-
|
|
572
|
+
n("stop", {
|
|
553
573
|
offset: "0%",
|
|
554
|
-
"stop-color": a(
|
|
574
|
+
"stop-color": a(A)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
555
575
|
}, null, 8, Et),
|
|
556
|
-
|
|
576
|
+
n("stop", {
|
|
557
577
|
offset: "100%",
|
|
558
|
-
"stop-color": a(
|
|
578
|
+
"stop-color": a(A)(a(ft)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
559
579
|
}, null, 8, Rt)
|
|
560
580
|
], 8, Bt)
|
|
561
581
|
]),
|
|
562
|
-
(r(!0),
|
|
563
|
-
x1:
|
|
564
|
-
y1:
|
|
582
|
+
(r(!0), f($e, null, Ae(J.value.coordinates, (o) => (r(), f("line", {
|
|
583
|
+
x1: s.value.width / 2,
|
|
584
|
+
y1: s.value.height / 2,
|
|
565
585
|
x2: o.x,
|
|
566
586
|
y2: o.y,
|
|
567
587
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
568
588
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
569
589
|
}, null, 8, Vt))), 256)),
|
|
570
|
-
|
|
590
|
+
n("path", {
|
|
571
591
|
d: J.value.path,
|
|
572
592
|
fill: "none",
|
|
573
593
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
@@ -575,154 +595,154 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
575
595
|
"stroke-linejoin": "round",
|
|
576
596
|
"stroke-linecap": "round"
|
|
577
597
|
}, null, 8, Ut),
|
|
578
|
-
|
|
579
|
-
transform:
|
|
598
|
+
n("g", {
|
|
599
|
+
transform: F("5")
|
|
580
600
|
}, [
|
|
581
|
-
|
|
601
|
+
n("path", {
|
|
582
602
|
fill: "none",
|
|
583
603
|
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
584
604
|
"stroke-width": "1",
|
|
585
605
|
"stroke-linecap": "round",
|
|
586
606
|
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"
|
|
587
607
|
}, null, 8, jt),
|
|
588
|
-
|
|
608
|
+
n("circle", {
|
|
589
609
|
class: "vue-ui-mood-radar-trap",
|
|
590
610
|
cx: "128",
|
|
591
611
|
cy: "25",
|
|
592
612
|
r: "20",
|
|
593
|
-
fill:
|
|
594
|
-
onMouseenter: l[0] || (l[0] = (o) =>
|
|
595
|
-
onMouseleave: l[1] || (l[1] = (o) =>
|
|
596
|
-
onClick: l[2] || (l[2] = (o) =>
|
|
613
|
+
fill: g.value === "5" ? a(A)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
614
|
+
onMouseenter: l[0] || (l[0] = (o) => B("5")),
|
|
615
|
+
onMouseleave: l[1] || (l[1] = (o) => E("5")),
|
|
616
|
+
onClick: l[2] || (l[2] = (o) => S("5"))
|
|
597
617
|
}, null, 40, zt)
|
|
598
618
|
], 8, Wt),
|
|
599
|
-
|
|
600
|
-
transform:
|
|
619
|
+
n("g", {
|
|
620
|
+
transform: F("4")
|
|
601
621
|
}, [
|
|
602
|
-
|
|
622
|
+
n("path", {
|
|
603
623
|
fill: "none",
|
|
604
624
|
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
605
625
|
"stroke-width": "1",
|
|
606
626
|
"stroke-linecap": "round",
|
|
607
627
|
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"
|
|
608
628
|
}, null, 8, Ht),
|
|
609
|
-
|
|
629
|
+
n("circle", {
|
|
610
630
|
class: "vue-ui-mood-radar-trap",
|
|
611
631
|
cx: "227",
|
|
612
632
|
cy: "95.5",
|
|
613
633
|
r: "20",
|
|
614
|
-
fill:
|
|
615
|
-
onMouseenter: l[3] || (l[3] = (o) =>
|
|
616
|
-
onMouseleave: l[4] || (l[4] = (o) =>
|
|
617
|
-
onClick: l[5] || (l[5] = (o) =>
|
|
634
|
+
fill: g.value === "4" ? a(A)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
635
|
+
onMouseenter: l[3] || (l[3] = (o) => B("4")),
|
|
636
|
+
onMouseleave: l[4] || (l[4] = (o) => E("4")),
|
|
637
|
+
onClick: l[5] || (l[5] = (o) => S("4"))
|
|
618
638
|
}, null, 40, Xt)
|
|
619
639
|
], 8, Gt),
|
|
620
|
-
|
|
621
|
-
transform:
|
|
640
|
+
n("g", {
|
|
641
|
+
transform: F("3")
|
|
622
642
|
}, [
|
|
623
|
-
|
|
643
|
+
n("path", {
|
|
624
644
|
fill: "none",
|
|
625
645
|
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
626
646
|
"stroke-width": "1",
|
|
627
647
|
"stroke-linecap": "round",
|
|
628
648
|
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"
|
|
629
649
|
}, null, 8, qt),
|
|
630
|
-
|
|
650
|
+
n("circle", {
|
|
631
651
|
class: "vue-ui-mood-radar-trap",
|
|
632
652
|
cx: "190",
|
|
633
653
|
cy: "213.5",
|
|
634
654
|
r: "20",
|
|
635
|
-
fill:
|
|
636
|
-
onMouseenter: l[6] || (l[6] = (o) =>
|
|
637
|
-
onMouseleave: l[7] || (l[7] = (o) =>
|
|
638
|
-
onClick: l[8] || (l[8] = (o) =>
|
|
655
|
+
fill: g.value === "3" ? a(A)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
656
|
+
onMouseenter: l[6] || (l[6] = (o) => B("3")),
|
|
657
|
+
onMouseleave: l[7] || (l[7] = (o) => E("3")),
|
|
658
|
+
onClick: l[8] || (l[8] = (o) => S("3"))
|
|
639
659
|
}, null, 40, Qt)
|
|
640
660
|
], 8, Kt),
|
|
641
|
-
|
|
642
|
-
transform:
|
|
661
|
+
n("g", {
|
|
662
|
+
transform: F("2")
|
|
643
663
|
}, [
|
|
644
|
-
|
|
664
|
+
n("path", {
|
|
645
665
|
fill: "none",
|
|
646
666
|
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
647
667
|
"stroke-width": "1",
|
|
648
668
|
"stroke-linecap": "round",
|
|
649
669
|
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"
|
|
650
670
|
}, null, 8, Jt),
|
|
651
|
-
|
|
671
|
+
n("circle", {
|
|
652
672
|
class: "vue-ui-mood-radar-trap",
|
|
653
673
|
cx: "65",
|
|
654
674
|
cy: "213.5",
|
|
655
675
|
r: "20",
|
|
656
|
-
fill:
|
|
657
|
-
onMouseenter: l[9] || (l[9] = (o) =>
|
|
658
|
-
onMouseleave: l[10] || (l[10] = (o) =>
|
|
659
|
-
onClick: l[11] || (l[11] = (o) =>
|
|
676
|
+
fill: g.value === "2" ? a(A)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
677
|
+
onMouseenter: l[9] || (l[9] = (o) => B("2")),
|
|
678
|
+
onMouseleave: l[10] || (l[10] = (o) => E("2")),
|
|
679
|
+
onClick: l[11] || (l[11] = (o) => S("2"))
|
|
660
680
|
}, null, 40, Zt)
|
|
661
681
|
], 8, Yt),
|
|
662
|
-
|
|
663
|
-
transform:
|
|
682
|
+
n("g", {
|
|
683
|
+
transform: F("1")
|
|
664
684
|
}, [
|
|
665
|
-
|
|
685
|
+
n("path", {
|
|
666
686
|
fill: "none",
|
|
667
687
|
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
668
688
|
"stroke-width": "1",
|
|
669
689
|
"stroke-linecap": "round",
|
|
670
690
|
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"
|
|
671
691
|
}, null, 8, to),
|
|
672
|
-
|
|
692
|
+
n("circle", {
|
|
673
693
|
class: "vue-ui-mood-radar-trap",
|
|
674
694
|
cx: "29",
|
|
675
695
|
cy: "95.5",
|
|
676
696
|
r: "20",
|
|
677
|
-
fill:
|
|
678
|
-
onMouseenter: l[12] || (l[12] = (o) =>
|
|
679
|
-
onMouseleave: l[13] || (l[13] = (o) =>
|
|
680
|
-
onClick: l[14] || (l[14] = (o) =>
|
|
697
|
+
fill: g.value === "1" ? a(A)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
698
|
+
onMouseenter: l[12] || (l[12] = (o) => B("1")),
|
|
699
|
+
onMouseleave: l[13] || (l[13] = (o) => E("1")),
|
|
700
|
+
onClick: l[14] || (l[14] = (o) => S("1"))
|
|
681
701
|
}, null, 40, oo)
|
|
682
702
|
], 8, eo),
|
|
683
|
-
|
|
684
|
-
d: a(
|
|
703
|
+
n("path", {
|
|
704
|
+
d: a(gt)(Z.value.map((o) => o.plots)),
|
|
685
705
|
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
686
706
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
687
707
|
"stroke-linecap": "round",
|
|
688
708
|
"stroke-linejoin": "round",
|
|
689
|
-
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${b.value})` : a(
|
|
709
|
+
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${b.value})` : a(A)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
690
710
|
}, null, 8, lo),
|
|
691
|
-
(r(!0),
|
|
711
|
+
(r(!0), f($e, null, Ae(Z.value.map((o) => o.plots), (o, d) => (r(), f("g", {
|
|
692
712
|
class: "vue-ui-mood-radar-trap",
|
|
693
|
-
style:
|
|
713
|
+
style: V(`opacity:${g.value == o.key ? "1" : "0"}`)
|
|
694
714
|
}, [
|
|
695
|
-
|
|
715
|
+
n("line", {
|
|
696
716
|
x1: o.x,
|
|
697
717
|
y1: o.y,
|
|
698
|
-
x2:
|
|
699
|
-
y2:
|
|
718
|
+
x2: s.value.width / 2,
|
|
719
|
+
y2: s.value.height / 2,
|
|
700
720
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
701
721
|
}, null, 8, ao),
|
|
702
|
-
|
|
722
|
+
n("circle", {
|
|
703
723
|
cx: o.x,
|
|
704
724
|
cy: o.y,
|
|
705
725
|
fill: e.value.style.chart.layout.smileys.colors[o.key],
|
|
706
726
|
r: "3",
|
|
707
727
|
stroke: e.value.style.chart.backgroundColor,
|
|
708
728
|
"stroke-width": 0.5
|
|
709
|
-
}, null, 8,
|
|
710
|
-
|
|
711
|
-
cx:
|
|
712
|
-
cy:
|
|
729
|
+
}, null, 8, no),
|
|
730
|
+
n("circle", {
|
|
731
|
+
cx: s.value.width / 2,
|
|
732
|
+
cy: s.value.height / 2,
|
|
713
733
|
fill: e.value.style.chart.layout.smileys.colors[o.key],
|
|
714
734
|
r: "3",
|
|
715
735
|
stroke: e.value.style.chart.backgroundColor,
|
|
716
736
|
"stroke-width": 0.5
|
|
717
|
-
}, null, 8,
|
|
718
|
-
|
|
719
|
-
x:
|
|
720
|
-
y: ["5", 5].includes(o.key) ?
|
|
737
|
+
}, null, 8, so),
|
|
738
|
+
n("text", {
|
|
739
|
+
x: s.value.width / 2,
|
|
740
|
+
y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.13 : s.value.height / 2 * 0.9375,
|
|
721
741
|
fill: e.value.style.chart.layout.dataLabel.color,
|
|
722
742
|
"font-size": "12",
|
|
723
743
|
"text-anchor": "middle",
|
|
724
744
|
"font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
725
|
-
},
|
|
745
|
+
}, U(a(Pe)(
|
|
726
746
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
727
747
|
o.value,
|
|
728
748
|
a(H)({
|
|
@@ -731,119 +751,119 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
731
751
|
s: e.value.style.chart.layout.dataLabel.suffix,
|
|
732
752
|
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
733
753
|
}),
|
|
734
|
-
{ datapoint: o, seriesIndex:
|
|
754
|
+
{ datapoint: o, seriesIndex: d }
|
|
735
755
|
)), 9, ro),
|
|
736
|
-
|
|
737
|
-
x:
|
|
738
|
-
y: ["5", 5].includes(o.key) ?
|
|
756
|
+
n("text", {
|
|
757
|
+
x: s.value.width / 2,
|
|
758
|
+
y: ["5", 5].includes(o.key) ? s.value.height / 2 * 1.273 : s.value.height / 2 * 0.7968,
|
|
739
759
|
fill: e.value.style.chart.layout.dataLabel.color,
|
|
740
760
|
"font-size": "12",
|
|
741
761
|
"text-anchor": "middle"
|
|
742
|
-
}, " (" +
|
|
743
|
-
v: o.value /
|
|
762
|
+
}, " (" + U(a(H)({
|
|
763
|
+
v: o.value / P.value * 100,
|
|
744
764
|
s: "%",
|
|
745
765
|
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
746
766
|
})) + ") ", 9, uo)
|
|
747
767
|
], 4))), 256)),
|
|
748
|
-
|
|
768
|
+
c(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
749
769
|
], 14, Dt)),
|
|
750
|
-
t.$slots.watermark ? (r(),
|
|
751
|
-
|
|
752
|
-
])) :
|
|
753
|
-
|
|
770
|
+
t.$slots.watermark ? (r(), f("div", io, [
|
|
771
|
+
c(t.$slots, "watermark", C(w({ isPrinting: a(ve) || a(ye) })), void 0, !0)
|
|
772
|
+
])) : y("", !0),
|
|
773
|
+
n("div", {
|
|
754
774
|
id: `legend-bottom-${b.value}`
|
|
755
775
|
}, null, 8, co),
|
|
756
776
|
re.value ? (r(), k(rt, {
|
|
757
777
|
key: 5,
|
|
758
778
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
759
779
|
}, [
|
|
760
|
-
|
|
780
|
+
n("div", {
|
|
761
781
|
ref_key: "chartLegend",
|
|
762
|
-
ref:
|
|
782
|
+
ref: ne
|
|
763
783
|
}, [
|
|
764
784
|
e.value.style.chart.legend.show ? (r(), k(Nt, {
|
|
765
|
-
legendSet:
|
|
785
|
+
legendSet: ge.value,
|
|
766
786
|
config: Ke.value,
|
|
767
787
|
key: `legend_${le.value}`,
|
|
768
788
|
style: { display: "flex", "row-gap": "6px" }
|
|
769
789
|
}, {
|
|
770
|
-
item:
|
|
771
|
-
|
|
790
|
+
item: i(({ legend: o, index: d }) => [
|
|
791
|
+
n("div", {
|
|
772
792
|
onClick: () => qe(o.key),
|
|
773
793
|
style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center", margin: "3px 0" }
|
|
774
794
|
}, [
|
|
775
|
-
o.key == 1 ? (r(), k(a(
|
|
795
|
+
o.key == 1 ? (r(), k(a(N), {
|
|
776
796
|
key: 0,
|
|
777
797
|
strokeWidth: 1,
|
|
778
798
|
name: "moodSad",
|
|
779
799
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
780
|
-
}, null, 8, ["stroke"])) :
|
|
781
|
-
o.key == 2 ? (r(), k(a(
|
|
800
|
+
}, null, 8, ["stroke"])) : y("", !0),
|
|
801
|
+
o.key == 2 ? (r(), k(a(N), {
|
|
782
802
|
key: 1,
|
|
783
803
|
strokeWidth: 1,
|
|
784
804
|
name: "moodFlat",
|
|
785
805
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
786
|
-
}, null, 8, ["stroke"])) :
|
|
787
|
-
o.key == 3 ? (r(), k(a(
|
|
806
|
+
}, null, 8, ["stroke"])) : y("", !0),
|
|
807
|
+
o.key == 3 ? (r(), k(a(N), {
|
|
788
808
|
key: 2,
|
|
789
809
|
strokeWidth: 1,
|
|
790
810
|
name: "moodNeutral",
|
|
791
811
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
792
|
-
}, null, 8, ["stroke"])) :
|
|
793
|
-
o.key == 4 ? (r(), k(a(
|
|
812
|
+
}, null, 8, ["stroke"])) : y("", !0),
|
|
813
|
+
o.key == 4 ? (r(), k(a(N), {
|
|
794
814
|
key: 3,
|
|
795
815
|
strokeWidth: 1,
|
|
796
816
|
name: "smiley",
|
|
797
817
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
798
|
-
}, null, 8, ["stroke"])) :
|
|
799
|
-
o.key == 5 ? (r(), k(a(
|
|
818
|
+
}, null, 8, ["stroke"])) : y("", !0),
|
|
819
|
+
o.key == 5 ? (r(), k(a(N), {
|
|
800
820
|
key: 4,
|
|
801
821
|
strokeWidth: 1,
|
|
802
822
|
name: "moodHappy",
|
|
803
823
|
stroke: e.value.style.chart.layout.smileys.colors[o.key]
|
|
804
|
-
}, null, 8, ["stroke"])) :
|
|
805
|
-
a(K) ?
|
|
824
|
+
}, null, 8, ["stroke"])) : y("", !0),
|
|
825
|
+
a(K) ? y("", !0) : (r(), f("span", {
|
|
806
826
|
key: 5,
|
|
807
|
-
style:
|
|
808
|
-
},
|
|
827
|
+
style: V({ fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal" })
|
|
828
|
+
}, U(o.display), 5))
|
|
809
829
|
], 8, vo)
|
|
810
830
|
]),
|
|
811
831
|
_: 1
|
|
812
|
-
}, 8, ["legendSet", "config"])) :
|
|
813
|
-
|
|
832
|
+
}, 8, ["legendSet", "config"])) : y("", !0),
|
|
833
|
+
c(t.$slots, "legend", { legend: h.value }, void 0, !0)
|
|
814
834
|
], 512)
|
|
815
|
-
], 8, ["to"])) :
|
|
816
|
-
t.$slots.source ? (r(),
|
|
835
|
+
], 8, ["to"])) : y("", !0),
|
|
836
|
+
t.$slots.source ? (r(), f("div", {
|
|
817
837
|
key: 6,
|
|
818
838
|
ref_key: "source",
|
|
819
|
-
ref:
|
|
839
|
+
ref: se,
|
|
820
840
|
dir: "auto"
|
|
821
841
|
}, [
|
|
822
|
-
|
|
823
|
-
], 512)) :
|
|
824
|
-
ue.value && e.value.userOptions.buttons.table ? (r(), k(ut(
|
|
842
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
843
|
+
], 512)) : y("", !0),
|
|
844
|
+
ue.value && e.value.userOptions.buttons.table ? (r(), k(ut(R.value.component), it({ key: 7 }, R.value.props, {
|
|
825
845
|
ref_key: "tableUnit",
|
|
826
|
-
ref:
|
|
846
|
+
ref: D,
|
|
827
847
|
onClose: ke
|
|
828
848
|
}), xe({
|
|
829
|
-
content:
|
|
830
|
-
|
|
831
|
-
colNames:
|
|
832
|
-
head:
|
|
833
|
-
body:
|
|
834
|
-
config:
|
|
835
|
-
title: e.value.table.useDialog ? "" :
|
|
849
|
+
content: i(() => [
|
|
850
|
+
G(a(Ie), {
|
|
851
|
+
colNames: j.value.colNames,
|
|
852
|
+
head: j.value.head,
|
|
853
|
+
body: j.value.body,
|
|
854
|
+
config: j.value.config,
|
|
855
|
+
title: e.value.table.useDialog ? "" : R.value.title,
|
|
836
856
|
withCloseButton: !e.value.table.useDialog,
|
|
837
857
|
onClose: ke
|
|
838
858
|
}, {
|
|
839
|
-
th:
|
|
840
|
-
|
|
859
|
+
th: i(({ th: o }) => [
|
|
860
|
+
n("div", {
|
|
841
861
|
innerHTML: o,
|
|
842
862
|
style: { display: "flex", "align-items": "center" }
|
|
843
863
|
}, null, 8, yo)
|
|
844
864
|
]),
|
|
845
|
-
td:
|
|
846
|
-
_e(
|
|
865
|
+
td: i(({ td: o }) => [
|
|
866
|
+
_e(U(o.name || o), 1)
|
|
847
867
|
]),
|
|
848
868
|
_: 1
|
|
849
869
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -852,32 +872,32 @@ const Lt = ["id"], It = ["id"], Dt = ["xmlns", "viewBox"], Ft = ["width", "heigh
|
|
|
852
872
|
}, [
|
|
853
873
|
e.value.table.useDialog ? {
|
|
854
874
|
name: "title",
|
|
855
|
-
fn:
|
|
856
|
-
_e(R
|
|
875
|
+
fn: i(() => [
|
|
876
|
+
_e(U(R.value.title), 1)
|
|
857
877
|
]),
|
|
858
878
|
key: "0"
|
|
859
879
|
} : void 0,
|
|
860
880
|
e.value.table.useDialog ? {
|
|
861
881
|
name: "actions",
|
|
862
|
-
fn:
|
|
863
|
-
|
|
882
|
+
fn: i(() => [
|
|
883
|
+
n("button", {
|
|
864
884
|
tabindex: "0",
|
|
865
885
|
class: "vue-ui-user-options-button",
|
|
866
886
|
onClick: l[15] || (l[15] = (o) => ee(e.value.userOptions.callbacks.csv))
|
|
867
887
|
}, [
|
|
868
|
-
|
|
888
|
+
G(a(N), {
|
|
869
889
|
name: "excel",
|
|
870
|
-
stroke:
|
|
890
|
+
stroke: R.value.props.color
|
|
871
891
|
}, null, 8, ["stroke"])
|
|
872
892
|
])
|
|
873
893
|
]),
|
|
874
894
|
key: "1"
|
|
875
895
|
} : void 0
|
|
876
|
-
]), 1040)) :
|
|
877
|
-
a(K) ? (r(), k(xt, { key: 8 })) :
|
|
896
|
+
]), 1040)) : y("", !0),
|
|
897
|
+
a(K) ? (r(), k(xt, { key: 8 })) : y("", !0)
|
|
878
898
|
], 46, Lt));
|
|
879
899
|
}
|
|
880
|
-
}, Po = /* @__PURE__ */ St(ho, [["__scopeId", "data-v-
|
|
900
|
+
}, Po = /* @__PURE__ */ St(ho, [["__scopeId", "data-v-a015dc84"]]);
|
|
881
901
|
export {
|
|
882
902
|
Po as default
|
|
883
903
|
};
|