vue-data-ui 3.23.1 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-bump.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-dag.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-geo.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-hill.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-stackline.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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, At as n, Bt as r, D as i, Jt as a, M as ee, Vt as te, X as o, i as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { l as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, At as n, Bt as r, D as i, Jt as a, M as ee, Vt as te, X as o, i as s, jt as ne, q as re, t as ie, tt as ae } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ce } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as fe } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as me } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as he } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as ge } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as be } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
+
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as we } from "./Legend-CQxUgOd-.js";
|
|
19
|
+
import { t as Te } from "./vue_ui_mood_radar-BA6LAKhk.js";
|
|
20
|
+
import { Fragment as Ee, Teleport as De, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Oe, createTextVNode as ke, createVNode as p, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as g, normalizeStyle as _, onMounted as Ne, openBlock as v, ref as y, renderList as Pe, renderSlot as b, resolveDynamicComponent as Fe, toDisplayString as x, toRefs as Ie, unref as S, watch as Le, withCtx as C } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-mood-radar.vue
|
|
22
|
-
var
|
|
22
|
+
var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve = ["id"], He = { style: { position: "relative" } }, Ue = [
|
|
23
23
|
"xmlns",
|
|
24
24
|
"aria-describedby",
|
|
25
25
|
"viewBox"
|
|
26
|
-
],
|
|
26
|
+
], We = ["width", "height"], Ge = [
|
|
27
27
|
"x1",
|
|
28
28
|
"y1",
|
|
29
29
|
"x2",
|
|
30
30
|
"y2",
|
|
31
31
|
"stroke",
|
|
32
32
|
"stroke-width"
|
|
33
|
-
],
|
|
33
|
+
], Ke = [
|
|
34
34
|
"d",
|
|
35
35
|
"stroke",
|
|
36
36
|
"stroke-width"
|
|
37
|
-
],
|
|
37
|
+
], qe = ["transform"], Je = ["stroke"], Ye = ["aria-label", "fill"], Xe = ["transform"], Ze = ["stroke"], Qe = ["aria-label", "fill"], $e = ["transform"], et = ["stroke"], tt = ["aria-label", "fill"], nt = ["transform"], rt = ["stroke"], it = ["aria-label", "fill"], at = ["transform"], ot = ["stroke"], st = ["aria-label", "fill"], ct = [
|
|
38
38
|
"d",
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width",
|
|
41
41
|
"fill"
|
|
42
|
-
],
|
|
42
|
+
], lt = [
|
|
43
43
|
"x1",
|
|
44
44
|
"y1",
|
|
45
45
|
"x2",
|
|
46
46
|
"y2",
|
|
47
47
|
"stroke"
|
|
48
|
-
],
|
|
48
|
+
], ut = [
|
|
49
49
|
"cx",
|
|
50
50
|
"cy",
|
|
51
51
|
"fill",
|
|
52
52
|
"stroke"
|
|
53
|
-
],
|
|
53
|
+
], dt = [
|
|
54
54
|
"cx",
|
|
55
55
|
"cy",
|
|
56
56
|
"fill",
|
|
57
57
|
"stroke"
|
|
58
|
-
],
|
|
58
|
+
], ft = [
|
|
59
59
|
"x",
|
|
60
60
|
"y",
|
|
61
61
|
"fill",
|
|
62
62
|
"font-weight"
|
|
63
|
-
],
|
|
63
|
+
], pt = [
|
|
64
64
|
"x",
|
|
65
65
|
"y",
|
|
66
66
|
"fill"
|
|
67
|
-
],
|
|
67
|
+
], mt = {
|
|
68
68
|
key: 0,
|
|
69
69
|
style: {
|
|
70
70
|
position: "absolute",
|
|
@@ -74,10 +74,10 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
74
74
|
},
|
|
75
75
|
"data-dom-to-png-ignore": "",
|
|
76
76
|
"aria-hidden": "true"
|
|
77
|
-
},
|
|
77
|
+
}, ht = {
|
|
78
78
|
key: 5,
|
|
79
79
|
class: "vue-data-ui-watermark"
|
|
80
|
-
},
|
|
80
|
+
}, gt = ["id"], _t = ["onClick", "onKeydown"], vt = ["innerHTML"], w = /*#__PURE__*/ _e({
|
|
81
81
|
__name: "vue-ui-mood-radar",
|
|
82
82
|
props: {
|
|
83
83
|
config: {
|
|
@@ -94,15 +94,15 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["copyAlt"],
|
|
97
|
-
setup(e, { expose:
|
|
98
|
-
let
|
|
99
|
-
|
|
97
|
+
setup(e, { expose: _e, emit: Re }) {
|
|
98
|
+
let w = m(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), yt = m(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), bt = m(() => import("./DataTable-BbKgJ5UI.js")), xt = m(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), St = m(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ct = m(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), wt = m(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_mood_radar: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = pe(), T = e, Ot = Re, E = y(re()), D = y(null), O = y(null), kt = y(null), At = y(0), jt = y(0), Mt = y(0), Nt = y(null), Pt = y(null), k = y(null), A = y(null), Ft = y(null), It = y(!1), j = y(null), Lt = y(null), M = y(null), N = y(!1), Rt = c(() => !!T.dataset && Object.keys(T.dataset).length), P = y(Kt());
|
|
99
|
+
oe({
|
|
100
100
|
config: () => P.value,
|
|
101
|
-
dataset: () =>
|
|
101
|
+
dataset: () => T.dataset,
|
|
102
102
|
component: "VueUiMoodRadar",
|
|
103
|
-
rules: [
|
|
103
|
+
rules: [se.noHint]
|
|
104
104
|
});
|
|
105
|
-
let F =
|
|
105
|
+
let F = c(() => P.value.userOptions.useCursorPointer), zt = c(() => a({
|
|
106
106
|
defaultConfig: {
|
|
107
107
|
userOptions: { show: !1 },
|
|
108
108
|
table: { show: !1 },
|
|
@@ -129,16 +129,16 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
129
129
|
} }
|
|
130
130
|
},
|
|
131
131
|
userConfig: P.value.skeletonConfig ?? {}
|
|
132
|
-
})), { loading:
|
|
133
|
-
...
|
|
132
|
+
})), { loading: Bt, FINAL_DATASET: I } = ue({
|
|
133
|
+
...Ie(T),
|
|
134
134
|
FINAL_CONFIG: P,
|
|
135
|
-
prepareConfig:
|
|
135
|
+
prepareConfig: Kt,
|
|
136
136
|
callback: () => {
|
|
137
137
|
Promise.resolve().then(async () => {
|
|
138
|
-
await
|
|
138
|
+
await je(), R.value.showTable = P.value.table.show;
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
|
-
skeletonDataset:
|
|
141
|
+
skeletonDataset: T.config?.skeletonDataset ?? {
|
|
142
142
|
1: 1,
|
|
143
143
|
2: 1,
|
|
144
144
|
3: 1,
|
|
@@ -147,62 +147,62 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
147
147
|
},
|
|
148
148
|
skeletonConfig: a({
|
|
149
149
|
defaultConfig: P.value,
|
|
150
|
-
userConfig:
|
|
150
|
+
userConfig: zt.value
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
Ne(() => {
|
|
154
|
+
It.value = !0, Ht();
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
156
|
+
let Vt = c(() => P.value.debug);
|
|
157
|
+
function Ht() {
|
|
158
|
+
if (ne(T.dataset) && ae({
|
|
159
159
|
componentName: "VueUiMoodRadar",
|
|
160
160
|
type: "dataset",
|
|
161
|
-
debug:
|
|
161
|
+
debug: Vt.value
|
|
162
162
|
}), P.value.responsive) {
|
|
163
|
-
let e =
|
|
164
|
-
let { width: e, height: t } =
|
|
165
|
-
chart:
|
|
166
|
-
title: P.value.style.chart.title.text ?
|
|
167
|
-
legend: P.value.style.chart.legend.show ?
|
|
168
|
-
noTitle:
|
|
169
|
-
source:
|
|
163
|
+
let e = ve(() => {
|
|
164
|
+
let { width: e, height: t } = ye({
|
|
165
|
+
chart: D.value,
|
|
166
|
+
title: P.value.style.chart.title.text ? Nt.value : null,
|
|
167
|
+
legend: P.value.style.chart.legend.show ? Pt.value : null,
|
|
168
|
+
noTitle: kt.value,
|
|
169
|
+
source: Ft.value
|
|
170
170
|
});
|
|
171
171
|
requestAnimationFrame(() => {
|
|
172
172
|
z.value.width = e, z.value.height = t - 12;
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
|
|
175
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = D.value.parentNode, k.value.observe(A.value);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
let { userOptionsVisible:
|
|
179
|
-
function
|
|
180
|
-
let e =
|
|
181
|
-
userConfig:
|
|
182
|
-
defaultConfig:
|
|
178
|
+
let { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = Se({ config: P.value }), { svgRef: L } = Ce({ config: P.value.style.chart.title });
|
|
179
|
+
function Kt() {
|
|
180
|
+
let e = fe({
|
|
181
|
+
userConfig: T.config,
|
|
182
|
+
defaultConfig: Tt
|
|
183
183
|
}), t = e.theme;
|
|
184
184
|
if (!t) return e;
|
|
185
|
-
if (!
|
|
186
|
-
let n =
|
|
187
|
-
userConfig:
|
|
185
|
+
if (!Et.value(e)) return Dt(e), e;
|
|
186
|
+
let n = fe({
|
|
187
|
+
userConfig: Te[t] || T.config,
|
|
188
188
|
defaultConfig: e
|
|
189
189
|
});
|
|
190
|
-
return
|
|
191
|
-
userConfig:
|
|
190
|
+
return fe({
|
|
191
|
+
userConfig: T.config,
|
|
192
192
|
defaultConfig: n
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
P.value =
|
|
195
|
+
Le(() => T.config, (e) => {
|
|
196
|
+
P.value = Kt(), Ut.value = !P.value.userOptions.showOnChartHover, Ht(), At.value += 1, jt.value += 1, Mt.value += 1, R.value.showTable = P.value.table.show;
|
|
197
197
|
}, { deep: !0 });
|
|
198
|
-
let { isPrinting:
|
|
199
|
-
elementId:
|
|
198
|
+
let { isPrinting: qt, isImaging: Jt, generatePdf: Yt, generateImage: Xt } = le({
|
|
199
|
+
elementId: E.value,
|
|
200
200
|
fileName: P.value.style.chart.title.text || "vue-ui-mood-radar",
|
|
201
201
|
options: P.value.userOptions.print
|
|
202
|
-
}),
|
|
202
|
+
}), Zt = c(() => P.value.userOptions.show && !P.value.style.chart.title.text), R = y({ showTable: P.value.table.show }), z = y({
|
|
203
203
|
height: 256,
|
|
204
204
|
width: 256
|
|
205
|
-
}),
|
|
205
|
+
}), Qt = {
|
|
206
206
|
5: {
|
|
207
207
|
x: 128,
|
|
208
208
|
y: 35
|
|
@@ -223,9 +223,9 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
223
223
|
x: 38.5,
|
|
224
224
|
y: 98.5
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, $t = c(() => {
|
|
227
227
|
let e = {};
|
|
228
|
-
return
|
|
228
|
+
return an.value.forEach((t) => {
|
|
229
229
|
e[t.key] = {
|
|
230
230
|
x: t.x,
|
|
231
231
|
y: t.y
|
|
@@ -233,10 +233,10 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
233
233
|
}), e;
|
|
234
234
|
});
|
|
235
235
|
function B(e) {
|
|
236
|
-
let t =
|
|
236
|
+
let t = Qt[e], n = $t.value[e] || t;
|
|
237
237
|
return `translate(${n.x - t.x}, ${n.y - t.y})`;
|
|
238
238
|
}
|
|
239
|
-
let
|
|
239
|
+
let en = c(() => ee({
|
|
240
240
|
plot: {
|
|
241
241
|
x: z.value.width / 2,
|
|
242
242
|
y: z.value.height / 2
|
|
@@ -245,7 +245,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
245
245
|
sides: 5,
|
|
246
246
|
rotation: 11
|
|
247
247
|
}));
|
|
248
|
-
function
|
|
248
|
+
function tn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i, key: a, value: ee }) {
|
|
249
249
|
return {
|
|
250
250
|
x: e + (n - e) * i,
|
|
251
251
|
y: t + (r - t) * i,
|
|
@@ -253,7 +253,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
253
253
|
value: ee
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
let
|
|
256
|
+
let nn = c(() => Math.max(...Object.values(I.value).map((e) => isNaN(e) ? 0 : e))), V = c(() => Object.values(I.value).reduce((e, t) => (isNaN(e) ? 0 : e) + (isNaN(t) ? 0 : t), 0)), H = c(() => Object.keys(I.value).map((e, t) => {
|
|
257
257
|
let n = typeof I.value[e] != "number" || isNaN(I.value[e]) ? 0 : I.value[e];
|
|
258
258
|
return {
|
|
259
259
|
index: t,
|
|
@@ -265,37 +265,38 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
265
265
|
}).map((e) => ({
|
|
266
266
|
...e,
|
|
267
267
|
onSelect: () => U(e.key)
|
|
268
|
-
})).sort((e, t) => t.key - e.key)),
|
|
268
|
+
})).sort((e, t) => t.key - e.key)), rn = c(() => H.value.map((e, t) => ({
|
|
269
269
|
...e,
|
|
270
|
-
display: `${
|
|
270
|
+
display: `${s(P.value.style.chart.layout.dataLabel.formatter, e.value, o({
|
|
271
271
|
p: P.value.style.chart.layout.dataLabel.prefix,
|
|
272
272
|
v: e.value,
|
|
273
273
|
s: P.value.style.chart.layout.dataLabel.suffix,
|
|
274
274
|
r: P.value.style.chart.layout.dataLabel.roundingValue
|
|
275
|
-
}))}${
|
|
275
|
+
}))}${Bt.value ? "" : ` (${o({
|
|
276
276
|
v: e.proportion * 100,
|
|
277
277
|
s: "%",
|
|
278
278
|
r: P.value.style.chart.legend.roundingPercentage
|
|
279
279
|
})})`}`
|
|
280
|
-
}))),
|
|
280
|
+
}))), an = c(() => ([
|
|
281
281
|
"1",
|
|
282
282
|
"2",
|
|
283
283
|
"3",
|
|
284
284
|
"4",
|
|
285
285
|
"5"
|
|
286
286
|
].forEach((e) => {
|
|
287
|
-
[null, void 0].includes(I.value[e]) &&
|
|
287
|
+
[null, void 0].includes(I.value[e]) && ae({
|
|
288
288
|
componentName: "VueUiMoodRadar",
|
|
289
289
|
type: "datasetAttribute",
|
|
290
|
-
property: e
|
|
290
|
+
property: e,
|
|
291
|
+
debug: Vt.value
|
|
291
292
|
});
|
|
292
|
-
}),
|
|
293
|
-
let n =
|
|
293
|
+
}), en.value.coordinates.map((e, t) => {
|
|
294
|
+
let n = tn({
|
|
294
295
|
centerX: z.value.width / 2,
|
|
295
296
|
centerY: z.value.height / 2,
|
|
296
297
|
apexX: e.x,
|
|
297
298
|
apexY: e.y,
|
|
298
|
-
proportion: H.value[t].value /
|
|
299
|
+
proportion: H.value[t].value / nn.value,
|
|
299
300
|
key: H.value[t].key,
|
|
300
301
|
value: H.value[t].value
|
|
301
302
|
});
|
|
@@ -304,7 +305,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
304
305
|
plots: n,
|
|
305
306
|
key: H.value[t].key
|
|
306
307
|
};
|
|
307
|
-
}))),
|
|
308
|
+
}))), on = c(() => ({
|
|
308
309
|
cy: "mood-radar-legend",
|
|
309
310
|
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
310
311
|
color: P.value.style.chart.legend.color,
|
|
@@ -313,10 +314,10 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
313
314
|
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
314
315
|
}));
|
|
315
316
|
function U(e) {
|
|
316
|
-
e ===
|
|
317
|
+
e === O.value ? O.value = null : (O.value = e, K(e));
|
|
317
318
|
}
|
|
318
319
|
function W(e) {
|
|
319
|
-
|
|
320
|
+
O.value = e;
|
|
320
321
|
let t = H.value.find((t) => t.key === e);
|
|
321
322
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
322
323
|
datapoint: t,
|
|
@@ -324,7 +325,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
324
325
|
});
|
|
325
326
|
}
|
|
326
327
|
function G(e) {
|
|
327
|
-
|
|
328
|
+
O.value = null;
|
|
328
329
|
let t = H.value.find((t) => t.key === e);
|
|
329
330
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
330
331
|
datapoint: t,
|
|
@@ -338,15 +339,15 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
338
339
|
seriesIndex: t.index
|
|
339
340
|
});
|
|
340
341
|
}
|
|
341
|
-
let q =
|
|
342
|
+
let q = c(() => ({
|
|
342
343
|
head: H.value.map((e) => ({
|
|
343
344
|
name: e.key,
|
|
344
345
|
color: e.color
|
|
345
346
|
})),
|
|
346
347
|
body: H.value.map((e) => isNaN(e.value) ? 0 : e.value)
|
|
347
348
|
}));
|
|
348
|
-
function
|
|
349
|
-
|
|
349
|
+
function sn(e = null) {
|
|
350
|
+
je(() => {
|
|
350
351
|
let n = q.value.head.map((e, t) => [
|
|
351
352
|
[e.name],
|
|
352
353
|
[q.value.body[t]],
|
|
@@ -366,7 +367,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
366
367
|
});
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
|
-
let J =
|
|
370
|
+
let J = c(() => ({
|
|
370
371
|
head: [
|
|
371
372
|
" <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>",
|
|
372
373
|
Number(V.value.toFixed(P.value.table.td.roundingValue)).toLocaleString(),
|
|
@@ -399,24 +400,24 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
399
400
|
P.value.table.columnNames.percentage
|
|
400
401
|
]
|
|
401
402
|
}));
|
|
402
|
-
function
|
|
403
|
+
function cn() {
|
|
403
404
|
return H.value;
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function ln() {
|
|
406
407
|
R.value.showTable = !R.value.showTable;
|
|
407
408
|
}
|
|
408
|
-
let Y =
|
|
409
|
-
function
|
|
409
|
+
let Y = y(!1);
|
|
410
|
+
function un(e) {
|
|
410
411
|
Y.value = e;
|
|
411
412
|
}
|
|
412
|
-
let X =
|
|
413
|
-
function
|
|
413
|
+
let X = y(!1);
|
|
414
|
+
function dn() {
|
|
414
415
|
X.value = !X.value;
|
|
415
416
|
}
|
|
416
|
-
async function
|
|
417
|
-
if (!
|
|
418
|
-
let { width: t, height: n } =
|
|
419
|
-
domElement:
|
|
417
|
+
async function fn({ scale: e = 2 } = {}) {
|
|
418
|
+
if (!D.value) return;
|
|
419
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
420
|
+
domElement: D.value,
|
|
420
421
|
base64: !0,
|
|
421
422
|
img: !0,
|
|
422
423
|
scale: e
|
|
@@ -430,10 +431,10 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
430
431
|
aspectRatio: r
|
|
431
432
|
};
|
|
432
433
|
}
|
|
433
|
-
let Z =
|
|
434
|
+
let Z = c(() => {
|
|
434
435
|
let e = P.value.table.useDialog && !P.value.table.show, t = R.value.showTable;
|
|
435
436
|
return {
|
|
436
|
-
component: e ?
|
|
437
|
+
component: e ? wt : yt,
|
|
437
438
|
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
438
439
|
props: e ? {
|
|
439
440
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -441,7 +442,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
441
442
|
headerColor: P.value.table.th.color,
|
|
442
443
|
headerBg: P.value.table.th.backgroundColor,
|
|
443
444
|
isFullscreen: Y.value,
|
|
444
|
-
fullscreenParent:
|
|
445
|
+
fullscreenParent: D.value,
|
|
445
446
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
446
447
|
isCursorPointer: F.value
|
|
447
448
|
} : {
|
|
@@ -461,52 +462,27 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
461
462
|
}
|
|
462
463
|
};
|
|
463
464
|
});
|
|
464
|
-
|
|
465
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
465
|
+
Le(() => R.value.showTable, (e) => {
|
|
466
|
+
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
466
467
|
});
|
|
467
|
-
function
|
|
468
|
-
R.value.showTable = !1,
|
|
468
|
+
function pn() {
|
|
469
|
+
R.value.showTable = !1, Lt.value && Lt.value.setTableIconState(!1);
|
|
469
470
|
}
|
|
470
|
-
let
|
|
471
|
+
let mn = c(() => rn.value.map((e) => ({
|
|
471
472
|
...e,
|
|
472
473
|
name: e.display,
|
|
473
474
|
shape: "circle"
|
|
474
|
-
}))),
|
|
475
|
+
}))), hn = c(() => P.value.style.chart.backgroundColor), gn = c(() => P.value.style.chart.legend), _n = c(() => P.value.style.chart.title), { isCallbackImaging: vn, isCallbackSvg: yn, generateSvg: bn, onGenerateImage: xn } = me({
|
|
475
476
|
svg: L,
|
|
476
|
-
title:
|
|
477
|
-
legend:
|
|
478
|
-
legendItems:
|
|
479
|
-
backgroundColor:
|
|
477
|
+
title: _n,
|
|
478
|
+
legend: gn,
|
|
479
|
+
legendItems: mn,
|
|
480
|
+
backgroundColor: hn,
|
|
481
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
482
|
+
generateImage: Xt
|
|
480
483
|
});
|
|
481
|
-
async function Sn(
|
|
482
|
-
|
|
483
|
-
try {
|
|
484
|
-
if (e) {
|
|
485
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await xn();
|
|
486
|
-
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
487
|
-
blob: e,
|
|
488
|
-
url: t,
|
|
489
|
-
text: n,
|
|
490
|
-
dataUrl: r
|
|
491
|
-
}));
|
|
492
|
-
} else await Promise.resolve(bn());
|
|
493
|
-
} finally {
|
|
494
|
-
M.value = !1;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
function Cn(e) {
|
|
498
|
-
if (e?.stage === "start") {
|
|
499
|
-
j.value = !0;
|
|
500
|
-
return;
|
|
501
|
-
}
|
|
502
|
-
if (e?.stage === "end") {
|
|
503
|
-
j.value = !1;
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
Qt();
|
|
507
|
-
}
|
|
508
|
-
async function wn() {
|
|
509
|
-
if (kt("copyAlt", {
|
|
484
|
+
async function Sn() {
|
|
485
|
+
if (Ot("copyAlt", {
|
|
510
486
|
config: P.value,
|
|
511
487
|
dataset: H.value
|
|
512
488
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -518,18 +494,18 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
518
494
|
dataset: H.value
|
|
519
495
|
}));
|
|
520
496
|
}
|
|
521
|
-
let Q =
|
|
522
|
-
function
|
|
523
|
-
|
|
497
|
+
let Q = c(() => H.value.map((e) => String(e.key)));
|
|
498
|
+
function Cn() {
|
|
499
|
+
Wt(!0);
|
|
524
500
|
}
|
|
525
|
-
function
|
|
526
|
-
|
|
501
|
+
function wn() {
|
|
502
|
+
Wt(!1);
|
|
527
503
|
}
|
|
528
|
-
function
|
|
504
|
+
function Tn(e) {
|
|
529
505
|
return H.value.find((t) => String(t.key) === String(e));
|
|
530
506
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
507
|
+
function En(e, t, n) {
|
|
508
|
+
return s(P.value.style.chart.layout.dataLabel.formatter, e, o({
|
|
533
509
|
p: P.value.style.chart.layout.dataLabel.prefix,
|
|
534
510
|
v: e,
|
|
535
511
|
s: P.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -539,7 +515,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
539
515
|
seriesIndex: t
|
|
540
516
|
});
|
|
541
517
|
}
|
|
542
|
-
function
|
|
518
|
+
function Dn(e) {
|
|
543
519
|
return o({
|
|
544
520
|
v: V.value ? e / V.value * 100 : 0,
|
|
545
521
|
s: "%",
|
|
@@ -547,84 +523,84 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
547
523
|
});
|
|
548
524
|
}
|
|
549
525
|
function $(e) {
|
|
550
|
-
let t =
|
|
551
|
-
return t ? `${e}, ${
|
|
526
|
+
let t = Tn(e);
|
|
527
|
+
return t ? `${e}, ${En(t.value, t.index, t)}, ${Dn(t.value)}` : `${e}`;
|
|
552
528
|
}
|
|
553
|
-
function
|
|
529
|
+
function On(e) {
|
|
554
530
|
let t = Q.value[e];
|
|
555
|
-
t && (
|
|
531
|
+
t && (M.value = e, O.value = t);
|
|
556
532
|
}
|
|
557
|
-
function
|
|
558
|
-
|
|
533
|
+
function kn() {
|
|
534
|
+
N.value = !0;
|
|
559
535
|
}
|
|
560
|
-
function
|
|
561
|
-
|
|
536
|
+
function An() {
|
|
537
|
+
M.value = null, O.value = null, N.value = !1;
|
|
562
538
|
}
|
|
563
|
-
function
|
|
539
|
+
function jn(e) {
|
|
564
540
|
if (!L.value || !Q.value.length || X.value || document.activeElement !== L.value) return;
|
|
565
541
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
566
542
|
if (!t && !n && !r && !i) return;
|
|
567
543
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
568
|
-
|
|
544
|
+
M.value = null, O.value = null;
|
|
569
545
|
return;
|
|
570
546
|
}
|
|
571
547
|
if (r) {
|
|
572
|
-
if (
|
|
573
|
-
let e = Q.value[
|
|
548
|
+
if (M.value === null) return;
|
|
549
|
+
let e = Q.value[M.value];
|
|
574
550
|
if (!e) return;
|
|
575
551
|
U(e);
|
|
576
552
|
return;
|
|
577
553
|
}
|
|
578
|
-
let a =
|
|
579
|
-
a === null || a < 0 || a >= Q.value.length ? a = n ? 0 : Q.value.length - 1 : n ? (a += 1, a >= Q.value.length && (a = 0)) : t && (--a, a < 0 && (a = Q.value.length - 1)),
|
|
554
|
+
let a = M.value;
|
|
555
|
+
a === null || a < 0 || a >= Q.value.length ? a = n ? 0 : Q.value.length - 1 : n ? (a += 1, a >= Q.value.length && (a = 0)) : t && (--a, a < 0 && (a = Q.value.length - 1)), On(a);
|
|
580
556
|
}
|
|
581
|
-
function
|
|
557
|
+
function Mn(e, t) {
|
|
582
558
|
let n = e.key === "Enter" || e.key === " ", r = e.key === "Escape";
|
|
583
559
|
if (!(!n && !r)) {
|
|
584
560
|
if (e.preventDefault(), e.stopPropagation(), r) {
|
|
585
|
-
|
|
561
|
+
M.value = null, O.value = null;
|
|
586
562
|
return;
|
|
587
563
|
}
|
|
588
564
|
U(String(t));
|
|
589
565
|
}
|
|
590
566
|
}
|
|
591
|
-
let
|
|
567
|
+
let Nn = c(() => ({
|
|
592
568
|
headers: J.value?.colNames ?? [],
|
|
593
569
|
rows: H.value.map((e) => [
|
|
594
570
|
String(e.key),
|
|
595
|
-
|
|
596
|
-
|
|
571
|
+
En(e.value, e.index, e),
|
|
572
|
+
Dn(e.value)
|
|
597
573
|
])
|
|
598
574
|
}));
|
|
599
|
-
return
|
|
600
|
-
getData:
|
|
601
|
-
getImage:
|
|
602
|
-
generatePdf:
|
|
603
|
-
generateCsv:
|
|
604
|
-
generateImage:
|
|
605
|
-
generateSvg:
|
|
606
|
-
toggleTable:
|
|
607
|
-
toggleAnnotator:
|
|
608
|
-
toggleFullscreen:
|
|
609
|
-
copyAlt:
|
|
610
|
-
}), (e, t) => (
|
|
611
|
-
class:
|
|
575
|
+
return _e({
|
|
576
|
+
getData: cn,
|
|
577
|
+
getImage: fn,
|
|
578
|
+
generatePdf: Yt,
|
|
579
|
+
generateCsv: sn,
|
|
580
|
+
generateImage: Xt,
|
|
581
|
+
generateSvg: bn,
|
|
582
|
+
toggleTable: ln,
|
|
583
|
+
toggleAnnotator: dn,
|
|
584
|
+
toggleFullscreen: un,
|
|
585
|
+
copyAlt: Sn
|
|
586
|
+
}), (e, t) => (v(), d("div", {
|
|
587
|
+
class: Me(`vue-data-ui-component vue-ui-mood-radar ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
612
588
|
ref_key: "moodRadarChart",
|
|
613
|
-
ref:
|
|
614
|
-
id: `${
|
|
615
|
-
style:
|
|
616
|
-
onMouseenter:
|
|
617
|
-
onMouseleave:
|
|
589
|
+
ref: D,
|
|
590
|
+
id: `${E.value}`,
|
|
591
|
+
style: _(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
592
|
+
onMouseenter: Cn,
|
|
593
|
+
onMouseleave: wn
|
|
618
594
|
}, [
|
|
619
|
-
|
|
620
|
-
id: `chart-instructions-${
|
|
595
|
+
f("div", {
|
|
596
|
+
id: `chart-instructions-${E.value}`,
|
|
621
597
|
class: "sr-only"
|
|
622
|
-
}, [
|
|
623
|
-
|
|
598
|
+
}, [f("p", null, x(P.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
599
|
+
Nn.value?.rows?.length ? (v(), l(xe, {
|
|
624
600
|
key: 0,
|
|
625
|
-
uid:
|
|
626
|
-
head:
|
|
627
|
-
body:
|
|
601
|
+
uid: E.value,
|
|
602
|
+
head: Nn.value.headers,
|
|
603
|
+
body: Nn.value.rows,
|
|
628
604
|
notice: P.value.a11y.translations.tableAvailable,
|
|
629
605
|
caption: P.value.a11y.translations.tableCaption
|
|
630
606
|
}, null, 8, [
|
|
@@ -633,22 +609,22 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
633
609
|
"body",
|
|
634
610
|
"notice",
|
|
635
611
|
"caption"
|
|
636
|
-
])) :
|
|
637
|
-
P.value.userOptions.buttons.annotator ? (
|
|
612
|
+
])) : u("", !0),
|
|
613
|
+
P.value.userOptions.buttons.annotator ? (v(), l(S(xt), {
|
|
638
614
|
key: 1,
|
|
639
|
-
svgRef:
|
|
615
|
+
svgRef: S(L),
|
|
640
616
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
641
617
|
color: P.value.style.chart.color,
|
|
642
618
|
active: X.value,
|
|
643
619
|
isCursorPointer: F.value,
|
|
644
|
-
onClose:
|
|
620
|
+
onClose: dn
|
|
645
621
|
}, {
|
|
646
|
-
"annotator-action-close":
|
|
647
|
-
"annotator-action-color":
|
|
648
|
-
"annotator-action-draw":
|
|
649
|
-
"annotator-action-undo":
|
|
650
|
-
"annotator-action-redo":
|
|
651
|
-
"annotator-action-delete":
|
|
622
|
+
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
623
|
+
"annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
624
|
+
"annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
625
|
+
"annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
626
|
+
"annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
627
|
+
"annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
652
628
|
_: 3
|
|
653
629
|
}, 8, [
|
|
654
630
|
"svgRef",
|
|
@@ -656,20 +632,20 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
656
632
|
"color",
|
|
657
633
|
"active",
|
|
658
634
|
"isCursorPointer"
|
|
659
|
-
])) :
|
|
660
|
-
|
|
635
|
+
])) : u("", !0),
|
|
636
|
+
Zt.value ? (v(), d("div", {
|
|
661
637
|
key: 2,
|
|
662
638
|
ref_key: "noTitle",
|
|
663
|
-
ref:
|
|
639
|
+
ref: kt,
|
|
664
640
|
class: "vue-data-ui-no-title-space",
|
|
665
641
|
style: "height:36px; width: 100%;background:transparent"
|
|
666
|
-
}, null, 512)) :
|
|
667
|
-
P.value.style.chart.title.text ? (
|
|
642
|
+
}, null, 512)) : u("", !0),
|
|
643
|
+
P.value.style.chart.title.text ? (v(), d("div", {
|
|
668
644
|
key: 3,
|
|
669
645
|
ref_key: "chartTitle",
|
|
670
|
-
ref:
|
|
646
|
+
ref: Nt,
|
|
671
647
|
style: "width:100%;background:transparent"
|
|
672
|
-
}, [
|
|
648
|
+
}, [p(ge, { config: {
|
|
673
649
|
title: {
|
|
674
650
|
cy: "mood-radar-title",
|
|
675
651
|
...P.value.style.chart.title
|
|
@@ -678,17 +654,17 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
678
654
|
cy: "mood-radar-subtitle",
|
|
679
655
|
...P.value.style.chart.title.subtitle
|
|
680
656
|
}
|
|
681
|
-
} }, null, 8, ["config"])], 512)) :
|
|
682
|
-
|
|
683
|
-
P.value.userOptions.show &&
|
|
657
|
+
} }, null, 8, ["config"])], 512)) : u("", !0),
|
|
658
|
+
f("div", { id: `legend-top-${E.value}` }, null, 8, Ve),
|
|
659
|
+
P.value.userOptions.show && Rt.value && (S(Gt) || S(Ut)) ? (v(), l(S(St), {
|
|
684
660
|
key: 4,
|
|
685
661
|
ref_key: "userOptionsRef",
|
|
686
|
-
ref:
|
|
662
|
+
ref: Lt,
|
|
687
663
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
688
664
|
color: P.value.style.chart.color,
|
|
689
|
-
isPrinting:
|
|
690
|
-
isImaging:
|
|
691
|
-
uid:
|
|
665
|
+
isPrinting: S(qt),
|
|
666
|
+
isImaging: S(Jt),
|
|
667
|
+
uid: E.value,
|
|
692
668
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
693
669
|
hasXls: P.value.userOptions.buttons.csv,
|
|
694
670
|
hasImg: P.value.userOptions.buttons.img,
|
|
@@ -698,7 +674,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
698
674
|
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
699
675
|
isFullscreen: Y.value,
|
|
700
676
|
titles: { ...P.value.userOptions.buttonTitles },
|
|
701
|
-
chartElement:
|
|
677
|
+
chartElement: D.value,
|
|
702
678
|
position: P.value.userOptions.position,
|
|
703
679
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
704
680
|
isAnnotation: X.value,
|
|
@@ -706,19 +682,19 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
706
682
|
printScale: P.value.userOptions.print.scale,
|
|
707
683
|
tableDialog: P.value.table.useDialog,
|
|
708
684
|
isCursorPointer: F.value,
|
|
709
|
-
onToggleFullscreen:
|
|
710
|
-
onGeneratePdf:
|
|
711
|
-
onGenerateCsv:
|
|
712
|
-
onGenerateImage:
|
|
713
|
-
onGenerateSvg:
|
|
714
|
-
onToggleTable:
|
|
715
|
-
onToggleAnnotator:
|
|
716
|
-
onCopyAlt:
|
|
717
|
-
style:
|
|
718
|
-
},
|
|
685
|
+
onToggleFullscreen: un,
|
|
686
|
+
onGeneratePdf: S(Yt),
|
|
687
|
+
onGenerateCsv: sn,
|
|
688
|
+
onGenerateImage: S(xn),
|
|
689
|
+
onGenerateSvg: S(bn),
|
|
690
|
+
onToggleTable: ln,
|
|
691
|
+
onToggleAnnotator: dn,
|
|
692
|
+
onCopyAlt: Sn,
|
|
693
|
+
style: _({ visibility: S(Gt) ? S(Ut) ? "visible" : "hidden" : "visible" })
|
|
694
|
+
}, Oe({ _: 2 }, [
|
|
719
695
|
e.$slots.menuIcon ? {
|
|
720
696
|
name: "menuIcon",
|
|
721
|
-
fn:
|
|
697
|
+
fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(h({
|
|
722
698
|
isOpen: t,
|
|
723
699
|
color: n
|
|
724
700
|
})), void 0, !0)]),
|
|
@@ -726,32 +702,32 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
726
702
|
} : void 0,
|
|
727
703
|
e.$slots.optionPdf ? {
|
|
728
704
|
name: "optionPdf",
|
|
729
|
-
fn:
|
|
705
|
+
fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
730
706
|
key: "1"
|
|
731
707
|
} : void 0,
|
|
732
708
|
e.$slots.optionCsv ? {
|
|
733
709
|
name: "optionCsv",
|
|
734
|
-
fn:
|
|
710
|
+
fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
735
711
|
key: "2"
|
|
736
712
|
} : void 0,
|
|
737
713
|
e.$slots.optionImg ? {
|
|
738
714
|
name: "optionImg",
|
|
739
|
-
fn:
|
|
715
|
+
fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
740
716
|
key: "3"
|
|
741
717
|
} : void 0,
|
|
742
718
|
e.$slots.optionSvg ? {
|
|
743
719
|
name: "optionSvg",
|
|
744
|
-
fn:
|
|
720
|
+
fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
745
721
|
key: "4"
|
|
746
722
|
} : void 0,
|
|
747
723
|
e.$slots.optionTable ? {
|
|
748
724
|
name: "optionTable",
|
|
749
|
-
fn:
|
|
725
|
+
fn: C(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
750
726
|
key: "5"
|
|
751
727
|
} : void 0,
|
|
752
728
|
e.$slots.optionFullscreen ? {
|
|
753
729
|
name: "optionFullscreen",
|
|
754
|
-
fn:
|
|
730
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(h({
|
|
755
731
|
toggleFullscreen: t,
|
|
756
732
|
isFullscreen: n
|
|
757
733
|
})), void 0, !0)]),
|
|
@@ -759,7 +735,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
759
735
|
} : void 0,
|
|
760
736
|
e.$slots.optionAnnotator ? {
|
|
761
737
|
name: "optionAnnotator",
|
|
762
|
-
fn:
|
|
738
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(h({
|
|
763
739
|
toggleAnnotator: t,
|
|
764
740
|
isAnnotator: n
|
|
765
741
|
})), void 0, !0)]),
|
|
@@ -767,233 +743,208 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
767
743
|
} : void 0,
|
|
768
744
|
e.$slots.optionAltCopy ? {
|
|
769
745
|
name: "optionAltCopy",
|
|
770
|
-
fn:
|
|
746
|
+
fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
771
747
|
key: "8"
|
|
772
748
|
} : void 0,
|
|
773
749
|
e.$slots["custom-menu-before"] ? {
|
|
774
750
|
name: "custom-menu-before",
|
|
775
|
-
fn:
|
|
751
|
+
fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
776
752
|
key: "9"
|
|
777
753
|
} : void 0,
|
|
778
754
|
e.$slots["custom-menu-after"] ? {
|
|
779
755
|
name: "custom-menu-after",
|
|
780
|
-
fn:
|
|
756
|
+
fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
781
757
|
key: "10"
|
|
782
758
|
} : void 0
|
|
783
|
-
]), 1032,
|
|
784
|
-
|
|
785
|
-
"color",
|
|
786
|
-
"isPrinting",
|
|
787
|
-
"isImaging",
|
|
788
|
-
"uid",
|
|
789
|
-
"hasPdf",
|
|
790
|
-
"hasXls",
|
|
791
|
-
"hasImg",
|
|
792
|
-
"hasSvg",
|
|
793
|
-
"hasTable",
|
|
794
|
-
"hasFullscreen",
|
|
795
|
-
"hasAltCopy",
|
|
796
|
-
"isFullscreen",
|
|
797
|
-
"titles",
|
|
798
|
-
"chartElement",
|
|
799
|
-
"position",
|
|
800
|
-
"hasAnnotator",
|
|
801
|
-
"isAnnotation",
|
|
802
|
-
"callbacks",
|
|
803
|
-
"printScale",
|
|
804
|
-
"tableDialog",
|
|
805
|
-
"isCursorPointer",
|
|
806
|
-
"onGeneratePdf",
|
|
807
|
-
"style"
|
|
808
|
-
])) : l("", !0),
|
|
809
|
-
d("div", Ue, [(_(), u("svg", {
|
|
759
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
760
|
+
f("div", He, [(v(), d("svg", {
|
|
810
761
|
ref_key: "svgRef",
|
|
811
762
|
ref: L,
|
|
812
|
-
xmlns:
|
|
813
|
-
"aria-describedby": `chart-instructions-${
|
|
763
|
+
xmlns: S(ie),
|
|
764
|
+
"aria-describedby": `chart-instructions-${E.value}`,
|
|
814
765
|
viewBox: `0 0 ${z.value.width} ${z.value.height}`,
|
|
815
|
-
class:
|
|
766
|
+
class: Me({
|
|
816
767
|
"vue-data-ui-fullscreen--on": Y.value,
|
|
817
768
|
"vue-data-ui-fulscreen--off": !Y.value
|
|
818
769
|
}),
|
|
819
|
-
style:
|
|
770
|
+
style: _(`overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
820
771
|
tabindex: "0",
|
|
821
|
-
onFocus:
|
|
822
|
-
onBlur:
|
|
823
|
-
onKeydown:
|
|
772
|
+
onFocus: kn,
|
|
773
|
+
onBlur: An,
|
|
774
|
+
onKeydown: jn
|
|
824
775
|
}, [
|
|
825
|
-
|
|
826
|
-
e.$slots["chart-background"] ? (
|
|
776
|
+
p(S(Ct)),
|
|
777
|
+
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
827
778
|
key: 0,
|
|
828
779
|
x: 0,
|
|
829
780
|
y: 0,
|
|
830
781
|
width: z.value.width,
|
|
831
782
|
height: z.value.height,
|
|
832
783
|
style: { pointerEvents: "none" }
|
|
833
|
-
}, [
|
|
834
|
-
|
|
784
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : u("", !0),
|
|
785
|
+
f("defs", null, [p(be, {
|
|
835
786
|
t: "radial",
|
|
836
787
|
cx: "50%",
|
|
837
788
|
cy: "50%",
|
|
838
789
|
r: "50%",
|
|
839
790
|
fx: "50%",
|
|
840
791
|
fy: "50%",
|
|
841
|
-
id: `mood_radar_gradient_${
|
|
792
|
+
id: `mood_radar_gradient_${E.value}`,
|
|
842
793
|
stops: [[
|
|
843
794
|
"0%",
|
|
844
|
-
|
|
795
|
+
S(r)(P.value.style.chart.layout.dataPolygon.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
845
796
|
1
|
|
846
797
|
], [
|
|
847
798
|
"100%",
|
|
848
|
-
|
|
799
|
+
S(r)(S(te)(P.value.style.chart.layout.dataPolygon.color, P.value.style.chart.layout.dataPolygon.gradient.intensity / 100), P.value.style.chart.layout.dataPolygon.opacity),
|
|
849
800
|
1
|
|
850
801
|
]]
|
|
851
802
|
}, null, 8, ["id", "stops"])]),
|
|
852
|
-
(
|
|
803
|
+
(v(!0), d(Ee, null, Pe(en.value.coordinates, (e) => (v(), d("line", {
|
|
853
804
|
x1: z.value.width / 2,
|
|
854
805
|
y1: z.value.height / 2,
|
|
855
806
|
x2: e.x,
|
|
856
807
|
y2: e.y,
|
|
857
808
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
858
809
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
859
|
-
}, null, 8,
|
|
860
|
-
|
|
861
|
-
d:
|
|
810
|
+
}, null, 8, Ge))), 256)),
|
|
811
|
+
f("path", {
|
|
812
|
+
d: en.value.path,
|
|
862
813
|
fill: "none",
|
|
863
814
|
stroke: P.value.style.chart.layout.outerPolygon.stroke,
|
|
864
815
|
"stroke-width": P.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
865
816
|
"stroke-linejoin": "round",
|
|
866
817
|
"stroke-linecap": "round"
|
|
867
|
-
}, null, 8,
|
|
868
|
-
|
|
818
|
+
}, null, 8, Ke),
|
|
819
|
+
f("g", { transform: B("5") }, [f("path", {
|
|
869
820
|
fill: "none",
|
|
870
821
|
stroke: P.value.style.chart.layout.smileys.colors[5],
|
|
871
822
|
"stroke-width": "1",
|
|
872
823
|
"stroke-linecap": "round",
|
|
873
824
|
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"
|
|
874
|
-
}, null, 8,
|
|
825
|
+
}, null, 8, Je), f("circle", {
|
|
875
826
|
role: "button",
|
|
876
827
|
class: "vue-ui-mood-radar-trap",
|
|
877
828
|
cx: "128",
|
|
878
829
|
cy: "25",
|
|
879
830
|
r: "20",
|
|
880
831
|
"aria-label": $("5"),
|
|
881
|
-
fill:
|
|
832
|
+
fill: O.value === "5" ? S(r)(P.value.style.chart.layout.smileys.colors[5], 20) : "transparent",
|
|
882
833
|
onMouseenter: t[0] ||= (e) => W("5"),
|
|
883
834
|
onMouseleave: t[1] ||= (e) => G("5"),
|
|
884
835
|
onClick: t[2] ||= (e) => K("5")
|
|
885
|
-
}, null, 40,
|
|
886
|
-
|
|
836
|
+
}, null, 40, Ye)], 8, qe),
|
|
837
|
+
f("g", { transform: B("4") }, [f("path", {
|
|
887
838
|
fill: "none",
|
|
888
839
|
stroke: P.value.style.chart.layout.smileys.colors[4],
|
|
889
840
|
"stroke-width": "1",
|
|
890
841
|
"stroke-linecap": "round",
|
|
891
842
|
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"
|
|
892
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Ze), f("circle", {
|
|
893
844
|
class: "vue-ui-mood-radar-trap",
|
|
894
845
|
cx: "227",
|
|
895
846
|
cy: "95.5",
|
|
896
847
|
r: "20",
|
|
897
848
|
"aria-label": $("4"),
|
|
898
|
-
fill:
|
|
849
|
+
fill: O.value === "4" ? S(r)(P.value.style.chart.layout.smileys.colors[4], 20) : "transparent",
|
|
899
850
|
onMouseenter: t[3] ||= (e) => W("4"),
|
|
900
851
|
onMouseleave: t[4] ||= (e) => G("4"),
|
|
901
852
|
onClick: t[5] ||= (e) => K("4")
|
|
902
|
-
}, null, 40,
|
|
903
|
-
|
|
853
|
+
}, null, 40, Qe)], 8, Xe),
|
|
854
|
+
f("g", { transform: B("3") }, [f("path", {
|
|
904
855
|
fill: "none",
|
|
905
856
|
stroke: P.value.style.chart.layout.smileys.colors[3],
|
|
906
857
|
"stroke-width": "1",
|
|
907
858
|
"stroke-linecap": "round",
|
|
908
859
|
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"
|
|
909
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, et), f("circle", {
|
|
910
861
|
class: "vue-ui-mood-radar-trap",
|
|
911
862
|
cx: "190",
|
|
912
863
|
cy: "213.5",
|
|
913
864
|
r: "20",
|
|
914
865
|
"aria-label": $("3"),
|
|
915
|
-
fill:
|
|
866
|
+
fill: O.value === "3" ? S(r)(P.value.style.chart.layout.smileys.colors[3], 20) : "transparent",
|
|
916
867
|
onMouseenter: t[6] ||= (e) => W("3"),
|
|
917
868
|
onMouseleave: t[7] ||= (e) => G("3"),
|
|
918
869
|
onClick: t[8] ||= (e) => K("3")
|
|
919
|
-
}, null, 40,
|
|
920
|
-
|
|
870
|
+
}, null, 40, tt)], 8, $e),
|
|
871
|
+
f("g", { transform: B("2") }, [f("path", {
|
|
921
872
|
fill: "none",
|
|
922
873
|
stroke: P.value.style.chart.layout.smileys.colors[2],
|
|
923
874
|
"stroke-width": "1",
|
|
924
875
|
"stroke-linecap": "round",
|
|
925
876
|
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"
|
|
926
|
-
}, null, 8,
|
|
877
|
+
}, null, 8, rt), f("circle", {
|
|
927
878
|
class: "vue-ui-mood-radar-trap",
|
|
928
879
|
cx: "65",
|
|
929
880
|
cy: "213.5",
|
|
930
881
|
r: "20",
|
|
931
882
|
"aria-label": $("2"),
|
|
932
|
-
fill:
|
|
883
|
+
fill: O.value === "2" ? S(r)(P.value.style.chart.layout.smileys.colors[2], 20) : "transparent",
|
|
933
884
|
onMouseenter: t[9] ||= (e) => W("2"),
|
|
934
885
|
onMouseleave: t[10] ||= (e) => G("2"),
|
|
935
886
|
onClick: t[11] ||= (e) => K("2")
|
|
936
|
-
}, null, 40,
|
|
937
|
-
|
|
887
|
+
}, null, 40, it)], 8, nt),
|
|
888
|
+
f("g", { transform: B("1") }, [f("path", {
|
|
938
889
|
fill: "none",
|
|
939
890
|
stroke: P.value.style.chart.layout.smileys.colors[1],
|
|
940
891
|
"stroke-width": "1",
|
|
941
892
|
"stroke-linecap": "round",
|
|
942
893
|
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"
|
|
943
|
-
}, null, 8,
|
|
894
|
+
}, null, 8, ot), f("circle", {
|
|
944
895
|
class: "vue-ui-mood-radar-trap",
|
|
945
896
|
cx: "29",
|
|
946
897
|
cy: "95.5",
|
|
947
898
|
r: "20",
|
|
948
899
|
"aria-label": $("1"),
|
|
949
|
-
fill:
|
|
900
|
+
fill: O.value === "1" ? S(r)(P.value.style.chart.layout.smileys.colors[1], 20) : "transparent",
|
|
950
901
|
onMouseenter: t[12] ||= (e) => W("1"),
|
|
951
902
|
onMouseleave: t[13] ||= (e) => G("1"),
|
|
952
903
|
onClick: t[14] ||= (e) => K("1")
|
|
953
|
-
}, null, 40,
|
|
954
|
-
|
|
955
|
-
d:
|
|
904
|
+
}, null, 40, st)], 8, at),
|
|
905
|
+
f("path", {
|
|
906
|
+
d: S(n)(an.value.map((e) => e.plots)),
|
|
956
907
|
stroke: P.value.style.chart.layout.dataPolygon.stroke,
|
|
957
908
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
958
909
|
"stroke-linecap": "round",
|
|
959
910
|
"stroke-linejoin": "round",
|
|
960
|
-
fill: P.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${
|
|
961
|
-
}, null, 8,
|
|
962
|
-
(
|
|
911
|
+
fill: P.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${E.value})` : S(r)(P.value.style.chart.layout.dataPolygon.color, P.value.style.chart.layout.dataPolygon.opacity)
|
|
912
|
+
}, null, 8, ct),
|
|
913
|
+
(v(!0), d(Ee, null, Pe(an.value.map((e) => e.plots), (e, t) => (v(), d("g", {
|
|
963
914
|
class: "vue-ui-mood-radar-trap",
|
|
964
|
-
style:
|
|
915
|
+
style: _(`opacity:${O.value == e.key ? "1" : "0"}`)
|
|
965
916
|
}, [
|
|
966
|
-
|
|
917
|
+
f("line", {
|
|
967
918
|
x1: e.x,
|
|
968
919
|
y1: e.y,
|
|
969
920
|
x2: z.value.width / 2,
|
|
970
921
|
y2: z.value.height / 2,
|
|
971
922
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
972
|
-
}, null, 8,
|
|
973
|
-
|
|
923
|
+
}, null, 8, lt),
|
|
924
|
+
f("circle", {
|
|
974
925
|
cx: e.x,
|
|
975
926
|
cy: e.y,
|
|
976
927
|
fill: P.value.style.chart.layout.smileys.colors[e.key],
|
|
977
928
|
r: "3",
|
|
978
929
|
stroke: P.value.style.chart.backgroundColor,
|
|
979
930
|
"stroke-width": .5
|
|
980
|
-
}, null, 8,
|
|
981
|
-
|
|
931
|
+
}, null, 8, ut),
|
|
932
|
+
f("circle", {
|
|
982
933
|
cx: z.value.width / 2,
|
|
983
934
|
cy: z.value.height / 2,
|
|
984
935
|
fill: P.value.style.chart.layout.smileys.colors[e.key],
|
|
985
936
|
r: "3",
|
|
986
937
|
stroke: P.value.style.chart.backgroundColor,
|
|
987
938
|
"stroke-width": .5
|
|
988
|
-
}, null, 8,
|
|
989
|
-
|
|
939
|
+
}, null, 8, dt),
|
|
940
|
+
f("text", {
|
|
990
941
|
x: z.value.width / 2,
|
|
991
942
|
y: ["5", 5].includes(e.key) ? z.value.height / 2 * 1.13 : z.value.height / 2 * .9375,
|
|
992
943
|
fill: P.value.style.chart.layout.dataLabel.color,
|
|
993
944
|
"font-size": "12",
|
|
994
945
|
"text-anchor": "middle",
|
|
995
946
|
"font-weight": P.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
996
|
-
},
|
|
947
|
+
}, x(S(s)(P.value.style.chart.layout.dataLabel.formatter, e.value, S(o)({
|
|
997
948
|
p: P.value.style.chart.layout.dataLabel.prefix,
|
|
998
949
|
v: e.value,
|
|
999
950
|
s: P.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -1001,40 +952,40 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
1001
952
|
}), {
|
|
1002
953
|
datapoint: e,
|
|
1003
954
|
seriesIndex: t
|
|
1004
|
-
})), 9,
|
|
1005
|
-
|
|
955
|
+
})), 9, ft),
|
|
956
|
+
f("text", {
|
|
1006
957
|
x: z.value.width / 2,
|
|
1007
958
|
y: ["5", 5].includes(e.key) ? z.value.height / 2 * 1.273 : z.value.height / 2 * .7968,
|
|
1008
959
|
fill: P.value.style.chart.layout.dataLabel.color,
|
|
1009
960
|
"font-size": "12",
|
|
1010
961
|
"text-anchor": "middle"
|
|
1011
|
-
}, " (" +
|
|
962
|
+
}, " (" + x(S(o)({
|
|
1012
963
|
v: e.value / V.value * 100,
|
|
1013
964
|
s: "%",
|
|
1014
965
|
r: P.value.style.chart.layout.dataLabel.roundingPercentage
|
|
1015
|
-
})) + ") ", 9,
|
|
966
|
+
})) + ") ", 9, pt)
|
|
1016
967
|
], 4))), 256)),
|
|
1017
|
-
|
|
968
|
+
b(e.$slots, "svg", { svg: {
|
|
1018
969
|
...z.value,
|
|
1019
|
-
isPrintingImg:
|
|
1020
|
-
isPrintingSvg:
|
|
970
|
+
isPrintingImg: S(qt) || S(Jt) || S(vn),
|
|
971
|
+
isPrintingSvg: S(yn)
|
|
1021
972
|
} }, void 0, !0)
|
|
1022
|
-
], 46,
|
|
973
|
+
], 46, Ue)), e.$slots.hint ? (v(), d("div", mt, [b(e.$slots, "hint", g(h({
|
|
1023
974
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1024
|
-
isVisible:
|
|
1025
|
-
})), void 0, !0)])) :
|
|
1026
|
-
e.$slots.watermark ? (
|
|
1027
|
-
|
|
1028
|
-
|
|
975
|
+
isVisible: N.value
|
|
976
|
+
})), void 0, !0)])) : u("", !0)]),
|
|
977
|
+
e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(h({ isPrinting: S(qt) || S(Jt) || S(vn) || S(yn) })), void 0, !0)])) : u("", !0),
|
|
978
|
+
f("div", { id: `legend-bottom-${E.value}` }, null, 8, gt),
|
|
979
|
+
It.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(De, {
|
|
1029
980
|
key: 6,
|
|
1030
|
-
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1031
|
-
}, [
|
|
981
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
982
|
+
}, [f("div", {
|
|
1032
983
|
ref_key: "chartLegend",
|
|
1033
|
-
ref:
|
|
1034
|
-
}, [
|
|
1035
|
-
legendSet:
|
|
1036
|
-
config:
|
|
1037
|
-
key: `legend_${
|
|
984
|
+
ref: Pt
|
|
985
|
+
}, [b(e.$slots, "legend", { legend: H.value }, () => [P.value.style.chart.legend.show ? (v(), l(we, {
|
|
986
|
+
legendSet: rn.value,
|
|
987
|
+
config: on.value,
|
|
988
|
+
key: `legend_${Mt.value}`,
|
|
1038
989
|
isCursorPointer: F.value,
|
|
1039
990
|
style: {
|
|
1040
991
|
display: "flex",
|
|
@@ -1042,7 +993,7 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
1042
993
|
},
|
|
1043
994
|
onFocusMarker: t[15] ||= ({ legend: e }) => U(e.key)
|
|
1044
995
|
}, {
|
|
1045
|
-
item:
|
|
996
|
+
item: C(({ legend: e, index: t }) => [f("div", {
|
|
1046
997
|
role: "button",
|
|
1047
998
|
onClick: () => U(e.key),
|
|
1048
999
|
style: {
|
|
@@ -1052,61 +1003,61 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
1052
1003
|
"align-items": "center",
|
|
1053
1004
|
margin: "3px 0"
|
|
1054
1005
|
},
|
|
1055
|
-
onKeydown: (t) =>
|
|
1006
|
+
onKeydown: (t) => Mn(t, String(e.key))
|
|
1056
1007
|
}, [
|
|
1057
|
-
e.key == 1 ? (
|
|
1008
|
+
e.key == 1 ? (v(), l(S(w), {
|
|
1058
1009
|
key: 0,
|
|
1059
1010
|
strokeWidth: 1,
|
|
1060
1011
|
name: "moodSad",
|
|
1061
1012
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
1062
|
-
}, null, 8, ["stroke"])) :
|
|
1063
|
-
e.key == 2 ? (
|
|
1013
|
+
}, null, 8, ["stroke"])) : u("", !0),
|
|
1014
|
+
e.key == 2 ? (v(), l(S(w), {
|
|
1064
1015
|
key: 1,
|
|
1065
1016
|
strokeWidth: 1,
|
|
1066
1017
|
name: "moodFlat",
|
|
1067
1018
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
1068
|
-
}, null, 8, ["stroke"])) :
|
|
1069
|
-
e.key == 3 ? (
|
|
1019
|
+
}, null, 8, ["stroke"])) : u("", !0),
|
|
1020
|
+
e.key == 3 ? (v(), l(S(w), {
|
|
1070
1021
|
key: 2,
|
|
1071
1022
|
strokeWidth: 1,
|
|
1072
1023
|
name: "moodNeutral",
|
|
1073
1024
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
1074
|
-
}, null, 8, ["stroke"])) :
|
|
1075
|
-
e.key == 4 ? (
|
|
1025
|
+
}, null, 8, ["stroke"])) : u("", !0),
|
|
1026
|
+
e.key == 4 ? (v(), l(S(w), {
|
|
1076
1027
|
key: 3,
|
|
1077
1028
|
strokeWidth: 1,
|
|
1078
1029
|
name: "smiley",
|
|
1079
1030
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
1080
|
-
}, null, 8, ["stroke"])) :
|
|
1081
|
-
e.key == 5 ? (
|
|
1031
|
+
}, null, 8, ["stroke"])) : u("", !0),
|
|
1032
|
+
e.key == 5 ? (v(), l(S(w), {
|
|
1082
1033
|
key: 4,
|
|
1083
1034
|
strokeWidth: 1,
|
|
1084
1035
|
name: "moodHappy",
|
|
1085
1036
|
stroke: P.value.style.chart.layout.smileys.colors[e.key]
|
|
1086
|
-
}, null, 8, ["stroke"])) :
|
|
1087
|
-
|
|
1037
|
+
}, null, 8, ["stroke"])) : u("", !0),
|
|
1038
|
+
S(Bt) ? u("", !0) : (v(), d("span", {
|
|
1088
1039
|
key: 5,
|
|
1089
|
-
style:
|
|
1090
|
-
},
|
|
1091
|
-
], 40,
|
|
1040
|
+
style: _({ fontWeight: P.value.style.chart.legend.bold ? "bold" : "normal" })
|
|
1041
|
+
}, x(e.display), 5))
|
|
1042
|
+
], 40, _t)]),
|
|
1092
1043
|
_: 1
|
|
1093
1044
|
}, 8, [
|
|
1094
1045
|
"legendSet",
|
|
1095
1046
|
"config",
|
|
1096
1047
|
"isCursorPointer"
|
|
1097
|
-
])) :
|
|
1098
|
-
e.$slots.source ? (
|
|
1048
|
+
])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
|
|
1049
|
+
e.$slots.source ? (v(), d("div", {
|
|
1099
1050
|
key: 7,
|
|
1100
1051
|
ref_key: "source",
|
|
1101
|
-
ref:
|
|
1052
|
+
ref: Ft,
|
|
1102
1053
|
dir: "auto"
|
|
1103
|
-
}, [
|
|
1104
|
-
|
|
1054
|
+
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1055
|
+
Rt.value && P.value.userOptions.buttons.table ? (v(), l(Fe(Z.value.component), Ae({ key: 8 }, Z.value.props, {
|
|
1105
1056
|
ref_key: "tableUnit",
|
|
1106
|
-
ref:
|
|
1107
|
-
onClose:
|
|
1108
|
-
}),
|
|
1109
|
-
content:
|
|
1057
|
+
ref: j,
|
|
1058
|
+
onClose: pn
|
|
1059
|
+
}), Oe({
|
|
1060
|
+
content: C(() => [p(S(bt), {
|
|
1110
1061
|
colNames: J.value.colNames,
|
|
1111
1062
|
head: J.value.head,
|
|
1112
1063
|
body: J.value.body,
|
|
@@ -1114,16 +1065,16 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
1114
1065
|
title: P.value.table.useDialog ? "" : Z.value.title,
|
|
1115
1066
|
withCloseButton: !P.value.table.useDialog,
|
|
1116
1067
|
isCursorPointer: F.value,
|
|
1117
|
-
onClose:
|
|
1068
|
+
onClose: pn
|
|
1118
1069
|
}, {
|
|
1119
|
-
th:
|
|
1070
|
+
th: C(({ th: e }) => [f("div", {
|
|
1120
1071
|
innerHTML: e,
|
|
1121
1072
|
style: {
|
|
1122
1073
|
display: "flex",
|
|
1123
1074
|
"align-items": "center"
|
|
1124
1075
|
}
|
|
1125
|
-
}, null, 8,
|
|
1126
|
-
td:
|
|
1076
|
+
}, null, 8, vt)]),
|
|
1077
|
+
td: C(({ td: e }) => [ke(x(e.name || e), 1)]),
|
|
1127
1078
|
_: 1
|
|
1128
1079
|
}, 8, [
|
|
1129
1080
|
"colNames",
|
|
@@ -1137,24 +1088,24 @@ var ze = /* @__PURE__ */ e({ default: () => C }), Be = ["id"], Ve = ["id"], He =
|
|
|
1137
1088
|
_: 2
|
|
1138
1089
|
}, [P.value.table.useDialog ? {
|
|
1139
1090
|
name: "title",
|
|
1140
|
-
fn:
|
|
1091
|
+
fn: C(() => [ke(x(Z.value.title), 1)]),
|
|
1141
1092
|
key: "0"
|
|
1142
1093
|
} : void 0, P.value.table.useDialog ? {
|
|
1143
1094
|
name: "actions",
|
|
1144
|
-
fn:
|
|
1095
|
+
fn: C(() => [f("button", {
|
|
1145
1096
|
tabindex: "0",
|
|
1146
1097
|
class: "vue-ui-user-options-button",
|
|
1147
|
-
onClick: t[16] ||= (e) =>
|
|
1148
|
-
style:
|
|
1149
|
-
}, [
|
|
1098
|
+
onClick: t[16] ||= (e) => sn(P.value.userOptions.callbacks.csv),
|
|
1099
|
+
style: _({ cursor: F.value ? "pointer" : "default" })
|
|
1100
|
+
}, [p(S(w), {
|
|
1150
1101
|
name: "fileCsv",
|
|
1151
1102
|
stroke: Z.value.props.color
|
|
1152
1103
|
}, null, 8, ["stroke"])], 4)]),
|
|
1153
1104
|
key: "1"
|
|
1154
|
-
} : void 0]), 1040)) :
|
|
1155
|
-
|
|
1156
|
-
], 46,
|
|
1105
|
+
} : void 0]), 1040)) : u("", !0),
|
|
1106
|
+
b(e.$slots, "skeleton", {}, () => [S(Bt) ? (v(), l(de, { key: 0 })) : u("", !0)], !0)
|
|
1107
|
+
], 46, ze));
|
|
1157
1108
|
}
|
|
1158
|
-
}, [["__scopeId", "data-v-
|
|
1109
|
+
}, [["__scopeId", "data-v-099dbe8f"]]);
|
|
1159
1110
|
//#endregion
|
|
1160
|
-
export {
|
|
1111
|
+
export { Re as n, w as t };
|